From 53500eb9b2aeeae21cb64f48b1d19f2bfa7bdfe4 Mon Sep 17 00:00:00 2001 From: syb01094648 Date: Mon, 23 Oct 2023 14:35:29 +0800 Subject: [PATCH] Updates --- 1.a9e52d88.async.js | 16 + ...dec64465.chunk.css => 1.dec64465.chunk.css | 0 108.d7e4c297.async.js | 550 ++++ 15.7ce3467a.async.js | 1 - 150.33c950fe.async.js | 18 - 176.cbd6a9a4.async.js | 5 - 404.html | 2 +- 546.eebbc4aa.async.js | 550 ---- 706.775ef964.async.js | 18 + 784.f046b275.async.js | 16 - 809.c309a377.async.js | 1 + ...4197f2.chunk.css => 820.674197f2.chunk.css | 0 ...1ba04833.async.js => 820.d14f0d54.async.js | 2751 ++++++++--------- ...846888af.async.js => 883.77484048.async.js | 2 +- 947.131db1b9.async.js | 5 + demos.276efb56.async.js | 1 - demos.a65411ae.async.js | 1 + docs/index.html | 2 +- docs__docs__index.md.026f32ac.async.js | 1 + docs__docs__index.md.3aadbe98.async.js | 1 - docs__guide__index.md.86e9db28.async.js | 1 - docs__guide__index.md.f63960ec.async.js | 1 + docs__index.md.721cc708.async.js | 1 - docs__index.md.9992fd34.async.js | 1 + ...i__theme__ContextWrapper.2b299fe2.async.js | 2 +- editor.worker.js | 6 +- guide/index.html | 2 +- index.html | 2 +- json.worker.js | 8 +- ...dist__client__pages__404.028712fb.async.js | 1 + ...dist__client__pages__404.106310ea.async.js | 1 - ...ient__pages__Demo__index.9a1563be.async.js | 1 + ...ient__pages__Demo__index.d2f92971.async.js | 1 - ...ayouts__DocLayout__index.328619c5.async.js | 1 + ...ayouts__DocLayout__index.a7b47917.async.js | 1 - umi.105daf26.js | 189 ++ umi.e1e9ebcc.js | 189 -- ~demos/:id/index.html | 2 +- ~demos/docs-demo-components/index.html | 2 +- ~demos/docs-docs-demo-docs/index.html | 2 +- 40 files changed, 2177 insertions(+), 2178 deletions(-) create mode 100644 1.a9e52d88.async.js rename 784.dec64465.chunk.css => 1.dec64465.chunk.css (100%) create mode 100644 108.d7e4c297.async.js delete mode 100644 15.7ce3467a.async.js delete mode 100644 150.33c950fe.async.js delete mode 100644 176.cbd6a9a4.async.js delete mode 100644 546.eebbc4aa.async.js create mode 100644 706.775ef964.async.js delete mode 100644 784.f046b275.async.js create mode 100644 809.c309a377.async.js rename 442.674197f2.chunk.css => 820.674197f2.chunk.css (100%) rename 442.1ba04833.async.js => 820.d14f0d54.async.js (64%) rename 665.846888af.async.js => 883.77484048.async.js (99%) create mode 100644 947.131db1b9.async.js delete mode 100644 demos.276efb56.async.js create mode 100644 demos.a65411ae.async.js create mode 100644 docs__docs__index.md.026f32ac.async.js delete mode 100644 docs__docs__index.md.3aadbe98.async.js delete mode 100644 docs__guide__index.md.86e9db28.async.js create mode 100644 docs__guide__index.md.f63960ec.async.js delete mode 100644 docs__index.md.721cc708.async.js create mode 100644 docs__index.md.9992fd34.async.js rename dumi__tmp-production__dumi__theme__ContextWrapper.528621d8.async.js => dumi__tmp-production__dumi__theme__ContextWrapper.2b299fe2.async.js (52%) create mode 100644 nm__dumi__dist__client__pages__404.028712fb.async.js delete mode 100644 nm__dumi__dist__client__pages__404.106310ea.async.js create mode 100644 nm__dumi__dist__client__pages__Demo__index.9a1563be.async.js delete mode 100644 nm__dumi__dist__client__pages__Demo__index.d2f92971.async.js create mode 100644 nm__dumi__theme-default__layouts__DocLayout__index.328619c5.async.js delete mode 100644 nm__dumi__theme-default__layouts__DocLayout__index.a7b47917.async.js create mode 100644 umi.105daf26.js delete mode 100644 umi.e1e9ebcc.js diff --git a/1.a9e52d88.async.js b/1.a9e52d88.async.js new file mode 100644 index 0000000..c0997b5 --- /dev/null +++ b/1.a9e52d88.async.js @@ -0,0 +1,16 @@ +(self.webpackChunk_antv_l7_editor=self.webpackChunk_antv_l7_editor||[]).push([[1],{51431:function(A,S,a){"use strict";a.d(S,{r:function(){return V}});var e=a(77617),m=Object.defineProperty,N=Object.getOwnPropertySymbols,j=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,z=(x,D,Z)=>D in x?m(x,D,{enumerable:!0,configurable:!0,writable:!0,value:Z}):x[D]=Z,Y=(x,D)=>{for(var Z in D||(D={}))j.call(D,Z)&&z(x,Z,D[Z]);if(N)for(var Z of N(D))h.call(D,Z)&&z(x,Z,D[Z]);return x};const V=x=>e.createElement("svg",Y({viewBox:"64 64 896 896"},x),e.createElement("path",{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}));var U="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNODg0IDI1NmgtNzVjLTUuMSAwLTkuOSAyLjUtMTIuOSA2LjZMNTEyIDY1NC4yIDIyNy45IDI2Mi42Yy0zLTQuMS03LjgtNi42LTEyLjktNi42aC03NWMtNi41IDAtMTAuMyA3LjQtNi41IDEyLjdsMzUyLjYgNDg2LjFjMTIuOCAxNy42IDM5IDE3LjYgNTEuNyAwbDM1Mi42LTQ4Ni4xYzMuOS01LjMuMS0xMi43LTYuNC0xMi43eiIvPjwvc3ZnPg=="},26245:function(A,S,a){"use strict";a.r(S),a.d(S,{default:function(){return n}});var e=a(77617),m=Object.defineProperty,N=Object.getOwnPropertySymbols,j=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,z=(t,r,u)=>r in t?m(t,r,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[r]=u,Y=(t,r)=>{for(var u in r||(r={}))j.call(r,u)&&z(t,u,r[u]);if(N)for(var u of N(r))h.call(r,u)&&z(t,u,r[u]);return t};const V=t=>e.createElement("svg",Y({viewBox:"64 64 896 896"},t),e.createElement("path",{d:"M120 230h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 424h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm784 140H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}));var U="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNMTIwIDIzMGg0OTZjNC40IDAgOC0zLjYgOC04di01NmMwLTQuNC0zLjYtOC04LThIMTIwYy00LjQgMC04IDMuNi04IDh2NTZjMCA0LjQgMy42IDggOCA4em0wIDQyNGg0OTZjNC40IDAgOC0zLjYgOC04di01NmMwLTQuNC0zLjYtOC04LThIMTIwYy00LjQgMC04IDMuNi04IDh2NTZjMCA0LjQgMy42IDggOCA4em03ODQgMTQwSDEyMGMtNC40IDAtOCAzLjYtOCA4djU2YzAgNC40IDMuNiA4IDggOGg3ODRjNC40IDAgOC0zLjYgOC04di01NmMwLTQuNC0zLjYtOC04LTh6bTAtNDI0SDEyMGMtNC40IDAtOCAzLjYtOCA4djU2YzAgNC40IDMuNiA4IDggOGg3ODRjNC40IDAgOC0zLjYgOC04di01NmMwLTQuNC0zLjYtOC04LTh6Ii8+PC9zdmc+",x=function(t,r,u,I){function O(o){return o instanceof u?o:new u(function(c){c(o)})}return new(u||(u=Promise))(function(o,c){function i(w){try{k(I.next(w))}catch(F){c(F)}}function H(w){try{k(I.throw(w))}catch(F){c(F)}}function k(w){w.done?o(w.value):O(w.value).then(i,H)}k((I=I.apply(t,r||[])).next())})};function D(t){let r=0,u=0,I=t;do r+=I.offsetTop||0,u+=I.offsetLeft||0,I=I.offsetParent;while(I);return{top:r,left:u}}class Z{constructor(r){this.element=r}getHorizontalScroll(){return this.element.scrollLeft}getVerticalScroll(){return this.element.scrollTop}getMaxHorizontalScroll(){return this.element.scrollWidth-this.element.clientWidth}getMaxVerticalScroll(){return this.element.scrollHeight-this.element.clientHeight}getHorizontalElementScrollOffset(r,u){return D(r).left-D(u).left}getVerticalElementScrollOffset(r,u){return D(r).top-D(u).top}scrollTo(r,u){this.element.scrollLeft=r,this.element.scrollTop=u}}class _{constructor(){this.element=window}getHorizontalScroll(){return window.scrollX||document.documentElement.scrollLeft}getVerticalScroll(){return window.scrollY||document.documentElement.scrollTop}getMaxHorizontalScroll(){return Math.max(document.body.scrollWidth,document.documentElement.scrollWidth,document.body.offsetWidth,document.documentElement.offsetWidth,document.body.clientWidth,document.documentElement.clientWidth)-window.innerWidth}getMaxVerticalScroll(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)-window.innerHeight}getHorizontalElementScrollOffset(r){return(window.scrollX||document.documentElement.scrollLeft)+r.getBoundingClientRect().left}getVerticalElementScrollOffset(r){return(window.scrollY||document.documentElement.scrollTop)+r.getBoundingClientRect().top}scrollTo(r,u){window.scrollTo(r,u)}}const M={elements:[],cancelMethods:[],add:(t,r)=>{M.elements.push(t),M.cancelMethods.push(r)},remove:(t,r)=>{const u=M.elements.indexOf(t);u>-1&&(r&&M.cancelMethods[u](),M.elements.splice(u,1),M.cancelMethods.splice(u,1))}},y=typeof window!="undefined",l={cancelOnUserAction:!0,easing:t=>--t*t*t+1,elementToScroll:y?window:null,horizontalOffset:0,maxDuration:3e3,minDuration:250,speed:500,verticalOffset:0};function d(t,r={}){return x(this,void 0,void 0,function*(){if(y){if(!window.Promise)throw"Browser doesn't support Promises, and animated-scroll-to depends on it, please provide a polyfill."}else return new Promise(ie=>{ie(!1)});let u,I,O,o=Object.assign(Object.assign({},l),r);const c=o.elementToScroll===window,i=!!o.elementToScroll.nodeName;if(!c&&!i)throw"Element to scroll needs to be either window or DOM element.";const H=c?document.documentElement:o.elementToScroll;getComputedStyle(H).getPropertyValue("scroll-behavior")==="smooth"&&console.warn(`${H.tagName} has "scroll-behavior: smooth" which can mess up with animated-scroll-to's animations`);const w=c?new _:new Z(o.elementToScroll);if(t instanceof Element){if(O=t,i&&(!o.elementToScroll.contains(O)||o.elementToScroll.isSameNode(O)))throw"options.elementToScroll has to be a parent of scrollToElement";u=w.getHorizontalElementScrollOffset(O,o.elementToScroll),I=w.getVerticalElementScrollOffset(O,o.elementToScroll)}else if(typeof t=="number")u=w.getHorizontalScroll(),I=t;else if(Array.isArray(t)&&t.length===2)u=t[0]===null?w.getHorizontalScroll():t[0],I=t[1]===null?w.getVerticalScroll():t[1];else throw`Wrong function signature. Check documentation. +Available method signatures are: + animateScrollTo(y:number, options) + animateScrollTo([x:number | null, y:number | null], options) + animateScrollTo(scrollToElement:Element, options)`;u+=o.horizontalOffset,I+=o.verticalOffset;const F=w.getMaxHorizontalScroll(),te=w.getHorizontalScroll();u>F&&(u=F);const $=u-te,G=w.getMaxVerticalScroll(),b=w.getVerticalScroll();I>G&&(I=G);const re=I-b,ee=Math.abs(Math.round($/1e3*o.speed)),ne=Math.abs(Math.round(re/1e3*o.speed));let ue=ee>ne?ee:ne;return ueo.maxDuration&&(ue=o.maxDuration),new Promise((ie,de)=>{$===0&&re===0&&ie(!0),M.remove(w.element,!0);let me;const ge=()=>{Me(),cancelAnimationFrame(me),ie(!1)};M.add(w.element,ge);const ye=fe=>fe.preventDefault(),oe=o.cancelOnUserAction?ge:ye,se=o.cancelOnUserAction?{passive:!0}:{passive:!1},ce=["wheel","touchstart","keydown","mousedown"],Me=()=>{ce.forEach(fe=>{w.element.removeEventListener(fe,oe,se)})};ce.forEach(fe=>{w.element.addEventListener(fe,oe,se)});const Ae=Date.now(),Ne=()=>{var fe=Date.now()-Ae,Le=fe/ue;const ve=Math.round(te+$*o.easing(Le)),g=Math.round(b+re*o.easing(Le));fet.length)&&(r=t.length);for(var u=0,I=new Array(r);u0;return(0,e.useEffect)(function(){var ee=o.replace("#","");ee&&setTimeout(function(){var ne=document.getElementById(decodeURIComponent(ee));ne&&L(ne.offsetTop-80,{maxDuration:300})},1)},[H,o]),e.createElement("div",{className:"dumi-default-doc-layout","data-mobile-sidebar-active":te||void 0,onClick:function(){return $(!1)}},e.createElement(E.ql,null,e.createElement("html",{lang:r.locale.replace(/-.+$/,"")}),b.title&&e.createElement("title",null,b.title),b.title&&e.createElement("meta",{property:"og:title",content:b.title}),b.description&&e.createElement("meta",{name:"description",content:b.description}),b.description&&e.createElement("meta",{property:"og:description",content:b.description}),b.keywords&&e.createElement("meta",{name:"keywords",content:b.keywords.join(",")}),b.keywords&&b.keywords.map(function(ee){return e.createElement("meta",{key:ee,property:"article:tag",content:ee})}),k&&e.createElement("link",{rel:"canonical",href:k+c})),e.createElement(R.Z,null),e.createElement(q.Z,null),e.createElement(P.Z,null),re&&e.createElement("div",{className:"dumi-default-doc-layout-mobile-bar"},e.createElement("button",{type:"button",className:"dumi-default-sidebar-btn",onClick:function(ne){ne.stopPropagation(),$(function(ue){return!ue})}},e.createElement(V,null),r.formatMessage({id:"layout.sidebar.btn"}))),e.createElement("main",null,re&&e.createElement(v.Z,null),e.createElement(Q.Z,null,e.createElement("article",null,u),e.createElement(B.Z,null),e.createElement(W.Z,null)),b.toc==="content"&&e.createElement("div",{className:"dumi-default-doc-layout-toc-wrapper"},e.createElement("h4",null,"TABLE OF CONTENTS"),e.createElement(T.Z,null))))},n=p},86174:function(A,S,a){"use strict";a.d(S,{Z:function(){return M}});var e=a(59619),m=a(77617);function N(y,l){return V(y)||Y(y,l)||h(y,l)||j()}function j(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h(y,l){if(y){if(typeof y=="string")return z(y,l);var d=Object.prototype.toString.call(y).slice(8,-1);if(d==="Object"&&y.constructor&&(d=y.constructor.name),d==="Map"||d==="Set")return Array.from(y);if(d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d))return z(y,l)}}function z(y,l){(l==null||l>y.length)&&(l=y.length);for(var d=0,L=new Array(l);dt in n?m(n,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[t]=r,Y=(n,t)=>{for(var r in t||(t={}))j.call(t,r)&&z(n,r,t[r]);if(N)for(var r of N(t))h.call(t,r)&&z(n,r,t[r]);return n};const V=n=>e.createElement("svg",Y({viewBox:"64 64 896 896"},n),e.createElement("path",{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 0 0 0 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}));var U="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNODcyIDQ3NEgyODYuOWwzNTAuMi0zMDRjNS42LTQuOSAyLjItMTQtNS4yLTE0aC04OC41Yy0zLjkgMC03LjYgMS40LTEwLjUgMy45TDE1NSA0ODcuOGEzMS45NiAzMS45NiAwIDAgMCAwIDQ4LjNMNTM1LjEgODY2YzEuNSAxLjMgMy4zIDIgNS4yIDJoOTEuNWM3LjQgMCAxMC44LTkuMiA1LjItMTRMMjg2LjkgNTUwSDg3MmM0LjQgMCA4LTMuNiA4LTh2LTYwYzAtNC40LTMuNi04LTgtOHoiLz48L3N2Zz4=",x=Object.defineProperty,D=Object.getOwnPropertySymbols,Z=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable,M=(n,t,r)=>t in n?x(n,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[t]=r,y=(n,t)=>{for(var r in t||(t={}))Z.call(t,r)&&M(n,r,t[r]);if(D)for(var r of D(t))_.call(t,r)&&M(n,r,t[r]);return n};const l=n=>e.createElement("svg",y({viewBox:"64 64 896 896"},n),e.createElement("path",{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}),e.createElement("path",{d:"M686.7 638.6 544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}));var d="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNNTEyIDY0QzI2NC42IDY0IDY0IDI2NC42IDY0IDUxMnMyMDAuNiA0NDggNDQ4IDQ0OCA0NDgtMjAwLjYgNDQ4LTQ0OFM3NTkuNCA2NCA1MTIgNjR6bTAgODIwYy0yMDUuNCAwLTM3Mi0xNjYuNi0zNzItMzcyczE2Ni42LTM3MiAzNzItMzcyIDM3MiAxNjYuNiAzNzIgMzcyLTE2Ni42IDM3Mi0zNzIgMzcyeiIvPjxwYXRoIGQ9Ik02ODYuNyA2MzguNiA1NDQuMSA1MzUuNVYyODhjMC00LjQtMy42LTgtOC04SDQ4OGMtNC40IDAtOCAzLjYtOCA4djI3NS40YzAgMi42IDEuMiA1IDMuMyA2LjVsMTY1LjQgMTIwLjZjMy42IDIuNiA4LjYgMS44IDExLjItMS43bDI4LjYtMzljMi42LTMuNyAxLjgtOC43LTEuOC0xMS4yeiIvPjwvc3ZnPg==",L=Object.defineProperty,E=Object.getOwnPropertySymbols,Q=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable,P=(n,t,r)=>t in n?L(n,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[t]=r,W=(n,t)=>{for(var r in t||(t={}))Q.call(t,r)&&P(n,r,t[r]);if(E)for(var r of E(t))B.call(t,r)&&P(n,r,t[r]);return n};const R=n=>e.createElement("svg",W({viewBox:"64 64 896 896"},n),e.createElement("path",{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 0 0 0-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 0 0 9.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}));var q="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNMjU3LjcgNzUyYzIgMCA0LS4yIDYtLjVMNDMxLjkgNzIyYzItLjQgMy45LTEuMyA1LjMtMi44bDQyMy45LTQyMy45YTkuOTYgOS45NiAwIDAgMCAwLTE0LjFMNjk0LjkgMTE0LjljLTEuOS0xLjktNC40LTIuOS03LjEtMi45cy01LjIgMS03LjEgMi45TDI1Ni44IDUzOC44Yy0xLjUgMS41LTIuNCAzLjMtMi44IDUuM2wtMjkuNSAxNjguMmEzMy41IDMzLjUgMCAwIDAgOS40IDI5LjhjNi42IDYuNCAxNC45IDkuOSAyMy44IDkuOXptNjcuNC0xNzQuNEw2ODcuOCAyMTVsNzMuMyA3My4zLTM2Mi43IDM2Mi42LTg4LjkgMTUuNyAxNS42LTg5ek04ODAgODM2SDE0NGMtMTcuNyAwLTMyIDE0LjMtMzIgMzJ2MzZjMCA0LjQgMy42IDggOCA4aDc4NGM0LjQgMCA4LTMuNiA4LTh2LTM2YzAtMTcuNy0xNC4zLTMyLTMyLTMyeiIvPjwvc3ZnPg==",v=a(59619);function T(n,t){return le(n)||X(n,t)||K(n,t)||C()}function C(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function K(n,t){if(n){if(typeof n=="string")return J(n,t);var r=Object.prototype.toString.call(n).slice(8,-1);if(r==="Object"&&n.constructor&&(r=n.constructor.name),r==="Map"||r==="Set")return Array.from(n);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return J(n,t)}}function J(n,t){(t==null||t>n.length)&&(t=n.length);for(var r=0,u=new Array(t);rt in n?m(n,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[t]=r,Y=(n,t)=>{for(var r in t||(t={}))j.call(t,r)&&z(n,r,t[r]);if(N)for(var r of N(t))h.call(t,r)&&z(n,r,t[r]);return n};const V=n=>e.createElement("svg",Y({fillRule:"evenodd",viewBox:"64 64 896 896"},n),e.createElement("path",{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 0 1 0 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 0 1 0 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 0 1-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 0 1-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7a.169.169 0 0 1-.06-.07.12.12 0 0 1 0-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7a.199.199 0 0 1-.06-.09.12.12 0 0 1 0-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 0 1 .07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 0 1 .07 0z"}));var U="data:image/svg+xml;base64,PHN2ZyBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiPjxwYXRoIGQ9Ik03OTkuODYgMTY2LjMxYy4wMiAwIC4wNC4wMi4wOC4wNmw1Ny42OSA1Ny43Yy4wNC4wMy4wNS4wNS4wNi4wOGEuMTIuMTIgMCAwIDEgMCAuMDZjMCAuMDMtLjAyLjA1LS4wNi4wOUw1NjkuOTMgNTEybDI4Ny43IDI4Ny43Yy4wNC4wNC4wNS4wNi4wNi4wOWEuMTIuMTIgMCAwIDEgMCAuMDdjMCAuMDItLjAyLjA0LS4wNi4wOGwtNTcuNyA1Ny42OWMtLjAzLjA0LS4wNS4wNS0uMDcuMDZhLjEyLjEyIDAgMCAxLS4wNyAwYy0uMDMgMC0uMDUtLjAyLS4wOS0uMDZMNTEyIDU2OS45M2wtMjg3LjcgMjg3LjdjLS4wNC4wNC0uMDYuMDUtLjA5LjA2YS4xMi4xMiAwIDAgMS0uMDcgMGMtLjAyIDAtLjA0LS4wMi0uMDgtLjA2bC01Ny42OS01Ny43YS4xNjkuMTY5IDAgMCAxLS4wNi0uMDcuMTIuMTIgMCAwIDEgMC0uMDdjMC0uMDMuMDItLjA1LjA2LS4wOUw0NTQuMDcgNTEybC0yODcuNy0yODcuN2EuMTk5LjE5OSAwIDAgMS0uMDYtLjA5LjEyLjEyIDAgMCAxIDAtLjA3YzAtLjAyLjAyLS4wNC4wNi0uMDhsNTcuNy01Ny42OWMuMDMtLjA0LjA1LS4wNS4wNy0uMDZhLjEyLjEyIDAgMCAxIC4wNyAwYy4wMyAwIC4wNS4wMi4wOS4wNkw1MTIgNDU0LjA3bDI4Ny43LTI4Ny43Yy4wNC0uMDQuMDYtLjA1LjA5LS4wNmEuMTIuMTIgMCAwIDEgLjA3IDB6Ii8+PC9zdmc+",x=Object.defineProperty,D=Object.getOwnPropertySymbols,Z=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable,M=(n,t,r)=>t in n?x(n,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[t]=r,y=(n,t)=>{for(var r in t||(t={}))Z.call(t,r)&&M(n,r,t[r]);if(D)for(var r of D(t))_.call(t,r)&&M(n,r,t[r]);return n};const l=n=>e.createElement("svg",y({viewBox:"64 64 896 896"},n),e.createElement("path",{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}));var d="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNOTA0IDE2MEgxMjBjLTQuNCAwLTggMy42LTggOHY2NGMwIDQuNCAzLjYgOCA4IDhoNzg0YzQuNCAwIDgtMy42IDgtOHYtNjRjMC00LjQtMy42LTgtOC04em0wIDYyNEgxMjBjLTQuNCAwLTggMy42LTggOHY2NGMwIDQuNCAzLjYgOCA4IDhoNzg0YzQuNCAwIDgtMy42IDgtOHYtNjRjMC00LjQtMy42LTgtOC04em0wLTMxMkgxMjBjLTQuNCAwLTggMy42LTggOHY2NGMwIDQuNCAzLjYgOCA4IDhoNzg0YzQuNCAwIDgtMy42IDgtOHYtNjRjMC00LjQtMy42LTgtOC04eiIvPjwvc3ZnPg==",L=a(59619),E=a(92533),Q=a(41970),B=a(35861),P=a(4645),W=a(39891),R=a(83633),q=a(98594),v=a(49202);function T(n,t){return le(n)||X(n,t)||K(n,t)||C()}function C(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function K(n,t){if(n){if(typeof n=="string")return J(n,t);var r=Object.prototype.toString.call(n).slice(8,-1);if(r==="Object"&&n.constructor&&(r=n.constructor.name),r==="Map"||r==="Set")return Array.from(n);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return J(n,t)}}function J(n,t){(t==null||t>n.length)&&(t=n.length);for(var r=0,u=new Array(t);rM.length)&&(y=M.length);for(var l=0,d=new Array(y);l2?N.createElement("div",{className:"dumi-default-lang-select"},N.createElement("select",{defaultValue:L,onChange:function(B){m.m8.push(x({pathname:m.m8.location.pathname,current:E,target:l.find(function(P){var W=P.id;return W===B.target.value})}))}},l.map(function(Q){return N.createElement("option",{key:Q.id,value:Q.id},Q.name)})),N.createElement(e.r,null)):N.createElement(D,{locale:l.find(function(Q){var B=Q.id;return B!==L}),current:E})},_=Z},43140:function(A,S,a){"use strict";a.d(S,{Z:function(){return j}});var e=a(59619),m=a(77617),N=function(){var z=(0,e.WF)(),Y=z.themeConfig,V=(0,e.bU)();return m.createElement(e.rU,{className:"dumi-default-logo",to:"base"in V?V.base:"/"},Y.logo!==!1&&m.createElement("img",{src:Y.logo||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIQAAACCCAMAAACww5CIAAACf1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8YkP8AAAACCxMamv/6+voaGhoXi/YYjv8aoP8cq/8dr/8bo/8cqP8bpv8Ykv8drv8BAwUcrP8Zlf8Xjf/s7OzLy8scp/8anP8ZmP/d3d0BBArg4ODT09O7u7sEGCsKCgoanf8YlP/8/Pz09PTIyMgMTIV1dXUGKEVEREQ0NDQODg4GBgYdsv8dsf8Zl//m5uYVgOXj4+MWgtfW1tYTc87BwcERbLWzs7Ovr6+np6cQX6OgoKCTk5MMSXlwcHBra2tiYmIVFRUetf/39/fp6ekWhOkXi+QVfNvY2NjPz88TdcUSb7u6urq3t7cPYK0NUJGQkJCLi4ttbW0JO2cINFtVVVVRUVEHMFEHLEs6OjoEHDEiIiIcHBwXj/vx8fEWh+4Sb8gRbL+rq6upqakOVZiWlpaJiYmGhoYMSIF9fX15eXkKPnQLRHJMTExHR0c9PT0FHzkqKiomJiYEFyUBBw8bovfu7u4Wht4UedsUeMrFxcW9vb0RZrOkpKSampoPXZqAgIALQmtlZWUJOGJZWVkIMFcFIUExMTEwMDAtLS0DEh8Zl/v4+PgXj/QWhvEWhvAYku8YjuwUfNcUfNAVfc0RaLkSaKsRZ6kPWqENUYlbW1sCEBhkSPCkAAAAOHRSTlMA87y4BeKrltbFnUDo0MCup6D67t7ayZKGemtmWS8rEwLNso1wVEpFGaR+UDUlHwmBYls5i1oN/DMym4YAAAfTSURBVHjaxNndS1NxHMfxX5s6t1Kz1KzsuazMnqjgyxv03ovtQrYxUBEfLkREVBQf0AsFBRUUQvEiSVFQ0YsuiiIiqKC/oH+o31lzjtPZg55zttfVNnbx5ffw+X53pmx5UFl2+XLZ4zpVOPWlJFTntYyiBwF/VbX39Sv9upYU9/QHjbXe6qqayrrnylXXi0kov3GVuFiMuNqbHhIu3FcuuohZZ+jDh7mdXkwqlGtKMGmOSFzrGiYe5ZL4+vdsd/SHFyYxtIQlIdiD4ftCa39osTlxRtzwHO1tUOLm0XYk6T3asMRtdKHdUs6qv+L1l/vKgak2SYjqN+1yYg2G5NgR4Pd5/F7fk9sO3YhSkoYkaW40KCk2Rj9KUoikqmtOn8YpydE6J7xFyq5yUhxIjvZJcUfZ5EOb6oxGQmPdtEQlR4Mxupc6IoOdzWiVypabaF1BiesIS876OiSufRXtvO0DcSi2dAN+ZcclYFZsCaOps3nYUOKprDTiSWzqAioCnpIX9ep03pxkw7jYtMWx0pdn7Jb2i1jixN3cM6OGFCti0zgpyopOsw6xiZHoyHIPLIhNHdD7bWR+c7znFD3+PNp+vxhmRkNi28BoWAzBPbQHKhdlQLe4ogsoVTl4ijYjrmiKATdUdvfjh9Ely8DVHFvWe3HJMBBQ2QWAd+KSeeBxjtuxKC7ZzG07Ht0DusQlfwDfs2wZ4b2EYVBcESHO81BlcIWESXHFV7Qss5aXY1FxRSj7L7QAhv3tsaVBMVn8Ou1MFUtjW3sYKjL0jO6QWJiA7iZxysBbtDplpRT4KZbQWkUbHRMnGFUUKwuNaH1iaRJ+Tf8bDbqcWJH2HuCV+l9DpkuxtdsuGlpYHNAJ1FqNMjnE9QocOXJCPwJ309zPT9la8e5yUJwwC/jTBNWQ5EkIqEyzHROSJzvWSeFDW5M8OUArsdgMq2EmanOyGB4WSyMYAhZp2TwkJouw2mZvmusUSwtraA//m7DXZ8SsBxiQM5tGSxNuv3+ZU/NmIpfN9qDXxp1sO4LDNrE202J6cHE1TVq2f1uNiA39K9/7JJ0JwGe6nvOSZ4OA1/R0bFbyrBWoMUX2nOTZAOA3pcSXjFW7UOJnU17VAYeZv98pTvsB1KsTRVXAtqQVA/rFWSNo11SKiuRYZeknEBRn7WJ4rZKuX8pcROvBj6g4rLUZQ8NJYBo2Jb/ax2KkhKYf6I1I3oWngKqUhfgkBTCL1pics1elICaS/5Y9jk+XBdEBeJKhHZGCCLZAWTIkBqQgNlr+NbGi2wHgS1tTAbQNAxW3i1R58WWgd725ANZ7gXPFNaqagrvwt1t7aW0qiOIAPlErPqJCq6JWrW8r1ar1xf0n4NxnnpCELEKyCNmkJZSQRSCbQltooS4sVApiC10U2kWhFRUEEdGF4vuNH8g7c9NQ2pjepPcB/r5ADjlnzp2ZM+QMXHeYb+1WfO5hi5QfveYe33XJ4+d8a3MNQHbI75KhMt9z9wF4FRNcIi3wO94bAHJiQHCHNgmgh3QD8D1MCK6I+KeNCUgbgFFRcEX8Qwhov014o/juUlEoxeqrgpsA7oWp4AZprnpv1ANgShFcoU4a+36jMgOuVGYmnuJ1Wb0hKWqCC8QCgI4dqyfRbNCFoqDBX7Xz6C0AS660K3UKQCdhuqAbdqFT+B8mAXQTbhtbpM7ng4Yn1oytOwFMu5AP9QGAa4Qz8lFwvFWIH6G7Qjijc8/LDueDyvd4z151EYBvwOF+lRFTAK6TGi+ACWdLk0ozANqvkpojAFJKRnCSlFt3m8pLc9bJTylVn64ty9rJfEl1cpVKbH3uJ2v1QleUqOCI2h9xeeP0aVqLCA4JSLk6s7hu6CbkqOAIGpyB7iRZ5xLvFWlHEkITyjK/41/v9h0AC3lngpCz0PXWf0yDUcmBhFDt0T/flx8CkNL8VLAZjUhvAHSQek5AtyALdqP5e9BdbPCkZsbuFRKVvlRHs/W1AfC902yNgoriWwCeqw1fSL+J2VkWNBF8vckr6mPQ3ZcjtkVBA/3z4Ju6Bs5ANzck2BQFpUMTxlVZQ4ege95vUxRUHoPOe5s01OWBbryf2hEFDX4Fc4Vs4gaYZ3ZEQeXBJPgMcFPnwYzJVmeE6jGsGCNAE/rAlPIBamkMQv9YCLpzxJRjYMr5BLXyg5EvgTlKTOoEkw2LUct6dTz4ojqCNO04mMm4ZE150mhMuQ+jHppwAUxqUM5QK9qkPLIE5jhpygkvmHJYiW45FaL8IwmdZy9pUtc2MK9HtvgloZngJyMVp3tJ846ASb7Q1NYrg1JN+ukDs4e05LwHTO5bUKG0tRBEeXAKzJ3rpEXdB8C9fBIWKW0hhOBIBdy2K6R11zvALY6EFYE21yHF4OdKEkz7ObIlXXvAhV4OquoApaYbpCo9qayA29lLturibhimSgOSFjG1ILRwYnwShn09xArnT8PwdnHML6n+hl+2gD8Wjj+rLMOwq49Y5dZpVKUWS++VcCwdCdT5/Uhck5SH45VpVO3qJFbq2Y5Vvly2VBgQY5KqKWI6HY+n06KiqVJMSQyP/37wB6v29xGrnThyEDWh5dyr+fJscbQw/OjRcGG0OFvO3n+QSqKm7exlYgsvNgolkyFs1HGV2OQgTGsjNjnVBtO8Owj3nwbhgWnttgWxy2PaoWaC+AuAXqWYKHupMgAAAABJRU5ErkJggg==",alt:Y.name}),Y.name)},j=N},35449:function(A,S,a){"use strict";a.d(S,{Z:function(){return y}});var e=a(51431),m=a(59619),N=a(16217),j=a(77617);function h(){return h=Object.assign?Object.assign.bind():function(l){for(var d=1;dl.length)&&(d=l.length);for(var L=0,E=new Array(d);LM.length)&&(y=M.length);for(var l=0,d=new Array(y);lc in o?m(o,c,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[c]=i,Y=(o,c)=>{for(var i in c||(c={}))j.call(c,i)&&z(o,i,c[i]);if(N)for(var i of N(c))h.call(c,i)&&z(o,i,c[i]);return o};const V=o=>e.createElement("svg",Y({viewBox:"64 64 896 896"},o),e.createElement("path",{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0 0 48.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}));var U="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNODYyIDQ2NS4zaC04MWMtNC42IDAtOSAyLTEyLjEgNS41TDU1MCA3MjMuMVYxNjBjMC00LjQtMy42LTgtOC04aC02MGMtNC40IDAtOCAzLjYtOCA4djU2My4xTDI1NS4xIDQ3MC44Yy0zLTMuNS03LjQtNS41LTEyLjEtNS41aC04MWMtNi44IDAtMTAuNSA4LjEtNiAxMy4yTDQ4Ny45IDg2MWEzMS45NiAzMS45NiAwIDAgMCA0OC4zIDBMODY4IDQ3OC41YzQuNS01LjIuOC0xMy4yLTYtMTMuMnoiLz48L3N2Zz4=",x=Object.defineProperty,D=Object.getOwnPropertySymbols,Z=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable,M=(o,c,i)=>c in o?x(o,c,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[c]=i,y=(o,c)=>{for(var i in c||(c={}))Z.call(c,i)&&M(o,i,c[i]);if(D)for(var i of D(c))_.call(c,i)&&M(o,i,c[i]);return o};const l=o=>e.createElement("svg",y({viewBox:"64 64 896 896"},o),e.createElement("path",{d:"M868 545.5 536.1 163a31.96 31.96 0 0 0-48.3 0L156 545.5a7.97 7.97 0 0 0 6 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}));var d="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNODY4IDU0NS41IDUzNi4xIDE2M2EzMS45NiAzMS45NiAwIDAgMC00OC4zIDBMMTU2IDU0NS41YTcuOTcgNy45NyAwIDAgMCA2IDEzLjJoODFjNC42IDAgOS0yIDEyLjEtNS41TDQ3NCAzMDAuOVY4NjRjMCA0LjQgMy42IDggOCA4aDYwYzQuNCAwIDgtMy42IDgtOFYzMDAuOWwyMTguOSAyNTIuM2MzIDMuNSA3LjQgNS41IDEyLjEgNS41aDgxYzYuOCAwIDEwLjUtOCA2LTEzLjJ6Ii8+PC9zdmc+",L=Object.defineProperty,E=Object.getOwnPropertySymbols,Q=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable,P=(o,c,i)=>c in o?L(o,c,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[c]=i,W=(o,c)=>{for(var i in c||(c={}))Q.call(c,i)&&P(o,i,c[i]);if(E)for(var i of E(c))B.call(c,i)&&P(o,i,c[i]);return o};const R=o=>e.createElement("svg",W({viewBox:"64 64 896 896"},o),e.createElement("path",{d:"M909.6 854.5 649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0 0 11.6 0l43.6-43.5a8.2 8.2 0 0 0 0-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}));var q="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNOTA5LjYgODU0LjUgNjQ5LjkgNTk0LjhDNjkwLjIgNTQyLjcgNzEyIDQ3OSA3MTIgNDEyYzAtODAuMi0zMS4zLTE1NS40LTg3LjktMjEyLjEtNTYuNi01Ni43LTEzMi04Ny45LTIxMi4xLTg3LjlzLTE1NS41IDMxLjMtMjEyLjEgODcuOUMxNDMuMiAyNTYuNSAxMTIgMzMxLjggMTEyIDQxMmMwIDgwLjEgMzEuMyAxNTUuNSA4Ny45IDIxMi4xQzI1Ni41IDY4MC44IDMzMS44IDcxMiA0MTIgNzEyYzY3IDAgMTMwLjYtMjEuOCAxODIuNy02MmwyNTkuNyAyNTkuNmE4LjIgOC4yIDAgMCAwIDExLjYgMGw0My42LTQzLjVhOC4yIDguMiAwIDAgMCAwLTExLjZ6TTU3MC40IDU3MC40QzUyOCA2MTIuNyA0NzEuOCA2MzYgNDEyIDYzNnMtMTE2LTIzLjMtMTU4LjQtNjUuNkMyMTEuMyA1MjggMTg4IDQ3MS44IDE4OCA0MTJzMjMuMy0xMTYuMSA2NS42LTE1OC40QzI5NiAyMTEuMyAzNTIuMiAxODggNDEyIDE4OHMxMTYuMSAyMy4yIDE1OC40IDY1LjZTNjM2IDM1Mi4yIDYzNiA0MTJzLTIzLjMgMTE2LjEtNjUuNiAxNTguNHoiLz48L3N2Zz4=",v=a(59619),T=a(43664),C=(0,e.forwardRef)(function(o,c){var i=(0,v.YB)(),H=(0,e.useRef)(!1),k=(0,e.useRef)(null);return(0,e.useImperativeHandle)(c,function(){return k.current}),e.createElement("input",{className:"dumi-default-search-bar-input",onCompositionStart:function(){return H.current=!0},onCompositionEnd:function(F){H.current=!1,o.onChange(F.currentTarget.value)},onFocus:o.onFocus,onBlur:o.onBlur,onKeyDown:function(F){["ArrowDown","ArrowUp"].includes(F.key)&&F.preventDefault(),F.key==="Escape"&&!H.current&&F.currentTarget.blur()},onChange:function(F){var te=F.target.value;setTimeout(function(){H.current||o.onChange(te)},1)},placeholder:i.formatMessage({id:"header.search.placeholder"}),ref:k})}),K=function(c){return(0,e.useEffect)(function(){if(c.visible)document.body.style.overflow="hidden";else{var i;document.body.style.overflow="",(i=c.onClose)===null||i===void 0||i.call(c)}},[c.visible]),c.visible?e.createElement("div",{className:"dumi-default-search-modal"},e.createElement("div",{className:"dumi-default-search-modal-mask",onClick:c.onMaskClick}),e.createElement("div",{className:"dumi-default-search-modal-content"},c.children)):null},J;function X(o,c){return t(o)||n(o,c)||ae(o,c)||le()}function le(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ae(o,c){if(o){if(typeof o=="string")return p(o,c);var i=Object.prototype.toString.call(o).slice(8,-1);if(i==="Object"&&o.constructor&&(i=o.constructor.name),i==="Map"||i==="Set")return Array.from(o);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return p(o,c)}}function p(o,c){(c==null||c>o.length)&&(c=o.length);for(var i=0,H=new Array(c);i=0&&fe>=0&&Ne<=window.innerHeight&&Le<=window.innerWidth;ve?w.current.focus():(ne(""),ye(!0),setTimeout(function(){var g;(g=F.current)===null||g===void 0||g.focus()}))}ce.key==="Escape"&&(ce.preventDefault(),ye(!1))};return document.addEventListener("keydown",oe),function(){return document.removeEventListener("keydown",oe)}},[]),e.createElement("div",{className:"dumi-default-search-bar"},e.createElement(R,{className:"dumi-default-search-bar-svg"}),e.createElement(C,{onFocus:function(){return k(!0)},onBlur:function(){setTimeout(function(){k(!1)},1)},onChange:function(se){return ne(se)},ref:w}),e.createElement("span",{className:"dumi-default-search-shortcut"},G," K"),ee.trim()&&H&&(ue.length||!ie)&&!ge&&e.createElement("div",{className:"dumi-default-search-popover"},e.createElement("section",null,e.createElement(T.Z,{data:ue,loading:ie}))),e.createElement(K,{visible:ge,onMaskClick:function(){ye(!1)},onClose:function(){return ne("")}},e.createElement("div",{style:{position:"relative"}},e.createElement(R,{className:"dumi-default-search-bar-svg"}),e.createElement(C,{onFocus:function(){return k(!0)},onBlur:function(){setTimeout(function(){k(!1)},1)},onChange:function(se){return ne(se)},ref:F})),e.createElement(T.Z,{data:ue,loading:ie,onItemSelect:function(){ye(!1)}}),e.createElement("footer",null,e.createElement("ul",{className:"dumi-default-search-modal-commands"},e.createElement("li",{className:"dumi-default-search-modal-commands-arrow"},e.createElement("span",{className:"dumi-default-search-modal-shortcut"},e.createElement(l,{width:"10px",height:"10px",fill:"rgba(0, 0, 0, 0.45)"})),e.createElement("span",{className:"dumi-default-search-modal-shortcut"},e.createElement(V,{width:"10px",height:"10px",fill:"rgba(0, 0, 0, 0.45)"})),e.createElement("span",{className:"dumi-default-search-modal-commands-text"},"to navigate")),e.createElement("li",null,e.createElement("span",{className:"dumi-default-search-modal-shortcut"},"esc"),e.createElement("span",{className:"dumi-default-search-modal-commands-text"},"to close"))))))},O=I},59785:function(A,S,a){"use strict";a.d(S,{Z:function(){return q}});var e=a(77617),m=Object.defineProperty,N=Object.getOwnPropertySymbols,j=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,z=(v,T,C)=>T in v?m(v,T,{enumerable:!0,configurable:!0,writable:!0,value:C}):v[T]=C,Y=(v,T)=>{for(var C in T||(T={}))j.call(T,C)&&z(v,C,T[C]);if(N)for(var C of N(T))h.call(T,C)&&z(v,C,T[C]);return v};const V=v=>e.createElement("svg",Y({viewBox:"0 0 1024 1024"},v),e.createElement("path",{d:"m885.2 446.3-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0 0 60.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}));var U="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0Ij48cGF0aCBkPSJtODg1LjIgNDQ2LjMtLjItLjgtMTEyLjItMjg1LjFjLTUtMTYuMS0xOS45LTI3LjItMzYuOC0yNy4ySDI4MS4yYy0xNyAwLTMyLjEgMTEuMy0zNi45IDI3LjZMMTM5LjQgNDQzbC0uMy43LS4yLjhjLTEuMyA0LjktMS43IDkuOS0xIDE0LjgtLjEgMS42LS4yIDMuMi0uMiA0LjhWODMwYTYwLjkgNjAuOSAwIDAgMCA2MC44IDYwLjhoNjI3LjJjMzMuNSAwIDYwLjgtMjcuMyA2MC45LTYwLjhWNDY0LjFjMC0xLjMgMC0yLjYtLjEtMy43LjQtNC45IDAtOS42LTEuMy0xNC4xem0tMjk1LjgtNDMtLjMgMTUuN2MtLjggNDQuOS0zMS44IDc1LjEtNzcuMSA3NS4xLTIyLjEgMC00MS4xLTcuMS01NC44LTIwLjZTNDM2IDQ0MS4yIDQzNS42IDQxOWwtLjMtMTUuN0gyMjkuNUwzMDkgMjEwaDM5OS4ybDgxLjcgMTkzLjNINTg5LjR6bS0zNzUgNzYuOGgxNTcuM2MyNC4zIDU3LjEgNzYgOTAuOCAxNDAuNCA5MC44IDMzLjcgMCA2NS05LjQgOTAuMy0yNy4yIDIyLjItMTUuNiAzOS41LTM3LjQgNTAuNy02My42aDE1Ni41VjgxNEgyMTQuNFY0ODAuMXoiLz48L3N2Zz4=",x=a(59619);function D(v,T){return l(v)||y(v,T)||_(v,T)||Z()}function Z(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _(v,T){if(v){if(typeof v=="string")return M(v,T);var C=Object.prototype.toString.call(v).slice(8,-1);if(C==="Object"&&v.constructor&&(C=v.constructor.name),C==="Map"||C==="Set")return Array.from(v);if(C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C))return M(v,T)}}function M(v,T){(T==null||T>v.length)&&(T=v.length);for(var C=0,K=new Array(T);C=0){var I,O=J.find(function(o){return o.type==="hint"&&o.activeIndex===p}).value;x.m8.push(O.link),(I=T.onItemSelect)===null||I===void 0||I.call(T,O),document.activeElement.blur()}["Escape","Enter"].includes(u.key)&&n(-1)};return document.addEventListener("keydown",t),function(){return document.removeEventListener("keydown",t)}}),e.createElement("div",{className:"dumi-default-search-result",onMouseEnter:function(){return n(-1)},onMouseDownCapture:function(r){return r.preventDefault()},onMouseUpCapture:function(){document.activeElement.blur()}},T.data.length||T.loading?e.createElement("dl",null,J.map(function(t,r){return t.type==="title"?e.createElement("dt",{key:String(r)},t.value.title):e.createElement("dd",{key:String(r)},e.createElement(x.rU,{to:t.value.link,"data-active":p===t.activeIndex||void 0,onClick:function(){var I;return(I=T.onItemSelect)===null||I===void 0?void 0:I.call(T,t.value)}},e.createElement(B[t.value.type]),e.createElement("h4",null,e.createElement(P,{texts:t.value.highlightTitleTexts})),e.createElement("p",null,e.createElement(P,{texts:t.value.highlightTexts}))))})):e.createElement("div",{className:"dumi-default-search-empty"},e.createElement(V,null),e.createElement(x._H,{id:"search.not.found"})))},q=R},179:function(A,S,a){"use strict";a.d(S,{Z:function(){return h}});var e=a(59619),m=a(62310),N=a(77617),j=function(){var Y=(0,e.TH)(),V=Y.pathname,U=(0,e.eL)(),x=(0,e.tx)();return x?N.createElement("div",{className:"dumi-default-sidebar"},x.map(function(D,Z){return N.createElement("dl",{className:"dumi-default-sidebar-group",key:String(Z)},D.title&&N.createElement("dt",null,D.title),D.children.map(function(_){return N.createElement("dd",{key:_.link},N.createElement(e.OL,{to:_.link,title:_.title,end:!0},_.title),_.link===V&&U.frontmatter.toc==="menu"&&N.createElement(m.Z,null))}))})):null},h=j},89850:function(A,S,a){"use strict";a.d(S,{Z:function(){return ve}});var e=a(77617),m=Object.defineProperty,N=Object.getOwnPropertySymbols,j=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,z=(g,s,f)=>s in g?m(g,s,{enumerable:!0,configurable:!0,writable:!0,value:f}):g[s]=f,Y=(g,s)=>{for(var f in s||(s={}))j.call(s,f)&&z(g,f,s[f]);if(N)for(var f of N(s))h.call(s,f)&&z(g,f,s[f]);return g};const V=g=>e.createElement("svg",Y({viewBox:"64 64 896 896"},g),e.createElement("path",{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-32 736H663.9V602.2h104l15.6-120.7H663.9v-77.1c0-35 9.7-58.8 59.8-58.8h63.9v-108c-11.1-1.5-49-4.8-93.2-4.8-92.2 0-155.3 56.3-155.3 159.6v89H434.9v120.7h104.3V848H176V176h672v672z"}));var U="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNODgwIDExMkgxNDRjLTE3LjcgMC0zMiAxNC4zLTMyIDMydjczNmMwIDE3LjcgMTQuMyAzMiAzMiAzMmg3MzZjMTcuNyAwIDMyLTE0LjMgMzItMzJWMTQ0YzAtMTcuNy0xNC4zLTMyLTMyLTMyem0tMzIgNzM2SDY2My45VjYwMi4yaDEwNGwxNS42LTEyMC43SDY2My45di03Ny4xYzAtMzUgOS43LTU4LjggNTkuOC01OC44aDYzLjl2LTEwOGMtMTEuMS0xLjUtNDktNC44LTkzLjItNC44LTkyLjIgMC0xNTUuMyA1Ni4zLTE1NS4zIDE1OS42djg5SDQzNC45djEyMC43aDEwNC4zVjg0OEgxNzZWMTc2aDY3MnY2NzJ6Ii8+PC9zdmc+",x=Object.defineProperty,D=Object.getOwnPropertySymbols,Z=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable,M=(g,s,f)=>s in g?x(g,s,{enumerable:!0,configurable:!0,writable:!0,value:f}):g[s]=f,y=(g,s)=>{for(var f in s||(s={}))Z.call(s,f)&&M(g,f,s[f]);if(D)for(var f of D(s))_.call(s,f)&&M(g,f,s[f]);return g};const l=g=>e.createElement("svg",y({viewBox:"64 64 896 896"},g),e.createElement("path",{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0 1 38.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}));var d="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNNTExLjYgNzYuM0MyNjQuMyA3Ni4yIDY0IDI3Ni40IDY0IDUyMy41IDY0IDcxOC45IDE4OS4zIDg4NSAzNjMuOCA5NDZjMjMuNSA1LjkgMTkuOS0xMC44IDE5LjktMjIuMnYtNzcuNWMtMTM1LjcgMTUuOS0xNDEuMi03My45LTE1MC4zLTg4LjlDMjE1IDcyNiAxNzEuNSA3MTggMTg0LjUgNzAzYzMwLjktMTUuOSA2Mi40IDQgOTguOSA1Ny45IDI2LjQgMzkuMSA3Ny45IDMyLjUgMTA0IDI2IDUuNy0yMy41IDE3LjktNDQuNSAzNC43LTYwLjgtMTQwLjYtMjUuMi0xOTkuMi0xMTEtMTk5LjItMjEzIDAtNDkuNSAxNi4zLTk1IDQ4LjMtMTMxLjctMjAuNC02MC41IDEuOS0xMTIuMyA0LjktMTIwIDU4LjEtNS4yIDExOC41IDQxLjYgMTIzLjIgNDUuMyAzMy04LjkgNzAuNy0xMy42IDExMi45LTEzLjYgNDIuNCAwIDgwLjIgNC45IDExMy41IDEzLjkgMTEuMy04LjYgNjcuMy00OC44IDEyMS4zLTQzLjkgMi45IDcuNyAyNC43IDU4LjMgNS41IDExOCAzMi40IDM2LjggNDguOSA4Mi43IDQ4LjkgMTMyLjMgMCAxMDIuMi01OSAxODguMS0yMDAgMjEyLjlhMTI3LjUgMTI3LjUgMCAwIDEgMzguMSA5MXYxMTIuNWMuOCA5IDAgMTcuOSAxNSAxNy45IDE3Ny4xLTU5LjcgMzA0LjYtMjI3IDMwNC42LTQyNC4xIDAtMjQ3LjItMjAwLjQtNDQ3LjMtNDQ3LjUtNDQ3LjN6Ii8+PC9zdmc+",L=Object.defineProperty,E=Object.getOwnPropertySymbols,Q=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable,P=(g,s,f)=>s in g?L(g,s,{enumerable:!0,configurable:!0,writable:!0,value:f}):g[s]=f,W=(g,s)=>{for(var f in s||(s={}))Q.call(s,f)&&P(g,f,s[f]);if(E)for(var f of E(s))B.call(s,f)&&P(g,f,s[f]);return g};const R=g=>e.createElement("svg",W({viewBox:"64 64 896 896"},g),e.createElement("path",{d:"M913.9 552.2 805 181.4v-.1c-7.6-22.9-25.7-36.5-48.3-36.5-23.4 0-42.5 13.5-49.7 35.2l-71.4 213H388.8l-71.4-213c-7.2-21.7-26.3-35.2-49.7-35.2-23.1 0-42.5 14.8-48.4 36.6L110.5 552.2c-4.4 14.7 1.2 31.4 13.5 40.7l368.5 276.4c2.6 3.6 6.2 6.3 10.4 7.8l8.6 6.4 8.5-6.4c4.9-1.7 9-4.7 11.9-8.9l368.4-275.4c12.4-9.2 18-25.9 13.6-40.6zM751.7 193.4c1-1.8 2.9-1.9 3.5-1.9 1.1 0 2.5.3 3.4 3L818 394.3H684.5l67.2-200.9zm-487.4 1c.9-2.6 2.3-2.9 3.4-2.9 2.7 0 2.9.1 3.4 1.7l67.3 201.2H206.5l57.8-200zM158.8 558.7l28.2-97.3 202.4 270.2-230.6-172.9zm73.9-116.4h122.1l90.8 284.3-212.9-284.3zM512.9 776 405.7 442.3H620L512.9 776zm157.9-333.7h119.5L580 723.1l90.8-280.8zm-40.7 293.9 207.3-276.7 29.5 99.2-236.8 177.5z"}));var q="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNOTEzLjkgNTUyLjIgODA1IDE4MS40di0uMWMtNy42LTIyLjktMjUuNy0zNi41LTQ4LjMtMzYuNS0yMy40IDAtNDIuNSAxMy41LTQ5LjcgMzUuMmwtNzEuNCAyMTNIMzg4LjhsLTcxLjQtMjEzYy03LjItMjEuNy0yNi4zLTM1LjItNDkuNy0zNS4yLTIzLjEgMC00Mi41IDE0LjgtNDguNCAzNi42TDExMC41IDU1Mi4yYy00LjQgMTQuNyAxLjIgMzEuNCAxMy41IDQwLjdsMzY4LjUgMjc2LjRjMi42IDMuNiA2LjIgNi4zIDEwLjQgNy44bDguNiA2LjQgOC41LTYuNGM0LjktMS43IDktNC43IDExLjktOC45bDM2OC40LTI3NS40YzEyLjQtOS4yIDE4LTI1LjkgMTMuNi00MC42ek03NTEuNyAxOTMuNGMxLTEuOCAyLjktMS45IDMuNS0xLjkgMS4xIDAgMi41LjMgMy40IDNMODE4IDM5NC4zSDY4NC41bDY3LjItMjAwLjl6bS00ODcuNCAxYy45LTIuNiAyLjMtMi45IDMuNC0yLjkgMi43IDAgMi45LjEgMy40IDEuN2w2Ny4zIDIwMS4ySDIwNi41bDU3LjgtMjAwek0xNTguOCA1NTguN2wyOC4yLTk3LjMgMjAyLjQgMjcwLjItMjMwLjYtMTcyLjl6bTczLjktMTE2LjRoMTIyLjFsOTAuOCAyODQuMy0yMTIuOS0yODQuM3pNNTEyLjkgNzc2IDQwNS43IDQ0Mi4zSDYyMEw1MTIuOSA3NzZ6bTE1Ny45LTMzMy43aDExOS41TDU4MCA3MjMuMWw5MC44LTI4MC44em0tNDAuNyAyOTMuOSAyMDcuMy0yNzYuNyAyOS41IDk5LjItMjM2LjggMTc3LjV6Ii8+PC9zdmc+",v=Object.defineProperty,T=Object.getOwnPropertySymbols,C=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable,J=(g,s,f)=>s in g?v(g,s,{enumerable:!0,configurable:!0,writable:!0,value:f}):g[s]=f,X=(g,s)=>{for(var f in s||(s={}))C.call(s,f)&&J(g,f,s[f]);if(T)for(var f of T(s))K.call(s,f)&&J(g,f,s[f]);return g};const le=g=>e.createElement("svg",X({viewBox:"64 64 896 896"},g),e.createElement("path",{d:"M847.7 112H176.3c-35.5 0-64.3 28.8-64.3 64.3v671.4c0 35.5 28.8 64.3 64.3 64.3h671.4c35.5 0 64.3-28.8 64.3-64.3V176.3c0-35.5-28.8-64.3-64.3-64.3zm0 736c-447.8-.1-671.7-.2-671.7-.3.1-447.8.2-671.7.3-671.7 447.8.1 671.7.2 671.7.3-.1 447.8-.2 671.7-.3 671.7zM230.6 411.9h118.7v381.8H230.6zm59.4-52.2c37.9 0 68.8-30.8 68.8-68.8a68.8 68.8 0 1 0-137.6 0c-.1 38 30.7 68.8 68.8 68.8zm252.3 245.1c0-49.8 9.5-98 71.2-98 60.8 0 61.7 56.9 61.7 101.2v185.7h118.6V584.3c0-102.8-22.2-181.9-142.3-181.9-57.7 0-96.4 31.7-112.3 61.7h-1.6v-52.2H423.7v381.8h118.6V604.8z"}));var ae="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNODQ3LjcgMTEySDE3Ni4zYy0zNS41IDAtNjQuMyAyOC44LTY0LjMgNjQuM3Y2NzEuNGMwIDM1LjUgMjguOCA2NC4zIDY0LjMgNjQuM2g2NzEuNGMzNS41IDAgNjQuMy0yOC44IDY0LjMtNjQuM1YxNzYuM2MwLTM1LjUtMjguOC02NC4zLTY0LjMtNjQuM3ptMCA3MzZjLTQ0Ny44LS4xLTY3MS43LS4yLTY3MS43LS4zLjEtNDQ3LjguMi02NzEuNy4zLTY3MS43IDQ0Ny44LjEgNjcxLjcuMiA2NzEuNy4zLS4xIDQ0Ny44LS4yIDY3MS43LS4zIDY3MS43ek0yMzAuNiA0MTEuOWgxMTguN3YzODEuOEgyMzAuNnptNTkuNC01Mi4yYzM3LjkgMCA2OC44LTMwLjggNjguOC02OC44YTY4LjggNjguOCAwIDEgMC0xMzcuNiAwYy0uMSAzOCAzMC43IDY4LjggNjguOCA2OC44em0yNTIuMyAyNDUuMWMwLTQ5LjggOS41LTk4IDcxLjItOTggNjAuOCAwIDYxLjcgNTYuOSA2MS43IDEwMS4ydjE4NS43aDExOC42VjU4NC4zYzAtMTAyLjgtMjIuMi0xODEuOS0xNDIuMy0xODEuOS01Ny43IDAtOTYuNCAzMS43LTExMi4zIDYxLjdoLTEuNnYtNTIuMkg0MjMuN3YzODEuOGgxMTguNlY2MDQuOHoiLz48L3N2Zz4=",p=Object.defineProperty,n=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,u=(g,s,f)=>s in g?p(g,s,{enumerable:!0,configurable:!0,writable:!0,value:f}):g[s]=f,I=(g,s)=>{for(var f in s||(s={}))t.call(s,f)&&u(g,f,s[f]);if(n)for(var f of n(s))r.call(s,f)&&u(g,f,s[f]);return g};const O=g=>e.createElement("svg",I({viewBox:"64 64 896 896"},g),e.createElement("path",{d:"M928 254.3c-30.6 13.2-63.9 22.7-98.2 26.4a170.1 170.1 0 0 0 75-94 336.64 336.64 0 0 1-108.2 41.2A170.1 170.1 0 0 0 672 174c-94.5 0-170.5 76.6-170.5 170.6 0 13.2 1.6 26.4 4.2 39.1-141.5-7.4-267.7-75-351.6-178.5a169.32 169.32 0 0 0-23.2 86.1c0 59.2 30.1 111.4 76 142.1a172 172 0 0 1-77.1-21.7v2.1c0 82.9 58.6 151.6 136.7 167.4a180.6 180.6 0 0 1-44.9 5.8c-11.1 0-21.6-1.1-32.2-2.6C211 652 273.9 701.1 348.8 702.7c-58.6 45.9-132 72.9-211.7 72.9-14.3 0-27.5-.5-41.2-2.1C171.5 822 261.2 850 357.8 850 671.4 850 843 590.2 843 364.7c0-7.4 0-14.8-.5-22.2 33.2-24.3 62.3-54.4 85.5-88.2z"}));var o="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNOTI4IDI1NC4zYy0zMC42IDEzLjItNjMuOSAyMi43LTk4LjIgMjYuNGExNzAuMSAxNzAuMSAwIDAgMCA3NS05NCAzMzYuNjQgMzM2LjY0IDAgMCAxLTEwOC4yIDQxLjJBMTcwLjEgMTcwLjEgMCAwIDAgNjcyIDE3NGMtOTQuNSAwLTE3MC41IDc2LjYtMTcwLjUgMTcwLjYgMCAxMy4yIDEuNiAyNi40IDQuMiAzOS4xLTE0MS41LTcuNC0yNjcuNy03NS0zNTEuNi0xNzguNWExNjkuMzIgMTY5LjMyIDAgMCAwLTIzLjIgODYuMWMwIDU5LjIgMzAuMSAxMTEuNCA3NiAxNDIuMWExNzIgMTcyIDAgMCAxLTc3LjEtMjEuN3YyLjFjMCA4Mi45IDU4LjYgMTUxLjYgMTM2LjcgMTY3LjRhMTgwLjYgMTgwLjYgMCAwIDEtNDQuOSA1LjhjLTExLjEgMC0yMS42LTEuMS0zMi4yLTIuNkMyMTEgNjUyIDI3My45IDcwMS4xIDM0OC44IDcwMi43Yy01OC42IDQ1LjktMTMyIDcyLjktMjExLjcgNzIuOS0xNC4zIDAtMjcuNS0uNS00MS4yLTIuMUMxNzEuNSA4MjIgMjYxLjIgODUwIDM1Ny44IDg1MCA2NzEuNCA4NTAgODQzIDU5MC4yIDg0MyAzNjQuN2MwLTcuNCAwLTE0LjgtLjUtMjIuMiAzMy4yLTI0LjMgNjIuMy01NC40IDg1LjUtODguMnoiLz48L3N2Zz4=",c=Object.defineProperty,i=Object.getOwnPropertySymbols,H=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable,w=(g,s,f)=>s in g?c(g,s,{enumerable:!0,configurable:!0,writable:!0,value:f}):g[s]=f,F=(g,s)=>{for(var f in s||(s={}))H.call(s,f)&&w(g,f,s[f]);if(i)for(var f of i(s))k.call(s,f)&&w(g,f,s[f]);return g};const te=g=>e.createElement("svg",F({viewBox:"64 64 896 896"},g),e.createElement("path",{d:"M457.3 543c-68.1-17.7-145 16.2-174.6 76.2-30.1 61.2-1 129.1 67.8 151.3 71.2 23 155.2-12.2 184.4-78.3 28.7-64.6-7.2-131-77.6-149.2zm-52 156.2c-13.8 22.1-43.5 31.7-65.8 21.6-22-10-28.5-35.7-14.6-57.2 13.7-21.4 42.3-31 64.4-21.7 22.4 9.5 29.6 35 16 57.3zm45.5-58.5c-5 8.6-16.1 12.7-24.7 9.1-8.5-3.5-11.2-13.1-6.4-21.5 5-8.4 15.6-12.4 24.1-9.1 8.7 3.2 11.8 12.9 7 21.5zm334.5-197.2c15 4.8 31-3.4 35.9-18.3 11.8-36.6 4.4-78.4-23.2-109a111.39 111.39 0 0 0-106-34.3 28.45 28.45 0 0 0-21.9 33.8 28.39 28.39 0 0 0 33.8 21.8c18.4-3.9 38.3 1.8 51.9 16.7a54.2 54.2 0 0 1 11.3 53.3 28.45 28.45 0 0 0 18.2 36zm99.8-206c-56.7-62.9-140.4-86.9-217.7-70.5a32.98 32.98 0 0 0-25.4 39.3 33.12 33.12 0 0 0 39.3 25.5c55-11.7 114.4 5.4 154.8 50.1 40.3 44.7 51.2 105.7 34 159.1-5.6 17.4 3.9 36 21.3 41.7 17.4 5.6 36-3.9 41.6-21.2v-.1c24.1-75.4 8.9-161.1-47.9-223.9zM729 499c-12.2-3.6-20.5-6.1-14.1-22.1 13.8-34.7 15.2-64.7.3-86-28-40.1-104.8-37.9-192.8-1.1 0 0-27.6 12.1-20.6-9.8 13.5-43.5 11.5-79.9-9.6-101-47.7-47.8-174.6 1.8-283.5 110.6C127.3 471.1 80 557.5 80 632.2 80 775.1 263.2 862 442.5 862c235 0 391.3-136.5 391.3-245 0-65.5-55.2-102.6-104.8-118zM443 810.8c-143 14.1-266.5-50.5-275.8-144.5-9.3-93.9 99.2-181.5 242.2-195.6 143-14.2 266.5 50.5 275.8 144.4C694.4 709 586 796.6 443 810.8z"}));var $="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNNDU3LjMgNTQzYy02OC4xLTE3LjctMTQ1IDE2LjItMTc0LjYgNzYuMi0zMC4xIDYxLjItMSAxMjkuMSA2Ny44IDE1MS4zIDcxLjIgMjMgMTU1LjItMTIuMiAxODQuNC03OC4zIDI4LjctNjQuNi03LjItMTMxLTc3LjYtMTQ5LjJ6bS01MiAxNTYuMmMtMTMuOCAyMi4xLTQzLjUgMzEuNy02NS44IDIxLjYtMjItMTAtMjguNS0zNS43LTE0LjYtNTcuMiAxMy43LTIxLjQgNDIuMy0zMSA2NC40LTIxLjcgMjIuNCA5LjUgMjkuNiAzNSAxNiA1Ny4zem00NS41LTU4LjVjLTUgOC42LTE2LjEgMTIuNy0yNC43IDkuMS04LjUtMy41LTExLjItMTMuMS02LjQtMjEuNSA1LTguNCAxNS42LTEyLjQgMjQuMS05LjEgOC43IDMuMiAxMS44IDEyLjkgNyAyMS41em0zMzQuNS0xOTcuMmMxNSA0LjggMzEtMy40IDM1LjktMTguMyAxMS44LTM2LjYgNC40LTc4LjQtMjMuMi0xMDlhMTExLjM5IDExMS4zOSAwIDAgMC0xMDYtMzQuMyAyOC40NSAyOC40NSAwIDAgMC0yMS45IDMzLjggMjguMzkgMjguMzkgMCAwIDAgMzMuOCAyMS44YzE4LjQtMy45IDM4LjMgMS44IDUxLjkgMTYuN2E1NC4yIDU0LjIgMCAwIDEgMTEuMyA1My4zIDI4LjQ1IDI4LjQ1IDAgMCAwIDE4LjIgMzZ6bTk5LjgtMjA2Yy01Ni43LTYyLjktMTQwLjQtODYuOS0yMTcuNy03MC41YTMyLjk4IDMyLjk4IDAgMCAwLTI1LjQgMzkuMyAzMy4xMiAzMy4xMiAwIDAgMCAzOS4zIDI1LjVjNTUtMTEuNyAxMTQuNCA1LjQgMTU0LjggNTAuMSA0MC4zIDQ0LjcgNTEuMiAxMDUuNyAzNCAxNTkuMS01LjYgMTcuNCAzLjkgMzYgMjEuMyA0MS43IDE3LjQgNS42IDM2LTMuOSA0MS42LTIxLjJ2LS4xYzI0LjEtNzUuNCA4LjktMTYxLjEtNDcuOS0yMjMuOXpNNzI5IDQ5OWMtMTIuMi0zLjYtMjAuNS02LjEtMTQuMS0yMi4xIDEzLjgtMzQuNyAxNS4yLTY0LjcuMy04Ni0yOC00MC4xLTEwNC44LTM3LjktMTkyLjgtMS4xIDAgMC0yNy42IDEyLjEtMjAuNi05LjggMTMuNS00My41IDExLjUtNzkuOS05LjYtMTAxLTQ3LjctNDcuOC0xNzQuNiAxLjgtMjgzLjUgMTEwLjZDMTI3LjMgNDcxLjEgODAgNTU3LjUgODAgNjMyLjIgODAgNzc1LjEgMjYzLjIgODYyIDQ0Mi41IDg2MmMyMzUgMCAzOTEuMy0xMzYuNSAzOTEuMy0yNDUgMC02NS41LTU1LjItMTAyLjYtMTA0LjgtMTE4ek00NDMgODEwLjhjLTE0MyAxNC4xLTI2Ni41LTUwLjUtMjc1LjgtMTQ0LjUtOS4zLTkzLjkgOTkuMi0xODEuNSAyNDIuMi0xOTUuNiAxNDMtMTQuMiAyNjYuNSA1MC41IDI3NS44IDE0NC40QzY5NC40IDcwOSA1ODYgNzk2LjYgNDQzIDgxMC44eiIvPjwvc3ZnPg==",G=Object.defineProperty,b=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ne=(g,s,f)=>s in g?G(g,s,{enumerable:!0,configurable:!0,writable:!0,value:f}):g[s]=f,ue=(g,s)=>{for(var f in s||(s={}))re.call(s,f)&&ne(g,f,s[f]);if(b)for(var f of b(s))ee.call(s,f)&&ne(g,f,s[f]);return g};const ie=g=>e.createElement("svg",ue({viewBox:"64 64 896 896"},g),e.createElement("path",{d:"M854.6 370.6c-9.9-39.4 9.9-102.2 73.4-124.4l-67.9-3.6s-25.7-90-143.6-98c-117.8-8.1-194.9-3-195-3 .1 0 87.4 55.6 52.4 154.7-25.6 52.5-65.8 95.6-108.8 144.7-1.3 1.3-2.5 2.6-3.5 3.7C319.4 605 96 860 96 860c245.9 64.4 410.7-6.3 508.2-91.1 20.5-.2 35.9-.3 46.3-.3 135.8 0 250.6-117.6 245.9-248.4-3.2-89.9-31.9-110.2-41.8-149.6zm-204.1 334c-10.6 0-26.2.1-46.8.3l-23.6.2-17.8 15.5c-47.1 41-104.4 71.5-171.4 87.6-52.5 12.6-110 16.2-172.7 9.6 18-20.5 36.5-41.6 55.4-63.1 92-104.6 173.8-197.5 236.9-268.5l1.4-1.4 1.3-1.5c4.1-4.6 20.6-23.3 24.7-28.1 9.7-11.1 17.3-19.9 24.5-28.6 30.7-36.7 52.2-67.8 69-102.2l1.6-3.3 1.2-3.4c13.7-38.8 15.4-76.9 6.2-112.8 22.5.7 46.5 1.9 71.7 3.6 33.3 2.3 55.5 12.9 71.1 29.2 5.8 6 10.2 12.5 13.4 18.7 1 2 1.7 3.6 2.3 5l5 17.7c-15.7 34.5-19.9 73.3-11.4 107.2 3 11.8 6.9 22.4 12.3 34.4 2.1 4.7 9.5 20.1 11 23.3 10.3 22.7 15.4 43 16.7 78.7 3.3 94.6-82.7 181.9-182 181.9z"}));var de="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNODU0LjYgMzcwLjZjLTkuOS0zOS40IDkuOS0xMDIuMiA3My40LTEyNC40bC02Ny45LTMuNnMtMjUuNy05MC0xNDMuNi05OGMtMTE3LjgtOC4xLTE5NC45LTMtMTk1LTMgLjEgMCA4Ny40IDU1LjYgNTIuNCAxNTQuNy0yNS42IDUyLjUtNjUuOCA5NS42LTEwOC44IDE0NC43LTEuMyAxLjMtMi41IDIuNi0zLjUgMy43QzMxOS40IDYwNSA5NiA4NjAgOTYgODYwYzI0NS45IDY0LjQgNDEwLjctNi4zIDUwOC4yLTkxLjEgMjAuNS0uMiAzNS45LS4zIDQ2LjMtLjMgMTM1LjggMCAyNTAuNi0xMTcuNiAyNDUuOS0yNDguNC0zLjItODkuOS0zMS45LTExMC4yLTQxLjgtMTQ5LjZ6bS0yMDQuMSAzMzRjLTEwLjYgMC0yNi4yLjEtNDYuOC4zbC0yMy42LjItMTcuOCAxNS41Yy00Ny4xIDQxLTEwNC40IDcxLjUtMTcxLjQgODcuNi01Mi41IDEyLjYtMTEwIDE2LjItMTcyLjcgOS42IDE4LTIwLjUgMzYuNS00MS42IDU1LjQtNjMuMSA5Mi0xMDQuNiAxNzMuOC0xOTcuNSAyMzYuOS0yNjguNWwxLjQtMS40IDEuMy0xLjVjNC4xLTQuNiAyMC42LTIzLjMgMjQuNy0yOC4xIDkuNy0xMS4xIDE3LjMtMTkuOSAyNC41LTI4LjYgMzAuNy0zNi43IDUyLjItNjcuOCA2OS0xMDIuMmwxLjYtMy4zIDEuMi0zLjRjMTMuNy0zOC44IDE1LjQtNzYuOSA2LjItMTEyLjggMjIuNS43IDQ2LjUgMS45IDcxLjcgMy42IDMzLjMgMi4zIDU1LjUgMTIuOSA3MS4xIDI5LjIgNS44IDYgMTAuMiAxMi41IDEzLjQgMTguNyAxIDIgMS43IDMuNiAyLjMgNWw1IDE3LjdjLTE1LjcgMzQuNS0xOS45IDczLjMtMTEuNCAxMDcuMiAzIDExLjggNi45IDIyLjQgMTIuMyAzNC40IDIuMSA0LjcgOS41IDIwLjEgMTEgMjMuMyAxMC4zIDIyLjcgMTUuNCA0MyAxNi43IDc4LjcgMy4zIDk0LjYtODIuNyAxODEuOS0xODIgMTgxLjl6Ii8+PC9zdmc+",me=Object.defineProperty,ge=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,se=(g,s,f)=>s in g?me(g,s,{enumerable:!0,configurable:!0,writable:!0,value:f}):g[s]=f,ce=(g,s)=>{for(var f in s||(s={}))ye.call(s,f)&&se(g,f,s[f]);if(ge)for(var f of ge(s))oe.call(s,f)&&se(g,f,s[f]);return g};const Me=g=>e.createElement("svg",ce({viewBox:"64 64 896 896"},g),e.createElement("path",{d:"M564.7 230.1V803h60l25.2 71.4L756.3 803h131.5V230.1H564.7zm247.7 497h-59.9l-75.1 50.4-17.8-50.4h-18V308.3h170.7v418.8zM526.1 486.9H393.3c2.1-44.9 4.3-104.3 6.6-172.9h130.9l-.1-8.1c0-.6-.2-14.7-2.3-29.1-2.1-15-6.6-34.9-21-34.9H287.8c4.4-20.6 15.7-69.7 29.4-93.8l6.4-11.2-12.9-.7c-.8 0-19.6-.9-41.4 10.6-35.7 19-51.7 56.4-58.7 84.4-18.4 73.1-44.6 123.9-55.7 145.6-3.3 6.4-5.3 10.2-6.2 12.8-1.8 4.9-.8 9.8 2.8 13 10.5 9.5 38.2-2.9 38.5-3 .6-.3 1.3-.6 2.2-1 13.9-6.3 55.1-25 69.8-84.5h56.7c.7 32.2 3.1 138.4 2.9 172.9h-141l-2.1 1.5c-23.1 16.9-30.5 63.2-30.8 65.2l-1.4 9.2h167c-12.3 78.3-26.5 113.4-34 127.4-3.7 7-7.3 14-10.7 20.8-21.3 42.2-43.4 85.8-126.3 153.6-3.6 2.8-7 8-4.8 13.7 2.4 6.3 9.3 9.1 24.6 9.1 5.4 0 11.8-.3 19.4-1 49.9-4.4 100.8-18 135.1-87.6 17-35.1 31.7-71.7 43.9-108.9L497 850l5-12c.8-1.9 19-46.3 5.1-95.9l-.5-1.8-108.1-123-22 16.6c6.4-26.1 10.6-49.9 12.5-71.1h158.7v-8c0-40.1-18.5-63.9-19.2-64.9l-2.4-3z"}));var Ae="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNNTY0LjcgMjMwLjFWODAzaDYwbDI1LjIgNzEuNEw3NTYuMyA4MDNoMTMxLjVWMjMwLjFINTY0Ljd6bTI0Ny43IDQ5N2gtNTkuOWwtNzUuMSA1MC40LTE3LjgtNTAuNGgtMThWMzA4LjNoMTcwLjd2NDE4Ljh6TTUyNi4xIDQ4Ni45SDM5My4zYzIuMS00NC45IDQuMy0xMDQuMyA2LjYtMTcyLjloMTMwLjlsLS4xLTguMWMwLS42LS4yLTE0LjctMi4zLTI5LjEtMi4xLTE1LTYuNi0zNC45LTIxLTM0LjlIMjg3LjhjNC40LTIwLjYgMTUuNy02OS43IDI5LjQtOTMuOGw2LjQtMTEuMi0xMi45LS43Yy0uOCAwLTE5LjYtLjktNDEuNCAxMC42LTM1LjcgMTktNTEuNyA1Ni40LTU4LjcgODQuNC0xOC40IDczLjEtNDQuNiAxMjMuOS01NS43IDE0NS42LTMuMyA2LjQtNS4zIDEwLjItNi4yIDEyLjgtMS44IDQuOS0uOCA5LjggMi44IDEzIDEwLjUgOS41IDM4LjItMi45IDM4LjUtMyAuNi0uMyAxLjMtLjYgMi4yLTEgMTMuOS02LjMgNTUuMS0yNSA2OS44LTg0LjVoNTYuN2MuNyAzMi4yIDMuMSAxMzguNCAyLjkgMTcyLjloLTE0MWwtMi4xIDEuNWMtMjMuMSAxNi45LTMwLjUgNjMuMi0zMC44IDY1LjJsLTEuNCA5LjJoMTY3Yy0xMi4zIDc4LjMtMjYuNSAxMTMuNC0zNCAxMjcuNC0zLjcgNy03LjMgMTQtMTAuNyAyMC44LTIxLjMgNDIuMi00My40IDg1LjgtMTI2LjMgMTUzLjYtMy42IDIuOC03IDgtNC44IDEzLjcgMi40IDYuMyA5LjMgOS4xIDI0LjYgOS4xIDUuNCAwIDExLjgtLjMgMTkuNC0xIDQ5LjktNC40IDEwMC44LTE4IDEzNS4xLTg3LjYgMTctMzUuMSAzMS43LTcxLjcgNDMuOS0xMDguOUw0OTcgODUwbDUtMTJjLjgtMS45IDE5LTQ2LjMgNS4xLTk1LjlsLS41LTEuOC0xMDguMS0xMjMtMjIgMTYuNmM2LjQtMjYuMSAxMC42LTQ5LjkgMTIuNS03MS4xaDE1OC43di04YzAtNDAuMS0xOC41LTYzLjktMTkuMi02NC45bC0yLjQtM3oiLz48L3N2Zz4=",Ne=a(19261),fe={github:l,weibo:te,twitter:O,gitlab:R,facebook:V,zhihu:Me,yuque:ie,linkedin:le},Le=function(s){var f=s.icon,je=s.link,pe=(0,Ne.Z)(),Ie=(0,e.useMemo)(function(){return{Icon:fe[f],link:je}},[f,je]);return e.createElement("a",{className:"dumi-default-icon","data-dumi-tooltip":pe.formatMessage({id:"header.social.".concat(f)}),"data-dumi-tooltip-bottom":!0,target:"_blank",href:Ie.link,rel:"noreferrer"},e.createElement(Ie.Icon,null))},ve=Le},26755:function(A,S,a){"use strict";a.d(S,{Z:function(){return ae}});var e=a(93923),m=a.n(e),N=a(11006),j=a.n(N),h=a(77617),z=a(94312),Y=a.n(z),V=a(24127),U=a.n(V),x=a(1300),D=a.n(x),Z=a(93242),_=a.n(Z),M=a(10564),y=a.n(M),l=a(22060),d=a.n(l),L=U()(function p(){Y()(this,p)}),E=function(p){_()(t,p);var n=y()(t);function t(r){var u;return Y()(this,t),u=n.call(this),d()(D()(u),"el",void 0),u.el=r,u}return U()(t,[{key:"top",get:function(){return this.el.getBoundingClientRect().top}},{key:"outerHeight",get:function(){return this.el.getBoundingClientRect().height}},{key:"scrollTop",get:function(){return this.el.scrollTop}},{key:"scrollHeight",get:function(){return this.el.scrollHeight}},{key:"isScrolledToBottom",value:function(){return this.scrollTop+this.outerHeight>=this.scrollHeight}},{key:"registerScrollEvent",value:function(u){this.el.addEventListener("scroll",u)}},{key:"unregisterScrollEvent",value:function(u){this.el.removeEventListener("scroll",u)}}],[{key:"create",value:function(u){var I=document.querySelector(u);if(!I)throw new Error("element is not found.");return new t(I)}}]),t}(L),Q=function(p){_()(t,p);var n=y()(t);function t(){return Y()(this,t),n.apply(this,arguments)}return U()(t,[{key:"outerHeight",get:function(){return window.innerHeight}},{key:"scrollTop",get:function(){return document.documentElement.scrollTop}},{key:"scrollHeight",get:function(){return document.documentElement.scrollHeight}},{key:"isScrolledToBottom",value:function(){return this.scrollTop+this.outerHeight>=this.scrollHeight}},{key:"registerScrollEvent",value:function(u){document.addEventListener("scroll",u)}},{key:"unregisterScrollEvent",value:function(u){document.removeEventListener("scroll",u)}}],[{key:"create",value:function(){return new t}}]),t}(L),B=function(){function p(){Y()(this,p)}return U()(p,null,[{key:"create",value:function(t){return t?E.create(t):Q.create()}}]),p}(),P=function(n){var t=n.sectionRefs,r=n.rootSelector,u=n.offset,I=u===void 0?0:u,O=(0,h.useRef)(null);(0,h.useEffect)(function(){O.current=B.create(r)},[r]);var o=(0,h.useCallback)(function(){return O.current?O.current.isScrolledToBottom():!1},[O]),c=(0,h.useCallback)(function(G){if(!O.current)return!1;var b=O.current.scrollTop,re=b+O.current.outerHeight,ee=G.getBoundingClientRect(),ne=O.current instanceof E?b+ee.top-O.current.top+I:b+ee.top+I,ue=ne+ee.height;return[neb].every(function(ie){return ie})},[O,I]),i=(0,h.useCallback)(function(){return t.map(function(G){return G.current?c(G.current):!1})},[c,t]),H=(0,h.useState)([]),k=j()(H,2),w=k[0],F=k[1],te=(0,h.useMemo)(function(){return w.findIndex(function(G){return G})},[w]),$=(0,h.useCallback)(function(){var G=o()?[].concat(m()(new Array(t.length-1).fill(!1).map(function(b){return b})),[!0]):i();F(G)},[i,o,t]);return(0,h.useEffect)(function(){return $(),O.current&&O.current.registerScrollEvent($),function(){O.current&&O.current.unregisterScrollEvent($)}},[$]),{elementsStatusInViewport:w,currentElementIndexInViewport:te}},W=function(n){var t=n.children,r=n.sectionRefs,u=n.rootSelector,I=n.offset,O=P({sectionRefs:r,rootSelector:u,offset:I}),o=O.elementsStatusInViewport,c=O.currentElementIndexInViewport;return t({elementsStatusInViewport:o,currentElementIndexInViewport:c})},R=a(59619);function q(){return q=Object.assign?Object.assign.bind():function(p){for(var n=1;np.length)&&(n=p.length);for(var t=0,r=new Array(n);t1&&b<4})},[I,O]);return(0,h.useEffect)(function(){if(!c){var $=te.map(function(G){var b=G.id;return{current:document.getElementById(b)}});F($)}},[t,r,c,te]),w.length?h.createElement(W,{sectionRefs:w},function($){var G=$.currentElementIndexInViewport;return G>-1&&(i.current=G),h.createElement("ul",{className:"dumi-default-toc"},te.filter(function(b){var re=b.depth;return re>1&&re<4}).map(function(b,re){var ee="".concat(r,"#").concat(encodeURIComponent(b.id)),ne=G>-1?G:i.current;return h.createElement("li",{key:b.id,"data-depth":b.depth},h.createElement(R.rU,q({to:ee,onClickCapture:function(){decodeURIComponent(u).slice(1)===b.id&&R.m8.replace("".concat(t).concat(r))},title:b.title},ne===re?{className:"active"}:{}),b.title))}))}):null},ae=le},43174:function(A,S,a){var e=a(67501);function m(N){if(Array.isArray(N))return e(N)}A.exports=m,A.exports.__esModule=!0,A.exports.default=A.exports},1300:function(A){function S(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}A.exports=S,A.exports.__esModule=!0,A.exports.default=A.exports},10564:function(A,S,a){var e=a(13210),m=a(33486),N=a(23639);function j(h){var z=m();return function(){var V=e(h),U;if(z){var x=e(this).constructor;U=Reflect.construct(V,arguments,x)}else U=V.apply(this,arguments);return N(this,U)}}A.exports=j,A.exports.__esModule=!0,A.exports.default=A.exports},13210:function(A){function S(a){return A.exports=S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(m){return m.__proto__||Object.getPrototypeOf(m)},A.exports.__esModule=!0,A.exports.default=A.exports,S(a)}A.exports=S,A.exports.__esModule=!0,A.exports.default=A.exports},93242:function(A,S,a){var e=a(68913);function m(N,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(j&&j.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),Object.defineProperty(N,"prototype",{writable:!1}),j&&e(N,j)}A.exports=m,A.exports.__esModule=!0,A.exports.default=A.exports},33486:function(A){function S(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}A.exports=S,A.exports.__esModule=!0,A.exports.default=A.exports},43474:function(A){function S(a){if(typeof Symbol!="undefined"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}A.exports=S,A.exports.__esModule=!0,A.exports.default=A.exports},42272:function(A){function S(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}A.exports=S,A.exports.__esModule=!0,A.exports.default=A.exports},23639:function(A,S,a){var e=a(5773).default,m=a(1300);function N(j,h){if(h&&(e(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return m(j)}A.exports=N,A.exports.__esModule=!0,A.exports.default=A.exports},68913:function(A){function S(a,e){return A.exports=S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(N,j){return N.__proto__=j,N},A.exports.__esModule=!0,A.exports.default=A.exports,S(a,e)}A.exports=S,A.exports.__esModule=!0,A.exports.default=A.exports},93923:function(A,S,a){var e=a(43174),m=a(43474),N=a(35962),j=a(42272);function h(z){return e(z)||m(z)||N(z)||j()}A.exports=h,A.exports.__esModule=!0,A.exports.default=A.exports}}]); diff --git a/784.dec64465.chunk.css b/1.dec64465.chunk.css similarity index 100% rename from 784.dec64465.chunk.css rename to 1.dec64465.chunk.css diff --git a/108.d7e4c297.async.js b/108.d7e4c297.async.js new file mode 100644 index 0000000..8425d9d --- /dev/null +++ b/108.d7e4c297.async.js @@ -0,0 +1,550 @@ +(self.webpackChunk_antv_l7_editor=self.webpackChunk_antv_l7_editor||[]).push([[108],{32451:function(Be,re,o){"use strict";o.d(re,{B:function(){return g}});var X=o(40742),d=o(29486),K=o(57020);function g(je,be,me){var Se=je.getWordUntilPosition(be),Ae={startLineNumber:be.lineNumber,endLineNumber:be.lineNumber,startColumn:Se.startColumn,endColumn:Se.endColumn},oe=[];if(me==="turf")for(var ye in X){var ce={label:ye,kind:K.languages.CompletionItemKind.Function,documentation:X[ye].toString(),insertText:ye,range:Ae};oe.push(ce)}else oe=d.Z.chain(d.Z).keys().map(function(te){return{label:te,kind:K.languages.CompletionItemKind.Function,insertText:te,range:Ae}}).value();return{suggestions:oe}}},40504:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{i:function(){return GeoJsonEditor}});var _Users_suyubin_L7Editor_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(26801),_Users_suyubin_L7Editor_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_Users_suyubin_L7Editor_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__),_Users_suyubin_L7Editor_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(10574),_Users_suyubin_L7Editor_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_Users_suyubin_L7Editor_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__),_Users_suyubin_L7Editor_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(39343),_Users_suyubin_L7Editor_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_Users_suyubin_L7Editor_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__),_Users_suyubin_L7Editor_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(11006),_Users_suyubin_L7Editor_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_Users_suyubin_L7Editor_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__),ahooks__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(46266),ahooks__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(64310),ahooks__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(3957),ahooks__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(35894),monaco_editor_esm_vs_editor_editor_api__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(57020),react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(77617),react_i18next__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(73703),react_monaco_editor__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(68652),_recoil__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(45209),_utils__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(58874),_utils_prettier_text__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(99344),_editortool__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(32451),_styles__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(91077),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(32648),GeoJsonEditor=(0,react__WEBPACK_IMPORTED_MODULE_5__.forwardRef)(function(props,ref){var _useSize,_props$language=props.language,language=_props$language===void 0?"json":_props$language,_useGlobal=(0,_recoil__WEBPACK_IMPORTED_MODULE_8__.Og)(),theme=_useGlobal.theme,autoFitBounds=_useGlobal.autoFitBounds,_useFeature=(0,_recoil__WEBPACK_IMPORTED_MODULE_8__.SS)(),editorText=_useFeature.editorText,setEditorText=_useFeature.setEditorText,saveEditorText=_useFeature.saveEditorText,bboxAutoFit=_useFeature.bboxAutoFit,_useState=(0,react__WEBPACK_IMPORTED_MODULE_5__.useState)(""),_useState2=_Users_suyubin_L7Editor_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState,2),scriptContent=_useState2[0],setScriptContent=_useState2[1],_useState3=(0,react__WEBPACK_IMPORTED_MODULE_5__.useState)(null),_useState4=_Users_suyubin_L7Editor_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState3,2),container=_useState4[0],setContainer=_useState4[1],_ref=(_useSize=(0,ahooks__WEBPACK_IMPORTED_MODULE_14__.Z)(container))!==null&&_useSize!==void 0?_useSize:{},_ref$width=_ref.width,width=_ref$width===void 0?0:_ref$width,_ref$height=_ref.height,height=_ref$height===void 0?0:_ref$height,styles=(0,_styles__WEBPACK_IMPORTED_MODULE_12__.Z)(),_useState5=(0,react__WEBPACK_IMPORTED_MODULE_5__.useState)(""),_useState6=_Users_suyubin_L7Editor_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState5,2),geoJonText=_useState6[0],setGeoJonText=_useState6[1],debouncedGeoJsonText=(0,ahooks__WEBPACK_IMPORTED_MODULE_15__.Z)(geoJonText,{wait:2e3}),_useTranslation=(0,react_i18next__WEBPACK_IMPORTED_MODULE_6__.$G)(),t=_useTranslation.t;monaco_editor_esm_vs_editor_editor_api__WEBPACK_IMPORTED_MODULE_4__.languages.registerDocumentFormattingEditProvider(language,{provideDocumentFormattingEdits:function(re){return[{range:re.getFullModelRange(),text:(0,_utils_prettier_text__WEBPACK_IMPORTED_MODULE_10__.X)({content:re.getValue(),parser:language})}]}}),(0,ahooks__WEBPACK_IMPORTED_MODULE_16__.Z)(function(){monaco_editor_esm_vs_editor_editor_api__WEBPACK_IMPORTED_MODULE_4__.editor.defineTheme("custome-theme",{base:"vs",inherit:!0,rules:[{token:t("geojson_editor.index.tiaoShi"),foreground:"959595"},{token:t("geojson_editor.index.tongZhi"),foreground:"00b4ff"},{token:t("geojson_editor.index.jingGao"),foreground:"fff000"},{token:t("geojson_editor.index.cuoWu"),foreground:"ff0000"},{token:t("geojson_editor.index.bengKui"),foreground:"c30209"},{token:t("geojson_editor.index.xinXi"),foreground:"ffffff"}],colors:{"editor.background":"#fafafa","editorLineNumber.foreground":"#222222","editor.lineHighlightBackground":"#f4f4f4"}}),monaco_editor_esm_vs_editor_editor_api__WEBPACK_IMPORTED_MODULE_4__.languages.registerCompletionItemProvider(language,{provideCompletionItems:function(re,o){return(0,_editortool__WEBPACK_IMPORTED_MODULE_11__.B)(re,o,"lodash")}}),monaco_editor_esm_vs_editor_editor_api__WEBPACK_IMPORTED_MODULE_4__.languages.registerCompletionItemProvider(language,{provideCompletionItems:function(re,o){return(0,_editortool__WEBPACK_IMPORTED_MODULE_11__.B)(re,o,"turf")}})});var monacoChange=function(re){if(language==="json"){setEditorText(re),setGeoJonText(re);return}setScriptContent==null||setScriptContent(re)};(0,react__WEBPACK_IMPORTED_MODULE_5__.useImperativeHandle)(ref,function(){return{getData:function getData(){return new Promise(function(){var _ref2=_Users_suyubin_L7Editor_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()(_Users_suyubin_L7Editor_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee(resolve,reject){var geoData,funcResult,evalResult;return _Users_suyubin_L7Editor_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:if(funcResult=new Function(scriptContent),!funcResult()){_context.next=5;break}geoData=funcResult(),_context.next=14;break;case 5:if(evalResult=eval(scriptContent),!(0,_utils__WEBPACK_IMPORTED_MODULE_9__.tI)(evalResult)){_context.next=12;break}return _context.next=9,evalResult;case 9:_context.t0=_context.sent,_context.next=13;break;case 12:_context.t0=evalResult;case 13:geoData=_context.t0;case 14:geoData?resolve(geoData):reject(t("geojson_editor.index.jiaoBenShuJuYou"));case 15:case"end":return _context.stop()}},_callee)}));return function(Be,re){return _ref2.apply(this,arguments)}}())}}},[scriptContent,t]),(0,ahooks__WEBPACK_IMPORTED_MODULE_17__.Z)(function(){var Be=saveEditorText();autoFitBounds&&bboxAutoFit(Be)},[debouncedGeoJsonText]);var value=(0,react__WEBPACK_IMPORTED_MODULE_5__.useMemo)(function(){return language==="javascript"?{}:{value:editorText}},[language,editorText]);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)("div",{ref:setContainer,className:styles.appEditor,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(react_monaco_editor__WEBPACK_IMPORTED_MODULE_7__.ZP,_Users_suyubin_L7Editor_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_Users_suyubin_L7Editor_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({width,height,language},value),{},{onChange:monacoChange,theme:theme==="dark"?"vs-dark":"custome-theme",options:{selectOnLineNumbers:!0,tabIndex:2,tabSize:2,folding:!0,fontSize:13,mouseStyle:"text",foldingStrategy:"indentation",scrollBeyondLastLine:!1,foldingMaximumRegions:Number.MAX_SAFE_INTEGER,suggest:{showKeywords:!0}}}))})})},91077:function(Be,re,o){"use strict";var X=o(8549),d=o.n(X),K=o(78576),g,je=function(){return{appEditor:(0,K.iv)(g||(g=d()([` + width: 100%; + height: 100%; + position: relative; + .react-monaco-editor-container { + width: 100%; + height: 100%; + } + `])))}};re.Z=je},9044:function(Be,re,o){"use strict";o.d(re,{AQ:function(){return Se},BH:function(){return Ae},Fe:function(){return g},IZ:function(){return ye},Iz:function(){return d.Iz},K6:function(){return me},QF:function(){return ce},_9:function(){return d._9},ay:function(){return te},d7:function(){return je},dY:function(){return Oe},dw:function(){return d.dw},eG:function(){return d.eG},s3:function(){return oe},u9:function(){return d.u9},xQ:function(){return d.xQ},yc:function(){return K}});var X=o(35973),d=o(79387),K=[20,80],g=function(z){return z.RightPanelWidth="RightPanelWidth",z.MapOptions="MapOptions",z.LayerColor="LayerColor",z.HideEditor="HideEditor",z.EditorText="EditorText",z.PopupTrigger="PopupTrigger",z.ActiveRightTabKey="ActiveRightTabKey",z.AutoFitBounds="AutoFitBounds",z.BaseMap="BaseMap",z.officialLayers="officialLayers",z.WktText="WktText",z.Convert="Convert",z.theme="theme",z.cityHistory="cityHistory",z.showIndex="showIndex",z.locale="locale",z.firstOpening="firstOpening",z}({}),je=function(z){return z.PointLayer="PointLayer",z.LineLayer="LineLayer",z.PolygonLayer="PolygonLayer",z}({}),be="https://mdn.alipayobjects.com/huamei_baaa7a/afts/img/A*mvwjR5RwS9QAAAAAAAAAAAAADqSCAQ/original",me="#1677ff",Se={Index:Symbol("index"),DrawType:Symbol("drawType"),IsEdit:Symbol("isEdit")},Ae=(0,X.Z)({scriptUrl:"//at.alicdn.com/t/a/font_3567033_q8yw5w6air.js"}),oe={token:"pk.eyJ1IjoibGl1dmlnb25nenVvc2hpIiwiYSI6ImNsaGs2czBrcTBvczUzbnFzOHU0dzk2ZWQifQ.hVvTgcbg_Ym-VQz36psLRg"},ye={token:"5ae4492ef912cbbc93034fea0e66ff2a"},ce=100,te="https://gac-geo.googlecnapps.cn/maps/vt?lyrs=s,m&gl=CN&x={x}&y={y}&z={z}",Oe=function(z){return z.AmapSatellite="amapSatellite",z.AmapRoadNet="amapRoadNet",z.AmapTraffic="amapTraffic",z.AmapBuildings="amapBuildings",z.GoogleSatellite="googleSatellite",z}({})},79387:function(Be,re,o){"use strict";o.d(re,{Iz:function(){return Se},_9:function(){return Ae},dw:function(){return je},eG:function(){return oe},u9:function(){return me},xQ:function(){return be}});var X=o(11006),d=o.n(X),K=o(91173),g=o.n(K),je=g().shape({type:g().in(["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"]),coordinates:g().array}),be=g().arrayOf(je),me=g().shape({type:g().in(["Feature"]),properties:g().or([g().object,g().null,g().undefined]),geometry:je}),Se=g().arrayOf(me),Ae=g().shape({type:g().in(["FeatureCollection"]),features:g().arrayOf(me)}),oe=g().arrayOf(g().arrayOf(g().and([g().arrayOf(g().number),g().apply(function(ye){if(ye.length===2){var ce=d()(ye,2),te=ce[0],Oe=ce[1];return te>=-180&&te<=180&&Oe<=90&&Oe>=-90}return!1})])))},90507:function(Be,re,o){"use strict";o.r(re),o.d(re,{AppTable:function(){return Bn},GeoJsonEditor:function(){return Yt.i},L7Editor:function(){return Ci},LngLatEditor:function(){return Hr},WktEditor:function(){return ta}});var X=o(26801),d=o.n(X),K=o(11006),g=o.n(K),je=o(96278),be=o(9971),me=o(69768),Se=o(68380),Ae=o(4863),oe=o(63796),ye=o(31045),ce=o(16175),te=o(38115),Oe=o(30899),z=o(89628),ze=o(68404),Pe=o(29698),st=o(12124),Te=o.n(st),_=o(77617),ee=o(73703),M=o(9044),G=o(45209),ut=o(36584),pe=o(40742),Ge=o(16097),ge=o.n(Ge),ue=o(58874),Je=o(99344),tt=o(12178),e=o(32648),He=function(){var a=(0,G.SS)(),l=a.editorText,r=a.fc,n=(0,ee.$G)(),i=n.t,s=function(c){if(c==="GeoJson")(0,ue.Di)(JSON.stringify(r),"json");else if(c==="FormatGeoJson"){var x=(0,Je.X)({content:r});(0,ue.Di)(x,"json")}else if(c==="LngLat")(0,ue.Di)((0,pe.coordAll)(r).map(function(h){return h.join(",")}).join(";"),"txt");else if(c==="KML"){var y=ge()(r);(0,ue.Di)(y,"kml")}else c==="WKT"?(0,ue.Di)((0,tt.f)(r),"wkt"):(0,ue.Di)(l,"json")},u=[{key:"GeoJson",label:i("app_header.constants.xiaZaiGEO")},{key:"LngLat",label:i("app_header.constants.xiaZaiLNG")},{key:"KML",label:i("app_header.constants.xiaZaiKML")},{key:"WKT",label:i("app_header.constants.xiaZaiWKT")}];return(0,e.jsx)(Oe.Z,{menu:{items:u,onClick:function(c){var x=c.key;s(x)}},children:(0,e.jsx)(te.ZP,{id:"l7-editor-download",icon:(0,e.jsx)(ut.Z,{}),children:i("btn.download_btn.xiaZai")})})},Le=He,Y=o(83624),ie=function(){var p=(0,ee.$G)(),a=p.t,l=function(i){i==="guide"?window.open("/guide"):i==="api"?window.open("/docs"):i==="issue"&&window.open("https://github.com/antvis/L7Editor/issues/new")},r=[{key:"guide",label:a("app_header.constants.pingTaiShiYongWen")},{key:"api",label:a("app_header.constants.zuJianAPI")},{key:"issue",label:a("app_header.constants.issue")}];return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(Oe.Z,{menu:{items:r,onClick:function(i){var s=i.key;l(s)}},children:(0,e.jsx)(te.ZP,{icon:(0,e.jsx)(Y.Z,{}),children:a("btn.handback_btn.bangZhu")})})})},$=o(13740),ve=o(63495),we=o(94734),Ie=o(2742),_t={"btn.download_btn.xiaZai":"Download","btn.handback_btn.lianXiWoMen":"Contact Us","btn.handback_btn.bangZhu":"Help","btn.setting_btn.guanBi":"Close","btn.setting_btn.kaiQi":"Open","btn.setting_btn.shiFouZhanShiYuan":"Display serial number on layer","btn.setting_btn.gaoDe":"Gaode","btn.setting_btn.diTuDiTuQie":"Switch base map","btn.setting_btn.ziDongSuoFangZhi":"Auto zoom to all elements visible","btn.setting_btn.huaRu":"Mouse on","btn.setting_btn.dianJi":"Click","btn.setting_btn.tuCengQiPaoZhan":"Display mode of layer popup","btn.setting_btn.quXiao":"Cancel","btn.setting_btn.queRen":"Confirm","btn.setting_btn.sheZhi":"Setting","btn.setting_btn.diTuSheZhi":"Map Setting","import_btn.file_upload.jinZhiChiJS":"Only files with. json, .geojson, .wkt, .csv, .xlsx, .xls and. kml suffixes are supported","import_btn.file_upload.wenJianShangChuan":"File Upload","import_btn.file_upload.wenJianShangChuan2":"File upload:","import_btn.file_upload.qingJianChaShuJu":"Please check the data format","import_btn.file_upload.qingShanChuBaoCuo":"Please delete the error file","import_btn.file_upload.qingTianJiaWenJian":"Please add file","import_btn.file_upload.shuJuGeShiBu":"Data format mismatch","import_btn.index.zhuiJia":"Append","import_btn.index.fuGai":"Cover","import_btn.index.shuJuCaoZuo":"Data manipulation","import_btn.index.shangChuan":"Upload","import_btn.index.shangChuanShuJu":"Upload data","import_btn.index.jAVAS":"JavaScript script","import_btn.index.uRLShangChuan":"URL upload","import_btn.lnglat_import_btn.qingShuRuLianXu":"Please enter consecutive latitude and longitude separated by symbols, for example: 120.85,30.26;130.85,31.21","import_btn.lnglat_import_btn.shuJuNeiRong":"Data Content","import_btn.lnglat_import_btn.shuJuLeiXing":"Data Type","import_btn.lnglat_import_btn.lNGLA":"LngLat import failed","import_btn.lnglat_import_btn.qingShuRuJingWei":"Please enter latitude and longitude","import_btn.lnglat_import_btn.mian":"Polygon","import_btn.lnglat_import_btn.xian":"Line","import_btn.lnglat_import_btn.dian":"Point","import_btn.url_upload.uRLDiZhi":"URL:","import_btn.url_upload.shuJuLeiXing":"Data Type:","import_btn.url_upload.qingShuRuWenBen":"Please enter text content","import_btn.url_upload.shuJuGeShiCuo":"Data format error, please select the correct data type","app_header.constants.keYiTongGuoBiao":"Table can be used to display the fields in the properties object in the modification and deletion GeoJSON data.","app_header.constants.biaoGe":"Table","app_header.constants.keYiTongGuoW":"WKT data can be modified through the WKT editor","app_header.constants.wKTBianJi":"WKT Editor","app_header.constants.keYiTongGuoBian":"GeoJSON data can be modified by editor","app_header.constants.gEOJS":"GeoJSON Editor","app_header.constants.keXuanZeBuTong":"Choice of official layer configurations for different maps","app_header.constants.guanFangTuCeng":"Official Layer","app_header.constants.xuanZeBuTongZhu":"Select a different theme color to modify the map rendering theme color","app_header.constants.zhuTiSe":"Theme color","app_header.constants.xuanZeYanSeLai":"Select color to modify map rendering color","app_header.constants.yanSeXuanZeQi":"Color Picker","app_header.constants.dianJiZiDongSuo":"Click the Auto Zoom button to map the GeoJSON data location that will be automatically zoomed","app_header.constants.ziDongSuoFang":"Auto Zoom","app_header.constants.keGenJuShuJu":"You can filter the required data based on the properties in the data","app_header.constants.shaiXuan":"Filter","app_header.constants.dianJiQingChuAn":"Click the Clear button to GeoJSON the data will be empty (the Clear button will be grayed out in the Empty state)","app_header.constants.qingChu":"Clear","app_header.constants.keYiJiHuoDi":"Can activate new GeoJSON elements for mapping","app_header.constants.huiZhiPNG":"Draw. png","app_header.constants.huiZhi":"Draw","app_header.constants.souSuoChengShiHou":"After searching the city, you can quickly locate and move to the corresponding city center point.","app_header.constants.chengShiChaXun":"City Query","app_header.constants.keYiKuaiSuXuan":"Can quickly select the administrative region of the provinces, cities and counties","app_header.constants.xingZhengQuXuanZe":"Administrative Region Selector","app_header.constants.dianJiKeQieHuan":"Click to switch between different theme colors","app_header.constants.zhuTi":"Theme","app_header.constants.yongHuKeSheZhi":"User can set some initialization configuration","app_header.constants.dianJiXiaZaiKe":"Click Download to download the GeoJSON data to the specified data format","app_header.constants.shiYongCTR":"Use the Ctrl/Command S shortcut key, or click the save button to render data (the save button is grayed out in the saved state)","app_header.constants.baoCun":"Save","app_header.constants.shangChuanPNG":"Upload. png","app_header.constants.shangChuanGEO":"Upload GeoJSON data","app_header.constants.diTuShangChaKan":"View rendering effects on the map","app_header.constants.xuanRan":"Rendering","app_header.constants.bianJiQi":"Editor","app_header.constants.quanGongNengShiYong":"Full Guide","app_header.constants.pingTaiJiChuShi":"Basic Guide","app_header.constants.xiaZaiWKT":"Download WKT format data","app_header.constants.xiaZaiKML":"Download KML format data","app_header.constants.xiaZaiLNG":"Download LngLat format data","app_header.constants.xiaZaiGEO":"Download GeoJSON format data","app_header.constants.zuJianAPI":"Component API Documentation","app_header.constants.pingTaiShiYongWen":"Platform Usage Documentation","app_header.constants.issue":"Quick Issue","app_header.index.an":"Dark","app_header.index.liang":"Light","app_header.index.yinDao":"Guide","app_header.index.baoCunShuJu":"Save Data","app_table.index.dangQianShuJuWu":"No fields","app_table.index.shanChu":"Delete","app_table.index.shuJuShanChuCheng":"Data deleted successfully","app_table.index.caoZuo":"Operation","app_table.index.xuHao":"Serial number","app_table.index.shanChuLie":"Confirm to delete this column of data?","app_table.index.tianJiaLieZiDuan":"Add Column Field","app_table.index.ziDuanMing":"Field Name:","app_table.index.qingShuRuLieZiDuan":"Please enter a column field","geojson_editor.index.jiaoBenShuJuYou":"Wrong script data","geojson_editor.index.xinXi":"Information","geojson_editor.index.bengKui":"Crash","geojson_editor.index.cuoWu":"Error","geojson_editor.index.jingGao":"Warning","geojson_editor.index.tongZhi":"Notifications","geojson_editor.index.tiaoShi":"Debugging","layer_popup.index.gengGaiHuiZhi":"Edit","layer_popup.index.mULTI":"GeoJSON of type Multi does not support editing","layer_popup.index.dangQianYuanSuWu":"Current element has no fields","layer_popup.index.tianJiaZiDuan":"Add Field","map_content.index.zuoBiaoXi":"Geographic Coordinate System","administrative_select_control.index.xingZhengQuHuaLi":"Historical records of administrative divisions","administrative_select_control.index.keXuanZeShengShi":"Province/City/County","administrative_select_control.index.weiLanShuJuQing":"Fence data request failed","auto_control.index.ziDongSuoFangZhi":"Auto zoom to data","clear_control.index.queRenQingKongSuo":"Confirm to clear all data?","filter_form_list_control.index.shuJuGuoLu":"Data Filtering","filter_form_list_control.index.tianJiaShaiXuanTiao":"Add Filter Condition","filter_form_list_control.index.qingXuanZeZiDuan":"Please select a field","filter_form_list_control.index.huoZhe":"or","filter_form_list_control.index.bingQie":"and","filter_form_list_control.numberFilter.qingShuRuShaiXuan":"Please enter a filter value","filter_form_list_control.numberFilter.qingXuanZeGuoLu":"Please select filtering logic","filter_form_list_control.numberFilter.quJian":"Interval","filter_form_list_control.stringFilter.qingXuanZeShaiXuan":"Please select a filter","filter_form_list_control.stringFilter.buPiPei":"No match","filter_form_list_control.stringFilter.piPei":"Match","filter_form_list_control.stringFilter.buBaoHan":"No contain","filter_form_list_control.stringFilter.baoHan":"Contains","layer_color_control.index.changYongYanSe":"Common color","layer_color_control.index.tuCengYanSeXuan":"Layer Color Picker","location_search_control.index.tianJiaZhiShuJu":"Add to Data","location_search_control.location_search.qingShuRuYaoSou":"Please enter a place name to search","official_layer_control.index.guGeTuCeng":"Google Layers","official_layer_control.index.gaoDeTuCeng":"Gaode Layer","official_layer_control.index.guGeWeiXingTu":"Google Satellite Maps","official_layer_control.index.louKuaiTu":"Building Block","official_layer_control.index.luKuangTu":"Road condition map","official_layer_control.index.luWangTu":"Road network diagram","official_layer_control.index.weiXingTu":"Satellite map","save_map_options_control.index.baoCunDiTuZhuang":"Save Map Status","save_map_options_control.index.diTuZhuangTaiBao":"Map status saved successfully","wkt_editor.index.shuRuWKT":"Points, lines and polygons in the input WKT format can be identified. Please use ; to separate multiple data, such\uFF1APOINT(120.104013 30.262134);POINT(120.104033 30.262164)","pages.index.qingYongPCDuan":"Please use PC","recoil.feature.shuJuJiaZaiYou":"Data loading error","utils.index.qingJianChaUR":"Please check whether the url matches the data format","utils.transform.weiShiBieJS":"Unrecognized JSON array type","utils.upload.wenJianJieXiShi":"File parsing failed, please check the file type.","app_header.index.zhutiqiehuan":"Theme change","app_header.index.dingTalk":"DingTalk Group","app_table.index.dingWei":"Location","import_btn.file_upload.wenJian":"File","import_btn.file_upload.ciZiDuanFeiDiLiZiDuan":"This field is not geographic field","import_btn.file_upload.dianJiHuoJiangWenJian":"Click or drag the file here.","import_btn.file_upload.diLiZiDuanXuanZe":"Geographical field selection","import_btn.file_upload.dangQianJinZhiChi":"only WKT and Geometry data are supported.","layer_contextmenu_popup.fuZhiChengGong":"Copy success","layer_contextmenu_popup.fuZhi":"Copy","map_control_group.sam.jiSuanWanCheng":"After the identification of the plot area is completed, click the map in the red area to select the plot, and click the button again to close the intelligent identification of the plot.","map_control_group.sam.jiSuanShiBai":"Failed to identify the area of the plot. Please resize the map and re-identify the plot area.","map_control_group.sam.tuXingJieXiCuoWu":"Parcel parsing error, please reselect","map_control_group.sam.qingZaiQuYuNei":"Please select within the parcel boundary","map_control_group.sam.zhiNengXuanZe":"Block intelligent identification","map_control_group.sam.ziDongShiBie":"Plot Identification Area Boundary","map_control_group.sam.zhiNengShiBieGuanBi":"Block intelligent identification function is turned off","map_contorl_group.draw.draw":"Click to start drawing","map_contorl_group.draw.drawContinue":"Click to continue drawing","map_contorl_group.draw.drawFinish":"Click to continue drawing, double-click to end drawing","map_contorl_group.draw.pontHover":"Drag and Drop to Adjust Node Position","map_contorl_group.draw.midPointHover":"Click to add a node at this location","map_contorl_group.draw.lineHover":"Drag and Drop to Adjust Surface Position"},dt={"btn.download_btn.xiaZai":"\u4E0B\u8F7D","btn.handback_btn.lianXiWoMen":"\u8054\u7CFB\u6211\u4EEC","btn.handback_btn.bangZhu":"\u5E2E\u52A9","btn.setting_btn.guanBi":"\u5173\u95ED","btn.setting_btn.kaiQi":"\u5F00\u542F","btn.setting_btn.shiFouZhanShiYuan":"\u662F\u5426\u5C55\u793A\u5143\u7D20\u5E8F\u53F7","btn.setting_btn.gaoDe":"\u9AD8\u5FB7","btn.setting_btn.diTuDiTuQie":"\u5730\u56FE\u5E95\u56FE\u5207\u6362","btn.setting_btn.ziDongSuoFangZhi":"\u81EA\u52A8\u7F29\u653E\u81F3\u6240\u6709\u5143\u7D20\u53EF\u89C1","btn.setting_btn.huaRu":"\u5212\u5165","btn.setting_btn.dianJi":"\u70B9\u51FB","btn.setting_btn.tuCengQiPaoZhan":"\u56FE\u5C42\u6C14\u6CE1\u5C55\u793A\u65B9\u5F0F","btn.setting_btn.quXiao":"\u53D6\u6D88","btn.setting_btn.queRen":"\u786E\u8BA4","btn.setting_btn.sheZhi":"\u8BBE\u7F6E","btn.setting_btn.diTuSheZhi":"\u5730\u56FE\u8BBE\u7F6E","import_btn.file_upload.jinZhiChiJS":"\u4EC5\u652F\u6301.json, .geojson, .wkt, .kml, .csv, .xlsx, .xls\u540E\u7F00\u7684\u6587\u4EF6","import_btn.file_upload.wenJianShangChuan":"\u6587\u4EF6\u4E0A\u4F20","import_btn.file_upload.wenJianShangChuan2":"\u6587\u4EF6\u4E0A\u4F20 :","import_btn.file_upload.qingJianChaShuJu":"\u8BF7\u68C0\u67E5\u6570\u636E\u683C\u5F0F","import_btn.file_upload.qingShanChuBaoCuo":"\u8BF7\u5220\u9664\u62A5\u9519\u6587\u4EF6","import_btn.file_upload.qingTianJiaWenJian":"\u8BF7\u6DFB\u52A0\u6587\u4EF6","import_btn.file_upload.shuJuGeShiBu":"\u6570\u636E\u683C\u5F0F\u4E0D\u5339\u914D","import_btn.index.zhuiJia":"\u8FFD\u52A0","import_btn.index.fuGai":"\u8986\u76D6","import_btn.index.shuJuCaoZuo":"\u6570\u636E\u64CD\u4F5C","import_btn.index.shangChuan":"\u4E0A\u4F20","import_btn.index.shangChuanShuJu":"\u4E0A\u4F20\u6570\u636E","import_btn.index.jAVAS":"JavaScript\u811A\u672C","import_btn.index.uRLShangChuan":"URL\u4E0A\u4F20","import_btn.lnglat_import_btn.qingShuRuLianXu":"\u8BF7\u8F93\u5165\u8FDE\u7EED\u7684\u7ECF\u7EAC\u5EA6\u5E76\u7528\u7B26\u53F7\u9694\u5F00\uFF0C\u4F8B\u5982\uFF1A120.85,30.26;130.85,31.21","import_btn.lnglat_import_btn.shuJuNeiRong":"\u6570\u636E\u5185\u5BB9","import_btn.lnglat_import_btn.shuJuLeiXing":"\u6570\u636E\u7C7B\u578B","import_btn.lnglat_import_btn.lNGLA":"LngLat \u5BFC\u5165\u5931\u8D25","import_btn.lnglat_import_btn.qingShuRuJingWei":"\u8BF7\u8F93\u5165\u7ECF\u7EAC\u5EA6","import_btn.lnglat_import_btn.mian":"\u9762","import_btn.lnglat_import_btn.xian":"\u7EBF","import_btn.lnglat_import_btn.dian":"\u70B9","import_btn.url_upload.uRLDiZhi":"URL\u5730\u5740 :","import_btn.url_upload.shuJuLeiXing":"\u6570\u636E\u7C7B\u578B :","import_btn.url_upload.qingShuRuWenBen":"\u8BF7\u8F93\u5165\u6587\u672C\u5185\u5BB9","import_btn.url_upload.shuJuGeShiCuo":"\u6570\u636E\u683C\u5F0F\u9519\u8BEF\uFF0C\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u6570\u636E\u7C7B\u578B","app_header.constants.keYiTongGuoBiao":"\u53EF\u4EE5\u901A\u8FC7\u8868\u683C\u6765\u5C55\u793A\u4FEE\u6539\u5220\u9664GeoJSON \u6570\u636E\u4E2D\u7684properties\u5BF9\u8C61\u4E2D\u7684\u5B57\u6BB5","app_header.constants.biaoGe":"\u8868\u683C","app_header.constants.keYiTongGuoW":"\u53EF\u4EE5\u901A\u8FC7WKT\u7F16\u8F91\u5668\u4FEE\u6539 WKT \u6570\u636E","app_header.constants.wKTBianJi":"WKT\u7F16\u8F91\u5668","app_header.constants.keYiTongGuoBian":"\u53EF\u4EE5\u901A\u8FC7\u7F16\u8F91\u5668\u4FEE\u6539 GeoJSON \u6570\u636E","app_header.constants.gEOJS":"GeoJSON\u7F16\u8F91\u5668","app_header.constants.keXuanZeBuTong":"\u53EF\u9009\u62E9\u4E0D\u540C\u7684\u5730\u56FE\u7684\u5B98\u65B9\u56FE\u5C42\u914D\u7F6E","app_header.constants.guanFangTuCeng":"\u5B98\u65B9\u56FE\u5C42","app_header.constants.xuanZeBuTongZhu":"\u9009\u62E9\u4E0D\u540C\u4E3B\u9898\u8272\u6765\u4FEE\u6539\u5730\u56FE\u6E32\u67D3\u4E3B\u9898\u989C\u8272","app_header.constants.zhuTiSe":"\u4E3B\u9898\u8272","app_header.constants.xuanZeYanSeLai":"\u9009\u62E9\u989C\u8272\u6765\u4FEE\u6539\u5730\u56FE\u6E32\u67D3\u989C\u8272","app_header.constants.yanSeXuanZeQi":"\u989C\u8272\u9009\u62E9\u5668","app_header.constants.dianJiZiDongSuo":"\u70B9\u51FB\u81EA\u52A8\u7F29\u653E\u6309\u94AE \u5730\u56FE\u5C06\u81EA\u52A8\u7F29\u653E\u7684 GeoJSON \u6570\u636E\u4F4D\u7F6E","app_header.constants.ziDongSuoFang":"\u81EA\u52A8\u7F29\u653E","app_header.constants.keGenJuShuJu":"\u53EF\u6839\u636E\u6570\u636E\u4E2D\u7684properties\u6765\u7B5B\u9009\u9700\u8981\u6570\u636E","app_header.constants.shaiXuan":"\u7B5B\u9009","app_header.constants.dianJiQingChuAn":"\u70B9\u51FB\u6E05\u9664\u6309\u94AE GeoJSON \u6570\u636E\u5C06\u88AB\u8BF7\u7A7A \uFF08\u5DF2\u6E05\u7A7A\u72B6\u6001\u4E0B\u6E05\u7A7A\u6309\u94AE\u7F6E\u7070\uFF09","app_header.constants.qingChu":"\u6E05\u9664","app_header.constants.keYiJiHuoDi":"\u53EF\u4EE5\u6FC0\u6D3B\u5730\u56FE\u7ED8\u5236\u65B0\u589E GeoJSON \u5143\u7D20","app_header.constants.huiZhiPNG":"\u7ED8\u5236.png","app_header.constants.huiZhi":"\u7ED8\u5236","app_header.constants.souSuoChengShiHou":"\u641C\u7D22\u57CE\u5E02\u540E\u53EF\u5FEB\u901F\u5B9A\u4F4D\u5E76\u79FB\u52A8\u81F3\u5BF9\u5E94\u57CE\u5E02\u4E2D\u5FC3\u70B9","app_header.constants.chengShiChaXun":"\u57CE\u5E02\u67E5\u8BE2","app_header.constants.keYiKuaiSuXuan":"\u53EF\u4EE5\u5FEB\u901F\u9009\u62E9\u884C\u653F\u533A\u7684\u7701\u5E02\u53BF\u533A","app_header.constants.xingZhengQuXuanZe":"\u884C\u653F\u533A\u9009\u62E9\u5668","app_header.constants.dianJiKeQieHuan":"\u70B9\u51FB\u53EF\u5207\u6362\u4E0D\u540C\u7684\u4E3B\u9898\u914D\u8272","app_header.constants.zhuTi":"\u4E3B\u9898","app_header.constants.yongHuKeSheZhi":"\u7528\u6237\u53EF\u8BBE\u7F6E\u4E00\u4E9B\u521D\u59CB\u5316\u914D\u7F6E","app_header.constants.dianJiXiaZaiKe":"\u70B9\u51FB\u4E0B\u8F7D\u53EF\u5C06 GeoJSON \u6570\u636E\u4E0B\u8F7D\u4E3A\u6307\u5B9A\u6570\u636E\u683C\u5F0F","app_header.constants.shiYongCTR":"\u4F7F\u7528 Ctrl/Command + S \u5FEB\u6377\u952E\uFF0C\u6216\u70B9\u51FB\u4FDD\u5B58\u6309\u94AE\u6E32\u67D3\u6570\u636E\uFF08\u5DF2\u4FDD\u5B58\u72B6\u6001\u4E0B\u4FDD\u5B58\u6309\u94AE\u7F6E\u7070\uFF09","app_header.constants.baoCun":"\u4FDD\u5B58","app_header.constants.shangChuanPNG":"\u4E0A\u4F20.png","app_header.constants.shangChuanGEO":"\u4E0A\u4F20 GeoJSON \u6570\u636E","app_header.constants.diTuShangChaKan":"\u5730\u56FE\u4E0A\u67E5\u770B\u6E32\u67D3\u6548\u679C","app_header.constants.xuanRan":"\u6E32\u67D3","app_header.constants.bianJiQi":"\u7F16\u8F91\u5668","app_header.constants.quanGongNengShiYong":"\u5168\u529F\u80FD\u4F7F\u7528\u5F15\u5BFC","app_header.constants.pingTaiJiChuShi":"\u5E73\u53F0\u57FA\u7840\u4F7F\u7528\u5F15\u5BFC","app_header.constants.xiaZaiWKT":"\u4E0B\u8F7D WKT \u683C\u5F0F\u6570\u636E","app_header.constants.xiaZaiKML":"\u4E0B\u8F7D KML \u683C\u5F0F\u6570\u636E","app_header.constants.xiaZaiLNG":"\u4E0B\u8F7D LngLat \u683C\u5F0F\u6570\u636E","app_header.constants.xiaZaiGEO":"\u4E0B\u8F7D GeoJSON \u683C\u5F0F\u6570\u636E","app_header.constants.zuJianAPI":"\u7EC4\u4EF6API\u6587\u6863","app_header.constants.pingTaiShiYongWen":"\u5E73\u53F0\u4F7F\u7528\u6587\u6863","app_header.constants.issue":"\u63D0\u4EA4 Issue","app_header.index.an":"\u6697","app_header.index.liang":"\u4EAE","app_header.index.yinDao":"\u5F15\u5BFC","app_header.index.baoCunShuJu":"\u4FDD\u5B58\u6570\u636E","app_table.index.dangQianShuJuWu":"\u5F53\u524D\u6570\u636E\u65E0\u5B57\u6BB5","app_table.index.shanChu":"\u5220\u9664","app_table.index.shuJuShanChuCheng":"\u6570\u636E\u5220\u9664\u6210\u529F","app_table.index.caoZuo":"\u64CD\u4F5C","app_table.index.xuHao":"\u5E8F\u53F7","app_table.index.shanChuLie":"\u786E\u8BA4\u5220\u9664\u6B64\u5217\u6570\u636E\uFF1F","app_table.index.tianJiaLieZiDuan":"\u6DFB\u52A0\u5217\u5B57\u6BB5","app_table.index.ziDuanMing":"\u5B57\u6BB5\u540D:","app_table.index.qingShuRuLieZiDuan":"\u8BF7\u8F93\u5165\u5217\u5B57\u6BB5","geojson_editor.index.jiaoBenShuJuYou":"\u811A\u672C\u6570\u636E\u6709\u8BEF","geojson_editor.index.xinXi":"\u4FE1\u606F","geojson_editor.index.bengKui":"\u5D29\u6E83","geojson_editor.index.cuoWu":"\u9519\u8BEF","geojson_editor.index.jingGao":"\u8B66\u544A","geojson_editor.index.tongZhi":"\u901A\u77E5","geojson_editor.index.tiaoShi":"\u8C03\u8BD5","layer_popup.index.gengGaiHuiZhi":"\u66F4\u6539\u7ED8\u5236","layer_popup.index.mULTI":"Multi \u7C7B\u578B\u7684 GeoJSON \u4E0D\u652F\u6301\u7F16\u8F91","layer_popup.index.dangQianYuanSuWu":"\u5F53\u524D\u5143\u7D20\u65E0\u5B57\u6BB5","layer_popup.index.tianJiaZiDuan":"\u6DFB\u52A0\u5B57\u6BB5","map_content.index.zuoBiaoXi":"\u5730\u7406\u5750\u6807\u7CFB\uFF1A","administrative_select_control.index.xingZhengQuHuaLi":"\u884C\u653F\u533A\u5212\u5386\u53F2\u8BB0\u5F55","administrative_select_control.index.keXuanZeShengShi":"\u53EF\u9009\u62E9\u7701/\u5E02/\u53BF","administrative_select_control.index.weiLanShuJuQing":"\u56F4\u680F\u6570\u636E\u8BF7\u6C42\u5931\u8D25","auto_control.index.ziDongSuoFangZhi":"\u81EA\u52A8\u7F29\u653E\u81F3\u5F53\u524D\u5143\u7D20","clear_control.index.queRenQingKongSuo":"\u786E\u8BA4\u6E05\u7A7A\u6240\u6709\u6570\u636E\uFF1F","filter_form_list_control.index.shuJuGuoLu":"\u6570\u636E\u8FC7\u6EE4","filter_form_list_control.index.tianJiaShaiXuanTiao":"\u6DFB\u52A0\u7B5B\u9009\u6761\u4EF6","filter_form_list_control.index.qingXuanZeZiDuan":"\u8BF7\u9009\u62E9\u5B57\u6BB5","filter_form_list_control.index.huoZhe":"\u6216\u8005","filter_form_list_control.index.bingQie":"\u5E76\u4E14","filter_form_list_control.numberFilter.qingShuRuShaiXuan":"\u8BF7\u8F93\u5165\u7B5B\u9009\u503C","filter_form_list_control.numberFilter.qingXuanZeGuoLu":"\u8BF7\u9009\u62E9\u8FC7\u6EE4\u903B\u8F91","filter_form_list_control.numberFilter.quJian":"\u533A\u95F4","filter_form_list_control.stringFilter.qingXuanZeShaiXuan":"\u8BF7\u9009\u62E9\u7B5B\u9009\u9879","filter_form_list_control.stringFilter.buPiPei":"\u4E0D\u5339\u914D","filter_form_list_control.stringFilter.piPei":"\u5339\u914D","filter_form_list_control.stringFilter.buBaoHan":"\u4E0D\u5305\u542B","filter_form_list_control.stringFilter.baoHan":"\u5305\u542B","layer_color_control.index.changYongYanSe":"\u5E38\u7528\u989C\u8272","layer_color_control.index.tuCengYanSeXuan":"\u56FE\u5C42\u989C\u8272\u9009\u62E9\u5668","location_search_control.index.tianJiaZhiShuJu":"\u6DFB\u52A0\u81F3\u6570\u636E","location_search_control.location_search.qingShuRuYaoSou":"\u8BF7\u8F93\u5165\u8981\u641C\u7D22\u5730\u540D","official_layer_control.index.guGeTuCeng":"\u8C37\u6B4C\u56FE\u5C42","official_layer_control.index.gaoDeTuCeng":"\u9AD8\u5FB7\u56FE\u5C42","official_layer_control.index.guGeWeiXingTu":"\u8C37\u6B4C\u536B\u661F\u56FE","official_layer_control.index.louKuaiTu":"\u697C\u5757\u56FE","official_layer_control.index.luKuangTu":"\u8DEF\u51B5\u56FE","official_layer_control.index.luWangTu":"\u8DEF\u7F51\u56FE","official_layer_control.index.weiXingTu":"\u536B\u661F\u56FE","save_map_options_control.index.baoCunDiTuZhuang":"\u4FDD\u5B58\u5730\u56FE\u72B6\u6001","save_map_options_control.index.diTuZhuangTaiBao":"\u5730\u56FE\u72B6\u6001\u4FDD\u5B58\u6210\u529F ","wkt_editor.index.shuRuWKT":"\u8F93\u5165WKT\u683C\u5F0F\u7684\u70B9\u3001\u7EBF\u3001\u9762\u90FD\u53EF\u8BC6\u522B\uFF0C\u591A\u4E2A\u6570\u636E\u8BF7\u4F7F;\u5206\u9694\uFF0C\u5982\uFF1APOINT(120.104013 30.262134);POINT(120.104033 30.262164)","pages.index.qingYongPCDuan":"\u8BF7\u7528PC\u7AEF\u6253\u5F00","recoil.feature.shuJuJiaZaiYou":"\u6570\u636E\u52A0\u8F7D\u6709\u8BEF","utils.index.qingJianChaUR":"\u8BF7\u68C0\u67E5url\u662F\u5426\u4E0E\u6570\u636E\u683C\u5F0F\u5339\u914D","utils.transform.weiShiBieJS":"\u672A\u8BC6\u522B JSON \u6570\u7EC4\u7C7B\u578B","utils.upload.wenJianJieXiShi":"\u6587\u4EF6\u89E3\u6790\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u6587\u4EF6\u683C\u5F0F\u3002","app_header.index.zhutiqiehuan":"\u4E3B\u9898\u5207\u6362","app_header.index.dingTalk":"\u9489\u9489\u7B54\u7591\u7FA4","app_table.index.dingWei":"\u5B9A\u4F4D","import_btn.file_upload.wenJian":"\u6587\u4EF6","import_btn.file_upload.ciZiDuanFeiDiLiZiDuan":"\u6B64\u5B57\u6BB5\u975E\u5730\u7406\u6570\u636E","import_btn.file_upload.dianJiHuoJiangWenJian":"\u70B9\u51FB\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u8FD9\u91CC\u3002","import_btn.file_upload.diLiZiDuanXuanZe":"\u5730\u7406\u5B57\u6BB5\u9009\u62E9","import_btn.file_upload.dangQianJinZhiChi":"\u5F53\u524D\u4EC5\u652F\u6301 WKT \u683C\u5F0F\u5B57\u6BB5\u6570\u636E \u548C geometry \u6570\u636E","layer_contextmenu_popup.fuZhiChengGong":"\u590D\u5236\u6210\u529F","layer_contextmenu_popup.fuZhi":"\u590D\u5236","map_control_group.sam.jiSuanWanCheng":"\u5730\u5757\u533A\u57DF\u8BC6\u522B\u5B8C\u6210,\u53EF\u5728\u7EA2\u8272\u533A\u57DF\u5185\u70B9\u51FB\u5730\u56FE\u9009\u53D6\u5730\u5757,\u518D\u6B21\u70B9\u51FB\u6309\u94AE\u5C06\u5173\u95ED\u5730\u5757\u667A\u80FD\u8BC6\u522B","map_control_group.sam.jiSuanShiBai":"\u5730\u5757\u8BC6\u533A\u57DF\u522B\u5931\u8D25\uFF0C\u8BF7\u8C03\u6574\u5730\u56FE\u5927\u5C0F\u91CD\u65B0\u8BC6\u522B\u5730\u5757\u533A\u57DF","map_control_group.sam.tuXingJieXiCuoWu":"\u5730\u5757\u89E3\u6790\u9519\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9","map_control_group.sam.qingZaiQuYuNei":"\u8BF7\u5728\u5730\u5757\u8FB9\u754C\u5185\u8FDB\u884C\u9009\u62E9","map_control_group.sam.zhiNengXuanZe":"\u5730\u5757\u667A\u80FD\u8BC6\u522B","map_control_group.sam.ziDongShiBie":"\u5730\u5757\u8BC6\u522B\u533A\u57DF\u8FB9\u754C","map_control_group.sam.zhiNengShiBieGuanBi":"\u5730\u5757\u667A\u80FD\u8BC6\u522B\u529F\u80FD\u5DF2\u5173\u95ED","map_contorl_group.draw.draw":"\u5355\u51FB\u5F00\u59CB\u7ED8\u5236","map_contorl_group.draw.drawContinue":"\u5355\u51FB\u7EE7\u7EED\u7ED8\u5236","map_contorl_group.draw.drawFinish":"\u5355\u51FB\u7EE7\u7EED\u7ED8\u5236\uFF0C\u53CC\u51FB\u7ED3\u675F\u7ED8\u5236","map_contorl_group.draw.pontHover":"\u53EF\u62D6\u62FD\u8C03\u6574\u8282\u70B9\u4F4D\u7F6E","map_contorl_group.draw.midPointHover":"\u5355\u51FB\u5728\u8BE5\u4F4D\u7F6E\u65B0\u589E\u8282\u70B9","map_contorl_group.draw.lineHover":"\u53EF\u62D6\u62FD\u8C03\u6574\u56FE\u5F62\u4F4D\u7F6E"};we.ZP.use(Ie.Z).use(ee.Db).init({fallbackLng:"zh-CN",interpolation:{escapeValue:!1},resources:{"zh-CN":{translation:dt},"en-US":{translation:_t}}});var $e=[{lang:"zh-CN",name:"\u7B80\u4F53\u4E2D\u6587",antd:ve.Z},{lang:"en-US",name:"English",antd:$.Z}],vt=null,yt=o(8549),F=o.n(yt),w=o(78576),U=o(1563),It,Mt,Ot,Pt,Bt,Ct,wt,Lt,Rt,St,kt,Jt=function(){var a=U.Z.useToken,l=a(),r=l.token,n=r.colorBorder,i=r.colorBgContainer,s=r.colorText;return{mapHeader:(0,w.iv)(It||(It=F()([` + padding: 0 16px; + height: 50px; + border-bottom: 1px solid `,`; + display: flex; + flex-direction: row; + justify-content: space-between; + align-items: center; + background: `,`; + z-index: 1; + .ant-btn { + border: 0; + } + `])),n,i),mapHeaderLogo:(0,w.iv)(Mt||(Mt=F()([` + display: flex; + align-items: center; + img { + width: auto; + height: 24px; + margin-right: 4px; + } + `]))),mapHeaderTitle:(0,w.iv)(Ot||(Ot=F()([` + font-size: 16px; + font-weight: bold; + margin-left: 4px; + margin-right: 16px; + color: `,`; + `])),s),mapHeaderLeft:(0,w.iv)(Pt||(Pt=F()([` + display: flex; + align-items: center; + `]))),mapHeaderRight:(0,w.iv)(Bt||(Bt=F()([` + display: flex; + align-items: center; + `]))),locale:(0,w.iv)(Ct||(Ct=F()([` + font-size: 16px; + `]))),localeIcon:(0,w.iv)(wt||(wt=F()([` + font-size: 16px; + `]))),upload:(0,w.iv)(Lt||(Lt=F()([` + height: 200px; + display: flex; + overflow: hidden; + flex-direction: column; + align-items: center; + justify-content: center; + `]))),uploadTitle:(0,w.iv)(Rt||(Rt=F()([` + font-size: 14px; + padding: 10px 6px 10px 0; + `]))),theme:(0,w.iv)(St||(St=F()([` + cursor: pointer; + padding: 0 !important; + width: 32px; + height: 32px; + display: flex; + align-items: center; + justify-content: center; + `]))),themeIcon:(0,w.iv)(kt||(kt=F()([` + font-size: 20px !important; + `])))}},Me=Jt,se=$e.map(function(p){return{key:p.lang,label:p.name}}),fe=function(){var a=(0,ee.$G)(),l=a.i18n,r=(0,G.Og)(),n=r.locale,i=r.setLocale,s=Me(),u=function(c){var x=c.key;l.changeLanguage(x),i(x)};return(0,e.jsx)(Oe.Z,{menu:{items:se,onClick:u,selectedKeys:[n],selectable:!0},children:(0,e.jsx)(te.ZP,{className:s.locale,icon:(0,e.jsx)(M.BH,{className:s.localeIcon,type:"icon-in"})})})},De=fe,nt=o(10574),he=o.n(nt),Dt=o(93923),Ze=o.n(Dt),Ua=o(39343),at=o.n(Ua),Ka=o(25394),Ye=o(73824),dn=o(78744),$t=o(30966),de=o(21107),Ne=o(87357),Yt=o(40504),cn=o(79387),za=o(27223),pn=o.n(za),Qa=o(54068),Xa=o(22204),ct=o(29130),fn=o(89392),_n=o(92368),Ha=o(91327),$a=o.n(Ha),Nt=o(60522),Ya=o(95205),Va=o.n(Ya),vn=o(60015),hn=function(a){return new Promise(function(l,r){var n=new FileReader;n.readAsText(a),n.onload=function(i){var s,u=(s=i.target)===null||s===void 0?void 0:s.result;l(u)},n.onerror=function(i){r(i)}})},mn=function(a,l,r){var n=JSON.parse(a);return{id:r||(0,Nt.Z)(r),metadata:{name:l},data:n,type:"local"}},qa=function(a,l,r){var n=JSON.parse(a);return M._9.check(n)?mn(a,l,r):{id:r||(0,Nt.Z)(r),metadata:{name:l},data:n,type:"local"}},er=function(){var p=at()(he()().mark(function a(l,r,n){var i,s,u,f,c,x;return he()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return i=l.name,s=i.substring(i.lastIndexOf(".")+1),h.next=4,hn(l);case 4:if(u=h.sent,s!=="json"){h.next=9;break}return h.abrupt("return",qa(u,r,n));case 9:if(s!=="geojson"){h.next=13;break}return h.abrupt("return",mn(u,r,n));case 13:if(s!=="kml"){h.next=21;break}return f=new DOMParser().parseFromString(u,"text/xml"),h.next=17,$a().kml(f,{style:!0});case 17:return c=h.sent,h.abrupt("return",{id:n||(0,Nt.Z)(n),metadata:{name:r},data:c,type:"local"});case 21:if(s!=="wkt"){h.next=24;break}return x=(0,tt.Y)(u),h.abrupt("return",{id:n||(0,Nt.Z)(n),metadata:{name:r},data:x,type:"local"});case 24:case"end":return h.stop()}},a)}));return function(l,r,n){return p.apply(this,arguments)}}(),tr=function(){var p=at()(he()().mark(function a(l,r,n){var i,s;return he()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,hn(l);case 2:return i=f.sent,s=Va().parse(i,{header:!0,skipEmptyLines:!0,dynamicTyping:!0}),f.abrupt("return",{id:n||(0,Nt.Z)(n),metadata:{name:r},data:s.data,type:"local",columns:s.meta.fields});case 5:case"end":return f.stop()}},a)}));return function(l,r,n){return p.apply(this,arguments)}}(),nr=function(a){return new Promise(function(l,r){var n=new FileReader;n.readAsArrayBuffer(a),n.onload=function(i){var s,u=(s=i.target)===null||s===void 0?void 0:s.result;l(u)},n.onerror=function(i){r(i)}})},ar=function(a,l,r){var n;try{var i=(0,vn.ij)(a,{type:"array",cellDates:!0}),s=i.Sheets[i.SheetNames[0]];Object.keys(s).forEach(function(f){var c=s[f];c.t==="d"&&(c.v=c.w)}),n=vn.P6.sheet_to_json(s)}catch(f){throw f}var u=Object.keys(n[0]);return{id:r,metadata:{name:l},data:n,type:"local",columns:u}},rr=function(){var p=at()(he()().mark(function a(l,r,n){var i;return he()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.prev=0,u.next=3,nr(l);case 3:i=u.sent,u.next=9;break;case 6:throw u.prev=6,u.t0=u.catch(0),u.t0;case 9:return u.abrupt("return",ar(i,r,n));case 10:case"end":return u.stop()}},a,null,[[0,6]])}));return function(l,r,n){return p.apply(this,arguments)}}(),Vt=function(a){var l=/^(POINT|LINESTRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON)(\sz)?\s?\(.*\)$/i,r=!1;return typeof a=="string"&&l.test(a)&&(r=!0),r},qt=function(a){try{var l=JSON.parse(a);return M.dw.check(l)}catch(r){return!1}},or=function(){var p=at()(he()().mark(function a(l,r){var n,i,s,u;return he()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(n=l.name,i=n.substring(0,n.lastIndexOf(".")),s=n.substring(n.lastIndexOf(".")+1),c.prev=3,!["geojson","json","kml","wkt"].includes(s)){c.next=10;break}return c.next=7,er(l,i,l.uid);case 7:u=c.sent,c.next=20;break;case 10:if(s!=="csv"){c.next=16;break}return c.next=13,tr(l,i,l.uid);case 13:u=c.sent,c.next=20;break;case 16:if(!["xlsx","xls"].includes(s)){c.next=20;break}return c.next=19,rr(l,i,l.uid);case 19:u=c.sent;case 20:c.next=25;break;case 22:return c.prev=22,c.t0=c.catch(3),c.abrupt("return",Promise.reject(r("utils.upload.wenJianJieXiShi")));case 25:return c.abrupt("return",u);case 26:case"end":return c.stop()}},a,null,[[3,22]])}));return function(l,r){return p.apply(this,arguments)}}(),ir=Xa.Z.Dragger,lr=(0,_.forwardRef)(function(a,l){pn()(a);var r=(0,_.useState)([]),n=g()(r,2),i=n[0],s=n[1],u=(0,_.useState)([]),f=g()(u,2),c=f[0],x=f[1],y=(0,_.useState)([]),h=g()(y,2),m=h[0],j=h[1],P=de.Z.useForm(),A=g()(P,1),L=A[0],E=(0,ee.$G)(),v=E.t,C=Me(),T=function(S){var J=S.file,B=S.onSuccess,Z=S.onError;or(J,v).then(function(b){if(console.log(b),b!=null&&b.columns){for(var D=b.data[0],I=void 0,N=0,V=Object.keys(D);N":return l>p.value;case">=":return l>=p.value;default:if(Array.isArray(p.value)){var r=g()(p.value,2),n=r[0],i=r[1];return l>=n&&l<=i}}}function Un(p,a){var l=String(a[p.field]),r=p.value;switch(p.operator){case"NOT_IN":return!(r!=null&&r.includes(l));case"IN":return r==null?void 0:r.includes(l);case"LIKE":return(l==null?void 0:l.indexOf(r))>-1;default:return(l==null?void 0:l.indexOf(r))<=-1}}var Kn=(0,zt.cn)({key:"filterFeature",default:[]});function zn(){var p=(0,G.SS)(),a=p.features,l=(0,G.L0)(),r=l.filters,n=(0,zt.Zl)(Kn),i=(0,zt.sJ)(Kn);return(0,_.useEffect)(function(){if((0,Kt.Z)(r)){n(Ze()(a));return}var s=Ze()(a),u=r.filter(function(x){return!Nn(x)}),f=u.filter(function(x){return x.logic==="and"}),c=u.filter(function(x){return x.logic==="or"});(0,Kt.Z)(c)||(s=s.filter(function(x){var y=x.properties;return c.some(function(h){var m=h.type==="number"?Wn:Un;return m(h,y)})})),(0,Kt.Z)(f)||(s=s.filter(function(x){var y=x.properties;return f.every(function(h){var m=h.type==="number"?Wn:Un;return m(h,y)})})),n(s)},[a,r,n]),{features:i}}function an(p,a){var l=document.createElement("canvas"),r=l.getContext("2d"),n=new Image(a.x,a.y);return n.crossOrigin="Anonymous",n.src="https://mdn.alipayobjects.com/huamei_nsuaz4/afts/img/A*770bQLV21hsAAAAAAAAAAAAADimPAQ/original",new Promise(function(i){n.onload=function(){l.width=n.width,l.height=n.height,r.imageSmoothingEnabled=!0,r.drawImage(n,0,0,n.width,n.height);for(var s=r.getImageData(0,0,l.width,l.height),u=s.data,f=0;f=10){var N=(0,Tt.Z)(r);N.pop(),n(N)}}else x(null)},k=function(B,Z){return Z.some(function(b){return b.label.toLowerCase().indexOf(B.toLowerCase())>-1})},S=(0,_.useMemo)(function(){if(r.length){var J=r.map(function(B){return{key:B.value,label:(0,e.jsx)("div",{onClick:function(){E(JSON.parse(B.value))},children:B.label})}});return J}else return[{key:"undefined",label:(0,e.jsx)(tn.Z,{})}]},[r]);return(0,_.useEffect)(function(){if(L){var J=L[L.length-1];fetch("https://restapi.amap.com/v3/config/district?keywords=".concat(J,"&subdistrict=0&key=98d10f05a2da96697313a2ce35ebf1a2&extensions=all")).then(function(B){return B.json()}).then(function(B){var Z;if(B.status==="1"&&(Z=B.districts)!==null&&Z!==void 0&&Z.length&&s){var b=B.districts[0].center.split(",").map(function(N){return+N}),O=g()(b,2),Q=O[0],D=O[1];s.setZoomAndCenter(9,[Q,D]);var I=[];B.districts.forEach(function(N){N.polyline.split("|").forEach(function(V){I.push(V.split(";").map(function(H){return H.split(",").map(function(le){return+le})}))})}),x((0,pe.multiLineString)(I))}}).catch(function(){Ye.ZP.error(C("administrative_select_control.index.weiLanShuJuQing"))})}},[L]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(ae.br,{position:"lefttop",children:(0,e.jsxs)("div",{style:{display:"flex"},children:[(0,e.jsx)("div",{id:"l7-editor-administrativeSelect",children:(0,e.jsx)(ro.Z,{options:m,value:L,onChange:R,className:a.cascader,allowClear:!0,showSearch:{filter:k},placeholder:C("administrative_select_control.index.keXuanZeShengShi"),changeOnSelect:!0,style:{width:250},popupClassName:a.cascaderPopup,expandTrigger:"hover"})}),(0,e.jsx)(Oe.Z,{menu:{items:S},placement:"bottomRight",trigger:["click"],children:(0,e.jsx)(ce.Z,{title:C("administrative_select_control.index.xingZhengQuHuaLi"),placement:"right",children:(0,e.jsx)("div",{className:Te()([a.history,"l7-draw-control__btn"]),children:(0,e.jsx)(M.BH,{type:"icon-lishi",className:a.historyIcon})})})})]})}),(0,e.jsx)(ae.Ie,d()({source:{data:(0,pe.featureCollection)(c?[c]:[])}},io))]})},da,ca,pa,fa,_a,va,so=function(){var a=U.Z.useToken,l=a(),r=l.token,n=r.colorBgContainer,i=r.colorBorder,s=r.colorTextDescription,u=r.colorText,f=r.boxShadow,c=r.colorIcon;return{L7EditorControl:(0,w.iv)(da||(da=F()([` + display: inline-flex; + align-items: center; + justify-content: center; + border-radius: 2px; + width: 28px; + height: 28px; + padding: 0; + text-align: center; + background: `,`; + box-shadow: `,` !important; + border-width: 0; + color: `,`; + outline: 0; + cursor: pointer; + &:hover { + background: `,`; + svg { + color: `,`; + } + } + `])),n,f,c,n,u),l7EditorIcon:(0,w.iv)(ca||(ca=F()([` + font-size: 16px; + border: none; + cursor: pointer; + color: `,`; + `])),c),zoom:(0,w.iv)(pa||(pa=F()([` + .l7-button-control { + color: `,`; + font-size: 14px; + background: `,` !important; + border-color: `,`; + + svg { + fill: `,` !important; + } + + &:hover { + svg { + fill: `,` !important; + } + } + } + .l7-button-control:first-child { + border-bottom: 1px solid `,`; + } + `])),s,n,i,s,u,i),scalesControl:(0,w.iv)(fa||(fa=F()([` + .l7-control-scale-line { + color: `,`; + background: `,` !important; + border-color: `,`; + } + `])),s,n,i),mouseLocatio:(0,w.iv)(_a||(_a=F()([` + color: `,` !important; + background: `,` !important; + border-color: `,`; + `])),s,n,i),fullScreen:(0,w.iv)(va||(va=F()([` + color: `,`; + background: `,` !important; + border-color: `,`; + + svg { + fill: `,` !important; + } + + &:hover { + svg { + fill: `,` !important; + } + } + `])),s,n,i,s,u)}},Qt=so,uo=function(){var a=Qt(),l=(0,G.SS)(),r=l.bboxAutoFit,n=(0,ee.$G)(),i=n.t;return(0,e.jsx)(ae.br,{position:"bottomright",children:(0,e.jsx)(ce.Z,{title:i("auto_control.index.ziDongSuoFangZhi"),placement:"left",children:(0,e.jsx)("button",{type:"button",id:"l7-editor-auto",className:a.L7EditorControl,onClick:function(){r()},children:(0,e.jsx)(M.BH,{type:"icon-suofang",className:a.l7EditorIcon})})})})},ha,ma,co=function(){var a=U.Z.useToken,l=a(),r=l.token,n=r.colorBgContainer,i=r.boxShadow,s=r.colorIcon,u=r.colorText;return{clear:(0,w.iv)(ha||(ha=F()([` + width: 30px; + height: 30px; + line-height: 41px; + text-align: center; + border-radius: 2px; + background-color: `,`; + box-shadow: `,` !important; + cursor: pointer; + color: `,`; + &:hover { + color: `,`; + background: `,`; + } + `])),n,i,s,u,n),clearSvg:(0,w.iv)(ma||(ma=F()([` + font-size: 24px; + `])))}},po=co,fo=function(){var a=po(),l=(0,G.SS)(),r=l.saveEditorText,n=(0,ee.$G)(),i=n.t;return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(ae.br,{position:"topright",children:(0,e.jsx)(en.Z,{title:i("clear_control.index.queRenQingKongSuo"),onConfirm:function(){r((0,Je.X)({content:{type:"FeatureCollection",features:[]}}))},children:(0,e.jsx)(ce.Z,{title:i("app_header.constants.qingChu"),placement:"bottom",children:(0,e.jsx)("div",{className:a.clear,id:"l7-editor-clear",children:(0,e.jsx)(M.BH,{type:"icon-qingkong",className:a.clearSvg})})})})})})},_o=o(26568),ga,vo=function(){var a=U.Z.useToken,l=a(),r=l.token,n=r.colorBgContainer,i=r.boxShadow,s=r.colorBorder,u=r.colorIcon,f=r.colorText;return{l7DrawControl:(0,w.iv)(ga||(ga=F()([` + .l7-draw-control { + display: flex; + flex-direction: column; + align-items: center; + margin-right: 0 !important; + box-shadow: `,` !important; + .l7-draw-control__btn { + color: `,`; + background-color: `,`; + border-right: none; + border-bottom: 1px solid `,`; + &:hover { + color: `,`; + } + } + } + `])),i,u,n,s,f)}},ho=vo,mo=function(){var a=Gn(),l=(0,ae.$r)(),r=ho(),n=(0,_.useState)(null),i=g()(n,2),s=i[0],u=i[1],f=(0,G.SS)(),c=f.setIsDraw,x=f.resetFeatures,y=f.features,h=f.revertCoord,m=(0,G.Og)(),j=m.layerColor,P=(0,_.useMemo)(function(){return(0,Tt.Z)(y.find(function(E){return E.properties[M.AQ.IsEdit]}))},[y]);(0,_.useEffect)(function(){var E;if(l){var v;E=new rt.DrawControl(l,{position:"topleft",drawConfig:{point:!0,line:!0,polygon:!0,rect:!0,circle:!0},commonDrawOptions:{maxCount:1,style:(0,ue.C2)(j),helper:a}}),u(E),l.addControl(E),E.on(rt.ControlEvent.DrawChange,function(T){c(!!T)});var C=document.querySelector(".l7-draw-control");C.style.marginTop=0,(v=document.querySelector("#l7-draw-content"))===null||v===void 0||v.appendChild(C)}return function(){E&&l.removeControl(E)}},[l,j]);var A=(0,_.useCallback)(function(E,v){v.properties=mt()({},M.AQ.DrawType,E),s==null||s.clearDrawData(),s==null||s.setActiveType(null);var C=h([v]);x([].concat(Ze()(y),Ze()(C)))},[s,h,x,y]),L=(0,_.useCallback)(function(E,v){var C=v.properties[M.AQ.Index],T=Ze()(y);T[C].properties[M.AQ.IsEdit]=!1,T[C].geometry=v.geometry,s==null||s.clearDrawData(),s==null||s.setActiveType(null);var R=h(T);x(Ze()(R))},[y,s,h,x]);return(0,_.useEffect)(function(){var E=["point","line","polygon","rect","circle"],v=(0,_o.Z)(E.map(function(C){return[C,{onAdd:function(R){return A(C,R)},onEdit:function(R){return L(C,R)}}]}));return E.forEach(function(C){var T=s==null?void 0:s.getTypeDraw(C);T==null||T.on(rt.DrawEvent.Add,v[C].onAdd),T==null||T.on(rt.DrawEvent.Edit,v[C].onEdit)}),function(){E.forEach(function(C){var T=s==null?void 0:s.getTypeDraw(C);T==null||T.off(rt.DrawEvent.Add,v[C].onAdd),T==null||T.off(rt.DrawEvent.Edit,v[C].onEdit)})}},[s,A]),(0,_.useEffect)(function(){if(P&&s){var E,v=(E=P.properties)===null||E===void 0?void 0:E[M.AQ.DrawType];P.properties.isActive=!0,s.setActiveType(v);var C=s.getTypeDraw(v);C==null||C.setData([P])}},[P,s]),(0,e.jsx)(ae.br,{position:"topright",children:(0,e.jsx)("div",{style:{display:"flex"},id:"l7-editor-draw",children:(0,e.jsx)("div",{className:r.l7DrawControl,children:(0,e.jsx)("div",{id:"l7-draw-content"})})})})},go=mo,xo=o(41445),bo=o(64015),yo=o(22840),Co=o(28909),So=o(7741),To=o(4639),Eo=function(a){var l=a.name,r=a.index,n=a.form,i=(0,G.L0)(),s=i.setFilters,u=(0,G.SS)(),f=u.dataSource,c=(0,ee.$G)(),x=c.t,y=[{label:">",value:">"},{label:">=",value:">="},{label:"=",value:"="},{label:"<=",value:"<="},{label:"<",value:"<"},{label:x("filter_form_list_control.numberFilter.quJian"),value:"BETWEEN"}];return(0,e.jsxs)("div",{style:{display:"flex"},children:[(0,e.jsx)(de.Z.Item,{name:[l,"operator"],children:(0,e.jsx)(ct.Z,{style:{width:"100px",marginRight:"8px"},placeholder:x("filter_form_list_control.numberFilter.qingXuanZeGuoLu"),options:y,onChange:function(){var m=(0,Tt.Z)(n.getFieldValue("filterFromList"));m.forEach(function(j,P){r===P&&(j.value=void 0)}),n.setFieldValue("filterFromList",m),s(m.map(function(j){var P=JSON.parse(j.field),A=P.field,L=P.type;return d()(d()({},j),{},{field:A,type:L})}))}})}),(0,e.jsx)(de.Z.Item,{style:{width:150,marginBottom:0},shouldUpdate:function(m,j){return m.operator===j.operator},children:function(m){var j,P,A,L=m.getFieldsValue,E=L(),v=E.filterFromList,C=(j=JSON.parse(v[r].field))===null||j===void 0?void 0:j.field,T=f.find(function(B){return(B==null?void 0:B.field)===C});if(v[r].operator==="BETWEEN"){var R,k,S,J;return(0,e.jsxs)("div",{children:[(0,e.jsx)(de.Z.Item,{name:[l,"min"],style:{width:"70px"},children:(0,e.jsx)(Wt.Z,{placeholder:x("filter_form_list_control.numberFilter.qingShuRuShaiXuan"),style:{width:"100%"},min:(R=T==null?void 0:T.min)!==null&&R!==void 0?R:0,max:(k=T==null?void 0:T.max)!==null&&k!==void 0?k:0})}),(0,e.jsx)("span",{children:" - "}),(0,e.jsx)(de.Z.Item,{name:[l,"max"],style:{width:"70px"},children:(0,e.jsx)(Wt.Z,{placeholder:x("filter_form_list_control.numberFilter.qingShuRuShaiXuan"),style:{width:"100%"},min:(S=T==null?void 0:T.min)!==null&&S!==void 0?S:0,max:(J=T==null?void 0:T.max)!==null&&J!==void 0?J:0})})]})}return(0,e.jsx)(de.Z.Item,{name:[l,"value"],children:(0,e.jsx)(Wt.Z,{placeholder:x("filter_form_list_control.numberFilter.qingShuRuShaiXuan"),style:{width:"100%"},min:(P=T==null?void 0:T.min)!==null&&P!==void 0?P:0,max:(A=T==null?void 0:T.max)!==null&&A!==void 0?A:0})})}})]})},jo=Eo,Ao=o(66603),Oo=o(65635),Po=o(64669),Lo=function(a){var l=a.name,r=a.index,n=a.form,i=(0,Po.Z)(),s=i.setFilters,u=(0,Oo.Z)(),f=u.dataSource,c=(0,ee.$G)(),x=c.t,y=[{label:x("filter_form_list_control.stringFilter.baoHan"),value:"IN"},{label:x("filter_form_list_control.stringFilter.buBaoHan"),value:"NOT_IN"},{label:x("filter_form_list_control.stringFilter.piPei"),value:"LIKE"},{label:x("filter_form_list_control.stringFilter.buPiPei"),value:"NOT_LIKE"}];return(0,e.jsxs)("div",{style:{display:"flex"},children:[(0,e.jsx)(de.Z.Item,{name:[l,"operator"],style:{width:"100px",marginRight:"8px"},children:(0,e.jsx)(ct.Z,{placeholder:x("filter_form_list_control.numberFilter.qingXuanZeGuoLu"),options:y,onChange:function(){var m=(0,Tt.Z)(n.getFieldValue("filterFromList"));m.forEach(function(j,P){r===P&&(j.value=void 0)}),n.setFieldValue("filterFromList",m),s(m.map(function(j){var P=JSON.parse(j.field),A=P.field,L=P.type;return d()(d()({},j),{},{field:A,type:L})}))}})}),(0,e.jsx)(de.Z.Item,{shouldUpdate:function(m,j){return m.operator!==j.operator},style:{width:150,margin:0},children:function(m){var j,P,A=m.getFieldsValue,L=A(),E=L.filterFromList,v=(j=JSON.parse(E[r].field))===null||j===void 0?void 0:j.field,C=f.find(function(R){return(R==null?void 0:R.field)===v}),T=E[r].operator;return T==="LIKE"||T==="NOT_LIKE"?(0,e.jsx)(de.Z.Item,{name:[l,"value"],children:(0,e.jsx)(ht.Z,{placeholder:x("filter_form_list_control.numberFilter.qingShuRuShaiXuan"),style:{width:"100%"},allowClear:!0})}):(0,e.jsx)(de.Z.Item,{name:[l,"value"],children:(0,e.jsx)(ct.Z,{placeholder:x("filter_form_list_control.stringFilter.qingXuanZeShaiXuan"),style:{width:"100%"},mode:"multiple",maxTagCount:1,children:((P=(0,Ao.Z)(C==null?void 0:C.value))!==null&&P!==void 0?P:[]).filter(function(R){return R!=="undefined"}).map(function(R){return(0,e.jsx)(ct.Z.Option,{value:R,children:(0,e.jsx)(ce.Z,{title:R,children:R})},R)})})})}})]})},Do=Lo,xa,ba,Zo=function(){var a=U.Z.useToken,l=a(),r=l.token,n=r.colorBgContainer,i=r.boxShadow;return{l7FilterPanel:(0,w.iv)(xa||(xa=F()([` + position: relative; + `]))),l7Filter:(0,w.iv)(ba||(ba=F()([` + display: flex; + background: `,`; + padding: 16px; + margin-right: 8px; + position: absolute; + right: 35px; + bottom: 0; + box-shadow: `,` !important; + .ant-form-item { + margin-bottom: 0; + } + .ant-btn { + margin-left: px; + } + `])),n,i)}},Fo=Zo,ln=ct.Z.Option,Io=function(){var a=(0,G.SS)(),l=a.dataSource,r=(0,G.L0)(),n=r.setFilters,i=r.filters,s=(0,_.useState)(!1),u=g()(s,2),f=u[0],c=u[1],x=(0,ee.$G)(),y=x.t,h=de.Z.useForm(),m=g()(h,1),j=m[0],P=Fo(),A=Qt(),L=(0,_.useMemo)(function(){return!l.length},[l]),E=function(T,R){if((0,Kt.Z)(R.filterFromList)){n([]);return}var k=R.filterFromList.filter(function(S){return S}).map(function(S){var J=S.logic,B=S.operator;if(S.field){var Z=JSON.parse(S.field||""),b=Z.field,O=Z.type;return S.operator==="BETWEEN"&&S.min&&S.max?{logic:J,field:b,type:O,operator:B,value:[S.min,S.max]}:(S.operator==="IN"||S.operator==="NO_IN")&&S.value?d()(d()({},S),{},{field:b,type:O,value:S.value.length?S.value:void 0}):d()(d()({},S),{},{field:b,type:O})}else return d()(d()({},S),{},{field:void 0,type:void 0})});n(k)},v=(0,_.useMemo)(function(){return i.filter(function(C){return!Nn(C)}).find(function(C){return C})},[i]);return(0,e.jsxs)(ae.br,{position:"bottomright",className:P.l7FilterPanel,style:{display:"flex"},children:[(0,e.jsx)("div",{className:P.l7Filter,style:{display:f?"block":"none"},children:(0,e.jsx)(de.Z,{style:{width:"100%"},form:j,onValuesChange:(0,To.Z)(E,500),children:(0,e.jsx)(de.Z.List,{name:"filterFromList",children:function(T,R){var k=R.add,S=R.remove;return(0,e.jsxs)(e.Fragment,{children:[T.map(function(J,B){var Z,b,O=J.name;return(0,e.jsxs)("div",{style:{display:"flex",marginBottom:8},children:[(0,e.jsx)(de.Z.Item,{name:[O,"logic"],initialValue:"and",children:(0,e.jsxs)(ct.Z,{style:{width:70,marginRight:"8px"},children:[(0,e.jsx)(ln,{value:"and",children:y("filter_form_list_control.index.bingQie")}),(0,e.jsx)(ln,{value:"or",children:y("filter_form_list_control.index.huoZhe")})]})}),(0,e.jsx)(de.Z.Item,{name:[O,"field"],initialValue:JSON.stringify({field:(Z=l[0])===null||Z===void 0?void 0:Z.field,type:(b=l[0])===null||b===void 0?void 0:b.type}),children:(0,e.jsx)(ct.Z,{style:{width:130,marginRight:"8px"},placeholder:y("filter_form_list_control.index.qingXuanZeZiDuan"),onChange:function(){var D=(0,Tt.Z)(j.getFieldValue("filterFromList"));D.forEach(function(I,N){B===N&&(I.operator=void 0,I.value=void 0)}),j.setFieldValue("filterFromList",D),n(D.map(function(I){var N=JSON.parse(I.field),V=N.field,H=N.type;return d()(d()({},I),{},{field:V,type:H})}))},children:l.map(function(Q){var D=Q.field,I=Q.type;return(0,e.jsxs)(ln,{value:JSON.stringify({field:D,type:I}),children:[(0,e.jsx)("i",{style:{fontSize:20,marginRight:8,color:"#999"},children:I==="number"?(0,e.jsx)(xo.Z,{}):(0,e.jsx)(bo.Z,{})}),(0,e.jsx)(ce.Z,{title:D,children:D})]},D)})})}),(0,e.jsx)(de.Z.Item,{shouldUpdate:function(D,I){return D.field===I.field},style:{margin:0},children:function(D){var I=D.getFieldsValue,N=I(),V=N.filterFromList;if(V[B].field){var H=JSON.parse(V[B].field),le=H.type;return le==="number"?(0,e.jsx)(jo,{name:O,index:B,form:j}):(0,e.jsx)(Do,{name:O,index:B,form:j})}}}),(0,e.jsx)(te.ZP,{type:"text",onClick:function(){S(O),n(j.getFieldValue("filterFromList"))},icon:(0,e.jsx)(yn.Z,{})})]},O)}),(0,e.jsx)(te.ZP,{type:"dashed",disabled:L,onClick:function(){k()},block:!0,icon:(0,e.jsx)(yo.Z,{}),style:{width:500},children:y("filter_form_list_control.index.tianJiaShaiXuanTiao")})]})}})})}),(0,e.jsx)(ce.Z,{title:y("filter_form_list_control.index.shuJuGuoLu"),placement:"left",children:(0,e.jsx)("button",{type:"button",id:"l7-editor-filter",className:A.L7EditorControl,onClick:function(){c(!f)},children:v?(0,e.jsx)(So.Z,{style:{color:"#597ef7"}}):(0,e.jsx)(Co.Z,{style:{lineHeight:"30px"}})})})]})},Mo=Io,Bo=o(42073),ya,wo=function(){var a=U.Z.useToken,l=a(),r=l.token,n=r.boxShadow;return{l7ButtonControl:(0,w.iv)(ya||(ya=F()([` + min-width: auto; + width: 28px; + height: 28px; + border: none; + box-shadow: `,`; + cursor: pointer; + border-radius: 2px; + .ant-color-picker-color-block { + width: 22px; + height: 22px; + border-radius: 2px; + } + `])),n)}},Ro=wo,ko=function(){var a=(0,G.Og)(),l=a.layerColor,r=a.setLayerColor,n=(0,ee.$G)(),i=n.t,s=Ro();return(0,e.jsx)(ae.br,{position:"bottomright",children:(0,e.jsx)(ce.Z,{title:i("layer_color_control.index.tuCengYanSeXuan"),placement:"left",children:(0,e.jsx)("div",{id:"l7-editor-color",children:(0,e.jsx)(Bo.Z,{value:l,className:Te()([s.l7ButtonControl]),onChange:function(f,c){r(c)},format:"rgb",presets:[{label:i("layer_color_control.index.changYongYanSe"),colors:["#F5222D","#FA8C16","#FADB14","#8BBB11","#52C41A","#13A8A8","#1677FF","#2F54EB","#722ED1","#EB2F96"]}]})})})})},Jo=ko,Ca,Sa,Ta,Go=function(){return{locationSearch:(0,w.iv)(Ca||(Ca=F()([` + min-width: 200px; + `]))),locationSearchName:(0,w.iv)(Sa||(Sa=F()([` + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + `]))),locationSearchTip:(0,w.iv)(Ta||(Ta=F()([` + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + color: #818181; + font-size: 12px; + `])))}},No=Go;function Wo(p,a){return"".concat(p,"?").concat(Object.entries(a).map(function(l){var r=g()(l,2),n=r[0],i=r[1];return"".concat(n,"=").concat(window.encodeURIComponent(String(i)))}).join("&"))}var Uo=["searchParams","showDistrict","showAddress","onSearchFinish","onChange"],Ko=ct.Z.Option,Ea=function(a){var l=a.searchParams,r=a.showDistrict,n=a.showAddress,i=a.onSearchFinish,s=a.onChange,u=bn()(a,Uo),f=No(),c=(0,_.useState)([]),x=g()(c,2),y=x[0],h=x[1],m=(0,ee.$G)(),j=m.t;(0,_.useEffect)(function(){i==null||i(y)},[i,y]);var P=(0,on.Z)(function(){var E=at()(he()().mark(function v(C){var T,R,k,S;return he()().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:if(C){B.next=3;break}return h([]),B.abrupt("return");case 3:return k=Wo("https://restapi.amap.com/v3/assistant/inputtips",d()(d()({},l),{},{keywords:[].concat(Ze()(((T=l.keywords)!==null&&T!==void 0?T:"").split("|")),[C]).filter(function(Z){return!!Z}).join("|")})),B.next=6,fetch(k);case 6:return B.next=8,B.sent.json();case 8:S=B.sent,h(((R=S==null?void 0:S.tips)!==null&&R!==void 0?R:[]).filter(function(Z){return Z.location&&Z.location.length}).map(function(Z){var b=Z.location.split(","),O=g()(b,2),Q=O[0],D=O[1];return Z.longitude=+Q,Z.latitude=+D,Z}));case 10:case"end":return B.stop()}},v)}));return function(v){return E.apply(this,arguments)}}(),{wait:1e3}),A=P.run,L=(0,_.useCallback)(function(E){var v=E&&y.find(function(C){return C.name===E});s==null||s(E||void 0,v||void 0)},[s,y]);return(0,e.jsx)(ct.Z,d()(d()({className:f.locationSearch,onSearch:A,onChange:L,placeholder:j("location_search_control.location_search.qingShuRuYaoSou"),optionLabelProp:"label"},u),{},{children:y.map(function(E){var v="".concat(r?E.district:"").concat(n?E.address:"");return(0,e.jsxs)(Ko,{value:E.name,label:E.name,children:[(0,e.jsx)("div",{title:E.name,className:f.locationSearchName,children:E.name}),v&&(0,e.jsx)("div",{title:v,className:f.locationSearchTip,children:v})]},E.id)})}))};Ea.defaultProps={showSearch:!0,allowClear:!0,filterOption:!1,defaultActiveFirstOption:!1,showAddress:!0,showDistrict:!0};var zo=_.memo(function(){var p=(0,ae.$r)(),a=(0,_.useState)(),l=g()(a,2),r=l[0],n=l[1],i=(0,_.useState)(""),s=g()(i,2),u=s[0],f=s[1],c=(0,G.SS)(),x=c.features,y=c.resetFeatures,h=(0,G.Og)(),m=h.layerColor,j=(0,_.useState)(),P=g()(j,2),A=P[0],L=P[1],E=(0,ee.$G)(),v=E.t,C=(0,_.useCallback)(function(){if(p){var T=p.getCenter(),R=T.lng,k=T.lat;f("".concat(R,",").concat(k))}},[p]);return(0,_.useEffect)(function(){return C(),p==null||p.on("moveend",C),p==null||p.on("zoomend",C),function(){p==null||p.off("moveend",C),p==null||p.off("zoomend",C)}},[p,C]),(0,Jn.Z)(at()(he()().mark(function T(){var R;return he()().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return R=nn()(m).rgb().object(),S.t0=L,S.next=4,an(R,{x:100,y:100});case 4:S.t1=S.sent,(0,S.t0)(S.t1);case 6:case"end":return S.stop()}},T)})),[m]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(ae.br,{position:"lefttop",children:(0,e.jsx)("div",{id:"l7-editor-citySelect",style:{display:"flex"},children:(0,e.jsx)("div",{children:(0,e.jsx)("div",{children:(0,e.jsx)("div",{children:(0,e.jsx)(Ea,{getPopupContainer:function(){return document.querySelector(".larkmap")},allowClear:!0,value:r==null?void 0:r.name,searchParams:{key:"98d10f05a2da96697313a2ce35ebf1a2",location:u},onChange:function(R,k){if(k){var S=p.getZoom();p.setZoomAndCenter(S>16?S:16,[k.longitude,k.latitude])}n(k)}})})})})})}),r&&(0,e.jsx)(ae.Jx,{lngLat:{lng:r.longitude,lat:r.latitude},children:(0,e.jsx)(ze.Z,{content:(0,e.jsxs)("div",{children:[(0,e.jsx)(te.ZP,{type:"primary",onClick:function(){var R=r.longitude,k=r.latitude;y([].concat(Ze()(x),[(0,pe.point)([R,k],r)])),n(void 0)},children:v("location_search_control.index.tianJiaZhiShuJu")}),(0,e.jsx)(te.ZP,{danger:!0,style:{marginLeft:8},onClick:function(){n(void 0)},children:v("app_header.constants.qingChu")})]}),children:(0,e.jsx)("img",{style:{width:40,height:40},src:A==null?void 0:A.src})})})]})}),Qo=zo,ja,Aa,Xo=function(){var a=U.Z.useToken,l=a(),r=l.token,n=r.colorText,i=r.colorBgContainer,s=r.boxShadow,u=r.colorTextDescription;return{mapAdministrative:(0,w.iv)(ja||(ja=F()([` + background: `,`; + color: `,`; + box-shadow: `,`; + `])),i,n,s),regionLocation:(0,w.iv)(Aa||(Aa=F()([` + background: `,` !important; + color: `,` !important; + padding: 2px 4px !important; + `])),i,u)}},Ho=Xo,$o=function(){var a=Ho();return(0,e.jsx)(ae.br,{className:Te()(["map-administrative-control",a.mapAdministrative]),position:"leftbottom",children:(0,e.jsx)(ae.kp,{searchParams:{key:"98d10f05a2da96697313a2ce35ebf1a2"},className:a.regionLocation})})},Oa,Pa,Yo=function(){var a=U.Z.useToken,l=a(),r=l.token,n=r.colorTextDescription,i=r.colorBgContainer,s=r.colorPrimary,u=r.colorBorder,f=r.colorText,c=r.colorBgElevated,x=r.colorFillSecondary;return{mapTheme:(0,w.iv)(Oa||(Oa=F()([` + color: `,`; + background: `,` !important; + border-color: `,`; + + svg { + fill: `,` !important; + } + + &:hover { + svg { + fill: `,` !important; + } + } + `])),n,i,u,n,f),mapThemePopper:(0,w.iv)(Pa||(Pa=F()([` + *::-webkit-scrollbar { + width: 8px; + background-color: `,`; + } + *::-webkit-scrollbar-thumb { + background-color: `,`; + border-radius: 10px; + } + .l7-popper-content { + color: `,`; + background: `,`; + + .l7-select-control-item:hover { + box-shadow: 0 5px 12px 4px rgba(0, 0, 0, 0.09), + 0 3px 6px 0 rgba(0, 0, 0, 0.12), 0 1px 2px -2px rgba(0, 0, 0, 0.16); + } + + .l7-select-control-item { + border: 1px solid `,`; + border-radius: 4px; + } + + .l7-select-control-item-active { + border: 1px solid `,`; + } + } + + &.l7-popper-right .l7-popper-arrow\xA0 { + border-right-color: `,`; + } + + &.l7-popper-left .l7-popper-arrow\xA0 { + border-left-color: `,`; + } + + &.l7-popper-bottom .l7-popper-arrow\xA0 { + border-bottom-color: `,`; + } + + &.l7-popper-top .l7-popper-arrow\xA0 { + border-top-color: `,`; + } + `])),c,x,f,i,u,s,c,c,c,c)}},Vo=Yo,qo=function(){var a=(0,G.Og)(),l=a.setMapOptions,r=Vo();return(0,e.jsx)(ae.w3,{className:Te()([r.mapTheme,"l7-editor-mapTheme"]),popperClassName:r.mapThemePopper,position:"bottomright",onSelectChange:function(i){l(function(s){return d()(d()({},s),{},{style:i})})}})},ei=qo,La=o(14604),Da,Za,Fa,ti=function(){return{amapInfo:(0,w.iv)(Da||(Da=F()([` + margin-top: 10px; + .ant-checkbox-group { + display: flex; + flex-wrap: wrap; + width: 370px; + + .ant-checkbox-wrapper { + position: relative; + margin-left: 8px; + + .ant-checkbox { + position: absolute; + top: 4px; + left: 10px; + } + } + } + `]))),amapInfoItemImage:(0,w.iv)(Za||(Za=F()([` + width: 142px; + height: 80px; + margin-bottom: 8px; + object-fit: cover; + `]))),amapInfoItem:(0,w.iv)(Fa||(Fa=F()([` + text-align: center; + margin-bottom: 10px; + `])))}},ni=ti;function ai(){var p=(0,ae.$r)(),a=ni(),l=Qt(),r=(0,G.Og)(),n=r.layerType,i=r.setLayerType,s=(0,ee.$G)(),u=s.t,f=(0,_.useMemo)(function(){return[{label:u("official_layer_control.index.guGeTuCeng"),children:[{type:M.dY.GoogleSatellite,title:u("official_layer_control.index.guGeWeiXingTu"),image:"https://mdn.alipayobjects.com/huamei_rzapb5/afts/img/A*cet9T5Nh9eIAAAAAAAAAAAAADqWCAQ/original",layers:[M.ay]}]},{label:u("official_layer_control.index.gaoDeTuCeng"),children:[{type:M.dY.AmapSatellite,title:u("official_layer_control.index.weiXingTu"),image:"https://mdn.alipayobjects.com/huamei_rzapb5/afts/img/A*cet9T5Nh9eIAAAAAAAAAAAAADqWCAQ/original"},{type:M.dY.AmapRoadNet,title:u("official_layer_control.index.luWangTu"),image:"https://mdn.alipayobjects.com/huamei_rzapb5/afts/img/A*G9RtT7qUxwYAAAAAAAAAAAAADqWCAQ/original"},{type:M.dY.AmapTraffic,title:u("official_layer_control.index.luKuangTu"),image:"https://mdn.alipayobjects.com/huamei_rzapb5/afts/img/A*XTFITYbZaIsAAAAAAAAAAAAADqWCAQ/original"},{type:M.dY.AmapBuildings,title:u("official_layer_control.index.louKuaiTu"),image:"https://mdn.alipayobjects.com/huamei_rzapb5/afts/img/A*hIUgTryh-oAAAAAAAAAAAAAADqWCAQ/original"}]}]},[u]),c=(0,_.useRef)(p.getType()!=="mapbox"?{satellite:new AMap.TileLayer.Satellite,roadNet:new AMap.TileLayer.RoadNet,traffic:new AMap.TileLayer.Traffic,buildings:new AMap.Buildings}:{}),x=function(m){return n==null?void 0:n.includes(m)};(0,_.useEffect)(function(){if(p&&p.getType()!=="mapbox")try{var h=p.map,m=c.current,j=m.roadNet,P=m.satellite,A=m.traffic,L=m.buildings;x("amapSatellite")?h.add(P):h.remove(P),x("RoadNet")?h.add(j):h.remove(j),x("Traffic")?h.add(A):h.remove(A),x("Buildings")?h.add(L):h.remove(L)}catch(E){}},[n,p]);var y=(0,_.useMemo)(function(){var h=[];return f.map(function(m){return m.children}).flat().forEach(function(m){if(n.includes(m.type)){var j;h.push.apply(h,Ze()((j=m==null?void 0:m.layers)!==null&&j!==void 0?j:[]))}}),h},[f,n]);return(0,e.jsxs)(ae.br,{position:"bottomright",children:[(0,e.jsx)(ze.Z,{content:(0,e.jsx)($t.Z,{items:f.map(function(h){return{label:h.label,key:h.label,children:(0,e.jsx)("div",{className:a.amapInfo,children:(0,e.jsx)(La.Z.Group,{value:n,onChange:function(j){i(j)},children:h.children.map(function(m){return(0,e.jsx)(La.Z,{value:m.type,children:(0,e.jsxs)("div",{className:a.amapInfoItem,children:[(0,e.jsx)("img",{src:m.image,alt:"",className:a.amapInfoItemImage}),(0,e.jsx)("h5",{style:{marginTop:0},children:m.title})]},m.type)},m.type)})})})}})}),trigger:"click",placement:"leftTop",overlayInnerStyle:{width:370,height:p.getType()!=="mapbox"?330:190},children:(0,e.jsx)(ce.Z,{title:u("app_header.constants.guanFangTuCeng"),placement:"left",children:(0,e.jsx)("button",{type:"button",id:"l7-editor-filter",className:l.L7EditorControl,children:(0,e.jsx)(M.BH,{id:"l7-editor-aMap",type:"icon-tuceng",className:l.l7EditorIcon})})})}),y.map(function(h){return(0,e.jsx)(ae.YY,{zIndex:1,source:{data:h,parser:{type:"rasterTile",tileSize:256,zoomOffset:0}}},h)})]})}var Ia=o(81930),ri=o(63732),Ma,oi=function(){return{marker:(0,w.iv)(Ma||(Ma=F()([` + color: #fff; + background: #ff0000; + font-size: 12px; + padding: 6px; + `])))}},ii=oi,li={shape:"line",size:3,color:"#ff0000",state:{active:!1},style:{opacity:1,lineType:"solid"},zIndex:100,animate:{interval:.6,trailLength:1.5,duration:4}},si=function(){var a=ii(),l=Qt(),r=(0,_.useState)(null),n=g()(r,2),i=n[0],s=n[1],u=(0,G.SS)(),f=u.scene,c=u.features,x=u.resetFeatures,y=u.revertCoord,h=u.bboxAutoFit,m=(0,ae.dN)(),j=(0,_.useState)(!1),P=g()(j,2),A=P[0],L=P[1],E=(0,_.useState)(void 0),v=g()(E,2),C=v[0],T=v[1],R=(0,_.useState)(void 0),k=g()(R,2),S=k[0],J=k[1],B=(0,_.useState)(!1),Z=g()(B,2),b=Z[0],O=Z[1],Q=(0,_.useState)(void 0),D=g()(Q,2),I=D[0],N=D[1],V=(0,_.useState)(void 0),H=g()(V,2),le=H[0],Ce=H[1],Re=(0,_.useState)({data:{type:"FeatureCollection",features:[]}}),We=g()(Re,2),gt=We[0],ke=We[1],it=(0,ee.$G)(),Ve=it.t,Et=(0,_.useCallback)(function(qe){var lt=[qe.lngLat.lng,qe.lngLat.lat];if(le)if((0,pe.booleanPointInPolygon)((0,pe.point)(lt),le)){if(i){var Ue=i.lngLat2ImagePixel(lt),xt=[{x:Ue[0],y:Ue[1],clickType:1}],pt=1;i.predict(xt).then(function(){var q=at()(he()().mark(function W(ne){var Ee,xe,_e,Qe;return he()().wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return Xe.next=2,i.exportGeoPolygon(ne,pt);case 2:Ee=Xe.sent,xe=i.exportImageClip(ne),_e={feature:Ee.features,imageUrl:xe.src},(0,pe.booleanPointInPolygon)((0,pe.point)(lt),_e==null?void 0:_e.feature[0])&&(_e==null?void 0:_e.feature[0].geometry.coordinates[0].length)>4?(Qe=y(_e.feature),x([].concat(Ze()(c),Ze()(Qe)))):Ye.ZP.warning(Ve("map_control_group.sam.tuXingJieXiCuoWu"));case 6:case"end":return Xe.stop()}},W)}));return function(W){return q.apply(this,arguments)}}())}}else Ye.ZP.error(Ve("map_control_group.sam.qingZaiQuYuNei"))},[le,i,y,x,c,Ve]),sn=function(){var qe=at()(he()().mark(function lt(){var Ue,xt,pt,q,W,ne,Ee,xe,_e,Qe,Fe,Xe,Zt,jt,Ft,bt,et,Xt,At,Gt,un,Wa,Ht;return he()().wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:if(O(!0),Ke.prev=1,!(!C||!i)){Ke.next=4;break}return Ke.abrupt("return");case 4:return xt=C.layer.getSource(),pt=xt==null||(Ue=xt.tileset)===null||Ue===void 0?void 0:Ue.currentTiles,q=1/0,W=1/0,ne=-1/0,Ee=-1/0,pt==null||pt.forEach(function(ft){q=Math.min(q,ft.x),W=Math.min(W,ft.y),ne=Math.max(ne,ft.x),Ee=Math.max(Ee,ft.y)}),xe=Math.ceil(f==null?void 0:f.getZoom()),_e=document.createElement("canvas"),_e.width=(ne-q+1)*256,_e.height=(Ee-W+1)*256,Qe=_e.getContext("2d"),Fe=i.mapHelper,Xe=[].concat(Ze()(Fe.tileToLngLat(q,Ee+1,xe)),Ze()(Fe.tileToLngLat(ne+1,W,xe))),pt==null||pt.forEach(function(ft){ft&&(Qe==null||Qe.drawImage(ft.data,(ft.x-q)*256,(ft.y-W)*256,256,256))}),i.setGeoImage(_e.toDataURL(),{extent:Xe,width:_e.width,height:_e.height}),Zt=_e.toDataURL("image/jpeg"),jt=Zt.indexOf(","),Ft=Zt==null?void 0:Zt.substring(jt+1),bt="https://sam.lvisei.icu/api",et=new FormData,et.append("image_path",Ft),Ke.next=28,fetch(bt,{body:et,method:"post"});case 28:return Ke.next=30,Ke.sent.arrayBuffer();case 30:Xt=Ke.sent;try{At=Fe.tileToLngLat(ne+1,W,xe),Gt=Fe.tileToLngLat(q,Ee+1,xe),un=[Gt[0],At[1]],Wa=[At[0],Gt[1]],Ht=(0,pe.polygon)([[At,un,Gt,Wa,At]]),N(un),Ce(Ht),ke({data:{type:"FeatureCollection",features:[Ht]}}),h([Ht]),i.setEmbedding(Xt),Ye.ZP.success(Ve("map_control_group.sam.jiSuanWanCheng"))}catch(ft){console.log(ft)}Ke.next=38;break;case 34:Ke.prev=34,Ke.t0=Ke.catch(1),Ye.ZP.error(Ve("map_control_group.sam.jiSuanShiBai")),f==null||f.off("click",Et);case 38:return Ke.prev=38,O(!1),Ke.finish(38);case 41:case"end":return Ke.stop()}},lt,null,[[1,34,38,41]])}));return function(){return qe.apply(this,arguments)}}();return(0,_.useEffect)(function(){var qe=new Ia.XU({modelUrl:Ia.AK});qe.initModel().then(function(){s(qe)})},[]),(0,_.useEffect)(function(){if(!(0,Kt.Z)(m)){var qe=m.find(function(Ue){return Ue.type==="rasterLayer"&&[M.ay].includes(Ue.options.source.data)}),lt=m.find(function(Ue){return Ue.id===M.d7.PolygonLayer});J(lt),T(qe)}},[m]),(0,_.useEffect)(function(){return S&&(A?S.on("unclick",Et):(ke({data:{type:"FeatureCollection",features:[]}}),N(void 0),S.off("unclick",Et))),function(){S==null||S.off("unclick",Et)}},[A,f,Et]),(0,_.useEffect)(function(){A&&i&&sn()},[A,i]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(ae.br,{position:"bottomright",children:(0,e.jsx)(ce.Z,{title:Ve("map_control_group.sam.zhiNengXuanZe"),placement:"left",children:(0,e.jsx)(ri.Z,{spinning:b,children:(0,e.jsx)("button",{type:"button",className:l.L7EditorControl,onClick:function(){L(!A),A&&Ye.ZP.success(Ve("map_control_group.sam.zhiNengShiBieGuanBi"))},children:(0,e.jsx)(M.BH,{type:"icon-zhinengshibie",style:{fontSize:20,color:A?"#1677ff":""},className:l.l7EditorIcon})})})})}),I&&(0,e.jsx)(ae.Jx,{lngLat:{lng:I[0],lat:I[1]},anchor:"center",offsets:[54,-16],children:(0,e.jsx)("div",{className:a.marker,children:Ve("map_control_group.sam.ziDongShiBie")})}),(0,e.jsx)(ae.Ie,d()(d()({},li),{},{source:gt}))]})},Ba={drawControl:!0,clearControl:!0,zoomControl:!0,scaleControl:!0,locationSearchControl:!0,mouseLocationControl:!0,filterControl:!0,officialLayerControl:!0,mapThemeControl:!0,geoLocateControl:!0,layerColorControl:!0,autoControl:!0,fullscreenControl:!0,administrativeSelectControl:!0,mapAdministrativeControl:!0,logoControl:!0},ui=function(a){var l=a.mapControl,r=(0,G.Og)(),n=r.baseMap,i=r.layerType,s=Qt(),u=(0,_.useState)(Ba),f=g()(u,2),c=f[0],x=f[1];return(0,_.useEffect)(function(){x(d()(d()({},Ba),l))},[l]),(0,e.jsxs)(e.Fragment,{children:[c.logoControl&&(0,e.jsx)(ae.OB,{position:"leftbottom"}),c.scaleControl&&(0,e.jsx)(ae.jf,{position:"leftbottom",className:s.scalesControl}),c.mouseLocationControl&&(0,e.jsx)(ae.CB,{position:"leftbottom",className:s.mouseLocatio}),c.drawControl&&(0,e.jsx)(go,{}),c.clearControl&&(0,e.jsx)(fo,{}),c.zoomControl&&(0,e.jsx)(ae.Ly,{className:s.zoom,showZoom:!0}),c.mapAdministrativeControl&&(0,e.jsx)($o,{}),c.administrativeSelectControl&&(0,e.jsx)(lo,{}),c.locationSearchControl&&(0,e.jsx)(Qo,{}),c.filterControl&&(0,e.jsx)(Mo,{}),n==="Gaode"&&c.officialLayerControl&&(0,e.jsx)(ai,{}),c.mapThemeControl&&(0,e.jsx)(ei,{}),c.geoLocateControl&&(0,e.jsx)(ae.l_,{position:"topleft",className:s.fullScreen}),c.layerColorControl&&(0,e.jsx)(Jo,{}),c.autoControl&&(0,e.jsx)(uo,{}),c.fullscreenControl&&(0,e.jsx)(ae.ot,{position:"bottomright",className:s.fullScreen}),i.includes(M.dY.GoogleSatellite)&&(0,e.jsx)(si,{})]})},di=o(63887),ci=o(82334),wa,Ra,ka,Ja,Ga,pi=function(){var a=U.Z.useToken,l=a(),r=l.token,n=r.colorBgContainer,i=r.boxShadow,s=r.colorBorderSecondary,u=r.colorInfoHover,f=r.colorIcon;return{resizePanel:(0,w.iv)(wa||(wa=F()([` + width: 100%; + height: calc(100% - 50px); + display: flex; + position: relative; + `]))),resizePanelLeft:(0,w.iv)(Ra||(Ra=F()([` + position: absolute; + left: 0; + top: 0; + bottom: 0; + overflow: hidden; + `]))),resizePanelRight:(0,w.iv)(ka||(ka=F()([` + position: relative; + border-left: 1px solid `,`; + box-shadow: `,`; + `])),s,i),resizePanelDragLine:(0,w.iv)(Ja||(Ja=F()([` + transition: all 0.5s; + cursor: move !important; + z-index: 100; + + &:hover, + &:focus { + background-color: `,`; + } + `])),u),resizePanelToggleBtn:(0,w.iv)(Ga||(Ga=F()([` + height: 60px; + width: 20px; + display: flex; + align-items: center; + justify-content: center; + background: `,`; + position: absolute; + top: calc(50% - 30px); + left: -20px; + border-top-left-radius: 4px; + border-bottom-left-radius: 4px; + cursor: pointer; + z-index: 2; + .anticon { + transition: all 0.2s; + } + color: `,`; + `])),n,f)}},fi=pi,_i=function(a){var l,r=a.left,n=a.right,i=a.onFeatureChange,s=(0,G.Og)(),u=s.hideEditor,f=s.setHideEditor,c=s.rightPanelWidth,x=s.setRightWidth,y=(0,_.useState)(null),h=g()(y,2),m=h[0],j=h[1],P=g()(M.yc,2),A=P[0],L=P[1],E=(l=(0,Sn.Z)(m))!==null&&l!==void 0?l:{},v=E.width,C=v===void 0?0:v,T=(0,G.SS)(),R=T.features,k=fi(),S=function(Z){var b,O=(b=m==null?void 0:m.getBoundingClientRect())!==null&&b!==void 0?b:{},Q=O.left,D=Q===void 0?0:Q,I=100*(1-(Z.clientX-D)/C);IL&&(I=L),x(I)},J=(0,_.useMemo)(function(){return u?0:c},[u,c]);return(0,_.useEffect)(function(){i(R)},[R]),(0,e.jsxs)("div",{className:Te()([k.resizePanel,"l7-editor-content"]),ref:function(Z){j(Z)},children:[(0,e.jsx)("div",{className:Te()([k.resizePanelLeft,"l7-editor-content__left"]),style:{width:"".concat(100-J,"%")},children:r}),(0,e.jsxs)(ci.e,{enable:{left:!0},style:{marginLeft:"".concat(100-J,"%")},size:{width:"".concat(J,"%"),height:"100%"},minWidth:"".concat(A/100*C,"px"),maxWidth:"".concat(L/100*C,"px"),className:Te()([k.resizePanelRight,"l7-editor-content__right"]),handleClasses:{left:k.resizePanelDragLine},handleStyles:{left:{width:6,left:-3}},defaultSize:{width:"".concat(J,"%"),height:"100%"},onResize:S,children:[n,(0,e.jsx)("div",{className:k.resizePanelToggleBtn,onClick:function(){f(!u)},children:(0,e.jsx)(di.Z,{style:{transform:u?"rotate(-180deg)":void 0}})})]})]})},vi=o(58434),ot=o(19443),hi=o(35894),mi=o(75811),gi=function(){var a=(0,G.SS)(),l=a.transformCoord,r=zn(),n=r.features,i=(0,G.Og)(),s=i.layerColor,u=(0,_.useMemo)(function(){return{zIndex:101,field:"name",style:{fill:"".concat(s),opacity:1,fontSize:18,stroke:"#fff",strokeWidth:2,textAllowOverlap:!0,padding:[10,10],textOffset:[0,-18]}}},[s]),f=(0,_.useMemo)(function(){var c=l(n).map(function(y){var h;return{data:(0,pe.center)(y),featureIndex:(h=y.properties)===null||h===void 0?void 0:h[M.AQ.Index]}}),x=c.map(function(y){return{x:y.data.geometry.coordinates[0],y:y.data.geometry.coordinates[1],name:"".concat(y.featureIndex+1)}});return x},[l,n]);return(0,e.jsx)(ae.AB,d()(d()({},u),{},{source:{data:f,parser:{type:"json",x:"x",y:"y"}}}))},Na,xi=function(){return{l7Editor:(0,w.iv)(Na||(Na=F()([` + width: 100%; + height: 100%; + position: relative; + overflow: hidden; + `])))}},bi=xi,yi=function(a){var l=a.onFeatureChange,r=(0,ee.$G)(),n=r.i18n,i=(0,G.Og)(),s=i.theme,u=i.mapOptions,f=i.setMapOptions,c=i.showIndex,x=i.locale,y=bi();(0,hi.Z)(function(){f(s==="dark"?d()(d()({},u),{},{style:"dark"}):d()(d()({},u),{},{style:"light"}))},[s]),(0,_.useEffect)(function(){n.changeLanguage(x)},[]);var h=(0,_.useMemo)(function(){var m;return(m=$e.find(function(j){return j.lang===x}))===null||m===void 0?void 0:m.antd},[x]);return(0,e.jsx)(mi.ZP,{locale:h,theme:{algorithm:s==="dark"?U.Z.darkAlgorithm:U.Z.defaultAlgorithm},children:(0,e.jsxs)("div",{className:Te()([y.l7Editor,"l7-editor"]),id:"l7-editor",children:[(0,e.jsx)(vr,{toolbar:a.toolbar}),(0,e.jsx)(_i,{onFeatureChange:function(j){l&&l(j)},left:(0,e.jsxs)(xr,{children:[(0,e.jsx)(ui,{mapControl:a.mapControl}),c&&(0,e.jsx)(gi,{}),(0,e.jsx)(Gr,{}),(0,e.jsx)(Qr,{}),(0,e.jsx)(Rr,{})]}),right:(0,e.jsx)(to,{tabItems:a==null?void 0:a.tabItems,features:a==null?void 0:a.features})})]})})};zt.zl.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=!1;var Ci=function(a){var l=(0,ee.$G)(),r=l.t,n=(0,_.useMemo)(function(){return!/Mobi|Android|iPhone/i.test(navigator.userAgent)},[]),i=(0,_.useMemo)(function(){return function(s){var u,f,c,x,y,h,m,j,P,A,L,E=s.set;E(ot.EB,(u=a==null?void 0:a.baseMap)!==null&&u!==void 0?u:"Gaode"),E(ot.dR,(f=a==null?void 0:a.primaryColor)!==null&&f!==void 0?f:M.K6),E(ot.Do,(c=a==null?void 0:a.rightPanelWidth)!==null&&c!==void 0?c:40),E(ot.aQ,(x=a==null?void 0:a.mapOption)!==null&&x!==void 0?x:{style:"normal",maxZoom:24}),E(ot.E1,!(a!=null&&a.autoFitBounds)),E(ot.xZ,(y=a==null?void 0:a.popupTrigger)!==null&&y!==void 0?y:"click"),E(ot.Uv,(h=a==null?void 0:a.activeTab)!==null&&h!==void 0?h:"geojson"),E(ot.DJ,(m=a==null?void 0:a.officialLayers)!==null&&m!==void 0?m:[]),E(ot.bK,(j=a==null?void 0:a.hidePanel)!==null&&j!==void 0?j:!1),E(ot.XG,(P=a==null?void 0:a.theme)!==null&&P!==void 0?P:"light"),E(ot.PY,(A=a==null?void 0:a.coordConvert)!==null&&A!==void 0?A:"GCJ02"),E(ot.GR,(L=a==null?void 0:a.locale)!==null&&L!==void 0?L:"zh-CN")}},[a]);return n?(0,e.jsx)(zt.Wh,{initializeState:i,children:(0,e.jsx)(yi,d()({},a))}):(0,e.jsx)(vi.ZP,{status:"404",title:r("pages.index.qingYongPCDuan")})}},19443:function(Be,re,o){"use strict";o.d(re,{DJ:function(){return _},Do:function(){return ce},E1:function(){return ze},EB:function(){return st},GR:function(){return pe},LY:function(){return g},PY:function(){return ee},Qn:function(){return Se},Rl:function(){return me},UW:function(){return ut},Uv:function(){return Te},XG:function(){return M},aD:function(){return je},aQ:function(){return te},bK:function(){return z},bo:function(){return Ae},dR:function(){return Oe},tJ:function(){return be},xZ:function(){return Pe},zl:function(){return G}});var X=o(95570),d=o(9044),K=function(ge){return function(ue){var Je=ue.setSelf,tt=ue.onSet,e=localStorage.getItem(ge);e&&Je(JSON.parse(e)),tt(function(He){He instanceof X.nY?localStorage.removeItem(ge):localStorage.setItem(ge,JSON.stringify(He))})}},g=(0,X.cn)({key:"filter",default:[],dangerouslyAllowMutability:!0}),je=(0,X.cn)({key:"isDraw",default:!1}),be=(0,X.cn)({key:"savedText",default:""}),me=(0,X.cn)({key:"features",default:[],dangerouslyAllowMutability:!0}),Se=(0,X.cn)({key:"scene",default:null,dangerouslyAllowMutability:!0}),Ae=(0,X.cn)({key:"editorText",default:JSON.stringify({type:"FeatureCollection",features:[]},null,2),effects:[K(d.Fe.EditorText)]}),oe=(0,X.cn)({key:"lnglatType"}),ye=(0,X.cn)({key:"lnglatText",default:""}),ce=(0,X.cn)({key:"rightPanelWidth",effects:[K(d.Fe.RightPanelWidth)]}),te=(0,X.cn)({key:"mapOptions",effects:[K(d.Fe.MapOptions)]}),Oe=(0,X.cn)({key:"layerColor",effects:[K(d.Fe.LayerColor)]}),z=(0,X.cn)({key:"hideEditor",default:!1,effects:[K(d.Fe.HideEditor)]}),ze=(0,X.cn)({key:"autoFitBounds",effects:[K(d.Fe.AutoFitBounds)]}),Pe=(0,X.cn)({key:"popupTrigger",effects:[K(d.Fe.PopupTrigger)]}),st=(0,X.cn)({key:"baseMap",effects:[K(d.Fe.BaseMap)]}),Te=(0,X.cn)({key:"activeTab",default:"geojson",effects:[K(d.Fe.ActiveRightTabKey)]}),_=(0,X.cn)({key:"layerType",default:[],effects:[K(d.Fe.officialLayers)]}),ee=(0,X.cn)({key:"coordConvert",default:"GCJ02",effects:[K(d.Fe.Convert)]}),M=(0,X.cn)({key:"theme",default:"light",effects:[K(d.Fe.theme)]}),G=(0,X.cn)({key:"cityHistory",default:[],effects:[K(d.Fe.cityHistory)]}),ut=(0,X.cn)({key:"showIndex",default:!0,effects:[K(d.Fe.showIndex)]}),pe=(0,X.cn)({key:"locale",default:"zh-CN",effects:[K(d.Fe.locale)]})},65635:function(Be,re,o){"use strict";o.d(re,{Z:function(){return pe}});var X=o(93923),d=o.n(X),K=o(5773),g=o.n(K),je=o(22060),be=o.n(je),me=o(26801),Se=o.n(me),Ae=o(11006),oe=o.n(Ae),ye=o(40742),ce=o(73824),te=o(14125),Oe=o(36923),z=o(87261),ze=o(69946),Pe=o(77617),st=o(73703),Te=o(95570),_=o(9044),ee=o(58874),M=o(99344),G=o(19443),ut=o(40489);function pe(){var Ge=(0,ut.Z)(),ge=Ge.baseMap,ue=Ge.coordConvert,Je=(0,Te.FV)(G.bo),tt=oe()(Je,2),e=tt[0],He=tt[1],Le=(0,Te.FV)(G.tJ),Y=oe()(Le,2),ie=Y[0],$=Y[1],ve=(0,Te.FV)(G.Rl),we=oe()(ve,2),Ie=we[0],_t=we[1],dt=(0,Te.FV)(G.aD),$e=oe()(dt,2),vt=$e[0],yt=$e[1],F=(0,Te.FV)(G.Qn),w=oe()(F,2),U=w[0],It=w[1],Mt=(0,st.$G)(),Ot=Mt.t,Pt=(0,Pe.useMemo)(function(){return e!==ie},[e,ie]),Bt=(0,Pe.useMemo)(function(){return(0,ye.featureCollection)(Ie)},[Ie]),Ct=function(se){_t((0,te.Z)(se).map(function(fe,De){var nt;return fe.properties=Se()(Se()({},fe.properties),{},be()({},_.AQ.Index,De)),(nt=fe.properties)!==null&&nt!==void 0&&nt[_.AQ.DrawType]||(fe.properties[_.AQ.DrawType]=function(){var he=(0,ye.getType)(fe);return/Point/.test(he)?"point":/LineString/.test(he)?"line":"polygon"}()),fe}))},wt=function(se){var fe=JSON.stringify({type:"FeatureCollection",features:[]},null,2),De=[];if(e||se)try{De=(0,ee.mr)(se!=null?se:e,Ot),se&&He(se),$(se!=null?se:e),Ct(De)}catch(nt){ce.ZP.warning(Ot("recoil.feature.shuJuJiaZaiYou"))}else He(fe),$(fe);return De},Lt=function(se){var fe=(0,M.X)({content:(0,ye.featureCollection)(se)});He(fe),$(fe),Ct(se)},Rt=(0,Pe.useMemo)(function(){var Me=Ie.map(function(fe,De){var nt=fe.properties;return Se()({__index:De+1},nt)}),se=[];return Array.from(new Set((0,Oe.Z)(Ie.map(function(fe){var De=fe.properties;return Object.keys(De)})))).forEach(function(fe){var De=g()(Me[0][fe]);if(De==="string"||De==="boolean"){var nt=Me.map(function(Dt){return String(Dt[fe])});se.push({type:"string",field:fe,value:nt})}else if(De==="number"){var he=Me.map(function(Dt){return Dt[fe]});se.push({type:De,field:fe,min:(0,z.Z)(he),max:(0,ze.Z)(he)})}}),se},[Ie]),St=(0,Pe.useCallback)(function(Me){var se=d()(Me);return ue==="WGS84"&&ge==="Gaode"?se=se.map(function(fe){return(0,ee.IQ)((0,te.Z)(fe))}):ue==="GCJ02"&&ge==="Mapbox"&&(se=se.map(function(fe){return(0,ee.Jk)((0,te.Z)(fe))})),se},[ge,ue]),kt=(0,Pe.useCallback)(function(Me){var se=d()(Me);return ue==="WGS84"&&ge==="Gaode"?se=se.map(function(fe){return(0,ee.Jk)((0,te.Z)(fe))}):ue==="GCJ02"&&ge==="Mapbox"&&(se=se.map(function(fe){return(0,ee.IQ)((0,te.Z)(fe))})),se},[ge,ue]),Jt=(0,Pe.useCallback)(function(Me){var se=Me!=null?Me:Ie;if(U&&se.length){var fe=(0,ye.bbox)((0,ye.featureCollection)(St(se))),De=oe()(fe,4),nt=De[0],he=De[1],Dt=De[2],Ze=De[3];U.fitBounds([[nt,he],[Dt,Ze]])}},[Ie,U,St]);return{editorText:e,setEditorText:He,savedText:ie,setSavedText:$,features:Ie,setFeatures:Ct,savable:Pt,saveEditorText:wt,resetFeatures:Lt,dataSource:Rt,bboxAutoFit:Jt,setIsDraw:yt,isDraw:vt,scene:U,setScene:It,fc:Bt,transformCoord:St,revertCoord:kt}}},64669:function(Be,re,o){"use strict";o.d(re,{Z:function(){return je}});var X=o(11006),d=o.n(X),K=o(95570),g=o(19443);function je(){var be=(0,K.FV)(g.LY),me=d()(be,2),Se=me[0],Ae=me[1];return{filters:Se,setFilters:Ae}}},40489:function(Be,re,o){"use strict";o.d(re,{Z:function(){return je}});var X=o(11006),d=o.n(X),K=o(95570),g=o(19443);function je(){var be=(0,K.FV)(g.Do),me=d()(be,2),Se=me[0],Ae=me[1],oe=(0,K.FV)(g.aQ),ye=d()(oe,2),ce=ye[0],te=ye[1],Oe=(0,K.FV)(g.dR),z=d()(Oe,2),ze=z[0],Pe=z[1],st=(0,K.FV)(g.bK),Te=d()(st,2),_=Te[0],ee=Te[1],M=(0,K.FV)(g.E1),G=d()(M,2),ut=G[0],pe=G[1],Ge=(0,K.FV)(g.xZ),ge=d()(Ge,2),ue=ge[0],Je=ge[1],tt=(0,K.FV)(g.EB),e=d()(tt,2),He=e[0],Le=e[1],Y=(0,K.FV)(g.Uv),ie=d()(Y,2),$=ie[0],ve=ie[1],we=(0,K.FV)(g.DJ),Ie=d()(we,2),_t=Ie[0],dt=Ie[1],$e=(0,K.FV)(g.PY),vt=d()($e,2),yt=vt[0],F=vt[1],w=(0,K.FV)(g.XG),U=d()(w,2),It=U[0],Mt=U[1],Ot=(0,K.FV)(g.zl),Pt=d()(Ot,2),Bt=Pt[0],Ct=Pt[1],wt=(0,K.FV)(g.UW),Lt=d()(wt,2),Rt=Lt[0],St=Lt[1],kt=(0,K.FV)(g.GR),Jt=d()(kt,2),Me=Jt[0],se=Jt[1];return{rightPanelWidth:Se,setRightWidth:Ae,mapOptions:ce,setMapOptions:te,layerColor:ze,setLayerColor:Pe,hideEditor:_,setHideEditor:ee,popupTrigger:ue,setPopupTrigger:Je,baseMap:He,setBaseMap:Le,autoFitBounds:ut,setAutoFitBounds:pe,activeTab:$,setActiveTab:ve,layerType:_t,setLayerType:dt,coordConvert:yt,setCoordConvert:F,theme:It,setTheme:Mt,cityHistory:Bt,setCityHistory:Ct,showIndex:Rt,setShowIndex:St,locale:Me,setLocale:se}}},45209:function(Be,re,o){"use strict";o.d(re,{SS:function(){return X.Z},L0:function(){return d.Z},Og:function(){return K.Z}});var X=o(65635),d=o(64669),K=o(40489),g=o(93923),je=o(11006),be=o(40742),me=o(73703),Se=o(95570),Ae=o(9044),oe=o(19443);function ye(){var ce=useRecoilState(lnglatTypeState),te=_slicedToArray(ce,2),Oe=te[0],z=te[1],ze=useTranslation(),Pe=ze.t,st=useRecoilState(lnglatTextState),Te=_slicedToArray(st,2),_=Te[0],ee=Te[1],M=function(ut){var pe=ut.split(` +`).filter(function(ge){return ge}).map(function(ge){return ge.split(";").filter(function(ue){return ue}).map(function(ue){return ue.split(",").filter(function(Je){return Je}).map(function(Je){return+Je})})});if(LngLatVT.check(pe)){var Ge=[];return Oe==="Point"?Ge.push.apply(Ge,_toConsumableArray(pe.flat().map(function(ge){return point(ge)}))):Oe==="LingString"?Ge.push.apply(Ge,_toConsumableArray(pe.map(function(ge){return lineString(ge)}))):Ge.push.apply(Ge,_toConsumableArray(pe.map(function(ge){return isEqual(first(ge),last(ge))||ge.push(ge[0]),polygon([ge])}))),Ge}else throw new Error(Pe("import_btn.lnglat_import_btn.lNGLA"))};return{lngLatImportType:Oe,setLngLatImportType:z,lngLatText:_,setLngLatText:ee,importLngLatText:M}}},58874:function(Be,re,o){"use strict";o.d(re,{fC:function(){return M},fN:function(){return ze.f},Qp:function(){return G},Yt:function(){return ze.Y},Di:function(){return ge},Jk:function(){return Te},C2:function(){return Ge},oO:function(){return ue},bo:function(){return Je},gw:function(){return e},tI:function(){return tt},Ep:function(){return He},mr:function(){return ut},IQ:function(){return st}});var X=o(10574),d=o.n(X),K=o(39343),g=o.n(K),je=o(26801),be=o.n(je),me=o(68503),Se=o(91327),Ae=o.n(Se),oe=o(40742),ye=o(73824),ce=o(9498),te=o.n(ce),Oe=o(63364),z=o(9044),ze=o(12178),Pe=o(46250),st=function(Y){return Y.geometry.type.match(/polygon/i)&&(Y.geometry=JSON.parse(JSON.stringify(Y.geometry))),Pe.Z.transform(Y,Pe.Z.WGS84,Pe.Z.GCJ02)},Te=function(Y){return Y.geometry.type.match(/polygon/i)&&(Y.geometry=JSON.parse(JSON.stringify(Y.geometry))),Pe.Z.transform(Y,Pe.Z.GCJ02,Pe.Z.WGS84)},_=o(93923),ee=o.n(_);function M(Le){var Y=(0,oe.coordAll)(Le).map(function(ie){return ie.join(",")}).join(";");return Y}function G(Le){var Y=Le.split(` +`).filter(function($){return $}).map(function($){return $.split(";").filter(function(ve){return ve}).map(function(ve){return ve.split(",").filter(function(we){return we}).map(function(we){return+we})})});if(z.eG.check(Y)){var ie=[];return ie.push.apply(ie,ee()(Y.flat().map(function($){return(0,oe.point)($)}))),ie}}var ut=function(Y,ie){var $=JSON.parse(Y);if(z._9.check($))return $.features;if(Array.isArray($))return z.Iz.check($)?$:z.xQ.check($)?$.map(function(ve){return(0,oe.feature)(ve)}):(console.warn(ie("utils.transform.weiShiBieJS")),[]);if(z.u9.check($))return[$];if(z.dw.check($))return[(0,oe.feature)($)]},pe=function(Y,ie){var $=Color(Y).fade(ie);return"rgba(".concat($.array().join(", "),")")},Ge=function(Y){var ie=(0,me.getSingleColorStyle)(Y);return Object.keys(ie).forEach(function($){ie[$].options=be()(be()({},ie[$].options),{},{zIndex:z.QF})}),ie},ge=function(Y,ie){var $=document.createElement("a");$.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(Y)),$.setAttribute("download","".concat(te()().format("YYYY-MM-DD"),".").concat(ie)),$.style.display="none",document.body.appendChild($),$.click()},ue=function(Y){var ie=new URLSearchParams(window.location.search);return ie.get(Y)},Je=function(){var Le=g()(d()().mark(function Y(ie){var $,ve,we,Ie,_t,dt,$e,vt,yt,F=arguments;return d()().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return $=F.length>1&&F[1]!==void 0?F[1]:"GeoJSON",ve=F.length>2?F[2]:void 0,U.next=4,fetch(ie);case 4:if(we=U.sent,$!=="GeoJSON"){U.next=18;break}return U.prev=6,U.next=9,we.json();case 9:return Ie=U.sent,U.abrupt("return",Ie);case 13:throw U.prev=13,U.t0=U.catch(6),new Error(ve("utils.index.qingJianChaUR"));case 16:U.next=43;break;case 18:if($!=="WKT"){U.next=30;break}return U.next=21,we.text();case 21:if(_t=U.sent,dt=(0,ze.Y)(_t),!z._9.check(dt)){U.next=27;break}return U.abrupt("return",dt);case 27:ye.ZP.error(ve("utils.index.qingJianChaUR"));case 28:U.next=43;break;case 30:if($!=="KML"){U.next=43;break}return U.next=33,we.text();case 33:if($e=U.sent,vt=new DOMParser().parseFromString($e,"text/xml"),!(vt.getElementsByTagName("parsererror").length>0)){U.next=39;break}ye.ZP.error(ve("utils.index.qingJianChaUR")),U.next=43;break;case 39:return U.next=41,Ae().kml(vt,{style:!0});case 41:return yt=U.sent,U.abrupt("return",yt);case 43:case"end":return U.stop()}},Y,null,[[6,13]])}));return function(ie){return Le.apply(this,arguments)}}(),tt=function(Y){return!(0,Oe.Z)(Y)&&Y instanceof Promise},e=function(Y){var ie,$=(ie=Y.properties)===null||ie===void 0?void 0:ie[z.AQ.DrawType];if($==="circle")return!0;var ve=(0,oe.center)(Y).geometry.coordinates,we=(0,oe.coordAll)(Y).map(function(Ie){return Math.round((0,oe.distance)(Ie,ve,{units:"meters"}))});return Array.from(new Set(we)).length===1},He=function(Y){var ie,$=(ie=Y.properties)===null||ie===void 0?void 0:ie[z.AQ.DrawType];if($==="rect")return!0;var ve=(0,oe.coordAll)(Y);if(ve.length!==5)return!1;var we=(0,oe.distance)(ve[0],ve[1],{units:"meters"}).toFixed(0),Ie=(0,oe.distance)(ve[1],ve[2],{units:"meters"}).toFixed(0),_t=(0,oe.distance)(ve[2],ve[3],{units:"meters"}).toFixed(0),dt=(0,oe.distance)(ve[3],ve[4],{units:"meters"}).toFixed(0);if(we===_t&&Ie===dt){var $e=Math.round((0,oe.bearing)(ve[0],ve[3])-(0,oe.bearing)(ve[0],ve[1]));return $e===90||$e===270}return!1}},99344:function(Be,re,o){"use strict";o.d(re,{X:function(){return je}});var X=o(53436),d=o.n(X),K=o(97364),g=o.n(K);function je(be){var me=be.content,Se=be.parser,Ae=Se===void 0?"json":Se,oe=me;typeof me!="string"&&(oe=JSON.stringify(me,null,2));var ye=d().format(oe,{parser:Ae==="json"?Ae:"babel",plugins:[g()]});return ye}},12178:function(Be,re,o){"use strict";o.d(re,{Y:function(){return je},f:function(){return g}});var X=o(40742),d=o(92368),K=o.n(d);function g(be){return be.features.map(function(me){return(0,d.stringify)(me.geometry)}).join(";").replaceAll(" (","(").replaceAll(", ",",")}function je(be){var me=(0,X.featureCollection)([]);return be.split(/[;\n]/g).forEach(function(Se){if(Se){var Ae=(0,d.parse)(Se);Ae&&me.features.push((0,X.feature)(Ae,{}))}}),me}},18953:function(){}}]); diff --git a/15.7ce3467a.async.js b/15.7ce3467a.async.js deleted file mode 100644 index 3bcccb0..0000000 --- a/15.7ce3467a.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_antv_l7_editor=self.webpackChunk_antv_l7_editor||[]).push([[15],{57449:function(k,a,s){s.r(a),s.d(a,{conf:function(){return b},language:function(){return y}});var g=s(23978);var l=Object.defineProperty,d=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,m=Object.prototype.hasOwnProperty,c=(r,t,i,p)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of u(t))!m.call(r,o)&&o!==i&&l(r,o,{get:()=>t[o],enumerable:!(p=d(t,o))||p.enumerable});return r},f=(r,t,i)=>(c(r,t,"default"),i&&c(i,t,"default")),n={};f(n,g);var x={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:n.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:n.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:n.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:n.languages.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},e={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","out","package","private","protected","public","override","readonly","require","global","return","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<",">",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([dgimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}};var b=x,y={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:e.operators,symbols:e.symbols,escapes:e.escapes,digits:e.digits,octaldigits:e.octaldigits,binarydigits:e.binarydigits,hexdigits:e.hexdigits,regexpctl:e.regexpctl,regexpesc:e.regexpesc,tokenizer:e.tokenizer}}}]); diff --git a/150.33c950fe.async.js b/150.33c950fe.async.js deleted file mode 100644 index 3bdbbeb..0000000 --- a/150.33c950fe.async.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict";(self.webpackChunk_antv_l7_editor=self.webpackChunk_antv_l7_editor||[]).push([[150],{64217:function(Be,ge,b){b.d(ge,{Z:function(){return we}});var ce=b(1413),L=`accept acceptCharset accessKey action allowFullScreen allowTransparency - alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge - charSet checked classID className colSpan cols content contentEditable contextMenu - controls coords crossOrigin data dateTime default defer dir disabled download draggable - encType form formAction formEncType formMethod formNoValidate formTarget frameBorder - headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity - is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media - mediaGroup method min minLength multiple muted name noValidate nonce open - optimum pattern placeholder poster preload radioGroup readOnly rel required - reversed role rowSpan rows sandbox scope scoped scrolling seamless selected - shape size sizes span spellCheck src srcDoc srcLang srcSet start step style - summary tabIndex target title type useMap value width wmode wrap`,me=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown - onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick - onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown - onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel - onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough - onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata - onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,C="".concat(L," ").concat(me).split(/[\s\n]+/),H="aria-",ze="data-";function t(fe,X){return fe.indexOf(X)===0}function we(fe){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,G;X===!1?G={aria:!0,data:!0,attr:!0}:X===!0?G={aria:!0}:G=(0,ce.Z)({},X);var Se={};return Object.keys(fe).forEach(function(_){(G.aria&&(_==="role"||t(_,H))||G.data&&t(_,ze)||G.attr&&C.includes(_))&&(Se[_]=fe[_])}),Se}},85344:function(Be,ge,b){b.d(ge,{Z:function(){return Ot}});var ce=b(87462),L=b(1413),me=b(71002),C=b(97685),H=b(4942),ze=b(91),t=b(67294),we=b(73935),fe=b(94184),X=b.n(fe),G=b(48555),Se=t.forwardRef(function(e,s){var n=e.height,o=e.offsetY,h=e.offsetX,r=e.children,c=e.prefixCls,v=e.onInnerResize,S=e.innerProps,E=e.rtl,g=e.extra,a={},f={display:"flex",flexDirection:"column"};if(o!==void 0){var l;a={height:n,position:"relative",overflow:"hidden"},f=(0,L.Z)((0,L.Z)({},f),{},(l={transform:"translateY(".concat(o,"px)")},(0,H.Z)(l,E?"marginRight":"marginLeft",-h),(0,H.Z)(l,"position","absolute"),(0,H.Z)(l,"left",0),(0,H.Z)(l,"right",0),(0,H.Z)(l,"top",0),l))}return t.createElement("div",{style:a},t.createElement(G.Z,{onResize:function(m){var d=m.offsetHeight;d&&v&&v()}},t.createElement("div",(0,ce.Z)({style:f,className:X()((0,H.Z)({},"".concat(c,"-holder-inner"),c)),ref:s},S),r,g)))});Se.displayName="Filler";var _=Se,B=b(75164);function Ve(e,s){var n="touches"in e?e.touches[0]:e;return n[s?"pageX":"pageY"]}var ct=t.forwardRef(function(e,s){var n,o=e.prefixCls,h=e.rtl,r=e.scrollOffset,c=e.scrollRange,v=e.onStartMove,S=e.onStopMove,E=e.onScroll,g=e.horizontal,a=e.spinSize,f=e.containerSize,l=e.style,R=e.thumbStyle,m=t.useState(!1),d=(0,C.Z)(m,2),M=d[0],y=d[1],O=t.useState(null),z=(0,C.Z)(O,2),$=z[0],V=z[1],Z=t.useState(null),j=(0,C.Z)(Z,2),I=j[0],k=j[1],N=!h,re=t.useRef(),x=t.useRef(),W=t.useState(!1),ae=(0,C.Z)(W,2),oe=ae[0],q=ae[1],F=t.useRef(),K=function(){clearTimeout(F.current),q(!0),F.current=setTimeout(function(){q(!1)},3e3)},le=c-f||0,ve=f-a||0,ie=le>0,A=t.useMemo(function(){if(r===0||le===0)return 0;var P=r/le;return P*ve},[r,le,ve]),Pe=function(D){D.stopPropagation(),D.preventDefault()},de=t.useRef({top:A,dragging:M,pageY:$,startTop:I});de.current={top:A,dragging:M,pageY:$,startTop:I};var pe=function(D){y(!0),V(Ve(D,g)),k(de.current.top),v(),D.stopPropagation(),D.preventDefault()};t.useEffect(function(){var P=function(Ee){Ee.preventDefault()},D=re.current,Q=x.current;return D.addEventListener("touchstart",P),Q.addEventListener("touchstart",pe),function(){D.removeEventListener("touchstart",P),Q.removeEventListener("touchstart",pe)}},[]);var Me=t.useRef();Me.current=le;var ye=t.useRef();ye.current=ve,t.useEffect(function(){if(M){var P,D=function(Ee){var be=de.current,He=be.dragging,he=be.pageY,Oe=be.startTop;if(B.Z.cancel(P),He){var Ze=Ve(Ee,g)-he,ue=Oe;!N&&g?ue-=Ze:ue+=Ze;var Te=Me.current,se=ye.current,ee=se?ue/se:0,Y=Math.ceil(ee*Te);Y=Math.max(Y,0),Y=Math.min(Y,Te),P=(0,B.Z)(function(){E(Y,g)})}},Q=function(){y(!1),S()};return window.addEventListener("mousemove",D),window.addEventListener("touchmove",D),window.addEventListener("mouseup",Q),window.addEventListener("touchend",Q),function(){window.removeEventListener("mousemove",D),window.removeEventListener("touchmove",D),window.removeEventListener("mouseup",Q),window.removeEventListener("touchend",Q),B.Z.cancel(P)}}},[M]),t.useEffect(function(){K()},[r]),t.useImperativeHandle(s,function(){return{delayHidden:K}});var J="".concat(o,"-scrollbar"),w={position:"absolute",visibility:oe&&ie?null:"hidden"},U={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return g?(w.height=8,w.left=0,w.right=0,w.bottom=0,U.height="100%",U.width=a,N?U.left=A:U.right=A):(w.width=8,w.top=0,w.bottom=0,N?w.right=0:w.left=0,U.width="100%",U.height=a,U.top=A),t.createElement("div",{ref:re,className:X()(J,(n={},(0,H.Z)(n,"".concat(J,"-horizontal"),g),(0,H.Z)(n,"".concat(J,"-vertical"),!g),(0,H.Z)(n,"".concat(J,"-visible"),oe),n)),style:(0,L.Z)((0,L.Z)({},w),l),onMouseDown:Pe,onMouseMove:K},t.createElement("div",{ref:x,className:X()("".concat(J,"-thumb"),(0,H.Z)({},"".concat(J,"-thumb-moving"),M)),style:(0,L.Z)((0,L.Z)({},U),R),onMouseDown:pe}))}),Ke=ct;function ft(e){var s=e.children,n=e.setRef,o=t.useCallback(function(h){n(h)},[]);return t.cloneElement(s,{ref:o})}function vt(e,s,n,o,h,r,c){var v=c.getKey;return e.slice(s,n+1).map(function(S,E){var g=s+E,a=r(S,g,{style:{width:o}}),f=v(S);return t.createElement(ft,{key:f,setRef:function(R){return h(S,R)}},a)})}var dt=b(34203),ht=b(15671),gt=b(43144),mt=function(){function e(){(0,ht.Z)(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return(0,gt.Z)(e,[{key:"set",value:function(n,o){this.maps[n]=o,this.id+=1}},{key:"get",value:function(n){return this.maps[n]}}]),e}(),St=mt;function Rt(e,s,n){var o=t.useState(0),h=(0,C.Z)(o,2),r=h[0],c=h[1],v=(0,t.useRef)(new Map),S=(0,t.useRef)(new St),E=(0,t.useRef)();function g(){B.Z.cancel(E.current)}function a(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;g();var R=function(){v.current.forEach(function(d,M){if(d&&d.offsetParent){var y=(0,dt.Z)(d),O=y.offsetHeight;S.current.get(M)!==O&&S.current.set(M,y.offsetHeight)}}),c(function(d){return d+1})};l?R():E.current=(0,B.Z)(R)}function f(l,R){var m=e(l),d=v.current.get(m);R?(v.current.set(m,R),a()):v.current.delete(m),!d!=!R&&(R?s==null||s(l):n==null||n(l))}return(0,t.useEffect)(function(){return g},[]),[f,a,S.current,r]}var Re=b(8410),Ae=b(56790),pt=10;function Mt(e,s,n,o,h,r,c,v){var S=t.useRef(),E=t.useState(null),g=(0,C.Z)(E,2),a=g[0],f=g[1];return(0,Re.Z)(function(){if(a&&a.times=0;W-=1){var ae=h(s[W]),oe=n.get(ae);if(oe===void 0){y=!0;break}if(x-=oe,x<=0)break}switch($){case"top":z=Z-d;break;case"bottom":z=j-M+d;break;default:{var q=e.current.scrollTop,F=q+M;ZF&&(O="bottom")}}z!==null&&c(z),z!==a.lastTop&&(y=!0)}y&&f(function(K){return(0,L.Z)((0,L.Z)({},K),{},{times:K.times+1,targetAlign:O,lastTop:z})})}},[a,e.current]),function(l){if(l==null){v();return}if(B.Z.cancel(S.current),typeof l=="number")c(l);else if(l&&(0,me.Z)(l)==="object"){var R,m=l.align;"index"in l?R=l.index:R=s.findIndex(function(y){return h(y)===l.key});var d=l.offset,M=d===void 0?0:d;f({times:0,index:R,offset:M,originAlign:m})}}}function Qt(e,s,n,o){var h=n-e,r=s-n,c=Math.min(h,r)*2;if(o<=c){var v=Math.floor(o/2);return o%2?n+v+1:n-v}return h>r?n-(o-r):n+(o-h)}function yt(e,s,n){var o=e.length,h=s.length,r,c;if(o===0&&h===0)return null;o1&&arguments[1]!==void 0?arguments[1]:!1,S=c<0&&r.current.top||c>0&&r.current.bottom;return v&&S?(clearTimeout(o.current),n.current=!1):(!S||n.current)&&h(),!n.current&&S}};function Zt(e,s,n,o,h){var r=(0,t.useRef)(0),c=(0,t.useRef)(null),v=(0,t.useRef)(null),S=(0,t.useRef)(!1),E=Ge(s,n);function g(d,M){B.Z.cancel(c.current),r.current+=M,v.current=M,!E(M)&&(Ue||d.preventDefault(),c.current=(0,B.Z)(function(){var y=S.current?10:1;h(r.current*y),r.current=0}))}function a(d,M){h(M,!0),Ue||d.preventDefault()}var f=(0,t.useRef)(null),l=(0,t.useRef)(null);function R(d){if(e){B.Z.cancel(l.current),l.current=(0,B.Z)(function(){f.current=null},2);var M=d.deltaX,y=d.deltaY,O=d.shiftKey,z=M,$=y;(f.current==="sx"||!f.current&&O&&y&&!M)&&(z=y,$=0,f.current="sx");var V=Math.abs(z),Z=Math.abs($);f.current===null&&(f.current=o&&V>Z?"x":"y"),f.current==="y"?g(d,$):a(d,z)}}function m(d){e&&(S.current=d.detail===v.current)}return[R,m]}var xt=14/15;function Ct(e,s,n){var o=(0,t.useRef)(!1),h=(0,t.useRef)(0),r=(0,t.useRef)(null),c=(0,t.useRef)(null),v,S=function(f){if(o.current){var l=Math.ceil(f.touches[0].pageY),R=h.current-l;h.current=l,n(R)&&f.preventDefault(),clearInterval(c.current),c.current=setInterval(function(){R*=xt,(!n(R,!0)||Math.abs(R)<=.1)&&clearInterval(c.current)},16)}},E=function(){o.current=!1,v()},g=function(f){v(),f.touches.length===1&&!o.current&&(o.current=!0,h.current=Math.ceil(f.touches[0].pageY),r.current=f.target,r.current.addEventListener("touchmove",S),r.current.addEventListener("touchend",E))};v=function(){r.current&&(r.current.removeEventListener("touchmove",S),r.current.removeEventListener("touchend",E))},(0,Re.Z)(function(){return e&&s.current.addEventListener("touchstart",g),function(){var a;(a=s.current)===null||a===void 0||a.removeEventListener("touchstart",g),v(),clearInterval(c.current)}},[e])}var Lt=20;function je(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/s*100;return isNaN(n)&&(n=0),n=Math.max(n,Lt),n=Math.min(n,e/2),Math.floor(n)}function wt(e,s,n,o){var h=t.useMemo(function(){return[new Map,[]]},[e,n.id,o]),r=(0,C.Z)(h,2),c=r[0],v=r[1],S=function(g){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:g,f=c.get(g),l=c.get(a);if(f===void 0||l===void 0)for(var R=e.length,m=v.length;mr||!!m),N=R==="rtl",re=X()(o,(0,H.Z)({},"".concat(o,"-rtl"),N),h),x=g||Tt,W=(0,t.useRef)(),ae=(0,t.useRef)(),oe=(0,t.useState)(0),q=(0,C.Z)(oe,2),F=q[0],K=q[1],le=(0,t.useState)(0),ve=(0,C.Z)(le,2),ie=ve[0],A=ve[1],Pe=(0,t.useState)(!1),de=(0,C.Z)(Pe,2),pe=de[0],Me=de[1],ye=function(){Me(!0)},J=function(){Me(!1)},w=t.useCallback(function(i){return typeof f=="function"?f(i):i==null?void 0:i[f]},[f]),U={getKey:w};function P(i){K(function(u){var p;typeof i=="function"?p=i(u):p=i;var T=Wt(p);return W.current.scrollTop=T,T})}var D=(0,t.useRef)({start:0,end:x.length}),Q=(0,t.useRef)(),De=Et(x,w),Ee=(0,C.Z)(De,1),be=Ee[0];Q.current=be;var He=Rt(w,null,null),he=(0,C.Z)(He,4),Oe=he[0],Ze=he[1],ue=he[2],Te=he[3],se=t.useMemo(function(){if(!I)return{scrollHeight:void 0,start:0,end:x.length-1,offset:void 0};if(!k){var i;return{scrollHeight:((i=ae.current)===null||i===void 0?void 0:i.offsetHeight)||0,start:0,end:x.length-1,offset:void 0}}for(var u=0,p,T,ne,Gt=x.length,Le=0;Le=F&&p===void 0&&(p=Le,T=u),Xe>F+r&&ne===void 0&&(ne=Le),u=Xe}return p===void 0&&(p=0,T=0,ne=Math.ceil(r/c)),ne===void 0&&(ne=x.length-1),ne=Math.min(ne+1,x.length-1),{scrollHeight:u,start:p,end:ne,offset:T}},[k,I,F,x,Te,r]),ee=se.scrollHeight,Y=se.start,xe=se.end,Qe=se.offset;D.current.start=Y,D.current.end=xe;var It=t.useState({width:0,height:r}),_e=(0,C.Z)(It,2),te=_e[0],Nt=_e[1],Ft=function(u){Nt({width:u.width||u.offsetWidth,height:u.height||u.offsetHeight})},qe=(0,t.useRef)(),et=(0,t.useRef)(),$t=t.useMemo(function(){return je(te.width,m)},[te.width,m]),kt=t.useMemo(function(){return je(te.height,ee)},[te.height,ee]),Ie=ee-r,Ne=(0,t.useRef)(Ie);Ne.current=Ie;function Wt(i){var u=i;return Number.isNaN(Ne.current)||(u=Math.min(u,Ne.current)),u=Math.max(u,0),u}var tt=F<=0,nt=F>=Ie,Yt=Ge(tt,nt),Fe=function(){return{x:N?-ie:ie,y:F}},$e=(0,t.useRef)(Fe()),ke=(0,Ae.zX)(function(){if(O){var i=Fe();($e.current.x!==i.x||$e.current.y!==i.y)&&(O(i),$e.current=i)}});function rt(i,u){var p=i;u?((0,we.flushSync)(function(){A(p)}),ke()):P(p)}function Xt(i){var u=i.currentTarget.scrollTop;u!==F&&P(u),y==null||y(i),ke()}var We=function(u){var p=u,T=m-te.width;return p=Math.max(p,0),p=Math.min(p,T),p},Bt=(0,Ae.zX)(function(i,u){u?((0,we.flushSync)(function(){A(function(p){var T=p+(N?-i:i);return We(T)})}),ke()):P(function(p){var T=p+i;return T})}),Vt=Zt(I,tt,nt,!!m,Bt),at=(0,C.Z)(Vt,2),Ye=at[0],ot=at[1];Ct(I,W,function(i,u){return Yt(i,u)?!1:(Ye({preventDefault:function(){},deltaY:i}),!0)}),(0,Re.Z)(function(){function i(p){I&&p.preventDefault()}var u=W.current;return u.addEventListener("wheel",Ye),u.addEventListener("DOMMouseScroll",ot),u.addEventListener("MozMousePixelScroll",i),function(){u.removeEventListener("wheel",Ye),u.removeEventListener("DOMMouseScroll",ot),u.removeEventListener("MozMousePixelScroll",i)}},[I]),(0,Re.Z)(function(){m&&A(function(i){return We(i)})},[te.width,m]);var lt=function(){var u,p;(u=qe.current)===null||u===void 0||u.delayHidden(),(p=et.current)===null||p===void 0||p.delayHidden()},it=Mt(W,x,ue,c,w,function(){return Ze(!0)},P,lt);t.useImperativeHandle(s,function(){return{getScrollInfo:Fe,scrollTo:function(u){function p(T){return T&&(0,me.Z)(T)==="object"&&("left"in T||"top"in T)}p(u)?(u.left!==void 0&&A(We(u.left)),it(u.top)):it(u)}}}),(0,Re.Z)(function(){if(z){var i=x.slice(Y,xe+1);z(i,x)}},[Y,xe,x]);var Kt=wt(x,w,ue,c),At=V==null?void 0:V({start:Y,end:xe,virtual:k,offsetX:ie,offsetY:Qe,rtl:N,getSize:Kt}),Ut=vt(x,Y,xe,m,Oe,a,U),Ce=null;r&&(Ce=(0,L.Z)((0,H.Z)({},S?"height":"maxHeight",r),zt),I&&(Ce.overflowY="hidden",m&&(Ce.overflowX="hidden"),pe&&(Ce.pointerEvents="none")));var ut={};return N&&(ut.dir="rtl"),t.createElement("div",(0,ce.Z)({style:(0,L.Z)((0,L.Z)({},E),{},{position:"relative"}),className:re},ut,j),t.createElement(G.Z,{onResize:Ft},t.createElement(M,{className:"".concat(o,"-holder"),style:Ce,ref:W,onScroll:Xt,onMouseEnter:lt},t.createElement(_,{prefixCls:o,height:ee,offsetX:ie,offsetY:Qe,scrollWidth:m,onInnerResize:Ze,ref:ae,innerProps:$,rtl:N,extra:At},Ut))),k&&ee>r&&t.createElement(Ke,{ref:qe,prefixCls:o,scrollOffset:F,scrollRange:ee,rtl:N,onScroll:rt,onStartMove:ye,onStopMove:J,spinSize:kt,containerSize:te.height,style:Z==null?void 0:Z.verticalScrollBar,thumbStyle:Z==null?void 0:Z.verticalScrollBarThumb}),k&&m&&t.createElement(Ke,{ref:et,prefixCls:o,scrollOffset:ie,scrollRange:m,rtl:N,onScroll:rt,onStartMove:ye,onStopMove:J,spinSize:$t,containerSize:te.width,horizontal:!0,style:Z==null?void 0:Z.horizontalScrollBar,thumbStyle:Z==null?void 0:Z.horizontalScrollBarThumb}))}var Je=t.forwardRef(Pt);Je.displayName="List";var Ht=Je,Ot=Ht},36459:function(Be,ge,b){b.d(ge,{Z:function(){return ce}});function ce(L){if(L==null)throw new TypeError("Cannot destructure "+L)}}}]); diff --git a/176.cbd6a9a4.async.js b/176.cbd6a9a4.async.js deleted file mode 100644 index c4e5eae..0000000 --- a/176.cbd6a9a4.async.js +++ /dev/null @@ -1,5 +0,0 @@ -(self.webpackChunk_antv_l7_editor=self.webpackChunk_antv_l7_editor||[]).push([[176],{2143:function(je,He,O){"use strict";var ee=O(73847),R=O(67294),ne=O(96057);function F(S,v){return Ee(S)||X(S,v)||ae(S,v)||Y()}function Y(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ae(S,v){if(S){if(typeof S=="string")return ie(S,v);var c=Object.prototype.toString.call(S).slice(8,-1);if(c==="Object"&&S.constructor&&(c=S.constructor.name),c==="Map"||c==="Set")return Array.from(S);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return ie(S,v)}}function ie(S,v){(v==null||v>S.length)&&(v=S.length);for(var c=0,N=new Array(v);c")},function:function(v){var c=this,N=v.signature;if(!N)return"Function";var Z="oneOf"in N?N.oneOf:[N];return Z.map(function(T){return"".concat(T.isAsync?"async ":"","(").concat(T.arguments.map(function(w){return"".concat(w.key,": ").concat(c.toString(w))}).join(", "),") => ").concat(c.toString(T.returnType))}).join(" | ")},dom:function(v){return v.className||"DOM"},enum:function(v){return v.enum.map(function(c){return JSON.stringify(c)}).join(" | ")},oneOf:function(v){var c=this;return v.oneOf.map(function(N){return c.getValidClassName(N)||c.toString(N)}).join(" | ")},getValidClassName:function(v){return"className"in v&&typeof v.className=="string"&&v.className!=="__type"?v.className:null}},Ce=function(v){var c=useState(function(){return me.toString(v)}),N=F(c,2),Z=N[0],T=N[1];return useEffect(function(){T(me.toString(v))},[v]),React.createElement("code",null,Z)},re=function(v){var c,N=useRouteMeta(),Z=N.frontmatter,T=useAtomAssets(),w=T.components,B=v.id||Z.atomId,W=useIntl();if(!B)throw new Error("`id` properties if required for API component!");var C=w==null?void 0:w[B];return React.createElement("div",{className:"markdown"},React.createElement(Table,null,React.createElement("thead",null,React.createElement("tr",null,React.createElement("th",null,W.formatMessage({id:"api.component.name"})),React.createElement("th",null,W.formatMessage({id:"api.component.description"})),React.createElement("th",null,W.formatMessage({id:"api.component.type"})),React.createElement("th",null,W.formatMessage({id:"api.component.default"})))),React.createElement("tbody",null,C&&(c=C.propsConfig)!==null&&c!==void 0&&c.properties?Object.entries(C.propsConfig.properties).map(function($){var U,te=F($,2),j=te[0],J=te[1];return React.createElement("tr",{key:j},React.createElement("td",null,j),React.createElement("td",null,J.description||"--"),React.createElement("td",null,React.createElement(Ce,J)),React.createElement("td",null,React.createElement("code",null,(U=C.propsConfig.required)!==null&&U!==void 0&&U.includes(j)?W.formatMessage({id:"api.component.required"}):JSON.stringify(J.default)||"--")))}):React.createElement("tr",null,React.createElement("td",{colSpan:4},W.formatMessage({id:"api.component.".concat(w?"not.found":"unavailable")},{id:B}))))))},le=null},93359:function(je,He,O){"use strict";var ee=O(67294);function R(){return R=Object.assign?Object.assign.bind():function(Y){for(var ae=1;aev.length)&&(c=v.length);for(var N=0,Z=new Array(c);N=0)&&Object.prototype.propertyIsEnumerable.call(v,Z)&&(N[Z]=v[Z])}return N}function re(v,c){if(v==null)return{};var N={},Z=Object.keys(v),T,w;for(w=0;w=0)&&(N[T]=v[T]);return N}var le=function(c){var N=c.children,Z=Ce(c,F),T=(0,ne.useRef)(null),w=(0,ne.useState)(!1),B=Y(w,2),W=B[0],C=B[1],$=(0,ne.useState)(!1),U=Y($,2),te=U[0],j=U[1];return(0,ne.useEffect)(function(){var J=T.current;if(J){var oe=R()(function(){C(J.scrollLeft>0),j(J.scrollLeft1&&arguments[1]!==void 0?arguments[1]:"";(d||[]).forEach(function(f){var t=f[o.key],r=f[o.children];warning(t!=null,"Tree node must have a certain key: [".concat(l).concat(t,"]"));var a=String(t);warning(!i.has(a)||t===null||t===void 0,"Same 'key' exist in the Tree: ".concat(a)),i.set(a,!0),e(r,"".concat(l).concat(a," > "))})}e(n)}function Fe(n){function o(i){var e=(0,J.Z)(i);return e.map(function(d){if(!Se(d))return(0,v.ZP)(!d,"Tree/TreeNode can only accept TreeNode as children."),null;var l=d.key,f=d.props,t=f.children,r=(0,B.Z)(f,de),a=(0,F.Z)({key:l},r),s=o(t);return s.length&&(a.children=s),a}).filter(function(d){return d})}return o(n)}function We(n,o,i){var e=ve(i),d=e._title,l=e.key,f=e.children,t=new Set(o===!0?[]:o),r=[];function a(s){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return s.map(function(p,y){for(var h=fe(u?u.pos:"0",y),m=Ne(p[l],h),K,g=0;g1&&arguments[1]!==void 0?arguments[1]:{},i=o.initWrapper,e=o.processEntity,d=o.onProcessFinished,l=o.externalGetKey,f=o.childrenPropName,t=o.fieldNames,r=arguments.length>2?arguments[2]:void 0,a=l||r,s={},u={},p={posEntities:s,keyEntities:u};return i&&(p=i(p)||p),et(n,function(y){var h=y.node,m=y.index,K=y.pos,g=y.key,b=y.parentPos,E=y.level,k=y.nodes,x={node:h,nodes:k,index:m,key:g,pos:K,level:E},D=Ne(g,K);s[K]=x,u[D]=x,x.parent=s[b],x.parent&&(x.parent.children=x.parent.children||[],x.parent.children.push(x)),e&&e(x,p)},{externalGetKey:a,childrenPropName:f,fieldNames:t}),d&&d(p),p}function pe(n,o){var i=o.expandedKeys,e=o.selectedKeys,d=o.loadedKeys,l=o.loadingKeys,f=o.checkedKeys,t=o.halfCheckedKeys,r=o.dragOverNodeKey,a=o.dropPosition,s=o.keyEntities,u=j(s,n),p={eventKey:n,expanded:i.indexOf(n)!==-1,selected:e.indexOf(n)!==-1,loaded:d.indexOf(n)!==-1,loading:l.indexOf(n)!==-1,checked:f.indexOf(n)!==-1,halfChecked:t.indexOf(n)!==-1,pos:String(u?u.pos:""),dragOver:r===n&&a===0,dragOverGapTop:r===n&&a===-1,dragOverGapBottom:r===n&&a===1};return p}function _(n){var o=n.data,i=n.expanded,e=n.selected,d=n.checked,l=n.loaded,f=n.loading,t=n.halfChecked,r=n.dragOver,a=n.dragOverGapTop,s=n.dragOverGapBottom,u=n.pos,p=n.active,y=n.eventKey,h=(0,F.Z)((0,F.Z)({},o),{},{expanded:i,selected:e,checked:d,loaded:l,loading:f,halfChecked:t,dragOver:r,dragOverGapTop:a,dragOverGapBottom:s,pos:u,active:p,key:y});return"props"in h||Object.defineProperty(h,"props",{get:function(){return(0,v.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),n}}),h}var tt=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],Ye="open",Ae="close",V="---",ge=function(n){(0,Ee.Z)(i,n);var o=(0,me.Z)(i);function i(){var e;(0,ae.Z)(this,i);for(var d=arguments.length,l=new Array(d),f=0;f0&&arguments[0]!==void 0?arguments[0]:[],o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=n.length,e=o.length;if(Math.abs(i-e)!==1)return{add:!1,key:null};function d(l,f){var t=new Map;l.forEach(function(a){t.set(a,!0)});var r=f.filter(function(a){return!t.has(a)});return r.length===1?r[0]:null}return i ").concat(o);return o}var Nt=c.forwardRef(function(n,o){var i=n.prefixCls,e=n.data,d=n.selectable,l=n.checkable,f=n.expandedKeys,t=n.selectedKeys,r=n.checkedKeys,a=n.loadedKeys,s=n.loadingKeys,u=n.halfCheckedKeys,p=n.keyEntities,y=n.disabled,h=n.dragging,m=n.dragOverNodeKey,K=n.dropPosition,g=n.motion,b=n.height,E=n.itemHeight,k=n.virtual,x=n.focusable,D=n.activeItem,I=n.focused,L=n.tabIndex,P=n.onKeyDown,H=n.onFocus,A=n.onBlur,M=n.onActiveChange,G=n.onListChangeStart,Q=n.onListChangeEnd,se=(0,B.Z)(n,Ht),ce=c.useRef(null),q=c.useRef(null);c.useImperativeHandle(o,function(){return{scrollTo:function(xe){ce.current.scrollTo(xe)},getIndentWidth:function(){return q.current.offsetWidth}}});var ye=c.useState(f),Ie=(0,w.Z)(ye,2),Be=Ie[0],Ge=Ie[1],ue=c.useState(e),Oe=(0,w.Z)(ue,2),he=Oe[0],Me=Oe[1],lt=c.useState(e),Qe=(0,w.Z)(lt,2),ct=Qe[0],Ze=Qe[1],ut=c.useState([]),Te=(0,w.Z)(ut,2),hn=Te[0],ft=Te[1],mn=c.useState(null),Lt=(0,w.Z)(mn,2),Kn=Lt[0],vt=Lt[1],At=c.useRef(e);At.current=e;function pt(){var z=At.current;Me(z),Ze(z),ft([]),vt(null),Q()}(0,W.Z)(function(){Ge(f);var z=jt(Be,f);if(z.key!==null)if(z.add){var xe=he.findIndex(function(_e){var Ve=_e.key;return Ve===z.key}),Pe=bt(yt(he,e,z.key),k,b,E),$e=he.slice();$e.splice(xe+1,0,Kt),Ze($e),ft(Pe),vt("show")}else{var we=e.findIndex(function(_e){var Ve=_e.key;return Ve===z.key}),Le=bt(yt(e,he,z.key),k,b,E),qe=e.slice();qe.splice(we+1,0,Kt),Ze(qe),ft(Le),vt("hide")}else he!==e&&(Me(e),Ze(e))},[f,e]),c.useEffect(function(){h||pt()},[h]);var bn=g?ct:e,Rt={expandedKeys:f,selectedKeys:t,loadedKeys:a,loadingKeys:s,checkedKeys:r,halfCheckedKeys:u,dragOverNodeKey:m,dropPosition:K,keyEntities:p};return c.createElement(c.Fragment,null,I&&D&&c.createElement("span",{style:ht,"aria-live":"assertive"},Wt(D)),c.createElement("div",null,c.createElement("input",{style:ht,disabled:x===!1||y,tabIndex:x!==!1?L:null,onKeyDown:P,onFocus:H,onBlur:A,value:"",onChange:Ft,"aria-label":"for screen reader"})),c.createElement("div",{className:"".concat(i,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},c.createElement("div",{className:"".concat(i,"-indent")},c.createElement("div",{ref:q,className:"".concat(i,"-indent-unit")}))),c.createElement(C.Z,(0,ee.Z)({},se,{data:bn,itemKey:Et,height:b,fullHeight:!1,virtual:k,itemHeight:E,prefixCls:"".concat(i,"-list"),ref:ce,onVisibleChange:function(xe,Pe){var $e=new Set(xe),we=Pe.filter(function(Le){return!$e.has(Le)});we.some(function(Le){return Et(Le)===De})&&pt()}}),function(z){var xe=z.pos,Pe=(0,ee.Z)({},((0,T.Z)(z.data),z.data)),$e=z.title,we=z.key,Le=z.isStart,qe=z.isEnd,_e=Ne(we,xe);delete Pe.key,delete Pe.children;var Ve=pe(_e,Rt);return c.createElement($t,(0,ee.Z)({},Pe,Ve,{title:$e,active:!!D&&we===D.key,pos:xe,data:z.data,isStart:Le,isEnd:qe,motion:g,motionNodes:we===De?hn:null,motionType:Kn,onMotionStart:G,onMotionEnd:pt,treeNodeRequiredProps:Rt,onMouseMove:function(){M(null)}}))}))});Nt.displayName="NodeList";var Ut=Nt,Bt=null;function be(n,o){if(!n)return[];var i=n.slice(),e=i.indexOf(o);return e>=0&&i.splice(e,1),i}function ke(n,o){var i=(n||[]).slice();return i.indexOf(o)===-1&&i.push(o),i}function rt(n){return n.split("-")}function Gt(n,o){var i=[],e=j(o,n);function d(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];l.forEach(function(f){var t=f.key,r=f.children;i.push(t),d(r)})}return d(e.children),i}function _t(n){if(n.parent){var o=rt(n.pos);return Number(o[o.length-1])===n.parent.children.length-1}return!1}function Vt(n){var o=rt(n.pos);return Number(o[o.length-1])===0}function kt(n,o,i,e,d,l,f,t,r,a){var s,u=n.clientX,p=n.clientY,y=n.target.getBoundingClientRect(),h=y.top,m=y.height,K=(a==="rtl"?-1:1)*(((d==null?void 0:d.x)||0)-u),g=(K-12)/e,b=j(t,i.props.eventKey);if(p-1.5?l({dragNode:M,dropNode:G,dropPosition:1})?P=1:Q=!1:l({dragNode:M,dropNode:G,dropPosition:0})?P=0:l({dragNode:M,dropNode:G,dropPosition:1})?P=1:Q=!1:l({dragNode:M,dropNode:G,dropPosition:1})?P=1:Q=!1,{dropPosition:P,dropLevelOffset:H,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:L,dropContainerKey:P===0?null:((s=b.parent)===null||s===void 0?void 0:s.key)||null,dropAllowed:Q}}function xt(n,o){if(n){var i=o.multiple;return i?n.slice():n.length?[n[0]]:n}}var zt=function(o){return o};function Xt(n,o){if(!n)return[];var i=o||{},e=i.processProps,d=e===void 0?zt:e,l=Array.isArray(n)?n:[n];return l.map(function(f){var t=f.children,r=_objectWithoutProperties(f,Bt),a=Xt(t,o);return React.createElement(TreeNode,_extends({key:r.key},d(r)),a)})}function at(n){if(!n)return null;var o;if(Array.isArray(n))o={checkedKeys:n,halfCheckedKeys:void 0};else if((0,ne.Z)(n)==="object")o={checkedKeys:n.checked||void 0,halfCheckedKeys:n.halfChecked||void 0};else return(0,v.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return o}function Ct(n,o){var i=new Set;function e(d){if(!i.has(d)){var l=j(o,d);if(l){i.add(d);var f=l.parent,t=l.node;t.disabled||f&&e(f.key)}}}return(n||[]).forEach(function(d){e(d)}),(0,Y.Z)(i)}function St(n,o){var i=new Set;return n.forEach(function(e){o.has(e)||i.add(e)}),i}function Yt(n){var o=n||{},i=o.disabled,e=o.disableCheckbox,d=o.checkable;return!!(i||e)||d===!1}function Jt(n,o,i,e){for(var d=new Set(n),l=new Set,f=0;f<=i;f+=1){var t=o.get(f)||new Set;t.forEach(function(u){var p=u.key,y=u.node,h=u.children,m=h===void 0?[]:h;d.has(p)&&!e(y)&&m.filter(function(K){return!e(K.node)}).forEach(function(K){d.add(K.key)})})}for(var r=new Set,a=i;a>=0;a-=1){var s=o.get(a)||new Set;s.forEach(function(u){var p=u.parent,y=u.node;if(!(e(y)||!u.parent||r.has(u.parent.key))){if(e(u.parent.node)){r.add(p.key);return}var h=!0,m=!1;(p.children||[]).filter(function(K){return!e(K.node)}).forEach(function(K){var g=K.key,b=d.has(g);h&&!b&&(h=!1),!m&&(b||l.has(g))&&(m=!0)}),h&&d.add(p.key),m&&l.add(p.key),r.add(p.key)}})}return{checkedKeys:Array.from(d),halfCheckedKeys:Array.from(St(l,d))}}function Qt(n,o,i,e,d){for(var l=new Set(n),f=new Set(o),t=0;t<=e;t+=1){var r=i.get(t)||new Set;r.forEach(function(p){var y=p.key,h=p.node,m=p.children,K=m===void 0?[]:m;!l.has(y)&&!f.has(y)&&!d(h)&&K.filter(function(g){return!d(g.node)}).forEach(function(g){l.delete(g.key)})})}f=new Set;for(var a=new Set,s=e;s>=0;s-=1){var u=i.get(s)||new Set;u.forEach(function(p){var y=p.parent,h=p.node;if(!(d(h)||!p.parent||a.has(p.parent.key))){if(d(p.parent.node)){a.add(y.key);return}var m=!0,K=!1;(y.children||[]).filter(function(g){return!d(g.node)}).forEach(function(g){var b=g.key,E=l.has(b);m&&!E&&(m=!1),!K&&(E||f.has(b))&&(K=!0)}),m||l.delete(y.key),K&&f.add(y.key),a.add(y.key)}})}return{checkedKeys:Array.from(l),halfCheckedKeys:Array.from(St(f,l))}}function ot(n,o,i,e){var d=[],l;e?l=e:l=Yt;var f=new Set(n.filter(function(s){var u=!!j(i,s);return u||d.push(s),u})),t=new Map,r=0;Object.keys(i).forEach(function(s){var u=i[s],p=u.level,y=t.get(p);y||(y=new Set,t.set(p,y)),y.add(u),r=Math.max(r,p)}),(0,v.ZP)(!d.length,"Tree missing follow keys: ".concat(d.slice(0,100).map(function(s){return"'".concat(s,"'")}).join(", ")));var a;return o===!0?a=Jt(f,t,r,l):a=Qt(f,o.halfCheckedKeys,t,r,l),a}var qt=10,Dt=function(n){(0,Ee.Z)(i,n);var o=(0,me.Z)(i);function i(){var e;(0,ae.Z)(this,i);for(var d=arguments.length,l=new Array(d),f=0;f2&&arguments[2]!==void 0?arguments[2]:!1,u=e.state,p=u.dragChildrenKeys,y=u.dropPosition,h=u.dropTargetKey,m=u.dropTargetPos,K=u.dropAllowed;if(K){var g=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),h!==null){var b=(0,F.Z)((0,F.Z)({},pe(h,e.getTreeNodeRequiredProps())),{},{active:((a=e.getActiveItem())===null||a===void 0?void 0:a.key)===h,data:j(e.state.keyEntities,h).node}),E=p.indexOf(h)!==-1;(0,v.ZP)(!E,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var k=rt(m),x={event:t,node:_(b),dragNode:e.dragNode?_(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(p),dropToGap:y!==0,dropPosition:y+Number(k[k.length-1])};s||g==null||g(x),e.dragNode=null}}},e.cleanDragState=function(){var t=e.state.draggingNodeKey;t!==null&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null},e.triggerExpandActionExpand=function(t,r){var a=e.state,s=a.expandedKeys,u=a.flattenNodes,p=r.expanded,y=r.key,h=r.isLeaf;if(!(h||t.shiftKey||t.metaKey||t.ctrlKey)){var m=u.filter(function(g){return g.key===y})[0],K=_((0,F.Z)((0,F.Z)({},pe(y,e.getTreeNodeRequiredProps())),{},{data:m.data}));e.setExpandedKeys(p?be(s,y):ke(s,y)),e.onNodeExpand(t,K)}},e.onNodeClick=function(t,r){var a=e.props,s=a.onClick,u=a.expandAction;u==="click"&&e.triggerExpandActionExpand(t,r),s==null||s(t,r)},e.onNodeDoubleClick=function(t,r){var a=e.props,s=a.onDoubleClick,u=a.expandAction;u==="doubleClick"&&e.triggerExpandActionExpand(t,r),s==null||s(t,r)},e.onNodeSelect=function(t,r){var a=e.state.selectedKeys,s=e.state,u=s.keyEntities,p=s.fieldNames,y=e.props,h=y.onSelect,m=y.multiple,K=r.selected,g=r[p.key],b=!K;b?m?a=ke(a,g):a=[g]:a=be(a,g);var E=a.map(function(k){var x=j(u,k);return x?x.node:null}).filter(function(k){return k});e.setUncontrolledState({selectedKeys:a}),h==null||h(a,{event:"select",selected:b,node:r,selectedNodes:E,nativeEvent:t.nativeEvent})},e.onNodeCheck=function(t,r,a){var s=e.state,u=s.keyEntities,p=s.checkedKeys,y=s.halfCheckedKeys,h=e.props,m=h.checkStrictly,K=h.onCheck,g=r.key,b,E={event:"check",node:r,checked:a,nativeEvent:t.nativeEvent};if(m){var k=a?ke(p,g):be(p,g),x=be(y,g);b={checked:k,halfChecked:x},E.checkedNodes=k.map(function(A){return j(u,A)}).filter(function(A){return A}).map(function(A){return A.node}),e.setUncontrolledState({checkedKeys:k})}else{var D=ot([].concat((0,Y.Z)(p),[g]),!0,u),I=D.checkedKeys,L=D.halfCheckedKeys;if(!a){var P=new Set(I);P.delete(g);var H=ot(Array.from(P),{checked:!1,halfCheckedKeys:L},u);I=H.checkedKeys,L=H.halfCheckedKeys}b=I,E.checkedNodes=[],E.checkedNodesPositions=[],E.halfCheckedKeys=L,I.forEach(function(A){var M=j(u,A);if(M){var G=M.node,Q=M.pos;E.checkedNodes.push(G),E.checkedNodesPositions.push({node:G,pos:Q})}}),e.setUncontrolledState({checkedKeys:I},!1,{halfCheckedKeys:L})}K==null||K(b,E)},e.onNodeLoad=function(t){var r=t.key,a=new Promise(function(s,u){e.setState(function(p){var y=p.loadedKeys,h=y===void 0?[]:y,m=p.loadingKeys,K=m===void 0?[]:m,g=e.props,b=g.loadData,E=g.onLoad;if(!b||h.indexOf(r)!==-1||K.indexOf(r)!==-1)return null;var k=b(t);return k.then(function(){var x=e.state.loadedKeys,D=ke(x,r);E==null||E(D,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:D}),e.setState(function(I){return{loadingKeys:be(I.loadingKeys,r)}}),s()}).catch(function(x){if(e.setState(function(I){return{loadingKeys:be(I.loadingKeys,r)}}),e.loadingRetryTimes[r]=(e.loadingRetryTimes[r]||0)+1,e.loadingRetryTimes[r]>=qt){var D=e.state.loadedKeys;(0,v.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:ke(D,r)}),s()}u(x)}),{loadingKeys:ke(K,r)}})});return a.catch(function(){}),a},e.onNodeMouseEnter=function(t,r){var a=e.props.onMouseEnter;a==null||a({event:t,node:r})},e.onNodeMouseLeave=function(t,r){var a=e.props.onMouseLeave;a==null||a({event:t,node:r})},e.onNodeContextMenu=function(t,r){var a=e.props.onRightClick;a&&(t.preventDefault(),a({event:t,node:r}))},e.onFocus=function(){var t=e.props.onFocus;e.setState({focused:!0});for(var r=arguments.length,a=new Array(r),s=0;s1&&arguments[1]!==void 0?arguments[1]:!1,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!e.destroyed){var s=!1,u=!0,p={};Object.keys(t).forEach(function(y){if(y in e.props){u=!1;return}s=!0,p[y]=t[y]}),s&&(!r||u)&&e.setState((0,F.Z)((0,F.Z)({},p),a))}},e.scrollTo=function(t){e.listRef.current.scrollTo(t)},e}return(0,ie.Z)(i,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var d=this.props,l=d.activeKey,f=d.itemScrollOffset,t=f===void 0?0:f;l!==void 0&&l!==this.state.activeKey&&(this.setState({activeKey:l}),l!==null&&this.scrollTo({key:l,offset:t}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var d,l=this.state,f=l.focused,t=l.flattenNodes,r=l.keyEntities,a=l.draggingNodeKey,s=l.activeKey,u=l.dropLevelOffset,p=l.dropContainerKey,y=l.dropTargetKey,h=l.dropPosition,m=l.dragOverNodeKey,K=l.indent,g=this.props,b=g.prefixCls,E=g.className,k=g.style,x=g.showLine,D=g.focusable,I=g.tabIndex,L=I===void 0?0:I,P=g.selectable,H=g.showIcon,A=g.icon,M=g.switcherIcon,G=g.draggable,Q=g.checkable,se=g.checkStrictly,ce=g.disabled,q=g.motion,ye=g.loadData,Ie=g.filterTreeNode,Be=g.height,Ge=g.itemHeight,ue=g.virtual,Oe=g.titleRender,he=g.dropIndicatorRender,Me=g.onContextMenu,lt=g.onScroll,Qe=g.direction,ct=g.rootClassName,Ze=g.rootStyle,ut=(0,S.Z)(this.props,{aria:!0,data:!0}),Te;return G&&((0,ne.Z)(G)==="object"?Te=G:typeof G=="function"?Te={nodeDraggable:G}:Te={}),c.createElement(N.Provider,{value:{prefixCls:b,selectable:P,showIcon:H,icon:A,switcherIcon:M,draggable:Te,draggingNodeKey:a,checkable:Q,checkStrictly:se,disabled:ce,keyEntities:r,dropLevelOffset:u,dropContainerKey:p,dropTargetKey:y,dropPosition:h,dragOverNodeKey:m,indent:K,direction:Qe,dropIndicatorRender:he,loadData:ye,filterTreeNode:Ie,titleRender:Oe,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},c.createElement("div",{role:"tree",className:re()(b,E,ct,(d={},(0,R.Z)(d,"".concat(b,"-show-line"),x),(0,R.Z)(d,"".concat(b,"-focused"),f),(0,R.Z)(d,"".concat(b,"-active-focused"),s!==null),d)),style:Ze},c.createElement(Ut,(0,ee.Z)({ref:this.listRef,prefixCls:b,style:k,data:t,disabled:ce,selectable:P,checkable:!!Q,motion:q,dragging:a!==null,height:Be,itemHeight:Ge,virtual:ue,focusable:D,focused:f,tabIndex:L,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Me,onScroll:lt},this.getTreeNodeRequiredProps(),ut))))}}],[{key:"getDerivedStateFromProps",value:function(d,l){var f=l.prevProps,t={prevProps:d};function r(D){return!f&&D in d||f&&f[D]!==d[D]}var a,s=l.fieldNames;if(r("fieldNames")&&(s=ve(d.fieldNames),t.fieldNames=s),r("treeData")?a=d.treeData:r("children")&&((0,v.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),a=Fe(d.children)),a){t.treeData=a;var u=Xe(a,{fieldNames:s});t.keyEntities=(0,F.Z)((0,R.Z)({},De,mt),u.keyEntities)}var p=t.keyEntities||l.keyEntities;if(r("expandedKeys")||f&&r("autoExpandParent"))t.expandedKeys=d.autoExpandParent||!f&&d.defaultExpandParent?Ct(d.expandedKeys,p):d.expandedKeys;else if(!f&&d.defaultExpandAll){var y=(0,F.Z)({},p);delete y[De],t.expandedKeys=Object.keys(y).map(function(D){return y[D].key})}else!f&&d.defaultExpandedKeys&&(t.expandedKeys=d.autoExpandParent||d.defaultExpandParent?Ct(d.defaultExpandedKeys,p):d.defaultExpandedKeys);if(t.expandedKeys||delete t.expandedKeys,a||t.expandedKeys){var h=We(a||l.treeData,t.expandedKeys||l.expandedKeys,s);t.flattenNodes=h}if(d.selectable&&(r("selectedKeys")?t.selectedKeys=xt(d.selectedKeys,d):!f&&d.defaultSelectedKeys&&(t.selectedKeys=xt(d.defaultSelectedKeys,d))),d.checkable){var m;if(r("checkedKeys")?m=at(d.checkedKeys)||{}:!f&&d.defaultCheckedKeys?m=at(d.defaultCheckedKeys)||{}:a&&(m=at(d.checkedKeys)||{checkedKeys:l.checkedKeys,halfCheckedKeys:l.halfCheckedKeys}),m){var K=m,g=K.checkedKeys,b=g===void 0?[]:g,E=K.halfCheckedKeys,k=E===void 0?[]:E;if(!d.checkStrictly){var x=ot(b,!0,p);b=x.checkedKeys,k=x.halfCheckedKeys}t.checkedKeys=b,t.halfCheckedKeys=k}}return r("loadedKeys")&&(t.loadedKeys=d.loadedKeys),t}}]),i}(c.Component);Dt.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:Z,allowDrop:function(){return!0},expandAction:!1},Dt.TreeNode=Re;var En=null,Nn=null;function Ue(n){"@babel/helpers - typeof";return Ue=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Ue(n)}function Ot(n,o){var i=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);o&&(e=e.filter(function(d){return Object.getOwnPropertyDescriptor(n,d).enumerable})),i.push.apply(i,e)}return i}function Tt(n){for(var o=1;on.length)&&(o=n.length);for(var i=0,e=new Array(o);i1&&arguments[1]!==void 0?arguments[1]:"",i=[];return[].concat(n).forEach(function(e,d){var l="".concat(o?"".concat(o,"-"):"").concat(d);switch(e==null?void 0:e.type){case"ul":{var f,t=((f=i[i.length-1])===null||f===void 0?void 0:f.children)||i,r=Je(e.props.children||[],l);t.push.apply(t,sn(r));break}case"li":{var a=Je(e.props.children,l);i.push({title:[].concat(e.props.children).filter(function(s){return s.type!=="ul"}),key:l,children:a,isLeaf:!a.length});break}default:}}),i}var fn=function(o){var i=useState(Je(o)),e=rn(i,2),d=e[0],l=e[1];return useEffect(function(){l(Je(o))},[o]),d},vn=function(o){var i=o.isLeaf,e=o.expanded;return i?React.createElement("span",{className:"dumi-default-tree-icon"},React.createElement(FileOutlined,{fill:"currentColor"})):e?React.createElement("span",{className:"dumi-default-tree-icon"},React.createElement(FolderOpenOutlined,{fill:"currentColor"})):React.createElement("span",{className:"dumi-default-tree-icon"},React.createElement(FolderOutlined,{fill:"currentColor"}))},pn=function(o){var i=o.isLeaf,e=o.expanded;return i?React.createElement("span",{className:"tree-switcher-leaf-line"}):e?React.createElement("span",{className:"tree-switcher-line-icon"},React.createElement("span",{className:"dumi-default-tree-icon"},React.createElement(MinusSquareOutlined,{fill:"currentColor"}))):React.createElement("span",{className:"tree-switcher-line-icon"},React.createElement("span",{className:"dumi-default-tree-icon"},React.createElement(PlusSquareOutlined,{fill:"currentColor"})))},dt=function(){return{height:0,opacity:0}},wt=function(o){var i=o.scrollHeight;return{height:i,opacity:1}},gn=function(o){return{height:o?o.offsetHeight:0}},st=function(o,i){return(i==null?void 0:i.deadline)===!0||i.propertyName==="height"},yn={motionName:"ant-motion-collapse",onAppearStart:dt,onEnterStart:dt,onAppearActive:wt,onEnterActive:wt,onLeaveStart:gn,onLeaveActive:dt,onAppearEnd:st,onEnterEnd:st,onLeaveEnd:st,motionDeadline:500},kn=function(n){var o=fn(n.children),i=createRef(),e=function(l,f){var t=f.isLeaf;t||l.shiftKey||l.metaKey||l.ctrlKey||i.current.onNodeExpand(l,f)};return React.createElement(Tree,{className:"dumi-default-tree",icon:vn,ref:i,itemHeight:20,showLine:!0,selectable:!1,virtual:!1,motion:Tt(Tt({},yn),{},{motionAppear:!1}),onClick:e,treeData:[{key:"0",title:n.title||"",children:o}],defaultExpandAll:!0,switcherIcon:pn})}},93096:function(je,He,O){var ee="Expected a function",R=NaN,ne="[object Symbol]",F=/^\s+|\s+$/g,Y=/^[-+]0x[0-9a-f]+$/i,ae=/^0b[01]+$/i,ie=/^0o[0-7]+$/i,X=parseInt,Ee=typeof O.g=="object"&&O.g&&O.g.Object===Object&&O.g,me=typeof self=="object"&&self&&self.Object===Object&&self,Ce=Ee||me||Function("return this")(),re=Object.prototype,le=re.toString,S=Math.max,v=Math.min,c=function(){return Ce.Date.now()};function N(C,$,U){var te,j,J,oe,de,fe,Se=0,Ne=!1,ve=!1,ze=!0;if(typeof C!="function")throw new TypeError(ee);$=W($)||0,T(U)&&(Ne=!!U.leading,ve="maxWait"in U,J=ve?S(W(U.maxWait)||0,$):J,ze="trailing"in U?!!U.trailing:ze);function Fe(V){var ge=te,Ke=j;return te=j=void 0,Se=V,oe=C.apply(Ke,ge),oe}function We(V){return Se=V,de=setTimeout(pe,$),Ne?Fe(V):oe}function et(V){var ge=V-fe,Ke=V-Se,Re=$-ge;return ve?v(Re,J-Ke):Re}function Xe(V){var ge=V-fe,Ke=V-Se;return fe===void 0||ge>=$||ge<0||ve&&Ke>=J}function pe(){var V=c();if(Xe(V))return _(V);de=setTimeout(pe,et(V))}function _(V){return de=void 0,ze&&te?Fe(V):(te=j=void 0,oe)}function tt(){de!==void 0&&clearTimeout(de),Se=0,te=fe=j=de=void 0}function Ye(){return de===void 0?oe:_(c())}function Ae(){var V=c(),ge=Xe(V);if(te=arguments,j=this,fe=V,ge){if(de===void 0)return We(fe);if(ve)return de=setTimeout(pe,$),Fe(fe)}return de===void 0&&(de=setTimeout(pe,$)),oe}return Ae.cancel=tt,Ae.flush=Ye,Ae}function Z(C,$,U){var te=!0,j=!0;if(typeof C!="function")throw new TypeError(ee);return T(U)&&(te="leading"in U?!!U.leading:te,j="trailing"in U?!!U.trailing:j),N(C,$,{leading:te,maxWait:$,trailing:j})}function T(C){var $=typeof C;return!!C&&($=="object"||$=="function")}function w(C){return!!C&&typeof C=="object"}function B(C){return typeof C=="symbol"||w(C)&&le.call(C)==ne}function W(C){if(typeof C=="number")return C;if(B(C))return R;if(T(C)){var $=typeof C.valueOf=="function"?C.valueOf():C;C=T($)?$+"":$}if(typeof C!="string")return C===0?C:+C;C=C.replace(F,"");var U=ae.test(C);return U||ie.test(C)?X(C.slice(2),U?2:8):Y.test(C)?R:+C}je.exports=Z}}]); diff --git a/404.html b/404.html index 4c37f26..9dd0573 100644 --- a/404.html +++ b/404.html @@ -26,6 +26,6 @@
- + \ No newline at end of file diff --git a/546.eebbc4aa.async.js b/546.eebbc4aa.async.js deleted file mode 100644 index e656099..0000000 --- a/546.eebbc4aa.async.js +++ /dev/null @@ -1,550 +0,0 @@ -(self.webpackChunk_antv_l7_editor=self.webpackChunk_antv_l7_editor||[]).push([[546],{84731:function(Be,re,o){"use strict";o.d(re,{B:function(){return g}});var X=o(24928),d=o(78683),K=o(23978);function g(Ee,ye,me){var Se=Ee.getWordUntilPosition(ye),Ae={startLineNumber:ye.lineNumber,endLineNumber:ye.lineNumber,startColumn:Se.startColumn,endColumn:Se.endColumn},oe=[];if(me==="turf")for(var be in X){var ce={label:be,kind:K.languages.CompletionItemKind.Function,documentation:X[be].toString(),insertText:be,range:Ae};oe.push(ce)}else oe=d.Z.chain(d.Z).keys().map(function(te){return{label:te,kind:K.languages.CompletionItemKind.Function,insertText:te,range:Ae}}).value();return{suggestions:oe}}},56550:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{i:function(){return GeoJsonEditor}});var _Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(42122),_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__),_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(17061),_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__),_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(17156),_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__),_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(27424),_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__),ahooks__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(36306),ahooks__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(78234),ahooks__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(8527),monaco_editor_esm_vs_editor_editor_api__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(23978),react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(67294),react_i18next__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(67421),react_monaco_editor__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(2302),_recoil__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(32865),_utils__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(20929),_utils_prettier_text__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(12510),_editortool__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(84731),_styles__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(28804),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(85893),GeoJsonEditor=(0,react__WEBPACK_IMPORTED_MODULE_5__.forwardRef)(function(props,ref){var _useSize,_props$language=props.language,language=_props$language===void 0?"json":_props$language,_useGlobal=(0,_recoil__WEBPACK_IMPORTED_MODULE_8__.Og)(),theme=_useGlobal.theme,autoFitBounds=_useGlobal.autoFitBounds,_useFeature=(0,_recoil__WEBPACK_IMPORTED_MODULE_8__.SS)(),editorText=_useFeature.editorText,setEditorText=_useFeature.setEditorText,saveEditorText=_useFeature.saveEditorText,bboxAutoFit=_useFeature.bboxAutoFit,_useState=(0,react__WEBPACK_IMPORTED_MODULE_5__.useState)(""),_useState2=_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState,2),scriptContent=_useState2[0],setScriptContent=_useState2[1],_useState3=(0,react__WEBPACK_IMPORTED_MODULE_5__.useState)(null),_useState4=_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState3,2),container=_useState4[0],setContainer=_useState4[1],_ref=(_useSize=(0,ahooks__WEBPACK_IMPORTED_MODULE_14__.Z)(container))!==null&&_useSize!==void 0?_useSize:{},_ref$width=_ref.width,width=_ref$width===void 0?0:_ref$width,_ref$height=_ref.height,height=_ref$height===void 0?0:_ref$height,styles=(0,_styles__WEBPACK_IMPORTED_MODULE_12__.Z)(),_useState5=(0,react__WEBPACK_IMPORTED_MODULE_5__.useState)(""),_useState6=_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState5,2),editorTextChange=_useState6[0],setEditorTextChange=_useState6[1],_useTranslation=(0,react_i18next__WEBPACK_IMPORTED_MODULE_6__.$G)(),t=_useTranslation.t;monaco_editor_esm_vs_editor_editor_api__WEBPACK_IMPORTED_MODULE_4__.languages.registerDocumentFormattingEditProvider(language,{provideDocumentFormattingEdits:function(re){return[{range:re.getFullModelRange(),text:(0,_utils_prettier_text__WEBPACK_IMPORTED_MODULE_10__.X)({content:re.getValue(),parser:language})}]}}),(0,ahooks__WEBPACK_IMPORTED_MODULE_15__.Z)(function(){monaco_editor_esm_vs_editor_editor_api__WEBPACK_IMPORTED_MODULE_4__.editor.defineTheme("custome-theme",{base:"vs",inherit:!0,rules:[{token:t("geojson_editor.index.tiaoShi"),foreground:"959595"},{token:t("geojson_editor.index.tongZhi"),foreground:"00b4ff"},{token:t("geojson_editor.index.jingGao"),foreground:"fff000"},{token:t("geojson_editor.index.cuoWu"),foreground:"ff0000"},{token:t("geojson_editor.index.bengKui"),foreground:"c30209"},{token:t("geojson_editor.index.xinXi"),foreground:"ffffff"}],colors:{"editor.background":"#fafafa","editorLineNumber.foreground":"#222222","editor.lineHighlightBackground":"#f4f4f4"}}),monaco_editor_esm_vs_editor_editor_api__WEBPACK_IMPORTED_MODULE_4__.languages.registerCompletionItemProvider(language,{provideCompletionItems:function(re,o){return(0,_editortool__WEBPACK_IMPORTED_MODULE_11__.B)(re,o,"lodash")}}),monaco_editor_esm_vs_editor_editor_api__WEBPACK_IMPORTED_MODULE_4__.languages.registerCompletionItemProvider(language,{provideCompletionItems:function(re,o){return(0,_editortool__WEBPACK_IMPORTED_MODULE_11__.B)(re,o,"turf")}})});var monacoChange=function(re){if(language==="json"){setEditorText(re),setEditorTextChange(re);return}setScriptContent==null||setScriptContent(re)};(0,react__WEBPACK_IMPORTED_MODULE_5__.useImperativeHandle)(ref,function(){return{getData:function getData(){return new Promise(function(){var _ref2=_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()(_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee(resolve,reject){var geoData,funcResult,evalResult;return _Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:if(funcResult=new Function(scriptContent),!funcResult()){_context.next=5;break}geoData=funcResult(),_context.next=14;break;case 5:if(evalResult=eval(scriptContent),!(0,_utils__WEBPACK_IMPORTED_MODULE_9__.tI)(evalResult)){_context.next=12;break}return _context.next=9,evalResult;case 9:_context.t0=_context.sent,_context.next=13;break;case 12:_context.t0=evalResult;case 13:geoData=_context.t0;case 14:geoData?resolve(geoData):reject(t("geojson_editor.index.jiaoBenShuJuYou"));case 15:case"end":return _context.stop()}},_callee)}));return function(Be,re){return _ref2.apply(this,arguments)}}())}}},[scriptContent,t]),(0,ahooks__WEBPACK_IMPORTED_MODULE_16__.Z)(function(){var Be=saveEditorText();autoFitBounds&&bboxAutoFit(Be)},[editorTextChange],{wait:2e3});var value=(0,react__WEBPACK_IMPORTED_MODULE_5__.useMemo)(function(){return language==="javascript"?{}:{value:editorText}},[language,editorText]);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)("div",{ref:setContainer,className:styles.appEditor,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(react_monaco_editor__WEBPACK_IMPORTED_MODULE_7__.ZP,_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_Users_yanxiong_Desktop_l7_editor_node_modules_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({width,height,language},value),{},{onChange:monacoChange,theme:theme==="dark"?"vs-dark":"custome-theme",options:{selectOnLineNumbers:!0,tabIndex:2,tabSize:2,folding:!0,fontSize:13,mouseStyle:"text",foldingStrategy:"indentation",scrollBeyondLastLine:!1,foldingMaximumRegions:Number.MAX_SAFE_INTEGER,suggest:{showKeywords:!0}}}))})})},28804:function(Be,re,o){"use strict";var X=o(59400),d=o.n(X),K=o(68479),g,Ee=function(){return{appEditor:(0,K.iv)(g||(g=d()([` - width: 100%; - height: 100%; - position: relative; - .react-monaco-editor-container { - width: 100%; - height: 100%; - } - `])))}};re.Z=Ee},55375:function(Be,re,o){"use strict";o.d(re,{AQ:function(){return Se},BH:function(){return Ae},Fe:function(){return g},IZ:function(){return be},Iz:function(){return d.Iz},K6:function(){return me},QF:function(){return ce},_9:function(){return d._9},ay:function(){return te},d7:function(){return Ee},dY:function(){return De},dw:function(){return d.dw},eG:function(){return d.eG},s3:function(){return oe},u9:function(){return d.u9},xQ:function(){return d.xQ},yc:function(){return K}});var X=o(36683),d=o(50599),K=[20,80],g=function(z){return z.RightPanelWidth="RightPanelWidth",z.MapOptions="MapOptions",z.LayerColor="LayerColor",z.HideEditor="HideEditor",z.EditorText="EditorText",z.PopupTrigger="PopupTrigger",z.ActiveRightTabKey="ActiveRightTabKey",z.AutoFitBounds="AutoFitBounds",z.BaseMap="BaseMap",z.officialLayers="officialLayers",z.WktText="WktText",z.Convert="Convert",z.theme="theme",z.cityHistory="cityHistory",z.showIndex="showIndex",z.locale="locale",z.firstOpening="firstOpening",z}({}),Ee=function(z){return z.PointLayer="PointLayer",z.LineLayer="LineLayer",z.PolygonLayer="PolygonLayer",z}({}),ye="https://mdn.alipayobjects.com/huamei_baaa7a/afts/img/A*mvwjR5RwS9QAAAAAAAAAAAAADqSCAQ/original",me="#1677ff",Se={Index:Symbol("index"),DrawType:Symbol("drawType"),IsEdit:Symbol("isEdit")},Ae=(0,X.Z)({scriptUrl:"//at.alicdn.com/t/a/font_3567033_q8yw5w6air.js"}),oe={token:"pk.eyJ1IjoibGl1dmlnb25nenVvc2hpIiwiYSI6ImNsaGs2czBrcTBvczUzbnFzOHU0dzk2ZWQifQ.hVvTgcbg_Ym-VQz36psLRg"},be={token:"5ae4492ef912cbbc93034fea0e66ff2a"},ce=100,te="https://gac-geo.googlecnapps.cn/maps/vt?lyrs=s,m&gl=CN&x={x}&y={y}&z={z}",De=function(z){return z.AmapSatellite="amapSatellite",z.AmapRoadNet="amapRoadNet",z.AmapTraffic="amapTraffic",z.AmapBuildings="amapBuildings",z.GoogleSatellite="googleSatellite",z}({})},50599:function(Be,re,o){"use strict";o.d(re,{Iz:function(){return Se},_9:function(){return Ae},dw:function(){return Ee},eG:function(){return oe},u9:function(){return me},xQ:function(){return ye}});var X=o(27424),d=o.n(X),K=o(17099),g=o.n(K),Ee=g().shape({type:g().in(["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"]),coordinates:g().array}),ye=g().arrayOf(Ee),me=g().shape({type:g().in(["Feature"]),properties:g().or([g().object,g().null,g().undefined]),geometry:Ee}),Se=g().arrayOf(me),Ae=g().shape({type:g().in(["FeatureCollection"]),features:g().arrayOf(me)}),oe=g().arrayOf(g().arrayOf(g().and([g().arrayOf(g().number),g().apply(function(be){if(be.length===2){var ce=d()(be,2),te=ce[0],De=ce[1];return te>=-180&&te<=180&&De<=90&&De>=-90}return!1})])))},46095:function(Be,re,o){"use strict";o.r(re),o.d(re,{AppTable:function(){return Bn},GeoJsonEditor:function(){return Yt.i},L7Editor:function(){return Ci},LngLatEditor:function(){return Hr},WktEditor:function(){return ta}});var X=o(42122),d=o.n(X),K=o(27424),g=o.n(K),Ee=o(60219),ye=o(75932),me=o(78588),Se=o(1210),Ae=o(65885),oe=o(65868),be=o(78957),ce=o(61781),te=o(15867),De=o(83159),z=o(96074),ze=o(55241),Oe=o(93531),st=o(94184),Te=o.n(st),_=o(67294),ee=o(67421),M=o(55375),N=o(32865),ut=o(85060),pe=o(24928),Ne=o(12816),ge=o.n(Ne),ue=o(20929),Je=o(12510),tt=o(42649),e=o(85893),He=function(){var a=(0,N.SS)(),l=a.editorText,r=a.fc,n=(0,ee.$G)(),i=n.t,s=function(c){if(c==="GeoJson")(0,ue.Di)(JSON.stringify(r),"json");else if(c==="FormatGeoJson"){var x=(0,Je.X)({content:r});(0,ue.Di)(x,"json")}else if(c==="LngLat")(0,ue.Di)((0,pe.coordAll)(r).map(function(h){return h.join(",")}).join(";"),"txt");else if(c==="KML"){var b=ge()(r);(0,ue.Di)(b,"kml")}else c==="WKT"?(0,ue.Di)((0,tt.f)(r),"wkt"):(0,ue.Di)(l,"json")},u=[{key:"GeoJson",label:i("app_header.constants.xiaZaiGEO")},{key:"LngLat",label:i("app_header.constants.xiaZaiLNG")},{key:"KML",label:i("app_header.constants.xiaZaiKML")},{key:"WKT",label:i("app_header.constants.xiaZaiWKT")}];return(0,e.jsx)(De.Z,{menu:{items:u,onClick:function(c){var x=c.key;s(x)}},children:(0,e.jsx)(te.ZP,{id:"l7-editor-download",icon:(0,e.jsx)(ut.Z,{}),children:i("btn.download_btn.xiaZai")})})},Pe=He,Y=o(63783),ie=function(){var p=(0,ee.$G)(),a=p.t,l=function(i){i==="guide"?window.open("/guide"):i==="api"?window.open("/docs"):i==="issue"&&window.open("https://github.com/antvis/L7Editor/issues/new")},r=[{key:"guide",label:a("app_header.constants.pingTaiShiYongWen")},{key:"api",label:a("app_header.constants.zuJianAPI")},{key:"issue",label:a("app_header.constants.issue")}];return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(De.Z,{menu:{items:r,onClick:function(i){var s=i.key;l(s)}},children:(0,e.jsx)(te.ZP,{icon:(0,e.jsx)(Y.Z,{}),children:a("btn.handback_btn.bangZhu")})})})},$=o(18253),ve=o(82925),we=o(36609),Ie=o(15059),_t={"btn.download_btn.xiaZai":"Download","btn.handback_btn.lianXiWoMen":"Contact Us","btn.handback_btn.bangZhu":"Help","btn.setting_btn.guanBi":"Close","btn.setting_btn.kaiQi":"Open","btn.setting_btn.shiFouZhanShiYuan":"Display serial number on layer","btn.setting_btn.gaoDe":"Gaode","btn.setting_btn.diTuDiTuQie":"Switch base map","btn.setting_btn.ziDongSuoFangZhi":"Auto zoom to all elements visible","btn.setting_btn.huaRu":"Mouse on","btn.setting_btn.dianJi":"Click","btn.setting_btn.tuCengQiPaoZhan":"Display mode of layer popup","btn.setting_btn.quXiao":"Cancel","btn.setting_btn.queRen":"Confirm","btn.setting_btn.sheZhi":"Setting","btn.setting_btn.diTuSheZhi":"Map Setting","import_btn.file_upload.jinZhiChiJS":"Only files with. json, .geojson, .wkt, .csv, .xlsx, .xls and. kml suffixes are supported","import_btn.file_upload.wenJianShangChuan":"File Upload","import_btn.file_upload.wenJianShangChuan2":"File upload:","import_btn.file_upload.qingJianChaShuJu":"Please check the data format","import_btn.file_upload.qingShanChuBaoCuo":"Please delete the error file","import_btn.file_upload.qingTianJiaWenJian":"Please add file","import_btn.file_upload.shuJuGeShiBu":"Data format mismatch","import_btn.index.zhuiJia":"Append","import_btn.index.fuGai":"Cover","import_btn.index.shuJuCaoZuo":"Data manipulation","import_btn.index.shangChuan":"Upload","import_btn.index.shangChuanShuJu":"Upload data","import_btn.index.jAVAS":"JavaScript script","import_btn.index.uRLShangChuan":"URL upload","import_btn.lnglat_import_btn.qingShuRuLianXu":"Please enter consecutive latitude and longitude separated by symbols, for example: 120.85,30.26;130.85,31.21","import_btn.lnglat_import_btn.shuJuNeiRong":"Data Content","import_btn.lnglat_import_btn.shuJuLeiXing":"Data Type","import_btn.lnglat_import_btn.lNGLA":"LngLat import failed","import_btn.lnglat_import_btn.qingShuRuJingWei":"Please enter latitude and longitude","import_btn.lnglat_import_btn.mian":"Polygon","import_btn.lnglat_import_btn.xian":"Line","import_btn.lnglat_import_btn.dian":"Point","import_btn.url_upload.uRLDiZhi":"URL:","import_btn.url_upload.shuJuLeiXing":"Data Type:","import_btn.url_upload.qingShuRuWenBen":"Please enter text content","import_btn.url_upload.shuJuGeShiCuo":"Data format error, please select the correct data type","app_header.constants.keYiTongGuoBiao":"Table can be used to display the fields in the properties object in the modification and deletion GeoJSON data.","app_header.constants.biaoGe":"Table","app_header.constants.keYiTongGuoW":"WKT data can be modified through the WKT editor","app_header.constants.wKTBianJi":"WKT Editor","app_header.constants.keYiTongGuoBian":"GeoJSON data can be modified by editor","app_header.constants.gEOJS":"GeoJSON Editor","app_header.constants.keXuanZeBuTong":"Choice of official layer configurations for different maps","app_header.constants.guanFangTuCeng":"Official Layer","app_header.constants.xuanZeBuTongZhu":"Select a different theme color to modify the map rendering theme color","app_header.constants.zhuTiSe":"Theme color","app_header.constants.xuanZeYanSeLai":"Select color to modify map rendering color","app_header.constants.yanSeXuanZeQi":"Color Picker","app_header.constants.dianJiZiDongSuo":"Click the Auto Zoom button to map the GeoJSON data location that will be automatically zoomed","app_header.constants.ziDongSuoFang":"Auto Zoom","app_header.constants.keGenJuShuJu":"You can filter the required data based on the properties in the data","app_header.constants.shaiXuan":"Filter","app_header.constants.dianJiQingChuAn":"Click the Clear button to GeoJSON the data will be empty (the Clear button will be grayed out in the Empty state)","app_header.constants.qingChu":"Clear","app_header.constants.keYiJiHuoDi":"Can activate new GeoJSON elements for mapping","app_header.constants.huiZhiPNG":"Draw. png","app_header.constants.huiZhi":"Draw","app_header.constants.souSuoChengShiHou":"After searching the city, you can quickly locate and move to the corresponding city center point.","app_header.constants.chengShiChaXun":"City Query","app_header.constants.keYiKuaiSuXuan":"Can quickly select the administrative region of the provinces, cities and counties","app_header.constants.xingZhengQuXuanZe":"Administrative Region Selector","app_header.constants.dianJiKeQieHuan":"Click to switch between different theme colors","app_header.constants.zhuTi":"Theme","app_header.constants.yongHuKeSheZhi":"User can set some initialization configuration","app_header.constants.dianJiXiaZaiKe":"Click Download to download the GeoJSON data to the specified data format","app_header.constants.shiYongCTR":"Use the Ctrl/Command S shortcut key, or click the save button to render data (the save button is grayed out in the saved state)","app_header.constants.baoCun":"Save","app_header.constants.shangChuanPNG":"Upload. png","app_header.constants.shangChuanGEO":"Upload GeoJSON data","app_header.constants.diTuShangChaKan":"View rendering effects on the map","app_header.constants.xuanRan":"Rendering","app_header.constants.bianJiQi":"Editor","app_header.constants.quanGongNengShiYong":"Full Guide","app_header.constants.pingTaiJiChuShi":"Basic Guide","app_header.constants.xiaZaiWKT":"Download WKT format data","app_header.constants.xiaZaiKML":"Download KML format data","app_header.constants.xiaZaiLNG":"Download LngLat format data","app_header.constants.xiaZaiGEO":"Download GeoJSON format data","app_header.constants.zuJianAPI":"Component API Documentation","app_header.constants.pingTaiShiYongWen":"Platform Usage Documentation","app_header.constants.issue":"Quick Issue","app_header.index.an":"Dark","app_header.index.liang":"Light","app_header.index.yinDao":"Guide","app_header.index.baoCunShuJu":"Save Data","app_table.index.dangQianShuJuWu":"No fields","app_table.index.shanChu":"Delete","app_table.index.shuJuShanChuCheng":"Data deleted successfully","app_table.index.caoZuo":"Operation","app_table.index.xuHao":"Serial number","app_table.index.shanChuLie":"Confirm to delete this column of data?","app_table.index.tianJiaLieZiDuan":"Add Column Field","app_table.index.ziDuanMing":"Field Name:","app_table.index.qingShuRuLieZiDuan":"Please enter a column field","geojson_editor.index.jiaoBenShuJuYou":"Wrong script data","geojson_editor.index.xinXi":"Information","geojson_editor.index.bengKui":"Crash","geojson_editor.index.cuoWu":"Error","geojson_editor.index.jingGao":"Warning","geojson_editor.index.tongZhi":"Notifications","geojson_editor.index.tiaoShi":"Debugging","layer_popup.index.gengGaiHuiZhi":"Edit","layer_popup.index.mULTI":"GeoJSON of type Multi does not support editing","layer_popup.index.dangQianYuanSuWu":"Current element has no fields","layer_popup.index.tianJiaZiDuan":"Add Field","map_content.index.zuoBiaoXi":"Geographic Coordinate System","administrative_select_control.index.xingZhengQuHuaLi":"Historical records of administrative divisions","administrative_select_control.index.keXuanZeShengShi":"Province/City/County","administrative_select_control.index.weiLanShuJuQing":"Fence data request failed","auto_control.index.ziDongSuoFangZhi":"Auto zoom to data","clear_control.index.queRenQingKongSuo":"Confirm to clear all data?","filter_form_list_control.index.shuJuGuoLu":"Data Filtering","filter_form_list_control.index.tianJiaShaiXuanTiao":"Add Filter Condition","filter_form_list_control.index.qingXuanZeZiDuan":"Please select a field","filter_form_list_control.index.huoZhe":"or","filter_form_list_control.index.bingQie":"and","filter_form_list_control.numberFilter.qingShuRuShaiXuan":"Please enter a filter value","filter_form_list_control.numberFilter.qingXuanZeGuoLu":"Please select filtering logic","filter_form_list_control.numberFilter.quJian":"Interval","filter_form_list_control.stringFilter.qingXuanZeShaiXuan":"Please select a filter","filter_form_list_control.stringFilter.buPiPei":"No match","filter_form_list_control.stringFilter.piPei":"Match","filter_form_list_control.stringFilter.buBaoHan":"No contain","filter_form_list_control.stringFilter.baoHan":"Contains","layer_color_control.index.changYongYanSe":"Common color","layer_color_control.index.tuCengYanSeXuan":"Layer Color Picker","location_search_control.index.tianJiaZhiShuJu":"Add to Data","location_search_control.location_search.qingShuRuYaoSou":"Please enter a place name to search","official_layer_control.index.guGeTuCeng":"Google Layers","official_layer_control.index.gaoDeTuCeng":"Gaode Layer","official_layer_control.index.guGeWeiXingTu":"Google Satellite Maps","official_layer_control.index.louKuaiTu":"Building Block","official_layer_control.index.luKuangTu":"Road condition map","official_layer_control.index.luWangTu":"Road network diagram","official_layer_control.index.weiXingTu":"Satellite map","save_map_options_control.index.baoCunDiTuZhuang":"Save Map Status","save_map_options_control.index.diTuZhuangTaiBao":"Map status saved successfully","wkt_editor.index.shuRuWKT":"Points, lines and polygons in the input WKT format can be identified. Please use ; to separate multiple data, such\uFF1APOINT(120.104013 30.262134);POINT(120.104033 30.262164)","pages.index.qingYongPCDuan":"Please use PC","recoil.feature.shuJuJiaZaiYou":"Data loading error","utils.index.qingJianChaUR":"Please check whether the url matches the data format","utils.transform.weiShiBieJS":"Unrecognized JSON array type","utils.upload.wenJianJieXiShi":"File parsing failed, please check the file type.","app_header.index.zhutiqiehuan":"Theme change","app_header.index.dingTalk":"DingTalk Group","app_table.index.dingWei":"Location","import_btn.file_upload.wenJian":"File","import_btn.file_upload.ciZiDuanFeiDiLiZiDuan":"This field is not geographic field","import_btn.file_upload.dianJiHuoJiangWenJian":"Click or drag the file here.","import_btn.file_upload.diLiZiDuanXuanZe":"Geographical field selection","import_btn.file_upload.dangQianJinZhiChi":"only WKT and Geometry data are supported.","layer_contextmenu_popup.fuZhiChengGong":"Copy success","layer_contextmenu_popup.fuZhi":"Copy","map_control_group.sam.jiSuanWanCheng":"After the identification of the plot area is completed, click the map in the red area to select the plot, and click the button again to close the intelligent identification of the plot.","map_control_group.sam.jiSuanShiBai":"Failed to identify the area of the plot. Please resize the map and re-identify the plot area.","map_control_group.sam.tuXingJieXiCuoWu":"Parcel parsing error, please reselect","map_control_group.sam.qingZaiQuYuNei":"Please select within the parcel boundary","map_control_group.sam.zhiNengXuanZe":"Block intelligent identification","map_control_group.sam.ziDongShiBie":"Plot Identification Area Boundary","map_control_group.sam.zhiNengShiBieGuanBi":"Block intelligent identification function is turned off","map_contorl_group.draw.draw":"Click to start drawing","map_contorl_group.draw.drawContinue":"Click to continue drawing","map_contorl_group.draw.drawFinish":"Click to continue drawing, double-click to end drawing","map_contorl_group.draw.pontHover":"Drag and Drop to Adjust Node Position","map_contorl_group.draw.midPointHover":"Click to add a node at this location","map_contorl_group.draw.lineHover":"Drag and Drop to Adjust Surface Position"},dt={"btn.download_btn.xiaZai":"\u4E0B\u8F7D","btn.handback_btn.lianXiWoMen":"\u8054\u7CFB\u6211\u4EEC","btn.handback_btn.bangZhu":"\u5E2E\u52A9","btn.setting_btn.guanBi":"\u5173\u95ED","btn.setting_btn.kaiQi":"\u5F00\u542F","btn.setting_btn.shiFouZhanShiYuan":"\u662F\u5426\u5C55\u793A\u5143\u7D20\u5E8F\u53F7","btn.setting_btn.gaoDe":"\u9AD8\u5FB7","btn.setting_btn.diTuDiTuQie":"\u5730\u56FE\u5E95\u56FE\u5207\u6362","btn.setting_btn.ziDongSuoFangZhi":"\u81EA\u52A8\u7F29\u653E\u81F3\u6240\u6709\u5143\u7D20\u53EF\u89C1","btn.setting_btn.huaRu":"\u5212\u5165","btn.setting_btn.dianJi":"\u70B9\u51FB","btn.setting_btn.tuCengQiPaoZhan":"\u56FE\u5C42\u6C14\u6CE1\u5C55\u793A\u65B9\u5F0F","btn.setting_btn.quXiao":"\u53D6\u6D88","btn.setting_btn.queRen":"\u786E\u8BA4","btn.setting_btn.sheZhi":"\u8BBE\u7F6E","btn.setting_btn.diTuSheZhi":"\u5730\u56FE\u8BBE\u7F6E","import_btn.file_upload.jinZhiChiJS":"\u4EC5\u652F\u6301.json, .geojson, .wkt, .kml, .csv, .xlsx, .xls\u540E\u7F00\u7684\u6587\u4EF6","import_btn.file_upload.wenJianShangChuan":"\u6587\u4EF6\u4E0A\u4F20","import_btn.file_upload.wenJianShangChuan2":"\u6587\u4EF6\u4E0A\u4F20 :","import_btn.file_upload.qingJianChaShuJu":"\u8BF7\u68C0\u67E5\u6570\u636E\u683C\u5F0F","import_btn.file_upload.qingShanChuBaoCuo":"\u8BF7\u5220\u9664\u62A5\u9519\u6587\u4EF6","import_btn.file_upload.qingTianJiaWenJian":"\u8BF7\u6DFB\u52A0\u6587\u4EF6","import_btn.file_upload.shuJuGeShiBu":"\u6570\u636E\u683C\u5F0F\u4E0D\u5339\u914D","import_btn.index.zhuiJia":"\u8FFD\u52A0","import_btn.index.fuGai":"\u8986\u76D6","import_btn.index.shuJuCaoZuo":"\u6570\u636E\u64CD\u4F5C","import_btn.index.shangChuan":"\u4E0A\u4F20","import_btn.index.shangChuanShuJu":"\u4E0A\u4F20\u6570\u636E","import_btn.index.jAVAS":"JavaScript\u811A\u672C","import_btn.index.uRLShangChuan":"URL\u4E0A\u4F20","import_btn.lnglat_import_btn.qingShuRuLianXu":"\u8BF7\u8F93\u5165\u8FDE\u7EED\u7684\u7ECF\u7EAC\u5EA6\u5E76\u7528\u7B26\u53F7\u9694\u5F00\uFF0C\u4F8B\u5982\uFF1A120.85,30.26;130.85,31.21","import_btn.lnglat_import_btn.shuJuNeiRong":"\u6570\u636E\u5185\u5BB9","import_btn.lnglat_import_btn.shuJuLeiXing":"\u6570\u636E\u7C7B\u578B","import_btn.lnglat_import_btn.lNGLA":"LngLat \u5BFC\u5165\u5931\u8D25","import_btn.lnglat_import_btn.qingShuRuJingWei":"\u8BF7\u8F93\u5165\u7ECF\u7EAC\u5EA6","import_btn.lnglat_import_btn.mian":"\u9762","import_btn.lnglat_import_btn.xian":"\u7EBF","import_btn.lnglat_import_btn.dian":"\u70B9","import_btn.url_upload.uRLDiZhi":"URL\u5730\u5740 :","import_btn.url_upload.shuJuLeiXing":"\u6570\u636E\u7C7B\u578B :","import_btn.url_upload.qingShuRuWenBen":"\u8BF7\u8F93\u5165\u6587\u672C\u5185\u5BB9","import_btn.url_upload.shuJuGeShiCuo":"\u6570\u636E\u683C\u5F0F\u9519\u8BEF\uFF0C\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u6570\u636E\u7C7B\u578B","app_header.constants.keYiTongGuoBiao":"\u53EF\u4EE5\u901A\u8FC7\u8868\u683C\u6765\u5C55\u793A\u4FEE\u6539\u5220\u9664GeoJSON \u6570\u636E\u4E2D\u7684properties\u5BF9\u8C61\u4E2D\u7684\u5B57\u6BB5","app_header.constants.biaoGe":"\u8868\u683C","app_header.constants.keYiTongGuoW":"\u53EF\u4EE5\u901A\u8FC7WKT\u7F16\u8F91\u5668\u4FEE\u6539 WKT \u6570\u636E","app_header.constants.wKTBianJi":"WKT\u7F16\u8F91\u5668","app_header.constants.keYiTongGuoBian":"\u53EF\u4EE5\u901A\u8FC7\u7F16\u8F91\u5668\u4FEE\u6539 GeoJSON \u6570\u636E","app_header.constants.gEOJS":"GeoJSON\u7F16\u8F91\u5668","app_header.constants.keXuanZeBuTong":"\u53EF\u9009\u62E9\u4E0D\u540C\u7684\u5730\u56FE\u7684\u5B98\u65B9\u56FE\u5C42\u914D\u7F6E","app_header.constants.guanFangTuCeng":"\u5B98\u65B9\u56FE\u5C42","app_header.constants.xuanZeBuTongZhu":"\u9009\u62E9\u4E0D\u540C\u4E3B\u9898\u8272\u6765\u4FEE\u6539\u5730\u56FE\u6E32\u67D3\u4E3B\u9898\u989C\u8272","app_header.constants.zhuTiSe":"\u4E3B\u9898\u8272","app_header.constants.xuanZeYanSeLai":"\u9009\u62E9\u989C\u8272\u6765\u4FEE\u6539\u5730\u56FE\u6E32\u67D3\u989C\u8272","app_header.constants.yanSeXuanZeQi":"\u989C\u8272\u9009\u62E9\u5668","app_header.constants.dianJiZiDongSuo":"\u70B9\u51FB\u81EA\u52A8\u7F29\u653E\u6309\u94AE \u5730\u56FE\u5C06\u81EA\u52A8\u7F29\u653E\u7684 GeoJSON \u6570\u636E\u4F4D\u7F6E","app_header.constants.ziDongSuoFang":"\u81EA\u52A8\u7F29\u653E","app_header.constants.keGenJuShuJu":"\u53EF\u6839\u636E\u6570\u636E\u4E2D\u7684properties\u6765\u7B5B\u9009\u9700\u8981\u6570\u636E","app_header.constants.shaiXuan":"\u7B5B\u9009","app_header.constants.dianJiQingChuAn":"\u70B9\u51FB\u6E05\u9664\u6309\u94AE GeoJSON \u6570\u636E\u5C06\u88AB\u8BF7\u7A7A \uFF08\u5DF2\u6E05\u7A7A\u72B6\u6001\u4E0B\u6E05\u7A7A\u6309\u94AE\u7F6E\u7070\uFF09","app_header.constants.qingChu":"\u6E05\u9664","app_header.constants.keYiJiHuoDi":"\u53EF\u4EE5\u6FC0\u6D3B\u5730\u56FE\u7ED8\u5236\u65B0\u589E GeoJSON \u5143\u7D20","app_header.constants.huiZhiPNG":"\u7ED8\u5236.png","app_header.constants.huiZhi":"\u7ED8\u5236","app_header.constants.souSuoChengShiHou":"\u641C\u7D22\u57CE\u5E02\u540E\u53EF\u5FEB\u901F\u5B9A\u4F4D\u5E76\u79FB\u52A8\u81F3\u5BF9\u5E94\u57CE\u5E02\u4E2D\u5FC3\u70B9","app_header.constants.chengShiChaXun":"\u57CE\u5E02\u67E5\u8BE2","app_header.constants.keYiKuaiSuXuan":"\u53EF\u4EE5\u5FEB\u901F\u9009\u62E9\u884C\u653F\u533A\u7684\u7701\u5E02\u53BF\u533A","app_header.constants.xingZhengQuXuanZe":"\u884C\u653F\u533A\u9009\u62E9\u5668","app_header.constants.dianJiKeQieHuan":"\u70B9\u51FB\u53EF\u5207\u6362\u4E0D\u540C\u7684\u4E3B\u9898\u914D\u8272","app_header.constants.zhuTi":"\u4E3B\u9898","app_header.constants.yongHuKeSheZhi":"\u7528\u6237\u53EF\u8BBE\u7F6E\u4E00\u4E9B\u521D\u59CB\u5316\u914D\u7F6E","app_header.constants.dianJiXiaZaiKe":"\u70B9\u51FB\u4E0B\u8F7D\u53EF\u5C06 GeoJSON \u6570\u636E\u4E0B\u8F7D\u4E3A\u6307\u5B9A\u6570\u636E\u683C\u5F0F","app_header.constants.shiYongCTR":"\u4F7F\u7528 Ctrl/Command + S \u5FEB\u6377\u952E\uFF0C\u6216\u70B9\u51FB\u4FDD\u5B58\u6309\u94AE\u6E32\u67D3\u6570\u636E\uFF08\u5DF2\u4FDD\u5B58\u72B6\u6001\u4E0B\u4FDD\u5B58\u6309\u94AE\u7F6E\u7070\uFF09","app_header.constants.baoCun":"\u4FDD\u5B58","app_header.constants.shangChuanPNG":"\u4E0A\u4F20.png","app_header.constants.shangChuanGEO":"\u4E0A\u4F20 GeoJSON \u6570\u636E","app_header.constants.diTuShangChaKan":"\u5730\u56FE\u4E0A\u67E5\u770B\u6E32\u67D3\u6548\u679C","app_header.constants.xuanRan":"\u6E32\u67D3","app_header.constants.bianJiQi":"\u7F16\u8F91\u5668","app_header.constants.quanGongNengShiYong":"\u5168\u529F\u80FD\u4F7F\u7528\u5F15\u5BFC","app_header.constants.pingTaiJiChuShi":"\u5E73\u53F0\u57FA\u7840\u4F7F\u7528\u5F15\u5BFC","app_header.constants.xiaZaiWKT":"\u4E0B\u8F7D WKT \u683C\u5F0F\u6570\u636E","app_header.constants.xiaZaiKML":"\u4E0B\u8F7D KML \u683C\u5F0F\u6570\u636E","app_header.constants.xiaZaiLNG":"\u4E0B\u8F7D LngLat \u683C\u5F0F\u6570\u636E","app_header.constants.xiaZaiGEO":"\u4E0B\u8F7D GeoJSON \u683C\u5F0F\u6570\u636E","app_header.constants.zuJianAPI":"\u7EC4\u4EF6API\u6587\u6863","app_header.constants.pingTaiShiYongWen":"\u5E73\u53F0\u4F7F\u7528\u6587\u6863","app_header.constants.issue":"\u63D0\u4EA4 Issue","app_header.index.an":"\u6697","app_header.index.liang":"\u4EAE","app_header.index.yinDao":"\u5F15\u5BFC","app_header.index.baoCunShuJu":"\u4FDD\u5B58\u6570\u636E","app_table.index.dangQianShuJuWu":"\u5F53\u524D\u6570\u636E\u65E0\u5B57\u6BB5","app_table.index.shanChu":"\u5220\u9664","app_table.index.shuJuShanChuCheng":"\u6570\u636E\u5220\u9664\u6210\u529F","app_table.index.caoZuo":"\u64CD\u4F5C","app_table.index.xuHao":"\u5E8F\u53F7","app_table.index.shanChuLie":"\u786E\u8BA4\u5220\u9664\u6B64\u5217\u6570\u636E\uFF1F","app_table.index.tianJiaLieZiDuan":"\u6DFB\u52A0\u5217\u5B57\u6BB5","app_table.index.ziDuanMing":"\u5B57\u6BB5\u540D:","app_table.index.qingShuRuLieZiDuan":"\u8BF7\u8F93\u5165\u5217\u5B57\u6BB5","geojson_editor.index.jiaoBenShuJuYou":"\u811A\u672C\u6570\u636E\u6709\u8BEF","geojson_editor.index.xinXi":"\u4FE1\u606F","geojson_editor.index.bengKui":"\u5D29\u6E83","geojson_editor.index.cuoWu":"\u9519\u8BEF","geojson_editor.index.jingGao":"\u8B66\u544A","geojson_editor.index.tongZhi":"\u901A\u77E5","geojson_editor.index.tiaoShi":"\u8C03\u8BD5","layer_popup.index.gengGaiHuiZhi":"\u66F4\u6539\u7ED8\u5236","layer_popup.index.mULTI":"Multi \u7C7B\u578B\u7684 GeoJSON \u4E0D\u652F\u6301\u7F16\u8F91","layer_popup.index.dangQianYuanSuWu":"\u5F53\u524D\u5143\u7D20\u65E0\u5B57\u6BB5","layer_popup.index.tianJiaZiDuan":"\u6DFB\u52A0\u5B57\u6BB5","map_content.index.zuoBiaoXi":"\u5730\u7406\u5750\u6807\u7CFB\uFF1A","administrative_select_control.index.xingZhengQuHuaLi":"\u884C\u653F\u533A\u5212\u5386\u53F2\u8BB0\u5F55","administrative_select_control.index.keXuanZeShengShi":"\u53EF\u9009\u62E9\u7701/\u5E02/\u53BF","administrative_select_control.index.weiLanShuJuQing":"\u56F4\u680F\u6570\u636E\u8BF7\u6C42\u5931\u8D25","auto_control.index.ziDongSuoFangZhi":"\u81EA\u52A8\u7F29\u653E\u81F3\u5F53\u524D\u5143\u7D20","clear_control.index.queRenQingKongSuo":"\u786E\u8BA4\u6E05\u7A7A\u6240\u6709\u6570\u636E\uFF1F","filter_form_list_control.index.shuJuGuoLu":"\u6570\u636E\u8FC7\u6EE4","filter_form_list_control.index.tianJiaShaiXuanTiao":"\u6DFB\u52A0\u7B5B\u9009\u6761\u4EF6","filter_form_list_control.index.qingXuanZeZiDuan":"\u8BF7\u9009\u62E9\u5B57\u6BB5","filter_form_list_control.index.huoZhe":"\u6216\u8005","filter_form_list_control.index.bingQie":"\u5E76\u4E14","filter_form_list_control.numberFilter.qingShuRuShaiXuan":"\u8BF7\u8F93\u5165\u7B5B\u9009\u503C","filter_form_list_control.numberFilter.qingXuanZeGuoLu":"\u8BF7\u9009\u62E9\u8FC7\u6EE4\u903B\u8F91","filter_form_list_control.numberFilter.quJian":"\u533A\u95F4","filter_form_list_control.stringFilter.qingXuanZeShaiXuan":"\u8BF7\u9009\u62E9\u7B5B\u9009\u9879","filter_form_list_control.stringFilter.buPiPei":"\u4E0D\u5339\u914D","filter_form_list_control.stringFilter.piPei":"\u5339\u914D","filter_form_list_control.stringFilter.buBaoHan":"\u4E0D\u5305\u542B","filter_form_list_control.stringFilter.baoHan":"\u5305\u542B","layer_color_control.index.changYongYanSe":"\u5E38\u7528\u989C\u8272","layer_color_control.index.tuCengYanSeXuan":"\u56FE\u5C42\u989C\u8272\u9009\u62E9\u5668","location_search_control.index.tianJiaZhiShuJu":"\u6DFB\u52A0\u81F3\u6570\u636E","location_search_control.location_search.qingShuRuYaoSou":"\u8BF7\u8F93\u5165\u8981\u641C\u7D22\u5730\u540D","official_layer_control.index.guGeTuCeng":"\u8C37\u6B4C\u56FE\u5C42","official_layer_control.index.gaoDeTuCeng":"\u9AD8\u5FB7\u56FE\u5C42","official_layer_control.index.guGeWeiXingTu":"\u8C37\u6B4C\u536B\u661F\u56FE","official_layer_control.index.louKuaiTu":"\u697C\u5757\u56FE","official_layer_control.index.luKuangTu":"\u8DEF\u51B5\u56FE","official_layer_control.index.luWangTu":"\u8DEF\u7F51\u56FE","official_layer_control.index.weiXingTu":"\u536B\u661F\u56FE","save_map_options_control.index.baoCunDiTuZhuang":"\u4FDD\u5B58\u5730\u56FE\u72B6\u6001","save_map_options_control.index.diTuZhuangTaiBao":"\u5730\u56FE\u72B6\u6001\u4FDD\u5B58\u6210\u529F ","wkt_editor.index.shuRuWKT":"\u8F93\u5165WKT\u683C\u5F0F\u7684\u70B9\u3001\u7EBF\u3001\u9762\u90FD\u53EF\u8BC6\u522B\uFF0C\u591A\u4E2A\u6570\u636E\u8BF7\u4F7F;\u5206\u9694\uFF0C\u5982\uFF1APOINT(120.104013 30.262134);POINT(120.104033 30.262164)","pages.index.qingYongPCDuan":"\u8BF7\u7528PC\u7AEF\u6253\u5F00","recoil.feature.shuJuJiaZaiYou":"\u6570\u636E\u52A0\u8F7D\u6709\u8BEF","utils.index.qingJianChaUR":"\u8BF7\u68C0\u67E5url\u662F\u5426\u4E0E\u6570\u636E\u683C\u5F0F\u5339\u914D","utils.transform.weiShiBieJS":"\u672A\u8BC6\u522B JSON \u6570\u7EC4\u7C7B\u578B","utils.upload.wenJianJieXiShi":"\u6587\u4EF6\u89E3\u6790\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u6587\u4EF6\u683C\u5F0F\u3002","app_header.index.zhutiqiehuan":"\u4E3B\u9898\u5207\u6362","app_header.index.dingTalk":"\u9489\u9489\u7B54\u7591\u7FA4","app_table.index.dingWei":"\u5B9A\u4F4D","import_btn.file_upload.wenJian":"\u6587\u4EF6","import_btn.file_upload.ciZiDuanFeiDiLiZiDuan":"\u6B64\u5B57\u6BB5\u975E\u5730\u7406\u6570\u636E","import_btn.file_upload.dianJiHuoJiangWenJian":"\u70B9\u51FB\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u8FD9\u91CC\u3002","import_btn.file_upload.diLiZiDuanXuanZe":"\u5730\u7406\u5B57\u6BB5\u9009\u62E9","import_btn.file_upload.dangQianJinZhiChi":"\u5F53\u524D\u4EC5\u652F\u6301 WKT \u683C\u5F0F\u5B57\u6BB5\u6570\u636E \u548C geometry \u6570\u636E","layer_contextmenu_popup.fuZhiChengGong":"\u590D\u5236\u6210\u529F","layer_contextmenu_popup.fuZhi":"\u590D\u5236","map_control_group.sam.jiSuanWanCheng":"\u5730\u5757\u533A\u57DF\u8BC6\u522B\u5B8C\u6210,\u53EF\u5728\u7EA2\u8272\u533A\u57DF\u5185\u70B9\u51FB\u5730\u56FE\u9009\u53D6\u5730\u5757,\u518D\u6B21\u70B9\u51FB\u6309\u94AE\u5C06\u5173\u95ED\u5730\u5757\u667A\u80FD\u8BC6\u522B","map_control_group.sam.jiSuanShiBai":"\u5730\u5757\u8BC6\u533A\u57DF\u522B\u5931\u8D25\uFF0C\u8BF7\u8C03\u6574\u5730\u56FE\u5927\u5C0F\u91CD\u65B0\u8BC6\u522B\u5730\u5757\u533A\u57DF","map_control_group.sam.tuXingJieXiCuoWu":"\u5730\u5757\u89E3\u6790\u9519\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9","map_control_group.sam.qingZaiQuYuNei":"\u8BF7\u5728\u5730\u5757\u8FB9\u754C\u5185\u8FDB\u884C\u9009\u62E9","map_control_group.sam.zhiNengXuanZe":"\u5730\u5757\u667A\u80FD\u8BC6\u522B","map_control_group.sam.ziDongShiBie":"\u5730\u5757\u8BC6\u522B\u533A\u57DF\u8FB9\u754C","map_control_group.sam.zhiNengShiBieGuanBi":"\u5730\u5757\u667A\u80FD\u8BC6\u522B\u529F\u80FD\u5DF2\u5173\u95ED","map_contorl_group.draw.draw":"\u5355\u51FB\u5F00\u59CB\u7ED8\u5236","map_contorl_group.draw.drawContinue":"\u5355\u51FB\u7EE7\u7EED\u7ED8\u5236","map_contorl_group.draw.drawFinish":"\u5355\u51FB\u7EE7\u7EED\u7ED8\u5236\uFF0C\u53CC\u51FB\u7ED3\u675F\u7ED8\u5236","map_contorl_group.draw.pontHover":"\u53EF\u62D6\u62FD\u8C03\u6574\u8282\u70B9\u4F4D\u7F6E","map_contorl_group.draw.midPointHover":"\u5355\u51FB\u5728\u8BE5\u4F4D\u7F6E\u65B0\u589E\u8282\u70B9","map_contorl_group.draw.lineHover":"\u53EF\u62D6\u62FD\u8C03\u6574\u56FE\u5F62\u4F4D\u7F6E"};we.ZP.use(Ie.Z).use(ee.Db).init({fallbackLng:"zh-CN",interpolation:{escapeValue:!1},resources:{"zh-CN":{translation:dt},"en-US":{translation:_t}}});var $e=[{lang:"zh-CN",name:"\u7B80\u4F53\u4E2D\u6587",antd:ve.Z},{lang:"en-US",name:"English",antd:$.Z}],vt=null,bt=o(59400),Z=o.n(bt),w=o(68479),U=o(9361),It,Mt,Dt,Ot,Bt,Ct,wt,Pt,kt,St,Rt,Jt=function(){var a=U.Z.useToken,l=a(),r=l.token,n=r.colorBorder,i=r.colorBgContainer,s=r.colorText;return{mapHeader:(0,w.iv)(It||(It=Z()([` - padding: 0 16px; - height: 50px; - border-bottom: 1px solid `,`; - display: flex; - flex-direction: row; - justify-content: space-between; - align-items: center; - background: `,`; - z-index: 1; - .ant-btn { - border: 0; - } - `])),n,i),mapHeaderLogo:(0,w.iv)(Mt||(Mt=Z()([` - display: flex; - align-items: center; - img { - width: auto; - height: 24px; - margin-right: 4px; - } - `]))),mapHeaderTitle:(0,w.iv)(Dt||(Dt=Z()([` - font-size: 16px; - font-weight: bold; - margin-left: 4px; - margin-right: 16px; - color: `,`; - `])),s),mapHeaderLeft:(0,w.iv)(Ot||(Ot=Z()([` - display: flex; - align-items: center; - `]))),mapHeaderRight:(0,w.iv)(Bt||(Bt=Z()([` - display: flex; - align-items: center; - `]))),locale:(0,w.iv)(Ct||(Ct=Z()([` - font-size: 16px; - `]))),localeIcon:(0,w.iv)(wt||(wt=Z()([` - font-size: 16px; - `]))),upload:(0,w.iv)(Pt||(Pt=Z()([` - height: 200px; - display: flex; - overflow: hidden; - flex-direction: column; - align-items: center; - justify-content: center; - `]))),uploadTitle:(0,w.iv)(kt||(kt=Z()([` - font-size: 14px; - padding: 10px 6px 10px 0; - `]))),theme:(0,w.iv)(St||(St=Z()([` - cursor: pointer; - padding: 0 !important; - width: 32px; - height: 32px; - display: flex; - align-items: center; - justify-content: center; - `]))),themeIcon:(0,w.iv)(Rt||(Rt=Z()([` - font-size: 20px !important; - `])))}},Me=Jt,se=$e.map(function(p){return{key:p.lang,label:p.name}}),fe=function(){var a=(0,ee.$G)(),l=a.i18n,r=(0,N.Og)(),n=r.locale,i=r.setLocale,s=Me(),u=function(c){var x=c.key;l.changeLanguage(x),i(x)};return(0,e.jsx)(De.Z,{menu:{items:se,onClick:u,selectedKeys:[n],selectable:!0},children:(0,e.jsx)(te.ZP,{className:s.locale,icon:(0,e.jsx)(M.BH,{className:s.localeIcon,type:"icon-in"})})})},Le=fe,nt=o(17061),he=o.n(nt),Lt=o(861),Fe=o.n(Lt),Ua=o(17156),at=o.n(Ua),Ka=o(16596),Ye=o(10154),dn=o(39124),$t=o(11568),de=o(31147),Ge=o(78045),Yt=o(56550),cn=o(50599),za=o(13012),pn=o.n(za),Qa=o(15360),Xa=o(54397),ct=o(34041),fn=o(96486),_n=o(41545),Ha=o(89597),$a=o.n(Ha),Gt=o(66749),Ya=o(57460),Va=o.n(Ya),vn=o(84105),hn=function(a){return new Promise(function(l,r){var n=new FileReader;n.readAsText(a),n.onload=function(i){var s,u=(s=i.target)===null||s===void 0?void 0:s.result;l(u)},n.onerror=function(i){r(i)}})},mn=function(a,l,r){var n=JSON.parse(a);return{id:r||(0,Gt.Z)(r),metadata:{name:l},data:n,type:"local"}},qa=function(a,l,r){var n=JSON.parse(a);return M._9.check(n)?mn(a,l,r):{id:r||(0,Gt.Z)(r),metadata:{name:l},data:n,type:"local"}},er=function(){var p=at()(he()().mark(function a(l,r,n){var i,s,u,f,c,x;return he()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return i=l.name,s=i.substring(i.lastIndexOf(".")+1),h.next=4,hn(l);case 4:if(u=h.sent,s!=="json"){h.next=9;break}return h.abrupt("return",qa(u,r,n));case 9:if(s!=="geojson"){h.next=13;break}return h.abrupt("return",mn(u,r,n));case 13:if(s!=="kml"){h.next=21;break}return f=new DOMParser().parseFromString(u,"text/xml"),h.next=17,$a().kml(f,{style:!0});case 17:return c=h.sent,h.abrupt("return",{id:n||(0,Gt.Z)(n),metadata:{name:r},data:c,type:"local"});case 21:if(s!=="wkt"){h.next=24;break}return x=(0,tt.Y)(u),h.abrupt("return",{id:n||(0,Gt.Z)(n),metadata:{name:r},data:x,type:"local"});case 24:case"end":return h.stop()}},a)}));return function(l,r,n){return p.apply(this,arguments)}}(),tr=function(){var p=at()(he()().mark(function a(l,r,n){var i,s;return he()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,hn(l);case 2:return i=f.sent,s=Va().parse(i,{header:!0,skipEmptyLines:!0,dynamicTyping:!0}),f.abrupt("return",{id:n||(0,Gt.Z)(n),metadata:{name:r},data:s.data,type:"local",columns:s.meta.fields});case 5:case"end":return f.stop()}},a)}));return function(l,r,n){return p.apply(this,arguments)}}(),nr=function(a){return new Promise(function(l,r){var n=new FileReader;n.readAsArrayBuffer(a),n.onload=function(i){var s,u=(s=i.target)===null||s===void 0?void 0:s.result;l(u)},n.onerror=function(i){r(i)}})},ar=function(a,l,r){var n;try{var i=(0,vn.ij)(a,{type:"array",cellDates:!0}),s=i.Sheets[i.SheetNames[0]];Object.keys(s).forEach(function(f){var c=s[f];c.t==="d"&&(c.v=c.w)}),n=vn.P6.sheet_to_json(s)}catch(f){throw f}var u=Object.keys(n[0]);return{id:r,metadata:{name:l},data:n,type:"local",columns:u}},rr=function(){var p=at()(he()().mark(function a(l,r,n){var i;return he()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.prev=0,u.next=3,nr(l);case 3:i=u.sent,u.next=9;break;case 6:throw u.prev=6,u.t0=u.catch(0),u.t0;case 9:return u.abrupt("return",ar(i,r,n));case 10:case"end":return u.stop()}},a,null,[[0,6]])}));return function(l,r,n){return p.apply(this,arguments)}}(),Vt=function(a){var l=/^(POINT|LINESTRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON)(\sz)?\s?\(.*\)$/i,r=!1;return typeof a=="string"&&l.test(a)&&(r=!0),r},qt=function(a){try{var l=JSON.parse(a);return M.dw.check(l)}catch(r){return!1}},or=function(){var p=at()(he()().mark(function a(l,r){var n,i,s,u;return he()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(n=l.name,i=n.substring(0,n.lastIndexOf(".")),s=n.substring(n.lastIndexOf(".")+1),c.prev=3,!["geojson","json","kml","wkt"].includes(s)){c.next=10;break}return c.next=7,er(l,i,l.uid);case 7:u=c.sent,c.next=20;break;case 10:if(s!=="csv"){c.next=16;break}return c.next=13,tr(l,i,l.uid);case 13:u=c.sent,c.next=20;break;case 16:if(!["xlsx","xls"].includes(s)){c.next=20;break}return c.next=19,rr(l,i,l.uid);case 19:u=c.sent;case 20:c.next=25;break;case 22:return c.prev=22,c.t0=c.catch(3),c.abrupt("return",Promise.reject(r("utils.upload.wenJianJieXiShi")));case 25:return c.abrupt("return",u);case 26:case"end":return c.stop()}},a,null,[[3,22]])}));return function(l,r){return p.apply(this,arguments)}}(),ir=Xa.Z.Dragger,lr=(0,_.forwardRef)(function(a,l){pn()(a);var r=(0,_.useState)([]),n=g()(r,2),i=n[0],s=n[1],u=(0,_.useState)([]),f=g()(u,2),c=f[0],x=f[1],b=(0,_.useState)([]),h=g()(b,2),m=h[0],E=h[1],O=de.Z.useForm(),A=g()(O,1),P=A[0],j=(0,ee.$G)(),v=j.t,C=Me(),T=function(S){var J=S.file,B=S.onSuccess,F=S.onError;or(J,v).then(function(y){if(console.log(y),y!=null&&y.columns){for(var L=y.data[0],I=void 0,G=0,V=Object.keys(L);G":return l>p.value;case">=":return l>=p.value;default:if(Array.isArray(p.value)){var r=g()(p.value,2),n=r[0],i=r[1];return l>=n&&l<=i}}}function Un(p,a){var l=String(a[p.field]),r=p.value;switch(p.operator){case"NOT_IN":return!(r!=null&&r.includes(l));case"IN":return r==null?void 0:r.includes(l);case"LIKE":return(l==null?void 0:l.indexOf(r))>-1;default:return(l==null?void 0:l.indexOf(r))<=-1}}var Kn=(0,zt.cn)({key:"filterFeature",default:[]});function zn(){var p=(0,N.SS)(),a=p.features,l=(0,N.L0)(),r=l.filters,n=(0,zt.Zl)(Kn),i=(0,zt.sJ)(Kn);return(0,_.useEffect)(function(){if((0,Kt.Z)(r)){n(Fe()(a));return}var s=Fe()(a),u=r.filter(function(x){return!Gn(x)}),f=u.filter(function(x){return x.logic==="and"}),c=u.filter(function(x){return x.logic==="or"});(0,Kt.Z)(c)||(s=s.filter(function(x){var b=x.properties;return c.some(function(h){var m=h.type==="number"?Wn:Un;return m(h,b)})})),(0,Kt.Z)(f)||(s=s.filter(function(x){var b=x.properties;return f.every(function(h){var m=h.type==="number"?Wn:Un;return m(h,b)})})),n(s)},[a,r,n]),{features:i}}function an(p,a){var l=document.createElement("canvas"),r=l.getContext("2d"),n=new Image(a.x,a.y);return n.crossOrigin="Anonymous",n.src="https://mdn.alipayobjects.com/huamei_nsuaz4/afts/img/A*770bQLV21hsAAAAAAAAAAAAADimPAQ/original",new Promise(function(i){n.onload=function(){l.width=n.width,l.height=n.height,r.imageSmoothingEnabled=!0,r.drawImage(n,0,0,n.width,n.height);for(var s=r.getImageData(0,0,l.width,l.height),u=s.data,f=0;f=10){var G=(0,Tt.Z)(r);G.pop(),n(G)}}else x(null)},R=function(B,F){return F.some(function(y){return y.label.toLowerCase().indexOf(B.toLowerCase())>-1})},S=(0,_.useMemo)(function(){if(r.length){var J=r.map(function(B){return{key:B.value,label:(0,e.jsx)("div",{onClick:function(){j(JSON.parse(B.value))},children:B.label})}});return J}else return[{key:"undefined",label:(0,e.jsx)(tn.Z,{})}]},[r]);return(0,_.useEffect)(function(){if(P){var J=P[P.length-1];fetch("https://restapi.amap.com/v3/config/district?keywords=".concat(J,"&subdistrict=0&key=98d10f05a2da96697313a2ce35ebf1a2&extensions=all")).then(function(B){return B.json()}).then(function(B){var F;if(B.status==="1"&&(F=B.districts)!==null&&F!==void 0&&F.length&&s){var y=B.districts[0].center.split(",").map(function(G){return+G}),D=g()(y,2),Q=D[0],L=D[1];s.setZoomAndCenter(9,[Q,L]);var I=[];B.districts.forEach(function(G){G.polyline.split("|").forEach(function(V){I.push(V.split(";").map(function(H){return H.split(",").map(function(le){return+le})}))})}),x((0,pe.multiLineString)(I))}}).catch(function(){Ye.ZP.error(C("administrative_select_control.index.weiLanShuJuQing"))})}},[P]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(ae.br,{position:"lefttop",children:(0,e.jsxs)("div",{style:{display:"flex"},children:[(0,e.jsx)("div",{id:"l7-editor-administrativeSelect",children:(0,e.jsx)(ro.Z,{options:m,value:P,onChange:k,className:a.cascader,allowClear:!0,showSearch:{filter:R},placeholder:C("administrative_select_control.index.keXuanZeShengShi"),changeOnSelect:!0,style:{width:250},popupClassName:a.cascaderPopup,expandTrigger:"hover"})}),(0,e.jsx)(De.Z,{menu:{items:S},placement:"bottomRight",trigger:["click"],children:(0,e.jsx)(ce.Z,{title:C("administrative_select_control.index.xingZhengQuHuaLi"),placement:"right",children:(0,e.jsx)("div",{className:Te()([a.history,"l7-draw-control__btn"]),children:(0,e.jsx)(M.BH,{type:"icon-lishi",className:a.historyIcon})})})})]})}),(0,e.jsx)(ae.Ie,d()({source:{data:(0,pe.featureCollection)(c?[c]:[])}},io))]})},da,ca,pa,fa,_a,va,so=function(){var a=U.Z.useToken,l=a(),r=l.token,n=r.colorBgContainer,i=r.colorBorder,s=r.colorTextDescription,u=r.colorText,f=r.boxShadow,c=r.colorIcon;return{L7EditorControl:(0,w.iv)(da||(da=Z()([` - display: inline-flex; - align-items: center; - justify-content: center; - border-radius: 2px; - width: 28px; - height: 28px; - padding: 0; - text-align: center; - background: `,`; - box-shadow: `,` !important; - border-width: 0; - color: `,`; - outline: 0; - cursor: pointer; - &:hover { - background: `,`; - svg { - color: `,`; - } - } - `])),n,f,c,n,u),l7EditorIcon:(0,w.iv)(ca||(ca=Z()([` - font-size: 16px; - border: none; - cursor: pointer; - color: `,`; - `])),c),zoom:(0,w.iv)(pa||(pa=Z()([` - .l7-button-control { - color: `,`; - font-size: 14px; - background: `,` !important; - border-color: `,`; - - svg { - fill: `,` !important; - } - - &:hover { - svg { - fill: `,` !important; - } - } - } - .l7-button-control:first-child { - border-bottom: 1px solid `,`; - } - `])),s,n,i,s,u,i),scalesControl:(0,w.iv)(fa||(fa=Z()([` - .l7-control-scale-line { - color: `,`; - background: `,` !important; - border-color: `,`; - } - `])),s,n,i),mouseLocatio:(0,w.iv)(_a||(_a=Z()([` - color: `,` !important; - background: `,` !important; - border-color: `,`; - `])),s,n,i),fullScreen:(0,w.iv)(va||(va=Z()([` - color: `,`; - background: `,` !important; - border-color: `,`; - - svg { - fill: `,` !important; - } - - &:hover { - svg { - fill: `,` !important; - } - } - `])),s,n,i,s,u)}},Qt=so,uo=function(){var a=Qt(),l=(0,N.SS)(),r=l.bboxAutoFit,n=(0,ee.$G)(),i=n.t;return(0,e.jsx)(ae.br,{position:"bottomright",children:(0,e.jsx)(ce.Z,{title:i("auto_control.index.ziDongSuoFangZhi"),placement:"left",children:(0,e.jsx)("button",{type:"button",id:"l7-editor-auto",className:a.L7EditorControl,onClick:function(){r()},children:(0,e.jsx)(M.BH,{type:"icon-suofang",className:a.l7EditorIcon})})})})},ha,ma,co=function(){var a=U.Z.useToken,l=a(),r=l.token,n=r.colorBgContainer,i=r.boxShadow,s=r.colorIcon,u=r.colorText;return{clear:(0,w.iv)(ha||(ha=Z()([` - width: 30px; - height: 30px; - line-height: 41px; - text-align: center; - border-radius: 2px; - background-color: `,`; - box-shadow: `,` !important; - cursor: pointer; - color: `,`; - &:hover { - color: `,`; - background: `,`; - } - `])),n,i,s,u,n),clearSvg:(0,w.iv)(ma||(ma=Z()([` - font-size: 24px; - `])))}},po=co,fo=function(){var a=po(),l=(0,N.SS)(),r=l.saveEditorText,n=(0,ee.$G)(),i=n.t;return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(ae.br,{position:"topright",children:(0,e.jsx)(en.Z,{title:i("clear_control.index.queRenQingKongSuo"),onConfirm:function(){r((0,Je.X)({content:{type:"FeatureCollection",features:[]}}))},children:(0,e.jsx)(ce.Z,{title:i("app_header.constants.qingChu"),placement:"bottom",children:(0,e.jsx)("div",{className:a.clear,id:"l7-editor-clear",children:(0,e.jsx)(M.BH,{type:"icon-qingkong",className:a.clearSvg})})})})})})},_o=o(15937),ga,vo=function(){var a=U.Z.useToken,l=a(),r=l.token,n=r.colorBgContainer,i=r.boxShadow,s=r.colorBorder,u=r.colorIcon,f=r.colorText;return{l7DrawControl:(0,w.iv)(ga||(ga=Z()([` - .l7-draw-control { - display: flex; - flex-direction: column; - align-items: center; - margin-right: 0 !important; - box-shadow: `,` !important; - .l7-draw-control__btn { - color: `,`; - background-color: `,`; - border-right: none; - border-bottom: 1px solid `,`; - &:hover { - color: `,`; - } - } - } - `])),i,u,n,s,f)}},ho=vo,mo=function(){var a=Nn(),l=(0,ae.$r)(),r=ho(),n=(0,_.useState)(null),i=g()(n,2),s=i[0],u=i[1],f=(0,N.SS)(),c=f.setIsDraw,x=f.resetFeatures,b=f.features,h=f.revertCoord,m=(0,N.Og)(),E=m.layerColor,O=(0,_.useMemo)(function(){return(0,Tt.Z)(b.find(function(j){return j.properties[M.AQ.IsEdit]}))},[b]);(0,_.useEffect)(function(){var j;if(l){var v;j=new rt.DrawControl(l,{position:"topleft",drawConfig:{point:!0,line:!0,polygon:!0,rect:!0,circle:!0},commonDrawOptions:{maxCount:1,style:(0,ue.C2)(E),helper:a}}),u(j),l.addControl(j),j.on(rt.ControlEvent.DrawChange,function(T){c(!!T)});var C=document.querySelector(".l7-draw-control");C.style.marginTop=0,(v=document.querySelector("#l7-draw-content"))===null||v===void 0||v.appendChild(C)}return function(){j&&l.removeControl(j)}},[l,E]);var A=(0,_.useCallback)(function(j,v){v.properties=mt()({},M.AQ.DrawType,j),s==null||s.clearDrawData(),s==null||s.setActiveType(null);var C=h([v]);x([].concat(Fe()(b),Fe()(C)))},[s,h,x,b]),P=(0,_.useCallback)(function(j,v){var C=v.properties[M.AQ.Index],T=Fe()(b);T[C].properties[M.AQ.IsEdit]=!1,T[C].geometry=v.geometry,s==null||s.clearDrawData(),s==null||s.setActiveType(null);var k=h(T);x(Fe()(k))},[b,s,h,x]);return(0,_.useEffect)(function(){var j=["point","line","polygon","rect","circle"],v=(0,_o.Z)(j.map(function(C){return[C,{onAdd:function(k){return A(C,k)},onEdit:function(k){return P(C,k)}}]}));return j.forEach(function(C){var T=s==null?void 0:s.getTypeDraw(C);T==null||T.on(rt.DrawEvent.Add,v[C].onAdd),T==null||T.on(rt.DrawEvent.Edit,v[C].onEdit)}),function(){j.forEach(function(C){var T=s==null?void 0:s.getTypeDraw(C);T==null||T.off(rt.DrawEvent.Add,v[C].onAdd),T==null||T.off(rt.DrawEvent.Edit,v[C].onEdit)})}},[s,A]),(0,_.useEffect)(function(){if(O&&s){var j,v=(j=O.properties)===null||j===void 0?void 0:j[M.AQ.DrawType];O.properties.isActive=!0,s.setActiveType(v);var C=s.getTypeDraw(v);C==null||C.setData([O])}},[O,s]),(0,e.jsx)(ae.br,{position:"topright",children:(0,e.jsx)("div",{style:{display:"flex"},id:"l7-editor-draw",children:(0,e.jsx)("div",{className:r.l7DrawControl,children:(0,e.jsx)("div",{id:"l7-draw-content"})})})})},go=mo,xo=o(37724),yo=o(14468),bo=o(51042),Co=o(26024),So=o(44230),To=o(53434),jo=function(a){var l=a.name,r=a.index,n=a.form,i=(0,N.L0)(),s=i.setFilters,u=(0,N.SS)(),f=u.dataSource,c=(0,ee.$G)(),x=c.t,b=[{label:">",value:">"},{label:">=",value:">="},{label:"=",value:"="},{label:"<=",value:"<="},{label:"<",value:"<"},{label:x("filter_form_list_control.numberFilter.quJian"),value:"BETWEEN"}];return(0,e.jsxs)("div",{style:{display:"flex"},children:[(0,e.jsx)(de.Z.Item,{name:[l,"operator"],children:(0,e.jsx)(ct.Z,{style:{width:"100px",marginRight:"8px"},placeholder:x("filter_form_list_control.numberFilter.qingXuanZeGuoLu"),options:b,onChange:function(){var m=(0,Tt.Z)(n.getFieldValue("filterFromList"));m.forEach(function(E,O){r===O&&(E.value=void 0)}),n.setFieldValue("filterFromList",m),s(m.map(function(E){var O=JSON.parse(E.field),A=O.field,P=O.type;return d()(d()({},E),{},{field:A,type:P})}))}})}),(0,e.jsx)(de.Z.Item,{style:{width:150,marginBottom:0},shouldUpdate:function(m,E){return m.operator===E.operator},children:function(m){var E,O,A,P=m.getFieldsValue,j=P(),v=j.filterFromList,C=(E=JSON.parse(v[r].field))===null||E===void 0?void 0:E.field,T=f.find(function(B){return(B==null?void 0:B.field)===C});if(v[r].operator==="BETWEEN"){var k,R,S,J;return(0,e.jsxs)("div",{children:[(0,e.jsx)(de.Z.Item,{name:[l,"min"],style:{width:"70px"},children:(0,e.jsx)(Wt.Z,{placeholder:x("filter_form_list_control.numberFilter.qingShuRuShaiXuan"),style:{width:"100%"},min:(k=T==null?void 0:T.min)!==null&&k!==void 0?k:0,max:(R=T==null?void 0:T.max)!==null&&R!==void 0?R:0})}),(0,e.jsx)("span",{children:" - "}),(0,e.jsx)(de.Z.Item,{name:[l,"max"],style:{width:"70px"},children:(0,e.jsx)(Wt.Z,{placeholder:x("filter_form_list_control.numberFilter.qingShuRuShaiXuan"),style:{width:"100%"},min:(S=T==null?void 0:T.min)!==null&&S!==void 0?S:0,max:(J=T==null?void 0:T.max)!==null&&J!==void 0?J:0})})]})}return(0,e.jsx)(de.Z.Item,{name:[l,"value"],children:(0,e.jsx)(Wt.Z,{placeholder:x("filter_form_list_control.numberFilter.qingShuRuShaiXuan"),style:{width:"100%"},min:(O=T==null?void 0:T.min)!==null&&O!==void 0?O:0,max:(A=T==null?void 0:T.max)!==null&&A!==void 0?A:0})})}})]})},Eo=jo,Ao=o(94207),Do=o(85959),Oo=o(29795),Po=function(a){var l=a.name,r=a.index,n=a.form,i=(0,Oo.Z)(),s=i.setFilters,u=(0,Do.Z)(),f=u.dataSource,c=(0,ee.$G)(),x=c.t,b=[{label:x("filter_form_list_control.stringFilter.baoHan"),value:"IN"},{label:x("filter_form_list_control.stringFilter.buBaoHan"),value:"NOT_IN"},{label:x("filter_form_list_control.stringFilter.piPei"),value:"LIKE"},{label:x("filter_form_list_control.stringFilter.buPiPei"),value:"NOT_LIKE"}];return(0,e.jsxs)("div",{style:{display:"flex"},children:[(0,e.jsx)(de.Z.Item,{name:[l,"operator"],style:{width:"100px",marginRight:"8px"},children:(0,e.jsx)(ct.Z,{placeholder:x("filter_form_list_control.numberFilter.qingXuanZeGuoLu"),options:b,onChange:function(){var m=(0,Tt.Z)(n.getFieldValue("filterFromList"));m.forEach(function(E,O){r===O&&(E.value=void 0)}),n.setFieldValue("filterFromList",m),s(m.map(function(E){var O=JSON.parse(E.field),A=O.field,P=O.type;return d()(d()({},E),{},{field:A,type:P})}))}})}),(0,e.jsx)(de.Z.Item,{shouldUpdate:function(m,E){return m.operator!==E.operator},style:{width:150,margin:0},children:function(m){var E,O,A=m.getFieldsValue,P=A(),j=P.filterFromList,v=(E=JSON.parse(j[r].field))===null||E===void 0?void 0:E.field,C=f.find(function(k){return(k==null?void 0:k.field)===v}),T=j[r].operator;return T==="LIKE"||T==="NOT_LIKE"?(0,e.jsx)(de.Z.Item,{name:[l,"value"],children:(0,e.jsx)(ht.Z,{placeholder:x("filter_form_list_control.numberFilter.qingShuRuShaiXuan"),style:{width:"100%"},allowClear:!0})}):(0,e.jsx)(de.Z.Item,{name:[l,"value"],children:(0,e.jsx)(ct.Z,{placeholder:x("filter_form_list_control.stringFilter.qingXuanZeShaiXuan"),style:{width:"100%"},mode:"multiple",maxTagCount:1,children:((O=(0,Ao.Z)(C==null?void 0:C.value))!==null&&O!==void 0?O:[]).filter(function(k){return k!=="undefined"}).map(function(k){return(0,e.jsx)(ct.Z.Option,{value:k,children:(0,e.jsx)(ce.Z,{title:k,children:k})},k)})})})}})]})},Lo=Po,xa,ya,Fo=function(){var a=U.Z.useToken,l=a(),r=l.token,n=r.colorBgContainer,i=r.boxShadow;return{l7FilterPanel:(0,w.iv)(xa||(xa=Z()([` - position: relative; - `]))),l7Filter:(0,w.iv)(ya||(ya=Z()([` - display: flex; - background: `,`; - padding: 16px; - margin-right: 8px; - position: absolute; - right: 35px; - bottom: 0; - box-shadow: `,` !important; - .ant-form-item { - margin-bottom: 0; - } - .ant-btn { - margin-left: px; - } - `])),n,i)}},Zo=Fo,ln=ct.Z.Option,Io=function(){var a=(0,N.SS)(),l=a.dataSource,r=(0,N.L0)(),n=r.setFilters,i=r.filters,s=(0,_.useState)(!1),u=g()(s,2),f=u[0],c=u[1],x=(0,ee.$G)(),b=x.t,h=de.Z.useForm(),m=g()(h,1),E=m[0],O=Zo(),A=Qt(),P=(0,_.useMemo)(function(){return!l.length},[l]),j=function(T,k){if((0,Kt.Z)(k.filterFromList)){n([]);return}var R=k.filterFromList.filter(function(S){return S}).map(function(S){var J=S.logic,B=S.operator;if(S.field){var F=JSON.parse(S.field||""),y=F.field,D=F.type;return S.operator==="BETWEEN"&&S.min&&S.max?{logic:J,field:y,type:D,operator:B,value:[S.min,S.max]}:(S.operator==="IN"||S.operator==="NO_IN")&&S.value?d()(d()({},S),{},{field:y,type:D,value:S.value.length?S.value:void 0}):d()(d()({},S),{},{field:y,type:D})}else return d()(d()({},S),{},{field:void 0,type:void 0})});n(R)},v=(0,_.useMemo)(function(){return i.filter(function(C){return!Gn(C)}).find(function(C){return C})},[i]);return(0,e.jsxs)(ae.br,{position:"bottomright",className:O.l7FilterPanel,style:{display:"flex"},children:[(0,e.jsx)("div",{className:O.l7Filter,style:{display:f?"block":"none"},children:(0,e.jsx)(de.Z,{style:{width:"100%"},form:E,onValuesChange:(0,To.Z)(j,500),children:(0,e.jsx)(de.Z.List,{name:"filterFromList",children:function(T,k){var R=k.add,S=k.remove;return(0,e.jsxs)(e.Fragment,{children:[T.map(function(J,B){var F,y,D=J.name;return(0,e.jsxs)("div",{style:{display:"flex",marginBottom:8},children:[(0,e.jsx)(de.Z.Item,{name:[D,"logic"],initialValue:"and",children:(0,e.jsxs)(ct.Z,{style:{width:70,marginRight:"8px"},children:[(0,e.jsx)(ln,{value:"and",children:b("filter_form_list_control.index.bingQie")}),(0,e.jsx)(ln,{value:"or",children:b("filter_form_list_control.index.huoZhe")})]})}),(0,e.jsx)(de.Z.Item,{name:[D,"field"],initialValue:JSON.stringify({field:(F=l[0])===null||F===void 0?void 0:F.field,type:(y=l[0])===null||y===void 0?void 0:y.type}),children:(0,e.jsx)(ct.Z,{style:{width:130,marginRight:"8px"},placeholder:b("filter_form_list_control.index.qingXuanZeZiDuan"),onChange:function(){var L=(0,Tt.Z)(E.getFieldValue("filterFromList"));L.forEach(function(I,G){B===G&&(I.operator=void 0,I.value=void 0)}),E.setFieldValue("filterFromList",L),n(L.map(function(I){var G=JSON.parse(I.field),V=G.field,H=G.type;return d()(d()({},I),{},{field:V,type:H})}))},children:l.map(function(Q){var L=Q.field,I=Q.type;return(0,e.jsxs)(ln,{value:JSON.stringify({field:L,type:I}),children:[(0,e.jsx)("i",{style:{fontSize:20,marginRight:8,color:"#999"},children:I==="number"?(0,e.jsx)(xo.Z,{}):(0,e.jsx)(yo.Z,{})}),(0,e.jsx)(ce.Z,{title:L,children:L})]},L)})})}),(0,e.jsx)(de.Z.Item,{shouldUpdate:function(L,I){return L.field===I.field},style:{margin:0},children:function(L){var I=L.getFieldsValue,G=I(),V=G.filterFromList;if(V[B].field){var H=JSON.parse(V[B].field),le=H.type;return le==="number"?(0,e.jsx)(Eo,{name:D,index:B,form:E}):(0,e.jsx)(Lo,{name:D,index:B,form:E})}}}),(0,e.jsx)(te.ZP,{type:"text",onClick:function(){S(D),n(E.getFieldValue("filterFromList"))},icon:(0,e.jsx)(bn.Z,{})})]},D)}),(0,e.jsx)(te.ZP,{type:"dashed",disabled:P,onClick:function(){R()},block:!0,icon:(0,e.jsx)(bo.Z,{}),style:{width:500},children:b("filter_form_list_control.index.tianJiaShaiXuanTiao")})]})}})})}),(0,e.jsx)(ce.Z,{title:b("filter_form_list_control.index.shuJuGuoLu"),placement:"left",children:(0,e.jsx)("button",{type:"button",id:"l7-editor-filter",className:A.L7EditorControl,onClick:function(){c(!f)},children:v?(0,e.jsx)(So.Z,{style:{color:"#597ef7"}}):(0,e.jsx)(Co.Z,{style:{lineHeight:"30px"}})})})]})},Mo=Io,Bo=o(87052),ba,wo=function(){var a=U.Z.useToken,l=a(),r=l.token,n=r.boxShadow;return{l7ButtonControl:(0,w.iv)(ba||(ba=Z()([` - min-width: auto; - width: 28px; - height: 28px; - border: none; - box-shadow: `,`; - cursor: pointer; - border-radius: 2px; - .ant-color-picker-color-block { - width: 22px; - height: 22px; - border-radius: 2px; - } - `])),n)}},ko=wo,Ro=function(){var a=(0,N.Og)(),l=a.layerColor,r=a.setLayerColor,n=(0,ee.$G)(),i=n.t,s=ko();return(0,e.jsx)(ae.br,{position:"bottomright",children:(0,e.jsx)(ce.Z,{title:i("layer_color_control.index.tuCengYanSeXuan"),placement:"left",children:(0,e.jsx)("div",{id:"l7-editor-color",children:(0,e.jsx)(Bo.Z,{value:l,className:Te()([s.l7ButtonControl]),onChange:function(f,c){r(c)},format:"rgb",presets:[{label:i("layer_color_control.index.changYongYanSe"),colors:["#F5222D","#FA8C16","#FADB14","#8BBB11","#52C41A","#13A8A8","#1677FF","#2F54EB","#722ED1","#EB2F96"]}]})})})})},Jo=Ro,Ca,Sa,Ta,No=function(){return{locationSearch:(0,w.iv)(Ca||(Ca=Z()([` - min-width: 200px; - `]))),locationSearchName:(0,w.iv)(Sa||(Sa=Z()([` - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - `]))),locationSearchTip:(0,w.iv)(Ta||(Ta=Z()([` - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - color: #818181; - font-size: 12px; - `])))}},Go=No;function Wo(p,a){return"".concat(p,"?").concat(Object.entries(a).map(function(l){var r=g()(l,2),n=r[0],i=r[1];return"".concat(n,"=").concat(window.encodeURIComponent(String(i)))}).join("&"))}var Uo=["searchParams","showDistrict","showAddress","onSearchFinish","onChange"],Ko=ct.Z.Option,ja=function(a){var l=a.searchParams,r=a.showDistrict,n=a.showAddress,i=a.onSearchFinish,s=a.onChange,u=yn()(a,Uo),f=Go(),c=(0,_.useState)([]),x=g()(c,2),b=x[0],h=x[1],m=(0,ee.$G)(),E=m.t;(0,_.useEffect)(function(){i==null||i(b)},[i,b]);var O=(0,on.Z)(function(){var j=at()(he()().mark(function v(C){var T,k,R,S;return he()().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:if(C){B.next=3;break}return h([]),B.abrupt("return");case 3:return R=Wo("https://restapi.amap.com/v3/assistant/inputtips",d()(d()({},l),{},{keywords:[].concat(Fe()(((T=l.keywords)!==null&&T!==void 0?T:"").split("|")),[C]).filter(function(F){return!!F}).join("|")})),B.next=6,fetch(R);case 6:return B.next=8,B.sent.json();case 8:S=B.sent,h(((k=S==null?void 0:S.tips)!==null&&k!==void 0?k:[]).filter(function(F){return F.location&&F.location.length}).map(function(F){var y=F.location.split(","),D=g()(y,2),Q=D[0],L=D[1];return F.longitude=+Q,F.latitude=+L,F}));case 10:case"end":return B.stop()}},v)}));return function(v){return j.apply(this,arguments)}}(),{wait:1e3}),A=O.run,P=(0,_.useCallback)(function(j){var v=j&&b.find(function(C){return C.name===j});s==null||s(j||void 0,v||void 0)},[s,b]);return(0,e.jsx)(ct.Z,d()(d()({className:f.locationSearch,onSearch:A,onChange:P,placeholder:E("location_search_control.location_search.qingShuRuYaoSou"),optionLabelProp:"label"},u),{},{children:b.map(function(j){var v="".concat(r?j.district:"").concat(n?j.address:"");return(0,e.jsxs)(Ko,{value:j.name,label:j.name,children:[(0,e.jsx)("div",{title:j.name,className:f.locationSearchName,children:j.name}),v&&(0,e.jsx)("div",{title:v,className:f.locationSearchTip,children:v})]},j.id)})}))};ja.defaultProps={showSearch:!0,allowClear:!0,filterOption:!1,defaultActiveFirstOption:!1,showAddress:!0,showDistrict:!0};var zo=_.memo(function(){var p=(0,ae.$r)(),a=(0,_.useState)(),l=g()(a,2),r=l[0],n=l[1],i=(0,_.useState)(""),s=g()(i,2),u=s[0],f=s[1],c=(0,N.SS)(),x=c.features,b=c.resetFeatures,h=(0,N.Og)(),m=h.layerColor,E=(0,_.useState)(),O=g()(E,2),A=O[0],P=O[1],j=(0,ee.$G)(),v=j.t,C=(0,_.useCallback)(function(){if(p){var T=p.getCenter(),k=T.lng,R=T.lat;f("".concat(k,",").concat(R))}},[p]);return(0,_.useEffect)(function(){return C(),p==null||p.on("moveend",C),p==null||p.on("zoomend",C),function(){p==null||p.off("moveend",C),p==null||p.off("zoomend",C)}},[p,C]),(0,Jn.Z)(at()(he()().mark(function T(){var k;return he()().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return k=nn()(m).rgb().object(),S.t0=P,S.next=4,an(k,{x:100,y:100});case 4:S.t1=S.sent,(0,S.t0)(S.t1);case 6:case"end":return S.stop()}},T)})),[m]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(ae.br,{position:"lefttop",children:(0,e.jsx)("div",{id:"l7-editor-citySelect",style:{display:"flex"},children:(0,e.jsx)("div",{children:(0,e.jsx)("div",{children:(0,e.jsx)("div",{children:(0,e.jsx)(ja,{getPopupContainer:function(){return document.querySelector(".larkmap")},allowClear:!0,value:r==null?void 0:r.name,searchParams:{key:"98d10f05a2da96697313a2ce35ebf1a2",location:u},onChange:function(k,R){if(R){var S=p.getZoom();p.setZoomAndCenter(S>16?S:16,[R.longitude,R.latitude])}n(R)}})})})})})}),r&&(0,e.jsx)(ae.Jx,{lngLat:{lng:r.longitude,lat:r.latitude},children:(0,e.jsx)(ze.Z,{content:(0,e.jsxs)("div",{children:[(0,e.jsx)(te.ZP,{type:"primary",onClick:function(){var k=r.longitude,R=r.latitude;b([].concat(Fe()(x),[(0,pe.point)([k,R],r)])),n(void 0)},children:v("location_search_control.index.tianJiaZhiShuJu")}),(0,e.jsx)(te.ZP,{danger:!0,style:{marginLeft:8},onClick:function(){n(void 0)},children:v("app_header.constants.qingChu")})]}),children:(0,e.jsx)("img",{style:{width:40,height:40},src:A==null?void 0:A.src})})})]})}),Qo=zo,Ea,Aa,Xo=function(){var a=U.Z.useToken,l=a(),r=l.token,n=r.colorText,i=r.colorBgContainer,s=r.boxShadow,u=r.colorTextDescription;return{mapAdministrative:(0,w.iv)(Ea||(Ea=Z()([` - background: `,`; - color: `,`; - box-shadow: `,`; - `])),i,n,s),regionLocation:(0,w.iv)(Aa||(Aa=Z()([` - background: `,` !important; - color: `,` !important; - padding: 2px 4px !important; - `])),i,u)}},Ho=Xo,$o=function(){var a=Ho();return(0,e.jsx)(ae.br,{className:Te()(["map-administrative-control",a.mapAdministrative]),position:"leftbottom",children:(0,e.jsx)(ae.kp,{searchParams:{key:"98d10f05a2da96697313a2ce35ebf1a2"},className:a.regionLocation})})},Da,Oa,Yo=function(){var a=U.Z.useToken,l=a(),r=l.token,n=r.colorTextDescription,i=r.colorBgContainer,s=r.colorPrimary,u=r.colorBorder,f=r.colorText,c=r.colorBgElevated,x=r.colorFillSecondary;return{mapTheme:(0,w.iv)(Da||(Da=Z()([` - color: `,`; - background: `,` !important; - border-color: `,`; - - svg { - fill: `,` !important; - } - - &:hover { - svg { - fill: `,` !important; - } - } - `])),n,i,u,n,f),mapThemePopper:(0,w.iv)(Oa||(Oa=Z()([` - *::-webkit-scrollbar { - width: 8px; - background-color: `,`; - } - *::-webkit-scrollbar-thumb { - background-color: `,`; - border-radius: 10px; - } - .l7-popper-content { - color: `,`; - background: `,`; - - .l7-select-control-item:hover { - box-shadow: 0 5px 12px 4px rgba(0, 0, 0, 0.09), - 0 3px 6px 0 rgba(0, 0, 0, 0.12), 0 1px 2px -2px rgba(0, 0, 0, 0.16); - } - - .l7-select-control-item { - border: 1px solid `,`; - border-radius: 4px; - } - - .l7-select-control-item-active { - border: 1px solid `,`; - } - } - - &.l7-popper-right .l7-popper-arrow\xA0 { - border-right-color: `,`; - } - - &.l7-popper-left .l7-popper-arrow\xA0 { - border-left-color: `,`; - } - - &.l7-popper-bottom .l7-popper-arrow\xA0 { - border-bottom-color: `,`; - } - - &.l7-popper-top .l7-popper-arrow\xA0 { - border-top-color: `,`; - } - `])),c,x,f,i,u,s,c,c,c,c)}},Vo=Yo,qo=function(){var a=(0,N.Og)(),l=a.setMapOptions,r=Vo();return(0,e.jsx)(ae.w3,{className:Te()([r.mapTheme,"l7-editor-mapTheme"]),popperClassName:r.mapThemePopper,position:"bottomright",onSelectChange:function(i){l(function(s){return d()(d()({},s),{},{style:i})})}})},ei=qo,Pa=o(84567),La,Fa,Za,ti=function(){return{amapInfo:(0,w.iv)(La||(La=Z()([` - margin-top: 10px; - .ant-checkbox-group { - display: flex; - flex-wrap: wrap; - width: 370px; - - .ant-checkbox-wrapper { - position: relative; - margin-left: 8px; - - .ant-checkbox { - position: absolute; - top: 4px; - left: 10px; - } - } - } - `]))),amapInfoItemImage:(0,w.iv)(Fa||(Fa=Z()([` - width: 142px; - height: 80px; - margin-bottom: 8px; - object-fit: cover; - `]))),amapInfoItem:(0,w.iv)(Za||(Za=Z()([` - text-align: center; - margin-bottom: 10px; - `])))}},ni=ti;function ai(){var p=(0,ae.$r)(),a=ni(),l=Qt(),r=(0,N.Og)(),n=r.layerType,i=r.setLayerType,s=(0,ee.$G)(),u=s.t,f=(0,_.useMemo)(function(){return[{label:u("official_layer_control.index.guGeTuCeng"),children:[{type:M.dY.GoogleSatellite,title:u("official_layer_control.index.guGeWeiXingTu"),image:"https://mdn.alipayobjects.com/huamei_rzapb5/afts/img/A*cet9T5Nh9eIAAAAAAAAAAAAADqWCAQ/original",layers:[M.ay]}]},{label:u("official_layer_control.index.gaoDeTuCeng"),children:[{type:M.dY.AmapSatellite,title:u("official_layer_control.index.weiXingTu"),image:"https://mdn.alipayobjects.com/huamei_rzapb5/afts/img/A*cet9T5Nh9eIAAAAAAAAAAAAADqWCAQ/original"},{type:M.dY.AmapRoadNet,title:u("official_layer_control.index.luWangTu"),image:"https://mdn.alipayobjects.com/huamei_rzapb5/afts/img/A*G9RtT7qUxwYAAAAAAAAAAAAADqWCAQ/original"},{type:M.dY.AmapTraffic,title:u("official_layer_control.index.luKuangTu"),image:"https://mdn.alipayobjects.com/huamei_rzapb5/afts/img/A*XTFITYbZaIsAAAAAAAAAAAAADqWCAQ/original"},{type:M.dY.AmapBuildings,title:u("official_layer_control.index.louKuaiTu"),image:"https://mdn.alipayobjects.com/huamei_rzapb5/afts/img/A*hIUgTryh-oAAAAAAAAAAAAAADqWCAQ/original"}]}]},[u]),c=(0,_.useRef)(p.getType()!=="mapbox"?{satellite:new AMap.TileLayer.Satellite,roadNet:new AMap.TileLayer.RoadNet,traffic:new AMap.TileLayer.Traffic,buildings:new AMap.Buildings}:{}),x=function(m){return n==null?void 0:n.includes(m)};(0,_.useEffect)(function(){if(p&&p.getType()!=="mapbox")try{var h=p.map,m=c.current,E=m.roadNet,O=m.satellite,A=m.traffic,P=m.buildings;x("amapSatellite")?h.add(O):h.remove(O),x("RoadNet")?h.add(E):h.remove(E),x("Traffic")?h.add(A):h.remove(A),x("Buildings")?h.add(P):h.remove(P)}catch(j){}},[n,p]);var b=(0,_.useMemo)(function(){var h=[];return f.map(function(m){return m.children}).flat().forEach(function(m){if(n.includes(m.type)){var E;h.push.apply(h,Fe()((E=m==null?void 0:m.layers)!==null&&E!==void 0?E:[]))}}),h},[f,n]);return(0,e.jsxs)(ae.br,{position:"bottomright",children:[(0,e.jsx)(ze.Z,{content:(0,e.jsx)($t.Z,{items:f.map(function(h){return{label:h.label,key:h.label,children:(0,e.jsx)("div",{className:a.amapInfo,children:(0,e.jsx)(Pa.Z.Group,{value:n,onChange:function(E){i(E)},children:h.children.map(function(m){return(0,e.jsx)(Pa.Z,{value:m.type,children:(0,e.jsxs)("div",{className:a.amapInfoItem,children:[(0,e.jsx)("img",{src:m.image,alt:"",className:a.amapInfoItemImage}),(0,e.jsx)("h5",{style:{marginTop:0},children:m.title})]},m.type)},m.type)})})})}})}),trigger:"click",placement:"leftTop",overlayInnerStyle:{width:370,height:p.getType()!=="mapbox"?330:190},children:(0,e.jsx)(ce.Z,{title:u("app_header.constants.guanFangTuCeng"),placement:"left",children:(0,e.jsx)("button",{type:"button",id:"l7-editor-filter",className:l.L7EditorControl,children:(0,e.jsx)(M.BH,{id:"l7-editor-aMap",type:"icon-tuceng",className:l.l7EditorIcon})})})}),b.map(function(h){return(0,e.jsx)(ae.YY,{zIndex:1,source:{data:h,parser:{type:"rasterTile",tileSize:256,zoomOffset:0}}},h)})]})}var Ia=o(31762),ri=o(75081),Ma,oi=function(){return{marker:(0,w.iv)(Ma||(Ma=Z()([` - color: #fff; - background: #ff0000; - font-size: 12px; - padding: 6px; - `])))}},ii=oi,li={shape:"line",size:3,color:"#ff0000",state:{active:!1},style:{opacity:1,lineType:"solid"},zIndex:100,animate:{interval:.6,trailLength:1.5,duration:4}},si=function(){var a=ii(),l=Qt(),r=(0,_.useState)(null),n=g()(r,2),i=n[0],s=n[1],u=(0,N.SS)(),f=u.scene,c=u.features,x=u.resetFeatures,b=u.revertCoord,h=u.bboxAutoFit,m=(0,ae.dN)(),E=(0,_.useState)(!1),O=g()(E,2),A=O[0],P=O[1],j=(0,_.useState)(void 0),v=g()(j,2),C=v[0],T=v[1],k=(0,_.useState)(void 0),R=g()(k,2),S=R[0],J=R[1],B=(0,_.useState)(!1),F=g()(B,2),y=F[0],D=F[1],Q=(0,_.useState)(void 0),L=g()(Q,2),I=L[0],G=L[1],V=(0,_.useState)(void 0),H=g()(V,2),le=H[0],Ce=H[1],ke=(0,_.useState)({data:{type:"FeatureCollection",features:[]}}),We=g()(ke,2),gt=We[0],Re=We[1],it=(0,ee.$G)(),Ve=it.t,jt=(0,_.useCallback)(function(qe){var lt=[qe.lngLat.lng,qe.lngLat.lat];if(le)if((0,pe.booleanPointInPolygon)((0,pe.point)(lt),le)){if(i){var Ue=i.lngLat2ImagePixel(lt),xt=[{x:Ue[0],y:Ue[1],clickType:1}],pt=1;i.predict(xt).then(function(){var q=at()(he()().mark(function W(ne){var je,xe,_e,Qe;return he()().wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return Xe.next=2,i.exportGeoPolygon(ne,pt);case 2:je=Xe.sent,xe=i.exportImageClip(ne),_e={feature:je.features,imageUrl:xe.src},(0,pe.booleanPointInPolygon)((0,pe.point)(lt),_e==null?void 0:_e.feature[0])&&(_e==null?void 0:_e.feature[0].geometry.coordinates[0].length)>4?(Qe=b(_e.feature),x([].concat(Fe()(c),Fe()(Qe)))):Ye.ZP.warning(Ve("map_control_group.sam.tuXingJieXiCuoWu"));case 6:case"end":return Xe.stop()}},W)}));return function(W){return q.apply(this,arguments)}}())}}else Ye.ZP.error(Ve("map_control_group.sam.qingZaiQuYuNei"))},[le,i,b,x,c,Ve]),sn=function(){var qe=at()(he()().mark(function lt(){var Ue,xt,pt,q,W,ne,je,xe,_e,Qe,Ze,Xe,Ft,Et,Zt,yt,et,Xt,At,Nt,un,Wa,Ht;return he()().wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:if(D(!0),Ke.prev=1,!(!C||!i)){Ke.next=4;break}return Ke.abrupt("return");case 4:return xt=C.layer.getSource(),pt=xt==null||(Ue=xt.tileset)===null||Ue===void 0?void 0:Ue.currentTiles,q=1/0,W=1/0,ne=-1/0,je=-1/0,pt==null||pt.forEach(function(ft){q=Math.min(q,ft.x),W=Math.min(W,ft.y),ne=Math.max(ne,ft.x),je=Math.max(je,ft.y)}),xe=Math.ceil(f==null?void 0:f.getZoom()),_e=document.createElement("canvas"),_e.width=(ne-q+1)*256,_e.height=(je-W+1)*256,Qe=_e.getContext("2d"),Ze=i.mapHelper,Xe=[].concat(Fe()(Ze.tileToLngLat(q,je+1,xe)),Fe()(Ze.tileToLngLat(ne+1,W,xe))),pt==null||pt.forEach(function(ft){ft&&(Qe==null||Qe.drawImage(ft.data,(ft.x-q)*256,(ft.y-W)*256,256,256))}),i.setGeoImage(_e.toDataURL(),{extent:Xe,width:_e.width,height:_e.height}),Ft=_e.toDataURL("image/jpeg"),Et=Ft.indexOf(","),Zt=Ft==null?void 0:Ft.substring(Et+1),yt="https://sam.lvisei.icu/api",et=new FormData,et.append("image_path",Zt),Ke.next=28,fetch(yt,{body:et,method:"post"});case 28:return Ke.next=30,Ke.sent.arrayBuffer();case 30:Xt=Ke.sent;try{At=Ze.tileToLngLat(ne+1,W,xe),Nt=Ze.tileToLngLat(q,je+1,xe),un=[Nt[0],At[1]],Wa=[At[0],Nt[1]],Ht=(0,pe.polygon)([[At,un,Nt,Wa,At]]),G(un),Ce(Ht),Re({data:{type:"FeatureCollection",features:[Ht]}}),h([Ht]),i.setEmbedding(Xt),Ye.ZP.success(Ve("map_control_group.sam.jiSuanWanCheng"))}catch(ft){console.log(ft)}Ke.next=38;break;case 34:Ke.prev=34,Ke.t0=Ke.catch(1),Ye.ZP.error(Ve("map_control_group.sam.jiSuanShiBai")),f==null||f.off("click",jt);case 38:return Ke.prev=38,D(!1),Ke.finish(38);case 41:case"end":return Ke.stop()}},lt,null,[[1,34,38,41]])}));return function(){return qe.apply(this,arguments)}}();return(0,_.useEffect)(function(){var qe=new Ia.XU({modelUrl:Ia.AK});qe.initModel().then(function(){s(qe)})},[]),(0,_.useEffect)(function(){if(!(0,Kt.Z)(m)){var qe=m.find(function(Ue){return Ue.type==="rasterLayer"&&[M.ay].includes(Ue.options.source.data)}),lt=m.find(function(Ue){return Ue.id===M.d7.PolygonLayer});J(lt),T(qe)}},[m]),(0,_.useEffect)(function(){return S&&(A?S.on("unclick",jt):(Re({data:{type:"FeatureCollection",features:[]}}),G(void 0),S.off("unclick",jt))),function(){S==null||S.off("unclick",jt)}},[A,f,jt]),(0,_.useEffect)(function(){A&&i&&sn()},[A,i]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(ae.br,{position:"bottomright",children:(0,e.jsx)(ce.Z,{title:Ve("map_control_group.sam.zhiNengXuanZe"),placement:"left",children:(0,e.jsx)(ri.Z,{spinning:y,children:(0,e.jsx)("button",{type:"button",className:l.L7EditorControl,onClick:function(){P(!A),A&&Ye.ZP.success(Ve("map_control_group.sam.zhiNengShiBieGuanBi"))},children:(0,e.jsx)(M.BH,{type:"icon-zhinengshibie",style:{fontSize:20,color:A?"#1677ff":""},className:l.l7EditorIcon})})})})}),I&&(0,e.jsx)(ae.Jx,{lngLat:{lng:I[0],lat:I[1]},anchor:"center",offsets:[54,-16],children:(0,e.jsx)("div",{className:a.marker,children:Ve("map_control_group.sam.ziDongShiBie")})}),(0,e.jsx)(ae.Ie,d()(d()({},li),{},{source:gt}))]})},Ba={drawControl:!0,clearControl:!0,zoomControl:!0,scaleControl:!0,locationSearchControl:!0,mouseLocationControl:!0,filterControl:!0,officialLayerControl:!0,mapThemeControl:!0,geoLocateControl:!0,layerColorControl:!0,autoControl:!0,fullscreenControl:!0,administrativeSelectControl:!0,mapAdministrativeControl:!0,logoControl:!0},ui=function(a){var l=a.mapControl,r=(0,N.Og)(),n=r.baseMap,i=r.layerType,s=Qt(),u=(0,_.useState)(Ba),f=g()(u,2),c=f[0],x=f[1];return(0,_.useEffect)(function(){x(d()(d()({},Ba),l))},[l]),(0,e.jsxs)(e.Fragment,{children:[c.logoControl&&(0,e.jsx)(ae.OB,{position:"leftbottom"}),c.scaleControl&&(0,e.jsx)(ae.jf,{position:"leftbottom",className:s.scalesControl}),c.mouseLocationControl&&(0,e.jsx)(ae.CB,{position:"leftbottom",className:s.mouseLocatio}),c.drawControl&&(0,e.jsx)(go,{}),c.clearControl&&(0,e.jsx)(fo,{}),c.zoomControl&&(0,e.jsx)(ae.Ly,{className:s.zoom,showZoom:!0}),c.mapAdministrativeControl&&(0,e.jsx)($o,{}),c.administrativeSelectControl&&(0,e.jsx)(lo,{}),c.locationSearchControl&&(0,e.jsx)(Qo,{}),c.filterControl&&(0,e.jsx)(Mo,{}),n==="Gaode"&&c.officialLayerControl&&(0,e.jsx)(ai,{}),c.mapThemeControl&&(0,e.jsx)(ei,{}),c.geoLocateControl&&(0,e.jsx)(ae.l_,{position:"topleft",className:s.fullScreen}),c.layerColorControl&&(0,e.jsx)(Jo,{}),c.autoControl&&(0,e.jsx)(uo,{}),c.fullscreenControl&&(0,e.jsx)(ae.ot,{position:"bottomright",className:s.fullScreen}),i.includes(M.dY.GoogleSatellite)&&(0,e.jsx)(si,{})]})},di=o(14313),ci=o(46312),wa,ka,Ra,Ja,Na,pi=function(){var a=U.Z.useToken,l=a(),r=l.token,n=r.colorBgContainer,i=r.boxShadow,s=r.colorBorderSecondary,u=r.colorInfoHover,f=r.colorIcon;return{resizePanel:(0,w.iv)(wa||(wa=Z()([` - width: 100%; - height: calc(100% - 50px); - display: flex; - position: relative; - `]))),resizePanelLeft:(0,w.iv)(ka||(ka=Z()([` - position: absolute; - left: 0; - top: 0; - bottom: 0; - overflow: hidden; - `]))),resizePanelRight:(0,w.iv)(Ra||(Ra=Z()([` - position: relative; - border-left: 1px solid `,`; - box-shadow: `,`; - `])),s,i),resizePanelDragLine:(0,w.iv)(Ja||(Ja=Z()([` - transition: all 0.5s; - cursor: move !important; - z-index: 100; - - &:hover, - &:focus { - background-color: `,`; - } - `])),u),resizePanelToggleBtn:(0,w.iv)(Na||(Na=Z()([` - height: 60px; - width: 20px; - display: flex; - align-items: center; - justify-content: center; - background: `,`; - position: absolute; - top: calc(50% - 30px); - left: -20px; - border-top-left-radius: 4px; - border-bottom-left-radius: 4px; - cursor: pointer; - z-index: 2; - .anticon { - transition: all 0.2s; - } - color: `,`; - `])),n,f)}},fi=pi,_i=function(a){var l,r=a.left,n=a.right,i=a.onFeatureChange,s=(0,N.Og)(),u=s.hideEditor,f=s.setHideEditor,c=s.rightPanelWidth,x=s.setRightWidth,b=(0,_.useState)(null),h=g()(b,2),m=h[0],E=h[1],O=g()(M.yc,2),A=O[0],P=O[1],j=(l=(0,Sn.Z)(m))!==null&&l!==void 0?l:{},v=j.width,C=v===void 0?0:v,T=(0,N.SS)(),k=T.features,R=fi(),S=function(F){var y,D=(y=m==null?void 0:m.getBoundingClientRect())!==null&&y!==void 0?y:{},Q=D.left,L=Q===void 0?0:Q,I=100*(1-(F.clientX-L)/C);IP&&(I=P),x(I)},J=(0,_.useMemo)(function(){return u?0:c},[u,c]);return(0,_.useEffect)(function(){i(k)},[k]),(0,e.jsxs)("div",{className:Te()([R.resizePanel,"l7-editor-content"]),ref:function(F){E(F)},children:[(0,e.jsx)("div",{className:Te()([R.resizePanelLeft,"l7-editor-content__left"]),style:{width:"".concat(100-J,"%")},children:r}),(0,e.jsxs)(ci.e,{enable:{left:!0},style:{marginLeft:"".concat(100-J,"%")},size:{width:"".concat(J,"%"),height:"100%"},minWidth:"".concat(A/100*C,"px"),maxWidth:"".concat(P/100*C,"px"),className:Te()([R.resizePanelRight,"l7-editor-content__right"]),handleClasses:{left:R.resizePanelDragLine},handleStyles:{left:{width:6,left:-3}},defaultSize:{width:"".concat(J,"%"),height:"100%"},onResize:S,children:[n,(0,e.jsx)("div",{className:R.resizePanelToggleBtn,onClick:function(){f(!u)},children:(0,e.jsx)(di.Z,{style:{transform:u?"rotate(-180deg)":void 0}})})]})]})},vi=o(29905),ot=o(22950),hi=o(77598),mi=o(94740),gi=function(){var a=(0,N.SS)(),l=a.transformCoord,r=zn(),n=r.features,i=(0,N.Og)(),s=i.layerColor,u=(0,_.useMemo)(function(){return{zIndex:101,field:"name",style:{fill:"".concat(s),opacity:1,fontSize:18,stroke:"#fff",strokeWidth:2,textAllowOverlap:!0,padding:[10,10],textOffset:[0,-18]}}},[s]),f=(0,_.useMemo)(function(){var c=l(n).map(function(b){var h;return{data:(0,pe.center)(b),featureIndex:(h=b.properties)===null||h===void 0?void 0:h[M.AQ.Index]}}),x=c.map(function(b){return{x:b.data.geometry.coordinates[0],y:b.data.geometry.coordinates[1],name:"".concat(b.featureIndex+1)}});return x},[l,n]);return(0,e.jsx)(ae.AB,d()(d()({},u),{},{source:{data:f,parser:{type:"json",x:"x",y:"y"}}}))},Ga,xi=function(){return{l7Editor:(0,w.iv)(Ga||(Ga=Z()([` - width: 100%; - height: 100%; - position: relative; - overflow: hidden; - `])))}},yi=xi,bi=function(a){var l=a.onFeatureChange,r=(0,ee.$G)(),n=r.i18n,i=(0,N.Og)(),s=i.theme,u=i.mapOptions,f=i.setMapOptions,c=i.showIndex,x=i.locale,b=yi();(0,hi.Z)(function(){f(s==="dark"?d()(d()({},u),{},{style:"dark"}):d()(d()({},u),{},{style:"light"}))},[s]),(0,_.useEffect)(function(){n.changeLanguage(x)},[]);var h=(0,_.useMemo)(function(){var m;return(m=$e.find(function(E){return E.lang===x}))===null||m===void 0?void 0:m.antd},[x]);return(0,e.jsx)(mi.ZP,{locale:h,theme:{algorithm:s==="dark"?U.Z.darkAlgorithm:U.Z.defaultAlgorithm},children:(0,e.jsxs)("div",{className:Te()([b.l7Editor,"l7-editor"]),id:"l7-editor",children:[(0,e.jsx)(vr,{toolbar:a.toolbar}),(0,e.jsx)(_i,{onFeatureChange:function(E){l&&l(E)},left:(0,e.jsxs)(xr,{children:[(0,e.jsx)(ui,{mapControl:a.mapControl}),c&&(0,e.jsx)(gi,{}),(0,e.jsx)(Nr,{}),(0,e.jsx)(Qr,{}),(0,e.jsx)(kr,{})]}),right:(0,e.jsx)(to,{tabItems:a==null?void 0:a.tabItems,features:a==null?void 0:a.features})})]})})};zt.zl.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=!1;var Ci=function(a){var l=(0,ee.$G)(),r=l.t,n=(0,_.useMemo)(function(){return!/Mobi|Android|iPhone/i.test(navigator.userAgent)},[]),i=(0,_.useMemo)(function(){return function(s){var u,f,c,x,b,h,m,E,O,A,P,j=s.set;j(ot.EB,(u=a==null?void 0:a.baseMap)!==null&&u!==void 0?u:"Gaode"),j(ot.dR,(f=a==null?void 0:a.primaryColor)!==null&&f!==void 0?f:M.K6),j(ot.Do,(c=a==null?void 0:a.rightPanelWidth)!==null&&c!==void 0?c:40),j(ot.aQ,(x=a==null?void 0:a.mapOption)!==null&&x!==void 0?x:{style:"normal",maxZoom:24}),j(ot.E1,!(a!=null&&a.autoFitBounds)),j(ot.xZ,(b=a==null?void 0:a.popupTrigger)!==null&&b!==void 0?b:"click"),j(ot.Uv,(h=a==null?void 0:a.activeTab)!==null&&h!==void 0?h:"geojson"),j(ot.DJ,(m=a==null?void 0:a.officialLayers)!==null&&m!==void 0?m:[]),j(ot.bK,(E=a==null?void 0:a.hidePanel)!==null&&E!==void 0?E:!1),j(ot.XG,(O=a==null?void 0:a.theme)!==null&&O!==void 0?O:"light"),j(ot.PY,(A=a==null?void 0:a.coordConvert)!==null&&A!==void 0?A:"GCJ02"),j(ot.GR,(P=a==null?void 0:a.locale)!==null&&P!==void 0?P:"zh-CN")}},[a]);return n?(0,e.jsx)(zt.Wh,{initializeState:i,children:(0,e.jsx)(bi,d()({},a))}):(0,e.jsx)(vi.ZP,{status:"404",title:r("pages.index.qingYongPCDuan")})}},22950:function(Be,re,o){"use strict";o.d(re,{DJ:function(){return _},Do:function(){return ce},E1:function(){return ze},EB:function(){return st},GR:function(){return pe},LY:function(){return g},PY:function(){return ee},Qn:function(){return Se},Rl:function(){return me},UW:function(){return ut},Uv:function(){return Te},XG:function(){return M},aD:function(){return Ee},aQ:function(){return te},bK:function(){return z},bo:function(){return Ae},dR:function(){return De},tJ:function(){return ye},xZ:function(){return Oe},zl:function(){return N}});var X=o(4480),d=o(55375),K=function(ge){return function(ue){var Je=ue.setSelf,tt=ue.onSet,e=localStorage.getItem(ge);e&&Je(JSON.parse(e)),tt(function(He){He instanceof X.nY?localStorage.removeItem(ge):localStorage.setItem(ge,JSON.stringify(He))})}},g=(0,X.cn)({key:"filter",default:[],dangerouslyAllowMutability:!0}),Ee=(0,X.cn)({key:"isDraw",default:!1}),ye=(0,X.cn)({key:"savedText",default:""}),me=(0,X.cn)({key:"features",default:[],dangerouslyAllowMutability:!0}),Se=(0,X.cn)({key:"scene",default:null,dangerouslyAllowMutability:!0}),Ae=(0,X.cn)({key:"editorText",default:JSON.stringify({type:"FeatureCollection",features:[]},null,2),effects:[K(d.Fe.EditorText)]}),oe=(0,X.cn)({key:"lnglatType"}),be=(0,X.cn)({key:"lnglatText",default:""}),ce=(0,X.cn)({key:"rightPanelWidth",effects:[K(d.Fe.RightPanelWidth)]}),te=(0,X.cn)({key:"mapOptions",effects:[K(d.Fe.MapOptions)]}),De=(0,X.cn)({key:"layerColor",effects:[K(d.Fe.LayerColor)]}),z=(0,X.cn)({key:"hideEditor",default:!1,effects:[K(d.Fe.HideEditor)]}),ze=(0,X.cn)({key:"autoFitBounds",effects:[K(d.Fe.AutoFitBounds)]}),Oe=(0,X.cn)({key:"popupTrigger",effects:[K(d.Fe.PopupTrigger)]}),st=(0,X.cn)({key:"baseMap",effects:[K(d.Fe.BaseMap)]}),Te=(0,X.cn)({key:"activeTab",default:"geojson",effects:[K(d.Fe.ActiveRightTabKey)]}),_=(0,X.cn)({key:"layerType",default:[],effects:[K(d.Fe.officialLayers)]}),ee=(0,X.cn)({key:"coordConvert",default:"GCJ02",effects:[K(d.Fe.Convert)]}),M=(0,X.cn)({key:"theme",default:"light",effects:[K(d.Fe.theme)]}),N=(0,X.cn)({key:"cityHistory",default:[],effects:[K(d.Fe.cityHistory)]}),ut=(0,X.cn)({key:"showIndex",default:!0,effects:[K(d.Fe.showIndex)]}),pe=(0,X.cn)({key:"locale",default:"zh-CN",effects:[K(d.Fe.locale)]})},85959:function(Be,re,o){"use strict";o.d(re,{Z:function(){return pe}});var X=o(861),d=o.n(X),K=o(18698),g=o.n(K),Ee=o(38416),ye=o.n(Ee),me=o(42122),Se=o.n(me),Ae=o(27424),oe=o.n(Ae),be=o(24928),ce=o(10154),te=o(68652),De=o(16805),z=o(3729),ze=o(90783),Oe=o(67294),st=o(67421),Te=o(4480),_=o(55375),ee=o(20929),M=o(12510),N=o(22950),ut=o(57874);function pe(){var Ne=(0,ut.Z)(),ge=Ne.baseMap,ue=Ne.coordConvert,Je=(0,Te.FV)(N.bo),tt=oe()(Je,2),e=tt[0],He=tt[1],Pe=(0,Te.FV)(N.tJ),Y=oe()(Pe,2),ie=Y[0],$=Y[1],ve=(0,Te.FV)(N.Rl),we=oe()(ve,2),Ie=we[0],_t=we[1],dt=(0,Te.FV)(N.aD),$e=oe()(dt,2),vt=$e[0],bt=$e[1],Z=(0,Te.FV)(N.Qn),w=oe()(Z,2),U=w[0],It=w[1],Mt=(0,st.$G)(),Dt=Mt.t,Ot=(0,Oe.useMemo)(function(){return e!==ie},[e,ie]),Bt=(0,Oe.useMemo)(function(){return(0,be.featureCollection)(Ie)},[Ie]),Ct=function(se){_t((0,te.Z)(se).map(function(fe,Le){var nt;return fe.properties=Se()(Se()({},fe.properties),{},ye()({},_.AQ.Index,Le)),(nt=fe.properties)!==null&&nt!==void 0&&nt[_.AQ.DrawType]||(fe.properties[_.AQ.DrawType]=function(){var he=(0,be.getType)(fe);return/Point/.test(he)?"point":/LineString/.test(he)?"line":"polygon"}()),fe}))},wt=function(se){var fe=JSON.stringify({type:"FeatureCollection",features:[]},null,2),Le=[];if(e||se)try{Le=(0,ee.mr)(se!=null?se:e,Dt),se&&He(se),$(se!=null?se:e),Ct(Le)}catch(nt){ce.ZP.warning(Dt("recoil.feature.shuJuJiaZaiYou"))}else He(fe),$(fe);return Le},Pt=function(se){var fe=(0,M.X)({content:(0,be.featureCollection)(se)});He(fe),$(fe),Ct(se)},kt=(0,Oe.useMemo)(function(){var Me=Ie.map(function(fe,Le){var nt=fe.properties;return Se()({__index:Le+1},nt)}),se=[];return Array.from(new Set((0,De.Z)(Ie.map(function(fe){var Le=fe.properties;return Object.keys(Le)})))).forEach(function(fe){var Le=g()(Me[0][fe]);if(Le==="string"||Le==="boolean"){var nt=Me.map(function(Lt){return String(Lt[fe])});se.push({type:"string",field:fe,value:nt})}else if(Le==="number"){var he=Me.map(function(Lt){return Lt[fe]});se.push({type:Le,field:fe,min:(0,z.Z)(he),max:(0,ze.Z)(he)})}}),se},[Ie]),St=(0,Oe.useCallback)(function(Me){var se=d()(Me);return ue==="WGS84"&&ge==="Gaode"?se=se.map(function(fe){return(0,ee.IQ)((0,te.Z)(fe))}):ue==="GCJ02"&&ge==="Mapbox"&&(se=se.map(function(fe){return(0,ee.Jk)((0,te.Z)(fe))})),se},[ge,ue]),Rt=(0,Oe.useCallback)(function(Me){var se=d()(Me);return ue==="WGS84"&&ge==="Gaode"?se=se.map(function(fe){return(0,ee.Jk)((0,te.Z)(fe))}):ue==="GCJ02"&&ge==="Mapbox"&&(se=se.map(function(fe){return(0,ee.IQ)((0,te.Z)(fe))})),se},[ge,ue]),Jt=(0,Oe.useCallback)(function(Me){var se=Me!=null?Me:Ie;if(U&&se.length){var fe=(0,be.bbox)((0,be.featureCollection)(St(se))),Le=oe()(fe,4),nt=Le[0],he=Le[1],Lt=Le[2],Fe=Le[3];U.fitBounds([[nt,he],[Lt,Fe]])}},[Ie,U,St]);return{editorText:e,setEditorText:He,savedText:ie,setSavedText:$,features:Ie,setFeatures:Ct,savable:Ot,saveEditorText:wt,resetFeatures:Pt,dataSource:kt,bboxAutoFit:Jt,setIsDraw:bt,isDraw:vt,scene:U,setScene:It,fc:Bt,transformCoord:St,revertCoord:Rt}}},29795:function(Be,re,o){"use strict";o.d(re,{Z:function(){return Ee}});var X=o(27424),d=o.n(X),K=o(4480),g=o(22950);function Ee(){var ye=(0,K.FV)(g.LY),me=d()(ye,2),Se=me[0],Ae=me[1];return{filters:Se,setFilters:Ae}}},57874:function(Be,re,o){"use strict";o.d(re,{Z:function(){return Ee}});var X=o(27424),d=o.n(X),K=o(4480),g=o(22950);function Ee(){var ye=(0,K.FV)(g.Do),me=d()(ye,2),Se=me[0],Ae=me[1],oe=(0,K.FV)(g.aQ),be=d()(oe,2),ce=be[0],te=be[1],De=(0,K.FV)(g.dR),z=d()(De,2),ze=z[0],Oe=z[1],st=(0,K.FV)(g.bK),Te=d()(st,2),_=Te[0],ee=Te[1],M=(0,K.FV)(g.E1),N=d()(M,2),ut=N[0],pe=N[1],Ne=(0,K.FV)(g.xZ),ge=d()(Ne,2),ue=ge[0],Je=ge[1],tt=(0,K.FV)(g.EB),e=d()(tt,2),He=e[0],Pe=e[1],Y=(0,K.FV)(g.Uv),ie=d()(Y,2),$=ie[0],ve=ie[1],we=(0,K.FV)(g.DJ),Ie=d()(we,2),_t=Ie[0],dt=Ie[1],$e=(0,K.FV)(g.PY),vt=d()($e,2),bt=vt[0],Z=vt[1],w=(0,K.FV)(g.XG),U=d()(w,2),It=U[0],Mt=U[1],Dt=(0,K.FV)(g.zl),Ot=d()(Dt,2),Bt=Ot[0],Ct=Ot[1],wt=(0,K.FV)(g.UW),Pt=d()(wt,2),kt=Pt[0],St=Pt[1],Rt=(0,K.FV)(g.GR),Jt=d()(Rt,2),Me=Jt[0],se=Jt[1];return{rightPanelWidth:Se,setRightWidth:Ae,mapOptions:ce,setMapOptions:te,layerColor:ze,setLayerColor:Oe,hideEditor:_,setHideEditor:ee,popupTrigger:ue,setPopupTrigger:Je,baseMap:He,setBaseMap:Pe,autoFitBounds:ut,setAutoFitBounds:pe,activeTab:$,setActiveTab:ve,layerType:_t,setLayerType:dt,coordConvert:bt,setCoordConvert:Z,theme:It,setTheme:Mt,cityHistory:Bt,setCityHistory:Ct,showIndex:kt,setShowIndex:St,locale:Me,setLocale:se}}},32865:function(Be,re,o){"use strict";o.d(re,{SS:function(){return X.Z},L0:function(){return d.Z},Og:function(){return K.Z}});var X=o(85959),d=o(29795),K=o(57874),g=o(861),Ee=o(27424),ye=o(24928),me=o(67421),Se=o(4480),Ae=o(55375),oe=o(22950);function be(){var ce=useRecoilState(lnglatTypeState),te=_slicedToArray(ce,2),De=te[0],z=te[1],ze=useTranslation(),Oe=ze.t,st=useRecoilState(lnglatTextState),Te=_slicedToArray(st,2),_=Te[0],ee=Te[1],M=function(ut){var pe=ut.split(` -`).filter(function(ge){return ge}).map(function(ge){return ge.split(";").filter(function(ue){return ue}).map(function(ue){return ue.split(",").filter(function(Je){return Je}).map(function(Je){return+Je})})});if(LngLatVT.check(pe)){var Ne=[];return De==="Point"?Ne.push.apply(Ne,_toConsumableArray(pe.flat().map(function(ge){return point(ge)}))):De==="LingString"?Ne.push.apply(Ne,_toConsumableArray(pe.map(function(ge){return lineString(ge)}))):Ne.push.apply(Ne,_toConsumableArray(pe.map(function(ge){return isEqual(first(ge),last(ge))||ge.push(ge[0]),polygon([ge])}))),Ne}else throw new Error(Oe("import_btn.lnglat_import_btn.lNGLA"))};return{lngLatImportType:De,setLngLatImportType:z,lngLatText:_,setLngLatText:ee,importLngLatText:M}}},20929:function(Be,re,o){"use strict";o.d(re,{fC:function(){return M},fN:function(){return ze.f},Qp:function(){return N},Yt:function(){return ze.Y},Di:function(){return ge},Jk:function(){return Te},C2:function(){return Ne},oO:function(){return ue},bo:function(){return Je},gw:function(){return e},tI:function(){return tt},Ep:function(){return He},mr:function(){return ut},IQ:function(){return st}});var X=o(17061),d=o.n(X),K=o(17156),g=o.n(K),Ee=o(42122),ye=o.n(Ee),me=o(67135),Se=o(89597),Ae=o.n(Se),oe=o(24928),be=o(10154),ce=o(27484),te=o.n(ce),De=o(49360),z=o(55375),ze=o(42649),Oe=o(80520),st=function(Y){return Y.geometry.type.match(/polygon/i)&&(Y.geometry=JSON.parse(JSON.stringify(Y.geometry))),Oe.Z.transform(Y,Oe.Z.WGS84,Oe.Z.GCJ02)},Te=function(Y){return Y.geometry.type.match(/polygon/i)&&(Y.geometry=JSON.parse(JSON.stringify(Y.geometry))),Oe.Z.transform(Y,Oe.Z.GCJ02,Oe.Z.WGS84)},_=o(861),ee=o.n(_);function M(Pe){var Y=(0,oe.coordAll)(Pe).map(function(ie){return ie.join(",")}).join(";");return Y}function N(Pe){var Y=Pe.split(` -`).filter(function($){return $}).map(function($){return $.split(";").filter(function(ve){return ve}).map(function(ve){return ve.split(",").filter(function(we){return we}).map(function(we){return+we})})});if(z.eG.check(Y)){var ie=[];return ie.push.apply(ie,ee()(Y.flat().map(function($){return(0,oe.point)($)}))),ie}}var ut=function(Y,ie){var $=JSON.parse(Y);if(z._9.check($))return $.features;if(Array.isArray($))return z.Iz.check($)?$:z.xQ.check($)?$.map(function(ve){return(0,oe.feature)(ve)}):(console.warn(ie("utils.transform.weiShiBieJS")),[]);if(z.u9.check($))return[$];if(z.dw.check($))return[(0,oe.feature)($)]},pe=function(Y,ie){var $=Color(Y).fade(ie);return"rgba(".concat($.array().join(", "),")")},Ne=function(Y){var ie=(0,me.getSingleColorStyle)(Y);return Object.keys(ie).forEach(function($){ie[$].options=ye()(ye()({},ie[$].options),{},{zIndex:z.QF})}),ie},ge=function(Y,ie){var $=document.createElement("a");$.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(Y)),$.setAttribute("download","".concat(te()().format("YYYY-MM-DD"),".").concat(ie)),$.style.display="none",document.body.appendChild($),$.click()},ue=function(Y){var ie=new URLSearchParams(window.location.search);return ie.get(Y)},Je=function(){var Pe=g()(d()().mark(function Y(ie){var $,ve,we,Ie,_t,dt,$e,vt,bt,Z=arguments;return d()().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return $=Z.length>1&&Z[1]!==void 0?Z[1]:"GeoJSON",ve=Z.length>2?Z[2]:void 0,U.next=4,fetch(ie);case 4:if(we=U.sent,$!=="GeoJSON"){U.next=18;break}return U.prev=6,U.next=9,we.json();case 9:return Ie=U.sent,U.abrupt("return",Ie);case 13:throw U.prev=13,U.t0=U.catch(6),new Error(ve("utils.index.qingJianChaUR"));case 16:U.next=43;break;case 18:if($!=="WKT"){U.next=30;break}return U.next=21,we.text();case 21:if(_t=U.sent,dt=(0,ze.Y)(_t),!z._9.check(dt)){U.next=27;break}return U.abrupt("return",dt);case 27:be.ZP.error(ve("utils.index.qingJianChaUR"));case 28:U.next=43;break;case 30:if($!=="KML"){U.next=43;break}return U.next=33,we.text();case 33:if($e=U.sent,vt=new DOMParser().parseFromString($e,"text/xml"),!(vt.getElementsByTagName("parsererror").length>0)){U.next=39;break}be.ZP.error(ve("utils.index.qingJianChaUR")),U.next=43;break;case 39:return U.next=41,Ae().kml(vt,{style:!0});case 41:return bt=U.sent,U.abrupt("return",bt);case 43:case"end":return U.stop()}},Y,null,[[6,13]])}));return function(ie){return Pe.apply(this,arguments)}}(),tt=function(Y){return!(0,De.Z)(Y)&&Y instanceof Promise},e=function(Y){var ie,$=(ie=Y.properties)===null||ie===void 0?void 0:ie[z.AQ.DrawType];if($==="circle")return!0;var ve=(0,oe.center)(Y).geometry.coordinates,we=(0,oe.coordAll)(Y).map(function(Ie){return Math.round((0,oe.distance)(Ie,ve,{units:"meters"}))});return Array.from(new Set(we)).length===1},He=function(Y){var ie,$=(ie=Y.properties)===null||ie===void 0?void 0:ie[z.AQ.DrawType];if($==="rect")return!0;var ve=(0,oe.coordAll)(Y);if(ve.length!==5)return!1;var we=(0,oe.distance)(ve[0],ve[1],{units:"meters"}).toFixed(0),Ie=(0,oe.distance)(ve[1],ve[2],{units:"meters"}).toFixed(0),_t=(0,oe.distance)(ve[2],ve[3],{units:"meters"}).toFixed(0),dt=(0,oe.distance)(ve[3],ve[4],{units:"meters"}).toFixed(0);if(we===_t&&Ie===dt){var $e=Math.round((0,oe.bearing)(ve[0],ve[3])-(0,oe.bearing)(ve[0],ve[1]));return $e===90||$e===270}return!1}},12510:function(Be,re,o){"use strict";o.d(re,{X:function(){return Ee}});var X=o(73945),d=o.n(X),K=o(28182),g=o.n(K);function Ee(ye){var me=ye.content,Se=ye.parser,Ae=Se===void 0?"json":Se,oe=me;typeof me!="string"&&(oe=JSON.stringify(me,null,2));var be=d().format(oe,{parser:Ae==="json"?Ae:"babel",plugins:[g()]});return be}},42649:function(Be,re,o){"use strict";o.d(re,{Y:function(){return Ee},f:function(){return g}});var X=o(24928),d=o(41545),K=o.n(d);function g(ye){return ye.features.map(function(me){return(0,d.stringify)(me.geometry)}).join(";").replaceAll(" (","(").replaceAll(", ",",")}function Ee(ye){var me=(0,X.featureCollection)([]);return ye.split(/[;\n]/g).forEach(function(Se){if(Se){var Ae=(0,d.parse)(Se);Ae&&me.features.push((0,X.feature)(Ae,{}))}}),me}},20067:function(){}}]); diff --git a/706.775ef964.async.js b/706.775ef964.async.js new file mode 100644 index 0000000..44f7429 --- /dev/null +++ b/706.775ef964.async.js @@ -0,0 +1,18 @@ +"use strict";(self.webpackChunk_antv_l7_editor=self.webpackChunk_antv_l7_editor||[]).push([[706],{5090:function(Xe,me,b){b.d(me,{Z:function(){return we}});var ce=b(74710),L=`accept acceptCharset accessKey action allowFullScreen allowTransparency + alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge + charSet checked classID className colSpan cols content contentEditable contextMenu + controls coords crossOrigin data dateTime default defer dir disabled download draggable + encType form formAction formEncType formMethod formNoValidate formTarget frameBorder + headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity + is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media + mediaGroup method min minLength multiple muted name noValidate nonce open + optimum pattern placeholder poster preload radioGroup readOnly rel required + reversed role rowSpan rows sandbox scope scoped scrolling seamless selected + shape size sizes span spellCheck src srcDoc srcLang srcSet start step style + summary tabIndex target title type useMap value width wmode wrap`,ge=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown + onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick + onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown + onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel + onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough + onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata + onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,C="".concat(L," ").concat(ge).split(/[\s\n]+/),H="aria-",ze="data-";function t(fe,Y){return fe.indexOf(Y)===0}function we(fe){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,U;Y===!1?U={aria:!0,data:!0,attr:!0}:Y===!0?U={aria:!0}:U=(0,ce.Z)({},Y);var Se={};return Object.keys(fe).forEach(function(Q){(U.aria&&(Q==="role"||t(Q,H))||U.data&&t(Q,ze)||U.attr&&C.includes(Q))&&(Se[Q]=fe[Q])}),Se}},65342:function(Xe,me,b){b.d(me,{Z:function(){return Ot}});var ce=b(26508),L=b(74710),ge=b(91002),C=b(39718),H=b(80268),ze=b(52528),t=b(77617),we=b(79161),fe=b(12124),Y=b.n(fe),U=b(28647),Se=t.forwardRef(function(e,s){var n=e.height,o=e.offsetY,h=e.offsetX,r=e.children,c=e.prefixCls,v=e.onInnerResize,S=e.innerProps,E=e.rtl,m=e.extra,a={},f={display:"flex",flexDirection:"column"};if(o!==void 0){var l;a={height:n,position:"relative",overflow:"hidden"},f=(0,L.Z)((0,L.Z)({},f),{},(l={transform:"translateY(".concat(o,"px)")},(0,H.Z)(l,E?"marginRight":"marginLeft",-h),(0,H.Z)(l,"position","absolute"),(0,H.Z)(l,"left",0),(0,H.Z)(l,"right",0),(0,H.Z)(l,"top",0),l))}return t.createElement("div",{style:a},t.createElement(U.Z,{onResize:function(g){var d=g.offsetHeight;d&&v&&v()}},t.createElement("div",(0,ce.Z)({style:f,className:Y()((0,H.Z)({},"".concat(c,"-holder-inner"),c)),ref:s},S),r,m)))});Se.displayName="Filler";var Q=Se,X=b(28637);function Be(e,s){var n="touches"in e?e.touches[0]:e;return n[s?"pageX":"pageY"]}var ct=t.forwardRef(function(e,s){var n,o=e.prefixCls,h=e.rtl,r=e.scrollOffset,c=e.scrollRange,v=e.onStartMove,S=e.onStopMove,E=e.onScroll,m=e.horizontal,a=e.spinSize,f=e.containerSize,l=e.style,R=e.thumbStyle,g=t.useState(!1),d=(0,C.Z)(g,2),M=d[0],y=d[1],O=t.useState(null),z=(0,C.Z)(O,2),F=z[0],B=z[1],Z=t.useState(null),G=(0,C.Z)(Z,2),I=G[0],$=G[1],N=!h,re=t.useRef(),x=t.useRef(),k=t.useState(!1),ae=(0,C.Z)(k,2),oe=ae[0],q=ae[1],_=t.useRef(),V=function(){clearTimeout(_.current),q(!0),_.current=setTimeout(function(){q(!1)},3e3)},le=c-f||0,ve=f-a||0,ie=le>0,K=t.useMemo(function(){if(r===0||le===0)return 0;var P=r/le;return P*ve},[r,le,ve]),Pe=function(D){D.stopPropagation(),D.preventDefault()},de=t.useRef({top:K,dragging:M,pageY:F,startTop:I});de.current={top:K,dragging:M,pageY:F,startTop:I};var pe=function(D){y(!0),B(Be(D,m)),$(de.current.top),v(),D.stopPropagation(),D.preventDefault()};t.useEffect(function(){var P=function(Ee){Ee.preventDefault()},D=re.current,J=x.current;return D.addEventListener("touchstart",P),J.addEventListener("touchstart",pe),function(){D.removeEventListener("touchstart",P),J.removeEventListener("touchstart",pe)}},[]);var Me=t.useRef();Me.current=le;var ye=t.useRef();ye.current=ve,t.useEffect(function(){if(M){var P,D=function(Ee){var be=de.current,He=be.dragging,he=be.pageY,Oe=be.startTop;if(X.Z.cancel(P),He){var Ze=Be(Ee,m)-he,ue=Oe;!N&&m?ue-=Ze:ue+=Ze;var Te=Me.current,se=ye.current,ee=se?ue/se:0,W=Math.ceil(ee*Te);W=Math.max(W,0),W=Math.min(W,Te),P=(0,X.Z)(function(){E(W,m)})}},J=function(){y(!1),S()};return window.addEventListener("mousemove",D),window.addEventListener("touchmove",D),window.addEventListener("mouseup",J),window.addEventListener("touchend",J),function(){window.removeEventListener("mousemove",D),window.removeEventListener("touchmove",D),window.removeEventListener("mouseup",J),window.removeEventListener("touchend",J),X.Z.cancel(P)}}},[M]),t.useEffect(function(){V()},[r]),t.useImperativeHandle(s,function(){return{delayHidden:V}});var j="".concat(o,"-scrollbar"),w={position:"absolute",visibility:oe&&ie?null:"hidden"},A={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return m?(w.height=8,w.left=0,w.right=0,w.bottom=0,A.height="100%",A.width=a,N?A.left=K:A.right=K):(w.width=8,w.top=0,w.bottom=0,N?w.right=0:w.left=0,A.width="100%",A.height=a,A.top=K),t.createElement("div",{ref:re,className:Y()(j,(n={},(0,H.Z)(n,"".concat(j,"-horizontal"),m),(0,H.Z)(n,"".concat(j,"-vertical"),!m),(0,H.Z)(n,"".concat(j,"-visible"),oe),n)),style:(0,L.Z)((0,L.Z)({},w),l),onMouseDown:Pe,onMouseMove:V},t.createElement("div",{ref:x,className:Y()("".concat(j,"-thumb"),(0,H.Z)({},"".concat(j,"-thumb-moving"),M)),style:(0,L.Z)((0,L.Z)({},A),R),onMouseDown:pe}))}),Ve=ct;function ft(e){var s=e.children,n=e.setRef,o=t.useCallback(function(h){n(h)},[]);return t.cloneElement(s,{ref:o})}function vt(e,s,n,o,h,r,c){var v=c.getKey;return e.slice(s,n+1).map(function(S,E){var m=s+E,a=r(S,m,{style:{width:o}}),f=v(S);return t.createElement(ft,{key:f,setRef:function(R){return h(S,R)}},a)})}var dt=b(44992),ht=b(74809),mt=b(57338),gt=function(){function e(){(0,ht.Z)(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return(0,mt.Z)(e,[{key:"set",value:function(n,o){this.maps[n]=o,this.id+=1}},{key:"get",value:function(n){return this.maps[n]}}]),e}(),St=gt;function Rt(e,s,n){var o=t.useState(0),h=(0,C.Z)(o,2),r=h[0],c=h[1],v=(0,t.useRef)(new Map),S=(0,t.useRef)(new St),E=(0,t.useRef)();function m(){X.Z.cancel(E.current)}function a(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;m();var R=function(){v.current.forEach(function(d,M){if(d&&d.offsetParent){var y=(0,dt.Z)(d),O=y.offsetHeight;S.current.get(M)!==O&&S.current.set(M,y.offsetHeight)}}),c(function(d){return d+1})};l?R():E.current=(0,X.Z)(R)}function f(l,R){var g=e(l),d=v.current.get(g);R?(v.current.set(g,R),a()):v.current.delete(g),!d!=!R&&(R?s==null||s(l):n==null||n(l))}return(0,t.useEffect)(function(){return m},[]),[f,a,S.current,r]}var Re=b(62305),Ke=b(95470),pt=10;function Mt(e,s,n,o,h,r,c,v){var S=t.useRef(),E=t.useState(null),m=(0,C.Z)(E,2),a=m[0],f=m[1];return(0,Re.Z)(function(){if(a&&a.times=0;k-=1){var ae=h(s[k]),oe=n.get(ae);if(oe===void 0){y=!0;break}if(x-=oe,x<=0)break}switch(F){case"top":z=Z-d;break;case"bottom":z=G-M+d;break;default:{var q=e.current.scrollTop,_=q+M;Z_&&(O="bottom")}}z!==null&&c(z),z!==a.lastTop&&(y=!0)}y&&f(function(V){return(0,L.Z)((0,L.Z)({},V),{},{times:V.times+1,targetAlign:O,lastTop:z})})}},[a,e.current]),function(l){if(l==null){v();return}if(X.Z.cancel(S.current),typeof l=="number")c(l);else if(l&&(0,ge.Z)(l)==="object"){var R,g=l.align;"index"in l?R=l.index:R=s.findIndex(function(y){return h(y)===l.key});var d=l.offset,M=d===void 0?0:d;f({times:0,index:R,offset:M,originAlign:g})}}}function Jt(e,s,n,o){var h=n-e,r=s-n,c=Math.min(h,r)*2;if(o<=c){var v=Math.floor(o/2);return o%2?n+v+1:n-v}return h>r?n-(o-r):n+(o-h)}function yt(e,s,n){var o=e.length,h=s.length,r,c;if(o===0&&h===0)return null;o1&&arguments[1]!==void 0?arguments[1]:!1,S=c<0&&r.current.top||c>0&&r.current.bottom;return v&&S?(clearTimeout(o.current),n.current=!1):(!S||n.current)&&h(),!n.current&&S}};function Zt(e,s,n,o,h){var r=(0,t.useRef)(0),c=(0,t.useRef)(null),v=(0,t.useRef)(null),S=(0,t.useRef)(!1),E=Ue(s,n);function m(d,M){X.Z.cancel(c.current),r.current+=M,v.current=M,!E(M)&&(Ae||d.preventDefault(),c.current=(0,X.Z)(function(){var y=S.current?10:1;h(r.current*y),r.current=0}))}function a(d,M){h(M,!0),Ae||d.preventDefault()}var f=(0,t.useRef)(null),l=(0,t.useRef)(null);function R(d){if(e){X.Z.cancel(l.current),l.current=(0,X.Z)(function(){f.current=null},2);var M=d.deltaX,y=d.deltaY,O=d.shiftKey,z=M,F=y;(f.current==="sx"||!f.current&&O&&y&&!M)&&(z=y,F=0,f.current="sx");var B=Math.abs(z),Z=Math.abs(F);f.current===null&&(f.current=o&&B>Z?"x":"y"),f.current==="y"?m(d,F):a(d,z)}}function g(d){e&&(S.current=d.detail===v.current)}return[R,g]}var xt=14/15;function Ct(e,s,n){var o=(0,t.useRef)(!1),h=(0,t.useRef)(0),r=(0,t.useRef)(null),c=(0,t.useRef)(null),v,S=function(f){if(o.current){var l=Math.ceil(f.touches[0].pageY),R=h.current-l;h.current=l,n(R)&&f.preventDefault(),clearInterval(c.current),c.current=setInterval(function(){R*=xt,(!n(R,!0)||Math.abs(R)<=.1)&&clearInterval(c.current)},16)}},E=function(){o.current=!1,v()},m=function(f){v(),f.touches.length===1&&!o.current&&(o.current=!0,h.current=Math.ceil(f.touches[0].pageY),r.current=f.target,r.current.addEventListener("touchmove",S),r.current.addEventListener("touchend",E))};v=function(){r.current&&(r.current.removeEventListener("touchmove",S),r.current.removeEventListener("touchend",E))},(0,Re.Z)(function(){return e&&s.current.addEventListener("touchstart",m),function(){var a;(a=s.current)===null||a===void 0||a.removeEventListener("touchstart",m),v(),clearInterval(c.current)}},[e])}var Lt=20;function Ge(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/s*100;return isNaN(n)&&(n=0),n=Math.max(n,Lt),n=Math.min(n,e/2),Math.floor(n)}function wt(e,s,n,o){var h=t.useMemo(function(){return[new Map,[]]},[e,n.id,o]),r=(0,C.Z)(h,2),c=r[0],v=r[1],S=function(m){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:m,f=c.get(m),l=c.get(a);if(f===void 0||l===void 0)for(var R=e.length,g=v.length;gr||!!g),N=R==="rtl",re=Y()(o,(0,H.Z)({},"".concat(o,"-rtl"),N),h),x=m||Tt,k=(0,t.useRef)(),ae=(0,t.useRef)(),oe=(0,t.useState)(0),q=(0,C.Z)(oe,2),_=q[0],V=q[1],le=(0,t.useState)(0),ve=(0,C.Z)(le,2),ie=ve[0],K=ve[1],Pe=(0,t.useState)(!1),de=(0,C.Z)(Pe,2),pe=de[0],Me=de[1],ye=function(){Me(!0)},j=function(){Me(!1)},w=t.useCallback(function(i){return typeof f=="function"?f(i):i==null?void 0:i[f]},[f]),A={getKey:w};function P(i){V(function(u){var p;typeof i=="function"?p=i(u):p=i;var T=kt(p);return k.current.scrollTop=T,T})}var D=(0,t.useRef)({start:0,end:x.length}),J=(0,t.useRef)(),De=Et(x,w),Ee=(0,C.Z)(De,1),be=Ee[0];J.current=be;var He=Rt(w,null,null),he=(0,C.Z)(He,4),Oe=he[0],Ze=he[1],ue=he[2],Te=he[3],se=t.useMemo(function(){if(!I)return{scrollHeight:void 0,start:0,end:x.length-1,offset:void 0};if(!$){var i;return{scrollHeight:((i=ae.current)===null||i===void 0?void 0:i.offsetHeight)||0,start:0,end:x.length-1,offset:void 0}}for(var u=0,p,T,ne,Ut=x.length,Le=0;Le=_&&p===void 0&&(p=Le,T=u),Ye>_+r&&ne===void 0&&(ne=Le),u=Ye}return p===void 0&&(p=0,T=0,ne=Math.ceil(r/c)),ne===void 0&&(ne=x.length-1),ne=Math.min(ne+1,x.length-1),{scrollHeight:u,start:p,end:ne,offset:T}},[$,I,_,x,Te,r]),ee=se.scrollHeight,W=se.start,xe=se.end,Je=se.offset;D.current.start=W,D.current.end=xe;var It=t.useState({width:0,height:r}),Qe=(0,C.Z)(It,2),te=Qe[0],Nt=Qe[1],_t=function(u){Nt({width:u.width||u.offsetWidth,height:u.height||u.offsetHeight})},qe=(0,t.useRef)(),et=(0,t.useRef)(),Ft=t.useMemo(function(){return Ge(te.width,g)},[te.width,g]),$t=t.useMemo(function(){return Ge(te.height,ee)},[te.height,ee]),Ie=ee-r,Ne=(0,t.useRef)(Ie);Ne.current=Ie;function kt(i){var u=i;return Number.isNaN(Ne.current)||(u=Math.min(u,Ne.current)),u=Math.max(u,0),u}var tt=_<=0,nt=_>=Ie,Wt=Ue(tt,nt),_e=function(){return{x:N?-ie:ie,y:_}},Fe=(0,t.useRef)(_e()),$e=(0,Ke.zX)(function(){if(O){var i=_e();(Fe.current.x!==i.x||Fe.current.y!==i.y)&&(O(i),Fe.current=i)}});function rt(i,u){var p=i;u?((0,we.flushSync)(function(){K(p)}),$e()):P(p)}function Yt(i){var u=i.currentTarget.scrollTop;u!==_&&P(u),y==null||y(i),$e()}var ke=function(u){var p=u,T=g-te.width;return p=Math.max(p,0),p=Math.min(p,T),p},Xt=(0,Ke.zX)(function(i,u){u?((0,we.flushSync)(function(){K(function(p){var T=p+(N?-i:i);return ke(T)})}),$e()):P(function(p){var T=p+i;return T})}),Bt=Zt(I,tt,nt,!!g,Xt),at=(0,C.Z)(Bt,2),We=at[0],ot=at[1];Ct(I,k,function(i,u){return Wt(i,u)?!1:(We({preventDefault:function(){},deltaY:i}),!0)}),(0,Re.Z)(function(){function i(p){I&&p.preventDefault()}var u=k.current;return u.addEventListener("wheel",We),u.addEventListener("DOMMouseScroll",ot),u.addEventListener("MozMousePixelScroll",i),function(){u.removeEventListener("wheel",We),u.removeEventListener("DOMMouseScroll",ot),u.removeEventListener("MozMousePixelScroll",i)}},[I]),(0,Re.Z)(function(){g&&K(function(i){return ke(i)})},[te.width,g]);var lt=function(){var u,p;(u=qe.current)===null||u===void 0||u.delayHidden(),(p=et.current)===null||p===void 0||p.delayHidden()},it=Mt(k,x,ue,c,w,function(){return Ze(!0)},P,lt);t.useImperativeHandle(s,function(){return{getScrollInfo:_e,scrollTo:function(u){function p(T){return T&&(0,ge.Z)(T)==="object"&&("left"in T||"top"in T)}p(u)?(u.left!==void 0&&K(ke(u.left)),it(u.top)):it(u)}}}),(0,Re.Z)(function(){if(z){var i=x.slice(W,xe+1);z(i,x)}},[W,xe,x]);var Vt=wt(x,w,ue,c),Kt=B==null?void 0:B({start:W,end:xe,virtual:$,offsetX:ie,offsetY:Je,rtl:N,getSize:Vt}),At=vt(x,W,xe,g,Oe,a,A),Ce=null;r&&(Ce=(0,L.Z)((0,H.Z)({},S?"height":"maxHeight",r),zt),I&&(Ce.overflowY="hidden",g&&(Ce.overflowX="hidden"),pe&&(Ce.pointerEvents="none")));var ut={};return N&&(ut.dir="rtl"),t.createElement("div",(0,ce.Z)({style:(0,L.Z)((0,L.Z)({},E),{},{position:"relative"}),className:re},ut,G),t.createElement(U.Z,{onResize:_t},t.createElement(M,{className:"".concat(o,"-holder"),style:Ce,ref:k,onScroll:Yt,onMouseEnter:lt},t.createElement(Q,{prefixCls:o,height:ee,offsetX:ie,offsetY:Je,scrollWidth:g,onInnerResize:Ze,ref:ae,innerProps:F,rtl:N,extra:Kt},At))),$&&ee>r&&t.createElement(Ve,{ref:qe,prefixCls:o,scrollOffset:_,scrollRange:ee,rtl:N,onScroll:rt,onStartMove:ye,onStopMove:j,spinSize:$t,containerSize:te.height,style:Z==null?void 0:Z.verticalScrollBar,thumbStyle:Z==null?void 0:Z.verticalScrollBarThumb}),$&&g&&t.createElement(Ve,{ref:et,prefixCls:o,scrollOffset:ie,scrollRange:g,rtl:N,onScroll:rt,onStartMove:ye,onStopMove:j,spinSize:Ft,containerSize:te.width,horizontal:!0,style:Z==null?void 0:Z.horizontalScrollBar,thumbStyle:Z==null?void 0:Z.horizontalScrollBarThumb}))}var je=t.forwardRef(Pt);je.displayName="List";var Ht=je,Ot=Ht},71686:function(Xe,me,b){b.d(me,{Z:function(){return ce}});function ce(L){if(L==null)throw new TypeError("Cannot destructure "+L)}}}]); diff --git a/784.f046b275.async.js b/784.f046b275.async.js deleted file mode 100644 index b1973ba..0000000 --- a/784.f046b275.async.js +++ /dev/null @@ -1,16 +0,0 @@ -(self.webpackChunk_antv_l7_editor=self.webpackChunk_antv_l7_editor||[]).push([[784],{99069:function(A,S,a){"use strict";a.d(S,{r:function(){return V}});var e=a(67294),m=Object.defineProperty,N=Object.getOwnPropertySymbols,j=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,z=(x,D,Z)=>D in x?m(x,D,{enumerable:!0,configurable:!0,writable:!0,value:Z}):x[D]=Z,Y=(x,D)=>{for(var Z in D||(D={}))j.call(D,Z)&&z(x,Z,D[Z]);if(N)for(var Z of N(D))h.call(D,Z)&&z(x,Z,D[Z]);return x};const V=x=>e.createElement("svg",Y({viewBox:"64 64 896 896"},x),e.createElement("path",{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}));var U="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNODg0IDI1NmgtNzVjLTUuMSAwLTkuOSAyLjUtMTIuOSA2LjZMNTEyIDY1NC4yIDIyNy45IDI2Mi42Yy0zLTQuMS03LjgtNi42LTEyLjktNi42aC03NWMtNi41IDAtMTAuMyA3LjQtNi41IDEyLjdsMzUyLjYgNDg2LjFjMTIuOCAxNy42IDM5IDE3LjYgNTEuNyAwbDM1Mi42LTQ4Ni4xYzMuOS01LjMuMS0xMi43LTYuNC0xMi43eiIvPjwvc3ZnPg=="},14470:function(A,S,a){"use strict";a.r(S),a.d(S,{default:function(){return n}});var e=a(67294),m=Object.defineProperty,N=Object.getOwnPropertySymbols,j=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,z=(t,r,u)=>r in t?m(t,r,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[r]=u,Y=(t,r)=>{for(var u in r||(r={}))j.call(r,u)&&z(t,u,r[u]);if(N)for(var u of N(r))h.call(r,u)&&z(t,u,r[u]);return t};const V=t=>e.createElement("svg",Y({viewBox:"64 64 896 896"},t),e.createElement("path",{d:"M120 230h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 424h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm784 140H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}));var U="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNMTIwIDIzMGg0OTZjNC40IDAgOC0zLjYgOC04di01NmMwLTQuNC0zLjYtOC04LThIMTIwYy00LjQgMC04IDMuNi04IDh2NTZjMCA0LjQgMy42IDggOCA4em0wIDQyNGg0OTZjNC40IDAgOC0zLjYgOC04di01NmMwLTQuNC0zLjYtOC04LThIMTIwYy00LjQgMC04IDMuNi04IDh2NTZjMCA0LjQgMy42IDggOCA4em03ODQgMTQwSDEyMGMtNC40IDAtOCAzLjYtOCA4djU2YzAgNC40IDMuNiA4IDggOGg3ODRjNC40IDAgOC0zLjYgOC04di01NmMwLTQuNC0zLjYtOC04LTh6bTAtNDI0SDEyMGMtNC40IDAtOCAzLjYtOCA4djU2YzAgNC40IDMuNiA4IDggOGg3ODRjNC40IDAgOC0zLjYgOC04di01NmMwLTQuNC0zLjYtOC04LTh6Ii8+PC9zdmc+",x=function(t,r,u,I){function O(o){return o instanceof u?o:new u(function(c){c(o)})}return new(u||(u=Promise))(function(o,c){function i(w){try{k(I.next(w))}catch(F){c(F)}}function H(w){try{k(I.throw(w))}catch(F){c(F)}}function k(w){w.done?o(w.value):O(w.value).then(i,H)}k((I=I.apply(t,r||[])).next())})};function D(t){let r=0,u=0,I=t;do r+=I.offsetTop||0,u+=I.offsetLeft||0,I=I.offsetParent;while(I);return{top:r,left:u}}class Z{constructor(r){this.element=r}getHorizontalScroll(){return this.element.scrollLeft}getVerticalScroll(){return this.element.scrollTop}getMaxHorizontalScroll(){return this.element.scrollWidth-this.element.clientWidth}getMaxVerticalScroll(){return this.element.scrollHeight-this.element.clientHeight}getHorizontalElementScrollOffset(r,u){return D(r).left-D(u).left}getVerticalElementScrollOffset(r,u){return D(r).top-D(u).top}scrollTo(r,u){this.element.scrollLeft=r,this.element.scrollTop=u}}class G{constructor(){this.element=window}getHorizontalScroll(){return window.scrollX||document.documentElement.scrollLeft}getVerticalScroll(){return window.scrollY||document.documentElement.scrollTop}getMaxHorizontalScroll(){return Math.max(document.body.scrollWidth,document.documentElement.scrollWidth,document.body.offsetWidth,document.documentElement.offsetWidth,document.body.clientWidth,document.documentElement.clientWidth)-window.innerWidth}getMaxVerticalScroll(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)-window.innerHeight}getHorizontalElementScrollOffset(r){return(window.scrollX||document.documentElement.scrollLeft)+r.getBoundingClientRect().left}getVerticalElementScrollOffset(r){return(window.scrollY||document.documentElement.scrollTop)+r.getBoundingClientRect().top}scrollTo(r,u){window.scrollTo(r,u)}}const M={elements:[],cancelMethods:[],add:(t,r)=>{M.elements.push(t),M.cancelMethods.push(r)},remove:(t,r)=>{const u=M.elements.indexOf(t);u>-1&&(r&&M.cancelMethods[u](),M.elements.splice(u,1),M.cancelMethods.splice(u,1))}},y=typeof window!="undefined",l={cancelOnUserAction:!0,easing:t=>--t*t*t+1,elementToScroll:y?window:null,horizontalOffset:0,maxDuration:3e3,minDuration:250,speed:500,verticalOffset:0};function d(t,r={}){return x(this,void 0,void 0,function*(){if(y){if(!window.Promise)throw"Browser doesn't support Promises, and animated-scroll-to depends on it, please provide a polyfill."}else return new Promise(ie=>{ie(!1)});let u,I,O,o=Object.assign(Object.assign({},l),r);const c=o.elementToScroll===window,i=!!o.elementToScroll.nodeName;if(!c&&!i)throw"Element to scroll needs to be either window or DOM element.";const H=c?document.documentElement:o.elementToScroll;getComputedStyle(H).getPropertyValue("scroll-behavior")==="smooth"&&console.warn(`${H.tagName} has "scroll-behavior: smooth" which can mess up with animated-scroll-to's animations`);const w=c?new G:new Z(o.elementToScroll);if(t instanceof Element){if(O=t,i&&(!o.elementToScroll.contains(O)||o.elementToScroll.isSameNode(O)))throw"options.elementToScroll has to be a parent of scrollToElement";u=w.getHorizontalElementScrollOffset(O,o.elementToScroll),I=w.getVerticalElementScrollOffset(O,o.elementToScroll)}else if(typeof t=="number")u=w.getHorizontalScroll(),I=t;else if(Array.isArray(t)&&t.length===2)u=t[0]===null?w.getHorizontalScroll():t[0],I=t[1]===null?w.getVerticalScroll():t[1];else throw`Wrong function signature. Check documentation. -Available method signatures are: - animateScrollTo(y:number, options) - animateScrollTo([x:number | null, y:number | null], options) - animateScrollTo(scrollToElement:Element, options)`;u+=o.horizontalOffset,I+=o.verticalOffset;const F=w.getMaxHorizontalScroll(),te=w.getHorizontalScroll();u>F&&(u=F);const $=u-te,J=w.getMaxVerticalScroll(),b=w.getVerticalScroll();I>J&&(I=J);const re=I-b,ee=Math.abs(Math.round($/1e3*o.speed)),ne=Math.abs(Math.round(re/1e3*o.speed));let ue=ee>ne?ee:ne;return ueo.maxDuration&&(ue=o.maxDuration),new Promise((ie,de)=>{$===0&&re===0&&ie(!0),M.remove(w.element,!0);let me;const ge=()=>{Me(),cancelAnimationFrame(me),ie(!1)};M.add(w.element,ge);const ye=fe=>fe.preventDefault(),oe=o.cancelOnUserAction?ge:ye,se=o.cancelOnUserAction?{passive:!0}:{passive:!1},ce=["wheel","touchstart","keydown","mousedown"],Me=()=>{ce.forEach(fe=>{w.element.removeEventListener(fe,oe,se)})};ce.forEach(fe=>{w.element.addEventListener(fe,oe,se)});const Ae=Date.now(),Ne=()=>{var fe=Date.now()-Ae,Le=fe/ue;const ve=Math.round(te+$*o.easing(Le)),g=Math.round(b+re*o.easing(Le));fet.length)&&(r=t.length);for(var u=0,I=new Array(r);u0;return(0,e.useEffect)(function(){var ee=o.replace("#","");ee&&setTimeout(function(){var ne=document.getElementById(decodeURIComponent(ee));ne&&L(ne.offsetTop-80,{maxDuration:300})},1)},[H,o]),e.createElement("div",{className:"dumi-default-doc-layout","data-mobile-sidebar-active":te||void 0,onClick:function(){return $(!1)}},e.createElement(E.ql,null,e.createElement("html",{lang:r.locale.replace(/-.+$/,"")}),b.title&&e.createElement("title",null,b.title),b.title&&e.createElement("meta",{property:"og:title",content:b.title}),b.description&&e.createElement("meta",{name:"description",content:b.description}),b.description&&e.createElement("meta",{property:"og:description",content:b.description}),b.keywords&&e.createElement("meta",{name:"keywords",content:b.keywords.join(",")}),b.keywords&&b.keywords.map(function(ee){return e.createElement("meta",{key:ee,property:"article:tag",content:ee})}),k&&e.createElement("link",{rel:"canonical",href:k+c})),e.createElement(R.Z,null),e.createElement(q.Z,null),e.createElement(P.Z,null),re&&e.createElement("div",{className:"dumi-default-doc-layout-mobile-bar"},e.createElement("button",{type:"button",className:"dumi-default-sidebar-btn",onClick:function(ne){ne.stopPropagation(),$(function(ue){return!ue})}},e.createElement(V,null),r.formatMessage({id:"layout.sidebar.btn"}))),e.createElement("main",null,re&&e.createElement(v.Z,null),e.createElement(Q.Z,null,e.createElement("article",null,u),e.createElement(B.Z,null),e.createElement(W.Z,null)),b.toc==="content"&&e.createElement("div",{className:"dumi-default-doc-layout-toc-wrapper"},e.createElement("h4",null,"TABLE OF CONTENTS"),e.createElement(T.Z,null))))},n=p},76012:function(A,S,a){"use strict";a.d(S,{Z:function(){return M}});var e=a(73847),m=a(67294);function N(y,l){return V(y)||Y(y,l)||h(y,l)||j()}function j(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h(y,l){if(y){if(typeof y=="string")return z(y,l);var d=Object.prototype.toString.call(y).slice(8,-1);if(d==="Object"&&y.constructor&&(d=y.constructor.name),d==="Map"||d==="Set")return Array.from(y);if(d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d))return z(y,l)}}function z(y,l){(l==null||l>y.length)&&(l=y.length);for(var d=0,L=new Array(l);dt in n?m(n,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[t]=r,Y=(n,t)=>{for(var r in t||(t={}))j.call(t,r)&&z(n,r,t[r]);if(N)for(var r of N(t))h.call(t,r)&&z(n,r,t[r]);return n};const V=n=>e.createElement("svg",Y({viewBox:"64 64 896 896"},n),e.createElement("path",{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 0 0 0 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}));var U="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNODcyIDQ3NEgyODYuOWwzNTAuMi0zMDRjNS42LTQuOSAyLjItMTQtNS4yLTE0aC04OC41Yy0zLjkgMC03LjYgMS40LTEwLjUgMy45TDE1NSA0ODcuOGEzMS45NiAzMS45NiAwIDAgMCAwIDQ4LjNMNTM1LjEgODY2YzEuNSAxLjMgMy4zIDIgNS4yIDJoOTEuNWM3LjQgMCAxMC44LTkuMiA1LjItMTRMMjg2LjkgNTUwSDg3MmM0LjQgMCA4LTMuNiA4LTh2LTYwYzAtNC40LTMuNi04LTgtOHoiLz48L3N2Zz4=",x=Object.defineProperty,D=Object.getOwnPropertySymbols,Z=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable,M=(n,t,r)=>t in n?x(n,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[t]=r,y=(n,t)=>{for(var r in t||(t={}))Z.call(t,r)&&M(n,r,t[r]);if(D)for(var r of D(t))G.call(t,r)&&M(n,r,t[r]);return n};const l=n=>e.createElement("svg",y({viewBox:"64 64 896 896"},n),e.createElement("path",{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}),e.createElement("path",{d:"M686.7 638.6 544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}));var d="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNNTEyIDY0QzI2NC42IDY0IDY0IDI2NC42IDY0IDUxMnMyMDAuNiA0NDggNDQ4IDQ0OCA0NDgtMjAwLjYgNDQ4LTQ0OFM3NTkuNCA2NCA1MTIgNjR6bTAgODIwYy0yMDUuNCAwLTM3Mi0xNjYuNi0zNzItMzcyczE2Ni42LTM3MiAzNzItMzcyIDM3MiAxNjYuNiAzNzIgMzcyLTE2Ni42IDM3Mi0zNzIgMzcyeiIvPjxwYXRoIGQ9Ik02ODYuNyA2MzguNiA1NDQuMSA1MzUuNVYyODhjMC00LjQtMy42LTgtOC04SDQ4OGMtNC40IDAtOCAzLjYtOCA4djI3NS40YzAgMi42IDEuMiA1IDMuMyA2LjVsMTY1LjQgMTIwLjZjMy42IDIuNiA4LjYgMS44IDExLjItMS43bDI4LjYtMzljMi42LTMuNyAxLjgtOC43LTEuOC0xMS4yeiIvPjwvc3ZnPg==",L=Object.defineProperty,E=Object.getOwnPropertySymbols,Q=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable,P=(n,t,r)=>t in n?L(n,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[t]=r,W=(n,t)=>{for(var r in t||(t={}))Q.call(t,r)&&P(n,r,t[r]);if(E)for(var r of E(t))B.call(t,r)&&P(n,r,t[r]);return n};const R=n=>e.createElement("svg",W({viewBox:"64 64 896 896"},n),e.createElement("path",{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 0 0 0-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 0 0 9.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}));var q="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNMjU3LjcgNzUyYzIgMCA0LS4yIDYtLjVMNDMxLjkgNzIyYzItLjQgMy45LTEuMyA1LjMtMi44bDQyMy45LTQyMy45YTkuOTYgOS45NiAwIDAgMCAwLTE0LjFMNjk0LjkgMTE0LjljLTEuOS0xLjktNC40LTIuOS03LjEtMi45cy01LjIgMS03LjEgMi45TDI1Ni44IDUzOC44Yy0xLjUgMS41LTIuNCAzLjMtMi44IDUuM2wtMjkuNSAxNjguMmEzMy41IDMzLjUgMCAwIDAgOS40IDI5LjhjNi42IDYuNCAxNC45IDkuOSAyMy44IDkuOXptNjcuNC0xNzQuNEw2ODcuOCAyMTVsNzMuMyA3My4zLTM2Mi43IDM2Mi42LTg4LjkgMTUuNyAxNS42LTg5ek04ODAgODM2SDE0NGMtMTcuNyAwLTMyIDE0LjMtMzIgMzJ2MzZjMCA0LjQgMy42IDggOCA4aDc4NGM0LjQgMCA4LTMuNiA4LTh2LTM2YzAtMTcuNy0xNC4zLTMyLTMyLTMyeiIvPjwvc3ZnPg==",v=a(73847);function T(n,t){return le(n)||_(n,t)||X(n,t)||C()}function C(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function X(n,t){if(n){if(typeof n=="string")return K(n,t);var r=Object.prototype.toString.call(n).slice(8,-1);if(r==="Object"&&n.constructor&&(r=n.constructor.name),r==="Map"||r==="Set")return Array.from(n);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return K(n,t)}}function K(n,t){(t==null||t>n.length)&&(t=n.length);for(var r=0,u=new Array(t);rt in n?m(n,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[t]=r,Y=(n,t)=>{for(var r in t||(t={}))j.call(t,r)&&z(n,r,t[r]);if(N)for(var r of N(t))h.call(t,r)&&z(n,r,t[r]);return n};const V=n=>e.createElement("svg",Y({fillRule:"evenodd",viewBox:"64 64 896 896"},n),e.createElement("path",{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 0 1 0 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 0 1 0 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 0 1-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 0 1-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7a.169.169 0 0 1-.06-.07.12.12 0 0 1 0-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7a.199.199 0 0 1-.06-.09.12.12 0 0 1 0-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 0 1 .07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 0 1 .07 0z"}));var U="data:image/svg+xml;base64,PHN2ZyBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiPjxwYXRoIGQ9Ik03OTkuODYgMTY2LjMxYy4wMiAwIC4wNC4wMi4wOC4wNmw1Ny42OSA1Ny43Yy4wNC4wMy4wNS4wNS4wNi4wOGEuMTIuMTIgMCAwIDEgMCAuMDZjMCAuMDMtLjAyLjA1LS4wNi4wOUw1NjkuOTMgNTEybDI4Ny43IDI4Ny43Yy4wNC4wNC4wNS4wNi4wNi4wOWEuMTIuMTIgMCAwIDEgMCAuMDdjMCAuMDItLjAyLjA0LS4wNi4wOGwtNTcuNyA1Ny42OWMtLjAzLjA0LS4wNS4wNS0uMDcuMDZhLjEyLjEyIDAgMCAxLS4wNyAwYy0uMDMgMC0uMDUtLjAyLS4wOS0uMDZMNTEyIDU2OS45M2wtMjg3LjcgMjg3LjdjLS4wNC4wNC0uMDYuMDUtLjA5LjA2YS4xMi4xMiAwIDAgMS0uMDcgMGMtLjAyIDAtLjA0LS4wMi0uMDgtLjA2bC01Ny42OS01Ny43YS4xNjkuMTY5IDAgMCAxLS4wNi0uMDcuMTIuMTIgMCAwIDEgMC0uMDdjMC0uMDMuMDItLjA1LjA2LS4wOUw0NTQuMDcgNTEybC0yODcuNy0yODcuN2EuMTk5LjE5OSAwIDAgMS0uMDYtLjA5LjEyLjEyIDAgMCAxIDAtLjA3YzAtLjAyLjAyLS4wNC4wNi0uMDhsNTcuNy01Ny42OWMuMDMtLjA0LjA1LS4wNS4wNy0uMDZhLjEyLjEyIDAgMCAxIC4wNyAwYy4wMyAwIC4wNS4wMi4wOS4wNkw1MTIgNDU0LjA3bDI4Ny43LTI4Ny43Yy4wNC0uMDQuMDYtLjA1LjA5LS4wNmEuMTIuMTIgMCAwIDEgLjA3IDB6Ii8+PC9zdmc+",x=Object.defineProperty,D=Object.getOwnPropertySymbols,Z=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable,M=(n,t,r)=>t in n?x(n,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[t]=r,y=(n,t)=>{for(var r in t||(t={}))Z.call(t,r)&&M(n,r,t[r]);if(D)for(var r of D(t))G.call(t,r)&&M(n,r,t[r]);return n};const l=n=>e.createElement("svg",y({viewBox:"64 64 896 896"},n),e.createElement("path",{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}));var d="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNOTA0IDE2MEgxMjBjLTQuNCAwLTggMy42LTggOHY2NGMwIDQuNCAzLjYgOCA4IDhoNzg0YzQuNCAwIDgtMy42IDgtOHYtNjRjMC00LjQtMy42LTgtOC04em0wIDYyNEgxMjBjLTQuNCAwLTggMy42LTggOHY2NGMwIDQuNCAzLjYgOCA4IDhoNzg0YzQuNCAwIDgtMy42IDgtOHYtNjRjMC00LjQtMy42LTgtOC04em0wLTMxMkgxMjBjLTQuNCAwLTggMy42LTggOHY2NGMwIDQuNCAzLjYgOCA4IDhoNzg0YzQuNCAwIDgtMy42IDgtOHYtNjRjMC00LjQtMy42LTgtOC04eiIvPjwvc3ZnPg==",L=a(73847),E=a(87171),Q=a(21209),B=a(26871),P=a(63721),W=a(78406),R=a(983),q=a(96157),v=a(24733);function T(n,t){return le(n)||_(n,t)||X(n,t)||C()}function C(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function X(n,t){if(n){if(typeof n=="string")return K(n,t);var r=Object.prototype.toString.call(n).slice(8,-1);if(r==="Object"&&n.constructor&&(r=n.constructor.name),r==="Map"||r==="Set")return Array.from(n);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return K(n,t)}}function K(n,t){(t==null||t>n.length)&&(t=n.length);for(var r=0,u=new Array(t);rM.length)&&(y=M.length);for(var l=0,d=new Array(y);l2?N.createElement("div",{className:"dumi-default-lang-select"},N.createElement("select",{defaultValue:L,onChange:function(B){m.m8.push(x({pathname:m.m8.location.pathname,current:E,target:l.find(function(P){var W=P.id;return W===B.target.value})}))}},l.map(function(Q){return N.createElement("option",{key:Q.id,value:Q.id},Q.name)})),N.createElement(e.r,null)):N.createElement(D,{locale:l.find(function(Q){var B=Q.id;return B!==L}),current:E})},G=Z},55212:function(A,S,a){"use strict";a.d(S,{Z:function(){return j}});var e=a(73847),m=a(67294),N=function(){var z=(0,e.WF)(),Y=z.themeConfig,V=(0,e.bU)();return m.createElement(e.rU,{className:"dumi-default-logo",to:"base"in V?V.base:"/"},Y.logo!==!1&&m.createElement("img",{src:Y.logo||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIQAAACCCAMAAACww5CIAAACf1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8YkP8AAAACCxMamv/6+voaGhoXi/YYjv8aoP8cq/8dr/8bo/8cqP8bpv8Ykv8drv8BAwUcrP8Zlf8Xjf/s7OzLy8scp/8anP8ZmP/d3d0BBArg4ODT09O7u7sEGCsKCgoanf8YlP/8/Pz09PTIyMgMTIV1dXUGKEVEREQ0NDQODg4GBgYdsv8dsf8Zl//m5uYVgOXj4+MWgtfW1tYTc87BwcERbLWzs7Ovr6+np6cQX6OgoKCTk5MMSXlwcHBra2tiYmIVFRUetf/39/fp6ekWhOkXi+QVfNvY2NjPz88TdcUSb7u6urq3t7cPYK0NUJGQkJCLi4ttbW0JO2cINFtVVVVRUVEHMFEHLEs6OjoEHDEiIiIcHBwXj/vx8fEWh+4Sb8gRbL+rq6upqakOVZiWlpaJiYmGhoYMSIF9fX15eXkKPnQLRHJMTExHR0c9PT0FHzkqKiomJiYEFyUBBw8bovfu7u4Wht4UedsUeMrFxcW9vb0RZrOkpKSampoPXZqAgIALQmtlZWUJOGJZWVkIMFcFIUExMTEwMDAtLS0DEh8Zl/v4+PgXj/QWhvEWhvAYku8YjuwUfNcUfNAVfc0RaLkSaKsRZ6kPWqENUYlbW1sCEBhkSPCkAAAAOHRSTlMA87y4BeKrltbFnUDo0MCup6D67t7ayZKGemtmWS8rEwLNso1wVEpFGaR+UDUlHwmBYls5i1oN/DMym4YAAAfTSURBVHjaxNndS1NxHMfxX5s6t1Kz1KzsuazMnqjgyxv03ovtQrYxUBEfLkREVBQf0AsFBRUUQvEiSVFQ0YsuiiIiqKC/oH+o31lzjtPZg55zttfVNnbx5ffw+X53pmx5UFl2+XLZ4zpVOPWlJFTntYyiBwF/VbX39Sv9upYU9/QHjbXe6qqayrrnylXXi0kov3GVuFiMuNqbHhIu3FcuuohZZ+jDh7mdXkwqlGtKMGmOSFzrGiYe5ZL4+vdsd/SHFyYxtIQlIdiD4ftCa39osTlxRtzwHO1tUOLm0XYk6T3asMRtdKHdUs6qv+L1l/vKgak2SYjqN+1yYg2G5NgR4Pd5/F7fk9sO3YhSkoYkaW40KCk2Rj9KUoikqmtOn8YpydE6J7xFyq5yUhxIjvZJcUfZ5EOb6oxGQmPdtEQlR4Mxupc6IoOdzWiVypabaF1BiesIS876OiSufRXtvO0DcSi2dAN+ZcclYFZsCaOps3nYUOKprDTiSWzqAioCnpIX9ep03pxkw7jYtMWx0pdn7Jb2i1jixN3cM6OGFCti0zgpyopOsw6xiZHoyHIPLIhNHdD7bWR+c7znFD3+PNp+vxhmRkNi28BoWAzBPbQHKhdlQLe4ogsoVTl4ijYjrmiKATdUdvfjh9Ely8DVHFvWe3HJMBBQ2QWAd+KSeeBxjtuxKC7ZzG07Ht0DusQlfwDfs2wZ4b2EYVBcESHO81BlcIWESXHFV7Qss5aXY1FxRSj7L7QAhv3tsaVBMVn8Ou1MFUtjW3sYKjL0jO6QWJiA7iZxysBbtDplpRT4KZbQWkUbHRMnGFUUKwuNaH1iaRJ+Tf8bDbqcWJH2HuCV+l9DpkuxtdsuGlpYHNAJ1FqNMjnE9QocOXJCPwJ309zPT9la8e5yUJwwC/jTBNWQ5EkIqEyzHROSJzvWSeFDW5M8OUArsdgMq2EmanOyGB4WSyMYAhZp2TwkJouw2mZvmusUSwtraA//m7DXZ8SsBxiQM5tGSxNuv3+ZU/NmIpfN9qDXxp1sO4LDNrE202J6cHE1TVq2f1uNiA39K9/7JJ0JwGe6nvOSZ4OA1/R0bFbyrBWoMUX2nOTZAOA3pcSXjFW7UOJnU17VAYeZv98pTvsB1KsTRVXAtqQVA/rFWSNo11SKiuRYZeknEBRn7WJ4rZKuX8pcROvBj6g4rLUZQ8NJYBo2Jb/ax2KkhKYf6I1I3oWngKqUhfgkBTCL1pics1elICaS/5Y9jk+XBdEBeJKhHZGCCLZAWTIkBqQgNlr+NbGi2wHgS1tTAbQNAxW3i1R58WWgd725ANZ7gXPFNaqagrvwt1t7aW0qiOIAPlErPqJCq6JWrW8r1ar1xf0n4NxnnpCELEKyCNmkJZSQRSCbQltooS4sVApiC10U2kWhFRUEEdGF4vuNH8g7c9NQ2pjepPcB/r5ADjlnzp2ZM+QMXHeYb+1WfO5hi5QfveYe33XJ4+d8a3MNQHbI75KhMt9z9wF4FRNcIi3wO94bAHJiQHCHNgmgh3QD8D1MCK6I+KeNCUgbgFFRcEX8Qwhov014o/juUlEoxeqrgpsA7oWp4AZprnpv1ANgShFcoU4a+36jMgOuVGYmnuJ1Wb0hKWqCC8QCgI4dqyfRbNCFoqDBX7Xz6C0AS660K3UKQCdhuqAbdqFT+B8mAXQTbhtbpM7ng4Yn1oytOwFMu5AP9QGAa4Qz8lFwvFWIH6G7Qjijc8/LDueDyvd4z151EYBvwOF+lRFTAK6TGi+ACWdLk0ozANqvkpojAFJKRnCSlFt3m8pLc9bJTylVn64ty9rJfEl1cpVKbH3uJ2v1QleUqOCI2h9xeeP0aVqLCA4JSLk6s7hu6CbkqOAIGpyB7iRZ5xLvFWlHEkITyjK/41/v9h0AC3lngpCz0PXWf0yDUcmBhFDt0T/flx8CkNL8VLAZjUhvAHSQek5AtyALdqP5e9BdbPCkZsbuFRKVvlRHs/W1AfC902yNgoriWwCeqw1fSL+J2VkWNBF8vckr6mPQ3ZcjtkVBA/3z4Ju6Bs5ANzck2BQFpUMTxlVZQ4ege95vUxRUHoPOe5s01OWBbryf2hEFDX4Fc4Vs4gaYZ3ZEQeXBJPgMcFPnwYzJVmeE6jGsGCNAE/rAlPIBamkMQv9YCLpzxJRjYMr5BLXyg5EvgTlKTOoEkw2LUct6dTz4ojqCNO04mMm4ZE150mhMuQ+jHppwAUxqUM5QK9qkPLIE5jhpygkvmHJYiW45FaL8IwmdZy9pUtc2MK9HtvgloZngJyMVp3tJ846ASb7Q1NYrg1JN+ukDs4e05LwHTO5bUKG0tRBEeXAKzJ3rpEXdB8C9fBIWKW0hhOBIBdy2K6R11zvALY6EFYE21yHF4OdKEkz7ObIlXXvAhV4OquoApaYbpCo9qayA29lLturibhimSgOSFjG1ILRwYnwShn09xArnT8PwdnHML6n+hl+2gD8Wjj+rLMOwq49Y5dZpVKUWS++VcCwdCdT5/Uhck5SH45VpVO3qJFbq2Y5Vvly2VBgQY5KqKWI6HY+n06KiqVJMSQyP/37wB6v29xGrnThyEDWh5dyr+fJscbQw/OjRcGG0OFvO3n+QSqKm7exlYgsvNgolkyFs1HGV2OQgTGsjNjnVBtO8Owj3nwbhgWnttgWxy2PaoWaC+AuAXqWYKHupMgAAAABJRU5ErkJggg==",alt:Y.name}),Y.name)},j=N},71482:function(A,S,a){"use strict";a.d(S,{Z:function(){return y}});var e=a(99069),m=a(73847),N=a(42515),j=a(67294);function h(){return h=Object.assign?Object.assign.bind():function(l){for(var d=1;dl.length)&&(d=l.length);for(var L=0,E=new Array(d);LM.length)&&(y=M.length);for(var l=0,d=new Array(y);lc in o?m(o,c,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[c]=i,Y=(o,c)=>{for(var i in c||(c={}))j.call(c,i)&&z(o,i,c[i]);if(N)for(var i of N(c))h.call(c,i)&&z(o,i,c[i]);return o};const V=o=>e.createElement("svg",Y({viewBox:"64 64 896 896"},o),e.createElement("path",{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0 0 48.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}));var U="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNODYyIDQ2NS4zaC04MWMtNC42IDAtOSAyLTEyLjEgNS41TDU1MCA3MjMuMVYxNjBjMC00LjQtMy42LTgtOC04aC02MGMtNC40IDAtOCAzLjYtOCA4djU2My4xTDI1NS4xIDQ3MC44Yy0zLTMuNS03LjQtNS41LTEyLjEtNS41aC04MWMtNi44IDAtMTAuNSA4LjEtNiAxMy4yTDQ4Ny45IDg2MWEzMS45NiAzMS45NiAwIDAgMCA0OC4zIDBMODY4IDQ3OC41YzQuNS01LjIuOC0xMy4yLTYtMTMuMnoiLz48L3N2Zz4=",x=Object.defineProperty,D=Object.getOwnPropertySymbols,Z=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable,M=(o,c,i)=>c in o?x(o,c,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[c]=i,y=(o,c)=>{for(var i in c||(c={}))Z.call(c,i)&&M(o,i,c[i]);if(D)for(var i of D(c))G.call(c,i)&&M(o,i,c[i]);return o};const l=o=>e.createElement("svg",y({viewBox:"64 64 896 896"},o),e.createElement("path",{d:"M868 545.5 536.1 163a31.96 31.96 0 0 0-48.3 0L156 545.5a7.97 7.97 0 0 0 6 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}));var d="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNODY4IDU0NS41IDUzNi4xIDE2M2EzMS45NiAzMS45NiAwIDAgMC00OC4zIDBMMTU2IDU0NS41YTcuOTcgNy45NyAwIDAgMCA2IDEzLjJoODFjNC42IDAgOS0yIDEyLjEtNS41TDQ3NCAzMDAuOVY4NjRjMCA0LjQgMy42IDggOCA4aDYwYzQuNCAwIDgtMy42IDgtOFYzMDAuOWwyMTguOSAyNTIuM2MzIDMuNSA3LjQgNS41IDEyLjEgNS41aDgxYzYuOCAwIDEwLjUtOCA2LTEzLjJ6Ii8+PC9zdmc+",L=Object.defineProperty,E=Object.getOwnPropertySymbols,Q=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable,P=(o,c,i)=>c in o?L(o,c,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[c]=i,W=(o,c)=>{for(var i in c||(c={}))Q.call(c,i)&&P(o,i,c[i]);if(E)for(var i of E(c))B.call(c,i)&&P(o,i,c[i]);return o};const R=o=>e.createElement("svg",W({viewBox:"64 64 896 896"},o),e.createElement("path",{d:"M909.6 854.5 649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0 0 11.6 0l43.6-43.5a8.2 8.2 0 0 0 0-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}));var q="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNOTA5LjYgODU0LjUgNjQ5LjkgNTk0LjhDNjkwLjIgNTQyLjcgNzEyIDQ3OSA3MTIgNDEyYzAtODAuMi0zMS4zLTE1NS40LTg3LjktMjEyLjEtNTYuNi01Ni43LTEzMi04Ny45LTIxMi4xLTg3LjlzLTE1NS41IDMxLjMtMjEyLjEgODcuOUMxNDMuMiAyNTYuNSAxMTIgMzMxLjggMTEyIDQxMmMwIDgwLjEgMzEuMyAxNTUuNSA4Ny45IDIxMi4xQzI1Ni41IDY4MC44IDMzMS44IDcxMiA0MTIgNzEyYzY3IDAgMTMwLjYtMjEuOCAxODIuNy02MmwyNTkuNyAyNTkuNmE4LjIgOC4yIDAgMCAwIDExLjYgMGw0My42LTQzLjVhOC4yIDguMiAwIDAgMCAwLTExLjZ6TTU3MC40IDU3MC40QzUyOCA2MTIuNyA0NzEuOCA2MzYgNDEyIDYzNnMtMTE2LTIzLjMtMTU4LjQtNjUuNkMyMTEuMyA1MjggMTg4IDQ3MS44IDE4OCA0MTJzMjMuMy0xMTYuMSA2NS42LTE1OC40QzI5NiAyMTEuMyAzNTIuMiAxODggNDEyIDE4OHMxMTYuMSAyMy4yIDE1OC40IDY1LjZTNjM2IDM1Mi4yIDYzNiA0MTJzLTIzLjMgMTE2LjEtNjUuNiAxNTguNHoiLz48L3N2Zz4=",v=a(73847),T=a(47727),C=(0,e.forwardRef)(function(o,c){var i=(0,v.YB)(),H=(0,e.useRef)(!1),k=(0,e.useRef)(null);return(0,e.useImperativeHandle)(c,function(){return k.current}),e.createElement("input",{className:"dumi-default-search-bar-input",onCompositionStart:function(){return H.current=!0},onCompositionEnd:function(F){H.current=!1,o.onChange(F.currentTarget.value)},onFocus:o.onFocus,onBlur:o.onBlur,onKeyDown:function(F){["ArrowDown","ArrowUp"].includes(F.key)&&F.preventDefault(),F.key==="Escape"&&!H.current&&F.currentTarget.blur()},onChange:function(F){var te=F.target.value;setTimeout(function(){H.current||o.onChange(te)},1)},placeholder:i.formatMessage({id:"header.search.placeholder"}),ref:k})}),X=function(c){return(0,e.useEffect)(function(){if(c.visible)document.body.style.overflow="hidden";else{var i;document.body.style.overflow="",(i=c.onClose)===null||i===void 0||i.call(c)}},[c.visible]),c.visible?e.createElement("div",{className:"dumi-default-search-modal"},e.createElement("div",{className:"dumi-default-search-modal-mask",onClick:c.onMaskClick}),e.createElement("div",{className:"dumi-default-search-modal-content"},c.children)):null},K;function _(o,c){return t(o)||n(o,c)||ae(o,c)||le()}function le(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ae(o,c){if(o){if(typeof o=="string")return p(o,c);var i=Object.prototype.toString.call(o).slice(8,-1);if(i==="Object"&&o.constructor&&(i=o.constructor.name),i==="Map"||i==="Set")return Array.from(o);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return p(o,c)}}function p(o,c){(c==null||c>o.length)&&(c=o.length);for(var i=0,H=new Array(c);i=0&&fe>=0&&Ne<=window.innerHeight&&Le<=window.innerWidth;ve?w.current.focus():(ne(""),ye(!0),setTimeout(function(){var g;(g=F.current)===null||g===void 0||g.focus()}))}ce.key==="Escape"&&(ce.preventDefault(),ye(!1))};return document.addEventListener("keydown",oe),function(){return document.removeEventListener("keydown",oe)}},[]),e.createElement("div",{className:"dumi-default-search-bar"},e.createElement(R,{className:"dumi-default-search-bar-svg"}),e.createElement(C,{onFocus:function(){return k(!0)},onBlur:function(){setTimeout(function(){k(!1)},1)},onChange:function(se){return ne(se)},ref:w}),e.createElement("span",{className:"dumi-default-search-shortcut"},J," K"),ee.trim()&&H&&(ue.length||!ie)&&!ge&&e.createElement("div",{className:"dumi-default-search-popover"},e.createElement("section",null,e.createElement(T.Z,{data:ue,loading:ie}))),e.createElement(X,{visible:ge,onMaskClick:function(){ye(!1)},onClose:function(){return ne("")}},e.createElement("div",{style:{position:"relative"}},e.createElement(R,{className:"dumi-default-search-bar-svg"}),e.createElement(C,{onFocus:function(){return k(!0)},onBlur:function(){setTimeout(function(){k(!1)},1)},onChange:function(se){return ne(se)},ref:F})),e.createElement(T.Z,{data:ue,loading:ie,onItemSelect:function(){ye(!1)}}),e.createElement("footer",null,e.createElement("ul",{className:"dumi-default-search-modal-commands"},e.createElement("li",{className:"dumi-default-search-modal-commands-arrow"},e.createElement("span",{className:"dumi-default-search-modal-shortcut"},e.createElement(l,{width:"10px",height:"10px",fill:"rgba(0, 0, 0, 0.45)"})),e.createElement("span",{className:"dumi-default-search-modal-shortcut"},e.createElement(V,{width:"10px",height:"10px",fill:"rgba(0, 0, 0, 0.45)"})),e.createElement("span",{className:"dumi-default-search-modal-commands-text"},"to navigate")),e.createElement("li",null,e.createElement("span",{className:"dumi-default-search-modal-shortcut"},"esc"),e.createElement("span",{className:"dumi-default-search-modal-commands-text"},"to close"))))))},O=I},27191:function(A,S,a){"use strict";a.d(S,{Z:function(){return q}});var e=a(67294),m=Object.defineProperty,N=Object.getOwnPropertySymbols,j=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,z=(v,T,C)=>T in v?m(v,T,{enumerable:!0,configurable:!0,writable:!0,value:C}):v[T]=C,Y=(v,T)=>{for(var C in T||(T={}))j.call(T,C)&&z(v,C,T[C]);if(N)for(var C of N(T))h.call(T,C)&&z(v,C,T[C]);return v};const V=v=>e.createElement("svg",Y({viewBox:"0 0 1024 1024"},v),e.createElement("path",{d:"m885.2 446.3-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0 0 60.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}));var U="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0Ij48cGF0aCBkPSJtODg1LjIgNDQ2LjMtLjItLjgtMTEyLjItMjg1LjFjLTUtMTYuMS0xOS45LTI3LjItMzYuOC0yNy4ySDI4MS4yYy0xNyAwLTMyLjEgMTEuMy0zNi45IDI3LjZMMTM5LjQgNDQzbC0uMy43LS4yLjhjLTEuMyA0LjktMS43IDkuOS0xIDE0LjgtLjEgMS42LS4yIDMuMi0uMiA0LjhWODMwYTYwLjkgNjAuOSAwIDAgMCA2MC44IDYwLjhoNjI3LjJjMzMuNSAwIDYwLjgtMjcuMyA2MC45LTYwLjhWNDY0LjFjMC0xLjMgMC0yLjYtLjEtMy43LjQtNC45IDAtOS42LTEuMy0xNC4xem0tMjk1LjgtNDMtLjMgMTUuN2MtLjggNDQuOS0zMS44IDc1LjEtNzcuMSA3NS4xLTIyLjEgMC00MS4xLTcuMS01NC44LTIwLjZTNDM2IDQ0MS4yIDQzNS42IDQxOWwtLjMtMTUuN0gyMjkuNUwzMDkgMjEwaDM5OS4ybDgxLjcgMTkzLjNINTg5LjR6bS0zNzUgNzYuOGgxNTcuM2MyNC4zIDU3LjEgNzYgOTAuOCAxNDAuNCA5MC44IDMzLjcgMCA2NS05LjQgOTAuMy0yNy4yIDIyLjItMTUuNiAzOS41LTM3LjQgNTAuNy02My42aDE1Ni41VjgxNEgyMTQuNFY0ODAuMXoiLz48L3N2Zz4=",x=a(73847);function D(v,T){return l(v)||y(v,T)||G(v,T)||Z()}function Z(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G(v,T){if(v){if(typeof v=="string")return M(v,T);var C=Object.prototype.toString.call(v).slice(8,-1);if(C==="Object"&&v.constructor&&(C=v.constructor.name),C==="Map"||C==="Set")return Array.from(v);if(C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C))return M(v,T)}}function M(v,T){(T==null||T>v.length)&&(T=v.length);for(var C=0,X=new Array(T);C=0){var I,O=K.find(function(o){return o.type==="hint"&&o.activeIndex===p}).value;x.m8.push(O.link),(I=T.onItemSelect)===null||I===void 0||I.call(T,O),document.activeElement.blur()}["Escape","Enter"].includes(u.key)&&n(-1)};return document.addEventListener("keydown",t),function(){return document.removeEventListener("keydown",t)}}),e.createElement("div",{className:"dumi-default-search-result",onMouseEnter:function(){return n(-1)},onMouseDownCapture:function(r){return r.preventDefault()},onMouseUpCapture:function(){document.activeElement.blur()}},T.data.length||T.loading?e.createElement("dl",null,K.map(function(t,r){return t.type==="title"?e.createElement("dt",{key:String(r)},t.value.title):e.createElement("dd",{key:String(r)},e.createElement(x.rU,{to:t.value.link,"data-active":p===t.activeIndex||void 0,onClick:function(){var I;return(I=T.onItemSelect)===null||I===void 0?void 0:I.call(T,t.value)}},e.createElement(B[t.value.type]),e.createElement("h4",null,e.createElement(P,{texts:t.value.highlightTitleTexts})),e.createElement("p",null,e.createElement(P,{texts:t.value.highlightTexts}))))})):e.createElement("div",{className:"dumi-default-search-empty"},e.createElement(V,null),e.createElement(x._H,{id:"search.not.found"})))},q=R},11136:function(A,S,a){"use strict";a.d(S,{Z:function(){return h}});var e=a(73847),m=a(26687),N=a(67294),j=function(){var Y=(0,e.TH)(),V=Y.pathname,U=(0,e.eL)(),x=(0,e.tx)();return x?N.createElement("div",{className:"dumi-default-sidebar"},x.map(function(D,Z){return N.createElement("dl",{className:"dumi-default-sidebar-group",key:String(Z)},D.title&&N.createElement("dt",null,D.title),D.children.map(function(G){return N.createElement("dd",{key:G.link},N.createElement(e.OL,{to:G.link,title:G.title,end:!0},G.title),G.link===V&&U.frontmatter.toc==="menu"&&N.createElement(m.Z,null))}))})):null},h=j},42198:function(A,S,a){"use strict";a.d(S,{Z:function(){return ve}});var e=a(67294),m=Object.defineProperty,N=Object.getOwnPropertySymbols,j=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,z=(g,s,f)=>s in g?m(g,s,{enumerable:!0,configurable:!0,writable:!0,value:f}):g[s]=f,Y=(g,s)=>{for(var f in s||(s={}))j.call(s,f)&&z(g,f,s[f]);if(N)for(var f of N(s))h.call(s,f)&&z(g,f,s[f]);return g};const V=g=>e.createElement("svg",Y({viewBox:"64 64 896 896"},g),e.createElement("path",{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-32 736H663.9V602.2h104l15.6-120.7H663.9v-77.1c0-35 9.7-58.8 59.8-58.8h63.9v-108c-11.1-1.5-49-4.8-93.2-4.8-92.2 0-155.3 56.3-155.3 159.6v89H434.9v120.7h104.3V848H176V176h672v672z"}));var U="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNODgwIDExMkgxNDRjLTE3LjcgMC0zMiAxNC4zLTMyIDMydjczNmMwIDE3LjcgMTQuMyAzMiAzMiAzMmg3MzZjMTcuNyAwIDMyLTE0LjMgMzItMzJWMTQ0YzAtMTcuNy0xNC4zLTMyLTMyLTMyem0tMzIgNzM2SDY2My45VjYwMi4yaDEwNGwxNS42LTEyMC43SDY2My45di03Ny4xYzAtMzUgOS43LTU4LjggNTkuOC01OC44aDYzLjl2LTEwOGMtMTEuMS0xLjUtNDktNC44LTkzLjItNC44LTkyLjIgMC0xNTUuMyA1Ni4zLTE1NS4zIDE1OS42djg5SDQzNC45djEyMC43aDEwNC4zVjg0OEgxNzZWMTc2aDY3MnY2NzJ6Ii8+PC9zdmc+",x=Object.defineProperty,D=Object.getOwnPropertySymbols,Z=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable,M=(g,s,f)=>s in g?x(g,s,{enumerable:!0,configurable:!0,writable:!0,value:f}):g[s]=f,y=(g,s)=>{for(var f in s||(s={}))Z.call(s,f)&&M(g,f,s[f]);if(D)for(var f of D(s))G.call(s,f)&&M(g,f,s[f]);return g};const l=g=>e.createElement("svg",y({viewBox:"64 64 896 896"},g),e.createElement("path",{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0 1 38.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}));var d="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNNTExLjYgNzYuM0MyNjQuMyA3Ni4yIDY0IDI3Ni40IDY0IDUyMy41IDY0IDcxOC45IDE4OS4zIDg4NSAzNjMuOCA5NDZjMjMuNSA1LjkgMTkuOS0xMC44IDE5LjktMjIuMnYtNzcuNWMtMTM1LjcgMTUuOS0xNDEuMi03My45LTE1MC4zLTg4LjlDMjE1IDcyNiAxNzEuNSA3MTggMTg0LjUgNzAzYzMwLjktMTUuOSA2Mi40IDQgOTguOSA1Ny45IDI2LjQgMzkuMSA3Ny45IDMyLjUgMTA0IDI2IDUuNy0yMy41IDE3LjktNDQuNSAzNC43LTYwLjgtMTQwLjYtMjUuMi0xOTkuMi0xMTEtMTk5LjItMjEzIDAtNDkuNSAxNi4zLTk1IDQ4LjMtMTMxLjctMjAuNC02MC41IDEuOS0xMTIuMyA0LjktMTIwIDU4LjEtNS4yIDExOC41IDQxLjYgMTIzLjIgNDUuMyAzMy04LjkgNzAuNy0xMy42IDExMi45LTEzLjYgNDIuNCAwIDgwLjIgNC45IDExMy41IDEzLjkgMTEuMy04LjYgNjcuMy00OC44IDEyMS4zLTQzLjkgMi45IDcuNyAyNC43IDU4LjMgNS41IDExOCAzMi40IDM2LjggNDguOSA4Mi43IDQ4LjkgMTMyLjMgMCAxMDIuMi01OSAxODguMS0yMDAgMjEyLjlhMTI3LjUgMTI3LjUgMCAwIDEgMzguMSA5MXYxMTIuNWMuOCA5IDAgMTcuOSAxNSAxNy45IDE3Ny4xLTU5LjcgMzA0LjYtMjI3IDMwNC42LTQyNC4xIDAtMjQ3LjItMjAwLjQtNDQ3LjMtNDQ3LjUtNDQ3LjN6Ii8+PC9zdmc+",L=Object.defineProperty,E=Object.getOwnPropertySymbols,Q=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable,P=(g,s,f)=>s in g?L(g,s,{enumerable:!0,configurable:!0,writable:!0,value:f}):g[s]=f,W=(g,s)=>{for(var f in s||(s={}))Q.call(s,f)&&P(g,f,s[f]);if(E)for(var f of E(s))B.call(s,f)&&P(g,f,s[f]);return g};const R=g=>e.createElement("svg",W({viewBox:"64 64 896 896"},g),e.createElement("path",{d:"M913.9 552.2 805 181.4v-.1c-7.6-22.9-25.7-36.5-48.3-36.5-23.4 0-42.5 13.5-49.7 35.2l-71.4 213H388.8l-71.4-213c-7.2-21.7-26.3-35.2-49.7-35.2-23.1 0-42.5 14.8-48.4 36.6L110.5 552.2c-4.4 14.7 1.2 31.4 13.5 40.7l368.5 276.4c2.6 3.6 6.2 6.3 10.4 7.8l8.6 6.4 8.5-6.4c4.9-1.7 9-4.7 11.9-8.9l368.4-275.4c12.4-9.2 18-25.9 13.6-40.6zM751.7 193.4c1-1.8 2.9-1.9 3.5-1.9 1.1 0 2.5.3 3.4 3L818 394.3H684.5l67.2-200.9zm-487.4 1c.9-2.6 2.3-2.9 3.4-2.9 2.7 0 2.9.1 3.4 1.7l67.3 201.2H206.5l57.8-200zM158.8 558.7l28.2-97.3 202.4 270.2-230.6-172.9zm73.9-116.4h122.1l90.8 284.3-212.9-284.3zM512.9 776 405.7 442.3H620L512.9 776zm157.9-333.7h119.5L580 723.1l90.8-280.8zm-40.7 293.9 207.3-276.7 29.5 99.2-236.8 177.5z"}));var q="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNOTEzLjkgNTUyLjIgODA1IDE4MS40di0uMWMtNy42LTIyLjktMjUuNy0zNi41LTQ4LjMtMzYuNS0yMy40IDAtNDIuNSAxMy41LTQ5LjcgMzUuMmwtNzEuNCAyMTNIMzg4LjhsLTcxLjQtMjEzYy03LjItMjEuNy0yNi4zLTM1LjItNDkuNy0zNS4yLTIzLjEgMC00Mi41IDE0LjgtNDguNCAzNi42TDExMC41IDU1Mi4yYy00LjQgMTQuNyAxLjIgMzEuNCAxMy41IDQwLjdsMzY4LjUgMjc2LjRjMi42IDMuNiA2LjIgNi4zIDEwLjQgNy44bDguNiA2LjQgOC41LTYuNGM0LjktMS43IDktNC43IDExLjktOC45bDM2OC40LTI3NS40YzEyLjQtOS4yIDE4LTI1LjkgMTMuNi00MC42ek03NTEuNyAxOTMuNGMxLTEuOCAyLjktMS45IDMuNS0xLjkgMS4xIDAgMi41LjMgMy40IDNMODE4IDM5NC4zSDY4NC41bDY3LjItMjAwLjl6bS00ODcuNCAxYy45LTIuNiAyLjMtMi45IDMuNC0yLjkgMi43IDAgMi45LjEgMy40IDEuN2w2Ny4zIDIwMS4ySDIwNi41bDU3LjgtMjAwek0xNTguOCA1NTguN2wyOC4yLTk3LjMgMjAyLjQgMjcwLjItMjMwLjYtMTcyLjl6bTczLjktMTE2LjRoMTIyLjFsOTAuOCAyODQuMy0yMTIuOS0yODQuM3pNNTEyLjkgNzc2IDQwNS43IDQ0Mi4zSDYyMEw1MTIuOSA3NzZ6bTE1Ny45LTMzMy43aDExOS41TDU4MCA3MjMuMWw5MC44LTI4MC44em0tNDAuNyAyOTMuOSAyMDcuMy0yNzYuNyAyOS41IDk5LjItMjM2LjggMTc3LjV6Ii8+PC9zdmc+",v=Object.defineProperty,T=Object.getOwnPropertySymbols,C=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable,K=(g,s,f)=>s in g?v(g,s,{enumerable:!0,configurable:!0,writable:!0,value:f}):g[s]=f,_=(g,s)=>{for(var f in s||(s={}))C.call(s,f)&&K(g,f,s[f]);if(T)for(var f of T(s))X.call(s,f)&&K(g,f,s[f]);return g};const le=g=>e.createElement("svg",_({viewBox:"64 64 896 896"},g),e.createElement("path",{d:"M847.7 112H176.3c-35.5 0-64.3 28.8-64.3 64.3v671.4c0 35.5 28.8 64.3 64.3 64.3h671.4c35.5 0 64.3-28.8 64.3-64.3V176.3c0-35.5-28.8-64.3-64.3-64.3zm0 736c-447.8-.1-671.7-.2-671.7-.3.1-447.8.2-671.7.3-671.7 447.8.1 671.7.2 671.7.3-.1 447.8-.2 671.7-.3 671.7zM230.6 411.9h118.7v381.8H230.6zm59.4-52.2c37.9 0 68.8-30.8 68.8-68.8a68.8 68.8 0 1 0-137.6 0c-.1 38 30.7 68.8 68.8 68.8zm252.3 245.1c0-49.8 9.5-98 71.2-98 60.8 0 61.7 56.9 61.7 101.2v185.7h118.6V584.3c0-102.8-22.2-181.9-142.3-181.9-57.7 0-96.4 31.7-112.3 61.7h-1.6v-52.2H423.7v381.8h118.6V604.8z"}));var ae="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNODQ3LjcgMTEySDE3Ni4zYy0zNS41IDAtNjQuMyAyOC44LTY0LjMgNjQuM3Y2NzEuNGMwIDM1LjUgMjguOCA2NC4zIDY0LjMgNjQuM2g2NzEuNGMzNS41IDAgNjQuMy0yOC44IDY0LjMtNjQuM1YxNzYuM2MwLTM1LjUtMjguOC02NC4zLTY0LjMtNjQuM3ptMCA3MzZjLTQ0Ny44LS4xLTY3MS43LS4yLTY3MS43LS4zLjEtNDQ3LjguMi02NzEuNy4zLTY3MS43IDQ0Ny44LjEgNjcxLjcuMiA2NzEuNy4zLS4xIDQ0Ny44LS4yIDY3MS43LS4zIDY3MS43ek0yMzAuNiA0MTEuOWgxMTguN3YzODEuOEgyMzAuNnptNTkuNC01Mi4yYzM3LjkgMCA2OC44LTMwLjggNjguOC02OC44YTY4LjggNjguOCAwIDEgMC0xMzcuNiAwYy0uMSAzOCAzMC43IDY4LjggNjguOCA2OC44em0yNTIuMyAyNDUuMWMwLTQ5LjggOS41LTk4IDcxLjItOTggNjAuOCAwIDYxLjcgNTYuOSA2MS43IDEwMS4ydjE4NS43aDExOC42VjU4NC4zYzAtMTAyLjgtMjIuMi0xODEuOS0xNDIuMy0xODEuOS01Ny43IDAtOTYuNCAzMS43LTExMi4zIDYxLjdoLTEuNnYtNTIuMkg0MjMuN3YzODEuOGgxMTguNlY2MDQuOHoiLz48L3N2Zz4=",p=Object.defineProperty,n=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,u=(g,s,f)=>s in g?p(g,s,{enumerable:!0,configurable:!0,writable:!0,value:f}):g[s]=f,I=(g,s)=>{for(var f in s||(s={}))t.call(s,f)&&u(g,f,s[f]);if(n)for(var f of n(s))r.call(s,f)&&u(g,f,s[f]);return g};const O=g=>e.createElement("svg",I({viewBox:"64 64 896 896"},g),e.createElement("path",{d:"M928 254.3c-30.6 13.2-63.9 22.7-98.2 26.4a170.1 170.1 0 0 0 75-94 336.64 336.64 0 0 1-108.2 41.2A170.1 170.1 0 0 0 672 174c-94.5 0-170.5 76.6-170.5 170.6 0 13.2 1.6 26.4 4.2 39.1-141.5-7.4-267.7-75-351.6-178.5a169.32 169.32 0 0 0-23.2 86.1c0 59.2 30.1 111.4 76 142.1a172 172 0 0 1-77.1-21.7v2.1c0 82.9 58.6 151.6 136.7 167.4a180.6 180.6 0 0 1-44.9 5.8c-11.1 0-21.6-1.1-32.2-2.6C211 652 273.9 701.1 348.8 702.7c-58.6 45.9-132 72.9-211.7 72.9-14.3 0-27.5-.5-41.2-2.1C171.5 822 261.2 850 357.8 850 671.4 850 843 590.2 843 364.7c0-7.4 0-14.8-.5-22.2 33.2-24.3 62.3-54.4 85.5-88.2z"}));var o="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNOTI4IDI1NC4zYy0zMC42IDEzLjItNjMuOSAyMi43LTk4LjIgMjYuNGExNzAuMSAxNzAuMSAwIDAgMCA3NS05NCAzMzYuNjQgMzM2LjY0IDAgMCAxLTEwOC4yIDQxLjJBMTcwLjEgMTcwLjEgMCAwIDAgNjcyIDE3NGMtOTQuNSAwLTE3MC41IDc2LjYtMTcwLjUgMTcwLjYgMCAxMy4yIDEuNiAyNi40IDQuMiAzOS4xLTE0MS41LTcuNC0yNjcuNy03NS0zNTEuNi0xNzguNWExNjkuMzIgMTY5LjMyIDAgMCAwLTIzLjIgODYuMWMwIDU5LjIgMzAuMSAxMTEuNCA3NiAxNDIuMWExNzIgMTcyIDAgMCAxLTc3LjEtMjEuN3YyLjFjMCA4Mi45IDU4LjYgMTUxLjYgMTM2LjcgMTY3LjRhMTgwLjYgMTgwLjYgMCAwIDEtNDQuOSA1LjhjLTExLjEgMC0yMS42LTEuMS0zMi4yLTIuNkMyMTEgNjUyIDI3My45IDcwMS4xIDM0OC44IDcwMi43Yy01OC42IDQ1LjktMTMyIDcyLjktMjExLjcgNzIuOS0xNC4zIDAtMjcuNS0uNS00MS4yLTIuMUMxNzEuNSA4MjIgMjYxLjIgODUwIDM1Ny44IDg1MCA2NzEuNCA4NTAgODQzIDU5MC4yIDg0MyAzNjQuN2MwLTcuNCAwLTE0LjgtLjUtMjIuMiAzMy4yLTI0LjMgNjIuMy01NC40IDg1LjUtODguMnoiLz48L3N2Zz4=",c=Object.defineProperty,i=Object.getOwnPropertySymbols,H=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable,w=(g,s,f)=>s in g?c(g,s,{enumerable:!0,configurable:!0,writable:!0,value:f}):g[s]=f,F=(g,s)=>{for(var f in s||(s={}))H.call(s,f)&&w(g,f,s[f]);if(i)for(var f of i(s))k.call(s,f)&&w(g,f,s[f]);return g};const te=g=>e.createElement("svg",F({viewBox:"64 64 896 896"},g),e.createElement("path",{d:"M457.3 543c-68.1-17.7-145 16.2-174.6 76.2-30.1 61.2-1 129.1 67.8 151.3 71.2 23 155.2-12.2 184.4-78.3 28.7-64.6-7.2-131-77.6-149.2zm-52 156.2c-13.8 22.1-43.5 31.7-65.8 21.6-22-10-28.5-35.7-14.6-57.2 13.7-21.4 42.3-31 64.4-21.7 22.4 9.5 29.6 35 16 57.3zm45.5-58.5c-5 8.6-16.1 12.7-24.7 9.1-8.5-3.5-11.2-13.1-6.4-21.5 5-8.4 15.6-12.4 24.1-9.1 8.7 3.2 11.8 12.9 7 21.5zm334.5-197.2c15 4.8 31-3.4 35.9-18.3 11.8-36.6 4.4-78.4-23.2-109a111.39 111.39 0 0 0-106-34.3 28.45 28.45 0 0 0-21.9 33.8 28.39 28.39 0 0 0 33.8 21.8c18.4-3.9 38.3 1.8 51.9 16.7a54.2 54.2 0 0 1 11.3 53.3 28.45 28.45 0 0 0 18.2 36zm99.8-206c-56.7-62.9-140.4-86.9-217.7-70.5a32.98 32.98 0 0 0-25.4 39.3 33.12 33.12 0 0 0 39.3 25.5c55-11.7 114.4 5.4 154.8 50.1 40.3 44.7 51.2 105.7 34 159.1-5.6 17.4 3.9 36 21.3 41.7 17.4 5.6 36-3.9 41.6-21.2v-.1c24.1-75.4 8.9-161.1-47.9-223.9zM729 499c-12.2-3.6-20.5-6.1-14.1-22.1 13.8-34.7 15.2-64.7.3-86-28-40.1-104.8-37.9-192.8-1.1 0 0-27.6 12.1-20.6-9.8 13.5-43.5 11.5-79.9-9.6-101-47.7-47.8-174.6 1.8-283.5 110.6C127.3 471.1 80 557.5 80 632.2 80 775.1 263.2 862 442.5 862c235 0 391.3-136.5 391.3-245 0-65.5-55.2-102.6-104.8-118zM443 810.8c-143 14.1-266.5-50.5-275.8-144.5-9.3-93.9 99.2-181.5 242.2-195.6 143-14.2 266.5 50.5 275.8 144.4C694.4 709 586 796.6 443 810.8z"}));var $="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNNDU3LjMgNTQzYy02OC4xLTE3LjctMTQ1IDE2LjItMTc0LjYgNzYuMi0zMC4xIDYxLjItMSAxMjkuMSA2Ny44IDE1MS4zIDcxLjIgMjMgMTU1LjItMTIuMiAxODQuNC03OC4zIDI4LjctNjQuNi03LjItMTMxLTc3LjYtMTQ5LjJ6bS01MiAxNTYuMmMtMTMuOCAyMi4xLTQzLjUgMzEuNy02NS44IDIxLjYtMjItMTAtMjguNS0zNS43LTE0LjYtNTcuMiAxMy43LTIxLjQgNDIuMy0zMSA2NC40LTIxLjcgMjIuNCA5LjUgMjkuNiAzNSAxNiA1Ny4zem00NS41LTU4LjVjLTUgOC42LTE2LjEgMTIuNy0yNC43IDkuMS04LjUtMy41LTExLjItMTMuMS02LjQtMjEuNSA1LTguNCAxNS42LTEyLjQgMjQuMS05LjEgOC43IDMuMiAxMS44IDEyLjkgNyAyMS41em0zMzQuNS0xOTcuMmMxNSA0LjggMzEtMy40IDM1LjktMTguMyAxMS44LTM2LjYgNC40LTc4LjQtMjMuMi0xMDlhMTExLjM5IDExMS4zOSAwIDAgMC0xMDYtMzQuMyAyOC40NSAyOC40NSAwIDAgMC0yMS45IDMzLjggMjguMzkgMjguMzkgMCAwIDAgMzMuOCAyMS44YzE4LjQtMy45IDM4LjMgMS44IDUxLjkgMTYuN2E1NC4yIDU0LjIgMCAwIDEgMTEuMyA1My4zIDI4LjQ1IDI4LjQ1IDAgMCAwIDE4LjIgMzZ6bTk5LjgtMjA2Yy01Ni43LTYyLjktMTQwLjQtODYuOS0yMTcuNy03MC41YTMyLjk4IDMyLjk4IDAgMCAwLTI1LjQgMzkuMyAzMy4xMiAzMy4xMiAwIDAgMCAzOS4zIDI1LjVjNTUtMTEuNyAxMTQuNCA1LjQgMTU0LjggNTAuMSA0MC4zIDQ0LjcgNTEuMiAxMDUuNyAzNCAxNTkuMS01LjYgMTcuNCAzLjkgMzYgMjEuMyA0MS43IDE3LjQgNS42IDM2LTMuOSA0MS42LTIxLjJ2LS4xYzI0LjEtNzUuNCA4LjktMTYxLjEtNDcuOS0yMjMuOXpNNzI5IDQ5OWMtMTIuMi0zLjYtMjAuNS02LjEtMTQuMS0yMi4xIDEzLjgtMzQuNyAxNS4yLTY0LjcuMy04Ni0yOC00MC4xLTEwNC44LTM3LjktMTkyLjgtMS4xIDAgMC0yNy42IDEyLjEtMjAuNi05LjggMTMuNS00My41IDExLjUtNzkuOS05LjYtMTAxLTQ3LjctNDcuOC0xNzQuNiAxLjgtMjgzLjUgMTEwLjZDMTI3LjMgNDcxLjEgODAgNTU3LjUgODAgNjMyLjIgODAgNzc1LjEgMjYzLjIgODYyIDQ0Mi41IDg2MmMyMzUgMCAzOTEuMy0xMzYuNSAzOTEuMy0yNDUgMC02NS41LTU1LjItMTAyLjYtMTA0LjgtMTE4ek00NDMgODEwLjhjLTE0MyAxNC4xLTI2Ni41LTUwLjUtMjc1LjgtMTQ0LjUtOS4zLTkzLjkgOTkuMi0xODEuNSAyNDIuMi0xOTUuNiAxNDMtMTQuMiAyNjYuNSA1MC41IDI3NS44IDE0NC40QzY5NC40IDcwOSA1ODYgNzk2LjYgNDQzIDgxMC44eiIvPjwvc3ZnPg==",J=Object.defineProperty,b=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ne=(g,s,f)=>s in g?J(g,s,{enumerable:!0,configurable:!0,writable:!0,value:f}):g[s]=f,ue=(g,s)=>{for(var f in s||(s={}))re.call(s,f)&&ne(g,f,s[f]);if(b)for(var f of b(s))ee.call(s,f)&&ne(g,f,s[f]);return g};const ie=g=>e.createElement("svg",ue({viewBox:"64 64 896 896"},g),e.createElement("path",{d:"M854.6 370.6c-9.9-39.4 9.9-102.2 73.4-124.4l-67.9-3.6s-25.7-90-143.6-98c-117.8-8.1-194.9-3-195-3 .1 0 87.4 55.6 52.4 154.7-25.6 52.5-65.8 95.6-108.8 144.7-1.3 1.3-2.5 2.6-3.5 3.7C319.4 605 96 860 96 860c245.9 64.4 410.7-6.3 508.2-91.1 20.5-.2 35.9-.3 46.3-.3 135.8 0 250.6-117.6 245.9-248.4-3.2-89.9-31.9-110.2-41.8-149.6zm-204.1 334c-10.6 0-26.2.1-46.8.3l-23.6.2-17.8 15.5c-47.1 41-104.4 71.5-171.4 87.6-52.5 12.6-110 16.2-172.7 9.6 18-20.5 36.5-41.6 55.4-63.1 92-104.6 173.8-197.5 236.9-268.5l1.4-1.4 1.3-1.5c4.1-4.6 20.6-23.3 24.7-28.1 9.7-11.1 17.3-19.9 24.5-28.6 30.7-36.7 52.2-67.8 69-102.2l1.6-3.3 1.2-3.4c13.7-38.8 15.4-76.9 6.2-112.8 22.5.7 46.5 1.9 71.7 3.6 33.3 2.3 55.5 12.9 71.1 29.2 5.8 6 10.2 12.5 13.4 18.7 1 2 1.7 3.6 2.3 5l5 17.7c-15.7 34.5-19.9 73.3-11.4 107.2 3 11.8 6.9 22.4 12.3 34.4 2.1 4.7 9.5 20.1 11 23.3 10.3 22.7 15.4 43 16.7 78.7 3.3 94.6-82.7 181.9-182 181.9z"}));var de="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNODU0LjYgMzcwLjZjLTkuOS0zOS40IDkuOS0xMDIuMiA3My40LTEyNC40bC02Ny45LTMuNnMtMjUuNy05MC0xNDMuNi05OGMtMTE3LjgtOC4xLTE5NC45LTMtMTk1LTMgLjEgMCA4Ny40IDU1LjYgNTIuNCAxNTQuNy0yNS42IDUyLjUtNjUuOCA5NS42LTEwOC44IDE0NC43LTEuMyAxLjMtMi41IDIuNi0zLjUgMy43QzMxOS40IDYwNSA5NiA4NjAgOTYgODYwYzI0NS45IDY0LjQgNDEwLjctNi4zIDUwOC4yLTkxLjEgMjAuNS0uMiAzNS45LS4zIDQ2LjMtLjMgMTM1LjggMCAyNTAuNi0xMTcuNiAyNDUuOS0yNDguNC0zLjItODkuOS0zMS45LTExMC4yLTQxLjgtMTQ5LjZ6bS0yMDQuMSAzMzRjLTEwLjYgMC0yNi4yLjEtNDYuOC4zbC0yMy42LjItMTcuOCAxNS41Yy00Ny4xIDQxLTEwNC40IDcxLjUtMTcxLjQgODcuNi01Mi41IDEyLjYtMTEwIDE2LjItMTcyLjcgOS42IDE4LTIwLjUgMzYuNS00MS42IDU1LjQtNjMuMSA5Mi0xMDQuNiAxNzMuOC0xOTcuNSAyMzYuOS0yNjguNWwxLjQtMS40IDEuMy0xLjVjNC4xLTQuNiAyMC42LTIzLjMgMjQuNy0yOC4xIDkuNy0xMS4xIDE3LjMtMTkuOSAyNC41LTI4LjYgMzAuNy0zNi43IDUyLjItNjcuOCA2OS0xMDIuMmwxLjYtMy4zIDEuMi0zLjRjMTMuNy0zOC44IDE1LjQtNzYuOSA2LjItMTEyLjggMjIuNS43IDQ2LjUgMS45IDcxLjcgMy42IDMzLjMgMi4zIDU1LjUgMTIuOSA3MS4xIDI5LjIgNS44IDYgMTAuMiAxMi41IDEzLjQgMTguNyAxIDIgMS43IDMuNiAyLjMgNWw1IDE3LjdjLTE1LjcgMzQuNS0xOS45IDczLjMtMTEuNCAxMDcuMiAzIDExLjggNi45IDIyLjQgMTIuMyAzNC40IDIuMSA0LjcgOS41IDIwLjEgMTEgMjMuMyAxMC4zIDIyLjcgMTUuNCA0MyAxNi43IDc4LjcgMy4zIDk0LjYtODIuNyAxODEuOS0xODIgMTgxLjl6Ii8+PC9zdmc+",me=Object.defineProperty,ge=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,se=(g,s,f)=>s in g?me(g,s,{enumerable:!0,configurable:!0,writable:!0,value:f}):g[s]=f,ce=(g,s)=>{for(var f in s||(s={}))ye.call(s,f)&&se(g,f,s[f]);if(ge)for(var f of ge(s))oe.call(s,f)&&se(g,f,s[f]);return g};const Me=g=>e.createElement("svg",ce({viewBox:"64 64 896 896"},g),e.createElement("path",{d:"M564.7 230.1V803h60l25.2 71.4L756.3 803h131.5V230.1H564.7zm247.7 497h-59.9l-75.1 50.4-17.8-50.4h-18V308.3h170.7v418.8zM526.1 486.9H393.3c2.1-44.9 4.3-104.3 6.6-172.9h130.9l-.1-8.1c0-.6-.2-14.7-2.3-29.1-2.1-15-6.6-34.9-21-34.9H287.8c4.4-20.6 15.7-69.7 29.4-93.8l6.4-11.2-12.9-.7c-.8 0-19.6-.9-41.4 10.6-35.7 19-51.7 56.4-58.7 84.4-18.4 73.1-44.6 123.9-55.7 145.6-3.3 6.4-5.3 10.2-6.2 12.8-1.8 4.9-.8 9.8 2.8 13 10.5 9.5 38.2-2.9 38.5-3 .6-.3 1.3-.6 2.2-1 13.9-6.3 55.1-25 69.8-84.5h56.7c.7 32.2 3.1 138.4 2.9 172.9h-141l-2.1 1.5c-23.1 16.9-30.5 63.2-30.8 65.2l-1.4 9.2h167c-12.3 78.3-26.5 113.4-34 127.4-3.7 7-7.3 14-10.7 20.8-21.3 42.2-43.4 85.8-126.3 153.6-3.6 2.8-7 8-4.8 13.7 2.4 6.3 9.3 9.1 24.6 9.1 5.4 0 11.8-.3 19.4-1 49.9-4.4 100.8-18 135.1-87.6 17-35.1 31.7-71.7 43.9-108.9L497 850l5-12c.8-1.9 19-46.3 5.1-95.9l-.5-1.8-108.1-123-22 16.6c6.4-26.1 10.6-49.9 12.5-71.1h158.7v-8c0-40.1-18.5-63.9-19.2-64.9l-2.4-3z"}));var Ae="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSI2NCA2NCA4OTYgODk2Ij48cGF0aCBkPSJNNTY0LjcgMjMwLjFWODAzaDYwbDI1LjIgNzEuNEw3NTYuMyA4MDNoMTMxLjVWMjMwLjFINTY0Ljd6bTI0Ny43IDQ5N2gtNTkuOWwtNzUuMSA1MC40LTE3LjgtNTAuNGgtMThWMzA4LjNoMTcwLjd2NDE4Ljh6TTUyNi4xIDQ4Ni45SDM5My4zYzIuMS00NC45IDQuMy0xMDQuMyA2LjYtMTcyLjloMTMwLjlsLS4xLTguMWMwLS42LS4yLTE0LjctMi4zLTI5LjEtMi4xLTE1LTYuNi0zNC45LTIxLTM0LjlIMjg3LjhjNC40LTIwLjYgMTUuNy02OS43IDI5LjQtOTMuOGw2LjQtMTEuMi0xMi45LS43Yy0uOCAwLTE5LjYtLjktNDEuNCAxMC42LTM1LjcgMTktNTEuNyA1Ni40LTU4LjcgODQuNC0xOC40IDczLjEtNDQuNiAxMjMuOS01NS43IDE0NS42LTMuMyA2LjQtNS4zIDEwLjItNi4yIDEyLjgtMS44IDQuOS0uOCA5LjggMi44IDEzIDEwLjUgOS41IDM4LjItMi45IDM4LjUtMyAuNi0uMyAxLjMtLjYgMi4yLTEgMTMuOS02LjMgNTUuMS0yNSA2OS44LTg0LjVoNTYuN2MuNyAzMi4yIDMuMSAxMzguNCAyLjkgMTcyLjloLTE0MWwtMi4xIDEuNWMtMjMuMSAxNi45LTMwLjUgNjMuMi0zMC44IDY1LjJsLTEuNCA5LjJoMTY3Yy0xMi4zIDc4LjMtMjYuNSAxMTMuNC0zNCAxMjcuNC0zLjcgNy03LjMgMTQtMTAuNyAyMC44LTIxLjMgNDIuMi00My40IDg1LjgtMTI2LjMgMTUzLjYtMy42IDIuOC03IDgtNC44IDEzLjcgMi40IDYuMyA5LjMgOS4xIDI0LjYgOS4xIDUuNCAwIDExLjgtLjMgMTkuNC0xIDQ5LjktNC40IDEwMC44LTE4IDEzNS4xLTg3LjYgMTctMzUuMSAzMS43LTcxLjcgNDMuOS0xMDguOUw0OTcgODUwbDUtMTJjLjgtMS45IDE5LTQ2LjMgNS4xLTk1LjlsLS41LTEuOC0xMDguMS0xMjMtMjIgMTYuNmM2LjQtMjYuMSAxMC42LTQ5LjkgMTIuNS03MS4xaDE1OC43di04YzAtNDAuMS0xOC41LTYzLjktMTkuMi02NC45bC0yLjQtM3oiLz48L3N2Zz4=",Ne=a(86896),fe={github:l,weibo:te,twitter:O,gitlab:R,facebook:V,zhihu:Me,yuque:ie,linkedin:le},Le=function(s){var f=s.icon,je=s.link,pe=(0,Ne.Z)(),Ie=(0,e.useMemo)(function(){return{Icon:fe[f],link:je}},[f,je]);return e.createElement("a",{className:"dumi-default-icon","data-dumi-tooltip":pe.formatMessage({id:"header.social.".concat(f)}),"data-dumi-tooltip-bottom":!0,target:"_blank",href:Ie.link,rel:"noreferrer"},e.createElement(Ie.Icon,null))},ve=Le},28737:function(A,S,a){"use strict";a.d(S,{Z:function(){return ae}});var e=a(861),m=a.n(e),N=a(27424),j=a.n(N),h=a(67294),z=a(56690),Y=a.n(z),V=a(89728),U=a.n(V),x=a(66115),D=a.n(x),Z=a(61655),G=a.n(Z),M=a(26389),y=a.n(M),l=a(38416),d=a.n(l),L=U()(function p(){Y()(this,p)}),E=function(p){G()(t,p);var n=y()(t);function t(r){var u;return Y()(this,t),u=n.call(this),d()(D()(u),"el",void 0),u.el=r,u}return U()(t,[{key:"top",get:function(){return this.el.getBoundingClientRect().top}},{key:"outerHeight",get:function(){return this.el.getBoundingClientRect().height}},{key:"scrollTop",get:function(){return this.el.scrollTop}},{key:"scrollHeight",get:function(){return this.el.scrollHeight}},{key:"isScrolledToBottom",value:function(){return this.scrollTop+this.outerHeight>=this.scrollHeight}},{key:"registerScrollEvent",value:function(u){this.el.addEventListener("scroll",u)}},{key:"unregisterScrollEvent",value:function(u){this.el.removeEventListener("scroll",u)}}],[{key:"create",value:function(u){var I=document.querySelector(u);if(!I)throw new Error("element is not found.");return new t(I)}}]),t}(L),Q=function(p){G()(t,p);var n=y()(t);function t(){return Y()(this,t),n.apply(this,arguments)}return U()(t,[{key:"outerHeight",get:function(){return window.innerHeight}},{key:"scrollTop",get:function(){return document.documentElement.scrollTop}},{key:"scrollHeight",get:function(){return document.documentElement.scrollHeight}},{key:"isScrolledToBottom",value:function(){return this.scrollTop+this.outerHeight>=this.scrollHeight}},{key:"registerScrollEvent",value:function(u){document.addEventListener("scroll",u)}},{key:"unregisterScrollEvent",value:function(u){document.removeEventListener("scroll",u)}}],[{key:"create",value:function(){return new t}}]),t}(L),B=function(){function p(){Y()(this,p)}return U()(p,null,[{key:"create",value:function(t){return t?E.create(t):Q.create()}}]),p}(),P=function(n){var t=n.sectionRefs,r=n.rootSelector,u=n.offset,I=u===void 0?0:u,O=(0,h.useRef)(null);(0,h.useEffect)(function(){O.current=B.create(r)},[r]);var o=(0,h.useCallback)(function(){return O.current?O.current.isScrolledToBottom():!1},[O]),c=(0,h.useCallback)(function(J){if(!O.current)return!1;var b=O.current.scrollTop,re=b+O.current.outerHeight,ee=J.getBoundingClientRect(),ne=O.current instanceof E?b+ee.top-O.current.top+I:b+ee.top+I,ue=ne+ee.height;return[neb].every(function(ie){return ie})},[O,I]),i=(0,h.useCallback)(function(){return t.map(function(J){return J.current?c(J.current):!1})},[c,t]),H=(0,h.useState)([]),k=j()(H,2),w=k[0],F=k[1],te=(0,h.useMemo)(function(){return w.findIndex(function(J){return J})},[w]),$=(0,h.useCallback)(function(){var J=o()?[].concat(m()(new Array(t.length-1).fill(!1).map(function(b){return b})),[!0]):i();F(J)},[i,o,t]);return(0,h.useEffect)(function(){return $(),O.current&&O.current.registerScrollEvent($),function(){O.current&&O.current.unregisterScrollEvent($)}},[$]),{elementsStatusInViewport:w,currentElementIndexInViewport:te}},W=function(n){var t=n.children,r=n.sectionRefs,u=n.rootSelector,I=n.offset,O=P({sectionRefs:r,rootSelector:u,offset:I}),o=O.elementsStatusInViewport,c=O.currentElementIndexInViewport;return t({elementsStatusInViewport:o,currentElementIndexInViewport:c})},R=a(73847);function q(){return q=Object.assign?Object.assign.bind():function(p){for(var n=1;np.length)&&(n=p.length);for(var t=0,r=new Array(n);t1&&b<4})},[I,O]);return(0,h.useEffect)(function(){if(!c){var $=te.map(function(J){var b=J.id;return{current:document.getElementById(b)}});F($)}},[t,r,c,te]),w.length?h.createElement(W,{sectionRefs:w},function($){var J=$.currentElementIndexInViewport;return J>-1&&(i.current=J),h.createElement("ul",{className:"dumi-default-toc"},te.filter(function(b){var re=b.depth;return re>1&&re<4}).map(function(b,re){var ee="".concat(r,"#").concat(encodeURIComponent(b.id)),ne=J>-1?J:i.current;return h.createElement("li",{key:b.id,"data-depth":b.depth},h.createElement(R.rU,q({to:ee,onClickCapture:function(){decodeURIComponent(u).slice(1)===b.id&&R.m8.replace("".concat(t).concat(r))},title:b.title},ne===re?{className:"active"}:{}),b.title))}))}):null},ae=le},63405:function(A,S,a){var e=a(73897);function m(N){if(Array.isArray(N))return e(N)}A.exports=m,A.exports.__esModule=!0,A.exports.default=A.exports},66115:function(A){function S(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}A.exports=S,A.exports.__esModule=!0,A.exports.default=A.exports},26389:function(A,S,a){var e=a(73808),m=a(69617),N=a(94993);function j(h){var z=m();return function(){var V=e(h),U;if(z){var x=e(this).constructor;U=Reflect.construct(V,arguments,x)}else U=V.apply(this,arguments);return N(this,U)}}A.exports=j,A.exports.__esModule=!0,A.exports.default=A.exports},73808:function(A){function S(a){return A.exports=S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(m){return m.__proto__||Object.getPrototypeOf(m)},A.exports.__esModule=!0,A.exports.default=A.exports,S(a)}A.exports=S,A.exports.__esModule=!0,A.exports.default=A.exports},61655:function(A,S,a){var e=a(6015);function m(N,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(j&&j.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),Object.defineProperty(N,"prototype",{writable:!1}),j&&e(N,j)}A.exports=m,A.exports.__esModule=!0,A.exports.default=A.exports},69617:function(A){function S(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}A.exports=S,A.exports.__esModule=!0,A.exports.default=A.exports},79498:function(A){function S(a){if(typeof Symbol!="undefined"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}A.exports=S,A.exports.__esModule=!0,A.exports.default=A.exports},42281:function(A){function S(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}A.exports=S,A.exports.__esModule=!0,A.exports.default=A.exports},94993:function(A,S,a){var e=a(18698).default,m=a(66115);function N(j,h){if(h&&(e(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return m(j)}A.exports=N,A.exports.__esModule=!0,A.exports.default=A.exports},6015:function(A){function S(a,e){return A.exports=S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(N,j){return N.__proto__=j,N},A.exports.__esModule=!0,A.exports.default=A.exports,S(a,e)}A.exports=S,A.exports.__esModule=!0,A.exports.default=A.exports},861:function(A,S,a){var e=a(63405),m=a(79498),N=a(86116),j=a(42281);function h(z){return e(z)||m(z)||N(z)||j()}A.exports=h,A.exports.__esModule=!0,A.exports.default=A.exports}}]); diff --git a/809.c309a377.async.js b/809.c309a377.async.js new file mode 100644 index 0000000..d7beef2 --- /dev/null +++ b/809.c309a377.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_antv_l7_editor=self.webpackChunk_antv_l7_editor||[]).push([[809],{92809:function(k,a,s){s.r(a),s.d(a,{conf:function(){return b},language:function(){return y}});var g=s(57020);var l=Object.defineProperty,d=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,m=Object.prototype.hasOwnProperty,c=(r,t,i,p)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of u(t))!m.call(r,o)&&o!==i&&l(r,o,{get:()=>t[o],enumerable:!(p=d(t,o))||p.enumerable});return r},f=(r,t,i)=>(c(r,t,"default"),i&&c(i,t,"default")),n={};f(n,g);var x={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:n.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:n.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:n.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:n.languages.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},e={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","out","package","private","protected","public","override","readonly","require","global","return","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<",">",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([dgimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}};var b=x,y={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:e.operators,symbols:e.symbols,escapes:e.escapes,digits:e.digits,octaldigits:e.octaldigits,binarydigits:e.binarydigits,hexdigits:e.hexdigits,regexpctl:e.regexpctl,regexpesc:e.regexpesc,tokenizer:e.tokenizer}}}]); diff --git a/442.674197f2.chunk.css b/820.674197f2.chunk.css similarity index 100% rename from 442.674197f2.chunk.css rename to 820.674197f2.chunk.css diff --git a/442.1ba04833.async.js b/820.d14f0d54.async.js similarity index 64% rename from 442.1ba04833.async.js rename to 820.d14f0d54.async.js index af2d4a4..1aadb88 100644 --- a/442.1ba04833.async.js +++ b/820.d14f0d54.async.js @@ -1,5 +1,5 @@ -!(function(){var lpe=Object.defineProperty,upe=Object.defineProperties;var cpe=Object.getOwnPropertyDescriptors;var HB=Object.getOwnPropertySymbols;var $ee=Object.prototype.hasOwnProperty,jee=Object.prototype.propertyIsEnumerable;var u1=Math.pow,VK=(nt,V,m)=>V in nt?lpe(nt,V,{enumerable:!0,configurable:!0,writable:!0,value:m}):nt[V]=m,ef=(nt,V)=>{for(var m in V||(V={}))$ee.call(V,m)&&VK(nt,m,V[m]);if(HB)for(var m of HB(V))jee.call(V,m)&&VK(nt,m,V[m]);return nt},X0=(nt,V)=>upe(nt,cpe(V));var mS=(nt,V)=>{var m={};for(var y in nt)$ee.call(nt,y)&&V.indexOf(y)<0&&(m[y]=nt[y]);if(nt!=null&&HB)for(var y of HB(nt))V.indexOf(y)<0&&jee.call(nt,y)&&(m[y]=nt[y]);return m};var vS=(nt,V,m)=>(VK(nt,typeof V!="symbol"?V+"":V,m),m);var ig=(nt,V,m)=>new Promise((y,A)=>{var b=N=>{try{k(m.next(N))}catch(w){A(w)}},z=N=>{try{k(m.throw(N))}catch(w){A(w)}},k=N=>N.done?y(N.value):Promise.resolve(N.value).then(b,z);k((m=m.apply(nt,V)).next())});(self.webpackChunk_antv_l7_editor=self.webpackChunk_antv_l7_editor||[]).push([[442],{81618:function(nt){"use strict";(function(V,m){nt.exports=m()})(this,function(){function V(I){var C=[];return I.AMapUI&&C.push(m(I.AMapUI)),I.Loca&&C.push(y(I.Loca)),Promise.all(C)}function m(I){return new Promise(function(C,f){var S=[];if(I.plugins)for(var P=0;P=60&&Math.round(bt.h)<=240?mt=Bt?Math.round(bt.h)-b*ht:Math.round(bt.h)+b*ht:mt=Bt?Math.round(bt.h)+b*ht:Math.round(bt.h)-b*ht,mt<0?mt+=360:mt>=360&&(mt-=360),mt}function J(bt,ht,Bt){if(bt.h===0&&bt.s===0)return bt.s;var mt;return Bt?mt=bt.s-z*ht:ht===C?mt=bt.s+z:mt=bt.s+k*ht,mt>1&&(mt=1),Bt&&ht===I&&mt>.1&&(mt=.1),mt<.06&&(mt=.06),Number(mt.toFixed(2))}function ie(bt,ht,Bt){var mt;return Bt?mt=bt.v+N*ht:mt=bt.v-w*ht,mt>1&&(mt=1),Number(mt.toFixed(2))}function de(bt){for(var ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Bt=[],mt=(0,A.uA)(bt),_n=I;_n>0;_n-=1){var Bn=S(mt),Er=P((0,A.uA)({h:re(Bn,_n,!0),s:J(Bn,_n,!0),v:ie(Bn,_n,!0)}));Bt.push(Er)}Bt.push(P(mt));for(var Yr=1;Yr<=C;Yr+=1){var oi=S(mt),to=P((0,A.uA)({h:re(oi,Yr),s:J(oi,Yr),v:ie(oi,Yr)}));Bt.push(to)}return ht.theme==="dark"?f.map(function(yo){var vr=yo.index,Po=yo.opacity,ss=P(j((0,A.uA)(ht.backgroundColor||"#141414"),(0,A.uA)(Bt[vr]),Po*100));return ss}):Bt}var he={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},fe={},ke={};Object.keys(he).forEach(function(bt){fe[bt]=de(he[bt]),fe[bt].primary=fe[bt][5],ke[bt]=de(he[bt],{theme:"dark",backgroundColor:"#141414"}),ke[bt].primary=ke[bt][5]});var we=fe.red,Ne=fe.volcano,Ee=fe.gold,ge=fe.orange,ye=fe.yellow,xe=fe.lime,be=fe.green,Ie=fe.cyan,me=fe.blue,We=fe.geekblue,Ce=fe.purple,Pt=fe.magenta,ct=fe.grey,Ue=fe.grey},85731:function(nt,V,m){"use strict";m.d(V,{E4:function(){return Ml},jG:function(){return Ue},t2:function(){return Yi},fp:function(){return xo},xy:function(){return Na}});var y=m(74902),A=m(1413);function b(ts){for(var Vs=0,ma,Il=0,El=ts.length;El>=4;++Il,El-=4)ma=ts.charCodeAt(Il)&255|(ts.charCodeAt(++Il)&255)<<8|(ts.charCodeAt(++Il)&255)<<16|(ts.charCodeAt(++Il)&255)<<24,ma=(ma&65535)*1540483477+((ma>>>16)*59797<<16),ma^=ma>>>24,Vs=(ma&65535)*1540483477+((ma>>>16)*59797<<16)^(Vs&65535)*1540483477+((Vs>>>16)*59797<<16);switch(El){case 3:Vs^=(ts.charCodeAt(Il+2)&255)<<16;case 2:Vs^=(ts.charCodeAt(Il+1)&255)<<8;case 1:Vs^=ts.charCodeAt(Il)&255,Vs=(Vs&65535)*1540483477+((Vs>>>16)*59797<<16)}return Vs^=Vs>>>13,Vs=(Vs&65535)*1540483477+((Vs>>>16)*59797<<16),((Vs^Vs>>>15)>>>0).toString(36)}var z=b,k=m(67294),N=m.t(k,2),w=m(56982),I=m(91881),C=m(15671),f=m(43144),S=m(4942),P="%",j=function(){function ts(Vs){(0,C.Z)(this,ts),(0,S.Z)(this,"instanceId",void 0),(0,S.Z)(this,"cache",new Map),this.instanceId=Vs}return(0,f.Z)(ts,[{key:"get",value:function(ma){return this.cache.get(ma.join(P))||null}},{key:"update",value:function(ma,Il){var El=ma.join(P),ml=this.cache.get(El),fu=Il(ml);fu===null?this.cache.delete(El):this.cache.set(El,fu)}}]),ts}(),re=j,J=null,ie="data-token-hash",de="data-css-hash",he="data-cache-path",fe="__cssinjs_instance__";function ke(){var ts=Math.random().toString(12).slice(2);if(typeof document!="undefined"&&document.head&&document.body){var Vs=document.body.querySelectorAll("style[".concat(de,"]"))||[],ma=document.head.firstChild;Array.from(Vs).forEach(function(El){El[fe]=El[fe]||ts,El[fe]===ts&&document.head.insertBefore(El,ma)});var Il={};Array.from(document.querySelectorAll("style[".concat(de,"]"))).forEach(function(El){var ml=El.getAttribute(de);if(Il[ml]){if(El[fe]===ts){var fu;(fu=El.parentNode)===null||fu===void 0||fu.removeChild(El)}}else Il[ml]=!0})}return new re(ts)}var we=k.createContext({hashPriority:"low",cache:ke(),defaultCache:!0}),Ne=function(Vs){var ma=Vs.children,Il=_objectWithoutProperties(Vs,J),El=React.useContext(we),ml=useMemo(function(){var fu=_objectSpread({},El);Object.keys(Il).forEach(function(lc){var Ic=Il[lc];Il[lc]!==void 0&&(fu[lc]=Ic)});var Fu=Il.cache;return fu.cache=fu.cache||ke(),fu.defaultCache=!Fu&&El.defaultCache,fu},[El,Il],function(fu,Fu){return!isEqual(fu[0],Fu[0],!0)||!isEqual(fu[1],Fu[1],!0)});return React.createElement(we.Provider,{value:ml},ma)},Ee=we,ge=m(71002),ye=m(98924),xe=m(44958),be=m(97685);function Ie(ts,Vs){if(ts.length!==Vs.length)return!1;for(var ma=0;ma1&&arguments[1]!==void 0?arguments[1]:!1,fu={map:this.cache};return ma.forEach(function(Fu){if(!fu)fu=void 0;else{var lc,Ic;fu=(lc=fu)===null||lc===void 0||(Ic=lc.map)===null||Ic===void 0?void 0:Ic.get(Fu)}}),(Il=fu)!==null&&Il!==void 0&&Il.value&&ml&&(fu.value[1]=this.cacheCallTimes++),(El=fu)===null||El===void 0?void 0:El.value}},{key:"get",value:function(ma){var Il;return(Il=this.internalGet(ma,!0))===null||Il===void 0?void 0:Il[0]}},{key:"has",value:function(ma){return!!this.internalGet(ma)}},{key:"set",value:function(ma,Il){var El=this;if(!this.has(ma)){if(this.size()+1>ts.MAX_CACHE_SIZE+ts.MAX_CACHE_OFFSET){var ml=this.keys.reduce(function(Ic,Uc){var zd=(0,be.Z)(Ic,2),th=zd[1];return El.internalGet(Uc)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Ce+=1}return(0,f.Z)(ts,[{key:"getDerivativeToken",value:function(ma){return this.derivatives.reduce(function(Il,El){return El(ma,Il)},void 0)}}]),ts}(),ct=new me;function Ue(ts){var Vs=Array.isArray(ts)?ts:[ts];return ct.has(Vs)||ct.set(Vs,new Pt(Vs)),ct.get(Vs)}var bt=new WeakMap,ht={};function Bt(ts,Vs){for(var ma=bt,Il=0;IlHr&&Il.forEach(function(El){xn(El,Vs),$o.delete(El)})}var Yi=function(Vs,ma,Il,El){var ml=Il.getDerivativeToken(Vs),fu=(0,A.Z)((0,A.Z)({},ml),ma);return El&&(fu=El(fu)),fu};function xo(ts,Vs){var ma=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Il=(0,k.useContext)(Ee),El=Il.cache.instanceId,ml=ma.salt,fu=ml===void 0?"":ml,Fu=ma.override,lc=Fu===void 0?Ri:Fu,Ic=ma.formatToken,Uc=ma.getComputedToken,zd=Bt(function(){return Object.assign.apply(Object,[{}].concat((0,y.Z)(Vs)))},Vs),th=_n(zd),Xd=_n(lc),sd=Zi("token",[fu,ts.id,th,Xd],function(){var Mu=Uc?Uc(zd,lc,ts):Yi(zd,lc,ts,Ic),Fc=Bn(Mu,fu);Mu._tokenKey=Fc,ys(Fc);var hd="".concat(Pi,"-").concat(z(Fc));return Mu._hashId=hd,[Mu,hd]},function(Mu){Jr(Mu[0]._tokenKey,El)});return sd}var na=m(87462),Vn={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Xn=Vn,Mr="-ms-",li="-moz-",Cr="-webkit-",qr="comm",ii="rule",rn="decl",Jn="@page",Vr="@media",so="@import",rs="@charset",zt="@viewport",pn="@supports",_r="@document",Gr="@namespace",ui="@keyframes",Ci="@font-face",lo="@counter-style",Kr="@font-feature-values",ti="@layer",Wi=Math.abs,Tr=String.fromCharCode,Qt=Object.assign;function Gn(ts,Vs){return vi(ts,0)^45?(((Vs<<2^vi(ts,0))<<2^vi(ts,1))<<2^vi(ts,2))<<2^vi(ts,3):0}function yi(ts){return ts.trim()}function Ln(ts,Vs){return(ts=Vs.exec(ts))?ts[0]:ts}function Si(ts,Vs,ma){return ts.replace(Vs,ma)}function tr(ts,Vs){return ts.indexOf(Vs)}function vi(ts,Vs){return ts.charCodeAt(Vs)|0}function Ni(ts,Vs,ma){return ts.slice(Vs,ma)}function kr(ts){return ts.length}function Qn(ts){return ts.length}function ds(ts,Vs){return Vs.push(ts),ts}function _a(ts,Vs){return ts.map(Vs).join("")}function da(ts,Vs){return ts.filter(function(ma){return!Ln(ma,Vs)})}function zs(ts,Vs){for(var ma="",Il=0;Il0?vi(Es,--fs):0,dl--,jo===10&&(dl=1,Co--),jo}function si(){return jo=fs2||Nn(jo)>3?"":" "}function Et(ts){for(;si();)switch(Nn(jo)){case 0:append(Ti(fs-1),ts);break;case 2:append(vt(jo),ts);break;default:append(from(jo),ts)}return ts}function an(ts,Vs){for(;--Vs&&si()&&!(jo<48||jo>102||jo>57&&jo<65||jo>70&&jo<97););return Dn(ts,dn()+(Vs<6&&co()==32&&si()==32))}function jn(ts){for(;si();)switch(jo){case ts:return fs;case 34:case 39:ts!==34&&ts!==39&&jn(jo);break;case 40:ts===41&&jn(ts);break;case 92:si();break}return fs}function xr(ts,Vs){for(;si()&&ts+jo!==47+10;)if(ts+jo===42+42&&co()===47)break;return"/*"+Dn(Vs,fs-1)+"*"+Tr(ts===47?ts:si())}function Ti(ts){for(;!Nn(co());)si();return Dn(ts,fs)}function $i(ts){return dt(Vi("",null,null,null,[""],ts=tt(ts),0,[0],ts))}function Vi(ts,Vs,ma,Il,El,ml,fu,Fu,lc){for(var Ic=0,Uc=0,zd=fu,th=0,Xd=0,sd=0,Mu=1,Fc=1,hd=1,vd=0,Yd="",nh=El,Wd=ml,yh=Il,id=Yd;Fc;)switch(sd=vd,vd=si()){case 40:if(sd!=108&&vi(id,zd-1)==58){tr(id+=Si(vt(vd),"&","&\f"),"&\f")!=-1&&(hd=-1);break}case 34:case 39:case 91:id+=vt(vd);break;case 9:case 10:case 13:case 32:id+=lt(sd);break;case 92:id+=an(dn()-1,7);continue;case 47:switch(co()){case 42:case 47:ds(ks(xr(si(),dn()),Vs,ma,lc),lc);break;default:id+="/"}break;case 123*Mu:Fu[Ic++]=kr(id)*hd;case 125*Mu:case 59:case 0:switch(vd){case 0:case 125:Fc=0;case 59+Uc:hd==-1&&(id=Si(id,/\f/g,"")),Xd>0&&kr(id)-zd&&ds(Xd>32?Os(id+";",Il,ma,zd-1,lc):Os(Si(id," ","")+";",Il,ma,zd-2,lc),lc);break;case 59:id+=";";default:if(ds(yh=us(id,Vs,ma,Ic,Uc,El,Fu,Yd,nh=[],Wd=[],zd,ml),ml),vd===123)if(Uc===0)Vi(id,Vs,yh,yh,nh,ml,zd,Fu,Wd);else switch(th===99&&vi(id,3)===110?100:th){case 100:case 108:case 109:case 115:Vi(ts,yh,yh,Il&&ds(us(ts,yh,yh,0,0,El,Fu,Yd,El,nh=[],zd,Wd),Wd),El,Wd,zd,Fu,Il?nh:Wd);break;default:Vi(id,yh,yh,yh,[""],Wd,0,Fu,Wd)}}Ic=Uc=Xd=0,Mu=hd=1,Yd=id="",zd=fu;break;case 58:zd=1+kr(id),Xd=sd;default:if(Mu<1){if(vd==123)--Mu;else if(vd==125&&Mu++==0&&Qa()==125)continue}switch(id+=Tr(vd),vd*Mu){case 38:hd=Uc>0?1:(id+="\f",-1);break;case 44:Fu[Ic++]=(kr(id)-1)*hd,hd=1;break;case 64:co()===45&&(id+=vt(si())),th=co(),Uc=zd=kr(Yd=id+=Ti(dn())),vd++;break;case 45:sd===45&&kr(id)==2&&(Mu=0)}}return ml}function us(ts,Vs,ma,Il,El,ml,fu,Fu,lc,Ic,Uc,zd){for(var th=El-1,Xd=El===0?ml:[""],sd=Qn(Xd),Mu=0,Fc=0,hd=0;Mu0?Xd[vd]+" "+Yd:Si(Yd,/&\f/g,Xd[vd])))&&(lc[hd++]=nh);return xs(ts,Vs,ma,El===0?ii:Fu,lc,Ic,Uc,zd)}function ks(ts,Vs,ma,Il){return xs(ts,Vs,ma,qr,Tr(xl()),Ni(ts,2,-2),0,Il)}function Os(ts,Vs,ma,Il,El){return xs(ts,Vs,ma,rn,Ni(ts,0,Il),Ni(ts,Il+1,-1),Il,El)}function pa(ts,Vs){var ma=Vs.path,Il=Vs.parentSelectors;devWarning(!1,"[Ant Design CSS-in-JS] ".concat(ma?"Error in ".concat(ma,": "):"").concat(ts).concat(Il.length?" Selector: ".concat(Il.join(" | ")):""))}var no=function(Vs,ma,Il){if(Vs==="content"){var El=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,ml=["normal","none","initial","inherit","unset"];(typeof ma!="string"||ml.indexOf(ma)===-1&&!El.test(ma)&&(ma.charAt(0)!==ma.charAt(ma.length-1)||ma.charAt(0)!=='"'&&ma.charAt(0)!=="'"))&&lintWarning("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(ma,"\"'`."),Il)}},Cs=null,ea=function(Vs,ma,Il){Vs==="animation"&&Il.hashId&&ma!=="none"&&lintWarning("You seem to be using hashed animation '".concat(ma,"', in which case 'animationName' with Keyframe as value is recommended."),Il)},fa=null;function Bl(ts){var Vs,ma=((Vs=ts.match(/:not\(([^)]*)\)/))===null||Vs===void 0?void 0:Vs[1])||"",Il=ma.split(/(\[[^[]*])|(?=[.#])/).filter(function(El){return El});return Il.length>1}function Ma(ts){return ts.parentSelectors.reduce(function(Vs,ma){return Vs?ma.includes("&")?ma.replace(/&/g,Vs):"".concat(Vs," ").concat(ma):ma},"")}var gl=function(Vs,ma,Il){var El=Ma(Il),ml=El.match(/:not\([^)]*\)/g)||[];ml.length>0&&ml.some(Bl)&&lintWarning("Concat ':not' selector not support in legacy browsers.",Il)},ia=null,Nl=function(Vs,ma,Il){switch(Vs){case"marginLeft":case"marginRight":case"paddingLeft":case"paddingRight":case"left":case"right":case"borderLeft":case"borderLeftWidth":case"borderLeftStyle":case"borderLeftColor":case"borderRight":case"borderRightWidth":case"borderRightStyle":case"borderRightColor":case"borderTopLeftRadius":case"borderTopRightRadius":case"borderBottomLeftRadius":case"borderBottomRightRadius":lintWarning("You seem to be using non-logical property '".concat(Vs,"' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),Il);return;case"margin":case"padding":case"borderWidth":case"borderStyle":if(typeof ma=="string"){var El=ma.split(" ").map(function(Fu){return Fu.trim()});El.length===4&&El[1]!==El[3]&&lintWarning("You seem to be using '".concat(Vs,"' property with different left ").concat(Vs," and right ").concat(Vs,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),Il)}return;case"clear":case"textAlign":(ma==="left"||ma==="right")&&lintWarning("You seem to be using non-logical value '".concat(ma,"' of ").concat(Vs,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),Il);return;case"borderRadius":if(typeof ma=="string"){var ml=ma.split("/").map(function(Fu){return Fu.trim()}),fu=ml.reduce(function(Fu,lc){if(Fu)return Fu;var Ic=lc.split(" ").map(function(Uc){return Uc.trim()});return Ic.length>=2&&Ic[0]!==Ic[1]||Ic.length===3&&Ic[1]!==Ic[2]||Ic.length===4&&Ic[2]!==Ic[3]?!0:Fu},!1);fu&&lintWarning("You seem to be using non-logical value '".concat(ma,"' of ").concat(Vs,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),Il)}return;default:}},cs=null,zi=function(Vs,ma,Il){Il.parentSelectors.some(function(El){var ml=El.split(",");return ml.some(function(fu){return fu.split("&").length>2})})&&lintWarning("Should not use more than one `&` in a selector.",Il)},Ji=null,ta="data-ant-cssinjs-cache-path",ms="_FILE_STYLE__";function Ua(ts){return Object.keys(ts).map(function(Vs){var ma=ts[Vs];return"".concat(Vs,":").concat(ma)}).join(";")}var ju,rc=!0;function Pc(ts){var Vs=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;ju=ts,rc=Vs}function ho(){if(!ju&&(ju={},(0,ye.Z)())){var ts=document.createElement("div");ts.className=ta,ts.style.position="fixed",ts.style.visibility="hidden",ts.style.top="-9999px",document.body.appendChild(ts);var Vs=getComputedStyle(ts).content||"";Vs=Vs.replace(/^"/,"").replace(/"$/,""),Vs.split(";").forEach(function(El){var ml=El.split(":"),fu=(0,be.Z)(ml,2),Fu=fu[0],lc=fu[1];ju[Fu]=lc});var ma=document.querySelector("style[".concat(ta,"]"));if(ma){var Il;rc=!1,(Il=ma.parentNode)===null||Il===void 0||Il.removeChild(ma)}document.body.removeChild(ts)}}function qi(ts){return ho(),!!ju[ts]}function os(ts){var Vs=ju[ts],ma=null;if(Vs&&(0,ye.Z)())if(rc)ma=ms;else{var Il=document.querySelector("style[".concat(de,'="').concat(ju[ts],'"]'));Il?ma=Il.innerHTML:delete ju[ts]}return[ma,Vs]}var $n=(0,ye.Z)(),mr="_skip_check_",Qr="_multi_value_";function ni(ts){var Vs=zs($i(ts),ja);return Vs.replace(/\{%%%\:[^;];}/g,";")}function Ki(ts){return(0,ge.Z)(ts)==="object"&&ts&&(mr in ts||Qr in ts)}function ro(ts,Vs,ma){if(!Vs)return ts;var Il=".".concat(Vs),El=ma==="low"?":where(".concat(Il,")"):Il,ml=ts.split(",").map(function(fu){var Fu,lc=fu.trim().split(/\s+/),Ic=lc[0]||"",Uc=((Fu=Ic.match(/^\w+/))===null||Fu===void 0?void 0:Fu[0])||"";return Ic="".concat(Uc).concat(El).concat(Ic.slice(Uc.length)),[Ic].concat((0,y.Z)(lc.slice(1))).join(" ")});return ml.join(",")}var Ei=function ts(Vs){var ma=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Il=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},El=Il.root,ml=Il.injectHash,fu=Il.parentSelectors,Fu=ma.hashId,lc=ma.layer,Ic=ma.path,Uc=ma.hashPriority,zd=ma.transformers,th=zd===void 0?[]:zd,Xd=ma.linters,sd=Xd===void 0?[]:Xd,Mu="",Fc={};function hd(yh){var id=yh.getName(Fu);if(!Fc[id]){var nd=ts(yh.style,ma,{root:!1,parentSelectors:fu}),Pf=(0,be.Z)(nd,1),Jd=Pf[0];Fc[id]="@keyframes ".concat(yh.getName(Fu)).concat(Jd)}}function vd(yh){var id=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return yh.forEach(function(nd){Array.isArray(nd)?vd(nd,id):nd&&id.push(nd)}),id}var Yd=vd(Array.isArray(Vs)?Vs:[Vs]);if(Yd.forEach(function(yh){var id=typeof yh=="string"&&!El?{}:yh;if(typeof id=="string")Mu+="".concat(id,` -`);else if(id._keyframe)hd(id);else{var nd=th.reduce(function(Pf,Jd){var cc;return(Jd==null||(cc=Jd.visit)===null||cc===void 0?void 0:cc.call(Jd,Pf))||Pf},id);Object.keys(nd).forEach(function(Pf){var Jd=nd[Pf];if((0,ge.Z)(Jd)==="object"&&Jd&&(Pf!=="animationName"||!Jd._keyframe)&&!Ki(Jd)){var cc=!1,Yc=Pf.trim(),Wh=!1;(El||ml)&&Fu?Yc.startsWith("@")?cc=!0:Yc=ro(Pf,Fu,Uc):El&&!Fu&&(Yc==="&"||Yc==="")&&(Yc="",Wh=!0);var uf=ts(Jd,ma,{root:Wh,injectHash:cc,parentSelectors:[].concat((0,y.Z)(fu),[Yc])}),Lh=(0,be.Z)(uf,2),Sf=Lh[0],xp=Lh[1];Fc=(0,A.Z)((0,A.Z)({},Fc),xp),Mu+="".concat(Yc).concat(Sf)}else{let Th=function(yu,ff){var Ja=yu.replace(/[A-Z]/g,function(wd){return"-".concat(wd.toLowerCase())}),Bu=ff;!Xn[yu]&&typeof Bu=="number"&&Bu!==0&&(Bu="".concat(Bu,"px")),yu==="animationName"&&ff!==null&&ff!==void 0&&ff._keyframe&&(hd(ff),Bu=ff.getName(Fu)),Mu+="".concat(Ja,":").concat(Bu,";")};var Nf,ch=(Nf=Jd==null?void 0:Jd.value)!==null&&Nf!==void 0?Nf:Jd;(0,ge.Z)(Jd)==="object"&&Jd!==null&&Jd!==void 0&&Jd[Qr]&&Array.isArray(ch)?ch.forEach(function(yu){Th(Pf,yu)}):Th(Pf,ch)}})}}),!El)Mu="{".concat(Mu,"}");else if(lc&&yo()){var nh=lc.split(","),Wd=nh[nh.length-1].trim();Mu="@layer ".concat(Wd," {").concat(Mu,"}"),nh.length>1&&(Mu="@layer ".concat(lc,"{%%%:%}").concat(Mu))}return[Mu,Fc]};function ns(ts,Vs){return z("".concat(ts.join("%")).concat(Vs))}function ua(){return null}function Na(ts,Vs){var ma=ts.token,Il=ts.path,El=ts.hashId,ml=ts.layer,fu=ts.nonce,Fu=ts.clientOnly,lc=ts.order,Ic=lc===void 0?0:lc,Uc=k.useContext(Ee),zd=Uc.autoClear,th=Uc.mock,Xd=Uc.defaultCache,sd=Uc.hashPriority,Mu=Uc.container,Fc=Uc.ssrInline,hd=Uc.transformers,vd=Uc.linters,Yd=Uc.cache,nh=ma._tokenKey,Wd=[nh].concat((0,y.Z)(Il)),yh=$n,id=Zi("style",Wd,function(){var Yc=Wd.join("|");if(qi(Yc)){var Wh=os(Yc),uf=(0,be.Z)(Wh,2),Lh=uf[0],Sf=uf[1];if(Lh)return[Lh,nh,Sf,{},Fu,Ic]}var xp=Vs(),Nf=Ei(xp,{hashId:El,hashPriority:sd,layer:ml,path:Il.join("-"),transformers:hd,linters:vd}),ch=(0,be.Z)(Nf,2),Th=ch[0],yu=ch[1],ff=ni(Th),Ja=ns(Wd,ff);return[ff,nh,Ja,yu,Fu,Ic]},function(Yc,Wh){var uf=(0,be.Z)(Yc,3),Lh=uf[2];(Wh||zd)&&$n&&(0,xe.jL)(Lh,{mark:de})},function(Yc){var Wh=(0,be.Z)(Yc,4),uf=Wh[0],Lh=Wh[1],Sf=Wh[2],xp=Wh[3];if(yh&&uf!==ms){var Nf={mark:de,prepend:"queue",attachTo:Mu,priority:Ic},ch=typeof fu=="function"?fu():fu;ch&&(Nf.csp={nonce:ch});var Th=(0,xe.hq)(uf,Sf,Nf);Th[fe]=Yd.instanceId,Th.setAttribute(ie,nh),Object.keys(xp).forEach(function(yu){(0,xe.hq)(ni(xp[yu]),"_effect-".concat(yu),Nf)})}}),nd=(0,be.Z)(id,3),Pf=nd[0],Jd=nd[1],cc=nd[2];return function(Yc){var Wh;if(!Fc||yh||!Xd)Wh=k.createElement(ua,null);else{var uf;Wh=k.createElement("style",(0,na.Z)({},(uf={},(0,S.Z)(uf,ie,Jd),(0,S.Z)(uf,de,cc),uf),{dangerouslySetInnerHTML:{__html:Pf}}))}return k.createElement(k.Fragment,null,Wh,Yc)}}function cl(ts){var Vs=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ma="style%",Il=Array.from(ts.cache.keys()).filter(function(Ic){return Ic.startsWith(ma)}),El={},ml={},fu="";function Fu(Ic,Uc,zd){var th,Xd=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},sd=_objectSpread(_objectSpread({},Xd),{},(th={},_defineProperty(th,ATTR_TOKEN,Uc),_defineProperty(th,ATTR_MARK,zd),th)),Mu=Object.keys(sd).map(function(Fc){var hd=sd[Fc];return hd?"".concat(Fc,'="').concat(hd,'"'):null}).filter(function(Fc){return Fc}).join(" ");return Vs?Ic:"")}var lc=Il.map(function(Ic){var Uc=Ic.slice(ma.length).replace(/%/g,"|"),zd=_slicedToArray(ts.cache.get(Ic)[1],6),th=zd[0],Xd=zd[1],sd=zd[2],Mu=zd[3],Fc=zd[4],hd=zd[5];if(Fc)return null;var vd={"data-rc-order":"prependQueue","data-rc-priority":"".concat(hd)},Yd=Fu(th,Xd,sd,vd);ml[Uc]=sd,Mu&&Object.keys(Mu).forEach(function(Wd){El[Wd]||(El[Wd]=!0,Yd+=Fu(ni(Mu[Wd]),Xd,"_effect-".concat(Wd),vd))});var nh=[hd,Yd];return nh}).filter(function(Ic){return Ic});return lc.sort(function(Ic,Uc){return Ic[0]-Uc[0]}).forEach(function(Ic){var Uc=_slicedToArray(Ic,2),zd=Uc[1];fu+=zd}),fu+=Fu(".".concat(ATTR_CACHE_MAP,'{content:"').concat(serializeCacheMap(ml),'";}'),void 0,void 0,_defineProperty({},ATTR_CACHE_MAP,ATTR_CACHE_MAP)),fu}var Zl=function(){function ts(Vs,ma){(0,C.Z)(this,ts),(0,S.Z)(this,"name",void 0),(0,S.Z)(this,"style",void 0),(0,S.Z)(this,"_keyframe",!0),this.name=Vs,this.style=ma}return(0,f.Z)(ts,[{key:"getName",value:function(){var ma=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ma?"".concat(ma,"-").concat(this.name):this.name}}]),ts}(),Ml=Zl;function Wa(ts){if(typeof ts=="number")return[[ts],!1];var Vs=String(ts).trim(),ma=Vs.match(/(.*)(!important)/),Il=(ma?ma[1]:Vs).trim().split(/\s+/),El="",ml=0;return[Il.reduce(function(fu,Fu){return Fu.includes("(")?(El+=Fu,ml+=Fu.split("(").length-1):Fu.includes(")")?(El+=Fu,ml-=Fu.split(")").length-1,ml===0&&(fu.push(El),El="")):ml>0?El+=Fu:fu.push(Fu),fu},[]),!!ma]}function ku(ts){return ts.notSplit=!0,ts}var Xs={inset:["top","right","bottom","left"],insetBlock:["top","bottom"],insetBlockStart:["top"],insetBlockEnd:["bottom"],insetInline:["left","right"],insetInlineStart:["left"],insetInlineEnd:["right"],marginBlock:["marginTop","marginBottom"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],marginInline:["marginLeft","marginRight"],marginInlineStart:["marginLeft"],marginInlineEnd:["marginRight"],paddingBlock:["paddingTop","paddingBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"],paddingInline:["paddingLeft","paddingRight"],paddingInlineStart:["paddingLeft"],paddingInlineEnd:["paddingRight"],borderBlock:ku(["borderTop","borderBottom"]),borderBlockStart:ku(["borderTop"]),borderBlockEnd:ku(["borderBottom"]),borderInline:ku(["borderLeft","borderRight"]),borderInlineStart:ku(["borderLeft"]),borderInlineEnd:ku(["borderRight"]),borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndWidth:["borderBottomWidth"],borderInlineWidth:["borderLeftWidth","borderRightWidth"],borderInlineStartWidth:["borderLeftWidth"],borderInlineEndWidth:["borderRightWidth"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderBlockStartStyle:["borderTopStyle"],borderBlockEndStyle:["borderBottomStyle"],borderInlineStyle:["borderLeftStyle","borderRightStyle"],borderInlineStartStyle:["borderLeftStyle"],borderInlineEndStyle:["borderRightStyle"],borderBlockColor:["borderTopColor","borderBottomColor"],borderBlockStartColor:["borderTopColor"],borderBlockEndColor:["borderBottomColor"],borderInlineColor:["borderLeftColor","borderRightColor"],borderInlineStartColor:["borderLeftColor"],borderInlineEndColor:["borderRightColor"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"]};function Ya(ts,Vs){var ma=ts;return Vs&&(ma="".concat(ma," !important")),{_skip_check_:!0,value:ma}}var qa={visit:function(Vs){var ma={};return Object.keys(Vs).forEach(function(Il){var El=Vs[Il],ml=Xs[Il];if(ml&&(typeof El=="number"||typeof El=="string")){var fu=Wa(El),Fu=(0,be.Z)(fu,2),lc=Fu[0],Ic=Fu[1];ml.length&&ml.notSplit?ml.forEach(function(Uc){ma[Uc]=Ya(El,Ic)}):ml.length===1?ma[ml[0]]=Ya(El,Ic):ml.length===2?ml.forEach(function(Uc,zd){var th;ma[Uc]=Ya((th=lc[zd])!==null&&th!==void 0?th:lc[0],Ic)}):ml.length===4?ml.forEach(function(Uc,zd){var th,Xd;ma[Uc]=Ya((th=(Xd=lc[zd])!==null&&Xd!==void 0?Xd:lc[zd-2])!==null&&th!==void 0?th:lc[0],Ic)}):ma[Il]=El}else ma[Il]=El}),ma}},Hl=null,Jl=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function vu(ts,Vs){var ma=Math.pow(10,Vs+1),Il=Math.floor(ts*ma);return Math.round(Il/10)*10/ma}var au=function(){var Vs=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ma=Vs.rootValue,Il=ma===void 0?16:ma,El=Vs.precision,ml=El===void 0?5:El,fu=Vs.mediaQuery,Fu=fu===void 0?!1:fu,lc=function(zd,th){if(!th)return zd;var Xd=parseFloat(th);if(Xd<=1)return zd;var sd=vu(Xd/Il,ml);return"".concat(sd,"rem")},Ic=function(zd){var th=_objectSpread({},zd);return Object.entries(zd).forEach(function(Xd){var sd=_slicedToArray(Xd,2),Mu=sd[0],Fc=sd[1];if(typeof Fc=="string"&&Fc.includes("px")){var hd=Fc.replace(Jl,lc);th[Mu]=hd}!unitless[Mu]&&typeof Fc=="number"&&Fc!==0&&(th[Mu]="".concat(Fc,"px").replace(Jl,lc));var vd=Mu.trim();if(vd.startsWith("@")&&vd.includes("px")&&Fu){var Yd=Mu.replace(Jl,lc);th[Yd]=th[Mu],delete th[Mu]}}),th};return{visit:Ic}},bn=null,Eu={supportModernCSS:function(){return Po()&&ve()}}},89503:function(nt,V){"use strict";var m={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};V.Z=m},47046:function(nt,V){"use strict";var m={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};V.Z=m},98851:function(nt,V){"use strict";var m={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};V.Z=m},42110:function(nt,V){"use strict";var m={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};V.Z=m},43114:function(nt,V){"use strict";var m={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};V.Z=m},36688:function(nt,V){"use strict";var m={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};V.Z=m},84089:function(nt,V,m){"use strict";m.d(V,{Z:function(){return ke}});var y=m(1413),A=m(97685),b=m(4942),z=m(91),k=m(67294),N=m(94184),w=m.n(N),I=m(63017),C=m(20461),f=["icon","className","onClick","style","primaryColor","secondaryColor"],S={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function P(we){var Ne=we.primaryColor,Ee=we.secondaryColor;S.primaryColor=Ne,S.secondaryColor=Ee||(0,C.pw)(Ne),S.calculated=!!Ee}function j(){return(0,y.Z)({},S)}var re=function(Ne){var Ee=Ne.icon,ge=Ne.className,ye=Ne.onClick,xe=Ne.style,be=Ne.primaryColor,Ie=Ne.secondaryColor,me=(0,z.Z)(Ne,f),We=S;if(be&&(We={primaryColor:be,secondaryColor:Ie||(0,C.pw)(be)}),(0,C.C3)(),(0,C.Kp)((0,C.r)(Ee),"icon should be icon definiton, but got ".concat(Ee)),!(0,C.r)(Ee))return null;var Ce=Ee;return Ce&&typeof Ce.icon=="function"&&(Ce=(0,y.Z)((0,y.Z)({},Ce),{},{icon:Ce.icon(We.primaryColor,We.secondaryColor)})),(0,C.R_)(Ce.icon,"svg-".concat(Ce.name),(0,y.Z)({className:ge,onClick:ye,style:xe,"data-icon":Ce.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},me))};re.displayName="IconReact",re.getTwoToneColors=j,re.setTwoToneColors=P;var J=re;function ie(we){var Ne=(0,C.H9)(we),Ee=(0,A.Z)(Ne,2),ge=Ee[0],ye=Ee[1];return J.setTwoToneColors({primaryColor:ge,secondaryColor:ye})}function de(){var we=J.getTwoToneColors();return we.calculated?[we.primaryColor,we.secondaryColor]:we.primaryColor}var he=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];ie("#1890ff");var fe=k.forwardRef(function(we,Ne){var Ee,ge=we.className,ye=we.icon,xe=we.spin,be=we.rotate,Ie=we.tabIndex,me=we.onClick,We=we.twoToneColor,Ce=(0,z.Z)(we,he),Pt=k.useContext(I.Z),ct=Pt.prefixCls,Ue=ct===void 0?"anticon":ct,bt=Pt.rootClassName,ht=w()(bt,Ue,(Ee={},(0,b.Z)(Ee,"".concat(Ue,"-").concat(ye.name),!!ye.name),(0,b.Z)(Ee,"".concat(Ue,"-spin"),!!xe||ye.name==="loading"),Ee),ge),Bt=Ie;Bt===void 0&&me&&(Bt=-1);var mt=be?{msTransform:"rotate(".concat(be,"deg)"),transform:"rotate(".concat(be,"deg)")}:void 0,_n=(0,C.H9)(We),Bn=(0,A.Z)(_n,2),Er=Bn[0],Yr=Bn[1];return k.createElement("span",(0,y.Z)((0,y.Z)({role:"img","aria-label":ye.name},Ce),{},{ref:Ne,tabIndex:Bt,onClick:me,className:ht}),k.createElement(J,{icon:ye,primaryColor:Er,secondaryColor:Yr,style:mt}))});fe.displayName="AntdIcon",fe.getTwoToneColor=de,fe.setTwoToneColor=ie;var ke=fe},63017:function(nt,V,m){"use strict";var y=m(67294),A=(0,y.createContext)({});V.Z=A},36683:function(nt,V,m){"use strict";m.d(V,{Z:function(){return ie}});var y=m(1413),A=m(91),b=m(67294),z=m(4942),k=m(94184),N=m.n(k),w=m(63017),I=m(20461),C=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],f=b.forwardRef(function(de,he){var fe=de.className,ke=de.component,we=de.viewBox,Ne=de.spin,Ee=de.rotate,ge=de.tabIndex,ye=de.onClick,xe=de.children,be=(0,A.Z)(de,C);(0,I.Kp)(!!(ke||xe),"Should have `component` prop or `children`."),(0,I.C3)();var Ie=b.useContext(w.Z),me=Ie.prefixCls,We=me===void 0?"anticon":me,Ce=Ie.rootClassName,Pt=N()(Ce,We,fe),ct=N()((0,z.Z)({},"".concat(We,"-spin"),!!Ne)),Ue=Ee?{msTransform:"rotate(".concat(Ee,"deg)"),transform:"rotate(".concat(Ee,"deg)")}:void 0,bt=(0,y.Z)((0,y.Z)({},I.vD),{},{className:ct,style:Ue,viewBox:we});we||delete bt.viewBox;var ht=function(){return ke?b.createElement(ke,(0,y.Z)({},bt),xe):xe?((0,I.Kp)(!!we||b.Children.count(xe)===1&&b.isValidElement(xe)&&b.Children.only(xe).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),b.createElement("svg",(0,y.Z)((0,y.Z)({},bt),{},{viewBox:we}),xe)):null},Bt=ge;return Bt===void 0&&ye&&(Bt=-1),b.createElement("span",(0,y.Z)((0,y.Z)({role:"img"},be),{},{ref:he,tabIndex:Bt,onClick:ye,className:Pt}),ht())});f.displayName="AntdIcon";var S=f,P=["type","children"],j=new Set;function re(de){return!!(typeof de=="string"&&de.length&&!j.has(de))}function J(de){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,fe=de[he];if(re(fe)){var ke=document.createElement("script");ke.setAttribute("src",fe),ke.setAttribute("data-namespace",fe),de.length>he+1&&(ke.onload=function(){J(de,he+1)},ke.onerror=function(){J(de,he+1)}),j.add(fe),document.body.appendChild(ke)}}function ie(){var de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},he=de.scriptUrl,fe=de.extraCommonProps,ke=fe===void 0?{}:fe;he&&typeof document!="undefined"&&typeof window!="undefined"&&typeof document.createElement=="function"&&(Array.isArray(he)?J(he.reverse()):J([he]));var we=b.forwardRef(function(Ne,Ee){var ge=Ne.type,ye=Ne.children,xe=(0,A.Z)(Ne,P),be=null;return Ne.type&&(be=b.createElement("use",{xlinkHref:"#".concat(ge)})),ye&&(be=ye),b.createElement(S,(0,y.Z)((0,y.Z)((0,y.Z)({},ke),xe),{},{ref:Ee}),be)});return we.displayName="Iconfont",we}},14313:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(1413),A=m(67294),b={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"},z=b,k=m(84089),N=function(C,f){return A.createElement(k.Z,(0,y.Z)((0,y.Z)({},C),{},{ref:f,icon:z}))};N.displayName="CaretRightOutlined";var w=A.forwardRef(N)},28508:function(nt,V,m){"use strict";var y=m(1413),A=m(67294),b=m(89503),z=m(84089),k=function(w,I){return A.createElement(z.Z,(0,y.Z)((0,y.Z)({},w),{},{ref:I,icon:b.Z}))};k.displayName="CloseOutlined",V.Z=A.forwardRef(k)},85060:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(1413),A=m(67294),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M624 706.3h-74.1V464c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v242.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.7a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-download",theme:"outlined"},z=b,k=m(84089),N=function(C,f){return A.createElement(k.Z,(0,y.Z)((0,y.Z)({},C),{},{ref:f,icon:z}))};N.displayName="CloudDownloadOutlined";var w=A.forwardRef(N)},16596:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(1413),A=m(67294),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M518.3 459a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-upload",theme:"outlined"},z=b,k=m(84089),N=function(C,f){return A.createElement(k.Z,(0,y.Z)((0,y.Z)({},C),{},{ref:f,icon:z}))};N.displayName="CloudUploadOutlined";var w=A.forwardRef(N)},82061:function(nt,V,m){"use strict";var y=m(1413),A=m(67294),b=m(47046),z=m(84089),k=function(w,I){return A.createElement(z.Z,(0,y.Z)((0,y.Z)({},w),{},{ref:I,icon:b.Z}))};k.displayName="DeleteOutlined",V.Z=A.forwardRef(k)},78588:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(1413),A=m(67294),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M573.7 252.5C422.5 197.4 201.3 96.7 201.3 96.7c-15.7-4.1-17.9 11.1-17.9 11.1-5 61.1 33.6 160.5 53.6 182.8 19.9 22.3 319.1 113.7 319.1 113.7S326 357.9 270.5 341.9c-55.6-16-37.9 17.8-37.9 17.8 11.4 61.7 64.9 131.8 107.2 138.4 42.2 6.6 220.1 4 220.1 4s-35.5 4.1-93.2 11.9c-42.7 5.8-97 12.5-111.1 17.8-33.1 12.5 24 62.6 24 62.6 84.7 76.8 129.7 50.5 129.7 50.5 33.3-10.7 61.4-18.5 85.2-24.2L565 743.1h84.6L603 928l205.3-271.9H700.8l22.3-38.7c.3.5.4.8.4.8S799.8 496.1 829 433.8l.6-1h-.1c5-10.8 8.6-19.7 10-25.8 17-71.3-114.5-99.4-265.8-154.5z"}}]},name:"dingtalk",theme:"outlined"},z=b,k=m(84089),N=function(C,f){return A.createElement(k.Z,(0,y.Z)((0,y.Z)({},C),{},{ref:f,icon:z}))};N.displayName="DingtalkOutlined";var w=A.forwardRef(N)},37724:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(1413),A=m(67294),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M600 395.4h91V649h79V267c0-4.4-3.6-8-8-8h-48.2c-3.7 0-7 2.6-7.7 6.3-2.6 12.1-6.9 22.3-12.9 30.9a86.14 86.14 0 01-26.3 24.4c-10.3 6.2-22 10.5-35 12.9-10.4 1.9-21 3-32 3.1a8 8 0 00-7.9 8v42.8c0 4.4 3.6 8 8 8zM871 702H567c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM443.9 312.7c-16.1-19-34.4-32.4-55.2-40.4-21.3-8.2-44.1-12.3-68.4-12.3-23.9 0-46.4 4.1-67.7 12.3-20.8 8-39 21.4-54.8 40.3-15.9 19.1-28.7 44.7-38.3 77-9.6 32.5-14.5 73-14.5 121.5 0 49.9 4.9 91.4 14.5 124.4 9.6 32.8 22.4 58.7 38.3 77.7 15.8 18.9 34 32.3 54.8 40.3 21.3 8.2 43.8 12.3 67.7 12.3 24.4 0 47.2-4.1 68.4-12.3 20.8-8 39.2-21.4 55.2-40.4 16.1-19 29-44.9 38.6-77.7 9.6-33 14.5-74.5 14.5-124.4 0-48.4-4.9-88.9-14.5-121.5-9.5-32.1-22.4-57.7-38.6-76.8zm-29.5 251.7c-1 21.4-4.2 42-9.5 61.9-5.5 20.7-14.5 38.5-27 53.4-13.6 16.3-33.2 24.3-57.6 24.3-24 0-43.2-8.1-56.7-24.4-12.2-14.8-21.1-32.6-26.6-53.3-5.3-19.9-8.5-40.6-9.5-61.9-1-20.8-1.5-38.5-1.5-53.2 0-8.8.1-19.4.4-31.8.2-12.7 1.1-25.8 2.6-39.2 1.5-13.6 4-27.1 7.6-40.5 3.7-13.8 8.8-26.3 15.4-37.4 6.9-11.6 15.8-21.1 26.7-28.3 11.4-7.6 25.3-11.3 41.5-11.3 16.1 0 30.1 3.7 41.7 11.2a87.94 87.94 0 0127.4 28.2c6.9 11.2 12.1 23.8 15.6 37.7 3.3 13.2 5.8 26.6 7.5 40.1 1.8 13.5 2.8 26.6 3 39.4.2 12.4.4 23 .4 31.8.1 14.8-.4 32.5-1.4 53.3z"}}]},name:"field-binary",theme:"outlined"},z=b,k=m(84089),N=function(C,f){return A.createElement(k.Z,(0,y.Z)((0,y.Z)({},C),{},{ref:f,icon:z}))};N.displayName="FieldBinaryOutlined";var w=A.forwardRef(N)},14468:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(1413),A=m(67294),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M875.6 515.9c2.1.8 4.4-.3 5.2-2.4.2-.4.2-.9.2-1.4v-58.3c0-1.8-1.1-3.3-2.8-3.8-6-1.8-17.2-3-27.2-3-32.9 0-61.7 16.7-73.5 41.2v-28.6c0-4.4-3.6-8-8-8H717c-4.4 0-8 3.6-8 8V729c0 4.4 3.6 8 8 8h54.8c4.4 0 8-3.6 8-8V572.7c0-36.2 26.1-60.2 65.1-60.2 10.4.1 26.6 1.8 30.7 3.4zm-537-40.5l-54.7-12.6c-61.2-14.2-87.7-34.8-87.7-70.7 0-44.6 39.1-73.5 96.9-73.5 52.8 0 91.4 26.5 99.9 68.9h70C455.9 311.6 387.6 259 293.4 259c-103.3 0-171 55.5-171 139 0 68.6 38.6 109.5 122.2 128.5l61.6 14.3c63.6 14.9 91.6 37.1 91.6 75.1 0 44.1-43.5 75.2-102.5 75.2-60.6 0-104.5-27.2-112.8-70.5H111c7.2 79.9 75.6 130.4 179.1 130.4C402.3 751 471 695.2 471 605.3c0-70.2-38.6-108.5-132.4-129.9zM841 729a36 36 0 1072 0 36 36 0 10-72 0zM653 457.8h-51.4V396c0-4.4-3.6-8-8-8h-54.7c-4.4 0-8 3.6-8 8v61.8H495c-4.4 0-8 3.6-8 8v42.3c0 4.4 3.6 8 8 8h35.9v147.5c0 56.2 27.4 79.4 93.1 79.4 11.7 0 23.6-1.2 33.8-3.1 1.9-.3 3.2-2 3.2-3.9v-49.3c0-2.2-1.8-4-4-4h-.4c-4.9.5-6.2.6-8.3.8-4.1.3-7.8.5-12.6.5-24.1 0-34.1-10.3-34.1-35.6V516.1H653c4.4 0 8-3.6 8-8v-42.3c0-4.4-3.6-8-8-8z"}}]},name:"field-string",theme:"outlined"},z=b,k=m(84089),N=function(C,f){return A.createElement(k.Z,(0,y.Z)((0,y.Z)({},C),{},{ref:f,icon:z}))};N.displayName="FieldStringOutlined";var w=A.forwardRef(N)},15360:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(1413),A=m(67294),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"},z=b,k=m(84089),N=function(C,f){return A.createElement(k.Z,(0,y.Z)((0,y.Z)({},C),{},{ref:f,icon:z}))};N.displayName="FileTextOutlined";var w=A.forwardRef(N)},44230:function(nt,V,m){"use strict";var y=m(1413),A=m(67294),b=m(98851),z=m(84089),k=function(w,I){return A.createElement(z.Z,(0,y.Z)((0,y.Z)({},w),{},{ref:I,icon:b.Z}))};k.displayName="FilterFilled",V.Z=A.forwardRef(k)},26024:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(1413),A=m(67294),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"},z=b,k=m(84089),N=function(C,f){return A.createElement(k.Z,(0,y.Z)((0,y.Z)({},C),{},{ref:f,icon:z}))};N.displayName="FilterOutlined";var w=A.forwardRef(N)},75932:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(1413),A=m(67294),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 305H624V192c0-17.7-14.3-32-32-32H184v-40c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v784c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V640h248v113c0 17.7 14.3 32 32 32h416c17.7 0 32-14.3 32-32V337c0-17.7-14.3-32-32-32zM184 568V232h368v336H184zm656 145H504v-73h112c4.4 0 8-3.6 8-8V377h216v336z"}}]},name:"flag",theme:"outlined"},z=b,k=m(84089),N=function(C,f){return A.createElement(k.Z,(0,y.Z)((0,y.Z)({},C),{},{ref:f,icon:z}))};N.displayName="FlagOutlined";var w=A.forwardRef(N)},1210:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(1413),A=m(67294),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"outlined"},z=b,k=m(84089),N=function(C,f){return A.createElement(k.Z,(0,y.Z)((0,y.Z)({},C),{},{ref:f,icon:z}))};N.displayName="GithubOutlined";var w=A.forwardRef(N)},10524:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(1413),A=m(67294),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"},z=b,k=m(84089),N=function(C,f){return A.createElement(k.Z,(0,y.Z)((0,y.Z)({},C),{},{ref:f,icon:z}))};N.displayName="GlobalOutlined";var w=A.forwardRef(N)},51042:function(nt,V,m){"use strict";var y=m(1413),A=m(67294),b=m(42110),z=m(84089),k=function(w,I){return A.createElement(z.Z,(0,y.Z)((0,y.Z)({},w),{},{ref:I,icon:b.Z}))};k.displayName="PlusOutlined",V.Z=A.forwardRef(k)},30723:function(nt,V,m){"use strict";var y=m(1413),A=m(67294),b=m(43114),z=m(84089),k=function(w,I){return A.createElement(z.Z,(0,y.Z)((0,y.Z)({},w),{},{ref:I,icon:b.Z}))};k.displayName="PlusSquareOutlined",V.Z=A.forwardRef(k)},63783:function(nt,V,m){"use strict";var y=m(1413),A=m(67294),b=m(36688),z=m(84089),k=function(w,I){return A.createElement(z.Z,(0,y.Z)((0,y.Z)({},w),{},{ref:I,icon:b.Z}))};k.displayName="QuestionCircleOutlined",V.Z=A.forwardRef(k)},60219:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(1413),A=m(67294),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"},z=b,k=m(84089),N=function(C,f){return A.createElement(k.Z,(0,y.Z)((0,y.Z)({},C),{},{ref:f,icon:z}))};N.displayName="SaveOutlined";var w=A.forwardRef(N)},42952:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(1413),A=m(67294),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},z=b,k=m(84089),N=function(C,f){return A.createElement(k.Z,(0,y.Z)((0,y.Z)({},C),{},{ref:f,icon:z}))};N.displayName="SettingOutlined";var w=A.forwardRef(N)},15611:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(1413),A=m(67294),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 208H676V232h212v136zm0 224H676V432h212v160zM412 432h200v160H412V432zm200-64H412V232h200v136zm-476 64h212v160H136V432zm0-200h212v136H136V232zm0 424h212v136H136V656zm276 0h200v136H412V656zm476 136H676V656h212v136z"}}]},name:"table",theme:"outlined"},z=b,k=m(84089),N=function(C,f){return A.createElement(k.Z,(0,y.Z)((0,y.Z)({},C),{},{ref:f,icon:z}))};N.displayName="TableOutlined";var w=A.forwardRef(N)},20461:function(nt,V,m){"use strict";m.d(V,{R_:function(){return yo},pw:function(){return vr},r:function(){return oi},H9:function(){return Po},vD:function(){return ss},C3:function(){return _o},Kp:function(){return Yr}});var y=m(1413),A=m(71002),b=m(86500),z=m(1350),k=2,N=.16,w=.05,I=.05,C=.15,f=5,S=4,P=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function j(ci){var Bi=ci.r,wi=ci.g,io=ci.b,ln=(0,b.py)(Bi,wi,io);return{h:ln.h*360,s:ln.s,v:ln.v}}function re(ci){var Bi=ci.r,wi=ci.g,io=ci.b;return"#".concat((0,b.vq)(Bi,wi,io,!1))}function J(ci,Bi,wi){var io=wi/100,ln={r:(Bi.r-ci.r)*io+ci.r,g:(Bi.g-ci.g)*io+ci.g,b:(Bi.b-ci.b)*io+ci.b};return ln}function ie(ci,Bi,wi){var io;return Math.round(ci.h)>=60&&Math.round(ci.h)<=240?io=wi?Math.round(ci.h)-k*Bi:Math.round(ci.h)+k*Bi:io=wi?Math.round(ci.h)+k*Bi:Math.round(ci.h)-k*Bi,io<0?io+=360:io>=360&&(io-=360),io}function de(ci,Bi,wi){if(ci.h===0&&ci.s===0)return ci.s;var io;return wi?io=ci.s-N*Bi:Bi===S?io=ci.s+N:io=ci.s+w*Bi,io>1&&(io=1),wi&&Bi===f&&io>.1&&(io=.1),io<.06&&(io=.06),Number(io.toFixed(2))}function he(ci,Bi,wi){var io;return wi?io=ci.v+I*Bi:io=ci.v-C*Bi,io>1&&(io=1),Number(io.toFixed(2))}function fe(ci){for(var Bi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},wi=[],io=(0,z.uA)(ci),ln=f;ln>0;ln-=1){var Ve=j(io),_t=re((0,z.uA)({h:ie(Ve,ln,!0),s:de(Ve,ln,!0),v:he(Ve,ln,!0)}));wi.push(_t)}wi.push(re(io));for(var Ct=1;Ct<=S;Ct+=1){var jt=j(io),on=re((0,z.uA)({h:ie(jt,Ct),s:de(jt,Ct),v:he(jt,Ct)}));wi.push(on)}return Bi.theme==="dark"?P.map(function(Ot){var Tt=Ot.index,xt=Ot.opacity,Ht=re(J((0,z.uA)(Bi.backgroundColor||"#141414"),(0,z.uA)(wi[Tt]),xt*100));return Ht}):wi}var ke={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},we={},Ne={};Object.keys(ke).forEach(function(ci){we[ci]=fe(ke[ci]),we[ci].primary=we[ci][5],Ne[ci]=fe(ke[ci],{theme:"dark",backgroundColor:"#141414"}),Ne[ci].primary=Ne[ci][5]});var Ee=we.red,ge=we.volcano,ye=we.gold,xe=we.orange,be=we.yellow,Ie=we.lime,me=we.green,We=we.cyan,Ce=we.blue,Pt=we.geekblue,ct=we.purple,Ue=we.magenta,bt=we.grey,ht=m(67294),Bt=m(80334),mt=m(44958),_n=m(63017),Bn=m(68929),Er=m.n(Bn);function Yr(ci,Bi){(0,Bt.ZP)(ci,"[@ant-design/icons] ".concat(Bi))}function oi(ci){return(0,A.Z)(ci)==="object"&&typeof ci.name=="string"&&typeof ci.theme=="string"&&((0,A.Z)(ci.icon)==="object"||typeof ci.icon=="function")}function to(){var ci=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(ci).reduce(function(Bi,wi){var io=ci[wi];switch(wi){case"class":Bi.className=io,delete Bi.class;break;default:delete Bi[wi],Bi[Er()(wi)]=io}return Bi},{})}function yo(ci,Bi,wi){return wi?ht.createElement(ci.tag,(0,y.Z)((0,y.Z)({key:Bi},to(ci.attrs)),wi),(ci.children||[]).map(function(io,ln){return yo(io,"".concat(Bi,"-").concat(ci.tag,"-").concat(ln))})):ht.createElement(ci.tag,(0,y.Z)({key:Bi},to(ci.attrs)),(ci.children||[]).map(function(io,ln){return yo(io,"".concat(Bi,"-").concat(ci.tag,"-").concat(ln))}))}function vr(ci){return fe(ci)[0]}function Po(ci){return ci?Array.isArray(ci)?ci:[ci]:[]}var ss={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},ve=` +!(function(){var lpe=Object.defineProperty,upe=Object.defineProperties;var cpe=Object.getOwnPropertyDescriptors;var tz=Object.getOwnPropertySymbols;var Vee=Object.prototype.hasOwnProperty,Uee=Object.prototype.propertyIsEnumerable;var oy=Math.pow,HK=(nt,V,m)=>V in nt?lpe(nt,V,{enumerable:!0,configurable:!0,writable:!0,value:m}):nt[V]=m,qh=(nt,V)=>{for(var m in V||(V={}))Vee.call(V,m)&&HK(nt,m,V[m]);if(tz)for(var m of tz(V))Uee.call(V,m)&&HK(nt,m,V[m]);return nt},G0=(nt,V)=>upe(nt,cpe(V));var AS=(nt,V)=>{var m={};for(var y in nt)Vee.call(nt,y)&&V.indexOf(y)<0&&(m[y]=nt[y]);if(nt!=null&&tz)for(var y of tz(nt))V.indexOf(y)<0&&Uee.call(nt,y)&&(m[y]=nt[y]);return m};var IS=(nt,V,m)=>(HK(nt,typeof V!="symbol"?V+"":V,m),m);var rg=(nt,V,m)=>new Promise((y,I)=>{var b=N=>{try{k(m.next(N))}catch(w){I(w)}},z=N=>{try{k(m.throw(N))}catch(w){I(w)}},k=N=>N.done?y(N.value):Promise.resolve(N.value).then(b,z);k((m=m.apply(nt,V)).next())});(self.webpackChunk_antv_l7_editor=self.webpackChunk_antv_l7_editor||[]).push([[820],{95906:function(nt){"use strict";(function(V,m){nt.exports=m()})(this,function(){function V(A){var C=[];return A.AMapUI&&C.push(m(A.AMapUI)),A.Loca&&C.push(y(A.Loca)),Promise.all(C)}function m(A){return new Promise(function(C,f){var S=[];if(A.plugins)for(var P=0;P=60&&Math.round(wt.h)<=240?gt=Bt?Math.round(wt.h)-b*dt:Math.round(wt.h)+b*dt:gt=Bt?Math.round(wt.h)+b*dt:Math.round(wt.h)-b*dt,gt<0?gt+=360:gt>=360&&(gt-=360),gt}function re(wt,dt,Bt){if(wt.h===0&&wt.s===0)return wt.s;var gt;return Bt?gt=wt.s-z*dt:dt===C?gt=wt.s+z:gt=wt.s+k*dt,gt>1&&(gt=1),Bt&&dt===A&>>.1&&(gt=.1),gt<.06&&(gt=.06),Number(gt.toFixed(2))}function ce(wt,dt,Bt){var gt;return Bt?gt=wt.v+N*dt:gt=wt.v-w*dt,gt>1&&(gt=1),Number(gt.toFixed(2))}function pe(wt){for(var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Bt=[],gt=(0,I.uA)(wt),_n=A;_n>0;_n-=1){var Bn=S(gt),Er=P((0,I.uA)({h:ne(Bn,_n,!0),s:re(Bn,_n,!0),v:ce(Bn,_n,!0)}));Bt.push(Er)}Bt.push(P(gt));for(var Yr=1;Yr<=C;Yr+=1){var oi=S(gt),to=P((0,I.uA)({h:ne(oi,Yr),s:re(oi,Yr),v:ce(oi,Yr)}));Bt.push(to)}return dt.theme==="dark"?f.map(function(yo){var yr=yo.index,Po=yo.opacity,as=P(W((0,I.uA)(dt.backgroundColor||"#141414"),(0,I.uA)(Bt[yr]),Po*100));return as}):Bt}var he={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},fe={},Be={};Object.keys(he).forEach(function(wt){fe[wt]=pe(he[wt]),fe[wt].primary=fe[wt][5],Be[wt]=pe(he[wt],{theme:"dark",backgroundColor:"#141414"}),Be[wt].primary=Be[wt][5]});var Ie=fe.red,We=fe.volcano,De=fe.gold,ve=fe.orange,ye=fe.yellow,we=fe.lime,Ce=fe.green,Ae=fe.cyan,me=fe.blue,je=fe.geekblue,xe=fe.purple,Pt=fe.magenta,ct=fe.grey,He=fe.grey},84608:function(nt,V,m){"use strict";m.d(V,{E4:function(){return Ml},jG:function(){return He},t2:function(){return Yi},fp:function(){return xo},xy:function(){return Na}});var y=m(42371),I=m(74710);function b(ts){for(var Vs=0,ma,Il=0,El=ts.length;El>=4;++Il,El-=4)ma=ts.charCodeAt(Il)&255|(ts.charCodeAt(++Il)&255)<<8|(ts.charCodeAt(++Il)&255)<<16|(ts.charCodeAt(++Il)&255)<<24,ma=(ma&65535)*1540483477+((ma>>>16)*59797<<16),ma^=ma>>>24,Vs=(ma&65535)*1540483477+((ma>>>16)*59797<<16)^(Vs&65535)*1540483477+((Vs>>>16)*59797<<16);switch(El){case 3:Vs^=(ts.charCodeAt(Il+2)&255)<<16;case 2:Vs^=(ts.charCodeAt(Il+1)&255)<<8;case 1:Vs^=ts.charCodeAt(Il)&255,Vs=(Vs&65535)*1540483477+((Vs>>>16)*59797<<16)}return Vs^=Vs>>>13,Vs=(Vs&65535)*1540483477+((Vs>>>16)*59797<<16),((Vs^Vs>>>15)>>>0).toString(36)}var z=b,k=m(77617),N=m.t(k,2),w=m(79102),A=m(68554),C=m(74809),f=m(57338),S=m(80268),P="%",W=function(){function ts(Vs){(0,C.Z)(this,ts),(0,S.Z)(this,"instanceId",void 0),(0,S.Z)(this,"cache",new Map),this.instanceId=Vs}return(0,f.Z)(ts,[{key:"get",value:function(ma){return this.cache.get(ma.join(P))||null}},{key:"update",value:function(ma,Il){var El=ma.join(P),gl=this.cache.get(El),fu=Il(gl);fu===null?this.cache.delete(El):this.cache.set(El,fu)}}]),ts}(),ne=W,re=null,ce="data-token-hash",pe="data-css-hash",he="data-cache-path",fe="__cssinjs_instance__";function Be(){var ts=Math.random().toString(12).slice(2);if(typeof document!="undefined"&&document.head&&document.body){var Vs=document.body.querySelectorAll("style[".concat(pe,"]"))||[],ma=document.head.firstChild;Array.from(Vs).forEach(function(El){El[fe]=El[fe]||ts,El[fe]===ts&&document.head.insertBefore(El,ma)});var Il={};Array.from(document.querySelectorAll("style[".concat(pe,"]"))).forEach(function(El){var gl=El.getAttribute(pe);if(Il[gl]){if(El[fe]===ts){var fu;(fu=El.parentNode)===null||fu===void 0||fu.removeChild(El)}}else Il[gl]=!0})}return new ne(ts)}var Ie=k.createContext({hashPriority:"low",cache:Be(),defaultCache:!0}),We=function(Vs){var ma=Vs.children,Il=_objectWithoutProperties(Vs,re),El=React.useContext(Ie),gl=useMemo(function(){var fu=_objectSpread({},El);Object.keys(Il).forEach(function(lc){var Ic=Il[lc];Il[lc]!==void 0&&(fu[lc]=Ic)});var Nu=Il.cache;return fu.cache=fu.cache||Be(),fu.defaultCache=!Nu&&El.defaultCache,fu},[El,Il],function(fu,Nu){return!isEqual(fu[0],Nu[0],!0)||!isEqual(fu[1],Nu[1],!0)});return React.createElement(Ie.Provider,{value:gl},ma)},De=Ie,ve=m(91002),ye=m(53261),we=m(68063),Ce=m(39718);function Ae(ts,Vs){if(ts.length!==Vs.length)return!1;for(var ma=0;ma1&&arguments[1]!==void 0?arguments[1]:!1,fu={map:this.cache};return ma.forEach(function(Nu){if(!fu)fu=void 0;else{var lc,Ic;fu=(lc=fu)===null||lc===void 0||(Ic=lc.map)===null||Ic===void 0?void 0:Ic.get(Nu)}}),(Il=fu)!==null&&Il!==void 0&&Il.value&&gl&&(fu.value[1]=this.cacheCallTimes++),(El=fu)===null||El===void 0?void 0:El.value}},{key:"get",value:function(ma){var Il;return(Il=this.internalGet(ma,!0))===null||Il===void 0?void 0:Il[0]}},{key:"has",value:function(ma){return!!this.internalGet(ma)}},{key:"set",value:function(ma,Il){var El=this;if(!this.has(ma)){if(this.size()+1>ts.MAX_CACHE_SIZE+ts.MAX_CACHE_OFFSET){var gl=this.keys.reduce(function(Ic,Vc){var zd=(0,Ce.Z)(Ic,2),eh=zd[1];return El.internalGet(Vc)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),xe+=1}return(0,f.Z)(ts,[{key:"getDerivativeToken",value:function(ma){return this.derivatives.reduce(function(Il,El){return El(ma,Il)},void 0)}}]),ts}(),ct=new me;function He(ts){var Vs=Array.isArray(ts)?ts:[ts];return ct.has(Vs)||ct.set(Vs,new Pt(Vs)),ct.get(Vs)}var wt=new WeakMap,dt={};function Bt(ts,Vs){for(var ma=wt,Il=0;IlHr&&Il.forEach(function(El){xn(El,Vs),Wo.delete(El)})}var Yi=function(Vs,ma,Il,El){var gl=Il.getDerivativeToken(Vs),fu=(0,I.Z)((0,I.Z)({},gl),ma);return El&&(fu=El(fu)),fu};function xo(ts,Vs){var ma=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Il=(0,k.useContext)(De),El=Il.cache.instanceId,gl=ma.salt,fu=gl===void 0?"":gl,Nu=ma.override,lc=Nu===void 0?Ri:Nu,Ic=ma.formatToken,Vc=ma.getComputedToken,zd=Bt(function(){return Object.assign.apply(Object,[{}].concat((0,y.Z)(Vs)))},Vs),eh=_n(zd),Kd=_n(lc),ad=Zi("token",[fu,ts.id,eh,Kd],function(){var ku=Vc?Vc(zd,lc,ts):Yi(zd,lc,ts,Ic),Fc=Bn(ku,fu);ku._tokenKey=Fc,ys(Fc);var dd="".concat(Pi,"-").concat(z(Fc));return ku._hashId=dd,[ku,dd]},function(ku){Jr(ku[0]._tokenKey,El)});return ad}var na=m(26508),Un={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Xn=Un,Mr="-ms-",li="-moz-",wr="-webkit-",qr="comm",ii="rule",rn="decl",Qn="@page",Vr="@media",so="@import",rs="@charset",zt="@viewport",pn="@supports",br="@document",Gr="@namespace",ui="@keyframes",xi="@font-face",lo="@counter-style",Kr="@font-feature-values",ti="@layer",ji=Math.abs,Tr=String.fromCharCode,Qt=Object.assign;function Gn(ts,Vs){return vi(ts,0)^45?(((Vs<<2^vi(ts,0))<<2^vi(ts,1))<<2^vi(ts,2))<<2^vi(ts,3):0}function yi(ts){return ts.trim()}function Ln(ts,Vs){return(ts=Vs.exec(ts))?ts[0]:ts}function Si(ts,Vs,ma){return ts.replace(Vs,ma)}function tr(ts,Vs){return ts.indexOf(Vs)}function vi(ts,Vs){return ts.charCodeAt(Vs)|0}function Ni(ts,Vs,ma){return ts.slice(Vs,ma)}function kr(ts){return ts.length}function qn(ts){return ts.length}function ds(ts,Vs){return Vs.push(ts),ts}function _a(ts,Vs){return ts.map(Vs).join("")}function da(ts,Vs){return ts.filter(function(ma){return!Ln(ma,Vs)})}function zs(ts,Vs){for(var ma="",Il=0;Il0?vi(Es,--fs):0,cl--,jo===10&&(cl=1,Co--),jo}function si(){return jo=fs2||Nn(jo)>3?"":" "}function Et(ts){for(;si();)switch(Nn(jo)){case 0:append(Ti(fs-1),ts);break;case 2:append(vt(jo),ts);break;default:append(from(jo),ts)}return ts}function an(ts,Vs){for(;--Vs&&si()&&!(jo<48||jo>102||jo>57&&jo<65||jo>70&&jo<97););return An(ts,dn()+(Vs<6&&co()==32&&si()==32))}function jn(ts){for(;si();)switch(jo){case ts:return fs;case 34:case 39:ts!==34&&ts!==39&&jn(jo);break;case 40:ts===41&&jn(ts);break;case 92:si();break}return fs}function Cr(ts,Vs){for(;si()&&ts+jo!==47+10;)if(ts+jo===42+42&&co()===47)break;return"/*"+An(Vs,fs-1)+"*"+Tr(ts===47?ts:si())}function Ti(ts){for(;!Nn(co());)si();return An(ts,fs)}function $i(ts){return ht(Vi("",null,null,null,[""],ts=tt(ts),0,[0],ts))}function Vi(ts,Vs,ma,Il,El,gl,fu,Nu,lc){for(var Ic=0,Vc=0,zd=fu,eh=0,Kd=0,ad=0,ku=1,Fc=1,dd=1,vd=0,Xd="",th=El,jd=gl,vh=Il,id=Xd;Fc;)switch(ad=vd,vd=si()){case 40:if(ad!=108&&vi(id,zd-1)==58){tr(id+=Si(vt(vd),"&","&\f"),"&\f")!=-1&&(dd=-1);break}case 34:case 39:case 91:id+=vt(vd);break;case 9:case 10:case 13:case 32:id+=lt(ad);break;case 92:id+=an(dn()-1,7);continue;case 47:switch(co()){case 42:case 47:ds(ks(Cr(si(),dn()),Vs,ma,lc),lc);break;default:id+="/"}break;case 123*ku:Nu[Ic++]=kr(id)*dd;case 125*ku:case 59:case 0:switch(vd){case 0:case 125:Fc=0;case 59+Vc:dd==-1&&(id=Si(id,/\f/g,"")),Kd>0&&kr(id)-zd&&ds(Kd>32?Os(id+";",Il,ma,zd-1,lc):Os(Si(id," ","")+";",Il,ma,zd-2,lc),lc);break;case 59:id+=";";default:if(ds(vh=us(id,Vs,ma,Ic,Vc,El,Nu,Xd,th=[],jd=[],zd,gl),gl),vd===123)if(Vc===0)Vi(id,Vs,vh,vh,th,gl,zd,Nu,jd);else switch(eh===99&&vi(id,3)===110?100:eh){case 100:case 108:case 109:case 115:Vi(ts,vh,vh,Il&&ds(us(ts,vh,vh,0,0,El,Nu,Xd,El,th=[],zd,jd),jd),El,jd,zd,Nu,Il?th:jd);break;default:Vi(id,vh,vh,vh,[""],jd,0,Nu,jd)}}Ic=Vc=Kd=0,ku=dd=1,Xd=id="",zd=fu;break;case 58:zd=1+kr(id),Kd=ad;default:if(ku<1){if(vd==123)--ku;else if(vd==125&&ku++==0&&Qa()==125)continue}switch(id+=Tr(vd),vd*ku){case 38:dd=Vc>0?1:(id+="\f",-1);break;case 44:Nu[Ic++]=(kr(id)-1)*dd,dd=1;break;case 64:co()===45&&(id+=vt(si())),eh=co(),Vc=zd=kr(Xd=id+=Ti(dn())),vd++;break;case 45:ad===45&&kr(id)==2&&(ku=0)}}return gl}function us(ts,Vs,ma,Il,El,gl,fu,Nu,lc,Ic,Vc,zd){for(var eh=El-1,Kd=El===0?gl:[""],ad=qn(Kd),ku=0,Fc=0,dd=0;ku0?Kd[vd]+" "+Xd:Si(Xd,/&\f/g,Kd[vd])))&&(lc[dd++]=th);return xs(ts,Vs,ma,El===0?ii:Nu,lc,Ic,Vc,zd)}function ks(ts,Vs,ma,Il){return xs(ts,Vs,ma,qr,Tr(xl()),Ni(ts,2,-2),0,Il)}function Os(ts,Vs,ma,Il,El){return xs(ts,Vs,ma,rn,Ni(ts,0,Il),Ni(ts,Il+1,-1),Il,El)}function pa(ts,Vs){var ma=Vs.path,Il=Vs.parentSelectors;devWarning(!1,"[Ant Design CSS-in-JS] ".concat(ma?"Error in ".concat(ma,": "):"").concat(ts).concat(Il.length?" Selector: ".concat(Il.join(" | ")):""))}var no=function(Vs,ma,Il){if(Vs==="content"){var El=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,gl=["normal","none","initial","inherit","unset"];(typeof ma!="string"||gl.indexOf(ma)===-1&&!El.test(ma)&&(ma.charAt(0)!==ma.charAt(ma.length-1)||ma.charAt(0)!=='"'&&ma.charAt(0)!=="'"))&&lintWarning("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(ma,"\"'`."),Il)}},Cs=null,ea=function(Vs,ma,Il){Vs==="animation"&&Il.hashId&&ma!=="none"&&lintWarning("You seem to be using hashed animation '".concat(ma,"', in which case 'animationName' with Keyframe as value is recommended."),Il)},fa=null;function Bl(ts){var Vs,ma=((Vs=ts.match(/:not\(([^)]*)\)/))===null||Vs===void 0?void 0:Vs[1])||"",Il=ma.split(/(\[[^[]*])|(?=[.#])/).filter(function(El){return El});return Il.length>1}function Ma(ts){return ts.parentSelectors.reduce(function(Vs,ma){return Vs?ma.includes("&")?ma.replace(/&/g,Vs):"".concat(Vs," ").concat(ma):ma},"")}var pl=function(Vs,ma,Il){var El=Ma(Il),gl=El.match(/:not\([^)]*\)/g)||[];gl.length>0&&gl.some(Bl)&&lintWarning("Concat ':not' selector not support in legacy browsers.",Il)},oa=null,Nl=function(Vs,ma,Il){switch(Vs){case"marginLeft":case"marginRight":case"paddingLeft":case"paddingRight":case"left":case"right":case"borderLeft":case"borderLeftWidth":case"borderLeftStyle":case"borderLeftColor":case"borderRight":case"borderRightWidth":case"borderRightStyle":case"borderRightColor":case"borderTopLeftRadius":case"borderTopRightRadius":case"borderBottomLeftRadius":case"borderBottomRightRadius":lintWarning("You seem to be using non-logical property '".concat(Vs,"' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),Il);return;case"margin":case"padding":case"borderWidth":case"borderStyle":if(typeof ma=="string"){var El=ma.split(" ").map(function(Nu){return Nu.trim()});El.length===4&&El[1]!==El[3]&&lintWarning("You seem to be using '".concat(Vs,"' property with different left ").concat(Vs," and right ").concat(Vs,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),Il)}return;case"clear":case"textAlign":(ma==="left"||ma==="right")&&lintWarning("You seem to be using non-logical value '".concat(ma,"' of ").concat(Vs,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),Il);return;case"borderRadius":if(typeof ma=="string"){var gl=ma.split("/").map(function(Nu){return Nu.trim()}),fu=gl.reduce(function(Nu,lc){if(Nu)return Nu;var Ic=lc.split(" ").map(function(Vc){return Vc.trim()});return Ic.length>=2&&Ic[0]!==Ic[1]||Ic.length===3&&Ic[1]!==Ic[2]||Ic.length===4&&Ic[2]!==Ic[3]?!0:Nu},!1);fu&&lintWarning("You seem to be using non-logical value '".concat(ma,"' of ").concat(Vs,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),Il)}return;default:}},cs=null,zi=function(Vs,ma,Il){Il.parentSelectors.some(function(El){var gl=El.split(",");return gl.some(function(fu){return fu.split("&").length>2})})&&lintWarning("Should not use more than one `&` in a selector.",Il)},qi=null,ta="data-ant-cssinjs-cache-path",ms="_FILE_STYLE__";function Ua(ts){return Object.keys(ts).map(function(Vs){var ma=ts[Vs];return"".concat(Vs,":").concat(ma)}).join(";")}var $u,rc=!0;function Pc(ts){var Vs=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;$u=ts,rc=Vs}function ho(){if(!$u&&($u={},(0,ye.Z)())){var ts=document.createElement("div");ts.className=ta,ts.style.position="fixed",ts.style.visibility="hidden",ts.style.top="-9999px",document.body.appendChild(ts);var Vs=getComputedStyle(ts).content||"";Vs=Vs.replace(/^"/,"").replace(/"$/,""),Vs.split(";").forEach(function(El){var gl=El.split(":"),fu=(0,Ce.Z)(gl,2),Nu=fu[0],lc=fu[1];$u[Nu]=lc});var ma=document.querySelector("style[".concat(ta,"]"));if(ma){var Il;rc=!1,(Il=ma.parentNode)===null||Il===void 0||Il.removeChild(ma)}document.body.removeChild(ts)}}function Ji(ts){return ho(),!!$u[ts]}function ss(ts){var Vs=$u[ts],ma=null;if(Vs&&(0,ye.Z)())if(rc)ma=ms;else{var Il=document.querySelector("style[".concat(pe,'="').concat($u[ts],'"]'));Il?ma=Il.innerHTML:delete $u[ts]}return[ma,Vs]}var $n=(0,ye.Z)(),mr="_skip_check_",Qr="_multi_value_";function ni(ts){var Vs=zs($i(ts),Wa);return Vs.replace(/\{%%%\:[^;];}/g,";")}function Ki(ts){return(0,ve.Z)(ts)==="object"&&ts&&(mr in ts||Qr in ts)}function ro(ts,Vs,ma){if(!Vs)return ts;var Il=".".concat(Vs),El=ma==="low"?":where(".concat(Il,")"):Il,gl=ts.split(",").map(function(fu){var Nu,lc=fu.trim().split(/\s+/),Ic=lc[0]||"",Vc=((Nu=Ic.match(/^\w+/))===null||Nu===void 0?void 0:Nu[0])||"";return Ic="".concat(Vc).concat(El).concat(Ic.slice(Vc.length)),[Ic].concat((0,y.Z)(lc.slice(1))).join(" ")});return gl.join(",")}var Ei=function ts(Vs){var ma=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Il=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},El=Il.root,gl=Il.injectHash,fu=Il.parentSelectors,Nu=ma.hashId,lc=ma.layer,Ic=ma.path,Vc=ma.hashPriority,zd=ma.transformers,eh=zd===void 0?[]:zd,Kd=ma.linters,ad=Kd===void 0?[]:Kd,ku="",Fc={};function dd(vh){var id=vh.getName(Nu);if(!Fc[id]){var nd=ts(vh.style,ma,{root:!1,parentSelectors:fu}),Pf=(0,Ce.Z)(nd,1),qd=Pf[0];Fc[id]="@keyframes ".concat(vh.getName(Nu)).concat(qd)}}function vd(vh){var id=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return vh.forEach(function(nd){Array.isArray(nd)?vd(nd,id):nd&&id.push(nd)}),id}var Xd=vd(Array.isArray(Vs)?Vs:[Vs]);if(Xd.forEach(function(vh){var id=typeof vh=="string"&&!El?{}:vh;if(typeof id=="string")ku+="".concat(id,` +`);else if(id._keyframe)dd(id);else{var nd=eh.reduce(function(Pf,qd){var cc;return(qd==null||(cc=qd.visit)===null||cc===void 0?void 0:cc.call(qd,Pf))||Pf},id);Object.keys(nd).forEach(function(Pf){var qd=nd[Pf];if((0,ve.Z)(qd)==="object"&&qd&&(Pf!=="animationName"||!qd._keyframe)&&!Ki(qd)){var cc=!1,Xc=Pf.trim(),jh=!1;(El||gl)&&Nu?Xc.startsWith("@")?cc=!0:Xc=ro(Pf,Nu,Vc):El&&!Nu&&(Xc==="&"||Xc==="")&&(Xc="",jh=!0);var uf=ts(qd,ma,{root:jh,injectHash:cc,parentSelectors:[].concat((0,y.Z)(fu),[Xc])}),Lh=(0,Ce.Z)(uf,2),Sf=Lh[0],Cp=Lh[1];Fc=(0,I.Z)((0,I.Z)({},Fc),Cp),ku+="".concat(Xc).concat(Sf)}else{let Th=function(yu,ff){var Ja=yu.replace(/[A-Z]/g,function(wd){return"-".concat(wd.toLowerCase())}),Fu=ff;!Xn[yu]&&typeof Fu=="number"&&Fu!==0&&(Fu="".concat(Fu,"px")),yu==="animationName"&&ff!==null&&ff!==void 0&&ff._keyframe&&(dd(ff),Fu=ff.getName(Nu)),ku+="".concat(Ja,":").concat(Fu,";")};var Nf,uh=(Nf=qd==null?void 0:qd.value)!==null&&Nf!==void 0?Nf:qd;(0,ve.Z)(qd)==="object"&&qd!==null&&qd!==void 0&&qd[Qr]&&Array.isArray(uh)?uh.forEach(function(yu){Th(Pf,yu)}):Th(Pf,uh)}})}}),!El)ku="{".concat(ku,"}");else if(lc&&yo()){var th=lc.split(","),jd=th[th.length-1].trim();ku="@layer ".concat(jd," {").concat(ku,"}"),th.length>1&&(ku="@layer ".concat(lc,"{%%%:%}").concat(ku))}return[ku,Fc]};function ns(ts,Vs){return z("".concat(ts.join("%")).concat(Vs))}function ca(){return null}function Na(ts,Vs){var ma=ts.token,Il=ts.path,El=ts.hashId,gl=ts.layer,fu=ts.nonce,Nu=ts.clientOnly,lc=ts.order,Ic=lc===void 0?0:lc,Vc=k.useContext(De),zd=Vc.autoClear,eh=Vc.mock,Kd=Vc.defaultCache,ad=Vc.hashPriority,ku=Vc.container,Fc=Vc.ssrInline,dd=Vc.transformers,vd=Vc.linters,Xd=Vc.cache,th=ma._tokenKey,jd=[th].concat((0,y.Z)(Il)),vh=$n,id=Zi("style",jd,function(){var Xc=jd.join("|");if(Ji(Xc)){var jh=ss(Xc),uf=(0,Ce.Z)(jh,2),Lh=uf[0],Sf=uf[1];if(Lh)return[Lh,th,Sf,{},Nu,Ic]}var Cp=Vs(),Nf=Ei(Cp,{hashId:El,hashPriority:ad,layer:gl,path:Il.join("-"),transformers:dd,linters:vd}),uh=(0,Ce.Z)(Nf,2),Th=uh[0],yu=uh[1],ff=ni(Th),Ja=ns(jd,ff);return[ff,th,Ja,yu,Nu,Ic]},function(Xc,jh){var uf=(0,Ce.Z)(Xc,3),Lh=uf[2];(jh||zd)&&$n&&(0,we.jL)(Lh,{mark:pe})},function(Xc){var jh=(0,Ce.Z)(Xc,4),uf=jh[0],Lh=jh[1],Sf=jh[2],Cp=jh[3];if(vh&&uf!==ms){var Nf={mark:pe,prepend:"queue",attachTo:ku,priority:Ic},uh=typeof fu=="function"?fu():fu;uh&&(Nf.csp={nonce:uh});var Th=(0,we.hq)(uf,Sf,Nf);Th[fe]=Xd.instanceId,Th.setAttribute(ce,th),Object.keys(Cp).forEach(function(yu){(0,we.hq)(ni(Cp[yu]),"_effect-".concat(yu),Nf)})}}),nd=(0,Ce.Z)(id,3),Pf=nd[0],qd=nd[1],cc=nd[2];return function(Xc){var jh;if(!Fc||vh||!Kd)jh=k.createElement(ca,null);else{var uf;jh=k.createElement("style",(0,na.Z)({},(uf={},(0,S.Z)(uf,ce,qd),(0,S.Z)(uf,pe,cc),uf),{dangerouslySetInnerHTML:{__html:Pf}}))}return k.createElement(k.Fragment,null,jh,Xc)}}function ul(ts){var Vs=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ma="style%",Il=Array.from(ts.cache.keys()).filter(function(Ic){return Ic.startsWith(ma)}),El={},gl={},fu="";function Nu(Ic,Vc,zd){var eh,Kd=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},ad=_objectSpread(_objectSpread({},Kd),{},(eh={},_defineProperty(eh,ATTR_TOKEN,Vc),_defineProperty(eh,ATTR_MARK,zd),eh)),ku=Object.keys(ad).map(function(Fc){var dd=ad[Fc];return dd?"".concat(Fc,'="').concat(dd,'"'):null}).filter(function(Fc){return Fc}).join(" ");return Vs?Ic:"")}var lc=Il.map(function(Ic){var Vc=Ic.slice(ma.length).replace(/%/g,"|"),zd=_slicedToArray(ts.cache.get(Ic)[1],6),eh=zd[0],Kd=zd[1],ad=zd[2],ku=zd[3],Fc=zd[4],dd=zd[5];if(Fc)return null;var vd={"data-rc-order":"prependQueue","data-rc-priority":"".concat(dd)},Xd=Nu(eh,Kd,ad,vd);gl[Vc]=ad,ku&&Object.keys(ku).forEach(function(jd){El[jd]||(El[jd]=!0,Xd+=Nu(ni(ku[jd]),Kd,"_effect-".concat(jd),vd))});var th=[dd,Xd];return th}).filter(function(Ic){return Ic});return lc.sort(function(Ic,Vc){return Ic[0]-Vc[0]}).forEach(function(Ic){var Vc=_slicedToArray(Ic,2),zd=Vc[1];fu+=zd}),fu+=Nu(".".concat(ATTR_CACHE_MAP,'{content:"').concat(serializeCacheMap(gl),'";}'),void 0,void 0,_defineProperty({},ATTR_CACHE_MAP,ATTR_CACHE_MAP)),fu}var Hl=function(){function ts(Vs,ma){(0,C.Z)(this,ts),(0,S.Z)(this,"name",void 0),(0,S.Z)(this,"style",void 0),(0,S.Z)(this,"_keyframe",!0),this.name=Vs,this.style=ma}return(0,f.Z)(ts,[{key:"getName",value:function(){var ma=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ma?"".concat(ma,"-").concat(this.name):this.name}}]),ts}(),Ml=Hl;function ja(ts){if(typeof ts=="number")return[[ts],!1];var Vs=String(ts).trim(),ma=Vs.match(/(.*)(!important)/),Il=(ma?ma[1]:Vs).trim().split(/\s+/),El="",gl=0;return[Il.reduce(function(fu,Nu){return Nu.includes("(")?(El+=Nu,gl+=Nu.split("(").length-1):Nu.includes(")")?(El+=Nu,gl-=Nu.split(")").length-1,gl===0&&(fu.push(El),El="")):gl>0?El+=Nu:fu.push(Nu),fu},[]),!!ma]}function Pu(ts){return ts.notSplit=!0,ts}var Xs={inset:["top","right","bottom","left"],insetBlock:["top","bottom"],insetBlockStart:["top"],insetBlockEnd:["bottom"],insetInline:["left","right"],insetInlineStart:["left"],insetInlineEnd:["right"],marginBlock:["marginTop","marginBottom"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],marginInline:["marginLeft","marginRight"],marginInlineStart:["marginLeft"],marginInlineEnd:["marginRight"],paddingBlock:["paddingTop","paddingBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"],paddingInline:["paddingLeft","paddingRight"],paddingInlineStart:["paddingLeft"],paddingInlineEnd:["paddingRight"],borderBlock:Pu(["borderTop","borderBottom"]),borderBlockStart:Pu(["borderTop"]),borderBlockEnd:Pu(["borderBottom"]),borderInline:Pu(["borderLeft","borderRight"]),borderInlineStart:Pu(["borderLeft"]),borderInlineEnd:Pu(["borderRight"]),borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndWidth:["borderBottomWidth"],borderInlineWidth:["borderLeftWidth","borderRightWidth"],borderInlineStartWidth:["borderLeftWidth"],borderInlineEndWidth:["borderRightWidth"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderBlockStartStyle:["borderTopStyle"],borderBlockEndStyle:["borderBottomStyle"],borderInlineStyle:["borderLeftStyle","borderRightStyle"],borderInlineStartStyle:["borderLeftStyle"],borderInlineEndStyle:["borderRightStyle"],borderBlockColor:["borderTopColor","borderBottomColor"],borderBlockStartColor:["borderTopColor"],borderBlockEndColor:["borderBottomColor"],borderInlineColor:["borderLeftColor","borderRightColor"],borderInlineStartColor:["borderLeftColor"],borderInlineEndColor:["borderRightColor"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"]};function Ya(ts,Vs){var ma=ts;return Vs&&(ma="".concat(ma," !important")),{_skip_check_:!0,value:ma}}var qa={visit:function(Vs){var ma={};return Object.keys(Vs).forEach(function(Il){var El=Vs[Il],gl=Xs[Il];if(gl&&(typeof El=="number"||typeof El=="string")){var fu=ja(El),Nu=(0,Ce.Z)(fu,2),lc=Nu[0],Ic=Nu[1];gl.length&&gl.notSplit?gl.forEach(function(Vc){ma[Vc]=Ya(El,Ic)}):gl.length===1?ma[gl[0]]=Ya(El,Ic):gl.length===2?gl.forEach(function(Vc,zd){var eh;ma[Vc]=Ya((eh=lc[zd])!==null&&eh!==void 0?eh:lc[0],Ic)}):gl.length===4?gl.forEach(function(Vc,zd){var eh,Kd;ma[Vc]=Ya((eh=(Kd=lc[zd])!==null&&Kd!==void 0?Kd:lc[zd-2])!==null&&eh!==void 0?eh:lc[0],Ic)}):ma[Il]=El}else ma[Il]=El}),ma}},Ul=null,ql=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function vu(ts,Vs){var ma=Math.pow(10,Vs+1),Il=Math.floor(ts*ma);return Math.round(Il/10)*10/ma}var au=function(){var Vs=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ma=Vs.rootValue,Il=ma===void 0?16:ma,El=Vs.precision,gl=El===void 0?5:El,fu=Vs.mediaQuery,Nu=fu===void 0?!1:fu,lc=function(zd,eh){if(!eh)return zd;var Kd=parseFloat(eh);if(Kd<=1)return zd;var ad=vu(Kd/Il,gl);return"".concat(ad,"rem")},Ic=function(zd){var eh=_objectSpread({},zd);return Object.entries(zd).forEach(function(Kd){var ad=_slicedToArray(Kd,2),ku=ad[0],Fc=ad[1];if(typeof Fc=="string"&&Fc.includes("px")){var dd=Fc.replace(ql,lc);eh[ku]=dd}!unitless[ku]&&typeof Fc=="number"&&Fc!==0&&(eh[ku]="".concat(Fc,"px").replace(ql,lc));var vd=ku.trim();if(vd.startsWith("@")&&vd.includes("px")&&Nu){var Xd=ku.replace(ql,lc);eh[Xd]=eh[ku],delete eh[ku]}}),eh};return{visit:Ic}},bn=null,Eu={supportModernCSS:function(){return Po()&&ge()}}},7786:function(nt,V){"use strict";var m={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};V.Z=m},77364:function(nt,V){"use strict";var m={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};V.Z=m},58825:function(nt,V){"use strict";var m={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};V.Z=m},28186:function(nt,V){"use strict";var m={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};V.Z=m},15702:function(nt,V){"use strict";var m={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};V.Z=m},40043:function(nt,V){"use strict";var m={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};V.Z=m},13123:function(nt,V,m){"use strict";m.d(V,{Z:function(){return Be}});var y=m(74710),I=m(39718),b=m(80268),z=m(52528),k=m(77617),N=m(12124),w=m.n(N),A=m(39055),C=m(85905),f=["icon","className","onClick","style","primaryColor","secondaryColor"],S={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function P(Ie){var We=Ie.primaryColor,De=Ie.secondaryColor;S.primaryColor=We,S.secondaryColor=De||(0,C.pw)(We),S.calculated=!!De}function W(){return(0,y.Z)({},S)}var ne=function(We){var De=We.icon,ve=We.className,ye=We.onClick,we=We.style,Ce=We.primaryColor,Ae=We.secondaryColor,me=(0,z.Z)(We,f),je=S;if(Ce&&(je={primaryColor:Ce,secondaryColor:Ae||(0,C.pw)(Ce)}),(0,C.C3)(),(0,C.Kp)((0,C.r)(De),"icon should be icon definiton, but got ".concat(De)),!(0,C.r)(De))return null;var xe=De;return xe&&typeof xe.icon=="function"&&(xe=(0,y.Z)((0,y.Z)({},xe),{},{icon:xe.icon(je.primaryColor,je.secondaryColor)})),(0,C.R_)(xe.icon,"svg-".concat(xe.name),(0,y.Z)({className:ve,onClick:ye,style:we,"data-icon":xe.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},me))};ne.displayName="IconReact",ne.getTwoToneColors=W,ne.setTwoToneColors=P;var re=ne;function ce(Ie){var We=(0,C.H9)(Ie),De=(0,I.Z)(We,2),ve=De[0],ye=De[1];return re.setTwoToneColors({primaryColor:ve,secondaryColor:ye})}function pe(){var Ie=re.getTwoToneColors();return Ie.calculated?[Ie.primaryColor,Ie.secondaryColor]:Ie.primaryColor}var he=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];ce("#1890ff");var fe=k.forwardRef(function(Ie,We){var De,ve=Ie.className,ye=Ie.icon,we=Ie.spin,Ce=Ie.rotate,Ae=Ie.tabIndex,me=Ie.onClick,je=Ie.twoToneColor,xe=(0,z.Z)(Ie,he),Pt=k.useContext(A.Z),ct=Pt.prefixCls,He=ct===void 0?"anticon":ct,wt=Pt.rootClassName,dt=w()(wt,He,(De={},(0,b.Z)(De,"".concat(He,"-").concat(ye.name),!!ye.name),(0,b.Z)(De,"".concat(He,"-spin"),!!we||ye.name==="loading"),De),ve),Bt=Ae;Bt===void 0&&me&&(Bt=-1);var gt=Ce?{msTransform:"rotate(".concat(Ce,"deg)"),transform:"rotate(".concat(Ce,"deg)")}:void 0,_n=(0,C.H9)(je),Bn=(0,I.Z)(_n,2),Er=Bn[0],Yr=Bn[1];return k.createElement("span",(0,y.Z)((0,y.Z)({role:"img","aria-label":ye.name},xe),{},{ref:We,tabIndex:Bt,onClick:me,className:dt}),k.createElement(re,{icon:ye,primaryColor:Er,secondaryColor:Yr,style:gt}))});fe.displayName="AntdIcon",fe.getTwoToneColor=pe,fe.setTwoToneColor=ce;var Be=fe},39055:function(nt,V,m){"use strict";var y=m(77617),I=(0,y.createContext)({});V.Z=I},35973:function(nt,V,m){"use strict";m.d(V,{Z:function(){return ce}});var y=m(74710),I=m(52528),b=m(77617),z=m(80268),k=m(12124),N=m.n(k),w=m(39055),A=m(85905),C=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],f=b.forwardRef(function(pe,he){var fe=pe.className,Be=pe.component,Ie=pe.viewBox,We=pe.spin,De=pe.rotate,ve=pe.tabIndex,ye=pe.onClick,we=pe.children,Ce=(0,I.Z)(pe,C);(0,A.Kp)(!!(Be||we),"Should have `component` prop or `children`."),(0,A.C3)();var Ae=b.useContext(w.Z),me=Ae.prefixCls,je=me===void 0?"anticon":me,xe=Ae.rootClassName,Pt=N()(xe,je,fe),ct=N()((0,z.Z)({},"".concat(je,"-spin"),!!We)),He=De?{msTransform:"rotate(".concat(De,"deg)"),transform:"rotate(".concat(De,"deg)")}:void 0,wt=(0,y.Z)((0,y.Z)({},A.vD),{},{className:ct,style:He,viewBox:Ie});Ie||delete wt.viewBox;var dt=function(){return Be?b.createElement(Be,(0,y.Z)({},wt),we):we?((0,A.Kp)(!!Ie||b.Children.count(we)===1&&b.isValidElement(we)&&b.Children.only(we).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),b.createElement("svg",(0,y.Z)((0,y.Z)({},wt),{},{viewBox:Ie}),we)):null},Bt=ve;return Bt===void 0&&ye&&(Bt=-1),b.createElement("span",(0,y.Z)((0,y.Z)({role:"img"},Ce),{},{ref:he,tabIndex:Bt,onClick:ye,className:Pt}),dt())});f.displayName="AntdIcon";var S=f,P=["type","children"],W=new Set;function ne(pe){return!!(typeof pe=="string"&&pe.length&&!W.has(pe))}function re(pe){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,fe=pe[he];if(ne(fe)){var Be=document.createElement("script");Be.setAttribute("src",fe),Be.setAttribute("data-namespace",fe),pe.length>he+1&&(Be.onload=function(){re(pe,he+1)},Be.onerror=function(){re(pe,he+1)}),W.add(fe),document.body.appendChild(Be)}}function ce(){var pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},he=pe.scriptUrl,fe=pe.extraCommonProps,Be=fe===void 0?{}:fe;he&&typeof document!="undefined"&&typeof window!="undefined"&&typeof document.createElement=="function"&&(Array.isArray(he)?re(he.reverse()):re([he]));var Ie=b.forwardRef(function(We,De){var ve=We.type,ye=We.children,we=(0,I.Z)(We,P),Ce=null;return We.type&&(Ce=b.createElement("use",{xlinkHref:"#".concat(ve)})),ye&&(Ce=ye),b.createElement(S,(0,y.Z)((0,y.Z)((0,y.Z)({},Be),we),{},{ref:De}),Ce)});return Ie.displayName="Iconfont",Ie}},63887:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(74710),I=m(77617),b={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"},z=b,k=m(13123),N=function(C,f){return I.createElement(k.Z,(0,y.Z)((0,y.Z)({},C),{},{ref:f,icon:z}))};N.displayName="CaretRightOutlined";var w=I.forwardRef(N)},66850:function(nt,V,m){"use strict";var y=m(74710),I=m(77617),b=m(7786),z=m(13123),k=function(w,A){return I.createElement(z.Z,(0,y.Z)((0,y.Z)({},w),{},{ref:A,icon:b.Z}))};k.displayName="CloseOutlined",V.Z=I.forwardRef(k)},36584:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(74710),I=m(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M624 706.3h-74.1V464c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v242.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.7a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-download",theme:"outlined"},z=b,k=m(13123),N=function(C,f){return I.createElement(k.Z,(0,y.Z)((0,y.Z)({},C),{},{ref:f,icon:z}))};N.displayName="CloudDownloadOutlined";var w=I.forwardRef(N)},25394:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(74710),I=m(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M518.3 459a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-upload",theme:"outlined"},z=b,k=m(13123),N=function(C,f){return I.createElement(k.Z,(0,y.Z)((0,y.Z)({},C),{},{ref:f,icon:z}))};N.displayName="CloudUploadOutlined";var w=I.forwardRef(N)},74307:function(nt,V,m){"use strict";var y=m(74710),I=m(77617),b=m(77364),z=m(13123),k=function(w,A){return I.createElement(z.Z,(0,y.Z)((0,y.Z)({},w),{},{ref:A,icon:b.Z}))};k.displayName="DeleteOutlined",V.Z=I.forwardRef(k)},69768:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(74710),I=m(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M573.7 252.5C422.5 197.4 201.3 96.7 201.3 96.7c-15.7-4.1-17.9 11.1-17.9 11.1-5 61.1 33.6 160.5 53.6 182.8 19.9 22.3 319.1 113.7 319.1 113.7S326 357.9 270.5 341.9c-55.6-16-37.9 17.8-37.9 17.8 11.4 61.7 64.9 131.8 107.2 138.4 42.2 6.6 220.1 4 220.1 4s-35.5 4.1-93.2 11.9c-42.7 5.8-97 12.5-111.1 17.8-33.1 12.5 24 62.6 24 62.6 84.7 76.8 129.7 50.5 129.7 50.5 33.3-10.7 61.4-18.5 85.2-24.2L565 743.1h84.6L603 928l205.3-271.9H700.8l22.3-38.7c.3.5.4.8.4.8S799.8 496.1 829 433.8l.6-1h-.1c5-10.8 8.6-19.7 10-25.8 17-71.3-114.5-99.4-265.8-154.5z"}}]},name:"dingtalk",theme:"outlined"},z=b,k=m(13123),N=function(C,f){return I.createElement(k.Z,(0,y.Z)((0,y.Z)({},C),{},{ref:f,icon:z}))};N.displayName="DingtalkOutlined";var w=I.forwardRef(N)},41445:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(74710),I=m(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M600 395.4h91V649h79V267c0-4.4-3.6-8-8-8h-48.2c-3.7 0-7 2.6-7.7 6.3-2.6 12.1-6.9 22.3-12.9 30.9a86.14 86.14 0 01-26.3 24.4c-10.3 6.2-22 10.5-35 12.9-10.4 1.9-21 3-32 3.1a8 8 0 00-7.9 8v42.8c0 4.4 3.6 8 8 8zM871 702H567c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM443.9 312.7c-16.1-19-34.4-32.4-55.2-40.4-21.3-8.2-44.1-12.3-68.4-12.3-23.9 0-46.4 4.1-67.7 12.3-20.8 8-39 21.4-54.8 40.3-15.9 19.1-28.7 44.7-38.3 77-9.6 32.5-14.5 73-14.5 121.5 0 49.9 4.9 91.4 14.5 124.4 9.6 32.8 22.4 58.7 38.3 77.7 15.8 18.9 34 32.3 54.8 40.3 21.3 8.2 43.8 12.3 67.7 12.3 24.4 0 47.2-4.1 68.4-12.3 20.8-8 39.2-21.4 55.2-40.4 16.1-19 29-44.9 38.6-77.7 9.6-33 14.5-74.5 14.5-124.4 0-48.4-4.9-88.9-14.5-121.5-9.5-32.1-22.4-57.7-38.6-76.8zm-29.5 251.7c-1 21.4-4.2 42-9.5 61.9-5.5 20.7-14.5 38.5-27 53.4-13.6 16.3-33.2 24.3-57.6 24.3-24 0-43.2-8.1-56.7-24.4-12.2-14.8-21.1-32.6-26.6-53.3-5.3-19.9-8.5-40.6-9.5-61.9-1-20.8-1.5-38.5-1.5-53.2 0-8.8.1-19.4.4-31.8.2-12.7 1.1-25.8 2.6-39.2 1.5-13.6 4-27.1 7.6-40.5 3.7-13.8 8.8-26.3 15.4-37.4 6.9-11.6 15.8-21.1 26.7-28.3 11.4-7.6 25.3-11.3 41.5-11.3 16.1 0 30.1 3.7 41.7 11.2a87.94 87.94 0 0127.4 28.2c6.9 11.2 12.1 23.8 15.6 37.7 3.3 13.2 5.8 26.6 7.5 40.1 1.8 13.5 2.8 26.6 3 39.4.2 12.4.4 23 .4 31.8.1 14.8-.4 32.5-1.4 53.3z"}}]},name:"field-binary",theme:"outlined"},z=b,k=m(13123),N=function(C,f){return I.createElement(k.Z,(0,y.Z)((0,y.Z)({},C),{},{ref:f,icon:z}))};N.displayName="FieldBinaryOutlined";var w=I.forwardRef(N)},64015:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(74710),I=m(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M875.6 515.9c2.1.8 4.4-.3 5.2-2.4.2-.4.2-.9.2-1.4v-58.3c0-1.8-1.1-3.3-2.8-3.8-6-1.8-17.2-3-27.2-3-32.9 0-61.7 16.7-73.5 41.2v-28.6c0-4.4-3.6-8-8-8H717c-4.4 0-8 3.6-8 8V729c0 4.4 3.6 8 8 8h54.8c4.4 0 8-3.6 8-8V572.7c0-36.2 26.1-60.2 65.1-60.2 10.4.1 26.6 1.8 30.7 3.4zm-537-40.5l-54.7-12.6c-61.2-14.2-87.7-34.8-87.7-70.7 0-44.6 39.1-73.5 96.9-73.5 52.8 0 91.4 26.5 99.9 68.9h70C455.9 311.6 387.6 259 293.4 259c-103.3 0-171 55.5-171 139 0 68.6 38.6 109.5 122.2 128.5l61.6 14.3c63.6 14.9 91.6 37.1 91.6 75.1 0 44.1-43.5 75.2-102.5 75.2-60.6 0-104.5-27.2-112.8-70.5H111c7.2 79.9 75.6 130.4 179.1 130.4C402.3 751 471 695.2 471 605.3c0-70.2-38.6-108.5-132.4-129.9zM841 729a36 36 0 1072 0 36 36 0 10-72 0zM653 457.8h-51.4V396c0-4.4-3.6-8-8-8h-54.7c-4.4 0-8 3.6-8 8v61.8H495c-4.4 0-8 3.6-8 8v42.3c0 4.4 3.6 8 8 8h35.9v147.5c0 56.2 27.4 79.4 93.1 79.4 11.7 0 23.6-1.2 33.8-3.1 1.9-.3 3.2-2 3.2-3.9v-49.3c0-2.2-1.8-4-4-4h-.4c-4.9.5-6.2.6-8.3.8-4.1.3-7.8.5-12.6.5-24.1 0-34.1-10.3-34.1-35.6V516.1H653c4.4 0 8-3.6 8-8v-42.3c0-4.4-3.6-8-8-8z"}}]},name:"field-string",theme:"outlined"},z=b,k=m(13123),N=function(C,f){return I.createElement(k.Z,(0,y.Z)((0,y.Z)({},C),{},{ref:f,icon:z}))};N.displayName="FieldStringOutlined";var w=I.forwardRef(N)},54068:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(74710),I=m(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"},z=b,k=m(13123),N=function(C,f){return I.createElement(k.Z,(0,y.Z)((0,y.Z)({},C),{},{ref:f,icon:z}))};N.displayName="FileTextOutlined";var w=I.forwardRef(N)},7741:function(nt,V,m){"use strict";var y=m(74710),I=m(77617),b=m(58825),z=m(13123),k=function(w,A){return I.createElement(z.Z,(0,y.Z)((0,y.Z)({},w),{},{ref:A,icon:b.Z}))};k.displayName="FilterFilled",V.Z=I.forwardRef(k)},28909:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(74710),I=m(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"},z=b,k=m(13123),N=function(C,f){return I.createElement(k.Z,(0,y.Z)((0,y.Z)({},C),{},{ref:f,icon:z}))};N.displayName="FilterOutlined";var w=I.forwardRef(N)},9971:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(74710),I=m(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 305H624V192c0-17.7-14.3-32-32-32H184v-40c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v784c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V640h248v113c0 17.7 14.3 32 32 32h416c17.7 0 32-14.3 32-32V337c0-17.7-14.3-32-32-32zM184 568V232h368v336H184zm656 145H504v-73h112c4.4 0 8-3.6 8-8V377h216v336z"}}]},name:"flag",theme:"outlined"},z=b,k=m(13123),N=function(C,f){return I.createElement(k.Z,(0,y.Z)((0,y.Z)({},C),{},{ref:f,icon:z}))};N.displayName="FlagOutlined";var w=I.forwardRef(N)},68380:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(74710),I=m(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"outlined"},z=b,k=m(13123),N=function(C,f){return I.createElement(k.Z,(0,y.Z)((0,y.Z)({},C),{},{ref:f,icon:z}))};N.displayName="GithubOutlined";var w=I.forwardRef(N)},54977:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(74710),I=m(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"},z=b,k=m(13123),N=function(C,f){return I.createElement(k.Z,(0,y.Z)((0,y.Z)({},C),{},{ref:f,icon:z}))};N.displayName="GlobalOutlined";var w=I.forwardRef(N)},22840:function(nt,V,m){"use strict";var y=m(74710),I=m(77617),b=m(28186),z=m(13123),k=function(w,A){return I.createElement(z.Z,(0,y.Z)((0,y.Z)({},w),{},{ref:A,icon:b.Z}))};k.displayName="PlusOutlined",V.Z=I.forwardRef(k)},43056:function(nt,V,m){"use strict";var y=m(74710),I=m(77617),b=m(15702),z=m(13123),k=function(w,A){return I.createElement(z.Z,(0,y.Z)((0,y.Z)({},w),{},{ref:A,icon:b.Z}))};k.displayName="PlusSquareOutlined",V.Z=I.forwardRef(k)},83624:function(nt,V,m){"use strict";var y=m(74710),I=m(77617),b=m(40043),z=m(13123),k=function(w,A){return I.createElement(z.Z,(0,y.Z)((0,y.Z)({},w),{},{ref:A,icon:b.Z}))};k.displayName="QuestionCircleOutlined",V.Z=I.forwardRef(k)},96278:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(74710),I=m(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"},z=b,k=m(13123),N=function(C,f){return I.createElement(k.Z,(0,y.Z)((0,y.Z)({},C),{},{ref:f,icon:z}))};N.displayName="SaveOutlined";var w=I.forwardRef(N)},48619:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(74710),I=m(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},z=b,k=m(13123),N=function(C,f){return I.createElement(k.Z,(0,y.Z)((0,y.Z)({},C),{},{ref:f,icon:z}))};N.displayName="SettingOutlined";var w=I.forwardRef(N)},43959:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(74710),I=m(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 208H676V232h212v136zm0 224H676V432h212v160zM412 432h200v160H412V432zm200-64H412V232h200v136zm-476 64h212v160H136V432zm0-200h212v136H136V232zm0 424h212v136H136V656zm276 0h200v136H412V656zm476 136H676V656h212v136z"}}]},name:"table",theme:"outlined"},z=b,k=m(13123),N=function(C,f){return I.createElement(k.Z,(0,y.Z)((0,y.Z)({},C),{},{ref:f,icon:z}))};N.displayName="TableOutlined";var w=I.forwardRef(N)},85905:function(nt,V,m){"use strict";m.d(V,{R_:function(){return yo},pw:function(){return yr},r:function(){return oi},H9:function(){return Po},vD:function(){return as},C3:function(){return _o},Kp:function(){return Yr}});var y=m(74710),I=m(91002),b=m(12722),z=m(9915),k=2,N=.16,w=.05,A=.05,C=.15,f=5,S=4,P=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function W(ci){var Bi=ci.r,Ci=ci.g,io=ci.b,ln=(0,b.py)(Bi,Ci,io);return{h:ln.h*360,s:ln.s,v:ln.v}}function ne(ci){var Bi=ci.r,Ci=ci.g,io=ci.b;return"#".concat((0,b.vq)(Bi,Ci,io,!1))}function re(ci,Bi,Ci){var io=Ci/100,ln={r:(Bi.r-ci.r)*io+ci.r,g:(Bi.g-ci.g)*io+ci.g,b:(Bi.b-ci.b)*io+ci.b};return ln}function ce(ci,Bi,Ci){var io;return Math.round(ci.h)>=60&&Math.round(ci.h)<=240?io=Ci?Math.round(ci.h)-k*Bi:Math.round(ci.h)+k*Bi:io=Ci?Math.round(ci.h)+k*Bi:Math.round(ci.h)-k*Bi,io<0?io+=360:io>=360&&(io-=360),io}function pe(ci,Bi,Ci){if(ci.h===0&&ci.s===0)return ci.s;var io;return Ci?io=ci.s-N*Bi:Bi===S?io=ci.s+N:io=ci.s+w*Bi,io>1&&(io=1),Ci&&Bi===f&&io>.1&&(io=.1),io<.06&&(io=.06),Number(io.toFixed(2))}function he(ci,Bi,Ci){var io;return Ci?io=ci.v+A*Bi:io=ci.v-C*Bi,io>1&&(io=1),Number(io.toFixed(2))}function fe(ci){for(var Bi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ci=[],io=(0,z.uA)(ci),ln=f;ln>0;ln-=1){var Ve=W(io),_t=ne((0,z.uA)({h:ce(Ve,ln,!0),s:pe(Ve,ln,!0),v:he(Ve,ln,!0)}));Ci.push(_t)}Ci.push(ne(io));for(var xt=1;xt<=S;xt+=1){var Wt=W(io),on=ne((0,z.uA)({h:ce(Wt,xt),s:pe(Wt,xt),v:he(Wt,xt)}));Ci.push(on)}return Bi.theme==="dark"?P.map(function(Ot){var Tt=Ot.index,bt=Ot.opacity,Ht=ne(re((0,z.uA)(Bi.backgroundColor||"#141414"),(0,z.uA)(Ci[Tt]),bt*100));return Ht}):Ci}var Be={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Ie={},We={};Object.keys(Be).forEach(function(ci){Ie[ci]=fe(Be[ci]),Ie[ci].primary=Ie[ci][5],We[ci]=fe(Be[ci],{theme:"dark",backgroundColor:"#141414"}),We[ci].primary=We[ci][5]});var De=Ie.red,ve=Ie.volcano,ye=Ie.gold,we=Ie.orange,Ce=Ie.yellow,Ae=Ie.lime,me=Ie.green,je=Ie.cyan,xe=Ie.blue,Pt=Ie.geekblue,ct=Ie.purple,He=Ie.magenta,wt=Ie.grey,dt=m(77617),Bt=m(46644),gt=m(68063),_n=m(39055),Bn=m(34301),Er=m.n(Bn);function Yr(ci,Bi){(0,Bt.ZP)(ci,"[@ant-design/icons] ".concat(Bi))}function oi(ci){return(0,I.Z)(ci)==="object"&&typeof ci.name=="string"&&typeof ci.theme=="string"&&((0,I.Z)(ci.icon)==="object"||typeof ci.icon=="function")}function to(){var ci=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(ci).reduce(function(Bi,Ci){var io=ci[Ci];switch(Ci){case"class":Bi.className=io,delete Bi.class;break;default:delete Bi[Ci],Bi[Er()(Ci)]=io}return Bi},{})}function yo(ci,Bi,Ci){return Ci?dt.createElement(ci.tag,(0,y.Z)((0,y.Z)({key:Bi},to(ci.attrs)),Ci),(ci.children||[]).map(function(io,ln){return yo(io,"".concat(Bi,"-").concat(ci.tag,"-").concat(ln))})):dt.createElement(ci.tag,(0,y.Z)({key:Bi},to(ci.attrs)),(ci.children||[]).map(function(io,ln){return yo(io,"".concat(Bi,"-").concat(ci.tag,"-").concat(ln))}))}function yr(ci){return fe(ci)[0]}function Po(ci){return ci?Array.isArray(ci)?ci:[ci]:[]}var as={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},ge=` .anticon { display: inline-block; color: inherit; @@ -53,41 +53,95 @@ transform: rotate(360deg); } } -`,_o=function(){var Bi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ve,wi=(0,ht.useContext)(_n.Z),io=wi.csp;(0,ht.useEffect)(function(){(0,mt.hq)(Bi,"@ant-design-icons",{prepend:!0,csp:io})},[])}},4157:function(){window._iconfont_svg_string_3580659='',function(nt){try{let C=function(){k||(k=!0,b())},f=function(){try{z.documentElement.doScroll("left")}catch(S){return void setTimeout(f,50)}C()};var w=C,I=f,m=(m=document.getElementsByTagName("script"))[m.length-1],V=m.getAttribute("data-injectcss"),m=m.getAttribute("data-disable-injectsvg");if(!m){var y,A,b,z,k,N=function(P,j){j.parentNode.insertBefore(P,j)};if(V&&!nt.__iconfont__svg__cssinject__){nt.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(S){console&&console.log(S)}}y=function(){var P,j=document.createElement("div");j.innerHTML=nt._iconfont_svg_string_3580659,(j=j.getElementsByTagName("svg")[0])&&(j.setAttribute("aria-hidden","true"),j.style.position="absolute",j.style.width=0,j.style.height=0,j.style.overflow="hidden",j=j,(P=document.body).firstChild?N(j,P.firstChild):P.appendChild(j))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(y,0):(A=function(){document.removeEventListener("DOMContentLoaded",A,!1),y()},document.addEventListener("DOMContentLoaded",A,!1)):document.attachEvent&&(b=y,z=nt.document,k=!1,f(),z.onreadystatechange=function(){z.readyState=="complete"&&(z.onreadystatechange=null,C())})}}catch(C){}}(window)},67135:function(nt,V,m){(function(y,A){A(V,m(61329))})(this,function(y,A){"use strict";var b={draw:"crosshair",pointHover:"pointer",pointDrag:"move",lineHover:"pointer",lineDrag:"move",polygonHover:"pointer",polygonDrag:"move"},z={point:[],line:[],polygon:[],midPoint:[],dashLine:[],text:[]},k="top",N="bottom",w="right",I="left",C="auto",f=[k,N,w,I],S="start",P="end",j="clippingParents",re="viewport",J="popper",ie="reference",de=f.reduce(function(Se,$e){return Se.concat([$e+"-"+S,$e+"-"+P])},[]),he=[].concat(f,[C]).reduce(function(Se,$e){return Se.concat([$e,$e+"-"+S,$e+"-"+P])},[]),fe=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function ke(Se){return Se?(Se.nodeName||"").toLowerCase():null}function we(Se){if(Se==null)return window;if(""+Se!="[object Window]"){var $e=Se.ownerDocument;return $e&&$e.defaultView||window}return Se}function Ne(Se){return Se instanceof we(Se).Element||Se instanceof Element}function Ee(Se){return Se instanceof we(Se).HTMLElement||Se instanceof HTMLElement}function ge(Se){return typeof ShadowRoot!="undefined"&&(Se instanceof we(Se).ShadowRoot||Se instanceof ShadowRoot)}var ye={name:"applyStyles",enabled:!0,phase:"write",fn:function(Se){var $e=Se.state;Object.keys($e.elements).forEach(function(Je){var Re=$e.styles[Je]||{},ot=$e.attributes[Je]||{},Lt=$e.elements[Je];Ee(Lt)&&ke(Lt)&&(Object.assign(Lt.style,Re),Object.keys(ot).forEach(function(nn){var Fn=ot[nn];Fn===!1?Lt.removeAttribute(nn):Lt.setAttribute(nn,Fn===!0?"":Fn)}))})},effect:function(Se){var $e=Se.state,Je={popper:{position:$e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign($e.elements.popper.style,Je.popper),$e.styles=Je,$e.elements.arrow&&Object.assign($e.elements.arrow.style,Je.arrow),function(){Object.keys($e.elements).forEach(function(Re){var ot=$e.elements[Re],Lt=$e.attributes[Re]||{},nn=Object.keys($e.styles.hasOwnProperty(Re)?$e.styles[Re]:Je[Re]).reduce(function(Fn,Kn){return Fn[Kn]="",Fn},{});Ee(ot)&&ke(ot)&&(Object.assign(ot.style,nn),Object.keys(Lt).forEach(function(Fn){ot.removeAttribute(Fn)}))})}},requires:["computeStyles"]};function xe(Se){return Se.split("-")[0]}var be=Math.max,Ie=Math.min,me=Math.round;function We(){var Se=navigator.userAgentData;return Se!=null&&Se.brands&&Array.isArray(Se.brands)?Se.brands.map(function($e){return $e.brand+"/"+$e.version}).join(" "):navigator.userAgent}function Ce(){return!/^((?!chrome|android).)*safari/i.test(We())}function Pt(Se,$e,Je){$e===void 0&&($e=!1),Je===void 0&&(Je=!1);var Re=Se.getBoundingClientRect(),ot=1,Lt=1;$e&&Ee(Se)&&(ot=Se.offsetWidth>0&&me(Re.width)/Se.offsetWidth||1,Lt=Se.offsetHeight>0&&me(Re.height)/Se.offsetHeight||1);var nn=(Ne(Se)?we(Se):window).visualViewport,Fn=!Ce()&&Je,Kn=(Re.left+(Fn&&nn?nn.offsetLeft:0))/ot,Mi=(Re.top+(Fn&&nn?nn.offsetTop:0))/Lt,Yo=Re.width/ot,Lo=Re.height/Lt;return{width:Yo,height:Lo,top:Mi,right:Kn+Yo,bottom:Mi+Lo,left:Kn,x:Kn,y:Mi}}function ct(Se){var $e=Pt(Se),Je=Se.offsetWidth,Re=Se.offsetHeight;return Math.abs($e.width-Je)>1||(Je=$e.width),Math.abs($e.height-Re)>1||(Re=$e.height),{x:Se.offsetLeft,y:Se.offsetTop,width:Je,height:Re}}function Ue(Se,$e){var Je=$e.getRootNode&&$e.getRootNode();if(Se.contains($e))return!0;if(Je&&ge(Je)){var Re=$e;do{if(Re&&Se.isSameNode(Re))return!0;Re=Re.parentNode||Re.host}while(Re)}return!1}function bt(Se){return we(Se).getComputedStyle(Se)}function ht(Se){return["table","td","th"].indexOf(ke(Se))>=0}function Bt(Se){return((Ne(Se)?Se.ownerDocument:Se.document)||window.document).documentElement}function mt(Se){return ke(Se)==="html"?Se:Se.assignedSlot||Se.parentNode||(ge(Se)?Se.host:null)||Bt(Se)}function _n(Se){return Ee(Se)&&bt(Se).position!=="fixed"?Se.offsetParent:null}function Bn(Se){for(var $e=we(Se),Je=_n(Se);Je&&ht(Je)&&bt(Je).position==="static";)Je=_n(Je);return Je&&(ke(Je)==="html"||ke(Je)==="body"&&bt(Je).position==="static")?$e:Je||function(Re){var ot=/firefox/i.test(We());if(/Trident/i.test(We())&&Ee(Re)&&bt(Re).position==="fixed")return null;var Lt=mt(Re);for(ge(Lt)&&(Lt=Lt.host);Ee(Lt)&&0>["html","body"].indexOf(ke(Lt));){var nn=bt(Lt);if(nn.transform!=="none"||nn.perspective!=="none"||nn.contain==="paint"||["transform","perspective"].indexOf(nn.willChange)!==-1||ot&&nn.willChange==="filter"||ot&&nn.filter&&nn.filter!=="none")return Lt;Lt=Lt.parentNode}return null}(Se)||$e}function Er(Se){return 0>["top","bottom"].indexOf(Se)?"y":"x"}function Yr(Se,$e,Je){return be(Se,Ie($e,Je))}function oi(Se){return Object.assign({},{top:0,right:0,bottom:0,left:0},Se)}function to(Se,$e){return $e.reduce(function(Je,Re){return Je[Re]=Se,Je},{})}var yo={name:"arrow",enabled:!0,phase:"main",fn:function(Se){var $e,Je=Se.state,Re=Se.name,ot=Se.options,Lt=Je.elements.arrow,nn=Je.modifiersData.popperOffsets,Fn=xe(Je.placement),Kn=Er(Fn),Mi=[I,w].indexOf(Fn)>=0?"height":"width";if(Lt&&nn){var Yo=function(pu,oc){return oi(typeof(pu=typeof pu=="function"?pu(Object.assign({},oc.rects,{placement:oc.placement})):pu)!="number"?pu:to(pu,f))}(ot.padding,Je),Lo=ct(Lt),Bo=Kn==="y"?k:I,$u=Kn==="y"?N:w,gu=Je.rects.reference[Mi]+Je.rects.reference[Kn]-nn[Kn]-Je.rects.popper[Mi],Kl=nn[Kn]-Je.rects.reference[Kn],Sl=Bn(Lt),ql=Sl?Kn==="y"?Sl.clientHeight||0:Sl.clientWidth||0:0,il=ql/2-Lo[Mi]/2+(gu/2-Kl/2),Va=Yr(Yo[Bo],il,ql-Lo[Mi]-Yo[$u]);Je.modifiersData[Re]=(($e={})[Kn]=Va,$e.centerOffset=Va-il,$e)}},effect:function(Se){var $e=Se.state,Je=Se.options.element,Re=Je===void 0?"[data-popper-arrow]":Je;Re!=null&&(typeof Re!="string"||(Re=$e.elements.popper.querySelector(Re)))&&Ue($e.elements.popper,Re)&&($e.elements.arrow=Re)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function vr(Se){return Se.split("-")[1]}var Po={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ss(Se){var $e,Je=Se.popper,Re=Se.popperRect,ot=Se.placement,Lt=Se.variation,nn=Se.offsets,Fn=Se.position,Kn=Se.gpuAcceleration,Mi=Se.adaptive,Yo=Se.roundOffsets,Lo=Se.isFixed,Bo=nn.x,$u=Bo===void 0?0:Bo,gu=nn.y,Kl=gu===void 0?0:gu,Sl=typeof Yo=="function"?Yo({x:$u,y:Kl}):{x:$u,y:Kl};$u=Sl.x,Kl=Sl.y;var ql=nn.hasOwnProperty("x"),il=nn.hasOwnProperty("y"),Va=I,pu=k,oc=window;if(Mi){var cd=Bn(Je),Ao="clientHeight",Jh="clientWidth";cd===we(Je)&&bt(cd=Bt(Je)).position!=="static"&&Fn==="absolute"&&(Ao="scrollHeight",Jh="scrollWidth"),(ot===k||(ot===I||ot===w)&&Lt===P)&&(pu=N,Kl-=(Lo&&cd===oc&&oc.visualViewport?oc.visualViewport.height:cd[Ao])-Re.height,Kl*=Kn?1:-1),(ot===I||(ot===k||ot===N)&&Lt===P)&&(Va=w,$u-=(Lo&&cd===oc&&oc.visualViewport?oc.visualViewport.width:cd[Jh])-Re.width,$u*=Kn?1:-1)}var xc,fh=Object.assign({position:Fn},Mi&&Po),Gd=Yo===!0?function(_,R){var Z=_.y,ue=R.devicePixelRatio||1;return{x:me(_.x*ue)/ue||0,y:me(Z*ue)/ue||0}}({x:$u,y:Kl},we(Je)):{x:$u,y:Kl};return $u=Gd.x,Kl=Gd.y,Object.assign({},fh,Kn?((xc={})[pu]=il?"0":"",xc[Va]=ql?"0":"",xc.transform=(oc.devicePixelRatio||1)>1?"translate3d("+$u+"px, "+Kl+"px, 0)":"translate("+$u+"px, "+Kl+"px)",xc):(($e={})[pu]=il?Kl+"px":"",$e[Va]=ql?$u+"px":"",$e.transform="",$e))}var ve={passive:!0},_o={left:"right",right:"left",bottom:"top",top:"bottom"};function ci(Se){return Se.replace(/left|right|bottom|top/g,function($e){return _o[$e]})}var Bi={start:"end",end:"start"};function wi(Se){return Se.replace(/start|end/g,function($e){return Bi[$e]})}function io(Se){var $e=we(Se);return{scrollLeft:$e.pageXOffset,scrollTop:$e.pageYOffset}}function ln(Se){return Pt(Bt(Se)).left+io(Se).scrollLeft}function Ve(Se){var $e=bt(Se);return/auto|scroll|overlay|hidden/.test($e.overflow+$e.overflowY+$e.overflowX)}function _t(Se){return 0>["html","body","#document"].indexOf(ke(Se))?Ee(Se)&&Ve(Se)?Se:_t(mt(Se)):Se.ownerDocument.body}function Ct(Se,$e){var Je;$e===void 0&&($e=[]);var Re=_t(Se),ot=Re===((Je=Se.ownerDocument)==null?void 0:Je.body),Lt=we(Re),nn=ot?[Lt].concat(Lt.visualViewport||[],Ve(Re)?Re:[]):Re,Fn=$e.concat(nn);return ot?Fn:Fn.concat(Ct(mt(nn)))}function jt(Se){return Object.assign({},Se,{left:Se.x,top:Se.y,right:Se.x+Se.width,bottom:Se.y+Se.height})}function on(Se,$e,Je){return $e===re?jt(function(Re,ot){var Lt=we(Re),nn=Bt(Re),Fn=Lt.visualViewport,Kn=nn.clientWidth,Mi=nn.clientHeight,Yo=0,Lo=0;if(Fn){Kn=Fn.width,Mi=Fn.height;var Bo=Ce();(Bo||!Bo&&ot==="fixed")&&(Yo=Fn.offsetLeft,Lo=Fn.offsetTop)}return{width:Kn,height:Mi,x:Yo+ln(Re),y:Lo}}(Se,Je)):Ne($e)?function(Re,ot){var Lt=Pt(Re,!1,ot==="fixed");return Lt.top=Lt.top+Re.clientTop,Lt.left=Lt.left+Re.clientLeft,Lt.bottom=Lt.top+Re.clientHeight,Lt.right=Lt.left+Re.clientWidth,Lt.width=Re.clientWidth,Lt.height=Re.clientHeight,Lt.x=Lt.left,Lt.y=Lt.top,Lt}($e,Je):jt(function(Re){var ot,Lt=Bt(Re),nn=io(Re),Fn=(ot=Re.ownerDocument)==null?void 0:ot.body,Kn=be(Lt.scrollWidth,Lt.clientWidth,Fn?Fn.scrollWidth:0,Fn?Fn.clientWidth:0),Mi=be(Lt.scrollHeight,Lt.clientHeight,Fn?Fn.scrollHeight:0,Fn?Fn.clientHeight:0),Yo=-nn.scrollLeft+ln(Re),Lo=-nn.scrollTop;return bt(Fn||Lt).direction==="rtl"&&(Yo+=be(Lt.clientWidth,Fn?Fn.clientWidth:0)-Kn),{width:Kn,height:Mi,x:Yo,y:Lo}}(Bt(Se)))}function Ot(Se,$e,Je,Re){var ot=$e==="clippingParents"?function(Fn){var Kn=Ct(mt(Fn)),Mi=["absolute","fixed"].indexOf(bt(Fn).position)>=0&&Ee(Fn)?Bn(Fn):Fn;return Ne(Mi)?Kn.filter(function(Yo){return Ne(Yo)&&Ue(Yo,Mi)&&ke(Yo)!=="body"}):[]}(Se):[].concat($e),Lt=[].concat(ot,[Je]),nn=Lt.reduce(function(Fn,Kn){var Mi=on(Se,Kn,Re);return Fn.top=be(Mi.top,Fn.top),Fn.right=Ie(Mi.right,Fn.right),Fn.bottom=Ie(Mi.bottom,Fn.bottom),Fn.left=be(Mi.left,Fn.left),Fn},on(Se,Lt[0],Re));return nn.width=nn.right-nn.left,nn.height=nn.bottom-nn.top,nn.x=nn.left,nn.y=nn.top,nn}function Tt(Se){var $e,Je=Se.reference,Re=Se.element,ot=Se.placement,Lt=ot?xe(ot):null,nn=ot?vr(ot):null,Fn=Je.x+Je.width/2-Re.width/2,Kn=Je.y+Je.height/2-Re.height/2;switch(Lt){case k:$e={x:Fn,y:Je.y-Re.height};break;case N:$e={x:Fn,y:Je.y+Je.height};break;case w:$e={x:Je.x+Je.width,y:Kn};break;case I:$e={x:Je.x-Re.width,y:Kn};break;default:$e={x:Je.x,y:Je.y}}var Mi=Lt?Er(Lt):null;if(Mi!=null){var Yo=Mi==="y"?"height":"width";switch(nn){case S:$e[Mi]=$e[Mi]-(Je[Yo]/2-Re[Yo]/2);break;case P:$e[Mi]=$e[Mi]+(Je[Yo]/2-Re[Yo]/2)}}return $e}function xt(Se,$e){$e===void 0&&($e={});var Je=$e.placement,Re=Je===void 0?Se.placement:Je,ot=$e.strategy,Lt=ot===void 0?Se.strategy:ot,nn=$e.boundary,Fn=nn===void 0?j:nn,Kn=$e.rootBoundary,Mi=Kn===void 0?re:Kn,Yo=$e.elementContext,Lo=Yo===void 0?J:Yo,Bo=$e.altBoundary,$u=Bo!==void 0&&Bo,gu=$e.padding,Kl=gu===void 0?0:gu,Sl=oi(typeof Kl!="number"?Kl:to(Kl,f)),ql=Se.rects.popper,il=Se.elements[$u?Lo===J?ie:J:Lo],Va=Ot(Ne(il)?il:il.contextElement||Bt(Se.elements.popper),Fn,Mi,Lt),pu=Pt(Se.elements.reference),oc=Tt({reference:pu,element:ql,strategy:"absolute",placement:Re}),cd=jt(Object.assign({},ql,oc)),Ao=Lo===J?cd:pu,Jh={top:Va.top-Ao.top+Sl.top,bottom:Ao.bottom-Va.bottom+Sl.bottom,left:Va.left-Ao.left+Sl.left,right:Ao.right-Va.right+Sl.right},xc=Se.modifiersData.offset;if(Lo===J&&xc){var fh=xc[Re];Object.keys(Jh).forEach(function(Gd){var _=0>[w,N].indexOf(Gd)?-1:1;Jh[Gd]+=fh[0>[k,N].indexOf(Gd)?"x":"y"]*_})}return Jh}function Ht(Se,$e){$e===void 0&&($e={});var Je=$e.boundary,Re=$e.rootBoundary,ot=$e.padding,Lt=$e.flipVariations,nn=$e.allowedAutoPlacements,Fn=nn===void 0?he:nn,Kn=vr($e.placement),Mi=Kn?Lt?de:de.filter(function(Bo){return vr(Bo)===Kn}):f,Yo=Mi.filter(function(Bo){return Fn.indexOf(Bo)>=0});Yo.length===0&&(Yo=Mi);var Lo=Yo.reduce(function(Bo,$u){return Bo[$u]=xt(Se,{placement:$u,boundary:Je,rootBoundary:Re,padding:ot})[xe($u)],Bo},{});return Object.keys(Lo).sort(function(Bo,$u){return Lo[Bo]-Lo[$u]})}var Zn={name:"flip",enabled:!0,phase:"main",fn:function(Se){var $e=Se.state,Je=Se.options,Re=Se.name;if(!$e.modifiersData[Re]._skip){for(var ot=Je.mainAxis,Lt=ot===void 0||ot,nn=Je.altAxis,Fn=nn===void 0||nn,Kn=Je.fallbackPlacements,Mi=Je.padding,Yo=Je.boundary,Lo=Je.rootBoundary,Bo=Je.altBoundary,$u=Je.flipVariations,gu=$u===void 0||$u,Kl=Je.allowedAutoPlacements,Sl=$e.options.placement,ql=xe(Sl),il=Kn||(ql===Sl||!gu?[ci(Sl)]:function(ur){if(xe(ur)===C)return[];var zr=ci(ur);return[wi(ur),zr,wi(zr)]}(Sl)),Va=[Sl].concat(il).reduce(function(ur,zr){return ur.concat(xe(zr)===C?Ht($e,{placement:zr,boundary:Yo,rootBoundary:Lo,padding:Mi,flipVariations:gu,allowedAutoPlacements:Kl}):zr)},[]),pu=$e.rects.reference,oc=$e.rects.popper,cd=new Map,Ao=!0,Jh=Va[0],xc=0;Va.length>xc;xc++){var fh=Va[xc],Gd=xe(fh),_=vr(fh)===S,R=[k,N].indexOf(Gd)>=0,Z=R?"width":"height",ue=xt($e,{placement:fh,boundary:Yo,rootBoundary:Lo,altBoundary:Bo,padding:Mi}),Pe=R?_?w:I:_?N:k;pu[Z]>oc[Z]&&(Pe=ci(Pe));var Qe=ci(Pe),wt=[];if(Lt&&wt.push(0>=ue[Gd]),Fn&&wt.push(0>=ue[Pe],0>=ue[Qe]),wt.every(function(ur){return ur})){Jh=fh,Ao=!1;break}cd.set(fh,wt)}if(Ao)for(var Wt=function(ur){var zr=Va.find(function(hi){var po=cd.get(hi);if(po)return po.slice(0,ur).every(function(ko){return ko})});if(zr)return Jh=zr,"break"},Rn=gu?3:1;Rn>0&&Wt(Rn)!=="break";Rn--);$e.placement!==Jh&&($e.modifiersData[Re]._skip=!0,$e.placement=Jh,$e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function tn(Se,$e,Je){return Je===void 0&&(Je={x:0,y:0}),{top:Se.top-$e.height-Je.y,right:Se.right-$e.width+Je.x,bottom:Se.bottom-$e.height+Je.y,left:Se.left-$e.width-Je.x}}function hr(Se){return[k,w,N,I].some(function($e){return Se[$e]>=0})}var Zi={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(Se){var $e=Se.state,Je=Se.name,Re=Se.options.offset,ot=Re===void 0?[0,0]:Re,Lt=he.reduce(function(Kn,Mi){return Kn[Mi]=function(Yo,Lo,Bo){var $u=xe(Yo),gu=0>[I,k].indexOf($u)?1:-1,Kl=typeof Bo=="function"?Bo(Object.assign({},Lo,{placement:Yo})):Bo,Sl=Kl[0],ql=Kl[1];return Sl=Sl||0,ql=(ql||0)*gu,0>[I,w].indexOf($u)?{x:Sl,y:ql}:{x:ql,y:Sl}}(Mi,$e.rects,ot),Kn},{}),nn=Lt[$e.placement],Fn=nn.y;$e.modifiersData.popperOffsets!=null&&($e.modifiersData.popperOffsets.x+=nn.x,$e.modifiersData.popperOffsets.y+=Fn),$e.modifiersData[Je]=Lt}},Ri={name:"preventOverflow",enabled:!0,phase:"main",fn:function(Se){var $e=Se.state,Je=Se.options,Re=Se.name,ot=Je.mainAxis,Lt=ot===void 0||ot,nn=Je.altAxis,Fn=nn!==void 0&&nn,Kn=Je.tether,Mi=Kn===void 0||Kn,Yo=Je.tetherOffset,Lo=Yo===void 0?0:Yo,Bo=xt($e,{boundary:Je.boundary,rootBoundary:Je.rootBoundary,padding:Je.padding,altBoundary:Je.altBoundary}),$u=xe($e.placement),gu=vr($e.placement),Kl=!gu,Sl=Er($u),ql=Sl==="x"?"y":"x",il=$e.modifiersData.popperOffsets,Va=$e.rects.reference,pu=$e.rects.popper,oc=typeof Lo=="function"?Lo(Object.assign({},$e.rects,{placement:$e.placement})):Lo,cd=typeof oc=="number"?{mainAxis:oc,altAxis:oc}:Object.assign({mainAxis:0,altAxis:0},oc),Ao=$e.modifiersData.offset?$e.modifiersData.offset[$e.placement]:null,Jh={x:0,y:0};if(il){if(Lt){var xc,fh=Sl==="y"?k:I,Gd=Sl==="y"?N:w,_=Sl==="y"?"height":"width",R=il[Sl],Z=R+Bo[fh],ue=R-Bo[Gd],Pe=Mi?-pu[_]/2:0,Qe=gu===S?Va[_]:pu[_],wt=gu===S?-pu[_]:-Va[_],Wt=$e.elements.arrow,Rn=Mi&&Wt?ct(Wt):{width:0,height:0},ur=$e.modifiersData["arrow#persistent"]?$e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},zr=ur[fh],hi=ur[Gd],po=Yr(0,Va[_],Rn[_]),ko=Kl?Va[_]/2-Pe-po-zr-cd.mainAxis:Qe-po-zr-cd.mainAxis,Zs=Kl?-Va[_]/2+Pe+po+hi+cd.mainAxis:wt+po+hi+cd.mainAxis,Js=$e.elements.arrow&&Bn($e.elements.arrow),sl=(xc=Ao==null?void 0:Ao[Sl])!=null?xc:0,Da=R+Zs-sl,Ol=Yr(Mi?Ie(Z,R+ko-sl-(Js?Sl==="y"?Js.clientTop||0:Js.clientLeft||0:0)):Z,R,Mi?be(ue,Da):ue);il[Sl]=Ol,Jh[Sl]=Ol-R}if(Fn){var Vl,cu=il[ql],lu=ql==="y"?"height":"width",Hu=cu+Bo[Sl==="x"?k:I],kc=cu-Bo[Sl==="x"?N:w],ac=[k,I].indexOf($u)!==-1,_d=(Vl=Ao==null?void 0:Ao[ql])!=null?Vl:0,Xu=ac?Hu:cu-Va[lu]-pu[lu]-_d+cd.altAxis,Nd=ac?cu+Va[lu]+pu[lu]-_d-cd.altAxis:kc,Yt=Mi&&ac?function(Mn,dr,Wr){var go=Yr(Mn,dr,Wr);return go>Wr?Wr:go}(Xu,cu,Nd):Yr(Mi?Xu:Hu,cu,Mi?Nd:kc);il[ql]=Yt,Jh[ql]=Yt-cu}$e.modifiersData[Re]=Jh}},requiresIfExists:["offset"]};function Pi(Se,$e,Je){Je===void 0&&(Je=!1);var Re,ot,Lt=Ee($e),nn=Ee($e)&&function(Lo){var Bo=Lo.getBoundingClientRect(),$u=me(Bo.width)/Lo.offsetWidth||1,gu=me(Bo.height)/Lo.offsetHeight||1;return $u!==1||gu!==1}($e),Fn=Bt($e),Kn=Pt(Se,nn,Je),Mi={scrollLeft:0,scrollTop:0},Yo={x:0,y:0};return(Lt||!Lt&&!Je)&&((ke($e)!=="body"||Ve(Fn))&&(Mi=(Re=$e)!==we(Re)&&Ee(Re)?{scrollLeft:(ot=Re).scrollLeft,scrollTop:ot.scrollTop}:io(Re)),Ee($e)?((Yo=Pt($e,!0)).x+=$e.clientLeft,Yo.y+=$e.clientTop):Fn&&(Yo.x=ln(Fn))),{x:Kn.left+Mi.scrollLeft-Yo.x,y:Kn.top+Mi.scrollTop-Yo.y,width:Kn.width,height:Kn.height}}function $o(Se){var $e=new Map,Je=new Set,Re=[];function ot(Lt){Je.add(Lt.name),[].concat(Lt.requires||[],Lt.requiresIfExists||[]).forEach(function(nn){if(!Je.has(nn)){var Fn=$e.get(nn);Fn&&ot(Fn)}}),Re.push(Lt)}return Se.forEach(function(Lt){$e.set(Lt.name,Lt)}),Se.forEach(function(Lt){Je.has(Lt.name)||ot(Lt)}),Re}var ys={placement:"bottom",modifiers:[],strategy:"absolute"};function xn(){for(var Se=arguments.length,$e=Array(Se),Je=0;Se>Je;Je++)$e[Je]=arguments[Je];return!$e.some(function(Re){return!(Re&&typeof Re.getBoundingClientRect=="function")})}function Hr(Se){Se===void 0&&(Se={});var $e=Se.defaultModifiers,Je=$e===void 0?[]:$e,Re=Se.defaultOptions,ot=Re===void 0?ys:Re;return function(Lt,nn,Fn){Fn===void 0&&(Fn=ot);var Kn,Mi,Yo={placement:"bottom",orderedModifiers:[],options:Object.assign({},ys,ot),modifiersData:{},elements:{reference:Lt,popper:nn},attributes:{},styles:{}},Lo=[],Bo=!1,$u={state:Yo,setOptions:function(Kl){var Sl=typeof Kl=="function"?Kl(Yo.options):Kl;gu(),Yo.options=Object.assign({},ot,Yo.options,Sl),Yo.scrollParents={reference:Ne(Lt)?Ct(Lt):Lt.contextElement?Ct(Lt.contextElement):[],popper:Ct(nn)};var ql,il,Va=function(pu){var oc=$o(pu);return fe.reduce(function(cd,Ao){return cd.concat(oc.filter(function(Jh){return Jh.phase===Ao}))},[])}((ql=[].concat(Je,Yo.options.modifiers),il=ql.reduce(function(pu,oc){var cd=pu[oc.name];return pu[oc.name]=cd?Object.assign({},cd,oc,{options:Object.assign({},cd.options,oc.options),data:Object.assign({},cd.data,oc.data)}):oc,pu},{}),Object.keys(il).map(function(pu){return il[pu]})));return Yo.orderedModifiers=Va.filter(function(pu){return pu.enabled}),Yo.orderedModifiers.forEach(function(pu){var oc=pu.options,cd=pu.effect;if(typeof cd=="function"){var Ao=cd({state:Yo,name:pu.name,instance:$u,options:oc===void 0?{}:oc});Lo.push(Ao||function(){})}}),$u.update()},forceUpdate:function(){if(!Bo){var Kl=Yo.elements,Sl=Kl.reference,ql=Kl.popper;if(xn(Sl,ql)){Yo.rects={reference:Pi(Sl,Bn(ql),Yo.options.strategy==="fixed"),popper:ct(ql)},Yo.reset=!1,Yo.placement=Yo.options.placement,Yo.orderedModifiers.forEach(function(cd){return Yo.modifiersData[cd.name]=Object.assign({},cd.data)});for(var il=0;Yo.orderedModifiers.length>il;il++)if(Yo.reset!==!0){var Va=Yo.orderedModifiers[il],pu=Va.fn,oc=Va.options;typeof pu=="function"&&(Yo=pu({state:Yo,options:oc===void 0?{}:oc,name:Va.name,instance:$u})||Yo)}else Yo.reset=!1,il=-1}}},update:(Kn=function(){return new Promise(function(Kl){$u.forceUpdate(),Kl(Yo)})},function(){return Mi||(Mi=new Promise(function(Kl){Promise.resolve().then(function(){Mi=void 0,Kl(Kn())})})),Mi}),destroy:function(){gu(),Bo=!0}};if(!xn(Lt,nn))return $u;function gu(){Lo.forEach(function(Kl){return Kl()}),Lo=[]}return $u.setOptions(Fn).then(function(Kl){!Bo&&Fn.onFirstUpdate&&Fn.onFirstUpdate(Kl)}),$u}}var Jr=Hr({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(Se){var $e=Se.state,Je=Se.instance,Re=Se.options,ot=Re.scroll,Lt=ot===void 0||ot,nn=Re.resize,Fn=nn===void 0||nn,Kn=we($e.elements.popper),Mi=[].concat($e.scrollParents.reference,$e.scrollParents.popper);return Lt&&Mi.forEach(function(Yo){Yo.addEventListener("scroll",Je.update,ve)}),Fn&&Kn.addEventListener("resize",Je.update,ve),function(){Lt&&Mi.forEach(function(Yo){Yo.removeEventListener("scroll",Je.update,ve)}),Fn&&Kn.removeEventListener("resize",Je.update,ve)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(Se){var $e=Se.state;$e.modifiersData[Se.name]=Tt({reference:$e.rects.reference,element:$e.rects.popper,strategy:"absolute",placement:$e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(Se){var $e=Se.state,Je=Se.options,Re=Je.gpuAcceleration,ot=Re===void 0||Re,Lt=Je.adaptive,nn=Lt===void 0||Lt,Fn=Je.roundOffsets,Kn=Fn===void 0||Fn,Mi={placement:xe($e.placement),variation:vr($e.placement),popper:$e.elements.popper,popperRect:$e.rects.popper,gpuAcceleration:ot,isFixed:$e.options.strategy==="fixed"};$e.modifiersData.popperOffsets!=null&&($e.styles.popper=Object.assign({},$e.styles.popper,ss(Object.assign({},Mi,{offsets:$e.modifiersData.popperOffsets,position:$e.options.strategy,adaptive:nn,roundOffsets:Kn})))),$e.modifiersData.arrow!=null&&($e.styles.arrow=Object.assign({},$e.styles.arrow,ss(Object.assign({},Mi,{offsets:$e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:Kn})))),$e.attributes.popper=Object.assign({},$e.attributes.popper,{"data-popper-placement":$e.placement})},data:{}},ye,Zi,Zn,Ri,yo,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(Se){var $e=Se.state,Je=Se.name,Re=$e.rects.reference,ot=$e.rects.popper,Lt=$e.modifiersData.preventOverflow,nn=xt($e,{elementContext:"reference"}),Fn=xt($e,{altBoundary:!0}),Kn=tn(nn,Re),Mi=tn(Fn,ot,Lt),Yo=hr(Kn),Lo=hr(Mi);$e.modifiersData[Je]={referenceClippingOffsets:Kn,popperEscapeOffsets:Mi,isReferenceHidden:Yo,hasPopperEscaped:Lo},$e.attributes.popper=Object.assign({},$e.attributes.popper,{"data-popper-reference-hidden":Yo,"data-popper-escaped":Lo})}}]}),Yi="tippy-content",xo="tippy-backdrop",na="tippy-arrow",Vn="tippy-svg-arrow",Xn={passive:!0,capture:!0},Mr=function(){return document.body};function li(Se,$e,Je){if(Array.isArray(Se)){var Re=Se[$e];return Re==null?Array.isArray(Je)?Je[$e]:Je:Re}return Se}function Cr(Se,$e){var Je={}.toString.call(Se);return Je.indexOf("[object")===0&&Je.indexOf($e+"]")>-1}function qr(Se,$e){return typeof Se=="function"?Se.apply(void 0,$e):Se}function ii(Se,$e){return $e===0?Se:function(Re){clearTimeout(Je),Je=setTimeout(function(){Se(Re)},$e)};var Je}function rn(Se){return[].concat(Se)}function Jn(Se,$e){Se.indexOf($e)===-1&&Se.push($e)}function Vr(Se){return[].slice.call(Se)}function so(Se){return Object.keys(Se).reduce(function($e,Je){return Se[Je]!==void 0&&($e[Je]=Se[Je]),$e},{})}function rs(){return document.createElement("div")}function zt(Se){return["Element","Fragment"].some(function($e){return Cr(Se,$e)})}function pn(Se){return Cr(Se,"MouseEvent")}function _r(Se){return zt(Se)?[Se]:function($e){return Cr($e,"NodeList")}(Se)?Vr(Se):Array.isArray(Se)?Se:Vr(document.querySelectorAll(Se))}function Gr(Se,$e){Se.forEach(function(Je){Je&&(Je.style.transitionDuration=$e+"ms")})}function ui(Se,$e){Se.forEach(function(Je){Je&&Je.setAttribute("data-state",$e)})}function Ci(Se){var $e,Je=rn(Se)[0];return Je!=null&&($e=Je.ownerDocument)!=null&&$e.body?Je.ownerDocument:document}function lo(Se,$e,Je){var Re=$e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(ot){Se[Re](ot,Je)})}function Kr(Se,$e){for(var Je=$e;Je;){var Re;if(Se.contains(Je))return!0;Je=Je.getRootNode==null||(Re=Je.getRootNode())==null?void 0:Re.host}return!1}var ti={isTouch:!1},Wi=0;function Tr(){ti.isTouch||(ti.isTouch=!0,window.performance&&document.addEventListener("mousemove",Qt))}function Qt(){var Se=performance.now();20>Se-Wi&&(ti.isTouch=!1,document.removeEventListener("mousemove",Qt)),Wi=Se}function Gn(){var Se,$e=document.activeElement;(Se=$e)&&Se._tippy&&Se._tippy.reference===Se&&$e.blur&&!$e._tippy.state.isVisible&&$e.blur()}var yi=typeof window!="undefined"&&typeof document!="undefined"&&!!window.msCrypto,Ln=Object.assign({appendTo:Mr,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Si=Object.keys(Ln);function tr(Se){var $e=(Se.plugins||[]).reduce(function(Je,Re){var ot,Lt=Re.name;return Lt&&(Je[Lt]=Se[Lt]!==void 0?Se[Lt]:(ot=Ln[Lt])!=null?ot:Re.defaultValue),Je},{});return Object.assign({},Se,$e)}function vi(Se,$e){var Je=Object.assign({},$e,{content:qr($e.content,[Se])},$e.ignoreAttributes?{}:function(Re,ot){return(ot?Object.keys(tr(Object.assign({},Ln,{plugins:ot}))):Si).reduce(function(Lt,nn){var Fn=(Re.getAttribute("data-tippy-"+nn)||"").trim();if(!Fn)return Lt;if(nn==="content")Lt[nn]=Fn;else try{Lt[nn]=JSON.parse(Fn)}catch(Kn){Lt[nn]=Fn}return Lt},{})}(Se,$e.plugins));return Je.aria=Object.assign({},Ln.aria,Je.aria),Je.aria={expanded:Je.aria.expanded==="auto"?$e.interactive:Je.aria.expanded,content:Je.aria.content==="auto"?$e.interactive?null:"describedby":Je.aria.content},Je}var Ni=function(){return"innerHTML"};function kr(Se,$e){Se[Ni()]=$e}function Qn(Se){var $e=rs();return Se===!0?$e.className=na:($e.className=Vn,zt(Se)?$e.appendChild(Se):kr($e,Se)),$e}function ds(Se,$e){zt($e.content)?(kr(Se,""),Se.appendChild($e.content)):typeof $e.content!="function"&&($e.allowHTML?kr(Se,$e.content):Se.textContent=$e.content)}function _a(Se){var $e=Se.firstElementChild,Je=Vr($e.children);return{box:$e,content:Je.find(function(Re){return Re.classList.contains(Yi)}),arrow:Je.find(function(Re){return Re.classList.contains(na)||Re.classList.contains(Vn)}),backdrop:Je.find(function(Re){return Re.classList.contains(xo)})}}function da(Se){var $e=rs(),Je=rs();Je.className="tippy-box",Je.setAttribute("data-state","hidden"),Je.setAttribute("tabindex","-1");var Re=rs();function ot(Lt,nn){var Fn=_a($e),Kn=Fn.box,Mi=Fn.content,Yo=Fn.arrow;nn.theme?Kn.setAttribute("data-theme",nn.theme):Kn.removeAttribute("data-theme"),typeof nn.animation=="string"?Kn.setAttribute("data-animation",nn.animation):Kn.removeAttribute("data-animation"),nn.inertia?Kn.setAttribute("data-inertia",""):Kn.removeAttribute("data-inertia"),Kn.style.maxWidth=typeof nn.maxWidth=="number"?nn.maxWidth+"px":nn.maxWidth,nn.role?Kn.setAttribute("role",nn.role):Kn.removeAttribute("role"),Lt.content===nn.content&&Lt.allowHTML===nn.allowHTML||ds(Mi,Se.props),nn.arrow?Yo?Lt.arrow!==nn.arrow&&(Kn.removeChild(Yo),Kn.appendChild(Qn(nn.arrow))):Kn.appendChild(Qn(nn.arrow)):Yo&&Kn.removeChild(Yo)}return Re.className=Yi,Re.setAttribute("data-state","hidden"),ds(Re,Se.props),$e.appendChild(Je),Je.appendChild(Re),ot(Se.props,Se.props),{popper:$e,onUpdate:ot}}da.$$tippy=!0;var zs=1,ja=[],Co=[];function dl(Se,$e){var Je,Re,ot,Lt,nn,Fn,Kn,Mi,Yo=vi(Se,Object.assign({},Ln,tr(so($e)))),Lo=!1,Bo=!1,$u=!1,gu=!1,Kl=[],Sl=ii(Vl,Yo.interactiveDebounce),ql=zs++,il=(Mi=Yo.plugins).filter(function(Yt,Mn){return Mi.indexOf(Yt)===Mn}),Va={id:ql,reference:Se,popper:rs(),popperInstance:null,props:Yo,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:il,clearDelayTimeouts:function(){clearTimeout(Je),clearTimeout(Re),cancelAnimationFrame(ot)},setProps:function(Yt){if(!Va.state.isDestroyed){Qe("onBeforeUpdate",[Va,Yt]),Da();var Mn=Va.props,dr=vi(Se,Object.assign({},Mn,so(Yt),{ignoreAttributes:!0}));Va.props=dr,sl(),Mn.interactiveDebounce!==dr.interactiveDebounce&&(Rn(),Sl=ii(Vl,dr.interactiveDebounce)),Mn.triggerTarget&&!dr.triggerTarget?rn(Mn.triggerTarget).forEach(function(Wr){Wr.removeAttribute("aria-expanded")}):dr.triggerTarget&&Se.removeAttribute("aria-expanded"),Wt(),Pe(),cd&&cd(Mn,dr),Va.popperInstance&&(kc(),_d().forEach(function(Wr){requestAnimationFrame(Wr._tippy.popperInstance.forceUpdate)})),Qe("onAfterUpdate",[Va,Yt])}},setContent:function(Yt){Va.setProps({content:Yt})},show:function(){var Yt=Va.state.isVisible,Mn=Va.state.isDestroyed,dr=!Va.state.isEnabled,Wr=ti.isTouch&&!Va.props.touch,go=li(Va.props.duration,0,Ln.duration);if(!(Yt||Mn||dr||Wr)&&!_().hasAttribute("disabled")&&(Qe("onShow",[Va],!1),Va.props.onShow(Va)!==!1)){if(Va.state.isVisible=!0,Gd()&&(oc.style.visibility="visible"),Pe(),po(),Va.state.isMounted||(oc.style.transition="none"),Gd()){var ra=Z();Gr([ra.box,ra.content],0)}Fn=function(){var Ga;if(Va.state.isVisible&&!gu){if(gu=!0,oc.style.transition=Va.props.moveTransition,Gd()&&Va.props.animation){var Aa=Z(),Xl=Aa.box,wu=Aa.content;Gr([Xl,wu],go),ui([Xl,wu],"visible")}wt(),Wt(),Jn(Co,Va),(Ga=Va.popperInstance)==null||Ga.forceUpdate(),Qe("onMount",[Va]),Va.props.animation&&Gd()&&function(Ts,Xc){Zs(Ts,Xc)}(go,function(){Va.state.isShown=!0,Qe("onShown",[Va])})}},function(){var Ga,Aa=Va.props.appendTo,Xl=_();Ga=Va.props.interactive&&Aa===Mr||Aa==="parent"?Xl.parentNode:qr(Aa,[Xl]),Ga.contains(oc)||Ga.appendChild(oc),Va.state.isMounted=!0,kc()}()}},hide:function(){var Yt=!Va.state.isVisible,Mn=Va.state.isDestroyed,dr=!Va.state.isEnabled,Wr=li(Va.props.duration,1,Ln.duration);if(!(Yt||Mn||dr)&&(Qe("onHide",[Va],!1),Va.props.onHide(Va)!==!1)){if(Va.state.isVisible=!1,Va.state.isShown=!1,gu=!1,Lo=!1,Gd()&&(oc.style.visibility="hidden"),Rn(),ko(),Pe(!0),Gd()){var go=Z(),ra=go.box,Ga=go.content;Va.props.animation&&(Gr([ra,Ga],Wr),ui([ra,Ga],"hidden"))}wt(),Wt(),Va.props.animation?Gd()&&function(Aa,Xl){Zs(Aa,function(){!Va.state.isVisible&&oc.parentNode&&oc.parentNode.contains(oc)&&Xl()})}(Wr,Va.unmount):Va.unmount()}},hideWithInteractivity:function(Yt){R().addEventListener("mousemove",Sl),Jn(ja,Sl),Sl(Yt)},enable:function(){Va.state.isEnabled=!0},disable:function(){Va.hide(),Va.state.isEnabled=!1},unmount:function(){Va.state.isVisible&&Va.hide(),Va.state.isMounted&&(ac(),_d().forEach(function(Yt){Yt._tippy.unmount()}),oc.parentNode&&oc.parentNode.removeChild(oc),Co=Co.filter(function(Yt){return Yt!==Va}),Va.state.isMounted=!1,Qe("onHidden",[Va]))},destroy:function(){Va.state.isDestroyed||(Va.clearDelayTimeouts(),Va.unmount(),Da(),delete Se._tippy,Va.state.isDestroyed=!0,Qe("onDestroy",[Va]))}};if(!Yo.render)return Va;var pu=Yo.render(Va),oc=pu.popper,cd=pu.onUpdate;oc.setAttribute("data-tippy-root",""),oc.id="tippy-"+Va.id,Va.popper=oc,Se._tippy=Va,oc._tippy=Va;var Ao=il.map(function(Yt){return Yt.fn(Va)}),Jh=Se.hasAttribute("aria-expanded");return sl(),Wt(),Pe(),Qe("onCreate",[Va]),Yo.showOnCreate&&Xu(),oc.addEventListener("mouseenter",function(){Va.props.interactive&&Va.state.isVisible&&Va.clearDelayTimeouts()}),oc.addEventListener("mouseleave",function(){Va.props.interactive&&Va.props.trigger.indexOf("mouseenter")>=0&&R().addEventListener("mousemove",Sl)}),Va;function xc(){var Yt=Va.props.touch;return Array.isArray(Yt)?Yt:[Yt,0]}function fh(){return xc()[0]==="hold"}function Gd(){var Yt;return!((Yt=Va.props.render)==null||!Yt.$$tippy)}function _(){return Kn||Se}function R(){var Yt=_().parentNode;return Yt?Ci(Yt):document}function Z(){return _a(oc)}function ue(Yt){return Va.state.isMounted&&!Va.state.isVisible||ti.isTouch||Lt&&Lt.type==="focus"?0:li(Va.props.delay,Yt?0:1,Ln.delay)}function Pe(Yt){Yt===void 0&&(Yt=!1),oc.style.pointerEvents=Va.props.interactive&&!Yt?"":"none",oc.style.zIndex=""+Va.props.zIndex}function Qe(Yt,Mn,dr){var Wr;dr===void 0&&(dr=!0),Ao.forEach(function(go){go[Yt]&&go[Yt].apply(go,Mn)}),dr&&(Wr=Va.props)[Yt].apply(Wr,Mn)}function wt(){var Yt=Va.props.aria;if(Yt.content){var Mn="aria-"+Yt.content,dr=oc.id;rn(Va.props.triggerTarget||Se).forEach(function(Wr){var go=Wr.getAttribute(Mn);if(Va.state.isVisible)Wr.setAttribute(Mn,go?go+" "+dr:dr);else{var ra=go&&go.replace(dr,"").trim();ra?Wr.setAttribute(Mn,ra):Wr.removeAttribute(Mn)}})}}function Wt(){!Jh&&Va.props.aria.expanded&&rn(Va.props.triggerTarget||Se).forEach(function(Yt){Va.props.interactive?Yt.setAttribute("aria-expanded",Va.state.isVisible&&Yt===_()?"true":"false"):Yt.removeAttribute("aria-expanded")})}function Rn(){R().removeEventListener("mousemove",Sl),ja=ja.filter(function(Yt){return Yt!==Sl})}function ur(Yt){if(!ti.isTouch||!$u&&Yt.type!=="mousedown"){var Mn=Yt.composedPath&&Yt.composedPath()[0]||Yt.target;if(!Va.props.interactive||!Kr(oc,Mn)){if(rn(Va.props.triggerTarget||Se).some(function(dr){return Kr(dr,Mn)})){if(ti.isTouch||Va.state.isVisible&&Va.props.trigger.indexOf("click")>=0)return}else Qe("onClickOutside",[Va,Yt]);Va.props.hideOnClick===!0&&(Va.clearDelayTimeouts(),Va.hide(),Bo=!0,setTimeout(function(){Bo=!1}),Va.state.isMounted||ko())}}}function zr(){$u=!0}function hi(){$u=!1}function po(){var Yt=R();Yt.addEventListener("mousedown",ur,!0),Yt.addEventListener("touchend",ur,Xn),Yt.addEventListener("touchstart",hi,Xn),Yt.addEventListener("touchmove",zr,Xn)}function ko(){var Yt=R();Yt.removeEventListener("mousedown",ur,!0),Yt.removeEventListener("touchend",ur,Xn),Yt.removeEventListener("touchstart",hi,Xn),Yt.removeEventListener("touchmove",zr,Xn)}function Zs(Yt,Mn){var dr=Z().box;function Wr(go){go.target===dr&&(lo(dr,"remove",Wr),Mn())}if(Yt===0)return Mn();lo(dr,"remove",nn),lo(dr,"add",Wr),nn=Wr}function Js(Yt,Mn,dr){dr===void 0&&(dr=!1),rn(Va.props.triggerTarget||Se).forEach(function(Wr){Wr.addEventListener(Yt,Mn,dr),Kl.push({node:Wr,eventType:Yt,handler:Mn,options:dr})})}function sl(){var Yt;fh()&&(Js("touchstart",Ol,{passive:!0}),Js("touchend",cu,{passive:!0})),(Yt=Va.props.trigger,Yt.split(/\s+/).filter(Boolean)).forEach(function(Mn){if(Mn!=="manual")switch(Js(Mn,Ol),Mn){case"mouseenter":Js("mouseleave",cu);break;case"focus":Js(yi?"focusout":"blur",lu);break;case"focusin":Js("focusout",lu)}})}function Da(){Kl.forEach(function(Yt){Yt.node.removeEventListener(Yt.eventType,Yt.handler,Yt.options)}),Kl=[]}function Ol(Yt){var Mn,dr=!1;if(Va.state.isEnabled&&!Hu(Yt)&&!Bo){var Wr=((Mn=Lt)==null?void 0:Mn.type)==="focus";Lt=Yt,Kn=Yt.currentTarget,Wt(),!Va.state.isVisible&&pn(Yt)&&ja.forEach(function(go){return go(Yt)}),Yt.type==="click"&&(0>Va.props.trigger.indexOf("mouseenter")||Lo)&&Va.props.hideOnClick!==!1&&Va.state.isVisible?dr=!0:Xu(Yt),Yt.type==="click"&&(Lo=!dr),dr&&!Wr&&Nd(Yt)}}function Vl(Yt){var Mn=Yt.target,dr=_().contains(Mn)||oc.contains(Mn);if(Yt.type!=="mousemove"||!dr){var Wr=_d().concat(oc).map(function(go){var ra,Ga=(ra=go._tippy.popperInstance)==null?void 0:ra.state;return Ga?{popperRect:go.getBoundingClientRect(),popperState:Ga,props:Yo}:null}).filter(Boolean);(function(go,ra){var Ga=ra.clientX,Aa=ra.clientY;return go.every(function(Xl){var wu=Xl.popperRect,Ts=Xl.popperState,Xc=Xl.props.interactiveBorder,ph=Ts.placement.split("-")[0],gh=Ts.modifiersData.offset;return!gh||wu.top-Aa+(ph==="bottom"?gh.top.y:0)>Xc||Aa-wu.bottom-(ph==="top"?gh.bottom.y:0)>Xc||wu.left-Ga+(ph==="right"?gh.left.x:0)>Xc||Ga-wu.right-(ph==="left"?gh.right.x:0)>Xc})})(Wr,Yt)&&(Rn(),Nd(Yt))}}function cu(Yt){Hu(Yt)||Va.props.trigger.indexOf("click")>=0&&Lo||(Va.props.interactive?Va.hideWithInteractivity(Yt):Nd(Yt))}function lu(Yt){0>Va.props.trigger.indexOf("focusin")&&Yt.target!==_()||Va.props.interactive&&Yt.relatedTarget&&oc.contains(Yt.relatedTarget)||Nd(Yt)}function Hu(Yt){return!!ti.isTouch&&fh()!==Yt.type.indexOf("touch")>=0}function kc(){ac();var Yt=Va.props,Mn=Yt.popperOptions,dr=Yt.placement,Wr=Yt.offset,go=Yt.getReferenceClientRect,ra=Yt.moveTransition,Ga=Gd()?_a(oc).arrow:null,Aa=go?{getBoundingClientRect:go,contextElement:go.contextElement||_()}:Se,Xl={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Ts){var Xc=Ts.state;if(Gd()){var ph=Z().box;["placement","reference-hidden","escaped"].forEach(function(gh){gh==="placement"?ph.setAttribute("data-placement",Xc.placement):Xc.attributes.popper["data-popper-"+gh]?ph.setAttribute("data-"+gh,""):ph.removeAttribute("data-"+gh)}),Xc.attributes.popper={}}}},wu=[{name:"offset",options:{offset:Wr}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!ra}},Xl];Gd()&&Ga&&wu.push({name:"arrow",options:{element:Ga,padding:3}}),wu.push.apply(wu,(Mn==null?void 0:Mn.modifiers)||[]),Va.popperInstance=Jr(Aa,oc,Object.assign({},Mn,{placement:dr,onFirstUpdate:Fn,modifiers:wu}))}function ac(){Va.popperInstance&&(Va.popperInstance.destroy(),Va.popperInstance=null)}function _d(){return Vr(oc.querySelectorAll("[data-tippy-root]"))}function Xu(Yt){Va.clearDelayTimeouts(),Yt&&Qe("onTrigger",[Va,Yt]),po();var Mn=ue(!0),dr=xc(),Wr=dr[1];ti.isTouch&&dr[0]==="hold"&&Wr&&(Mn=Wr),Mn?Je=setTimeout(function(){Va.show()},Mn):Va.show()}function Nd(Yt){if(Va.clearDelayTimeouts(),Qe("onUntrigger",[Va,Yt]),Va.state.isVisible){if(0>Va.props.trigger.indexOf("mouseenter")||0>Va.props.trigger.indexOf("click")||0>["mouseleave","mousemove"].indexOf(Yt.type)||!Lo){var Mn=ue(!1);Mn?Re=setTimeout(function(){Va.state.isVisible&&Va.hide()},Mn):ot=requestAnimationFrame(function(){Va.hide()})}}else ko()}}function Fr(Se,$e){$e===void 0&&($e={});var Je=Ln.plugins.concat($e.plugins||[]);document.addEventListener("touchstart",Tr,Xn),window.addEventListener("blur",Gn);var Re=Object.assign({},$e,{plugins:Je}),ot=_r(Se).reduce(function(Lt,nn){var Fn=nn&&dl(nn,Re);return Fn&&Lt.push(Fn),Lt},[]);return zt(Se)?ot[0]:ot}Fr.defaultProps=Ln,Fr.setDefaultProps=function(Se){Object.keys(Se).forEach(function($e){Ln[$e]=Se[$e]})},Fr.currentInput=ti,Object.assign({},ye,{effect:function(Se){var $e=Se.state,Je={popper:{position:$e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign($e.elements.popper.style,Je.popper),$e.styles=Je,$e.elements.arrow&&Object.assign($e.elements.arrow.style,Je.arrow)}});var fs={clientX:0,clientY:0},jo=[];function Es(Se){fs={clientX:Se.clientX,clientY:Se.clientY}}var xs={name:"followCursor",defaultValue:!1,fn:function(Se){var $e=Se.reference,Je=Ci(Se.props.triggerTarget||$e),Re=!1,ot=!1,Lt=!0,nn=Se.props;function Fn(){return Se.props.followCursor==="initial"&&Se.state.isVisible}function Kn(){Je.addEventListener("mousemove",Lo)}function Mi(){Je.removeEventListener("mousemove",Lo)}function Yo(){Re=!0,Se.setProps({getReferenceClientRect:null}),Re=!1}function Lo(gu){var Kl=!gu.target||$e.contains(gu.target),Sl=Se.props.followCursor,ql=gu.clientX,il=gu.clientY,Va=$e.getBoundingClientRect(),pu=ql-Va.left,oc=il-Va.top;!Kl&&Se.props.interactive||Se.setProps({getReferenceClientRect:function(){var cd=$e.getBoundingClientRect(),Ao=ql,Jh=il;Sl==="initial"&&(Ao=cd.left+pu,Jh=cd.top+oc);var xc=Sl==="horizontal"?cd.top:Jh,fh=Sl==="vertical"?cd.right:Ao,Gd=Sl==="horizontal"?cd.bottom:Jh,_=Sl==="vertical"?cd.left:Ao;return{width:fh-_,height:Gd-xc,top:xc,right:fh,bottom:Gd,left:_}}})}function Bo(){Se.props.followCursor&&(jo.push({instance:Se,doc:Je}),function(gu){gu.addEventListener("mousemove",Es)}(Je))}function $u(){(jo=jo.filter(function(gu){return gu.instance!==Se})).filter(function(gu){return gu.doc===Je}).length===0&&function(gu){gu.removeEventListener("mousemove",Es)}(Je)}return{onCreate:Bo,onDestroy:$u,onBeforeUpdate:function(){nn=Se.props},onAfterUpdate:function(gu,Kl){var Sl=Kl.followCursor;Re||Sl!==void 0&&nn.followCursor!==Sl&&($u(),Sl?(Bo(),!Se.state.isMounted||ot||Fn()||Kn()):(Mi(),Yo()))},onMount:function(){Se.props.followCursor&&!ot&&(Lt&&(Lo(fs),Lt=!1),Fn()||Kn())},onTrigger:function(gu,Kl){pn(Kl)&&(fs={clientX:Kl.clientX,clientY:Kl.clientY}),ot=Kl.type==="focus"},onHidden:function(){Se.props.followCursor&&(Yo(),Mi(),Lt=!0)}}}};Fr.setDefaultProps({render:da});var Za,tl,xl,Qa,si,co,dn={showTotalDistance:!1,showDashDistance:!0,showWhen:["normal","active"],format:function(Se){return 1e3>Se?+Se.toFixed(2)+"m":+(Se/1e3).toFixed(2)+"km"}},Dn={showWhen:["normal","active"],format:function(Se){return Se>1e6?"".concat(+(Se/1e6).toFixed(2),"km\xB2"):"".concat(+Se.toFixed(2),"m\xB2")}},Nn={maxSize:100},tt={remove:["del","backspace"],revert:["command+z","ctrl+z"],redo:["command+shift+z","ctrl+shift+z"]},dt={allowHTML:!0,followCursor:!0,placement:"bottom-start",offset:[-10,20],plugins:[xs],trigger:"manual",hideOnClick:!1,theme:"light"},vt={data:"drawData",pointAdsorbPixel:12,lineAdsorbPixel:10};function ze(Se,$e){var Je=Object.keys(Se);if(Object.getOwnPropertySymbols){var Re=Object.getOwnPropertySymbols(Se);$e&&(Re=Re.filter(function(ot){return Object.getOwnPropertyDescriptor(Se,ot).enumerable})),Je.push.apply(Je,Re)}return Je}function lt(Se){for(var $e=1;arguments.length>$e;$e++){var Je=arguments[$e]!=null?arguments[$e]:{};$e%2?ze(Object(Je),!0).forEach(function(Re){xr(Se,Re,Je[Re])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Se,Object.getOwnPropertyDescriptors(Je)):ze(Object(Je)).forEach(function(Re){Object.defineProperty(Se,Re,Object.getOwnPropertyDescriptor(Je,Re))})}return Se}function Et(Se,$e){if(!(Se instanceof $e))throw new TypeError("Cannot call a class as a function")}function an(Se,$e){for(var Je=0;$e.length>Je;Je++){var Re=$e[Je];Re.enumerable=Re.enumerable||!1,Re.configurable=!0,"value"in Re&&(Re.writable=!0),Object.defineProperty(Se,fa(Re.key),Re)}}function jn(Se,$e,Je){return $e&&an(Se.prototype,$e),Je&&an(Se,Je),Object.defineProperty(Se,"prototype",{writable:!1}),Se}function xr(Se,$e,Je){return($e=fa($e))in Se?Object.defineProperty(Se,$e,{value:Je,enumerable:!0,configurable:!0,writable:!0}):Se[$e]=Je,Se}function Ti(Se,$e){if(typeof $e!="function"&&$e!==null)throw new TypeError("Super expression must either be null or a function");Se.prototype=Object.create($e&&$e.prototype,{constructor:{value:Se,writable:!0,configurable:!0}}),Object.defineProperty(Se,"prototype",{writable:!1}),$e&&Vi(Se,$e)}function $i(Se){return $i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function($e){return $e.__proto__||Object.getPrototypeOf($e)},$i(Se)}function Vi(Se,$e){return Vi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Je,Re){return Je.__proto__=Re,Je},Vi(Se,$e)}function us(Se){if(Se===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Se}function ks(Se){var $e=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(Je){return!1}}();return function(){var Je,Re=$i(Se);if($e){var ot=$i(this).constructor;Je=Reflect.construct(Re,arguments,ot)}else Je=Re.apply(this,arguments);return function(Lt,nn){if(nn&&(typeof nn=="object"||typeof nn=="function"))return nn;if(nn!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return us(Lt)}(this,Je)}}function Os(){return Os=typeof Reflect!="undefined"&&Reflect.get?Reflect.get.bind():function(Se,$e,Je){var Re=function(Lt,nn){for(;!Object.prototype.hasOwnProperty.call(Lt,nn)&&(Lt=$i(Lt))!==null;);return Lt}(Se,$e);if(Re){var ot=Object.getOwnPropertyDescriptor(Re,$e);return ot.get?ot.get.call(3>arguments.length?Se:Je):ot.value}},Os.apply(this,arguments)}function pa(Se,$e){return function(Je){if(Array.isArray(Je))return Je}(Se)||function(Je,Re){var ot=Je==null?null:typeof Symbol!="undefined"&&Je[Symbol.iterator]||Je["@@iterator"];if(ot!=null){var Lt,nn,Fn,Kn,Mi=[],Yo=!0,Lo=!1;try{if(Fn=(ot=ot.call(Je)).next,Re===0){if(Object(ot)!==ot)return;Yo=!1}else for(;!(Yo=(Lt=Fn.call(ot)).done)&&(Mi.push(Lt.value),Mi.length!==Re);Yo=!0);}catch(Bo){Lo=!0,nn=Bo}finally{try{if(!Yo&&ot.return!=null&&(Kn=ot.return(),Object(Kn)!==Kn))return}finally{if(Lo)throw nn}}return Mi}}(Se,$e)||Cs(Se,$e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function no(Se){return function($e){if(Array.isArray($e))return ea($e)}(Se)||function($e){if(typeof Symbol!="undefined"&&$e[Symbol.iterator]!=null||$e["@@iterator"]!=null)return Array.from($e)}(Se)||Cs(Se)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Cs(Se,$e){if(Se){if(typeof Se=="string")return ea(Se,$e);var Je=Object.prototype.toString.call(Se).slice(8,-1);return Je==="Object"&&Se.constructor&&(Je=Se.constructor.name),Je==="Map"||Je==="Set"?Array.from(Se):Je==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Je)?ea(Se,$e):void 0}}function ea(Se,$e){($e==null||$e>Se.length)&&($e=Se.length);for(var Je=0,Re=Array($e);$e>Je;Je++)Re[Je]=Se[Je];return Re}function fa(Se){var $e=function(Je,Re){if(typeof Je!="object"||Je===null)return Je;var ot=Je[Symbol.toPrimitive];if(ot!==void 0){var Lt=ot.call(Je,Re||"default");if(typeof Lt!="object")return Lt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Re==="string"?String:Number)(Je)}(Se,"string");return typeof $e=="symbol"?$e:$e+""}(Za=y.DrawEvent||(y.DrawEvent={})).Init="init",Za.Destroy="destroy",Za.Enable="enable",Za.Disable="disable",Za.Add="add",Za.Edit="edit",Za.Remove="remove",Za.Clear="clear",Za.Change="change",Za.DragStart="dragStart",Za.Dragging="dragging",Za.DragEnd="dragEnd",Za.Select="select",Za.AddNode="addNode",Za.RemoveNode="removeNode",(tl=y.SourceEvent||(y.SourceEvent={})).Change="change",tl.Update="update",(xl=y.RenderEvent||(y.RenderEvent={})).Click="click",xl.UnClick="unclick",xl.Dragstart="dragstart",xl.Mousemove="mousemove",xl.Mouseout="mouseout",xl.Dragging="dragging",xl.Dragend="dragend",xl.DblClick="dblClick",xl.Contextmenu="contextmenu",(Qa=y.LayerEvent||(y.LayerEvent={})).Mousedown="mousedown",Qa.Mouseup="mouseup",Qa.Click="click",Qa.UnClick="unclick",Qa.Dblclick="dblclick",Qa.Mousemove="mousemove",Qa.Mouseover="mouseover",Qa.Mouseenter="mouseenter",Qa.Mouseleave="mouseleave",Qa.Mouseout="mouseout",Qa.Contextmenu="contextmenu",(si=y.SceneEvent||(y.SceneEvent={})).Loaded="loaded",si.MapMove="mapmove",si.MoveStart="movestart",si.MoveEnd="moveend",si.ZoomChange="zoomchange",si.ZoomStart="zoomstart",si.ZoomEnd="zoomend",si.Click="click",si.Dblclick="dblclick",si.Mousemove="mousemove",si.Mousewheel="mousewheel",si.Mouseover="mouseover",si.Mouseout="mouseout",si.Mouseup="mouseup",si.Mousedown="mousedown",si.Contextmenu="contextmenu",si.Dragstart="dragstart",si.Dragging="dragging",si.Dragend="dragend",(co=y.ControlEvent||(y.ControlEvent={})).DrawChange="drawchange",co.DataChange="datachange",co.DrawSelect="drawselect";var Bl=63710088e-1,Ma={centimeters:637100880,centimetres:637100880,degrees:57.22891354143274,feet:20902260511392e-6,inches:39.37*Bl,kilometers:6371.0088,kilometres:6371.0088,meters:Bl,metres:Bl,miles:3958.761333810546,millimeters:6371008800,millimetres:6371008800,nauticalmiles:Bl/1852,radians:1,yards:6967335223679999e-9},gl={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046};function ia(Se,$e,Je){Je===void 0&&(Je={});var Re={type:"Feature"};return(Je.id===0||Je.id)&&(Re.id=Je.id),Je.bbox&&(Re.bbox=Je.bbox),Re.properties=$e||{},Re.geometry=Se,Re}function Nl(Se,$e,Je){if(Je===void 0&&(Je={}),!Se)throw Error("coordinates is required");if(!Array.isArray(Se))throw Error("coordinates must be an Array");if(2>Se.length)throw Error("coordinates must be at least 2 numbers long");if(!qi(Se[0])||!qi(Se[1]))throw Error("coordinates must contain numbers");return ia({type:"Point",coordinates:Se},$e,Je)}function cs(Se,$e,Je){Je===void 0&&(Je={});for(var Re=0,ot=Se;ot.length>Re;Re++){var Lt=ot[Re];if(4>Lt.length)throw Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var nn=0;Lt[Lt.length-1].length>nn;nn++)if(Lt[Lt.length-1][nn]!==Lt[0][nn])throw Error("First and last Position are not equivalent.")}return ia({type:"Polygon",coordinates:Se},$e,Je)}function zi(Se,$e,Je){if(Je===void 0&&(Je={}),2>Se.length)throw Error("coordinates must be an array of two or more positions");return ia({type:"LineString",coordinates:Se},$e,Je)}function Ji(Se,$e){$e===void 0&&($e={});var Je={type:"FeatureCollection"};return $e.id&&(Je.id=$e.id),$e.bbox&&(Je.bbox=$e.bbox),Je.features=Se,Je}function ta(Se,$e,Je){return Je===void 0&&(Je={}),ia({type:"MultiLineString",coordinates:Se},$e,Je)}function ms(Se,$e,Je){return Je===void 0&&(Je={}),ia({type:"MultiPoint",coordinates:Se},$e,Je)}function Ua(Se,$e,Je){return Je===void 0&&(Je={}),ia({type:"MultiPolygon",coordinates:Se},$e,Je)}function ju(Se,$e){$e===void 0&&($e="kilometers");var Je=Ma[$e];if(!Je)throw Error($e+" units is invalid");return Se*Je}function rc(Se,$e){$e===void 0&&($e="kilometers");var Je=Ma[$e];if(!Je)throw Error($e+" units is invalid");return Se/Je}function Pc(Se){return 180*(Se%(2*Math.PI))/Math.PI}function ho(Se){return Se%360*Math.PI/180}function qi(Se){return!isNaN(Se)&&Se!==null&&!Array.isArray(Se)}function os(Se){return!!Se&&Se.constructor===Object}var $n=Object.freeze({__proto__:null,earthRadius:Bl,factors:Ma,unitsFactors:{centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/Bl,yards:1.0936133},areaFactors:gl,feature:ia,geometry:function(Se,$e,Je){switch(Se){case"Point":return Nl($e).geometry;case"LineString":return zi($e).geometry;case"Polygon":return cs($e).geometry;case"MultiPoint":return ms($e).geometry;case"MultiLineString":return ta($e).geometry;case"MultiPolygon":return Ua($e).geometry;default:throw Error(Se+" is invalid")}},point:Nl,points:function(Se,$e,Je){return Je===void 0&&(Je={}),Ji(Se.map(function(Re){return Nl(Re,$e)}),Je)},polygon:cs,polygons:function(Se,$e,Je){return Je===void 0&&(Je={}),Ji(Se.map(function(Re){return cs(Re,$e)}),Je)},lineString:zi,lineStrings:function(Se,$e,Je){return Je===void 0&&(Je={}),Ji(Se.map(function(Re){return zi(Re,$e)}),Je)},featureCollection:Ji,multiLineString:ta,multiPoint:ms,multiPolygon:Ua,geometryCollection:function(Se,$e,Je){return Je===void 0&&(Je={}),ia({type:"GeometryCollection",geometries:Se},$e,Je)},round:function(Se,$e){if($e===void 0&&($e=0),$e&&$e<0)throw Error("precision must be a positive number");var Je=Math.pow(10,$e||0);return Math.round(Se*Je)/Je},radiansToLength:ju,lengthToRadians:rc,lengthToDegrees:function(Se,$e){return Pc(rc(Se,$e))},bearingToAzimuth:function(Se){var $e=Se%360;return 0>$e&&($e+=360),$e},radiansToDegrees:Pc,degreesToRadians:ho,convertLength:function(Se,$e,Je){if($e===void 0&&($e="kilometers"),Je===void 0&&(Je="kilometers"),Se<0)throw Error("length must be a positive number");return ju(rc(Se,$e),Je)},convertArea:function(Se,$e,Je){if($e===void 0&&($e="meters"),Je===void 0&&(Je="kilometers"),Se<0)throw Error("area must be a positive number");var Re=gl[$e];if(!Re)throw Error("invalid original units");var ot=gl[Je];if(!ot)throw Error("invalid final units");return Se/Re*ot},isNumber:qi,isObject:os,validateBBox:function(Se){if(!Se)throw Error("bbox is required");if(!Array.isArray(Se))throw Error("bbox must be an Array");if(Se.length!==4&&Se.length!==6)throw Error("bbox must be an Array of 4 or 6 numbers");Se.forEach(function($e){if(!qi($e))throw Error("bbox must only contain numbers")})},validateId:function(Se){if(!Se)throw Error("id is required");if(["string","number"].indexOf(typeof Se)===-1)throw Error("id must be a number or a string")}});function mr(Se,$e,Je){if(Se!==null)for(var Re,ot,Lt,nn,Fn,Kn,Mi,Yo,Lo=0,Bo=0,$u=Se.type,gu=$u==="FeatureCollection",Kl=$u==="Feature",Sl=gu?Se.features.length:1,ql=0;Sl>ql;ql++){Fn=(Yo=!!(Mi=gu?Se.features[ql].geometry:Kl?Se.geometry:Se)&&Mi.type==="GeometryCollection")?Mi.geometries.length:1;for(var il=0;Fn>il;il++){var Va=0,pu=0;if((nn=Yo?Mi.geometries[il]:Mi)!==null){Kn=nn.coordinates;var oc=nn.type;switch(Lo=!Je||oc!=="Polygon"&&oc!=="MultiPolygon"?0:1,oc){case null:break;case"Point":if($e(Kn,Bo,ql,Va,pu)===!1)return!1;Bo++,Va++;break;case"LineString":case"MultiPoint":for(Re=0;Kn.length>Re;Re++){if($e(Kn[Re],Bo,ql,Va,pu)===!1)return!1;Bo++,oc==="MultiPoint"&&Va++}oc==="LineString"&&Va++;break;case"Polygon":case"MultiLineString":for(Re=0;Kn.length>Re;Re++){for(ot=0;Kn[Re].length-Lo>ot;ot++){if($e(Kn[Re][ot],Bo,ql,Va,pu)===!1)return!1;Bo++}oc==="MultiLineString"&&Va++,oc==="Polygon"&&pu++}oc==="Polygon"&&Va++;break;case"MultiPolygon":for(Re=0;Kn.length>Re;Re++){for(pu=0,ot=0;Kn[Re].length>ot;ot++){for(Lt=0;Kn[Re][ot].length-Lo>Lt;Lt++){if($e(Kn[Re][ot][Lt],Bo,ql,Va,pu)===!1)return!1;Bo++}pu++}Va++}break;case"GeometryCollection":for(Re=0;nn.geometries.length>Re;Re++)if(mr(nn.geometries[Re],$e,Je)===!1)return!1;break;default:throw Error("Unknown Geometry Type")}}}}}function Qr(Se,$e){var Je;switch(Se.type){case"FeatureCollection":for(Je=0;Se.features.length>Je&&$e(Se.features[Je].properties,Je)!==!1;Je++);break;case"Feature":$e(Se.properties,0)}}function ni(Se,$e){if(Se.type==="Feature")$e(Se,0);else if(Se.type==="FeatureCollection")for(var Je=0;Se.features.length>Je&&$e(Se.features[Je],Je)!==!1;Je++);}function Ki(Se){var $e=[];return mr(Se,function(Je){$e.push(Je)}),$e}function ro(Se,$e){var Je,Re,ot,Lt,nn,Fn,Kn,Mi,Yo,Lo,Bo=0,$u=Se.type==="FeatureCollection",gu=Se.type==="Feature",Kl=$u?Se.features.length:1;for(Je=0;Kl>Je;Je++){for(Mi=$u?Se.features[Je].properties:gu?Se.properties:{},Yo=$u?Se.features[Je].bbox:gu?Se.bbox:void 0,Lo=$u?Se.features[Je].id:gu?Se.id:void 0,nn=(Kn=!!(Fn=$u?Se.features[Je].geometry:gu?Se.geometry:Se)&&Fn.type==="GeometryCollection")?Fn.geometries.length:1,ot=0;nn>ot;ot++)if((Lt=Kn?Fn.geometries[ot]:Fn)!==null)switch(Lt.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if($e(Lt,Bo,Mi,Yo,Lo)===!1)return!1;break;case"GeometryCollection":for(Re=0;Lt.geometries.length>Re;Re++)if($e(Lt.geometries[Re],Bo,Mi,Yo,Lo)===!1)return!1;break;default:throw Error("Unknown Geometry Type")}else if($e(null,Bo,Mi,Yo,Lo)===!1)return!1;Bo++}}function Ei(Se,$e,Je){var Re=Je;return ro(Se,function(ot,Lt,nn,Fn,Kn){Re=Lt===0&&Je===void 0?ot:$e(Re,ot,Lt,nn,Fn,Kn)}),Re}function ns(Se,$e){ro(Se,function(Je,Re,ot,Lt,nn){var Fn,Kn=Je===null?null:Je.type;switch(Kn){case null:case"Point":case"LineString":case"Polygon":return $e(ia(Je,ot,{bbox:Lt,id:nn}),Re,0)!==!1&&void 0}switch(Kn){case"MultiPoint":Fn="Point";break;case"MultiLineString":Fn="LineString";break;case"MultiPolygon":Fn="Polygon"}for(var Mi=0;Je.coordinates.length>Mi;Mi++)if($e(ia({type:Fn,coordinates:Je.coordinates[Mi]},ot),Re,Mi)===!1)return!1})}function ua(Se,$e){ns(Se,function(Je,Re,ot){var Lt=0;if(Je.geometry){var nn=Je.geometry.type;if(nn!=="Point"&&nn!=="MultiPoint"){var Fn,Kn=0,Mi=0,Yo=0;return mr(Je,function(Lo,Bo,$u,gu,Kl){if(Fn===void 0||Re>Kn||gu>Mi||Kl>Yo)return Fn=Lo,Kn=Re,Mi=gu,Yo=Kl,void(Lt=0);var Sl=zi([Fn,Lo],Je.properties);if($e(Sl,Re,ot,Kl,Lt)===!1)return!1;Lt++,Fn=Lo})!==!1&&void 0}}})}function Na(Se,$e,Je){var Re=Je,ot=!1;return ua(Se,function(Lt,nn,Fn,Kn,Mi){Re=ot===!1&&Je===void 0?Lt:$e(Re,Lt,nn,Fn,Kn,Mi),ot=!0}),Re}function cl(Se,$e){if(!Se)throw Error("geojson is required");ns(Se,function(Je,Re,ot){if(Je.geometry!==null){var Lt=Je.geometry.coordinates;switch(Je.geometry.type){case"LineString":if($e(Je,Re,ot,0,0)===!1)return!1;break;case"Polygon":for(var nn=0;Lt.length>nn;nn++)if($e(zi(Lt[nn],Je.properties),Re,ot,nn)===!1)return!1}}})}var Zl=Object.freeze({__proto__:null,coordAll:Ki,coordEach:mr,coordReduce:function(Se,$e,Je,Re){var ot=Je;return mr(Se,function(Lt,nn,Fn,Kn,Mi){ot=nn===0&&Je===void 0?Lt:$e(ot,Lt,nn,Fn,Kn,Mi)},Re),ot},featureEach:ni,featureReduce:function(Se,$e,Je){var Re=Je;return ni(Se,function(ot,Lt){Re=Lt===0&&Je===void 0?ot:$e(Re,ot,Lt)}),Re},findPoint:function(Se,$e){if(!os($e=$e||{}))throw Error("options is invalid");var Je,Re=$e.featureIndex||0,ot=$e.multiFeatureIndex||0,Lt=$e.geometryIndex||0,nn=$e.coordIndex||0,Fn=$e.properties;switch(Se.type){case"FeatureCollection":0>Re&&(Re=Se.features.length+Re),Fn=Fn||Se.features[Re].properties,Je=Se.features[Re].geometry;break;case"Feature":Fn=Fn||Se.properties,Je=Se.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":Je=Se;break;default:throw Error("geojson is invalid")}if(Je===null)return null;var Kn=Je.coordinates;switch(Je.type){case"Point":return Nl(Kn,Fn,$e);case"MultiPoint":return 0>ot&&(ot=Kn.length+ot),Nl(Kn[ot],Fn,$e);case"LineString":return 0>nn&&(nn=Kn.length+nn),Nl(Kn[nn],Fn,$e);case"Polygon":return 0>Lt&&(Lt=Kn.length+Lt),0>nn&&(nn=Kn[Lt].length+nn),Nl(Kn[Lt][nn],Fn,$e);case"MultiLineString":return 0>ot&&(ot=Kn.length+ot),0>nn&&(nn=Kn[ot].length+nn),Nl(Kn[ot][nn],Fn,$e);case"MultiPolygon":return 0>ot&&(ot=Kn.length+ot),0>Lt&&(Lt=Kn[ot].length+Lt),0>nn&&(nn=Kn[ot][Lt].length-nn),Nl(Kn[ot][Lt][nn],Fn,$e)}throw Error("geojson is invalid")},findSegment:function(Se,$e){if(!os($e=$e||{}))throw Error("options is invalid");var Je,Re=$e.featureIndex||0,ot=$e.multiFeatureIndex||0,Lt=$e.geometryIndex||0,nn=$e.segmentIndex||0,Fn=$e.properties;switch(Se.type){case"FeatureCollection":0>Re&&(Re=Se.features.length+Re),Fn=Fn||Se.features[Re].properties,Je=Se.features[Re].geometry;break;case"Feature":Fn=Fn||Se.properties,Je=Se.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":Je=Se;break;default:throw Error("geojson is invalid")}if(Je===null)return null;var Kn=Je.coordinates;switch(Je.type){case"Point":case"MultiPoint":return null;case"LineString":return 0>nn&&(nn=Kn.length+nn-1),zi([Kn[nn],Kn[nn+1]],Fn,$e);case"Polygon":return 0>Lt&&(Lt=Kn.length+Lt),0>nn&&(nn=Kn[Lt].length+nn-1),zi([Kn[Lt][nn],Kn[Lt][nn+1]],Fn,$e);case"MultiLineString":return 0>ot&&(ot=Kn.length+ot),0>nn&&(nn=Kn[ot].length+nn-1),zi([Kn[ot][nn],Kn[ot][nn+1]],Fn,$e);case"MultiPolygon":return 0>ot&&(ot=Kn.length+ot),0>Lt&&(Lt=Kn[ot].length+Lt),0>nn&&(nn=Kn[ot][Lt].length-nn-1),zi([Kn[ot][Lt][nn],Kn[ot][Lt][nn+1]],Fn,$e)}throw Error("geojson is invalid")},flattenEach:ns,flattenReduce:function(Se,$e,Je){var Re=Je;return ns(Se,function(ot,Lt,nn){Re=Lt===0&&nn===0&&Je===void 0?ot:$e(Re,ot,Lt,nn)}),Re},geomEach:ro,geomReduce:Ei,lineEach:cl,lineReduce:function(Se,$e,Je){var Re=Je;return cl(Se,function(ot,Lt,nn,Fn){Re=Lt===0&&Je===void 0?ot:$e(Re,ot,Lt,nn,Fn)}),Re},propEach:Qr,propReduce:function(Se,$e,Je){var Re=Je;return Qr(Se,function(ot,Lt){Re=Lt===0&&Je===void 0?ot:$e(Re,ot,Lt)}),Re},segmentEach:ua,segmentReduce:Na});function Ml(Se){var $e=[1/0,1/0,-1/0,-1/0];return mr(Se,function(Je){$e[0]>Je[0]&&($e[0]=Je[0]),$e[1]>Je[1]&&($e[1]=Je[1]),Je[0]>$e[2]&&($e[2]=Je[0]),Je[1]>$e[3]&&($e[3]=Je[1])}),$e}Ml.default=Ml;var Wa=Object.freeze({__proto__:null,default:Ml});function ku(Se){if(!Se)throw Error("coord is required");if(!Array.isArray(Se)){if(Se.type==="Feature"&&Se.geometry!==null&&Se.geometry.type==="Point")return Se.geometry.coordinates;if(Se.type==="Point")return Se.coordinates}if(Array.isArray(Se)&&Se.length>=2&&!Array.isArray(Se[0])&&!Array.isArray(Se[1]))return Se;throw Error("coord must be GeoJSON Point or an Array of numbers")}function Xs(Se){if(Array.isArray(Se))return Se;if(Se.type==="Feature"){if(Se.geometry!==null)return Se.geometry.coordinates}else if(Se.coordinates)return Se.coordinates;throw Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function Ya(Se){return Se.type==="Feature"?Se.geometry:Se}function qa(Se,$e){return Se.type==="FeatureCollection"?"FeatureCollection":Se.type==="GeometryCollection"?"GeometryCollection":Se.type==="Feature"&&Se.geometry!==null?Se.geometry.type:Se.type}function Hl(Se,$e,Je,Re,ot){Jl(Se,$e,Je||0,Re||Se.length-1,ot||au)}function Jl(Se,$e,Je,Re,ot){for(;Re>Je;){if(Re-Je>600){var Lt=Re-Je+1,nn=$e-Je+1,Fn=Math.log(Lt),Kn=.5*Math.exp(2*Fn/3),Mi=.5*Math.sqrt(Fn*Kn*(Lt-Kn)/Lt)*(0>nn-Lt/2?-1:1);Jl(Se,$e,Math.max(Je,Math.floor($e-nn*Kn/Lt+Mi)),Math.min(Re,Math.floor($e+(Lt-nn)*Kn/Lt+Mi)),ot)}var Yo=Se[$e],Lo=Je,Bo=Re;for(vu(Se,Je,$e),ot(Se[Re],Yo)>0&&vu(Se,Je,Re);Bo>Lo;){for(vu(Se,Lo,Bo),Lo++,Bo--;0>ot(Se[Lo],Yo);)Lo++;for(;ot(Se[Bo],Yo)>0;)Bo--}ot(Se[Je],Yo)===0?vu(Se,Je,Bo):vu(Se,++Bo,Re),Bo>$e||(Je=Bo+1),$e>Bo||(Re=Bo-1)}}function vu(Se,$e,Je){var Re=Se[$e];Se[$e]=Se[Je],Se[Je]=Re}function au(Se,$e){return $e>Se?-1:Se>$e?1:0}function bn(Se,$e,Je){if(!Je)return $e.indexOf(Se);for(let Re=0;$e.length>Re;Re++)if(Je(Se,$e[Re]))return Re;return-1}function Eu(Se,$e){ts(Se,0,Se.children.length,$e,Se)}function ts(Se,$e,Je,Re,ot){ot||(ot=Ic(null)),ot.minX=1/0,ot.minY=1/0,ot.maxX=-1/0,ot.maxY=-1/0;for(let Lt=$e;Je>Lt;Lt++){const nn=Se.children[Lt];Vs(ot,Se.leaf?Re(nn):nn)}return ot}function Vs(Se,$e){return Se.minX=Math.min(Se.minX,$e.minX),Se.minY=Math.min(Se.minY,$e.minY),Se.maxX=Math.max(Se.maxX,$e.maxX),Se.maxY=Math.max(Se.maxY,$e.maxY),Se}function ma(Se,$e){return Se.minX-$e.minX}function Il(Se,$e){return Se.minY-$e.minY}function El(Se){return(Se.maxX-Se.minX)*(Se.maxY-Se.minY)}function ml(Se){return Se.maxX-Se.minX+(Se.maxY-Se.minY)}function fu(Se,$e){const Je=Math.max(Se.minX,$e.minX),Re=Math.max(Se.minY,$e.minY),ot=Math.min(Se.maxX,$e.maxX),Lt=Math.min(Se.maxY,$e.maxY);return Math.max(0,ot-Je)*Math.max(0,Lt-Re)}function Fu(Se,$e){return!(Se.minX>$e.minX||Se.minY>$e.minY||$e.maxX>Se.maxX||$e.maxY>Se.maxY)}function lc(Se,$e){return!($e.minX>Se.maxX||$e.minY>Se.maxY||Se.minX>$e.maxX||Se.minY>$e.maxY)}function Ic(Se){return{children:Se,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function Uc(Se,$e,Je,Re,ot){const Lt=[$e,Je];for(;Lt.length;){if(Re>=(Je=Lt.pop())-($e=Lt.pop()))continue;const nn=$e+Math.ceil((Je-$e)/Re/2)*Re;Hl(Se,nn,$e,Je,ot),Lt.push($e,nn,nn,Je)}}var zd=Object.freeze({__proto__:null,default:class{constructor(Se=9){this._maxEntries=Math.max(4,Se),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(Se){let $e=this.data;const Je=[];if(!lc(Se,$e))return Je;const Re=this.toBBox,ot=[];for(;$e;){for(let Lt=0;$e.children.length>Lt;Lt++){const nn=$e.children[Lt],Fn=$e.leaf?Re(nn):nn;lc(Se,Fn)&&($e.leaf?Je.push(nn):Fu(Se,Fn)?this._all(nn,Je):ot.push(nn))}$e=ot.pop()}return Je}collides(Se){let $e=this.data;if(!lc(Se,$e))return!1;const Je=[];for(;$e;){for(let Re=0;$e.children.length>Re;Re++){const ot=$e.children[Re],Lt=$e.leaf?this.toBBox(ot):ot;if(lc(Se,Lt)){if($e.leaf||Fu(Se,Lt))return!0;Je.push(ot)}}$e=Je.pop()}return!1}load(Se){if(!Se||!Se.length)return this;if(this._minEntries>Se.length){for(let Je=0;Se.length>Je;Je++)this.insert(Se[Je]);return this}let $e=this._build(Se.slice(),0,Se.length-1,0);if(this.data.children.length)if(this.data.height===$e.height)this._splitRoot(this.data,$e);else{if($e.height>this.data.height){const Je=this.data;this.data=$e,$e=Je}this._insert($e,this.data.height-$e.height-1,!0)}else this.data=$e;return this}insert(Se){return Se&&this._insert(Se,this.data.height-1),this}clear(){return this.data=Ic([]),this}remove(Se,$e){if(!Se)return this;let Je=this.data;const Re=this.toBBox(Se),ot=[],Lt=[];let nn,Fn,Kn;for(;Je||ot.length;){if(Je||(Je=ot.pop(),Fn=ot[ot.length-1],nn=Lt.pop(),Kn=!0),Je.leaf){const Mi=bn(Se,Je.children,$e);if(Mi!==-1)return Je.children.splice(Mi,1),ot.push(Je),this._condense(ot),this}Kn||Je.leaf||!Fu(Je,Re)?Fn?(nn++,Je=Fn.children[nn],Kn=!1):Je=null:(ot.push(Je),Lt.push(nn),nn=0,Fn=Je,Je=Je.children[0])}return this}toBBox(Se){return Se}compareMinX(Se,$e){return Se.minX-$e.minX}compareMinY(Se,$e){return Se.minY-$e.minY}toJSON(){return this.data}fromJSON(Se){return this.data=Se,this}_all(Se,$e){const Je=[];for(;Se;)Se.leaf?$e.push(...Se.children):Je.push(...Se.children),Se=Je.pop();return $e}_build(Se,$e,Je,Re){const ot=Je-$e+1;let Lt,nn=this._maxEntries;if(nn>=ot)return Lt=Ic(Se.slice($e,Je+1)),Eu(Lt,this.toBBox),Lt;Re||(nn=Math.ceil(ot/Math.pow(nn,(Re=Math.ceil(Math.log(ot)/Math.log(nn)))-1))),Lt=Ic([]),Lt.leaf=!1,Lt.height=Re;const Fn=Math.ceil(ot/nn),Kn=Fn*Math.ceil(Math.sqrt(nn));Uc(Se,$e,Je,Kn,this.compareMinX);for(let Mi=$e;Je>=Mi;Mi+=Kn){const Yo=Math.min(Mi+Kn-1,Je);Uc(Se,Mi,Yo,Fn,this.compareMinY);for(let Lo=Mi;Yo>=Lo;Lo+=Fn)Lt.children.push(this._build(Se,Lo,Math.min(Lo+Fn-1,Yo),Re-1))}return Eu(Lt,this.toBBox),Lt}_chooseSubtree(Se,$e,Je,Re){for(;Re.push($e),!$e.leaf&&Re.length-1!==Je;){let nn,Fn=1/0,Kn=1/0;for(let Mi=0;$e.children.length>Mi;Mi++){const Yo=$e.children[Mi],Lo=El(Yo),Bo=(Math.max((Lt=Yo).maxX,(ot=Se).maxX)-Math.min(Lt.minX,ot.minX))*(Math.max(Lt.maxY,ot.maxY)-Math.min(Lt.minY,ot.minY))-Lo;Kn>Bo?(Kn=Bo,Fn=Fn>Lo?Lo:Fn,nn=Yo):Bo===Kn&&Fn>Lo&&(Fn=Lo,nn=Yo)}$e=nn||$e.children[0]}var ot,Lt;return $e}_insert(Se,$e,Je){const Re=Je?Se:this.toBBox(Se),ot=[],Lt=this._chooseSubtree(Re,this.data,$e,ot);for(Lt.children.push(Se),Vs(Lt,Re);$e>=0&&ot[$e].children.length>this._maxEntries;)this._split(ot,$e),$e--;this._adjustParentBBoxes(Re,ot,$e)}_split(Se,$e){const Je=Se[$e],Re=Je.children.length,ot=this._minEntries;this._chooseSplitAxis(Je,ot,Re);const Lt=this._chooseSplitIndex(Je,ot,Re),nn=Ic(Je.children.splice(Lt,Je.children.length-Lt));nn.height=Je.height,nn.leaf=Je.leaf,Eu(Je,this.toBBox),Eu(nn,this.toBBox),$e?Se[$e-1].children.push(nn):this._splitRoot(Je,nn)}_splitRoot(Se,$e){this.data=Ic([Se,$e]),this.data.height=Se.height+1,this.data.leaf=!1,Eu(this.data,this.toBBox)}_chooseSplitIndex(Se,$e,Je){let Re,ot=1/0,Lt=1/0;for(let nn=$e;Je-$e>=nn;nn++){const Fn=ts(Se,0,nn,this.toBBox),Kn=ts(Se,nn,Je,this.toBBox),Mi=fu(Fn,Kn),Yo=El(Fn)+El(Kn);ot>Mi?(ot=Mi,Re=nn,Lt=Lt>Yo?Yo:Lt):Mi===ot&&Lt>Yo&&(Lt=Yo,Re=nn)}return Re||Je-$e}_chooseSplitAxis(Se,$e,Je){const Re=Se.leaf?this.compareMinX:ma,ot=Se.leaf?this.compareMinY:Il,Lt=this._allDistMargin(Se,$e,Je,Re);this._allDistMargin(Se,$e,Je,ot)>Lt&&Se.children.sort(Re)}_allDistMargin(Se,$e,Je,Re){Se.children.sort(Re);const ot=this.toBBox,Lt=ts(Se,0,$e,ot),nn=ts(Se,Je-$e,Je,ot);let Fn=ml(Lt)+ml(nn);for(let Kn=$e;Je-$e>Kn;Kn++){const Mi=Se.children[Kn];Vs(Lt,Se.leaf?ot(Mi):Mi),Fn+=ml(Lt)}for(let Kn=Je-$e-1;Kn>=$e;Kn--){const Mi=Se.children[Kn];Vs(nn,Se.leaf?ot(Mi):Mi),Fn+=ml(nn)}return Fn}_adjustParentBBoxes(Se,$e,Je){for(let Re=Je;Re>=0;Re--)Vs($e[Re],Se)}_condense(Se){for(let $e,Je=Se.length-1;Je>=0;Je--)Se[Je].children.length===0?Je>0?($e=Se[Je-1].children,$e.splice($e.indexOf(Se[Je]),1)):this.clear():Eu(Se[Je],this.toBBox)}}});function th(Se,$e){return $e>Se?-1:Se>$e?1:0}var Xd=Object.freeze({__proto__:null,default:class{constructor(Se=[],$e=th){if(this.data=Se,this.length=this.data.length,this.compare=$e,this.length>0)for(let Je=(this.length>>1)-1;Je>=0;Je--)this._down(Je)}push(Se){this.data.push(Se),this.length++,this._up(this.length-1)}pop(){if(this.length===0)return;const Se=this.data[0],$e=this.data.pop();return this.length--,this.length>0&&(this.data[0]=$e,this._down(0)),Se}peek(){return this.data[0]}_up(Se){const{data:$e,compare:Je}=this,Re=$e[Se];for(;Se>0;){const ot=Se-1>>1,Lt=$e[ot];if(Je(Re,Lt)>=0)break;$e[Se]=Lt,Se=ot}$e[Se]=Re}_down(Se){const{data:$e,compare:Je}=this,Re=this.length>>1,ot=$e[Se];for(;Re>Se;){let Lt=1+(Se<<1),nn=$e[Lt];const Fn=Lt+1;if(this.length>Fn&&0>Je($e[Fn],nn)&&(Lt=Fn,nn=$e[Fn]),Je(nn,ot)>=0)break;$e[Se]=nn,Se=Lt}$e[Se]=ot}}}),sd=function(Se,$e,Je,Re){var ot=Se[0],Lt=Se[1],nn=!1;Je===void 0&&(Je=0),Re===void 0&&(Re=$e.length);for(var Fn=(Re-Je)/2,Kn=0,Mi=Fn-1;Fn>Kn;Mi=Kn++){var Yo=$e[Je+2*Kn+0],Lo=$e[Je+2*Kn+1],Bo=$e[Je+2*Mi+1];Lo>Lt!=Bo>Lt&&($e[Je+2*Mi+0]-Yo)*(Lt-Lo)/(Bo-Lo)+Yo>ot&&(nn=!nn)}return nn},Mu=function(Se,$e,Je,Re){var ot=Se[0],Lt=Se[1],nn=!1;Je===void 0&&(Je=0),Re===void 0&&(Re=$e.length);for(var Fn=Re-Je,Kn=0,Mi=Fn-1;Fn>Kn;Mi=Kn++){var Yo=$e[Kn+Je][0],Lo=$e[Kn+Je][1],Bo=$e[Mi+Je][1];Lo>Lt!=Bo>Lt&&($e[Mi+Je][0]-Yo)*(Lt-Lo)/(Bo-Lo)+Yo>ot&&(nn=!nn)}return nn},Fc=function(Se,$e,Je,Re){return $e.length>0&&Array.isArray($e[0])?Mu(Se,$e,Je,Re):sd(Se,$e,Je,Re)},hd=sd;Fc.nested=Mu,Fc.flat=hd;var vd=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof m.g!="undefined"?m.g:typeof self!="undefined"?self:{};function Yd(Se,$e,Je){return Se(Je={path:$e,exports:{},require:function(Re,ot){return function(){throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},Je.exports),Je.exports}function nh(Se){if(Se.__esModule)return Se;var $e=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(Se).forEach(function(Je){var Re=Object.getOwnPropertyDescriptor(Se,Je);Object.defineProperty($e,Je,Re.get?Re:{enumerable:!0,get:function(){return Se[Je]}})}),$e}var Wd=Yd(function(Se,$e){(function(Je){const ot=33306690738754706e-32;function Lt(Kl,Sl,ql,il,Va){let pu,oc,cd,Ao,Jh=Sl[0],xc=il[0],fh=0,Gd=0;xc>Jh==xc>-Jh?(pu=Jh,Jh=Sl[++fh]):(pu=xc,xc=il[++Gd]);let _=0;if(Kl>fh&&ql>Gd)for(xc>Jh==xc>-Jh?(cd=pu-((oc=Jh+pu)-Jh),Jh=Sl[++fh]):(cd=pu-((oc=xc+pu)-xc),xc=il[++Gd]),pu=oc,cd!==0&&(Va[_++]=cd);Kl>fh&&ql>Gd;)xc>Jh==xc>-Jh?(cd=pu-((oc=pu+Jh)-(Ao=oc-pu))+(Jh-Ao),Jh=Sl[++fh]):(cd=pu-((oc=pu+xc)-(Ao=oc-pu))+(xc-Ao),xc=il[++Gd]),pu=oc,cd!==0&&(Va[_++]=cd);for(;Kl>fh;)cd=pu-((oc=pu+Jh)-(Ao=oc-pu))+(Jh-Ao),Jh=Sl[++fh],pu=oc,cd!==0&&(Va[_++]=cd);for(;ql>Gd;)cd=pu-((oc=pu+xc)-(Ao=oc-pu))+(xc-Ao),xc=il[++Gd],pu=oc,cd!==0&&(Va[_++]=cd);return pu===0&&_!==0||(Va[_++]=pu),_}function nn(Kl){return new Float64Array(Kl)}const Fn=33306690738754716e-32,Kn=22204460492503146e-32,Mi=11093356479670487e-47,Yo=nn(4),Lo=nn(8),Bo=nn(12),$u=nn(16),gu=nn(4);Je.orient2d=function(Kl,Sl,ql,il,Va,pu){const oc=(Sl-pu)*(ql-Va),cd=(Kl-Va)*(il-pu),Ao=oc-cd;if(oc===0||cd===0||oc>0!=cd>0)return Ao;const Jh=Math.abs(oc+cd);return Fn*Jh>Math.abs(Ao)?-function(xc,fh,Gd,_,R,Z,ue){let Pe,Qe,wt,Wt,Rn,ur,zr,hi,po,ko,Zs,Js,sl,Da,Ol,Vl,cu,lu;const Hu=xc-R,kc=Gd-R,ac=fh-Z,_d=_-Z;Rn=(Ol=(hi=Hu-(zr=(ur=134217729*Hu)-(ur-Hu)))*(ko=_d-(po=(ur=134217729*_d)-(ur-_d)))-((Da=Hu*_d)-zr*po-hi*po-zr*ko))-(Zs=Ol-(cu=(hi=ac-(zr=(ur=134217729*ac)-(ur-ac)))*(ko=kc-(po=(ur=134217729*kc)-(ur-kc)))-((Vl=ac*kc)-zr*po-hi*po-zr*ko))),Yo[0]=Ol-(Zs+Rn)+(Rn-cu),Rn=(sl=Da-((Js=Da+Zs)-(Rn=Js-Da))+(Zs-Rn))-(Zs=sl-Vl),Yo[1]=sl-(Zs+Rn)+(Rn-Vl),Rn=(lu=Js+Zs)-Js,Yo[2]=Js-(lu-Rn)+(Zs-Rn),Yo[3]=lu;let Xu=function(Wr,go){let ra=go[0];for(let Ga=1;Wr>Ga;Ga++)ra+=go[Ga];return ra}(4,Yo),Nd=Kn*ue;if(Xu>=Nd||-Xu>=Nd||(Pe=xc-(Hu+(Rn=xc-Hu))+(Rn-R),wt=Gd-(kc+(Rn=Gd-kc))+(Rn-R),Qe=fh-(ac+(Rn=fh-ac))+(Rn-Z),Wt=_-(_d+(Rn=_-_d))+(Rn-Z),Pe===0&&Qe===0&&wt===0&&Wt===0)||(Nd=Mi*ue+ot*Math.abs(Xu),(Xu+=Hu*Wt+_d*Pe-(ac*wt+kc*Qe))>=Nd||-Xu>=Nd))return Xu;Rn=(Ol=(hi=Pe-(zr=(ur=134217729*Pe)-(ur-Pe)))*(ko=_d-(po=(ur=134217729*_d)-(ur-_d)))-((Da=Pe*_d)-zr*po-hi*po-zr*ko))-(Zs=Ol-(cu=(hi=Qe-(zr=(ur=134217729*Qe)-(ur-Qe)))*(ko=kc-(po=(ur=134217729*kc)-(ur-kc)))-((Vl=Qe*kc)-zr*po-hi*po-zr*ko))),gu[0]=Ol-(Zs+Rn)+(Rn-cu),Rn=(sl=Da-((Js=Da+Zs)-(Rn=Js-Da))+(Zs-Rn))-(Zs=sl-Vl),gu[1]=sl-(Zs+Rn)+(Rn-Vl),Rn=(lu=Js+Zs)-Js,gu[2]=Js-(lu-Rn)+(Zs-Rn),gu[3]=lu;const Yt=Lt(4,Yo,4,gu,Lo);Rn=(Ol=(hi=Hu-(zr=(ur=134217729*Hu)-(ur-Hu)))*(ko=Wt-(po=(ur=134217729*Wt)-(ur-Wt)))-((Da=Hu*Wt)-zr*po-hi*po-zr*ko))-(Zs=Ol-(cu=(hi=ac-(zr=(ur=134217729*ac)-(ur-ac)))*(ko=wt-(po=(ur=134217729*wt)-(ur-wt)))-((Vl=ac*wt)-zr*po-hi*po-zr*ko))),gu[0]=Ol-(Zs+Rn)+(Rn-cu),Rn=(sl=Da-((Js=Da+Zs)-(Rn=Js-Da))+(Zs-Rn))-(Zs=sl-Vl),gu[1]=sl-(Zs+Rn)+(Rn-Vl),Rn=(lu=Js+Zs)-Js,gu[2]=Js-(lu-Rn)+(Zs-Rn),gu[3]=lu;const Mn=Lt(Yt,Lo,4,gu,Bo);Rn=(Ol=(hi=Pe-(zr=(ur=134217729*Pe)-(ur-Pe)))*(ko=Wt-(po=(ur=134217729*Wt)-(ur-Wt)))-((Da=Pe*Wt)-zr*po-hi*po-zr*ko))-(Zs=Ol-(cu=(hi=Qe-(zr=(ur=134217729*Qe)-(ur-Qe)))*(ko=wt-(po=(ur=134217729*wt)-(ur-wt)))-((Vl=Qe*wt)-zr*po-hi*po-zr*ko))),gu[0]=Ol-(Zs+Rn)+(Rn-cu),Rn=(sl=Da-((Js=Da+Zs)-(Rn=Js-Da))+(Zs-Rn))-(Zs=sl-Vl),gu[1]=sl-(Zs+Rn)+(Rn-Vl),Rn=(lu=Js+Zs)-Js,gu[2]=Js-(lu-Rn)+(Zs-Rn),gu[3]=lu;const dr=Lt(Mn,Bo,4,gu,$u);return $u[dr-1]}(Kl,Sl,ql,il,Va,pu,Jh):Ao},Je.orient2dfast=function(Kl,Sl,ql,il,Va,pu){return(Sl-pu)*(ql-Va)-(Kl-Va)*(il-pu)},Object.defineProperty(Je,"__esModule",{value:!0})})($e)}),yh=nh(zd),id=nh(Xd),nd=Wd.orient2d;id.default&&(id=id.default);var Pf=Jd;function Jd(Se,$e,Je){$e=Math.max(0,$e===void 0?2:$e),Je=Je||0;var Re=function(il){for(var Va=il[0],pu=il[0],oc=il[0],cd=il[0],Ao=0;il.length>Ao;Ao++){var Jh=il[Ao];Va[0]>Jh[0]&&(Va=Jh),Jh[0]>oc[0]&&(oc=Jh),pu[1]>Jh[1]&&(pu=Jh),Jh[1]>cd[1]&&(cd=Jh)}var xc=[Va,pu,oc,cd],fh=xc.slice();for(Ao=0;il.length>Ao;Ao++)Fc(il[Ao],xc)||fh.push(il[Ao]);return function(Gd){Gd.sort(ff);for(var _=[],R=0;Gd.length>R;R++){for(;_.length>=2&&0>=Sf(_[_.length-2],_[_.length-1],Gd[R]);)_.pop();_.push(Gd[R])}for(var Z=[],ue=Gd.length-1;ue>=0;ue--){for(;Z.length>=2&&0>=Sf(Z[Z.length-2],Z[Z.length-1],Gd[ue]);)Z.pop();Z.push(Gd[ue])}return Z.pop(),_.pop(),_.concat(Z)}(fh)}(Se),ot=new yh(16);ot.toBBox=function(il){return{minX:il[0],minY:il[1],maxX:il[0],maxY:il[1]}},ot.compareMinX=function(il,Va){return il[0]-Va[0]},ot.compareMinY=function(il,Va){return il[1]-Va[1]},ot.load(Se);for(var Lt,nn=[],Fn=0;Re.length>Fn;Fn++){var Kn=Re[Fn];ot.remove(Kn),Lt=Nf(Kn,Lt),nn.push(Lt)}var Mi=new yh(16);for(Fn=0;nn.length>Fn;Fn++)Mi.insert(xp(nn[Fn]));for(var Yo=$e*$e,Lo=Je*Je;nn.length;){var Bo=nn.shift(),$u=Bo.p,gu=Bo.next.p,Kl=ch($u,gu);if(Kl>=Lo){var Sl=Kl/Yo;(Kn=cc(ot,Bo.prev.p,$u,gu,Bo.next.next.p,Sl,Mi))&&Math.min(ch(Kn,$u),ch(Kn,gu))<=Sl&&(nn.push(Bo),nn.push(Nf(Kn,Bo)),ot.remove(Kn),Mi.remove(Bo),Mi.insert(xp(Bo)),Mi.insert(xp(Bo.next)))}}Bo=Lt;var ql=[];do ql.push(Bo.p),Bo=Bo.next;while(Bo!==Lt);return ql.push(Bo.p),ql}function cc(Se,$e,Je,Re,ot,Lt,nn){for(var Fn=new id([],Yc),Kn=Se.data;Kn;){for(var Mi=0;Kn.children.length>Mi;Mi++){var Yo=Kn.children[Mi],Lo=Kn.leaf?Th(Yo,Je,Re):Wh(Je,Re,Yo);LtBo.dist&&Kl>Bo.dist&&Lh(Je,$u,nn)&&Lh(Re,$u,nn))return $u}(Kn=Fn.pop())&&(Kn=Kn.node)}return null}function Yc(Se,$e){return Se.dist-$e.dist}function Wh(Se,$e,Je){if(uf(Se,Je)||uf($e,Je))return 0;var Re=yu(Se[0],Se[1],$e[0],$e[1],Je.minX,Je.minY,Je.maxX,Je.minY);if(Re===0)return 0;var ot=yu(Se[0],Se[1],$e[0],$e[1],Je.minX,Je.minY,Je.minX,Je.maxY);if(ot===0)return 0;var Lt=yu(Se[0],Se[1],$e[0],$e[1],Je.maxX,Je.minY,Je.maxX,Je.maxY);if(Lt===0)return 0;var nn=yu(Se[0],Se[1],$e[0],$e[1],Je.minX,Je.maxY,Je.maxX,Je.maxY);return nn===0?0:Math.min(Re,ot,Lt,nn)}function uf(Se,$e){return!($e.minX>Se[0]||Se[0]>$e.maxX||$e.minY>Se[1]||Se[1]>$e.maxY)}function Lh(Se,$e,Je){for(var Re,ot,Lt,nn,Fn=Je.search({minX:Math.min(Se[0],$e[0]),minY:Math.min(Se[1],$e[1]),maxX:Math.max(Se[0],$e[0]),maxY:Math.max(Se[1],$e[1])}),Kn=0;Fn.length>Kn;Kn++)if(ot=Fn[Kn].next.p,Lt=Se,(Re=Fn[Kn].p)!==(nn=$e)&&ot!==Lt&&Sf(Re,ot,Lt)>0!=Sf(Re,ot,nn)>0&&Sf(Lt,nn,Re)>0!=Sf(Lt,nn,ot)>0)return!1;return!0}function Sf(Se,$e,Je){return nd(Se[0],Se[1],$e[0],$e[1],Je[0],Je[1])}function xp(Se){var $e=Se.p,Je=Se.next.p;return Se.minX=Math.min($e[0],Je[0]),Se.minY=Math.min($e[1],Je[1]),Se.maxX=Math.max($e[0],Je[0]),Se.maxY=Math.max($e[1],Je[1]),Se}function Nf(Se,$e){var Je={p:Se,prev:null,next:null,minX:0,minY:0,maxX:0,maxY:0};return $e?(Je.next=$e.next,Je.prev=$e,$e.next.prev=Je,$e.next=Je):(Je.prev=Je,Je.next=Je),Je}function ch(Se,$e){var Je=Se[0]-$e[0],Re=Se[1]-$e[1];return Je*Je+Re*Re}function Th(Se,$e,Je){var Re=$e[0],ot=$e[1],Lt=Je[0]-Re,nn=Je[1]-ot;if(Lt!==0||nn!==0){var Fn=((Se[0]-Re)*Lt+(Se[1]-ot)*nn)/(Lt*Lt+nn*nn);Fn>1?(Re=Je[0],ot=Je[1]):Fn>0&&(Re+=Lt*Fn,ot+=nn*Fn)}return(Lt=Se[0]-Re)*Lt+(nn=Se[1]-ot)*nn}function yu(Se,$e,Je,Re,ot,Lt,nn,Fn){var Kn,Mi,Yo,Lo,Bo=Je-Se,$u=Re-$e,gu=nn-ot,Kl=Fn-Lt,Sl=Se-ot,ql=$e-Lt,il=Bo*Bo+$u*$u,Va=Bo*gu+$u*Kl,pu=gu*gu+Kl*Kl,oc=Bo*Sl+$u*ql,cd=gu*Sl+Kl*ql,Ao=il*pu-Va*Va,Jh=Ao,xc=Ao;Ao===0?(Mi=0,Jh=1,Lo=cd,xc=pu):(Lo=il*cd-Va*oc,0>(Mi=Va*cd-pu*oc)?(Mi=0,Lo=cd,xc=pu):Mi>Jh&&(Mi=Jh,Lo=cd+Va,xc=pu)),0>Lo?(Lo=0,0>-oc?Mi=0:-oc>il?Mi=Jh:(Mi=-oc,Jh=il)):Lo>xc&&(Lo=xc,0>-oc+Va?Mi=0:-oc+Va>il?Mi=Jh:(Mi=-oc+Va,Jh=il));var fh=(1-(Yo=Lo===0?0:Lo/xc))*ot+Yo*nn-((1-(Kn=Mi===0?0:Mi/Jh))*Se+Kn*Je),Gd=(1-Yo)*Lt+Yo*Fn-((1-Kn)*$e+Kn*Re);return fh*fh+Gd*Gd}function ff(Se,$e){return Se[0]===$e[0]?Se[1]-$e[1]:Se[0]-$e[0]}function Ja(Se,$e,Je){Je===void 0&&(Je={});var Re=ku(Se),ot=ku($e),Lt=ho(ot[1]-Re[1]),nn=ho(ot[0]-Re[0]),Fn=ho(Re[1]),Kn=ho(ot[1]),Mi=Math.pow(Math.sin(Lt/2),2)+Math.pow(Math.sin(nn/2),2)*Math.cos(Fn)*Math.cos(Kn);return ju(2*Math.atan2(Math.sqrt(Mi),Math.sqrt(1-Mi)),Je.units)}function Bu(Se){return function($e,Je){Je===void 0&&(Je={});var Re=Number($e[0]),ot=Number($e[1]),Lt=Number($e[2]),nn=Number($e[3]);if($e.length===6)throw Error("@turf/bbox-polygon does not support BBox with 6 positions");var Fn=[Re,ot];return cs([[Fn,[Lt,ot],[Lt,nn],[Re,nn],Fn]],Je.properties,{bbox:$e,id:Je.id})}(Ml(Se))}function wd(Se,$e,Je,Re){Re===void 0&&(Re={});var ot=ku(Se),Lt=ho(ot[0]),nn=ho(ot[1]),Fn=ho(Je),Kn=rc($e,Re.units),Mi=Math.asin(Math.sin(nn)*Math.cos(Kn)+Math.cos(nn)*Math.sin(Kn)*Math.cos(Fn));return Nl([Pc(Lt+Math.atan2(Math.sin(Fn)*Math.sin(Kn)*Math.cos(nn),Math.cos(Kn)-Math.sin(nn)*Math.sin(Mi))),Pc(Mi)],Re.properties)}function qd(Se,$e,Je){if(Je===void 0&&(Je={}),Je.final===!0)return function(Mi,Yo){var Lo=qd(Yo,Mi);return Lo=(Lo+180)%360}(Se,$e);var Re=ku(Se),ot=ku($e),Lt=ho(Re[0]),nn=ho(ot[0]),Fn=ho(Re[1]),Kn=ho(ot[1]);return Pc(Math.atan2(Math.sin(nn-Lt)*Math.cos(Kn),Math.cos(Fn)*Math.sin(Kn)-Math.sin(Fn)*Math.cos(Kn)*Math.cos(nn-Lt)))}function Ba(Se,$e){$e===void 0&&($e={});var Je=Ml(Se);return Nl([(Je[0]+Je[2])/2,(Je[1]+Je[3])/2],$e.properties,$e)}function ru(Se,$e){$e===void 0&&($e={});var Je=0,Re=0,ot=0;return mr(Se,function(Lt){Je+=Lt[0],Re+=Lt[1],ot++},!0),Nl([Je/ot,Re/ot],$e.properties)}function zl(Se,$e){switch($e===void 0&&($e={}),qa(Se)){case"Point":return Nl(ku(Se),$e.properties);case"Polygon":var Je=[];mr(Se,function(Va){Je.push(Va)});var Re,ot,Lt,nn,Fn,Kn,Mi,Yo,Lo=ru(Se,{properties:$e.properties}),Bo=Lo.geometry.coordinates,$u=0,gu=0,Kl=0,Sl=Je.map(function(Va){return[Va[0]-Bo[0],Va[1]-Bo[1]]});for(Re=0;Je.length-1>Re;Re++)Kl+=Yo=(nn=(ot=Sl[Re])[0])*(Mi=(Lt=Sl[Re+1])[1])-(Fn=Lt[0])*(Kn=ot[1]),$u+=(nn+Fn)*Yo,gu+=(Kn+Mi)*Yo;if(Kl===0)return Lo;var ql=1/(6*(.5*Kl));return Nl([Bo[0]+ql*$u,Bo[1]+ql*gu],$e.properties);default:var il=function(Va,pu){pu===void 0&&(pu={}),pu.concavity=pu.concavity||1/0;var oc=[];if(mr(Va,function(Ao){oc.push([Ao[0],Ao[1]])}),!oc.length)return null;var cd=Pf(oc,pu.concavity);return cd.length>3?cs([cd]):null}(Se);return il?zl(il,{properties:$e.properties}):ru(Se,{properties:$e.properties})}}function Au(Se){if(!Se)throw Error("geojson is required");var $e=[];return ns(Se,function(Je){(function(Re,ot){var Lt=[],nn=Re.geometry;if(nn!==null){switch(nn.type){case"Polygon":Lt=Xs(nn);break;case"LineString":Lt=[Xs(nn)]}Lt.forEach(function(Fn){var Kn=function(Mi,Yo){var Lo=[];return Mi.reduce(function(Bo,$u){var gu,Kl,Sl,ql,il,Va,pu=zi([Bo,$u],Yo);return pu.bbox=[(il=(Kl=$u)[0])>(Sl=(gu=Bo)[0])?Sl:il,(Va=Kl[1])>(ql=gu[1])?ql:Va,Sl>il?Sl:il,ql>Va?ql:Va],Lo.push(pu),$u}),Lo}(Fn,Re.properties);Kn.forEach(function(Mi){Mi.id=ot.length,ot.push(Mi)})})}})(Je,$e)}),Ji($e)}Pf.default=Jd;function Uu(Se,$e,Je){if(!Je)return $e.indexOf(Se);for(let Re=0;$e.length>Re;Re++)if(Je(Se,$e[Re]))return Re;return-1}function Vd(Se,$e){Ud(Se,0,Se.children.length,$e,Se)}function Ud(Se,$e,Je,Re,ot){ot||(ot=ed(null)),ot.minX=1/0,ot.minY=1/0,ot.maxX=-1/0,ot.maxY=-1/0;for(let Lt=$e;Je>Lt;Lt++){const nn=Se.children[Lt];sh(ot,Se.leaf?Re(nn):nn)}return ot}function sh(Se,$e){return Se.minX=Math.min(Se.minX,$e.minX),Se.minY=Math.min(Se.minY,$e.minY),Se.maxX=Math.max(Se.maxX,$e.maxX),Se.maxY=Math.max(Se.maxY,$e.maxY),Se}function Vf(Se,$e){return Se.minX-$e.minX}function vf(Se,$e){return Se.minY-$e.minY}function Uh(Se){return(Se.maxX-Se.minX)*(Se.maxY-Se.minY)}function kf(Se){return Se.maxX-Se.minX+(Se.maxY-Se.minY)}function Bh(Se,$e){const Je=Math.max(Se.minX,$e.minX),Re=Math.max(Se.minY,$e.minY),ot=Math.min(Se.maxX,$e.maxX),Lt=Math.min(Se.maxY,$e.maxY);return Math.max(0,ot-Je)*Math.max(0,Lt-Re)}function Kf(Se,$e){return!(Se.minX>$e.minX||Se.minY>$e.minY||$e.maxX>Se.maxX||$e.maxY>Se.maxY)}function ah(Se,$e){return!($e.minX>Se.maxX||$e.minY>Se.maxY||Se.minX>$e.maxX||Se.minY>$e.maxY)}function ed(Se){return{children:Se,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function Vh(Se,$e,Je,Re,ot){const Lt=[$e,Je];for(;Lt.length;){if(Re>=(Je=Lt.pop())-($e=Lt.pop()))continue;const nn=$e+Math.ceil((Je-$e)/Re/2)*Re;Hl(Se,nn,$e,Je,ot),Lt.push($e,nn,nn,Je)}}var Kh=Object.freeze({__proto__:null,default:class{constructor(Se=9){this._maxEntries=Math.max(4,Se),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(Se){let $e=this.data;const Je=[];if(!ah(Se,$e))return Je;const Re=this.toBBox,ot=[];for(;$e;){for(let Lt=0;$e.children.length>Lt;Lt++){const nn=$e.children[Lt],Fn=$e.leaf?Re(nn):nn;ah(Se,Fn)&&($e.leaf?Je.push(nn):Kf(Se,Fn)?this._all(nn,Je):ot.push(nn))}$e=ot.pop()}return Je}collides(Se){let $e=this.data;if(!ah(Se,$e))return!1;const Je=[];for(;$e;){for(let Re=0;$e.children.length>Re;Re++){const ot=$e.children[Re],Lt=$e.leaf?this.toBBox(ot):ot;if(ah(Se,Lt)){if($e.leaf||Kf(Se,Lt))return!0;Je.push(ot)}}$e=Je.pop()}return!1}load(Se){if(!Se||!Se.length)return this;if(this._minEntries>Se.length){for(let Je=0;Se.length>Je;Je++)this.insert(Se[Je]);return this}let $e=this._build(Se.slice(),0,Se.length-1,0);if(this.data.children.length)if(this.data.height===$e.height)this._splitRoot(this.data,$e);else{if($e.height>this.data.height){const Je=this.data;this.data=$e,$e=Je}this._insert($e,this.data.height-$e.height-1,!0)}else this.data=$e;return this}insert(Se){return Se&&this._insert(Se,this.data.height-1),this}clear(){return this.data=ed([]),this}remove(Se,$e){if(!Se)return this;let Je=this.data;const Re=this.toBBox(Se),ot=[],Lt=[];let nn,Fn,Kn;for(;Je||ot.length;){if(Je||(Je=ot.pop(),Fn=ot[ot.length-1],nn=Lt.pop(),Kn=!0),Je.leaf){const Mi=Uu(Se,Je.children,$e);if(Mi!==-1)return Je.children.splice(Mi,1),ot.push(Je),this._condense(ot),this}Kn||Je.leaf||!Kf(Je,Re)?Fn?(nn++,Je=Fn.children[nn],Kn=!1):Je=null:(ot.push(Je),Lt.push(nn),nn=0,Fn=Je,Je=Je.children[0])}return this}toBBox(Se){return Se}compareMinX(Se,$e){return Se.minX-$e.minX}compareMinY(Se,$e){return Se.minY-$e.minY}toJSON(){return this.data}fromJSON(Se){return this.data=Se,this}_all(Se,$e){const Je=[];for(;Se;)Se.leaf?$e.push(...Se.children):Je.push(...Se.children),Se=Je.pop();return $e}_build(Se,$e,Je,Re){const ot=Je-$e+1;let Lt,nn=this._maxEntries;if(nn>=ot)return Lt=ed(Se.slice($e,Je+1)),Vd(Lt,this.toBBox),Lt;Re||(nn=Math.ceil(ot/Math.pow(nn,(Re=Math.ceil(Math.log(ot)/Math.log(nn)))-1))),Lt=ed([]),Lt.leaf=!1,Lt.height=Re;const Fn=Math.ceil(ot/nn),Kn=Fn*Math.ceil(Math.sqrt(nn));Vh(Se,$e,Je,Kn,this.compareMinX);for(let Mi=$e;Je>=Mi;Mi+=Kn){const Yo=Math.min(Mi+Kn-1,Je);Vh(Se,Mi,Yo,Fn,this.compareMinY);for(let Lo=Mi;Yo>=Lo;Lo+=Fn)Lt.children.push(this._build(Se,Lo,Math.min(Lo+Fn-1,Yo),Re-1))}return Vd(Lt,this.toBBox),Lt}_chooseSubtree(Se,$e,Je,Re){for(;Re.push($e),!$e.leaf&&Re.length-1!==Je;){let nn,Fn=1/0,Kn=1/0;for(let Mi=0;$e.children.length>Mi;Mi++){const Yo=$e.children[Mi],Lo=Uh(Yo),Bo=(Math.max((Lt=Yo).maxX,(ot=Se).maxX)-Math.min(Lt.minX,ot.minX))*(Math.max(Lt.maxY,ot.maxY)-Math.min(Lt.minY,ot.minY))-Lo;Kn>Bo?(Kn=Bo,Fn=Fn>Lo?Lo:Fn,nn=Yo):Bo===Kn&&Fn>Lo&&(Fn=Lo,nn=Yo)}$e=nn||$e.children[0]}var ot,Lt;return $e}_insert(Se,$e,Je){const Re=Je?Se:this.toBBox(Se),ot=[],Lt=this._chooseSubtree(Re,this.data,$e,ot);for(Lt.children.push(Se),sh(Lt,Re);$e>=0&&ot[$e].children.length>this._maxEntries;)this._split(ot,$e),$e--;this._adjustParentBBoxes(Re,ot,$e)}_split(Se,$e){const Je=Se[$e],Re=Je.children.length,ot=this._minEntries;this._chooseSplitAxis(Je,ot,Re);const Lt=this._chooseSplitIndex(Je,ot,Re),nn=ed(Je.children.splice(Lt,Je.children.length-Lt));nn.height=Je.height,nn.leaf=Je.leaf,Vd(Je,this.toBBox),Vd(nn,this.toBBox),$e?Se[$e-1].children.push(nn):this._splitRoot(Je,nn)}_splitRoot(Se,$e){this.data=ed([Se,$e]),this.data.height=Se.height+1,this.data.leaf=!1,Vd(this.data,this.toBBox)}_chooseSplitIndex(Se,$e,Je){let Re,ot=1/0,Lt=1/0;for(let nn=$e;Je-$e>=nn;nn++){const Fn=Ud(Se,0,nn,this.toBBox),Kn=Ud(Se,nn,Je,this.toBBox),Mi=Bh(Fn,Kn),Yo=Uh(Fn)+Uh(Kn);ot>Mi?(ot=Mi,Re=nn,Lt=Lt>Yo?Yo:Lt):Mi===ot&&Lt>Yo&&(Lt=Yo,Re=nn)}return Re||Je-$e}_chooseSplitAxis(Se,$e,Je){const Re=Se.leaf?this.compareMinX:Vf,ot=Se.leaf?this.compareMinY:vf,Lt=this._allDistMargin(Se,$e,Je,Re);this._allDistMargin(Se,$e,Je,ot)>Lt&&Se.children.sort(Re)}_allDistMargin(Se,$e,Je,Re){Se.children.sort(Re);const ot=this.toBBox,Lt=Ud(Se,0,$e,ot),nn=Ud(Se,Je-$e,Je,ot);let Fn=kf(Lt)+kf(nn);for(let Kn=$e;Je-$e>Kn;Kn++){const Mi=Se.children[Kn];sh(Lt,Se.leaf?ot(Mi):Mi),Fn+=kf(Lt)}for(let Kn=Je-$e-1;Kn>=$e;Kn--){const Mi=Se.children[Kn];sh(nn,Se.leaf?ot(Mi):Mi),Fn+=kf(nn)}return Fn}_adjustParentBBoxes(Se,$e,Je){for(let Re=Je;Re>=0;Re--)sh($e[Re],Se)}_condense(Se){for(let $e,Je=Se.length-1;Je>=0;Je--)Se[Je].children.length===0?Je>0?($e=Se[Je-1].children,$e.splice($e.indexOf(Se[Je]),1)):this.clear():Vd(Se[Je],this.toBBox)}}}),cf=nh(Kh),Qc=nh($n),ka=nh(Zl),as=nh(Wa).default,Op=ka.featureEach,Qi=Qc.featureCollection;function bc(Se){var $e=new cf(Se);return $e.insert=function(Je){if(Je.type!=="Feature")throw Error("invalid feature");return Je.bbox=Je.bbox?Je.bbox:as(Je),cf.prototype.insert.call(this,Je)},$e.load=function(Je){var Re=[];return Array.isArray(Je)?Je.forEach(function(ot){if(ot.type!=="Feature")throw Error("invalid features");ot.bbox=ot.bbox?ot.bbox:as(ot),Re.push(ot)}):Op(Je,function(ot){if(ot.type!=="Feature")throw Error("invalid features");ot.bbox=ot.bbox?ot.bbox:as(ot),Re.push(ot)}),cf.prototype.load.call(this,Re)},$e.remove=function(Je,Re){if(Je.type!=="Feature")throw Error("invalid feature");return Je.bbox=Je.bbox?Je.bbox:as(Je),cf.prototype.remove.call(this,Je,Re)},$e.clear=function(){return cf.prototype.clear.call(this)},$e.search=function(Je){var Re=cf.prototype.search.call(this,this.toBBox(Je));return Qi(Re)},$e.collides=function(Je){return cf.prototype.collides.call(this,this.toBBox(Je))},$e.all=function(){var Je=cf.prototype.all.call(this);return Qi(Je)},$e.toJSON=function(){return cf.prototype.toJSON.call(this)},$e.fromJSON=function(Je){return cf.prototype.fromJSON.call(this,Je)},$e.toBBox=function(Je){var Re;if(Je.bbox)Re=Je.bbox;else if(Array.isArray(Je)&&Je.length===4)Re=Je;else if(Array.isArray(Je)&&Je.length===6)Re=[Je[0],Je[1],Je[3],Je[4]];else if(Je.type==="Feature")Re=as(Je);else{if(Je.type!=="FeatureCollection")throw Error("invalid geojson");Re=as(Je)}return{minX:Re[0],minY:Re[1],maxX:Re[2],maxY:Re[3]}},$e}var yf=bc;function Qu(Se,$e){var Je={},Re=[];if(Se.type==="LineString"&&(Se=ia(Se)),$e.type==="LineString"&&($e=ia($e)),Se.type==="Feature"&&$e.type==="Feature"&&Se.geometry!==null&&$e.geometry!==null&&Se.geometry.type==="LineString"&&$e.geometry.type==="LineString"&&Se.geometry.coordinates.length===2&&$e.geometry.coordinates.length===2){var ot=Bc(Se,$e);return ot&&Re.push(ot),Ji(Re)}var Lt=yf();return Lt.load(Au($e)),ni(Au(Se),function(nn){ni(Lt.search(nn),function(Fn){var Kn=Bc(nn,Fn);if(Kn){var Mi=Xs(Kn).join(",");Je[Mi]||(Je[Mi]=!0,Re.push(Kn))}})}),Ji(Re)}function Bc(Se,$e){var Je=Xs(Se),Re=Xs($e);if(Je.length!==2)throw Error(" line1 must only contain 2 coordinates");if(Re.length!==2)throw Error(" line2 must only contain 2 coordinates");var ot=Je[0][0],Lt=Je[0][1],nn=Je[1][0],Fn=Je[1][1],Kn=Re[0][0],Mi=Re[0][1],Yo=Re[1][0],Lo=Re[1][1],Bo=(Lo-Mi)*(nn-ot)-(Yo-Kn)*(Fn-Lt),$u=(Yo-Kn)*(Lt-Mi)-(Lo-Mi)*(ot-Kn),gu=(nn-ot)*(Lt-Mi)-(Fn-Lt)*(ot-Kn);if(Bo===0)return null;var Kl=$u/Bo,Sl=gu/Bo;return 0>Kl||Kl>1||0>Sl||Sl>1?null:Nl([ot+Kl*(nn-ot),Lt+Kl*(Fn-Lt)])}yf.default=bc;var Df=6378137;function Jp(Se){return Ei(Se,function($e,Je){return $e+function(Re){var ot,Lt=0;switch(Re.type){case"Polygon":return sg(Re.coordinates);case"MultiPolygon":for(ot=0;Re.coordinates.length>ot;ot++)Lt+=sg(Re.coordinates[ot]);return Lt;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0}return 0}(Je)},0)}function sg(Se){var $e=0;if(Se&&Se.length>0){$e+=Math.abs(Ah(Se[0]));for(var Je=1;Se.length>Je;Je++)$e-=Math.abs(Ah(Se[Je]))}return $e}function Ah(Se){var $e,Je,Re,ot,Lt,nn,Fn=0,Kn=Se.length;if(Kn>2){for(nn=0;Kn>nn;nn++)nn===Kn-2?(Re=Kn-2,ot=Kn-1,Lt=0):nn===Kn-1?(Re=Kn-1,ot=0,Lt=1):(Re=nn,ot=nn+1,Lt=nn+2),$e=Se[Re],Je=Se[ot],Fn+=(ap(Se[Lt][0])-ap($e[0]))*Math.sin(ap(Je[1]));Fn=Fn*Df*Df/2}return Fn}function ap(Se){return Se*Math.PI/180}function Rp(Se,$e){return $e===void 0&&($e={}),Na(Se,function(Je,Re){var ot=Re.geometry.coordinates;return Je+Ja(ot[0],ot[1],$e)},0)}function tp(Se,$e){$e===void 0&&($e={});var Je=Ya(Se);switch($e.properties||Se.type!=="Feature"||($e.properties=Se.properties),Je.type){case"Polygon":return function(Re,ot){ot===void 0&&(ot={});var Lt=Ya(Re),nn=Lt.coordinates,Fn=ot.properties?ot.properties:Re.type==="Feature"?Re.properties:{};return pg(nn,Fn)}(Je,$e);case"MultiPolygon":return function(Re,ot){ot===void 0&&(ot={});var Lt=Ya(Re),nn=Lt.coordinates,Fn=ot.properties?ot.properties:Re.type==="Feature"?Re.properties:{},Kn=[];return nn.forEach(function(Mi){Kn.push(pg(Mi,Fn))}),Ji(Kn)}(Je,$e);default:throw Error("invalid poly")}}function pg(Se,$e){return Se.length>1?ta(Se,$e):zi(Se[0],$e)}function Cp(Se){for(var $e,Je,Re=Xs(Se),ot=0,Lt=1;Re.length>Lt;)$e=Je||Re[0],ot+=((Je=Re[Lt])[0]-$e[0])*(Je[1]+$e[1]),Lt++;return ot>0}var Uf=Yd(function(Se){var $e=Object.prototype.hasOwnProperty,Je="~";function Re(){}function ot(Kn,Mi,Yo){this.fn=Kn,this.context=Mi,this.once=Yo||!1}function Lt(Kn,Mi,Yo,Lo,Bo){if(typeof Yo!="function")throw new TypeError("The listener must be a function");var $u=new ot(Yo,Lo||Kn,Bo),gu=Je?Je+Mi:Mi;return Kn._events[gu]?Kn._events[gu].fn?Kn._events[gu]=[Kn._events[gu],$u]:Kn._events[gu].push($u):(Kn._events[gu]=$u,Kn._eventsCount++),Kn}function nn(Kn,Mi){--Kn._eventsCount==0?Kn._events=new Re:delete Kn._events[Mi]}function Fn(){this._events=new Re,this._eventsCount=0}Object.create&&(Re.prototype=Object.create(null),new Re().__proto__||(Je=!1)),Fn.prototype.eventNames=function(){var Kn,Mi,Yo=[];if(this._eventsCount===0)return Yo;for(Mi in Kn=this._events)$e.call(Kn,Mi)&&Yo.push(Je?Mi.slice(1):Mi);return Object.getOwnPropertySymbols?Yo.concat(Object.getOwnPropertySymbols(Kn)):Yo},Fn.prototype.listeners=function(Kn){var Mi=this._events[Je?Je+Kn:Kn];if(!Mi)return[];if(Mi.fn)return[Mi.fn];for(var Yo=0,Lo=Mi.length,Bo=Array(Lo);Lo>Yo;Yo++)Bo[Yo]=Mi[Yo].fn;return Bo},Fn.prototype.listenerCount=function(Kn){var Mi=this._events[Je?Je+Kn:Kn];return Mi?Mi.fn?1:Mi.length:0},Fn.prototype.emit=function(Kn,Mi,Yo,Lo,Bo,$u){var gu=Je?Je+Kn:Kn;if(!this._events[gu])return!1;var Kl,Sl,ql=this._events[gu],il=arguments.length;if(ql.fn){switch(ql.once&&this.removeListener(Kn,ql.fn,void 0,!0),il){case 1:return ql.fn.call(ql.context),!0;case 2:return ql.fn.call(ql.context,Mi),!0;case 3:return ql.fn.call(ql.context,Mi,Yo),!0;case 4:return ql.fn.call(ql.context,Mi,Yo,Lo),!0;case 5:return ql.fn.call(ql.context,Mi,Yo,Lo,Bo),!0;case 6:return ql.fn.call(ql.context,Mi,Yo,Lo,Bo,$u),!0}for(Sl=1,Kl=Array(il-1);il>Sl;Sl++)Kl[Sl-1]=arguments[Sl];ql.fn.apply(ql.context,Kl)}else{var Va,pu=ql.length;for(Sl=0;pu>Sl;Sl++)switch(ql[Sl].once&&this.removeListener(Kn,ql[Sl].fn,void 0,!0),il){case 1:ql[Sl].fn.call(ql[Sl].context);break;case 2:ql[Sl].fn.call(ql[Sl].context,Mi);break;case 3:ql[Sl].fn.call(ql[Sl].context,Mi,Yo);break;case 4:ql[Sl].fn.call(ql[Sl].context,Mi,Yo,Lo);break;default:if(!Kl)for(Va=1,Kl=Array(il-1);il>Va;Va++)Kl[Va-1]=arguments[Va];ql[Sl].fn.apply(ql[Sl].context,Kl)}}return!0},Fn.prototype.on=function(Kn,Mi,Yo){return Lt(this,Kn,Mi,Yo,!1)},Fn.prototype.once=function(Kn,Mi,Yo){return Lt(this,Kn,Mi,Yo,!0)},Fn.prototype.removeListener=function(Kn,Mi,Yo,Lo){var Bo=Je?Je+Kn:Kn;if(!this._events[Bo])return this;if(!Mi)return nn(this,Bo),this;var $u=this._events[Bo];if($u.fn)$u.fn!==Mi||Lo&&!$u.once||Yo&&$u.context!==Yo||nn(this,Bo);else{for(var gu=0,Kl=[],Sl=$u.length;Sl>gu;gu++)($u[gu].fn!==Mi||Lo&&!$u[gu].once||Yo&&$u[gu].context!==Yo)&&Kl.push($u[gu]);Kl.length?this._events[Bo]=Kl.length===1?Kl[0]:Kl:nn(this,Bo)}return this},Fn.prototype.removeAllListeners=function(Kn){var Mi;return Kn?this._events[Mi=Je?Je+Kn:Kn]&&nn(this,Mi):(this._events=new Re,this._eventsCount=0),this},Fn.prototype.off=Fn.prototype.removeListener,Fn.prototype.addListener=Fn.prototype.on,Fn.prefixed=Je,Fn.EventEmitter=Fn,Se.exports=Fn}),Pd=function(Se){Ti(Je,Se);var $e=ks(Je);function Je(Re,ot){var Lt,nn=ot.style;return Et(this,Je),(Lt=$e.call(this)).scene=void 0,Lt.style=void 0,Lt.layers=void 0,Lt.data=[],Lt.scene=Re,Lt.style=nn,Lt.layers=Lt.initLayers(),Lt.layers.forEach(function(Fn){Re.addLayer(Fn)}),nn.callback instanceof Function&&nn.callback(Lt.layers),Lt}return jn(Je,[{key:"getLayers",value:function(){return this.layers}},{key:"show",value:function(){this.layers.forEach(function(Re){Re.show()})}},{key:"hide",value:function(){this.layers.forEach(function(Re){Re.hide()})}},{key:"setData",value:function(Re){var ot=no(Re).sort(function(Lt,nn){return+Lt.properties.isActive-+nn.properties.isActive});this.data=ot,this.layers.forEach(function(Lt){Lt.setData(Ji(ot))})}},{key:"destroy",value:function(){var Re=this;this.layers.forEach(function(ot){Re.scene.removeLayer(ot)})}}]),Je}(Uf.EventEmitter),Np=function(Se){Ti(Je,Se);var $e=ks(Je);function Je(){return Et(this,Je),$e.apply(this,arguments)}return jn(Je,[{key:"initLayers",value:function(){var Re=this.style,ot=Re.normal,Lt=Re.style,nn=Re.options;return[new A.LineLayer(nn!=null?nn:{}).source(Ji([])).size(ot.size).color(ot.color).shape("line").style(Lt)]}}]),Je}(Pd),$p=function(Se){var $e=typeof Se;return Se!=null&&($e=="object"||$e=="function")},ag=typeof vd=="object"&&vd&&vd.Object===Object&&vd,Md=typeof self=="object"&&self&&self.Object===Object&&self,jp=ag||Md||Function("return this")(),Ih=function(){return jp.Date.now()},of=/\s/,Ff=function(Se){for(var $e=Se.length;$e--&&of.test(Se.charAt($e)););return $e},iu=/^\s+/,mp=function(Se){return Se&&Se.slice(0,Ff(Se)+1).replace(iu,"")},Af=jp.Symbol,np=Object.prototype,Od=np.hasOwnProperty,td=np.toString,Tp=Af?Af.toStringTag:void 0,_f=function(Se){var $e=Od.call(Se,Tp),Je=Se[Tp];try{Se[Tp]=void 0;var Re=!0}catch(Lt){}var ot=td.call(Se);return Re&&($e?Se[Tp]=Je:delete Se[Tp]),ot},Hh=Object.prototype.toString,Dp=function(Se){return Hh.call(Se)},Vp=Af?Af.toStringTag:void 0,Cd=function(Se){return Se==null?Se===void 0?"[object Undefined]":"[object Null]":Vp&&Vp in Object(Se)?_f(Se):Dp(Se)},qh=function(Se){return Se!=null&&typeof Se=="object"},kh=function(Se){return typeof Se=="symbol"||qh(Se)&&Cd(Se)=="[object Symbol]"},_h=/^[-+]0x[0-9a-f]+$/i,Bf=/^0b[01]+$/i,bd=/^0o[0-7]+$/i,$c=parseInt,Hd=function(Se){if(typeof Se=="number")return Se;if(kh(Se))return NaN;if($p(Se)){var $e=typeof Se.valueOf=="function"?Se.valueOf():Se;Se=$p($e)?$e+"":$e}if(typeof Se!="string")return Se===0?Se:+Se;Se=mp(Se);var Je=Bf.test(Se);return Je||bd.test(Se)?$c(Se.slice(2),Je?2:8):_h.test(Se)?NaN:+Se},vh=Math.max,wo=Math.min,D=function(Se,$e,Je){var Re,ot,Lt,nn,Fn,Kn,Mi=0,Yo=!1,Lo=!1,Bo=!0;if(typeof Se!="function")throw new TypeError("Expected a function");function $u(il){var Va=Re,pu=ot;return Re=ot=void 0,Mi=il,nn=Se.apply(pu,Va)}function gu(il){var Va=il-Kn;return Kn===void 0||Va>=$e||0>Va||Lo&&il-Mi>=Lt}function Kl(){var il=Ih();if(gu(il))return Sl(il);Fn=setTimeout(Kl,function(Va){var pu=$e-(Va-Kn);return Lo?wo(pu,Lt-(Va-Mi)):pu}(il))}function Sl(il){return Fn=void 0,Bo&&Re?$u(il):(Re=ot=void 0,nn)}function ql(){var il=Ih(),Va=gu(il);if(Re=arguments,ot=this,Kn=il,Va){if(Fn===void 0)return function(pu){return Mi=pu,Fn=setTimeout(Kl,$e),Yo?$u(pu):nn}(Kn);if(Lo)return clearTimeout(Fn),Fn=setTimeout(Kl,$e),$u(Kn)}return Fn===void 0&&(Fn=setTimeout(Kl,$e)),nn}return $e=Hd($e)||0,$p(Je)&&(Yo=!!Je.leading,Lt=(Lo="maxWait"in Je)?vh(Hd(Je.maxWait)||0,$e):Lt,Bo="trailing"in Je?!!Je.trailing:Bo),ql.cancel=function(){Fn!==void 0&&clearTimeout(Fn),Mi=0,Re=Kn=ot=Fn=void 0},ql.flush=function(){return Fn===void 0?nn:Sl(Ih())},ql},F=function(Se){Ti(Je,Se);var $e=ks(Je);function Je(){var Re;Et(this,Je);for(var ot=arguments.length,Lt=Array(ot),nn=0;ot>nn;nn++)Lt[nn]=arguments[nn];return(Re=$e.call.apply($e,[this].concat(Lt))).onMouseMove=function(Fn){Re.emit(y.RenderEvent.Mousemove,Fn)},Re.onMouseOut=function(Fn){Re.emit(y.RenderEvent.Mouseout,Fn)},Re.onMouseDown=function(Fn){Re.emit(y.RenderEvent.Dragstart,Fn)},Re.onDragging=function(Fn){Re.emit(y.RenderEvent.Dragging,Fn)},Re.onDragEnd=D(function(Fn){Re.emit(y.RenderEvent.Dragend,Fn)},0),Re.onUnClick=function(Fn){Re.emit(y.RenderEvent.UnClick,Fn)},Re.enableHover=function(){var Fn,Kn;Re.disableHover(),(Fn=Re.layers[0])===null||Fn===void 0||Fn.on(y.LayerEvent.Mousemove,Re.onMouseMove),(Kn=Re.layers[0])===null||Kn===void 0||Kn.on(y.LayerEvent.Mouseout,Re.onMouseOut)},Re.disableHover=function(){var Fn,Kn;(Fn=Re.layers[0])===null||Fn===void 0||Fn.off(y.LayerEvent.Mousemove,Re.onMouseMove),(Kn=Re.layers[0])===null||Kn===void 0||Kn.off(y.LayerEvent.Mouseout,Re.onMouseOut)},Re}return jn(Je,[{key:"initLayers",value:function(){var Re=this.style,ot=Re.normal,Lt=Re.hover,nn=Re.active,Fn=Re.style,Kn=Re.options;return[new A.LineLayer(Kn!=null?Kn:{}).source(Ji([])).size("isHover*isActive",function(Mi,Yo){return Yo?nn.size:Mi?Lt.size:ot.size}).color("isHover*isActive",function(Mi,Yo){return Yo?nn.color:Mi?Lt.color:ot.color}).shape("line").style(Fn)]}},{key:"enableDrag",value:function(){this.disableDrag(),this.layers[0].on(y.LayerEvent.Mousedown,this.onMouseDown),this.scene.on(y.SceneEvent.Dragging,this.onDragging),this.scene.on(y.SceneEvent.Mouseup,this.onDragEnd),this.scene.on(y.SceneEvent.Dragend,this.onDragEnd)}},{key:"disableDrag",value:function(){this.layers[0].off(y.LayerEvent.Mousedown,this.onMouseDown),this.scene.off(y.SceneEvent.Dragging,this.onDragging),this.scene.off(y.SceneEvent.Mouseup,this.onDragEnd),this.scene.off(y.SceneEvent.Dragend,this.onDragEnd)}},{key:"enableUnClick",value:function(){this.disableUnClick(),this.layers[0].on(y.LayerEvent.UnClick,this.onUnClick)}},{key:"disableUnClick",value:function(){this.layers[0].off(y.LayerEvent.UnClick,this.onUnClick)}}]),Je}(Pd),q=function(Se){Ti(Je,Se);var $e=ks(Je);function Je(){var Re;Et(this,Je);for(var ot=arguments.length,Lt=Array(ot),nn=0;ot>nn;nn++)Lt[nn]=arguments[nn];return(Re=$e.call.apply($e,[this].concat(Lt))).onMouseMove=function(Fn){Re.emit(y.RenderEvent.Mousemove,Fn)},Re.onMouseOut=function(Fn){Re.emit(y.RenderEvent.Mouseout,Fn)},Re.onMouseDown=function(Fn){Re.emit(y.RenderEvent.Click,Fn)},Re}return jn(Je,[{key:"initLayers",value:function(){var Re=this.style,ot=Re.normal,Lt=Re.style,nn=Lt===void 0?{}:Lt,Fn=Re.options,Kn=ot.shape,Mi=ot.size,Yo=ot.color;return[new A.PointLayer(Fn!=null?Fn:{}).source(Ji([])).size(Mi).color(Yo).shape(Kn).style(nn)]}},{key:"enableClick",value:function(){this.disableClick(),this.layers[0].on(y.LayerEvent.Mousedown,this.onMouseDown)}},{key:"disableClick",value:function(){this.layers[0].off(y.LayerEvent.Mousedown,this.onMouseDown)}},{key:"enableHover",value:function(){var Re,ot;this.disableHover(),(Re=this.layers[0])===null||Re===void 0||Re.on(y.LayerEvent.Mousemove,this.onMouseMove),(ot=this.layers[0])===null||ot===void 0||ot.on(y.LayerEvent.Mouseout,this.onMouseOut)}},{key:"disableHover",value:function(){var Re,ot;(Re=this.layers[0])===null||Re===void 0||Re.off(y.LayerEvent.Mousemove,this.onMouseMove),(ot=this.layers[0])===null||ot===void 0||ot.off(y.LayerEvent.Mouseout,this.onMouseOut)}}]),Je}(Pd),ae=function(Se){Ti(Je,Se);var $e=ks(Je);function Je(){var Re;Et(this,Je);for(var ot=arguments.length,Lt=Array(ot),nn=0;ot>nn;nn++)Lt[nn]=arguments[nn];return(Re=$e.call.apply($e,[this].concat(Lt))).onCreate=function(Fn){Re.emit(y.RenderEvent.UnClick,Fn)},Re.onMouseMove=function(Fn){Re.emit(y.RenderEvent.Mousemove,Fn)},Re.onMouseOut=function(Fn){Re.emit(y.RenderEvent.Mouseout,Fn)},Re.onMouseDown=function(Fn){Re.emit(y.RenderEvent.Dragstart,Fn)},Re.onDragging=function(Fn){Re.emit(y.RenderEvent.Dragging,Fn)},Re.onDragEnd=D(function(Fn){Re.emit(y.RenderEvent.Dragend,Fn)},0),Re.onClick=function(Fn){Re.emit(y.RenderEvent.Click,Fn)},Re.onContextmenu=function(Fn){Re.emit(y.RenderEvent.Contextmenu,Fn)},Re}return jn(Je,[{key:"initLayers",value:function(){var Re=this.style,ot=Re.normal,Lt=Re.hover,nn=Re.active,Fn=Re.style,Kn=Fn===void 0?{}:Fn,Mi=Re.options;return[new A.PointLayer(Mi!=null?Mi:{}).source(Ji([])).size("isHover*isActive",function(Yo,Lo){return Lo?nn.size:Yo?Lt.size:ot.size}).color("isHover*isActive",function(Yo,Lo){return Lo?nn.color:Yo?Lt.color:ot.color}).shape("isHover*isActive",function(Yo,Lo){return Lo?nn.shape:Yo?Lt.shape:ot.shape}).style(Kn)]}},{key:"enableCreate",value:function(){this.disableCreate(),this.layers[0].on(y.LayerEvent.UnClick,this.onCreate)}},{key:"disableCreate",value:function(){this.layers[0].off(y.LayerEvent.UnClick,this.onCreate)}},{key:"enableHover",value:function(){var Re,ot;this.disableHover(),(Re=this.layers[0])===null||Re===void 0||Re.on(y.LayerEvent.Mousemove,this.onMouseMove),(ot=this.layers[0])===null||ot===void 0||ot.on(y.LayerEvent.Mouseout,this.onMouseOut)}},{key:"disableHover",value:function(){var Re,ot;(Re=this.layers[0])===null||Re===void 0||Re.off(y.LayerEvent.Mousemove,this.onMouseMove),(ot=this.layers[0])===null||ot===void 0||ot.off(y.LayerEvent.Mouseout,this.onMouseOut)}},{key:"enableDrag",value:function(){this.disableDrag(),this.layers[0].on(y.LayerEvent.Mousedown,this.onMouseDown),this.scene.on(y.SceneEvent.Dragging,this.onDragging),this.scene.on(y.SceneEvent.Mouseup,this.onDragEnd),this.scene.on(y.SceneEvent.Dragend,this.onDragEnd)}},{key:"disableDrag",value:function(){this.layers[0].off(y.LayerEvent.Mousedown,this.onMouseDown),this.scene.off(y.SceneEvent.Dragging,this.onDragging),this.scene.off(y.SceneEvent.Mouseup,this.onDragEnd),this.scene.off(y.SceneEvent.Dragend,this.onDragEnd)}},{key:"enableClick",value:function(){this.disableClick(),this.layers[0].on(y.LayerEvent.Click,this.onClick)}},{key:"disableClick",value:function(){this.layers[0].off(y.LayerEvent.Click,this.onClick)}},{key:"enableContextMenu",value:function(){this.disableContextMenu(),this.layers[0].on(y.LayerEvent.Contextmenu,this.onContextmenu)}},{key:"disableContextMenu",value:function(){this.layers[0].off(y.LayerEvent.Contextmenu,this.onContextmenu)}}]),Je}(Pd),He=function(Se){Ti(Je,Se);var $e=ks(Je);function Je(){var Re;Et(this,Je);for(var ot=arguments.length,Lt=Array(ot),nn=0;ot>nn;nn++)Lt[nn]=arguments[nn];return(Re=$e.call.apply($e,[this].concat(Lt))).onMouseMove=function(Fn){Re.emit(y.RenderEvent.Mousemove,Fn)},Re.onMouseOut=function(Fn){Re.emit(y.RenderEvent.Mouseout,Fn)},Re.onMouseDown=function(Fn){Re.emit(y.RenderEvent.Dragstart,Fn)},Re.onDragging=function(Fn){Re.emit(y.RenderEvent.Dragging,Fn)},Re.onDragEnd=D(function(Fn){Re.emit(y.RenderEvent.Dragend,Fn)},0),Re.onUnClick=function(Fn){Re.emit(y.RenderEvent.UnClick,Fn)},Re.enableHover=function(){var Fn,Kn;Re.disableHover(),(Fn=Re.layers[0])===null||Fn===void 0||Fn.on(y.LayerEvent.Mousemove,Re.onMouseMove),(Kn=Re.layers[0])===null||Kn===void 0||Kn.on(y.LayerEvent.Mouseout,Re.onMouseOut)},Re.disableHover=function(){var Fn,Kn;(Fn=Re.layers[0])===null||Fn===void 0||Fn.off(y.LayerEvent.Mousemove,Re.onMouseMove),(Kn=Re.layers[0])===null||Kn===void 0||Kn.off(y.LayerEvent.Mouseout,Re.onMouseOut)},Re}return jn(Je,[{key:"initLayers",value:function(){var Re=this.style,ot=Re.normal,Lt=Re.hover,nn=Re.active,Fn=Re.style,Kn=Re.options,Mi=new A.PolygonLayer(Kn!=null?Kn:{});return Mi.source(Ji([])).color("isHover*isActive",function(Yo,Lo){return Lo?nn.color:Yo?Lt.color:ot.color}).style(Fn),[Mi]}},{key:"enableDrag",value:function(){this.disableDrag(),this.layers[0].on(y.LayerEvent.Mousedown,this.onMouseDown),this.scene.on(y.SceneEvent.Dragging,this.onDragging),this.scene.on(y.SceneEvent.Mouseup,this.onDragEnd),this.scene.on(y.SceneEvent.Dragend,this.onDragEnd)}},{key:"disableDrag",value:function(){this.layers[0].off(y.LayerEvent.Mousedown,this.onMouseDown),this.scene.off(y.SceneEvent.Dragging,this.onDragging),this.scene.off(y.SceneEvent.Mouseup,this.onDragEnd),this.scene.off(y.SceneEvent.Dragend,this.onDragEnd)}},{key:"enableUnClick",value:function(){this.disableUnClick(),this.layers[0].on(y.LayerEvent.UnClick,this.onUnClick)}},{key:"disableUnClick",value:function(){this.layers[0].off(y.LayerEvent.UnClick,this.onUnClick)}}]),Je}(Pd),qt=function(Se){Ti(Je,Se);var $e=ks(Je);function Je(Re){var ot;return Et(this,Je),(ot=$e.call(this)).scene=void 0,ot.previousClick=void 0,ot.onDblClick=function(Lt){var nn,Fn,Kn=(nn=(Fn=Lt.pixel)!==null&&Fn!==void 0?Fn:Lt.point)!==null&&nn!==void 0?nn:{},Mi=Kn.x,Yo=Mi===void 0?0:Mi,Lo=Kn.y,Bo=Lo===void 0?0:Lo,$u=Date.now();if(ot.previousClick){var gu=ot.previousClick,Kl=gu.y;300>$u-gu.time&&5>Math.abs(Yo-gu.x)&&5>Math.abs(Bo-Kl)&&ot.emit(y.RenderEvent.DblClick,Lt)}ot.previousClick={x:Yo,y:Bo,time:$u}},ot.onMouseMove=function(Lt){ot.emit(y.RenderEvent.Mousemove,Lt)},ot.onMouseDown=function(Lt){ot.emit(y.RenderEvent.Dragstart,Lt)},ot.onDragging=function(Lt){ot.emit(y.RenderEvent.Dragging,Lt)},ot.onDragEnd=D(function(Lt){ot.emit(y.RenderEvent.Dragend,Lt)},0),ot.scene=Re,ot}return jn(Je,[{key:"enableDrag",value:function(){this.disableDrag(),this.scene.on(y.SceneEvent.Mousedown,this.onMouseDown),this.scene.on(y.SceneEvent.Dragging,this.onDragging),this.scene.on(y.SceneEvent.Mouseup,this.onDragEnd),this.scene.on(y.SceneEvent.Dragend,this.onDragEnd)}},{key:"disableDrag",value:function(){this.scene.off(y.SceneEvent.Mousedown,this.onMouseDown),this.scene.off(y.SceneEvent.Dragging,this.onDragging),this.scene.off(y.SceneEvent.Mouseup,this.onDragEnd),this.scene.off(y.SceneEvent.Dragend,this.onDragEnd)}},{key:"enableMouseMove",value:function(){this.disableMouseMove(),this.scene.on(y.SceneEvent.Mousemove,this.onMouseMove)}},{key:"disableMouseMove",value:function(){this.scene.off(y.SceneEvent.Mousemove,this.onMouseMove)}},{key:"enableDblClick",value:function(){this.disableDblClick(),this.scene.on(y.SceneEvent.Mousedown,this.onDblClick)}},{key:"disableDblClick",value:function(){this.scene.off(y.SceneEvent.Mousedown,this.onDblClick)}}]),Je}(Uf),zn=function(Se){Ti(Je,Se);var $e=ks(Je);function Je(){return Et(this,Je),$e.apply(this,arguments)}return jn(Je,[{key:"initLayers",value:function(){var Re=this.style,ot=Re.normal,Lt=Re.active,nn=Re.style,Fn=nn===void 0?{}:nn,Kn=Re.options;return[new A.PointLayer(Kn!=null?Kn:{}).source(Ji([])).size("isActive",function(Mi){return Mi?Lt.size:ot.size}).color("isActive",function(Mi){return Mi?Lt.color:ot.color}).shape("text","text").style(Fn)]}}]),Je}(Pd),di={point:ae,line:F,dashLine:Np,midPoint:q,text:zn,polygon:He},Uo="#1990FF",la="#ED9D48",Cl={blend:"normal",pickingBuffer:5},Ll={color:Uo,shape:"circle",size:6},zu={color:la,shape:"circle",size:6},Iu={shape:"circle",size:6,color:la},pc={options:Cl,normal:Ll,hover:lt(lt({},Ll),{},{size:8}),active:lt(lt({},Ll),{},{size:8,color:la}),style:{stroke:"#ffffff",strokeWidth:2}},zc={options:Cl,normal:zu,hover:lt(lt({},zu),{},{size:8}),active:lt(lt({},zu),{},{size:8}),style:{stroke:"#ffffff",strokeWidth:2}},Rd={color:Uo,size:12},X={point:zc,line:{options:Cl,normal:{color:Uo,size:2},hover:{color:Uo,size:2},active:{color:la,size:2},style:{}},polygon:{options:Cl,normal:{color:Uo},hover:{color:Uo},active:{color:la},style:{opacity:.15}},midPoint:{options:Cl,normal:Iu},dashLine:{options:Cl,normal:{color:la,size:2},style:{lineType:"dash",dashArray:[6,6]}},text:{options:Cl,normal:Rd,active:lt(lt({},Rd),{},{color:la}),style:{fontWeight:"800",textOffset:[0,Rd.size+6],textAllowOverlap:!0,stroke:"#ffffff",strokeWidth:2}}},ne=function(Se,$e){return Se===$e||Se!=Se&&$e!=$e},Q=function(Se,$e){for(var Je=Se.length;Je--;)if(ne(Se[Je][0],$e))return Je;return-1},le=Array.prototype.splice,it=function(Se){var $e=this.__data__,Je=Q($e,Se);return Je>=0&&(Je==$e.length-1?$e.pop():le.call($e,Je,1),--this.size,!0)},Rt=function(Se){var $e=this.__data__,Je=Q($e,Se);return 0>Je?void 0:$e[Je][1]},en=function(Se){return Q(this.__data__,Se)>-1},Yn=function(Se,$e){var Je=this.__data__,Re=Q(Je,Se);return 0>Re?(++this.size,Je.push([Se,$e])):Je[Re][1]=$e,this};function Zr(Se){var $e=-1,Je=Se==null?0:Se.length;for(this.clear();++$eRe.length)return Re.push([Se,$e]),this.size=++Je.size,this;Je=this.__data__=new Oc(Re)}return Je.set(Se,$e),this.size=Je.size,this};function yd(Se){var $e=this.__data__=new fr(Se);this.size=$e.size}yd.prototype.clear=es,yd.prototype.delete=Xo,yd.prototype.get=Ss,yd.prototype.has=oa,yd.prototype.set=ad;var Bd=yd,Dc=function(Se,$e){for(var Je=-1,Re=Se==null?0:Se.length;++Je-1&&Se%1==0&&$e>Se},jg=function(Se){return typeof Se=="number"&&Se>-1&&Se%1==0&&9007199254740991>=Se},lp={};lp["[object Float32Array]"]=lp["[object Float64Array]"]=lp["[object Int8Array]"]=lp["[object Int16Array]"]=lp["[object Int32Array]"]=lp["[object Uint8Array]"]=lp["[object Uint8ClampedArray]"]=lp["[object Uint16Array]"]=lp["[object Uint32Array]"]=!0,lp["[object Arguments]"]=lp["[object Array]"]=lp["[object ArrayBuffer]"]=lp["[object Boolean]"]=lp["[object DataView]"]=lp["[object Date]"]=lp["[object Error]"]=lp["[object Function]"]=lp["[object Map]"]=lp["[object Number]"]=lp["[object Object]"]=lp["[object RegExp]"]=lp["[object Set]"]=lp["[object String]"]=lp["[object WeakMap]"]=!1;var lg=function(Se){return qh(Se)&&jg(Se.length)&&!!lp[Cd(Se)]},Id=function(Se){return function($e){return Se($e)}},rm=Yd(function(Se,$e){var Je=$e&&!$e.nodeType&&$e,Re=Je&&Se&&!Se.nodeType&&Se,ot=Re&&Re.exports===Je&&ag.process,Lt=function(){try{var nn=Re&&Re.require&&Re.require("util").types;return nn||ot&&ot.binding&&ot.binding("util")}catch(Fn){}}();Se.exports=Lt}),Im=rm&&rm.isTypedArray,jm=Im?Id(Im):lg,im=Object.prototype.hasOwnProperty,wm=function(Se,$e){var Je=Qp(Se),Re=!Je&&bf(Se),ot=!Je&&!Re&&Hf(Se),Lt=!Je&&!Re&&!ot&&jm(Se),nn=Je||Re||ot||Lt,Fn=nn?Zp(Se.length,String):[],Kn=Fn.length;for(var Mi in Se)!$e&&!im.call(Se,Mi)||nn&&(Mi=="length"||ot&&(Mi=="offset"||Mi=="parent")||Lt&&(Mi=="buffer"||Mi=="byteLength"||Mi=="byteOffset")||af(Mi,Kn))||Fn.push(Mi);return Fn},ym=Object.prototype,Lg=function(Se){var $e=Se&&Se.constructor;return Se===(typeof $e=="function"&&$e.prototype||ym)},ug=function(Se,$e){return function(Je){return Se($e(Je))}},om=ug(Object.keys,Object),Qg=Object.prototype.hasOwnProperty,Lm=function(Se){if(!Lg(Se))return om(Se);var $e=[];for(var Je in Object(Se))Qg.call(Se,Je)&&Je!="constructor"&&$e.push(Je);return $e},Rm=function(Se){return Se!=null&&jg(Se.length)&&!Wo(Se)},Sg=function(Se){return Rm(Se)?wm(Se):Lm(Se)},Wm=function(Se,$e){return Se&&Hg($e,Sg($e),Se)},Gp=function(Se){var $e=[];if(Se!=null)for(var Je in Object(Se))$e.push(Je);return $e},P0=Object.prototype.hasOwnProperty,wp=function(Se){if(!$p(Se))return Gp(Se);var $e=Lg(Se),Je=[];for(var Re in Se)(Re!="constructor"||!$e&&P0.call(Se,Re))&&Je.push(Re);return Je},Xf=function(Se){return Rm(Se)?wm(Se,!0):wp(Se)},Zh=function(Se,$e){return Se&&Hg($e,Xf($e),Se)},a0=Yd(function(Se,$e){var Je=$e&&!$e.nodeType&&$e,Re=Je&&Se&&!Se.nodeType&&Se,ot=Re&&Re.exports===Je?jp.Buffer:void 0,Lt=ot?ot.allocUnsafe:void 0;Se.exports=function(nn,Fn){if(Fn)return nn.slice();var Kn=nn.length,Mi=Lt?Lt(Kn):new nn.constructor(Kn);return nn.copy(Mi),Mi}}),k0=function(Se,$e){var Je=-1,Re=Se.length;for($e||($e=Array(Re));++JeFn))return!1;var Mi=Lt.get(Se),Yo=Lt.get($e);if(Mi&&Yo)return Mi==$e&&Yo==Se;var Lo=-1,Bo=!0,$u=2&Je?new Ft:void 0;for(Lt.set(Se,$e),Lt.set($e,Se);++Lo0){if(++$e>=800)return arguments[0]}else $e=0;return Se.apply(void 0,arguments)}},Dl=ul(xd?function(Se,$e){return xd(Se,"toString",{configurable:!0,enumerable:!1,value:eo($e),writable:!0})}:Ds),Oa=function(Se,$e){return Dl(or(Se,$e,Ds),Se+"")},_s=function(Se,$e,Je){if(!$p(Je))return!1;var Re=typeof $e;return!!(Re=="number"?Rm(Je)&&af($e,Je.length):Re=="string"&&$e in Je)&&ne(Je[$e],Se)},wl=function(Se){return Oa(function($e,Je){var Re=-1,ot=Je.length,Lt=ot>1?Je[ot-1]:void 0,nn=ot>2?Je[2]:void 0;for(Lt=Se.length>3&&typeof Lt=="function"?(ot--,Lt):void 0,nn&&_s(Je[0],Je[1],nn)&&(Lt=3>ot?void 0:Lt,ot=1),$e=Object($e);++Re":".","?":"/","|":"\\"},Kn={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},Mi=1;20>Mi;++Mi)Lt[111+Mi]="f"+Mi;for(Mi=0;9>=Mi;++Mi)Lt[Mi+96]=""+Mi;Sl.prototype.bind=function(ql,il,Va){var pu=this;return pu._bindMultiple.call(pu,ql=ql instanceof Array?ql:[ql],il,Va),pu},Sl.prototype.unbind=function(ql,il){return this.bind.call(this,ql,function(){},il)},Sl.prototype.trigger=function(ql,il){var Va=this;return Va._directMap[ql+":"+il]&&Va._directMap[ql+":"+il]({},ql),Va},Sl.prototype.reset=function(){var ql=this;return ql._callbacks={},ql._directMap={},ql},Sl.prototype.stopCallback=function(ql,il){if((" "+il.className+" ").indexOf(" mousetrap ")>-1||Kl(il,this.target))return!1;if("composedPath"in ql&&typeof ql.composedPath=="function"){var Va=ql.composedPath()[0];Va!==ql.target&&(il=Va)}return il.tagName=="INPUT"||il.tagName=="SELECT"||il.tagName=="TEXTAREA"||il.isContentEditable},Sl.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},Sl.addKeycodes=function(ql){for(var il in ql)ql.hasOwnProperty(il)&&(Lt[il]=ql[il]);ot=null},Sl.init=function(){var ql=Sl(Je);for(var il in ql)il.charAt(0)!=="_"&&(Sl[il]=function(Va){return function(){return ql[Va].apply(ql,arguments)}}(il))},Sl.init(),$e.Mousetrap=Sl,Se.exports&&(Se.exports=Sl)}function Yo(ql,il,Va){ql.addEventListener?ql.addEventListener(il,Va,!1):ql.attachEvent("on"+il,Va)}function Lo(ql){if(ql.type=="keypress"){var il=String.fromCharCode(ql.which);return ql.shiftKey||(il=il.toLowerCase()),il}return Lt[ql.which]?Lt[ql.which]:nn[ql.which]?nn[ql.which]:String.fromCharCode(ql.which).toLowerCase()}function Bo(ql){return ql=="shift"||ql=="ctrl"||ql=="alt"||ql=="meta"}function $u(ql,il,Va){return Va||(Va=function(){if(!ot)for(var pu in ot={},Lt)pu>95&&112>pu||Lt.hasOwnProperty(pu)&&(ot[Lt[pu]]=pu);return ot}()[ql]?"keydown":"keypress"),Va=="keypress"&&il.length&&(Va="keydown"),Va}function gu(ql,il){var Va,pu,oc,cd=[];for(Va=function(Ao){return Ao==="+"?["+"]:(Ao=Ao.replace(/\+{2}/g,"+plus")).split("+")}(ql),oc=0;Va.length>oc;++oc)Kn[pu=Va[oc]]&&(pu=Kn[pu]),il&&il!="keypress"&&Fn[pu]&&(pu=Fn[pu],cd.push("shift")),Bo(pu)&&cd.push(pu);return{key:pu,modifiers:cd,action:il=$u(pu,cd,il)}}function Kl(ql,il){return ql!==null&&ql!==Je&&(ql===il||Kl(ql.parentNode,il))}function Sl(ql){var il=this;if(ql=ql||Je,!(il instanceof Sl))return new Sl(ql);il.target=ql,il._callbacks={},il._directMap={};var Va,pu={},oc=!1,cd=!1,Ao=!1;function Jh(Z){Z=Z||{};var ue,Pe=!1;for(ue in pu)Z[ue]?Pe=!0:pu[ue]=0;Pe||(Ao=!1)}function xc(Z,ue,Pe,Qe,wt,Wt){var Rn,ur,zr,hi=[],po=Pe.type;if(!il._callbacks[Z])return[];for(po=="keyup"&&Bo(Z)&&(ue=[Z]),Rn=0;il._callbacks[Z].length>Rn;++Rn)ur=il._callbacks[Z][Rn],(Qe||!ur.seq||pu[ur.seq]==ur.level)&&po==ur.action&&(po=="keypress"&&!Pe.metaKey&&!Pe.ctrlKey||(zr=ur.modifiers,ue.sort().join(",")===zr.sort().join(",")))&&((!Qe&&ur.combo==wt||Qe&&ur.seq==Qe&&ur.level==Wt)&&il._callbacks[Z].splice(Rn,1),hi.push(ur));return hi}function fh(Z,ue,Pe,Qe){il.stopCallback(ue,ue.target||ue.srcElement,Pe,Qe)||Z(ue,Pe)===!1&&(function(wt){wt.preventDefault?wt.preventDefault():wt.returnValue=!1}(ue),function(wt){wt.stopPropagation?wt.stopPropagation():wt.cancelBubble=!0}(ue))}function Gd(Z){typeof Z.which!="number"&&(Z.which=Z.keyCode);var ue=Lo(Z);ue&&(Z.type!="keyup"||oc!==ue?il.handleKey(ue,function(Pe){var Qe=[];return Pe.shiftKey&&Qe.push("shift"),Pe.altKey&&Qe.push("alt"),Pe.ctrlKey&&Qe.push("ctrl"),Pe.metaKey&&Qe.push("meta"),Qe}(Z),Z):oc=!1)}function _(Z,ue,Pe,Qe){function wt(zr){return function(){Ao=zr,++pu[Z],clearTimeout(Va),Va=setTimeout(Jh,1e3)}}function Wt(zr){fh(Pe,zr,Z),Qe!=="keyup"&&(oc=Lo(zr)),setTimeout(Jh,10)}pu[Z]=0;for(var Rn=0;ue.length>Rn;++Rn){var ur=Rn+1===ue.length?Wt:wt(Qe||gu(ue[Rn+1]).action);R(ue[Rn],ur,Qe,Z,Rn)}}function R(Z,ue,Pe,Qe,wt){il._directMap[Z+":"+Pe]=ue;var Wt,Rn=(Z=Z.replace(/\s+/g," ")).split(" ");Rn.length>1?_(Z,Rn,ue,Pe):(Wt=gu(Z,Pe),il._callbacks[Wt.key]=il._callbacks[Wt.key]||[],xc(Wt.key,Wt.modifiers,{type:Wt.action},Qe,Z,wt),il._callbacks[Wt.key][Qe?"unshift":"push"]({callback:ue,modifiers:Wt.modifiers,action:Wt.action,seq:Qe,level:wt,combo:Z}))}il._handleKey=function(Z,ue,Pe){var Qe,wt=xc(Z,ue,Pe),Wt={},Rn=0,ur=!1;for(Qe=0;wt.length>Qe;++Qe)wt[Qe].seq&&(Rn=Math.max(Rn,wt[Qe].level));for(Qe=0;wt.length>Qe;++Qe)if(wt[Qe].seq){if(wt[Qe].level!=Rn)continue;ur=!0,Wt[wt[Qe].seq]=1,fh(wt[Qe].callback,Pe,wt[Qe].combo,wt[Qe].seq)}else ur||fh(wt[Qe].callback,Pe,wt[Qe].combo);var zr=Pe.type=="keypress"&&cd;Pe.type!=Ao||Bo(Z)||zr||Jh(Wt),cd=ur&&Pe.type=="keydown"},il._bindMultiple=function(Z,ue,Pe){for(var Qe=0;Z.length>Qe;++Qe)R(Z[Qe],ue,Pe)},Yo(ql,"keypress",Gd),Yo(ql,"keydown",Gd),Yo(ql,"keyup",Gd)}})(typeof window!="undefined"?window:null,typeof window!="undefined"?document:null)}),$l,su=function(Se){return Se&&Se.length?Se[0]:void 0},tu=($l=1,function(Se){return"".concat(Se,"-").concat($l++)}),Gs=function(Se,$e){var Je,Re;return!(!Se||!$e||((Je=Se.properties)===null||Je===void 0?void 0:Je.id)!==((Re=$e.properties)===null||Re===void 0?void 0:Re.id))},Kc=function(Se){var $e=Se.target,Je=Se.targetHandler,Re=Se.otherHandler;return Se.data.map(function(ot,Lt){var nn,Fn=Gs(ot,$e)?Je:Re;return(nn=Fn==null?void 0:Fn(ot,Lt))!==null&&nn!==void 0?nn:ot})},Le=function(){return{id:tu("point"),isHover:!1,isActive:!1,isDrag:!1,createTime:Date.now()}},Oe=function(){return{id:tu("line"),isHover:!1,isActive:!1,isDrag:!1,isDraw:!1,createTime:Date.now()}},et=function(){return{id:tu("polygon"),isHover:!1,isActive:!1,isDrag:!1,isDraw:!1,createTime:Date.now()}},hn=function(Se){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Nl(Se,lt(lt({},Le()),$e))},Lr=function(Se){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return{type:"Feature",properties:lt(lt({},Oe()),{},{nodes:Se},$e),geometry:{type:"LineString",coordinates:Ki(Ji(Se))}}},Cn=function(Se){return zi(Se,{id:tu("dashLine")})},ei=function(Se){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return{type:"Feature",properties:lt(lt({},et()),{},{nodes:Se},$e),geometry:{type:"Polygon",coordinates:[Ki(Ji([].concat(no(Se),[su(Se)])))]}}},Li=function(Se){return function($e,Je,Re){Re===void 0&&(Re={});for(var ot=Ya($e).coordinates,Lt=0,nn=0;ot.length>nn&&(Lt>Je||nn!==ot.length-1);nn++){if(Lt>=Je){var Fn=Je-Lt;if(Fn){var Kn=qd(ot[nn],ot[nn-1])-180;return wd(ot[nn],Fn,Kn,Re)}return Nl(ot[nn])}Lt+=Ja(ot[nn],ot[nn+1],Re)}return Nl(ot[ot.length-1])}(Se,Rp(Se,{units:"meters"})/2,{units:"meters"})},ps=function(Se,$e){var Je=$e.format,Re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ot=[];if($e.showTotalDistance){var Lt=Li(Se),nn=Rp(Se,{units:"meters"});Lt.properties=lt({id:tu("text"),isActive:!1,meters:nn,text:Je(nn),type:"totalDistance"},Re),ot.push(Lt)}else for(var Fn=Se.geometry.coordinates,Kn=0;Fn.length-1>Kn;Kn++){var Mi=Nl(Fn[Kn]),Yo=Nl(Fn[Kn+1]),Lo=Ja(Mi,Yo,{units:"meters"}),Bo=Ba(Ji([Mi,Yo]));Bo.properties=lt({id:tu("text"),isActive:!1,meters:Lo,text:Je(Lo),type:"distance"},Re),ot.push(Bo)}return ot},xa=function(Se,$e){var Je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Re=$e.format,ot=Jp(Se);return zl(Se,{properties:lt({meters:ot,text:Re(ot),type:"area",isActive:!1},Je)})},Sa=function(Se){var $e,Je,Re=Se.getContainer();return($e=(Je=Re==null?void 0:Re.querySelector(".l7-marker-container"))!==null&&Je!==void 0?Je:Re==null?void 0:Re.querySelector(".amap-maps"))!==null&&$e!==void 0?$e:null},_l=function(Se){return Se.lngLat||Se.lnglat},Ql=function(Se){var $e=_l(Se);return[$e.lng,$e.lat]},Ju=function(Se){return[Se.lng,Se.lat]},ws=function(Se){for(var $e=Number.MAX_SAFE_INTEGER,Je=0,Re=Se.length,ot=0;Re>ot;ot++)$e>Se[ot]&&($e=Se[ot],Je=ot);return Je},Ha=function(Se,$e){var Je=[],Re=[];return Se.forEach(function(ot){Ai(ot,$e)?Re.length&&(Je.push(Re),Re=[]):Re.push(ot)}),Re.length&&Je.push(Re),Je},gr=function(Se,$e,Je){var Re=[],ot=[],Lt=[];return Re=Se==="allDrawData"?Pa.instances.map(function(nn){return nn.getData()}).flat():Se==="drawData"?$e.getData():Se instanceof Function?Se(Je):Se,Re.length&&(ot=Re.map(function(nn){var Fn,Kn=(Fn=nn.properties)!==null&&Fn!==void 0?Fn:{},Mi=Kn.nodes,Yo=Mi===void 0?[]:Mi,Lo=Kn.isActive;return Lo!==void 0&&Lo?Yo.filter(function(Bo){return!Ai(Bo.geometry.coordinates,Je)}):Yo}).flat().filter(function(nn){return nn}),ot.length||(ot=Ki(Ji(Re)).map(function(nn){return Nl(nn)})),Lt=Re.map(function(nn){var Fn,Kn,Mi=(Fn=nn.properties)===null||Fn===void 0?void 0:Fn.line;return!((Kn=nn.properties)===null||Kn===void 0)&&Kn.isActive&&Mi?Ha(Mi.properties.nodes.map(function(Yo){return Yo.geometry.coordinates}),Je).filter(function(Yo){return Yo.length>1}).map(function(Yo){return zi(Yo)}):[Mi]}).flat().filter(function(nn){return nn}),Lt.length||Re.forEach(function(nn){var Fn=qa(nn);if(/linestring/i.test(Fn)&&Lt.push(nn),/polygon/i.test(Fn)){var Kn,Mi,Yo=tp(nn);return(Kn=Lt).push.apply(Kn,no((Mi=Yo==null?void 0:Yo.features)!==null&&Mi!==void 0?Mi:[Yo]))}})),{points:ot,lines:Lt}},Ka=function(Se,$e,Je,Re){var ot=Je.pointAdsorbPixel,Lt=pa(Se,2),nn=Re.lngLatToPixel([Lt[0],Lt[1]]),Fn=nn.x,Kn=nn.y,Mi=$e.map(function(Lo){var Bo=pa(Lo.geometry.coordinates,2),$u=Re.lngLatToPixel([Bo[0],Bo[1]]),gu=$u.y;return Math.pow(Fn-$u.x,2)+Math.pow(Kn-gu,2)}),Yo=ws(Mi);return Math.pow(Mi[Yo],.5)>ot?null:$e[Yo].geometry.coordinates},Ca=function(Se,$e,Je,Re){var ot=Je.lineAdsorbPixel,Lt=pa(Se,2),nn=Re.lngLatToPixel([Lt[0],Lt[1]]),Fn=nn.x,Kn=nn.y,Mi=$e.filter(function(Bo){return Ki(Bo).length>1}).map(function(Bo){return function($u,gu,Kl){Kl===void 0&&(Kl={});var Sl=Nl([1/0,1/0],{dist:1/0}),ql=0;return ns($u,function(il){for(var Va=Xs(il),pu=0;Va.length-1>pu;pu++){var oc=Nl(Va[pu]);oc.properties.dist=Ja(gu,oc,Kl);var cd=Nl(Va[pu+1]);cd.properties.dist=Ja(gu,cd,Kl);var Ao=Ja(oc,cd,Kl),Jh=Math.max(oc.properties.dist,cd.properties.dist),xc=qd(oc,cd),fh=wd(gu,Jh,xc+90,Kl),Gd=wd(gu,Jh,xc-90,Kl),_=Qu(zi([fh.geometry.coordinates,Gd.geometry.coordinates]),zi([oc.geometry.coordinates,cd.geometry.coordinates])),R=null;_.features.length>0&&((R=_.features[0]).properties.dist=Ja(gu,R,Kl),R.properties.location=ql+Ja(oc,R,Kl)),Sl.properties.dist>oc.properties.dist&&((Sl=oc).properties.index=pu,Sl.properties.location=ql),Sl.properties.dist>cd.properties.dist&&((Sl=cd).properties.index=pu+1,Sl.properties.location=ql+Ao),R&&Sl.properties.dist>R.properties.dist&&((Sl=R).properties.index=pu),ql+=Ao}}),Sl}(Bo,Se)});if(!Mi.length)return null;var Yo=Mi.map(function(Bo){var $u=pa(Bo.geometry.coordinates,2),gu=Re.lngLatToPixel([$u[0],$u[1]]),Kl=gu.y;return Math.pow(Fn-gu.x,2)+Math.pow(Kn-Kl,2)}),Lo=ws(Yo);return Math.pow(Yo[Lo],.5)>ot?null:Mi[Lo].geometry.coordinates},Du=function(Se,$e){var Je=pa($e,2),Re=Je[0],ot=Je[1];Se.lngLat&&(Se.lngLat={lng:Re,lat:ot}),Se.lnglat&&(Se.lnglat={lng:Re,lat:ot})},jc=function(){function Se($e,Je){Et(this,Se),this.container=void 0,this.cursor=null,this.options=void 0,this.container=Sa($e),this.options=Je}return jn(Se,[{key:"setCursor",value:function($e){$e!==this.cursor&&this.container&&(this.container.style.cursor=$e?this.options[$e]:"",this.cursor=$e)}},{key:"destroy",value:function(){this.setCursor(null)}}]),Se}();function Qo(Se,$e){$e===void 0&&($e={});var Je=$e.insertAt;if(Se&&typeof document!="undefined"){var Re=document.head||document.getElementsByTagName("head")[0],ot=document.createElement("style");ot.type="text/css",Je==="top"&&Re.firstChild?Re.insertBefore(ot,Re.firstChild):Re.appendChild(ot),ot.styleSheet?ot.styleSheet.cssText=Se:ot.appendChild(document.createTextNode(Se))}}Qo('.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}'),Qo(".tippy-box[data-theme~=light]{color:#26323d;box-shadow:0 0 20px 4px rgba(154,161,177,.15),0 4px 80px -8px rgba(36,40,47,.25),0 4px 4px -2px rgba(91,94,105,.15);background-color:#fff}.tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff}.tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff}.tippy-box[data-theme~=light]>.tippy-backdrop{background-color:#fff}.tippy-box[data-theme~=light]>.tippy-svg-arrow{fill:#fff}");var Do=function(){function Se($e,Je){var Re=this;Et(this,Se),this.content="",this.tippy=void 0,this.scene=void 0,this.isMouseInner=!1,this.onMouseMove=function(){Re.isMouseInner=!0,Re.checkTippyShow()},this.onMouseOut=function(){Re.isMouseInner=!1,Re.checkTippyShow()},this.setContent=D(function(ot){Re.content=ot!=null?ot:"",Re.tippy.setContent(ot!=null?ot:""),Re.checkTippyShow()},16,{maxWait:16}),this.tippy=Fr(Sa($e),lt(lt({},dt),Je)),this.tippy.hide(),this.scene=$e,$e.on(y.SceneEvent.Mousemove,this.onMouseMove),$e.on(y.SceneEvent.Mouseout,this.onMouseOut)}return jn(Se,[{key:"getContent",value:function(){return this.content}},{key:"checkTippyShow",value:function(){this.content&&this.isMouseInner?this.tippy.show():this.tippy.hide()}},{key:"destroy",value:function(){this.scene.off(y.SceneEvent.Mousemove,this.onMouseMove),this.scene.off(y.SceneEvent.Mouseout,this.onMouseOut),this.tippy.destroy()}}]),Se}(),As=function(){function Se($e){var Je=$e.config;Et(this,Se),this.historyList=[],this.historyIndex=0,this.config=void 0,this.config=Je}return jn(Se,[{key:"save",value:function($e){if(this.config){var Je=this.config.maxSize;this.historyIndex&&(this.historyList=this.historyList.slice(this.historyIndex),this.historyIndex=0),Je>this.historyList.length||this.historyList.pop();var Re=hs($e);return this.historyList.unshift(Re),Re}}},{key:"revert",value:function(){if(this.historyList.length&&this.historyList.length-1>this.historyIndex){var $e=this.historyList[++this.historyIndex];return $e?hs($e):void 0}}},{key:"redo",value:function(){if(this.historyList.length&&this.historyIndex>0){var $e=this.historyList[--this.historyIndex];return $e?hs($e):void 0}}}]),Se}(),wa=function(Se){Ti(Je,Se);var $e=ks(Je);function Je(Re){var ot,Lt=Re.data,nn=Re.render,Fn=Re.history,Kn=Re.scene;return Et(this,Je),(ot=$e.call(this)).scene=void 0,ot.render=void 0,ot.data=hs(z),ot.timeout=null,ot.diffData={},ot.history=void 0,ot.scene=Kn,ot.render=nn,Fn&&(ot.history=new As({config:Fn})),Lt&&ot.setData(Lt),ot}return jn(Je,[{key:"saveHistory",value:function(){var Re;return(Re=this.history)===null||Re===void 0?void 0:Re.save(this.data)}},{key:"revertHistory",value:function(){var Re,ot=(Re=this.history)===null||Re===void 0?void 0:Re.revert();if(ot)return this.setData(ot),ot}},{key:"redoHistory",value:function(){var Re,ot=(Re=this.history)===null||Re===void 0?void 0:Re.redo();if(ot)return this.setData(ot),ot}},{key:"setData",value:function(Re){var ot=this;return Object.keys(Re).length&&(this.data=lt(lt({},this.data),Re),this.diffData=lt(lt({},this.diffData),Re),this.timeout||(this.timeout=requestAnimationFrame(function(){return ot.updateDiffData()})),this.emit(y.SourceEvent.Change,{data:this.data})),this.data}},{key:"getData",value:function(){return this.data}},{key:"getRenderData",value:function(Re){return this.data[Re]}},{key:"setRenderData",value:function(Re,ot){var Lt=typeof ot=="function"?ot(this.getRenderData(Re)):ot;return this.setData(xr({},Re,Lt)),this.emit(y.SourceEvent.Change,this.data),Lt}},{key:"updateDiffData",value:function(){var Re=this,ot=Object.entries(this.diffData);ot.length&&(ot.forEach(function(Lt){var nn,Fn=pa(Lt,2),Kn=Fn[0],Mi=Fn[1];Array.isArray(Mi)&&((nn=Re.getRender(Kn))===null||nn===void 0||nn.setData(Mi))}),this.emit(y.SourceEvent.Update,this.data,this.diffData),this.diffData={},this.timeout=null,requestAnimationFrame(function(){Re.scene.render()}))}},{key:"getRender",value:function(Re){return this.render[Re]}},{key:"clear",value:function(){this.setData(Ls(Object.keys(this.render).map(function(Re){return[Re,[]]})))}}]),Je}(Uf),Pa=function(Se){Ti(Je,Se);var $e=ks(Je);function Je(Re,ot){var Lt;Et(this,Je),(Lt=$e.call(this)).scene=void 0,Lt.source=void 0,Lt.render=void 0,Lt.cursor=void 0,Lt.options=void 0,Lt.enabled=!1,Lt.allowCreate=!1,Lt.sceneRender=void 0,Lt.mouseLngLat={lng:0,lat:0},Lt.popup=void 0,Lt.addCount=0,Lt.saveMouseLngLat=D(function(Mi){Lt.mouseLngLat=_l(Mi)},100,{maxWait:100}),Lt.saveHistory=D(function(){Lt.options.history&&Lt.source.saveHistory()},100),Lt.bindThis(),Lt.scene=Re,Lt.sceneRender=new qt(Re),Lt.options=nl({},Lt.getDefaultOptions(ot),ot),Lt.render=Lt.initRender(),Lt.source=new wa({render:Lt.render,history:Lt.options.history||void 0,scene:Re}),Lt.cursor=new jc(Re,Lt.options.cursor);var nn=Lt.options,Fn=nn.initialData,Kn=nn.popup;return Fn&&Lt.setData(Fn),Kn&&(Lt.popup=new Do(Re,Kn instanceof Object?Kn:{})),Lt.saveHistory(),Lt.bindCommonEvent(),Lt.emit(y.DrawEvent.Init,us(Lt)),Lt.bindEnableEvent(),Je.instances.push(us(Lt)),Lt}return jn(Je,[{key:"addable",get:function(){var Re=this.getData(),ot=this.options,Lt=ot.multiple,nn=ot.maxCount,Fn=Re.find(function(Kn){return Kn.properties.isDraw});return!(!this.enabled||!this.allowCreate)&&(!!(Lt&&0>=nn||Fn)||!(!Lt&&this.addCount>=1)&&(0>=nn||nn>Re.length))}},{key:"getOptions",value:function(){return this.options}},{key:"getEditItem",value:function(){return this.editItem}},{key:"getDragItem",value:function(){return this.dragItem}},{key:"setHelper",value:function(Re){var ot,Lt,nn=this.options.helper;if(nn){var Fn=(ot=Re in nn?nn[Re]:Re)!==null&&ot!==void 0?ot:null;(Lt=this.popup)===null||Lt===void 0||Lt.setContent(Fn)}}},{key:"isEnable",value:function(){return this.enabled}},{key:"bindThis",value:function(){this.initRender=this.initRender.bind(this),this.getData=this.getData.bind(this),this.setData=this.setData.bind(this),this.emitChangeEvent=this.emitChangeEvent.bind(this),this.saveHistory=this.saveHistory.bind(this),this.onSceneMouseMove=this.onSceneMouseMove.bind(this),this.revertHistory=this.revertHistory.bind(this),this.redoHistory=this.redoHistory.bind(this),this.removeActiveFeature=this.removeActiveFeature.bind(this),this.bindCommonEvent=this.bindCommonEvent.bind(this),this.bindEnableEvent=this.bindEnableEvent.bind(this),this.unbindEnableEvent=this.unbindEnableEvent.bind(this),this.setActiveFeature=this.setActiveFeature.bind(this)}},{key:"bindCommonEvent",value:function(){var Re=this;this.on(y.DrawEvent.Add,this.emitChangeEvent),this.on(y.DrawEvent.Add,function(){Re.addCount++}),this.on(y.DrawEvent.Edit,this.emitChangeEvent),this.on(y.DrawEvent.Remove,this.emitChangeEvent),this.on(y.DrawEvent.Clear,this.emitChangeEvent),this.on(y.DrawEvent.AddNode,this.saveHistory),this.on(y.DrawEvent.RemoveNode,this.emitChangeEvent),this.bindEmitSelectEvent(!0)}},{key:"bindEmitSelectEvent",value:function(){var Re=this,ot=arguments.length>0&&arguments[0]!==void 0&&arguments[0],Lt=null,nn=function(){var Fn,Kn,Mi,Yo=Re.getData().find(function(Lo){var Bo;return(Bo=Lo.properties)===null||Bo===void 0?void 0:Bo.isActive})||null;((Fn=Lt)===null||Fn===void 0||(Kn=Fn.properties)===null||Kn===void 0?void 0:Kn.id)!==(Yo==null||(Mi=Yo.properties)===null||Mi===void 0?void 0:Mi.id)&&(Lt=Yo,Re.emit(y.DrawEvent.Select,Yo))};this.source.on(y.SourceEvent.Change,nn),ot&&nn()}},{key:"bindEnableEvent",value:function(){this.unbindKeyboardEvent(),this.scene.setMapStatus({doubleClickZoom:!1}),this.scene.on(y.SceneEvent.Mousemove,this.saveMouseLngLat),this.bindKeyboardEvent()}},{key:"unbindEnableEvent",value:function(){this.scene.setMapStatus({doubleClickZoom:!0}),this.scene.off(y.SceneEvent.Mousemove,this.saveMouseLngLat),this.unbindKeyboardEvent()}},{key:"bindKeyboardEvent",value:function(){var Re=this,ot=this.options.keyboard||{},Lt=ot.revert,nn=ot.redo,Fn=ot.remove;Fn&&qu.bind(Fn,function(){Re.removeActiveFeature()}),this.options.history&&(Lt&&qu.bind(Lt,this.revertHistory),nn&&qu.bind(nn,this.redoHistory))}},{key:"unbindKeyboardEvent",value:function(){var Re=this.options.keyboard||{},ot=Re.revert,Lt=Re.redo,nn=Re.remove;nn&&qu.unbind(nn),this.options.history&&(ot&&qu.unbind(ot),Lt&&qu.unbind(Lt))}},{key:"emitChangeEvent",value:function(){this.emit(y.DrawEvent.Change,this.getData()),this.saveHistory()}},{key:"revertHistory",value:function(){this.enabled&&this.options.history&&this.source.revertHistory()&&(this.correctDrawItem(),this.emit(y.DrawEvent.Change,this.getData()))}},{key:"redoHistory",value:function(){this.enabled&&this.options.history&&this.source.redoHistory()&&(this.correctDrawItem(),this.emit(y.DrawEvent.Change,this.getData()))}},{key:"getRenderLayers",value:function(){return Ls(va(this.render).map(function(Re){var ot=pa(Re,2);return[ot[0],ot[1].getLayers()]}))}},{key:"getTargetFeature",value:function(Re){var ot,Lt,nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getData(),Fn=null;return Re&&(Fn=(ot=nn.find(function(Kn){var Mi;return Kn.properties.id===(typeof Re=="string"?Re:(Mi=Re.properties)===null||Mi===void 0?void 0:Mi.id)}))!==null&&ot!==void 0?ot:null,!Fn&&Re instanceof Object&&(Fn=(Lt=nn.find(function(Kn){return Ai(Re.geometry,Kn.geometry)}))!==null&&Lt!==void 0?Lt:null)),Fn}},{key:"removeActiveFeature",value:function(){var Re=this.getData().find(function(ot){var Lt=ot.properties;return Lt.isActive||Lt.isDraw});return Re&&this.removeFeature(Re),Re}},{key:"removeFeature",value:function(Re){var ot=this.getData(),Lt=this.getTargetFeature(Re);Lt&&(this.setData(ot.filter(function(nn){return!Gs(Lt,nn)})),this.emit(y.DrawEvent.Remove,Re,this.getData()))}},{key:"correctDrawItem",value:function(){this.getData().find(function(Re){return Re.properties.isDraw})&&this.onSceneMouseMove({type:"mousemove",lnglat:this.mouseLngLat,lngLat:this.mouseLngLat})}},{key:"initRender",value:function(){var Re,ot={},Lt=function(Fn,Kn){var Mi=typeof Symbol!="undefined"&&Fn[Symbol.iterator]||Fn["@@iterator"];if(!Mi){if(Array.isArray(Fn)||(Mi=Cs(Fn))||Kn&&Fn&&typeof Fn.length=="number"){Mi&&(Fn=Mi);var Yo=0,Lo=function(){};return{s:Lo,n:function(){return Fn.length>Yo?{done:!1,value:Fn[Yo++]}:{done:!0}},e:function(Kl){throw Kl},f:Lo}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Bo,$u=!0,gu=!1;return{s:function(){Mi=Mi.call(Fn)},n:function(){var Kl=Mi.next();return $u=Kl.done,Kl},e:function(Kl){gu=!0,Bo=Kl},f:function(){try{$u||Mi.return==null||Mi.return()}finally{if(gu)throw Bo}}}}(this.getRenderTypes());try{for(Lt.s();!(Re=Lt.n()).done;){var nn=Re.value;ot[nn]=new di[nn](this.scene,{style:this.options.style[nn]})}}catch(Fn){Lt.e(Fn)}finally{Lt.f()}return ot}},{key:"getCommonOptions",value:function(Re){return{initialData:[],autoActive:!0,cursor:hs(b),editable:!0,style:hs(X),multiple:!0,history:hs(Nn),keyboard:hs(tt),popup:!0,helper:{},maxCount:-1}}},{key:"setCursor",value:function(Re){this.cursor.setCursor(Re)}},{key:"resetCursor",value:function(){this.setCursor(this.addable?"draw":null)}},{key:"enable",value:function(){var Re=this;this.allowCreate=0>=arguments.length||arguments[0]===void 0||arguments[0],this.addCount=0,this.enabled=!0,this.bindEnableEvent(),this.resetCursor(),this.setHelper(this.addable?"draw":null),setTimeout(function(){Re.emit(y.DrawEvent.Enable,Re)},0)}},{key:"disable",value:function(){var Re=this;this.resetFeatures(),this.enabled=!1,this.setCursor(null),this.unbindEnableEvent(),this.addCount=0,this.setHelper(null),setTimeout(function(){Re.emit(y.DrawEvent.Disable,Re)},0)}},{key:"clear",value:function(){var Re=arguments.length>0&&arguments[0]!==void 0&&arguments[0];this.source.clear(),this.emit(y.DrawEvent.Clear,this),Re&&this.disable()}},{key:"show",value:function(){return Object.values(this.render).forEach(function(Re){Re.show()})}},{key:"hide",value:function(){return Object.values(this.render).forEach(function(Re){Re.hide()})}},{key:"destroy",value:function(){var Re,ot=this;Object.values(this.render).forEach(function(nn){nn.destroy()}),Object.values(y.RenderEvent).forEach(function(nn){Object.values(ot.render).forEach(function(Fn){Fn.removeAllListeners(nn)}),ot.sceneRender.removeAllListeners(nn)}),setTimeout(function(){Object.values(y.DrawEvent).forEach(function(nn){ot.removeAllListeners(nn)})},0),(Re=this.popup)===null||Re===void 0||Re.destroy(),this.cursor.destroy(),this.emit(y.DrawEvent.Destroy,this);var Lt=Je.instances.indexOf(this);Lt>-1&&Je.instances.splice(Lt,1)}}]),Je}(Uf);Pa.instances=[];var Fs=function(Se){var $e=Se==null?0:Se.length;return $e?Se[$e-1]:void 0},gs=function(Se){Ti(Je,Se);var $e=ks(Je);function Je(){return Et(this,Je),$e.apply(this,arguments)}return jn(Je,[{key:"pointRender",get:function(){return this.render.point}},{key:"dragPoint",get:function(){return this.getPointData().find(function(Re){return Re.properties.isDrag})}},{key:"editPoint",get:function(){return this.getPointData().find(function(Re){return Re.properties.isActive})}},{key:"hoverPoint",get:function(){return this.getPointData().find(function(Re){return Re.properties.isHover})}},{key:"getDragPoint",value:function(){return this.dragPoint}},{key:"getEditPoint",value:function(){return this.editPoint}},{key:"getPointData",value:function(){return this.source.getRenderData("point")}},{key:"setPointData",value:function(Re){return this.source.setRenderData("point",Re)}},{key:"bindPointRenderEvent",value:function(){var Re,ot,Lt,nn,Fn,Kn;(Re=this.pointRender)===null||Re===void 0||Re.on(y.RenderEvent.UnClick,this.onPointCreate.bind(this)),(ot=this.pointRender)===null||ot===void 0||ot.on(y.RenderEvent.Mousemove,this.onPointMouseMove.bind(this)),(Lt=this.pointRender)===null||Lt===void 0||Lt.on(y.RenderEvent.Mouseout,this.onPointMouseOut.bind(this)),(nn=this.pointRender)===null||nn===void 0||nn.on(y.RenderEvent.Dragstart,this.onPointDragStart.bind(this)),(Fn=this.pointRender)===null||Fn===void 0||Fn.on(y.RenderEvent.Dragging,this.onPointDragging.bind(this)),(Kn=this.pointRender)===null||Kn===void 0||Kn.on(y.RenderEvent.Dragend,this.onPointDragEnd.bind(this))}},{key:"handleCreatePoint",value:function(Re){var ot=this.options,Lt=ot.autoActive,nn=ot.editable,Fn=hn(Re);return this.setPointData(function(Kn){return Kc({target:Fn,data:[].concat(no(Kn),[Fn]),targetHandler:function(Mi){Mi.properties=lt(lt({},Mi.properties),{},{isHover:nn,isActive:Lt&&nn})},otherHandler:function(Mi){Mi.properties=lt(lt({},Mi.properties),{},{isHover:!1,isActive:!1,isDrag:!1})}})}),Fn}},{key:"handlePointHover",value:function(Re){return this.setCursor("pointHover"),Gs(Re,this.hoverPoint)||this.setPointData(function(ot){return Kc({target:Re,data:ot,targetHandler:function(Lt){Lt.properties.isHover=!0},otherHandler:function(Lt){Lt.properties.isHover=!1}})}),Re}},{key:"handlePointUnHover",value:function(Re){return this.resetCursor(),this.setPointData(function(ot){return ot.map(function(Lt){return Lt.properties.isHover=!1,Lt})}),Re}},{key:"handlePointDragStart",value:function(Re){return this.setPointData(function(ot){return Kc({target:Re,data:ot,targetHandler:function(Lt){Lt.properties=lt(lt({},Lt.properties),{},{isDrag:!0,isActive:!0})},otherHandler:function(Lt){Lt.properties=lt(lt({},Lt.properties),{},{isDrag:!1,isActive:!1})}})}),this.scene.setMapStatus({dragEnable:!1}),this.setCursor("pointDrag"),Re}},{key:"handlePointDragging",value:function(Re,ot){return this.setPointData(function(Lt){return Kc({target:Re,data:Lt,targetHandler:function(nn){nn.geometry.coordinates=Ju(ot)}})}),this.scene.setMapStatus({dragEnable:!1}),this.setCursor("pointDrag"),Re}},{key:"handlePointDragEnd",value:function(Re){return this.setPointData(function(ot){return Kc({target:Re,data:ot,targetHandler:function(Lt){Lt.properties.isDrag=!1}})}),this.scene.setMapStatus({dragEnable:!0}),this.setCursor("pointHover"),Re}},{key:"onPointCreate",value:function(Re){return this.handleCreatePoint(Ju(_l(Re)))}},{key:"onPointMouseMove",value:function(Re){return this.handlePointHover(Re.feature)}},{key:"onPointMouseOut",value:function(Re){return this.handlePointUnHover(Re.feature)}},{key:"onPointDragStart",value:function(Re){if(this.options.editable)return this.handlePointDragStart(Re.feature)}},{key:"onPointDragging",value:function(Re){var ot=this.dragPoint;if(this.options.editable&&ot)return this.handlePointDragging(ot,_l(Re))}},{key:"onPointDragEnd",value:function(Re){var ot=this.dragPoint;if(this.options.editable&&ot)return this.handlePointDragEnd(ot)}},{key:"enablePointRenderAction",value:function(){var Re,ot,Lt,nn,Fn=this.options.editable;this.enabled&&((ot=this.pointRender)===null||ot===void 0||ot.enableCreate()),(Re=this.pointRender)===null||Re===void 0||Re.enableClick(),Fn&&((Lt=this.pointRender)===null||Lt===void 0||Lt.enableHover(),(nn=this.pointRender)===null||nn===void 0||nn.enableDrag())}},{key:"disablePointRenderAction",value:function(){var Re,ot,Lt,nn;(Re=this.pointRender)===null||Re===void 0||Re.disableCreate(),(ot=this.pointRender)===null||ot===void 0||ot.disableHover(),(Lt=this.pointRender)===null||Lt===void 0||Lt.disableDrag(),(nn=this.pointRender)===null||nn===void 0||nn.disableClick()}}]),Je}(Pa),Xi=function(Se){Ti(Je,Se);var $e=ks(Je);function Je(){return Et(this,Je),$e.apply(this,arguments)}return jn(Je,[{key:"midPointRender",get:function(){return this.render.midPoint}},{key:"getCommonOptions",value:function(Re){return lt(lt({},Os($i(Je.prototype),"getCommonOptions",this).call(this,Re)),{},{showMidPoint:!0})}},{key:"bindMidPointRenderEvent",value:function(){var Re,ot,Lt;(Re=this.midPointRender)===null||Re===void 0||Re.on(y.RenderEvent.Click,this.onMidPointClick.bind(this)),(ot=this.midPointRender)===null||ot===void 0||ot.on(y.RenderEvent.Mousemove,this.onMidPointHover.bind(this)),(Lt=this.midPointRender)===null||Lt===void 0||Lt.on(y.RenderEvent.Mouseout,this.onMidPointUnHover.bind(this))}},{key:"getMidPointData",value:function(){return this.source.getRenderData("midPoint")}},{key:"setMidPointData",value:function(Re){return this.source.setRenderData("midPoint",Re)}},{key:"getMidPointsByLine",value:function(Re){var ot=Re.properties.nodes;if(!this.options.showMidPoint||2>ot.length)return[];for(var Lt=[],nn=0;ot.length-1>nn;nn++){var Fn,Kn,Mi,Yo,Lo=Ba(Ji([ot[nn],ot[nn+1]]),{properties:{id:tu("midPoint"),startId:(Fn=(Kn=ot[nn].properties)===null||Kn===void 0?void 0:Kn.id)!==null&&Fn!==void 0?Fn:"",endId:(Mi=(Yo=ot[nn+1].properties)===null||Yo===void 0?void 0:Yo.id)!==null&&Mi!==void 0?Mi:""}});Lt.push(Lo)}return Lt}},{key:"onMidPointHover",value:function(Re){this.setCursor("pointHover")}},{key:"onMidPointUnHover",value:function(Re){this.resetCursor()}},{key:"enableMidPointRenderAction",value:function(){var Re,ot;(Re=this.midPointRender)===null||Re===void 0||Re.enableClick(),(ot=this.midPointRender)===null||ot===void 0||ot.enableHover()}},{key:"disableMidPointRenderAction",value:function(){var Re,ot;(Re=this.midPointRender)===null||Re===void 0||Re.disableClick(),(ot=this.midPointRender)===null||ot===void 0||ot.disableHover()}}]),Je}(gs),sr={draw:"\u5355\u51FB\u7ED8\u5236\u70B9",pointHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u70B9\u4F4D\u7F6E",pointDrag:null},Rr={draw:"\u5355\u51FB\u7ED8\u5236\u9996\u4E2A\u8282\u70B9",pointHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u8282\u70B9\u4F4D\u7F6E",pointDrag:null,lineHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u7EBF\u4F4D\u7F6E",lineDrag:null,midPointHover:"\u5355\u51FB\u5728\u8BE5\u4F4D\u7F6E\u65B0\u589E\u8282\u70B9",drawFinish:"\u5355\u51FB\u7EE7\u7EED\u7ED8\u5236\uFF0C\u53CC\u51FB\u7ED3\u675F\u7ED8\u5236"},gi={draw:"\u5355\u51FB\u7ED8\u5236\u9996\u4E2A\u8282\u70B9",drawContinue:"\u5355\u51FB\u7EE7\u7EED\u7ED8\u5236",drawFinish:"\u5355\u51FB\u7EE7\u7EED\u7ED8\u5236\uFF0C\u53CC\u51FB\u7ED3\u675F\u7ED8\u5236",midPointHover:"\u5355\u51FB\u5728\u8BE5\u4F4D\u7F6E\u65B0\u589E\u8282\u70B9",pointHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u8282\u70B9\u4F4D\u7F6E",pointDrag:null,lineHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u9762\u4F4D\u7F6E",lineDrag:null,polygonHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u9762\u4F4D\u7F6E",polygonDrag:null},ls=lt(lt({},gi),{},{draw:"\u5355\u51FB\u7ED8\u5236\u9996\u4E2A\u8282\u70B9",drawFinish:"\u5355\u51FB\u7ED3\u675F\u7ED8\u5236"}),bs={draw:"\u62D6\u62FD\u5F00\u59CB\u7ED8\u5236",drawFinish:"\u677E\u5F00\u9F20\u6807\u7ED3\u675F\u7ED8\u5236"},Pl={lineHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u77E9\u5F62\u4F4D\u7F6E",polygonHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u77E9\u5F62\u4F4D\u7F6E"},Ys={lineHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u5706\u4F4D\u7F6E",polygonHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u5706\u4F4D\u7F6E"},vl=function(Se){Ti(Je,Se);var $e=ks(Je);function Je(){var Re;Et(this,Je);for(var ot=arguments.length,Lt=Array(ot),nn=0;ot>nn;nn++)Lt[nn]=arguments[nn];return(Re=$e.call.apply($e,[this].concat(Lt))).previousPosition=[0,0],Re}return jn(Je,[{key:"lineRender",get:function(){return this.render.line}},{key:"dragLine",get:function(){return this.getLineData().find(function(Re){return Re.properties.isDrag})}},{key:"drawLine",get:function(){return this.getLineData().find(function(Re){return Re.properties.isDraw})}},{key:"editLine",get:function(){return this.getLineData().find(function(Re){var ot=Re.properties;return!ot.isDraw&&ot.isActive})}},{key:"hoverLine",get:function(){return this.getLineData().find(function(Re){return Re.properties.isHover})}},{key:"getDragLine",value:function(){return this.dragLine}},{key:"getDrawLine",value:function(){return this.drawLine}},{key:"getEditLine",value:function(){return this.editLine}},{key:"getDefaultOptions",value:function(Re){var ot=lt(lt({},this.getCommonOptions(Re)),{},{showMidPoint:!0,distanceOptions:!1,helper:hs(Rr)});return Re.distanceOptions&&(ot.distanceOptions=lt(lt({},dn),ot.distanceOptions)),Re.adsorbOptions&&(ot.adsorbOptions=lt(lt({},vt),ot.adsorbOptions)),ot}},{key:"getAdsorbPosition",value:function(Re){var ot=this.options.adsorbOptions;if(typeof ot=="boolean")return Re;var Lt=this.scene,nn=ot.pointAdsorbPixel,Fn=ot.lineAdsorbPixel,Kn=null,Mi=gr(ot.data,this,Re),Yo=Mi.points,Lo=Mi.lines;return Yo.length&&nn>0&&(Kn=Ka(Re,Yo,ot,Lt)),!Kn&&Lo.length&&Fn>0&&(Kn=Ca(Re,Lo,ot,Lt)),Kn}},{key:"bindSceneEvent",value:function(){this.sceneRender.on(y.RenderEvent.Mousemove,this.onSceneMouseMove.bind(this))}},{key:"bindPointRenderEvent",value:function(){var Re;Os($i(Je.prototype),"bindPointRenderEvent",this).call(this),(Re=this.pointRender)===null||Re===void 0||Re.on(y.RenderEvent.Click,this.onPointClick.bind(this))}},{key:"bindLineRenderEvent",value:function(){var Re,ot,Lt,nn,Fn,Kn;(Re=this.lineRender)===null||Re===void 0||Re.on(y.RenderEvent.UnClick,this.onLineUnClick.bind(this)),(ot=this.lineRender)===null||ot===void 0||ot.on(y.RenderEvent.Mousemove,this.onLineMouseMove.bind(this)),(Lt=this.lineRender)===null||Lt===void 0||Lt.on(y.RenderEvent.Mouseout,this.onLineMouseOut.bind(this)),(nn=this.lineRender)===null||nn===void 0||nn.on(y.RenderEvent.Dragstart,this.onLineDragStart.bind(this)),(Fn=this.lineRender)===null||Fn===void 0||Fn.on(y.RenderEvent.Dragging,this.onLineDragging.bind(this)),(Kn=this.lineRender)===null||Kn===void 0||Kn.on(y.RenderEvent.Dragend,this.onLineDragEnd.bind(this))}},{key:"getDashLineDistanceTexts",value:function(Re,ot){var Lt=ot.showTotalDistance,nn=ot.format;return ot.showDashDistance?Re.map(function(Fn){return ps(Fn,{showTotalDistance:Lt,format:nn},{isActive:!0,type:"dash"})}).flat():[]}},{key:"getLineDistanceTexts",value:function(Re,ot){var Lt=ot.showTotalDistance,nn=ot.format,Fn=ot.showWhen,Kn=[];if(Fn.includes("active")){var Mi=Re.filter(function(Lo){return Lo.properties.isActive&&Lo.properties.nodes.length>1});Kn.push.apply(Kn,no(Mi.map(function(Lo){return ps(Lo,{showTotalDistance:Lt,format:nn},{isActive:!0})}).flat()))}if(Fn.includes("normal")){var Yo=Re.filter(function(Lo){return!Lo.properties.isActive&&Lo.properties.nodes.length>1});Kn.push.apply(Kn,no(Yo.map(function(Lo){return ps(Lo,{showTotalDistance:Lt,format:nn})}).flat()))}return Kn}},{key:"getDistanceTexts",value:function(){var Re=this.options.distanceOptions;if(!Re)return[];var ot=[],Lt=Re.showWhen,nn=Re.showDashDistance,Fn=Re.format,Kn=Re.showTotalDistance;return ot.push.apply(ot,no(this.getDashLineDistanceTexts(this.getDashLineData(),{showTotalDistance:!1,format:Fn,showDashDistance:nn})).concat(no(this.getLineDistanceTexts(this.getLineData(),{showTotalDistance:Kn,format:Fn,showWhen:Lt})))),ot}},{key:"getAllTexts",value:function(){return this.getDistanceTexts()}},{key:"handleCreateLine",value:function(Re){var ot=Lr([Re],{isActive:!0,isDraw:!0});return this.setLineData(function(Lt){return Kc({target:ot,data:[].concat(no(Lt),[ot]),otherHandler:function(nn){nn.properties.isActive=!1}})}),this.setPointData([Re]),this.setTextData(this.getAllTexts()),ot}},{key:"syncLineNodes",value:function(Re,ot){return Re.properties.nodes=ot,Re.geometry.coordinates=Ki(Ji(ot)),this.setLineData(function(Lt){return Lt.map(function(nn){return Gs(nn,Re)?Re:nn})}),Gs(this.editLine,Re)&&this.setMidPointData(this.getMidPointsByLine(Re)),this.setPointData(Re.properties.nodes),this.setTextData(this.getAllTexts()),Re}},{key:"setActiveLine",value:function(Re){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.setLineData(function(Lt){return Kc({target:Re,data:Lt,targetHandler:function(nn){nn.properties=lt(lt({},nn.properties),{},{isDraw:!1,isActive:!0,isDrag:!1,isHover:!1},ot)},otherHandler:function(nn){nn.properties=lt(lt({},nn.properties),{},{isDraw:!1,isActive:!1,isDrag:!1})}})}),this.setPointData(Re.properties.nodes.map(function(Lt){return Lt.properties=lt(lt({},Lt.properties),{},{isHover:!1,isActive:!1}),Lt})),this.setMidPointData(this.getMidPointsByLine(Re)),this.setDashLineData([]),this.setTextData(this.getAllTexts()),Re}},{key:"clearActiveLine",value:function(){this.source.setData({point:[],line:this.getLineData().map(function(Re){return Re.properties=lt(lt({},Re.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),Re}),midPoint:[],text:this.getAllTexts()})}},{key:"handleLineUnClick",value:function(Re){return this.clearActiveLine(),Re}},{key:"handleLineHover",value:function(Re){if(!this.drawLine)return this.setCursor("lineHover"),Gs(Re,this.hoverLine)||this.setLineData(function(ot){return Kc({target:Re,data:ot,targetHandler:function(Lt){Lt.properties.isHover=!0},otherHandler:function(Lt){Lt.properties.isHover=!1}})}),Re}},{key:"handleLineUnHover",value:function(Re){if(!this.drawLine)return this.resetCursor(),this.setLineData(function(ot){return ot.map(function(Lt){return Lt.properties.isHover=!1,Lt})}),Re}},{key:"handleLineDragStart",value:function(Re){return this.setActiveLine(Re,{isDrag:!0,isActive:!0}),this.scene.setMapStatus({dragEnable:!1}),this.setCursor("lineDrag"),Re}},{key:"handleLineDragging",value:function(Re,ot){var Lt=ot.lng,nn=ot.lat,Fn=Re.properties.nodes,Kn=pa(this.previousPosition,2),Mi=Kn[0],Yo=Kn[1];return Fn.forEach(function(Lo){var Bo=Lo.geometry.coordinates;Lo.geometry.coordinates=[Bo[0]+Lt-Mi,Bo[1]+nn-Yo]}),this.syncLineNodes(Re,Fn),this.setActiveLine(Re,{isDrag:!0}),this.setCursor("lineDrag"),this.previousPosition=[Lt,nn],Re}},{key:"handleLineDragEnd",value:function(Re){return Re.properties.isDrag=!1,this.setLineData(function(ot){return ot}),this.scene.setMapStatus({dragEnable:!0}),Re}},{key:"resetAdsorbLngLat",value:function(Re){if(this.options.adsorbOptions){var ot=this.getAdsorbPosition(Ju(_l(Re)));return ot&&Du(Re,ot),ot}}},{key:"onPointCreate",value:function(Re){if(!this.editLine){this.resetAdsorbLngLat(Re);var ot=Os($i(Je.prototype),"onPointCreate",this).call(this,Re),Lt=this.drawLine;if(ot)return Lt?(this.syncLineNodes(Lt,[].concat(no(Lt.properties.nodes),[ot])),this.setDashLineData([])):this.handleCreateLine(ot),ot}}},{key:"onPointDragStart",value:function(Re){if(this.editLine)return this.setHelper("pointDrag"),Os($i(Je.prototype),"onPointDragStart",this).call(this,Re)}},{key:"onPointDragging",value:function(Re){var ot=Os($i(Je.prototype),"onPointDragging",this).call(this,Re);if(ot){var Lt=this.resetAdsorbLngLat(Re);Lt&&(ot.geometry.coordinates=hs(Lt))}var nn=this.editLine;return nn&&ot&&(this.syncLineNodes(nn,nn.properties.nodes.map(function(Fn){return Gs(ot,Fn)?ot:Fn})),this.setActiveLine(nn)),ot}},{key:"onPointDragEnd",value:function(Re){if(this.editLine){var ot=Os($i(Je.prototype),"onPointDragEnd",this).call(this,Re);return this.setPointData(function(Lt){return Lt.map(function(nn){return nn.properties.isActive=!1,nn})}),this.setHelper("pointHover"),ot}}},{key:"onLineUnClick",value:function(Re){var ot=this.editLine;if(ot)return this.handleLineUnClick(ot)}},{key:"onLineMouseMove",value:function(Re){if(!this.drawLine)return this.dragLine||this.drawLine||!this.options.editable||this.setHelper("lineHover"),this.handleLineHover(Re.feature)}},{key:"onLineMouseOut",value:function(Re){if(!this.drawLine)return this.dragLine||this.drawLine||this.setHelper(this.addable?"draw":null),this.handleLineUnHover(Re.feature)}},{key:"onLineDragStart",value:function(Re){if(this.options.editable&&!this.drawLine)return this.previousPosition=Ql(Re),this.setHelper("lineDrag"),this.handleLineDragStart(Re.feature)}},{key:"onLineDragging",value:function(Re){var ot=this.dragLine;if(ot)return this.handleLineDragging(ot,_l(Re))}},{key:"onLineDragEnd",value:function(Re){var ot=this.dragLine;if(ot)return this.setHelper("lineHover"),this.handleLineDragEnd(ot)}},{key:"onPointMouseMove",value:function(Re){var ot=Os($i(Je.prototype),"onPointMouseMove",this).call(this,Re);return this.dragLine||this.drawLine||this.dragPoint||this.setHelper("pointHover"),ot}},{key:"onPointMouseOut",value:function(Re){var ot=Os($i(Je.prototype),"onPointMouseOut",this).call(this,Re);return this.dragLine||this.drawLine||this.dragPoint||this.setHelper(this.addable?"draw":null),ot}},{key:"onMidPointHover",value:function(Re){Os($i(Je.prototype),"onMidPointHover",this).call(this,Re),this.setHelper("midPointHover")}},{key:"onMidPointUnHover",value:function(Re){Os($i(Je.prototype),"onMidPointUnHover",this).call(this,Re),this.setHelper(null)}},{key:"onPointClick",value:function(Re){}},{key:"getLineData",value:function(){return this.source.getRenderData("line")}},{key:"setLineData",value:function(Re){return this.source.setRenderData("line",Re)}},{key:"getTextData",value:function(){return this.source.getRenderData("text")}},{key:"setTextData",value:function(Re){return this.source.setRenderData("text",Re)}},{key:"getDashLineData",value:function(){return this.source.getRenderData("dashLine")}},{key:"setDashLineData",value:function(Re){return this.source.setRenderData("dashLine",Re)}},{key:"onMidPointClick",value:function(Re){var ot=this.editLine,Lt=Re.feature;if(ot&&Lt&&!this.dragPoint){var nn=ot.properties.nodes,Fn=Lt.properties,Kn=Fn.startId,Mi=Fn.endId,Yo=nn.findIndex(function($u){return $u.properties.id===Kn}),Lo=nn.findIndex(function($u){return $u.properties.id===Mi});if(Yo>-1&&Lo>-1){var Bo=hn(Lt.geometry.coordinates,{isDrag:!0,isHover:!0});return this.setHelper("pointDrag"),nn.splice(Lo,0,Bo),ot.geometry.coordinates=Ki(Ji(nn)),this.syncLineNodes(ot,nn),this.setActiveLine(ot),Bo}}}},{key:"enableSceneRenderAction",value:function(){this.sceneRender.enableDrag(),this.sceneRender.enableMouseMove(),this.sceneRender.enableDblClick()}},{key:"disableSceneRenderAction",value:function(){this.sceneRender.disableDrag(),this.sceneRender.disableMouseMove(),this.sceneRender.disableDblClick()}},{key:"enableLineRenderAction",value:function(){var Re,ot,Lt,nn=this.options.editable;(Re=this.lineRender)===null||Re===void 0||Re.enableUnClick(),nn&&((ot=this.lineRender)===null||ot===void 0||ot.enableHover(),(Lt=this.lineRender)===null||Lt===void 0||Lt.enableDrag())}},{key:"disableLineRenderAction",value:function(){var Re,ot,Lt;(Re=this.lineRender)===null||Re===void 0||Re.disableUnClick(),(ot=this.lineRender)===null||ot===void 0||ot.disableHover(),(Lt=this.lineRender)===null||Lt===void 0||Lt.disableDrag()}}]),Je}(Xi),mu=function(Se){Ti(Je,Se);var $e=ks(Je);function Je(){return Et(this,Je),$e.apply(this,arguments)}return jn(Je,[{key:"dragItem",get:function(){return this.dragPolygon}},{key:"editItem",get:function(){return this.editPolygon}},{key:"polygonRender",get:function(){return this.render.polygon}},{key:"dragPolygon",get:function(){return this.getPolygonData().find(function(Re){return Re.properties.isDrag})}},{key:"drawPolygon",get:function(){return this.getPolygonData().find(function(Re){return Re.properties.isDraw})}},{key:"editPolygon",get:function(){return this.getPolygonData().find(function(Re){var ot=Re.properties;return!ot.isDraw&&ot.isActive})}},{key:"hoverPolygon",get:function(){return this.getPolygonData().find(function(Re){return Re.properties.isHover})}},{key:"getDragPolygon",value:function(){return this.dragPolygon}},{key:"getDrawPolygon",value:function(){return this.drawPolygon}},{key:"getEditPolygon",value:function(){return this.editPolygon}},{key:"getRenderTypes",value:function(){return["polygon","line","dashLine","midPoint","point","text"]}},{key:"getData",value:function(){return this.getPolygonData()}},{key:"getMainLayer",value:function(){var Re,ot;return(Re=(ot=this.render.polygon)===null||ot===void 0?void 0:ot.getLayers())!==null&&Re!==void 0?Re:[]}},{key:"getDefaultOptions",value:function(Re){var ot=lt(lt({},Os($i(Je.prototype),"getDefaultOptions",this).call(this,Re)),{},{areaOptions:!1,helper:hs(gi)});return Re.areaOptions&&(ot.areaOptions=lt(lt({},Dn),Re.areaOptions)),ot}},{key:"getAreaTexts",value:function(Re){var ot=this.options.areaOptions;if(!ot)return[];var Lt=ot.format,nn=ot.showWhen,Fn=[],Kn=Re.filter(function(Mi){return Mi.geometry.coordinates[0].length>=4});return nn.includes("active")&&Kn.filter(function(Mi){return Mi.properties.isActive}).forEach(function(Mi){Fn.push(xa(Mi,{format:Lt},{isActive:!0}))}),nn.includes("normal")&&Kn.filter(function(Mi){return!Mi.properties.isActive}).forEach(function(Mi){Fn.push(xa(Mi,{format:Lt},{isActive:!1}))}),Fn}},{key:"getAllTexts",value:function(){return[].concat(no(Os($i(Je.prototype),"getAllTexts",this).call(this)),no(this.getAreaTexts(this.getPolygonData())))}},{key:"getPolygonData",value:function(){return this.source.getRenderData("polygon")}},{key:"setPolygonData",value:function(Re){return this.source.setRenderData("polygon",Re)}},{key:"handleCreatePolygon",value:function(Re,ot){var Lt=ei(Re,{nodes:Re,line:ot,isActive:!0,isDraw:!0});return this.setPolygonData(function(nn){return Kc({target:Lt,data:[].concat(no(nn),[Lt]),otherHandler:function(Fn){Fn.properties.isActive=!1}})}),Lt}},{key:"handlePolygonUnClick",value:function(Re){return this.clearActivePolygon(),Re}},{key:"handlePolygonHover",value:function(Re){return this.setCursor("polygonHover"),Gs(Re,this.hoverPolygon)||this.setPolygonData(function(ot){return Kc({target:Re,data:ot,targetHandler:function(Lt){Lt.properties.isHover=!0},otherHandler:function(Lt){Lt.properties.isHover=!1}})}),Re}},{key:"handlePolygonUnHover",value:function(){this.resetCursor(),this.setPolygonData(function(Re){return Re.map(function(ot){return ot.properties.isHover=!1,ot})})}},{key:"handlePolygonDragStart",value:function(Re){return this.setActivePolygon(Re,{isDrag:!0}),this.scene.setMapStatus({dragEnable:!1}),this.setCursor("polygonDrag"),Re}},{key:"bindPolygonRenderEvent",value:function(){var Re,ot,Lt,nn;(Re=this.polygonRender)===null||Re===void 0||Re.on(y.RenderEvent.UnClick,this.onPolygonUnClick.bind(this)),(ot=this.polygonRender)===null||ot===void 0||ot.on(y.RenderEvent.Mousemove,this.onPolygonHover.bind(this)),(Lt=this.polygonRender)===null||Lt===void 0||Lt.on(y.RenderEvent.Mouseout,this.onPolygonUnHover.bind(this)),(nn=this.polygonRender)===null||nn===void 0||nn.on(y.RenderEvent.Dragstart,this.onPolygonDragStart.bind(this))}},{key:"syncPolygonNodes",value:function(Re,ot){var Lt=Ki(Ji([].concat(no(ot),[su(ot)]))),nn=Re.properties,Fn=nn.line;if(Re.properties.nodes=ot,Re.geometry.coordinates=[Cp(zi(Lt))?Lt:Lt.reverse()],this.setPolygonData(function(Bo){return Bo.map(function($u){return Gs($u,Re)?Re:$u})}),!Gs(this.drawPolygon,Re)){var Kn=Fn.properties.nodes,Mi=no(ot),Yo=su(Mi);Mi.push(Kn.length===ot.length?hn(Yo.geometry.coordinates):Fs(Kn));var Lo=Fs(Mi);Ai(Yo.geometry.coordinates,Lo.geometry.coordinates)||(Lo.geometry.coordinates=hs(Yo.geometry.coordinates)),this.syncLineNodes(Fn,Mi)}return Re}},{key:"setActivePolygon",value:function(Re){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.setActiveLine(Re.properties.line,ot),this.setPolygonData(function(Lt){return Kc({target:Re,data:Lt,targetHandler:function(nn){nn.properties=lt(lt({},nn.properties),{},{isDraw:!1,isActive:!0,isDrag:!1,isHover:!1},ot)},otherHandler:function(nn){nn.properties=lt(lt({},nn.properties),{},{isDraw:!1,isActive:!1,isDrag:!1})}})}),this.setTextData(this.getAllTexts()),Re}},{key:"clearActivePolygon",value:function(){this.setPolygonData(function(Re){return Re.map(function(ot){return ot.properties=lt(lt({},ot.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),ot})}),this.clearActiveLine()}},{key:"onLineDragStart",value:function(Re){var ot=Os($i(Je.prototype),"onLineDragStart",this).call(this,Re),Lt=this.getPolygonData().find(function(nn){return Gs(nn.properties.line,ot)});return Lt&&(this.setActivePolygon(Lt,{isDrag:!0}),this.emit(y.DrawEvent.DragStart,Lt,this.getPolygonData())),ot}},{key:"onLineUnClick",value:function(Re){return this.editLine}},{key:"onLineDragEnd",value:function(Re){var ot=Os($i(Je.prototype),"onLineDragEnd",this).call(this,Re),Lt=this.dragPolygon;return ot&&Lt&&(Lt.properties.isDrag=!1,this.emit(y.DrawEvent.DragEnd,Lt,this.getPolygonData()),this.emit(y.DrawEvent.Edit,Lt,this.getPolygonData())),ot}},{key:"onPolygonUnClick",value:function(Re){var ot=this.editPolygon;if(ot)return this.handlePolygonUnClick(ot)}},{key:"onPolygonHover",value:function(Re){if(!this.drawPolygon)return this.dragPolygon||this.setHelper("polygonHover"),this.handlePolygonHover(Re.feature)}},{key:"onPolygonUnHover",value:function(Re){if(!this.drawPolygon)return this.setHelper(this.addable?"draw":null),this.handlePolygonUnHover()}},{key:"onPolygonDragStart",value:function(Re){if(this.options.editable&&!this.drawPolygon){var ot=Re.feature;return this.previousPosition=Ql(Re),this.setHelper("polygonDrag"),this.emit(y.DrawEvent.DragStart,ot,this.getPolygonData()),this.handlePolygonDragStart(ot)}}},{key:"onMidPointClick",value:function(Re){var ot=this.editPolygon,Lt=Os($i(Je.prototype),"onMidPointClick",this).call(this,Re);if(Lt&&ot){var nn=ot.properties.line.properties.nodes;this.syncPolygonNodes(ot,nn.slice(0,nn.length-1)),this.setActivePolygon(ot)}return Lt}},{key:"onPointDragEnd",value:function(Re){var ot=this.editPolygon,Lt=Os($i(Je.prototype),"onPointDragEnd",this).call(this,Re);return Lt&&ot&&this.emit(y.DrawEvent.Edit,ot,this.getPolygonData()),Lt}},{key:"enablePolygonRenderAction",value:function(){var Re,ot,Lt,nn=this.options.editable;(Re=this.polygonRender)===null||Re===void 0||Re.enableUnClick(),nn&&((ot=this.polygonRender)===null||ot===void 0||ot.enableHover(),(Lt=this.polygonRender)===null||Lt===void 0||Lt.enableDrag())}},{key:"disablePolygonRenderAction",value:function(){var Re,ot,Lt;(Re=this.polygonRender)===null||Re===void 0||Re.disableUnClick(),(ot=this.polygonRender)===null||ot===void 0||ot.disableHover(),(Lt=this.polygonRender)===null||Lt===void 0||Lt.disableDrag()}},{key:"bindEnableEvent",value:function(){Os($i(Je.prototype),"bindEnableEvent",this).call(this),this.enableSceneRenderAction(),this.enablePointRenderAction(),this.enableLineRenderAction(),this.enableMidPointRenderAction(),this.enablePolygonRenderAction()}},{key:"unbindEnableEvent",value:function(){Os($i(Je.prototype),"unbindEnableEvent",this).call(this),this.disableSceneRenderAction(),this.disablePointRenderAction(),this.disableLineRenderAction(),this.disableMidPointRenderAction(),this.disablePolygonRenderAction()}},{key:"bindThis",value:function(){Os($i(Je.prototype),"bindThis",this).call(this),this.bindPointRenderEvent=this.bindPointRenderEvent.bind(this),this.bindSceneEvent=this.bindSceneEvent.bind(this),this.bindLineRenderEvent=this.bindLineRenderEvent.bind(this),this.bindMidPointRenderEvent=this.bindMidPointRenderEvent.bind(this),this.bindPolygonRenderEvent=this.bindPolygonRenderEvent.bind(this)}},{key:"setActiveFeature",value:function(Re){var ot=this.getTargetFeature(Re);ot?this.setActivePolygon(ot):this.clearActivePolygon()}},{key:"resetFeatures",value:function(){var Re=this.getPolygonData();this.drawPolygon&&(Re=Re.filter(function(ot){return!ot.properties.isDraw}),this.source.setData({point:[],dashLine:[],midPoint:[]}),this.setLineData(function(ot){return ot.filter(function(Lt){return!Lt.properties.isDraw})}),this.setTextData(function(ot){return ot.filter(function(Lt){return!Lt.properties.isActive})})),this.editPolygon&&this.handlePolygonUnClick(this.editPolygon),this.setPolygonData(Re.map(function(ot){return ot.properties=lt(lt({},ot.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),ot}))}}]),Je}(vl),hc=function(Se){Ti(Je,Se);var $e=ks(Je);function Je(Re,ot){var Lt;return Et(this,Je),(Lt=$e.call(this,Re,ot)).onSceneDragStart=Lt.onSceneDragStart.bind(us(Lt)),Lt.onSceneDragEnd=Lt.onSceneDragEnd.bind(us(Lt)),Lt}return jn(Je,[{key:"drawLine",get:function(){var Re;return(Re=this.drawPolygon)===null||Re===void 0?void 0:Re.properties.line}},{key:"isDragTrigger",get:function(){return this.options.trigger==="drag"}},{key:"isClickTrigger",get:function(){return this.options.trigger==="click"}},{key:"getDefaultOptions",value:function(Re){var ot=lt(lt({},Os($i(Je.prototype),"getDefaultOptions",this).call(this,Re)),{},{showMidPoint:!1,trigger:"click",autoActive:!1,helper:hs(ls)});return Re.trigger==="drag"&&(ot.helper=lt(lt({},ot.helper),bs)),ot}},{key:"getMidPointsByLine",value:function(Re){return[]}},{key:"handleCreatePolygon",value:function(Re,ot){var Lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},nn=ot.properties.nodes;return ei(nn.slice(0,nn.length-1),lt({nodes:Re,line:ot},Lt))}},{key:"handleFirstNodeCreate",value:function(Re){var ot=hn(Re.geometry.coordinates),Lt=this.handleCreatePolygonLine(Re,ot,{isDraw:!0,isActive:!0}),nn=this.handleCreatePolygon([Re,ot],Lt,{isDraw:!0,isActive:!0});return this.setPolygonData(function(Fn){return Kc({target:nn,data:[].concat(no(Fn),[nn]),targetHandler:function(Kn){Kn.properties=lt(lt({},Kn.properties),{},{isDraw:!0,isActive:!0})}})}),this.emit(y.DrawEvent.AddNode,Re,this.drawPolygon,this.getPolygonData()),this.setHelper("drawFinish"),Re}},{key:"handleLastNodeCreate",value:function(Re){var ot=this.options,Lt=ot.autoActive,nn=ot.editable,Fn=this.drawPolygon;return Fn&&(this.setLineData(function(Kn){return[].concat(no(Kn),[Fn.properties.line])}),this.setActivePolygon(Fn),Lt&&nn||this.handlePolygonUnClick(Fn),this.emit(y.DrawEvent.Add,Fn,this.getPolygonData()),this.emit(y.DrawEvent.AddNode,Fn.properties.nodes[1],this.drawPolygon,this.getPolygonData()),this.setHelper(nn?Lt?"pointHover":"polygonHover":this.addable?"draw":null)),Re}},{key:"onPointCreate",value:function(Re){var ot=this;if(this.addable&&!this.dragPoint&&!this.editLine&&this.isClickTrigger){var Lt=this.drawPolygon,nn=Ql(Re),Fn=this.handleCreatePoint(nn);return Lt?requestAnimationFrame(function(){ot.handleLastNodeCreate(Fn)}):this.handleFirstNodeCreate(Fn),Fn}}},{key:"setActivePolygon",value:function(Re){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.setActiveLine(Re.properties.line,ot),this.setPolygonData(function(nn){return Kc({target:Re,data:nn,targetHandler:function(Fn){Fn.properties=lt(lt({},Fn.properties),{},{isDraw:!1,isActive:!0,isDrag:!1,isHover:!1},ot)},otherHandler:function(Fn){Fn.properties=lt(lt({},Fn.properties),{},{isDraw:!1,isActive:!1,isDrag:!1})}})}),this.setPointData(Re.properties.nodes),this.setDashLineData([]);var Lt=this.getAllTexts();return this.setTextData(Lt),Re}},{key:"onPointDragging",value:function(Re){var ot=this.dragPoint;if(ot){var Lt=this.handlePointDragging(ot,_l(Re)),nn=this.editPolygon;return Lt&&nn&&(this.syncPolygonNodes(nn,nn.properties.nodes.map(function(Fn){return Gs(Fn,Lt)?Lt:Fn})),this.setActivePolygon(nn)),Lt}}},{key:"onSceneDragStart",value:function(Re){this.isDragTrigger&&this.addable&&!this.dragPoint&&!this.editLine&&(this.scene.setMapStatus({dragEnable:!1}),this.handleFirstNodeCreate(this.handleCreatePoint(Ql(Re))))}},{key:"onSceneDragEnd",value:function(Re){this.isDragTrigger&&this.addable&&!this.dragPoint&&!this.editLine&&this.drawPolygon&&(this.scene.setMapStatus({dragEnable:!1}),this.handleLastNodeCreate(this.handleCreatePoint(Ql(Re))))}},{key:"onSceneMouseMove",value:function(Re){var ot=this.drawPolygon;if(ot){var Lt=ot.properties.nodes,nn=su(Lt),Fn=Fs(Lt);Fn.geometry.coordinates=Ql(Re),this.syncPolygonNodes(ot,[nn,Fn]),this.setDashLineData([ot.properties.line]),this.setTextData(this.getAllTexts()),this.resetCursor()}}},{key:"bindSceneDragEvent",value:function(){this.unbindSceneDragEvent(),this.sceneRender.on(y.RenderEvent.Dragstart,this.onSceneDragStart),this.sceneRender.on(y.RenderEvent.Dragend,this.onSceneDragEnd),this.scene.setMapStatus({dragEnable:!1})}},{key:"unbindSceneDragEvent",value:function(){this.sceneRender.off(y.RenderEvent.Dragstart,this.onSceneDragStart),this.sceneRender.off(y.RenderEvent.Dragend,this.onSceneDragEnd),this.scene.setMapStatus({dragEnable:!0})}},{key:"bindEnableEvent",value:function(){Os($i(Je.prototype),"bindEnableEvent",this).call(this),this.isDragTrigger&&this.bindSceneDragEvent()}},{key:"unbindEnableEvent",value:function(){Os($i(Je.prototype),"unbindEnableEvent",this).call(this),this.isDragTrigger&&this.unbindSceneDragEvent()}},{key:"bindThis",value:function(){Os($i(Je.prototype),"bindThis",this).call(this),this.onSceneDragStart=this.onSceneDragStart.bind(this),this.onSceneDragEnd=this.onSceneDragEnd.bind(this)}}]),Je}(mu),ud=function(Se){Ti(Je,Se);var $e=ks(Je);function Je(Re,ot){var Lt;return Et(this,Je),(Lt=$e.call(this,Re,ot)).bindPointRenderEvent(),Lt.bindSceneEvent(),Lt.bindMidPointRenderEvent(),Lt.bindLineRenderEvent(),Lt.bindPolygonRenderEvent(),Lt}return jn(Je,[{key:"getDefaultOptions",value:function(Re){var ot=lt(lt({},Os($i(Je.prototype),"getDefaultOptions",this).call(this,Re)),{},{showMidPoint:!1,circleSteps:60});return ot.distanceOptions&&(ot.distanceOptions.showTotalDistance=!0,ot.distanceOptions.showOnRadius===void 0&&(ot.distanceOptions.showOnRadius=!0)),ot.helper&&(ot.helper=lt(lt({},ot.helper),Ys)),ot}},{key:"getDistanceTexts",value:function(){var Re=this.options.distanceOptions;if(!Re)return[];var ot=[],Lt=Re.showWhen,nn=Re.showDashDistance,Fn=Re.format,Kn=Re.showTotalDistance;return ot.push.apply(ot,no(this.getDashLineDistanceTexts(this.getDashLineData(),{showTotalDistance:!0,format:Fn,showDashDistance:nn})).concat(no(this.getLineDistanceTexts(this.getLineData(),{showTotalDistance:Kn,format:Fn,showWhen:Lt})))),ot}},{key:"setData",value:function(Re){var ot=this,Lt=Re.map(function(nn){var Fn,Kn,Mi;nn.properties=lt(lt({},et()),nn.properties);var Yo=(Fn=nn.properties)===null||Fn===void 0?void 0:Fn.nodes;if(((Kn=Yo)===null||Kn===void 0?void 0:Kn.length)!==2){var Lo=pa(Ba(nn).geometry.coordinates,2),Bo=Lo[0],$u=Lo[1],gu=Ml(nn),Kl=gu[2],Sl=(gu[1]+gu[3])/2;Yo=[hn([Bo,$u]),hn([Kl,Sl])],nn.properties.nodes=Yo}var ql=Yo[0],il=Yo[1],Va=!!(!((Mi=nn.properties)===null||Mi===void 0)&&Mi.isActive),pu=nn.properties.line;return pu||(pu=ot.handleCreatePolygonLine(ql,il,{isActive:Va}),nn.properties.line=pu),ot.handleCreatePolygon([ql,il],pu,lt(lt({},nn.properties),{},{isActive:Va}))});this.source.setData({point:[],midPoint:[],dashLine:[],polygon:Lt,line:Lt.map(function(nn){return nn.properties.line})}),this.setTextData(this.getAllTexts()),this.editPolygon&&this.setActivePolygon(this.editPolygon)}},{key:"handleCreatePolygonLine",value:function(Re,ot){var Lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},nn=this.getBoundaryPositions(Re,ot).map(function(Fn){return hn(Fn)});return Lr(nn,Lt)}},{key:"syncPolygonNodes",value:function(Re,ot){var Lt=Re.properties.line,nn=this.getBoundaryPositions(ot[0],ot[1]);return Re.properties.nodes=ot,Re.geometry.coordinates=[nn],this.setPolygonData(function(Fn){return Fn.map(function(Kn){return Gs(Kn,Re)?Re:Kn})}),this.setPointData(Re.properties.isDraw?[ot[0]]:ot),Lt.properties.nodes.forEach(function(Fn,Kn){Fn.geometry.coordinates=nn[Kn]}),Lt.geometry.coordinates=nn,Re}},{key:"onLineDragging",value:function(Re){var ot=this.dragPolygon,Lt=pa(this.previousPosition,2),nn=Lt[0],Fn=Lt[1],Kn=Os($i(Je.prototype),"onLineDragging",this).call(this,Re);if(ot){var Mi=pa(Ql(Re),2),Yo=Mi[0],Lo=Mi[1];ot.properties.nodes.forEach(function(Bo){var $u=pa(Bo.geometry.coordinates,2);Bo.geometry.coordinates=[$u[0]+Yo-nn,$u[1]+Lo-Fn]}),this.syncPolygonNodes(ot,ot.properties.nodes),this.setActivePolygon(ot,{isDrag:!0}),this.emit(y.DrawEvent.Dragging,ot,this.getPolygonData())}return Kn}},{key:"getBoundaryPositions",value:function(Re,ot){for(var Lt=this.options.circleSteps,nn=Ja(Re,ot,{units:"meters"}),Fn=[],Kn=0;Lt>Kn;Kn++)Fn.push(wd(Re,nn,-360*Kn/Lt,{units:"meters"}).geometry.coordinates);return Fn.push(Fn[0]),Fn}}]),Je}(hc),Oo=function(Se){Ti(Je,Se);var $e=ks(Je);function Je(Re,ot){var Lt;return Et(this,Je),(Lt=$e.call(this,Re,ot)).drawLineFinish=function(){var nn,Fn=Lt.drawLine,Kn=(nn=Fn==null?void 0:Fn.properties.nodes)!==null&&nn!==void 0?nn:[];if(Fn&&(Kn==null?void 0:Kn.length)>1){Lt.setActiveLine(Fn);var Mi=Lt.options,Yo=Mi.autoActive,Lo=Mi.editable;Yo&&Lo||Lt.handleLineUnClick(Fn),Lt.setHelper(Lo&&Yo?"pointHover":Lt.addable?"draw":null),Lt.emit(y.DrawEvent.Add,Fn,Lt.getLineData())}},Lt.sceneRender.on(y.RenderEvent.DblClick,Lt.drawLineFinish),Lt.bindPointRenderEvent(),Lt.bindSceneEvent(),Lt.bindMidPointRenderEvent(),Lt.bindLineRenderEvent(),Lt}return jn(Je,[{key:"dragItem",get:function(){return this.dragLine}},{key:"editItem",get:function(){return this.editLine}},{key:"getMainLayer",value:function(){var Re,ot;return(Re=(ot=this.render.line)===null||ot===void 0?void 0:ot.getLayers())!==null&&Re!==void 0?Re:[]}},{key:"setData",value:function(Re){var ot=Re.map(function(Lt){var nn,Fn;return Lt.properties=lt(lt({},Oe()),(nn=Lt.properties)!==null&&nn!==void 0?nn:{}),!((Fn=Lt.properties.nodes)===null||Fn===void 0)&&Fn.length||(Lt.properties.nodes=Ki(Lt).map(function(Kn){return hn(Kn)})),Lt});this.source.setData({point:[],midPoint:[],dashLine:[],line:ot}),this.setTextData(this.getAllTexts()),this.editLine&&this.setActiveLine(this.editLine)}},{key:"getData",value:function(){return this.getLineData()}},{key:"getRenderTypes",value:function(){return["line","dashLine","midPoint","point","text"]}},{key:"bindPointRenderEvent",value:function(){var Re;Os($i(Je.prototype),"bindPointRenderEvent",this).call(this),(Re=this.pointRender)===null||Re===void 0||Re.on(y.RenderEvent.Contextmenu,this.onPointContextMenu.bind(this))}},{key:"onPointClick",value:function(Re){var ot,Lt=this,nn=this.drawLine,Fn=(ot=nn==null?void 0:nn.properties.nodes)!==null&&ot!==void 0?ot:[],Kn=Re.feature;if(Gs(Kn,Fs(Fn)))requestAnimationFrame(function(){Lt.drawLineFinish()});else{var Mi=pa(Kn.geometry.coordinates,2);Re.lngLat={lng:Mi[0],lat:Mi[1]},this.onPointCreate(Re)}}},{key:"removeNode",value:function(Re,ot){var Lt,nn=this.getTargetFeature(ot),Fn=this.getTargetFeature(Re,(Lt=nn==null?void 0:nn.properties.nodes)!==null&&Lt!==void 0?Lt:[]);if(nn&&Fn){var Kn,Mi=(Kn=nn==null?void 0:nn.properties.nodes)!==null&&Kn!==void 0?Kn:[];if(3>Mi.length)return;this.syncLineNodes(nn,Mi.filter(function(Yo){return!Gs(Fn,Yo)})),this.emit(y.DrawEvent.RemoveNode,Fn,nn,this.getLineData()),this.emit(y.DrawEvent.Edit,nn,this.getLineData())}}},{key:"onPointContextMenu",value:function(Re){var ot,Lt=this.editLine,nn=Re.feature,Fn=(ot=Lt==null?void 0:Lt.properties.nodes)!==null&&ot!==void 0?ot:[];if(Lt&&Fn.length>=3)return this.removeNode(nn,Lt),this.scene.setMapStatus({dragEnable:!0}),nn}},{key:"onPointCreate",value:function(Re){if(this.addable){var ot=Os($i(Je.prototype),"onPointCreate",this).call(this,Re);return ot&&(this.setHelper("drawFinish"),this.emit(y.DrawEvent.AddNode,ot,this.drawLine,this.getLineData())),ot}}},{key:"onPointDragEnd",value:function(Re){var ot=this.editLine,Lt=Os($i(Je.prototype),"onPointDragEnd",this).call(this,Re);return ot&&Lt&&this.emit(y.DrawEvent.Edit,ot,this.getLineData()),Lt}},{key:"onLineDragStart",value:function(Re){var ot=Os($i(Je.prototype),"onLineDragStart",this).call(this,Re);return ot&&this.emit(y.DrawEvent.DragStart,ot,this.getLineData()),ot}},{key:"onLineDragging",value:function(Re){var ot=Os($i(Je.prototype),"onLineDragging",this).call(this,Re);return ot&&this.emit(y.DrawEvent.Dragging,ot,this.getLineData()),ot}},{key:"onLineDragEnd",value:function(Re){var ot=Os($i(Je.prototype),"onLineDragEnd",this).call(this,Re);return ot&&(this.emit(y.DrawEvent.DragEnd,ot,this.getLineData()),this.emit(y.DrawEvent.Edit,ot,this.getLineData())),ot}},{key:"onMidPointClick",value:function(Re){var ot=this.editLine,Lt=Os($i(Je.prototype),"onMidPointClick",this).call(this,Re);return ot&&Lt&&(this.emit(y.DrawEvent.Edit,ot,this.getLineData()),this.emit(y.DrawEvent.AddNode,Lt,ot,this.getLineData())),Lt}},{key:"onSceneMouseMove",value:function(Re){var ot=this.drawLine;if(ot){var Lt,nn=Fs(ot.properties.nodes),Fn=Ql(Re);this.options.adsorbOptions&&(Fn=(Lt=this.getAdsorbPosition(Fn))!==null&&Lt!==void 0?Lt:Fn),this.setDashLineData([Cn([Fn,nn.geometry.coordinates])]),this.setTextData(this.getAllTexts())}}},{key:"setActiveFeature",value:function(Re){var ot=this.getTargetFeature(Re);ot?this.setActiveLine(ot):this.clearActiveLine()}},{key:"resetFeatures",value:function(){var Re=this.getLineData();this.drawLine&&(Re=Re.filter(function(ot){return!ot.properties.isDraw}),this.source.setData({point:[],dashLine:[],midPoint:[]}),this.setTextData(function(ot){return ot.filter(function(Lt){return!Lt.properties.isActive})})),this.editLine&&this.handleLineUnClick(this.editLine),this.setLineData(Re.map(function(ot){return ot.properties=lt(lt({},ot.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),ot}))}},{key:"enablePointRenderAction",value:function(){var Re;Os($i(Je.prototype),"enablePointRenderAction",this).call(this),this.options.editable&&((Re=this.pointRender)===null||Re===void 0||Re.enableContextMenu())}},{key:"disablePointRenderAction",value:function(){var Re;Os($i(Je.prototype),"disablePointRenderAction",this).call(this),(Re=this.pointRender)===null||Re===void 0||Re.disableContextMenu()}},{key:"bindEnableEvent",value:function(){Os($i(Je.prototype),"bindEnableEvent",this).call(this),this.enableSceneRenderAction(),this.enablePointRenderAction(),this.enableLineRenderAction(),this.enableMidPointRenderAction(),this.sceneRender.enableDblClick()}},{key:"unbindEnableEvent",value:function(){Os($i(Je.prototype),"unbindEnableEvent",this).call(this),this.disableSceneRenderAction(),this.disablePointRenderAction(),this.disableLineRenderAction(),this.disableMidPointRenderAction(),this.sceneRender.disableDblClick()}},{key:"bindThis",value:function(){Os($i(Je.prototype),"bindThis",this).call(this),this.bindPointRenderEvent=this.bindPointRenderEvent.bind(this),this.bindSceneEvent=this.bindSceneEvent.bind(this),this.bindLineRenderEvent=this.bindLineRenderEvent.bind(this),this.bindMidPointRenderEvent=this.bindMidPointRenderEvent.bind(this)}}]),Je}(vl),jd=function(Se){Ti(Je,Se);var $e=ks(Je);function Je(Re,ot){var Lt;return Et(this,Je),(Lt=$e.call(this,Re,ot)).bindPointRenderEvent(),Lt}return jn(Je,[{key:"dragItem",get:function(){return this.dragPoint}},{key:"editItem",get:function(){return this.editPoint}},{key:"getDefaultOptions",value:function(Re){var ot=lt(lt({},this.getCommonOptions(Re)),{},{helper:hs(sr),initialData:Re.initialData});return ot.style.point=pc,ot}},{key:"bindEnableEvent",value:function(){Os($i(Je.prototype),"bindEnableEvent",this).call(this),this.enablePointRenderAction()}},{key:"unbindEnableEvent",value:function(){Os($i(Je.prototype),"unbindEnableEvent",this).call(this),this.disablePointRenderAction()}},{key:"getRenderTypes",value:function(){return["point"]}},{key:"getMainLayer",value:function(){var Re,ot;return(Re=(ot=this.render.point)===null||ot===void 0?void 0:ot.getLayers())!==null&&Re!==void 0?Re:[]}},{key:"setData",value:function(Re){this.setPointData(Re.map(function(ot){var Lt;return ot.properties=lt(lt({},Le()),(Lt=ot.properties)!==null&&Lt!==void 0?Lt:{}),ot}))}},{key:"getData",value:function(){return this.getPointData()}},{key:"onPointCreate",value:function(Re){if(this.addable){var ot=Os($i(Je.prototype),"onPointCreate",this).call(this,Re);if(ot)return this.options.editable&&this.setHelper("pointHover"),this.emit(y.DrawEvent.Add,ot,this.getData()),ot}else this.setPointData(function(Lt){return Lt.map(function(nn){return nn.properties=lt(lt({},nn.properties),{},{isHover:!1,isActive:!1}),nn})})}},{key:"onPointMouseMove",value:function(Re){var ot=Os($i(Je.prototype),"onPointMouseMove",this).call(this,Re);return this.options.editable&&!this.dragPoint&&this.setHelper("pointHover"),ot}},{key:"onPointMouseOut",value:function(Re){var ot=Os($i(Je.prototype),"onPointMouseOut",this).call(this,Re);return this.setHelper(this.addable?"draw":null),ot}},{key:"onPointDragStart",value:function(Re){var ot=Os($i(Je.prototype),"onPointDragStart",this).call(this,Re);return this.setHelper("pointDrag"),this.emit(y.DrawEvent.DragStart,ot,this.getData()),ot}},{key:"onPointDragging",value:function(Re){var ot=Os($i(Je.prototype),"onPointDragging",this).call(this,Re);return ot&&this.options.editable&&this.emit(y.DrawEvent.Dragging,ot,this.getData()),ot}},{key:"onPointDragEnd",value:function(Re){var ot=Os($i(Je.prototype),"onPointDragEnd",this).call(this,Re);return ot&&this.options.editable&&(this.setHelper("pointHover"),this.emit(y.DrawEvent.DragEnd,ot,this.getData()),this.emit(y.DrawEvent.Edit,ot,this.getData())),ot}},{key:"bindThis",value:function(){Os($i(Je.prototype),"bindThis",this).call(this),this.bindPointRenderEvent=this.bindPointRenderEvent.bind(this)}},{key:"onSceneMouseMove",value:function(Re){}},{key:"setActiveFeature",value:function(Re){var ot=this.getTargetFeature(Re);this.setPointData(function(Lt){return Lt.map(function(nn){return nn.properties.isActive=Gs(ot,nn),nn})})}},{key:"resetFeatures",value:function(){this.setPointData(function(Re){return Re.map(function(ot){return ot.properties=lt(lt({},ot.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),ot})})}}]),Je}(gs),pd=function(Se){Ti(Je,Se);var $e=ks(Je);function Je(Re,ot){var Lt;return Et(this,Je),(Lt=$e.call(this,Re,ot)).drawPolygonFinish=function(){var nn,Fn=Lt.drawPolygon,Kn=(nn=Fn==null?void 0:Fn.properties.nodes)!==null&&nn!==void 0?nn:[];if(Fn&&Kn.length>=3){Fn.properties.isDraw=!1,Lt.syncPolygonNodes(Fn,Kn),Lt.setActivePolygon(Fn);var Mi=Lt.options,Yo=Mi.autoActive,Lo=Mi.editable;Yo&&Lo||Lt.handlePolygonUnClick(Fn),Lt.setHelper(Lo?Yo?"pointHover":"polygonHover":Lt.addable?"draw":null),Lt.emit(y.DrawEvent.Add,Fn,Lt.getPolygonData())}},Lt.sceneRender.on(y.RenderEvent.DblClick,Lt.drawPolygonFinish),Lt.bindPointRenderEvent(),Lt.bindSceneEvent(),Lt.bindMidPointRenderEvent(),Lt.bindLineRenderEvent(),Lt.bindPolygonRenderEvent(),Lt}return jn(Je,[{key:"getDefaultOptions",value:function(Re){return lt(lt({},Os($i(Je.prototype),"getDefaultOptions",this).call(this,Re)),{},{liveUpdate:!1})}},{key:"setData",value:function(Re){var ot=Re.map(function(Lt){var nn,Fn;if(Lt.properties=lt(lt({},et()),(nn=Lt.properties)!==null&&nn!==void 0?nn:{}),!(!((Fn=Lt.properties.nodes)===null||Fn===void 0)&&Fn.length)){var Kn=Ki(Lt);Kn=Kn.slice(0,Kn.length-1),Lt.properties.nodes=Kn.map(function(Yo){return hn(Yo)})}if(!Lt.properties.line){var Mi=Lt.properties.nodes;Lt.properties.line=Lr([].concat(no(Mi),[hn(su(Mi).geometry.coordinates)]))}return Lt});this.source.setData({point:[],midPoint:[],dashLine:[],polygon:ot,line:ot.map(function(Lt){return Lt.properties.line})}),this.setTextData(this.getAllTexts()),this.editPolygon&&this.setActivePolygon(this.editPolygon)}},{key:"onPointCreate",value:function(Re){if(this.addable&&!this.dragPoint){var ot=Os($i(Je.prototype),"onPointCreate",this).call(this,Re),Lt=this.drawPolygon,nn=this.drawLine;return ot&&(Lt?(this.syncPolygonNodes(Lt,[].concat(no(Lt.properties.nodes),[ot])),this.setDashLineData([Cn([Ql(Re),Lt.properties.nodes[0].geometry.coordinates])]),Lt.properties.nodes.length>1&&this.setHelper("drawFinish")):nn&&(this.handleCreatePolygon([ot],nn),this.setHelper("drawContinue")),this.emit(y.DrawEvent.AddNode,ot,Lt,this.getPolygonData())),ot}}},{key:"onPointClick",value:function(Re){var ot=this,Lt=this.drawPolygon,nn=Re.feature;if(Lt){var Fn=Lt.properties.nodes;if(Fn.length<3||!Gs(su(Fn),nn)&&!Gs(Fs(Fn),nn)){var Kn=pa(nn.geometry.coordinates,2);Re.lngLat={lng:Kn[0],lat:Kn[1]},this.onPointCreate(Re)}else requestAnimationFrame(function(){ot.drawPolygonFinish()})}}},{key:"onPointDragging",value:function(Re){var ot=this.dragPoint,Lt=this.editPolygon;if(ot&&Lt){var nn=Lt.properties.line;nn.properties.nodes=nn.properties.nodes.map(function($u){return Gs($u,ot)?ot:$u});var Fn=nn.properties.nodes,Kn=Fn.slice(0,Fn.length-1),Mi=su(Fn),Yo=Fs(Fn),Lo=Gs(Mi,ot)||Gs(Yo,ot);if(Lo&&(Mi.geometry.coordinates=Yo.geometry.coordinates=Ql(Re)),this.options.adsorbOptions&&Lo){var Bo=this.resetAdsorbLngLat(Re);Bo&&(Mi.geometry.coordinates=Yo.geometry.coordinates=Bo)}Os($i(Je.prototype),"onPointDragging",this).call(this,Re),this.syncPolygonNodes(Lt,Kn),this.setActivePolygon(Lt)}return ot}},{key:"onLineDragging",value:function(Re){var ot=this.dragPolygon,Lt=Os($i(Je.prototype),"onLineDragging",this).call(this,Re);if(Lt&&ot){var nn=Lt.properties.nodes;this.syncPolygonNodes(ot,nn.slice(0,nn.length-1)),this.emit(y.DrawEvent.Dragging,ot,this.getPolygonData())}return Lt}},{key:"onMidPointClick",value:function(Re){var ot=Os($i(Je.prototype),"onMidPointClick",this).call(this,Re),Lt=this.editPolygon;return ot&&Lt&&(this.emit(y.DrawEvent.Edit,Lt,this.getPolygonData()),this.emit(y.DrawEvent.AddNode,ot,Lt,this.getPolygonData())),ot}},{key:"onSceneMouseMove",value:function(Re){var ot,Lt=this.drawPolygon,nn=(ot=Lt==null?void 0:Lt.properties.nodes)!==null&&ot!==void 0?ot:[];if(Lt&&nn.length){this.options.adsorbOptions&&this.resetAdsorbLngLat(Re);var Fn=Ql(Re),Kn=[];if(Kn.push(Cn([Fn,su(nn).geometry.coordinates])),nn.length>1&&Kn.push(Cn([Fn,Fs(nn).geometry.coordinates])),this.options.liveUpdate&&nn.length>=2){var Mi=Ki(Ji(nn));Lt.geometry.coordinates=[[].concat(no(Mi),[Fn,Mi[0]])],this.setPolygonData(this.getPolygonData())}this.setDashLineData(Kn),this.setTextData(this.getAllTexts())}}},{key:"removeNode",value:function(Re,ot){var Lt,nn=this.getTargetFeature(ot),Fn=this.getTargetFeature(Re,(Lt=nn==null?void 0:nn.properties.nodes)!==null&&Lt!==void 0?Lt:[]);if(nn&&Fn){var Kn,Mi=(Kn=nn==null?void 0:nn.properties.nodes)!==null&&Kn!==void 0?Kn:[];if(4>Mi.length)return;this.syncPolygonNodes(nn,Mi.filter(function(Yo){return!Gs(Fn,Yo)})),this.emit(y.DrawEvent.RemoveNode,Fn,nn,this.getLineData()),this.emit(y.DrawEvent.Edit,nn,this.getPolygonData())}}},{key:"onPointContextMenu",value:function(Re){var ot,Lt=this.editPolygon,nn=Re.feature,Fn=(ot=Lt==null?void 0:Lt.properties.nodes)!==null&&ot!==void 0?ot:[];if(Lt&&Fn.length>=4)return Fn.find(function(Kn){return Gs(Kn,nn)})||(nn=Fn[0]),this.removeNode(nn,Lt),nn}},{key:"bindPointRenderEvent",value:function(){var Re;Os($i(Je.prototype),"bindPointRenderEvent",this).call(this),(Re=this.pointRender)===null||Re===void 0||Re.on(y.RenderEvent.Contextmenu,this.onPointContextMenu.bind(this))}},{key:"enablePointRenderAction",value:function(){var Re;Os($i(Je.prototype),"enablePointRenderAction",this).call(this),this.options.editable&&((Re=this.pointRender)===null||Re===void 0||Re.enableContextMenu())}},{key:"disablePointRenderAction",value:function(){var Re;Os($i(Je.prototype),"disablePointRenderAction",this).call(this),(Re=this.pointRender)===null||Re===void 0||Re.disableContextMenu()}}]),Je}(mu),up=function(Se){Ti(Je,Se);var $e=ks(Je);function Je(Re,ot){var Lt;return Et(this,Je),(Lt=$e.call(this,Re,ot)).bindPointRenderEvent(),Lt.bindSceneEvent(),Lt.bindMidPointRenderEvent(),Lt.bindLineRenderEvent(),Lt.bindPolygonRenderEvent(),Lt}return jn(Je,[{key:"getDefaultOptions",value:function(Re){var ot=Os($i(Je.prototype),"getDefaultOptions",this).call(this,Re);return ot.helper&&(ot.helper=lt(lt({},ot.helper),Pl)),ot}},{key:"setData",value:function(Re){var ot=this,Lt=Re.map(function(nn){var Fn,Kn,Mi;nn.properties=lt(lt({},et()),(Fn=nn.properties)!==null&&Fn!==void 0?Fn:{});var Yo=nn.properties.nodes;if(((Kn=Yo)===null||Kn===void 0?void 0:Kn.length)!==2){var Lo=pa(Ml(nn),4),Bo=Lo[2],$u=Lo[3];Yo=[hn([Lo[0],Lo[1]]),hn([Bo,$u])],nn.properties.nodes=Yo}var gu=pa(Yo,2),Kl=gu[0],Sl=gu[1],ql=!!(!((Mi=nn.properties)===null||Mi===void 0)&&Mi.isActive),il=nn.properties.line;return il||(il=ot.handleCreatePolygonLine(Kl,Sl,{isActive:ql}),nn.properties.line=il),ot.handleCreatePolygon([Kl,Sl],il,lt(lt({},nn.properties),{},{isActive:ql}))});this.source.setData({point:[],midPoint:[],dashLine:[],polygon:Lt,line:Lt.map(function(nn){return nn.properties.line})}),this.setTextData(this.getAllTexts()),this.editPolygon&&this.setActivePolygon(this.editPolygon)}},{key:"handleCreatePolygonLine",value:function(Re,ot){var Lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},nn=Ki(Bu(Ji([Re,ot]))).map(function(Fn,Kn){return Kn===0?Re:Kn===2?ot:hn(Fn)});return Lr(nn,Lt)}},{key:"syncPolygonNodes",value:function(Re,ot){var Lt=Re.properties.line,nn=Ki(Bu(Ji(ot)));Re.properties.nodes=ot,Re.geometry.coordinates=[nn],this.setPolygonData(function(Mi){return Mi.map(function(Yo){return Gs(Yo,Re)?Re:Yo})}),this.setPointData(Re.properties.isDraw?[ot[0]]:ot);var Fn=Lt.properties.nodes,Kn=nn.filter(function(Mi){return!Ai(Mi,ot[0].geometry.coordinates)&&!Ai(Mi,ot[1].geometry.coordinates)});return Fn.forEach(function(Mi,Yo){var Lo=[0,0];switch(Yo){case 0:Lo=ot[0].geometry.coordinates;break;case 1:Lo=Kn[0];break;case 2:Lo=ot[1].geometry.coordinates;break;case 3:Lo=Kn[1];break;case 4:Lo=hs(ot[0].geometry.coordinates)}Mi.geometry.coordinates=Lo}),Lt.geometry.coordinates=nn,Re}},{key:"onLineDragging",value:function(Re){var ot=Os($i(Je.prototype),"onLineDragging",this).call(this,Re),Lt=this.dragPolygon;if(ot&&Lt){var nn=Lt.properties.line.properties.nodes;this.syncPolygonNodes(Lt,[nn[0],nn[2]]),this.setActivePolygon(Lt,{isDrag:!0}),this.emit(y.DrawEvent.Dragging,Lt,this.getPolygonData())}return ot}}]),Je}(hc),eg=function(Se,$e){for(var Je=Se;Je&&!Array.from(Je.classList).includes($e);)Je=Je.parentElement;return Je},Gg={point:"#l7draw-point",line:"#l7draw-line",polygon:"#l7draw-polygon",rect:"#l7draw-rect",circle:"#l7draw-circle",clear:"#l7draw-qingkong"},Pm={point:jd,line:Oo,polygon:pd,rect:up,circle:ud},Nm="data-draw-type",Hm="l7-draw-control",Eg="".concat(Hm,"__btn"),Sm="".concat(Eg,"--active");(function(Se){var $e,Je,Re,ot,Lt,nn='',Fn=(Fn=document.getElementsByTagName("script"))[Fn.length-1].getAttribute("data-injectcss");if(Fn&&!Se.__iconfont__svg__cssinject__){Se.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(Mi){console&&console.log(Mi)}}function Kn(){Lt||(Lt=!0,Re())}$e=function(){var Mi,Yo=document.createElement("div");Yo.innerHTML=nn,nn=null,(Yo=Yo.getElementsByTagName("svg")[0])&&(Yo.setAttribute("aria-hidden","true"),Yo.style.position="absolute",Yo.style.width=0,Yo.style.height=0,Yo.style.overflow="hidden",(Mi=document.body).firstChild?function(Lo,Bo){Bo.parentNode.insertBefore(Lo,Bo)}(Yo,Mi.firstChild):Mi.appendChild(Yo))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout($e,0):(Je=function(){document.removeEventListener("DOMContentLoaded",Je,!1),$e()},document.addEventListener("DOMContentLoaded",Je,!1)):document.attachEvent&&(Re=$e,ot=Se.document,Lt=!1,function Mi(){try{ot.documentElement.doScroll("left")}catch(Yo){return void setTimeout(Mi,50)}Kn()}(),ot.onreadystatechange=function(){ot.readyState=="complete"&&(ot.onreadystatechange=null,Kn())})})(window),Qo(".l7-draw-control{display:flex;overflow:hidden;background:#fff;border-radius:2px;box-shadow:0 0 20px rgba(0,0,0,.14901960784313725)}.l7-draw-control__btn{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;text-align:center;background:transparent;border-width:0;border-right:1px solid #e0e0e0;outline:0;cursor:pointer}.l7-draw-control__btn:hover{background-color:#e5e5e5}.l7-draw-control__btn:last-child{border-right:0;border-bottom:0}.l7-draw-control__btn .l7-draw-icon{width:26px;height:26px;overflow:hidden;fill:currentColor}.l7-draw-control__btn--active svg{color:#0370fe}");var um=function(Se){Ti(Je,Se);var $e=ks(Je);function Je(Re){var ot,Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Et(this,Je),(ot=$e.call(this,Lt)).controlOption=void 0,ot.sceneInstance=void 0,ot.drawMap={},ot.btnMap={},ot.activeType=null,ot.emitDataChange=D(function(){ot.emit(y.ControlEvent.DataChange,ot.getDrawData())},16),ot.emitDrawSelect=function(nn,Fn){ot.emit(y.ControlEvent.DrawSelect,nn,Fn)},ot.sceneInstance=Re,ot.controlOption=lt(lt({},ot.getDefault()),Lt||{}),ot.onBtnClick=ot.onBtnClick.bind(us(ot)),ot}return jn(Je,[{key:"getActiveType",value:function(){return this.activeType}},{key:"getDefault",value:function(){return lt(lt({},Os($i(Je.prototype),"getDefault",this).call(this)),{},{className:"",buttonClassName:"",activeButtonClassName:"",style:"",position:"topleft",commonDrawOptions:{},drawConfig:{point:!0,line:!0,polygon:!0,rect:!0,circle:!0,clear:!0}})}},{key:"addTo",value:function(Re){return Os($i(Je.prototype),"addTo",this).call(this,Re),this.init(),this}},{key:"onAdd",value:function(){var Re=this.controlOption,ot=Re.className,Lt=Re.style,nn=A.DOM.create("div","".concat(Hm," ").concat(ot));return Lt&&nn.setAttribute("style",Lt),nn}},{key:"onRemove",value:function(){Object.values(this.drawMap).forEach(function(Re){Re.clear(!0)})}},{key:"init",value:function(){var Re,ot=this,Lt=[];Object.entries(this.controlOption.drawConfig).forEach(function(nn){var Fn=pa(nn,2),Kn=Fn[0],Mi=Fn[1];if(Mi){var Yo=ot.initBtn(Kn);Yo.addEventListener("click",ot.onBtnClick),Lt.push(Yo),ot.btnMap[Kn]=Yo;var Lo=Pm[Kn];if(Lo&&ot.sceneInstance){var Bo=new Lo(ot.sceneInstance,lt(lt({},ot.controlOption.commonDrawOptions),typeof Mi=="boolean"?{}:Mi));Bo.on(y.DrawEvent.Change,ot.emitDataChange),Bo.on(y.DrawEvent.Select,function($u){ot.emitDrawSelect(Kn,$u)}),ot.drawMap[Kn]=Bo}}}),(Re=this.container).append.apply(Re,Lt),this.controlOption.defaultActiveType&&this.onDrawClick(this.controlOption.defaultActiveType)}},{key:"getDrawData",value:function(){return Ls(va(this.drawMap).map(function(Re){var ot=pa(Re,2);return[ot[0],ot[1].getData()]}))}},{key:"getTypeDraw",value:function(Re){var ot;return(ot=this.drawMap[Re])!==null&&ot!==void 0?ot:null}},{key:"onBtnClick",value:function(Re){var ot=eg(Re.target,Eg);if(ot){var Lt=ot.getAttribute(Nm);Lt==="clear"?this.clearDrawData():this.onDrawClick(Lt)}}},{key:"setActiveType",value:function(Re){var ot=null,Lt=this.activeType;if(Lt){var nn,Fn=this.btnMap[Lt];if(Fn){A.DOM.removeClass(Fn,Sm);var Kn=this.controlOption.activeButtonClassName;Kn&&A.DOM.removeClass(Fn,Kn)}(nn=this.drawMap[Lt])===null||nn===void 0||nn.disable(),ot=null}if(Lt!==Re&&Re){var Mi;(Mi=this.drawMap[Re])===null||Mi===void 0||Mi.enable();var Yo=this.btnMap[Re];Yo&&A.DOM.addClass(Yo,"".concat(Sm," ").concat(this.controlOption.activeButtonClassName)),ot=Re}this.activeType=ot,this.emit(y.ControlEvent.DrawChange,ot)}},{key:"onDrawClick",value:function(Re){this.setActiveType(Re)}},{key:"clearDrawData",value:function(){Object.values(this.drawMap).forEach(function(Re){Re==null||Re.clear()})}},{key:"initBtn",value:function(Re){var ot=A.DOM.create("button","".concat(Eg," ").concat(this.controlOption.buttonClassName));return ot.innerHTML=``),ot.setAttribute(Nm,Re),ot}}]),Je}(A.Control);y.ACTIVE_COLOR=la,y.BaseMode=Pa,y.CircleDrawer=ud,y.DEFAULT_ADSORB_CONFIG=vt,y.DEFAULT_AREA_OPTIONS=Dn,y.DEFAULT_COMMON_OPTIONS=Cl,y.DEFAULT_CURSOR_MAP=b,y.DEFAULT_DISTANCE_OPTIONS=dn,y.DEFAULT_HISTORY_CONFIG=Nn,y.DEFAULT_KEYBOARD_CONFIG=tt,y.DEFAULT_MID_POINT_STYLE=Iu,y.DEFAULT_NODE_NORMAL_STYLE=zu,y.DEFAULT_NODE_STYLE=zc,y.DEFAULT_POINT_NORMAL_STYLE=Ll,y.DEFAULT_POINT_STYLE=pc,y.DEFAULT_POPUP_CONFIG=dt,y.DEFAULT_SOURCE_DATA=z,y.DEFAULT_STYLE=X,y.DEFAULT_TEXT_NORMAL_STYLE=Rd,y.DashLineRender=Np,y.DragPolygonMode=hc,y.DrawCircle=ud,y.DrawControl=um,y.DrawLine=Oo,y.DrawPoint=jd,y.DrawPolygon=pd,y.DrawRect=up,y.LayerRender=Pd,y.LineDrawer=Oo,y.LineMode=vl,y.LineRender=F,y.MidPointMode=Xi,y.MidPointRender=q,y.NORMAL_COLOR=Uo,y.PointDrawer=jd,y.PointMode=gs,y.PointRender=ae,y.PolygonDrawer=pd,y.PolygonMode=mu,y.PolygonRender=He,y.RENDER_MAP=di,y.RectDrawer=up,y.SceneRender=qt,y.Source=wa,y.TextRender=zn,y.calcAreaText=xa,y.calcDistanceTextsByLine=ps,y.createDashLine=Cn,y.createLineFeature=Lr,y.createPointFeature=hn,y.createPolygonFeature=ei,y.findMinIndex=ws,y.getAdsorbFeature=gr,y.getAdsorbLine=Ca,y.getAdsorbPoint=Ka,y.getDefaultLineProperties=Oe,y.getDefaultPointProperties=Le,y.getDefaultPolygonProperties=et,y.getLineCenterPoint=Li,y.getLngLat=_l,y.getMapDom=Sa,y.getParentByClassName=eg,y.getPosition=Ql,y.getSingleColorStyle=function(Se){return{point:{normal:{color:Se},hover:{color:Se},active:{color:Se}},line:{normal:{color:Se},hover:{color:Se},active:{color:Se}},polygon:{normal:{color:Se},hover:{color:Se},active:{color:Se},style:{opacity:.2}},text:{normal:{color:Se},active:{color:Se}},midPoint:{normal:{color:Se}},dashLine:{normal:{color:Se}}}},y.getUuid=tu,y.isDev=!1,y.isSameFeature=Gs,y.resetEventLngLat=Du,y.splitByPosition=Ha,y.transLngLat2Position=Ju,y.updateTargetFeature=Kc,Object.defineProperty(y,"__esModule",{value:!0})})},61329:function(nt,V,m){"use strict";m.r(V),m.d(V,{AJAXError:function(){return ss},AttributeType:function(){return Ld},BKDRHash:function(){return Nf},BaseLayer:function(){return Xa},BaseMapService:function(){return JE},BaseMapWrapper:function(){return fA},BaseModel:function(){return Su},BasePostProcessingPass:function(){return O1},BlendType:function(){return Fh},ButtonControl:function(){return Y},CameraUniform:function(){return Fb},CanvasLayer:function(){return lE},CanvasUpdateType:function(){return Wf},CityBuildingLayer:function(){return hE},Control:function(){return v},CoordinateSystem:function(){return eh},CoordinateUniform:function(){return rf},DOM:function(){return y},Earth:function(){return I7},EarthLayer:function(){return lj},ExportImage:function(){return el},FrequencyController:function(){return ts},Fullscreen:function(){return Oh},GaodeMap:function(){return GF},GaodeMapV1:function(){return mV},GaodeMapV2:function(){return GF},GeoLocate:function(){return Jf},GeometryLayer:function(){return m6},HeatmapLayer:function(){return _6},IDebugLog:function(){return fm},ILayerStage:function(){return Rl},ImageLayer:function(){return jM},InteractionEvent:function(){return fg},LRUCache:function(){return kf},LayerPopup:function(){return j0},LayerSwitch:function(){return Qh},LineLayer:function(){return _E},LineTriangulation:function(){return Ut},LinearDir:function(){return Tc},LoadTileDataStatus:function(){return Df},Logo:function(){return Fl},Map:function(){return QE},MapServiceEvent:function(){return pw},MapTheme:function(){return yt},Mapbox:function(){return ck},Marker:function(){return S2},MarkerLayer:function(){return dC},MaskLayer:function(){return _O},MaskOperation:function(){return Ko},MouseLocation:function(){return Fo},PassType:function(){return Rf},PointFillTriangulation:function(){return Vt},PointLayer:function(){return $4},PolygonLayer:function(){return W4},PopperControl:function(){return Hn},Popup:function(){return _g},PositionType:function(){return go},RasterLayer:function(){return V4},RasterTileType:function(){return Pv},Satistics:function(){return A},Scale:function(){return _c},ScaleTypes:function(){return n0},Scene:function(){return OR},SceneConifg:function(){return to},SceneEventList:function(){return gw},SelectControl:function(){return Mo},SizeUnitType:function(){return jh},Source:function(){return r0},SourceTile:function(){return Od},StencilType:function(){return nf},StyleScaleType:function(){return Bb},TYPES:function(){return gr},TextureBlend:function(){return Ch},TileDebugLayer:function(){return mO},TilesetManager:function(){return _h},UpdateTileStrategy:function(){return Bc},Version:function(){return d0},Viewport:function(){return OI},WindLayer:function(){return yj},WorkerSourceMap:function(){return $r},Zoom:function(){return Ed},aProjectFlat:function(){return Mu},amap2Project:function(){return hd},amap2UnProject:function(){return vd},anchorTranslate:function(){return Tt},anchorType:function(){return Ot},applyAnchorClass:function(){return xt},bBoxToBounds:function(){return id},bindAll:function(){return Eu},boundsContains:function(){return yh},calAngle:function(){return Yc},calDistance:function(){return Pf},calculateCentroid:function(){return Lh},calculatePointsCenterAndRadius:function(){return Sf},container:function(){return _v},createLayerContainer:function(){return Rb},createSceneContainer:function(){return qm},decodePickingColor:function(){return ti},djb2hash:function(){return ch},encodePickingColor:function(){return Wi},executeWorkerTask:function(){return Rs},expandUrl:function(){return bd},extent:function(){return fu},flow:function(){return uf},formatImage:function(){return on},generateCatRamp:function(){return Gn},generateColorRamp:function(){return Tr},generateCustomRamp:function(){return Ln},generateLinearRamp:function(){return Qt},generateQuantizeRamp:function(){return yi},getAngle:function(){return Wh},getArrayBuffer:function(){return wi},getBBoxFromPoints:function(){return xp},getCullFace:function(){return Ni},getDefaultDomain:function(){return tr},getImage:function(){return jt},getJSON:function(){return Bi},getProtocolAction:function(){return Po},getReferrer:function(){return qa},getTileIndices:function(){return iu},getTileWarpXY:function(){return mp},getURLFromTemplate:function(){return $c},getWMTSURLFromTemplate:function(){return Hd},gl:function(){return Gi},guid:function(){return Th},isAndroid:function(){return vu},isColor:function(){return lo},isImageBitmap:function(){return Xs},isPC:function(){return au},isURLTemplate:function(){return Bf},isWorker:function(){return Ya},isiOS:function(){return Jl},latitude:function(){return Xd},lazyInject:function(){return dw},lazyMultiInject:function(){return jS},lineAtOffset:function(){return Vf},lineAtOffsetAsyc:function(){return vf},lineStyleType:function(){return Cc},lngLatInExtent:function(){return ml},lngLatToMeters:function(){return Uc},lnglatDistance:function(){return Yd},lodashUtil:function(){return Ma},longitude:function(){return th},makeXMLHttpRequestPromise:function(){return _o},metersToLngLat:function(){return zd},normalize:function(){return nd},osmLonLat2TileXY:function(){return Ih},osmTileXY2LonLat:function(){return of},packCircleVertex:function(){return B_},padBounds:function(){return Wd},polygonFillTriangulation:function(){return Xt},postData:function(){return io},project:function(){return nh},rgb2arr:function(){return Kr},sameOrigin:function(){return ln},setL7WorkerSource:function(){return Eo},tileToBounds:function(){return Ff},tranfrormCoord:function(){return lc},unProjectFlat:function(){return Fc},validateLngLat:function(){return sd},version:function(){return B7}});var y={};m.r(y),m.d(y,{DPR:function(){return ni},addClass:function(){return ms},addStyle:function(){return Ki},appendElementType:function(){return Ml},clearChildren:function(){return cl},create:function(){return Ji},css2Style:function(){return ns},empty:function(){return ho},findParentElement:function(){return Wa},getClass:function(){return Pc},getContainer:function(){return ia},getDiffRect:function(){return ua},getStyleList:function(){return ro},getViewPortScale:function(){return Qr},hasClass:function(){return ju},printCanvas:function(){return mr},remove:function(){return ta},removeClass:function(){return Ua},removeStyle:function(){return Ei},setChecked:function(){return Na},setClass:function(){return rc},setTransform:function(){return os},setUnDraggable:function(){return Zl},splitWords:function(){return cs},triggerResize:function(){return $n},trim:function(){return Nl}});var A={};m.r(A),m.d(A,{getColumn:function(){return cf},getSatByColumn:function(){return Qc},max:function(){return Bh},mean:function(){return ed},min:function(){return Kf},mode:function(){return Vh},statMap:function(){return Kh},sum:function(){return ah}});var b={};m.r(b),m.d(b,{add:function(){return lu},adjoint:function(){return gu},clone:function(){return Fn},copy:function(){return Kn},create:function(){return nn},determinant:function(){return Kl},equals:function(){return Xu},exactEquals:function(){return _d},frob:function(){return cu},fromQuat:function(){return Rn},fromQuat2:function(){return Z},fromRotation:function(){return xc},fromRotationTranslation:function(){return R},fromRotationTranslationScale:function(){return wt},fromRotationTranslationScaleOrigin:function(){return Wt},fromScaling:function(){return Jh},fromTranslation:function(){return Ao},fromValues:function(){return Mi},fromXRotation:function(){return fh},fromYRotation:function(){return Gd},fromZRotation:function(){return _},frustum:function(){return ur},getRotation:function(){return Qe},getScaling:function(){return Pe},getTranslation:function(){return ue},identity:function(){return Lo},invert:function(){return $u},lookAt:function(){return Da},mul:function(){return Nd},multiply:function(){return Sl},multiplyScalar:function(){return kc},multiplyScalarAndAdd:function(){return ac},ortho:function(){return Js},orthoNO:function(){return Zs},orthoZO:function(){return sl},perspective:function(){return hi},perspectiveFromFieldOfView:function(){return ko},perspectiveNO:function(){return zr},perspectiveZO:function(){return po},rotate:function(){return Va},rotateX:function(){return pu},rotateY:function(){return oc},rotateZ:function(){return cd},scale:function(){return il},set:function(){return Yo},str:function(){return Vl},sub:function(){return Yt},subtract:function(){return Hu},targetTo:function(){return Ol},translate:function(){return ql},transpose:function(){return Bo}});var z={};m.r(z),m.d(z,{add:function(){return rz},angle:function(){return EM},bezier:function(){return iX},ceil:function(){return oz},clone:function(){return yw},copy:function(){return tz},create:function(){return $_},cross:function(){return lD},dist:function(){return lX},distance:function(){return wM},div:function(){return aX},divide:function(){return iz},dot:function(){return Lx},equals:function(){return sX},exactEquals:function(){return i6},floor:function(){return e6},forEach:function(){return s6},fromValues:function(){return Yg},hermite:function(){return rX},inverse:function(){return n6},len:function(){return cD},length:function(){return aD},lerp:function(){return o0},max:function(){return Ty},min:function(){return o4},mul:function(){return o6},multiply:function(){return QN},negate:function(){return s4},normalize:function(){return A2},random:function(){return r6},rotateX:function(){return hb},rotateY:function(){return lz},rotateZ:function(){return a4},round:function(){return sz},scale:function(){return jb},scaleAndAdd:function(){return D2},set:function(){return nz},sqrDist:function(){return I2},sqrLen:function(){return Xv},squaredDistance:function(){return t6},squaredLength:function(){return SM},str:function(){return cz},sub:function(){return l4},subtract:function(){return JN},transformMat3:function(){return oX},transformMat4:function(){return uD},transformQuat:function(){return az},zero:function(){return uz}});var k={},N={},w=function(p){return N[p]},I=function(p,u){N[p]=u},C=function(p){return k[p]},f=function(p,u){k[p]=u},S={},P={},j=34,re=10,J=13;function ie(a){return new Function("d","return {"+a.map(function(p,u){return JSON.stringify(p)+": d["+u+'] || ""'}).join(",")+"}")}function de(a,p){var u=ie(a);return function(c,l){return p(u(c),l,a)}}function he(a){var p=Object.create(null),u=[];return a.forEach(function(c){for(var l in c)l in p||u.push(p[l]=l)}),u}function fe(a,p){var u=a+"",c=u.length;return c9999?"+"+fe(a,6):fe(a,4)}function we(a){var p=a.getUTCHours(),u=a.getUTCMinutes(),c=a.getUTCSeconds(),l=a.getUTCMilliseconds();return isNaN(a)?"Invalid Date":ke(a.getUTCFullYear(),4)+"-"+fe(a.getUTCMonth()+1,2)+"-"+fe(a.getUTCDate(),2)+(l?"T"+fe(p,2)+":"+fe(u,2)+":"+fe(c,2)+"."+fe(l,3)+"Z":c?"T"+fe(p,2)+":"+fe(u,2)+":"+fe(c,2)+"Z":u||p?"T"+fe(p,2)+":"+fe(u,2)+"Z":"")}function Ne(a){var p=new RegExp('["'+a+` -\r]`),u=a.charCodeAt(0);function c(Ge,St){var Mt,In,kn=l(Ge,function(Sr,_i){if(Mt)return Mt(Sr,_i-1);In=Sr,Mt=St?de(Sr,St):ie(Sr)});return kn.columns=In||[],kn}function l(Ge,St){var Mt=[],In=Ge.length,kn=0,Sr=0,_i,Vo=In<=0,zo=!1;Ge.charCodeAt(In-1)===re&&--In,Ge.charCodeAt(In-1)===J&&--In;function Ks(){if(Vo)return P;if(zo)return zo=!1,S;var Ia,al=kn,jl;if(Ge.charCodeAt(al)===j){for(;kn++=In?Vo=!0:(jl=Ge.charCodeAt(kn++))===re?zo=!0:jl===J&&(zo=!0,Ge.charCodeAt(kn)===re&&++kn),Ge.slice(al+1,Ia-1).replace(/""/g,'"')}for(;kn=200&&u.status<300||u.status===0)&&u.response!==null){var g=u.response;if(a.type==="json")try{g=JSON.parse(u.response)}catch(B){return p(B)}p(null,g,u.getResponseHeader("Cache-Control"),u.getResponseHeader("Expires"),u)}else{var T=new Blob([u.response],{type:u.getResponseHeader("Content-Type")});p(new ss(u.status,u.statusText,c.toString(),T))}},u.cancel=u.abort,u.send(a.body),u}function _o(a){return new Promise(function(p,u){ve(a,function(c,l,g,T,B){c?u({err:c,data:null,xhr:B}):p({err:null,data:l,cacheControl:g,expires:T,xhr:B})})})}function ci(a,p){return ve(a,p)}var Bi=function(p,u){var c=Po(p.url)||ci;return c((0,Ce.Z)((0,Ce.Z)({},p),{},{type:"json"}),u)},wi=function(p,u){var c=Po(p.url)||ci;return c((0,Ce.Z)((0,Ce.Z)({},p),{},{type:"arrayBuffer"}),u)},io=function(p,u){return ci((0,Ce.Z)((0,Ce.Z)({},p),{},{method:"POST"}),u)};function ln(a){var p=window.document.createElement("a");return p.href=a,p.protocol===window.document.location.protocol&&p.host===window.document.location.host}var Ve="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function _t(a,p){var u=new window.Image,c=window.URL||window.webkitURL;u.crossOrigin="anonymous",u.onload=function(){p(null,u),c.revokeObjectURL(u.src),u.onload=null,window.requestAnimationFrame(function(){u.src=Ve})},u.onerror=function(){return p(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var l=new Blob([new Uint8Array(a)],{type:"image/png"});u.src=a.byteLength?c.createObjectURL(l):Ve}function Ct(a,p){var u=new Blob([new Uint8Array(a)],{type:"image/png"});createImageBitmap(u).then(function(c){p(null,c)}).catch(function(c){p(new Error("Could not load image because of ".concat(c.message,". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.")))})}var jt=function(p,u,c){var l=function(T,B){if(T)u(T);else if(B){var G=typeof createImageBitmap=="function",te=c?c(B):B;G?Ct(te,u):_t(te,u)}};return p.type==="json"?Bi(p,l):wi(p,l)},on=function(p,u){var c=typeof createImageBitmap=="function";c?Ct(p,u):_t(p,u)},Ot=function(a){return a.CENTER="center",a.TOP="top",a["TOP-LEFT"]="top-left",a["TOP-RIGHT"]="top-right",a.BOTTOM="bottom",a["BOTTOM-LEFT"]="bottom-left",a["BOTTOM-RIGHT"]="bottom-right",a.LEFT="left",a.RIGHT="right",a}({}),Tt={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function xt(a,p,u){var c=a.classList;for(var l in Tt)Tt.hasOwnProperty(l)&&c.remove("l7-".concat(u,"-anchor-").concat(l));c.add("l7-".concat(u,"-anchor-").concat(p))}function Ht(a,p,u){a.prototype=p.prototype=u,u.constructor=a}function Zn(a,p){var u=Object.create(a.prototype);for(var c in p)u[c]=p[c];return u}function tn(){}var hr=.7,Zi=1/hr,Ri="\\s*([+-]?\\d+)\\s*",Pi="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",$o="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ys=/^#([0-9a-f]{3,8})$/,xn=new RegExp("^rgb\\("+[Ri,Ri,Ri]+"\\)$"),Hr=new RegExp("^rgb\\("+[$o,$o,$o]+"\\)$"),Jr=new RegExp("^rgba\\("+[Ri,Ri,Ri,Pi]+"\\)$"),Yi=new RegExp("^rgba\\("+[$o,$o,$o,Pi]+"\\)$"),xo=new RegExp("^hsl\\("+[Pi,$o,$o]+"\\)$"),na=new RegExp("^hsla\\("+[Pi,$o,$o,Pi]+"\\)$"),Vn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Ht(tn,Cr,{copy:function(a){return Object.assign(new this.constructor,this,a)},displayable:function(){return this.rgb().displayable()},hex:Xn,formatHex:Xn,formatHsl:Mr,formatRgb:li,toString:li});function Xn(){return this.rgb().formatHex()}function Mr(){return _r(this).formatHsl()}function li(){return this.rgb().formatRgb()}function Cr(a){var p,u;return a=(a+"").trim().toLowerCase(),(p=ys.exec(a))?(u=p[1].length,p=parseInt(p[1],16),u===6?qr(p):u===3?new Vr(p>>8&15|p>>4&240,p>>4&15|p&240,(p&15)<<4|p&15,1):u===8?ii(p>>24&255,p>>16&255,p>>8&255,(p&255)/255):u===4?ii(p>>12&15|p>>8&240,p>>8&15|p>>4&240,p>>4&15|p&240,((p&15)<<4|p&15)/255):null):(p=xn.exec(a))?new Vr(p[1],p[2],p[3],1):(p=Hr.exec(a))?new Vr(p[1]*255/100,p[2]*255/100,p[3]*255/100,1):(p=Jr.exec(a))?ii(p[1],p[2],p[3],p[4]):(p=Yi.exec(a))?ii(p[1]*255/100,p[2]*255/100,p[3]*255/100,p[4]):(p=xo.exec(a))?pn(p[1],p[2]/100,p[3]/100,1):(p=na.exec(a))?pn(p[1],p[2]/100,p[3]/100,p[4]):Vn.hasOwnProperty(a)?qr(Vn[a]):a==="transparent"?new Vr(NaN,NaN,NaN,0):null}function qr(a){return new Vr(a>>16&255,a>>8&255,a&255,1)}function ii(a,p,u,c){return c<=0&&(a=p=u=NaN),new Vr(a,p,u,c)}function rn(a){return a instanceof tn||(a=Cr(a)),a?(a=a.rgb(),new Vr(a.r,a.g,a.b,a.opacity)):new Vr}function Jn(a,p,u,c){return arguments.length===1?rn(a):new Vr(a,p,u,c==null?1:c)}function Vr(a,p,u,c){this.r=+a,this.g=+p,this.b=+u,this.opacity=+c}Ht(Vr,Jn,Zn(tn,{brighter:function(a){return a=a==null?Zi:Math.pow(Zi,a),new Vr(this.r*a,this.g*a,this.b*a,this.opacity)},darker:function(a){return a=a==null?hr:Math.pow(hr,a),new Vr(this.r*a,this.g*a,this.b*a,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:so,formatHex:so,formatRgb:rs,toString:rs}));function so(){return"#"+zt(this.r)+zt(this.g)+zt(this.b)}function rs(){var a=this.opacity;return a=isNaN(a)?1:Math.max(0,Math.min(1,a)),(a===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(a===1?")":", "+a+")")}function zt(a){return a=Math.max(0,Math.min(255,Math.round(a)||0)),(a<16?"0":"")+a.toString(16)}function pn(a,p,u,c){return c<=0?a=p=u=NaN:u<=0||u>=1?a=p=NaN:p<=0&&(a=NaN),new ui(a,p,u,c)}function _r(a){if(a instanceof ui)return new ui(a.h,a.s,a.l,a.opacity);if(a instanceof tn||(a=Cr(a)),!a)return new ui;if(a instanceof ui)return a;a=a.rgb();var p=a.r/255,u=a.g/255,c=a.b/255,l=Math.min(p,u,c),g=Math.max(p,u,c),T=NaN,B=g-l,G=(g+l)/2;return B?(p===g?T=(u-c)/B+(u0&&G<1?0:T,new ui(T,B,G,a.opacity)}function Gr(a,p,u,c){return arguments.length===1?_r(a):new ui(a,p,u,c==null?1:c)}function ui(a,p,u,c){this.h=+a,this.s=+p,this.l=+u,this.opacity=+c}Ht(ui,Gr,Zn(tn,{brighter:function(a){return a=a==null?Zi:Math.pow(Zi,a),new ui(this.h,this.s,this.l*a,this.opacity)},darker:function(a){return a=a==null?hr:Math.pow(hr,a),new ui(this.h,this.s,this.l*a,this.opacity)},rgb:function(){var a=this.h%360+(this.h<0)*360,p=isNaN(a)||isNaN(this.s)?0:this.s,u=this.l,c=u+(u<.5?u:1-u)*p,l=2*u-c;return new Vr(Ci(a>=240?a-240:a+120,l,c),Ci(a,l,c),Ci(a<120?a+240:a-120,l,c),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var a=this.opacity;return a=isNaN(a)?1:Math.max(0,Math.min(1,a)),(a===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(a===1?")":", "+a+")")}}));function Ci(a,p,u){return(a<60?p+(u-p)*a/60:a<180?u:a<240?p+(u-p)*(240-a)/60:p)*255}function lo(a){return typeof a=="string"?!!Cr(a):!1}function Kr(a){var p=Cr(a),u=[0,0,0,0];return p!=null&&(u[0]=p.r/255,u[1]=p.g/255,u[2]=p.b/255,u[3]=p.opacity),u}function ti(a){var p=a&&a[0],u=a&&a[1],c=a&&a[2],l=p+u*256+c*65536-1;return l}function Wi(a){return[a+1&255,a+1>>8&255,a+1>>8>>8&255]}function Tr(a){var p=window.document.createElement("canvas"),u=p.getContext("2d");p.width=256,p.height=1;for(var c=null,l=u.createLinearGradient(0,0,256,1),g=a.positions[0],T=a.positions[a.positions.length-1],B=0;B0&&new RegExp("(^|\\s)"+p+"(\\s|$)").test(u)}function rc(a,p){a instanceof HTMLElement?a.className=p:a.className.baseVal=p}function Pc(a){return a instanceof SVGElement&&(a=a.correspondingElement),a.className.baseVal===void 0?a.className:a.className.baseVal}function ho(a){for(;a&&a.firstChild;)a.removeChild(a.firstChild)}var qi=zi(["transform","WebkitTransform"]);function os(a,p){a.style[qi]=p}function $n(){if(typeof Event=="function")window.dispatchEvent(new Event("resize"));else{var a=window.document.createEvent("UIEvents");a.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(a)}}function mr(a){var p=["padding: "+(a.height/2-8)+"px "+a.width/2+"px;","line-height: "+a.height+"px;","background-image: url("+a.toDataURL()+");"];console.log(`%c -`,p.join(""))}function Qr(){var a,p=window.document.querySelector('meta[name="viewport"]');if(!p)return 1;var u=(a=p.content)===null||a===void 0?void 0:a.split(","),c=u.find(function(l){var g=l.split("="),T=(0,Qn.Z)(g,1),B=T[0];return B==="initial-scale"});return c?c.split("=")[1]*1:1}var ni=Qr()<1?1:window.devicePixelRatio;function Ki(a,p){a.setAttribute("style","".concat(a.style.cssText).concat(p))}function ro(a){return a.split(";").map(function(p){return p.trim()}).filter(function(p){return p})}function Ei(a,p){var u,c=ro((u=a.getAttribute("style"))!==null&&u!==void 0?u:""),l=ro(p),g=gl.apply(void 0,[c].concat((0,kr.Z)(l)));a.setAttribute("style",g.join(";"))}function ns(a){return Object.entries(a).map(function(p){var u=(0,Qn.Z)(p,2),c=u[0],l=u[1];return"".concat(c,": ").concat(l)}).join(";")}function ua(a,p){return{left:a.left-p.left,top:a.top-p.top,right:p.left+p.width-a.left-a.width,bottom:p.top+p.height-a.top-a.height}}function Na(a,p){a.checked=p,p?a.setAttribute("checked","true"):a.removeAttribute("checked")}function cl(a){a.innerHTML=""}function Zl(a){a.setAttribute("draggable","false")}function Ml(a,p){if(typeof p=="string"){var u=document.createElement("div");for(u.innerHTML=p;u.firstChild;)a.append(u.firstChild)}else Array.isArray(p)?a.append.apply(a,(0,kr.Z)(p)):a.append(p)}function Wa(a,p){for(var u=Array.isArray(p)?p:[p],c=a;c instanceof Element&&c!==window.document.body;){var l,g;if(u.find(function(T){var B;return(B=c)===null||B===void 0?void 0:B.matches(T)}))return c;c=(l=(g=c)===null||g===void 0?void 0:g.parentElement)!==null&&l!==void 0?l:null}}var ku;function Xs(a){return typeof ImageBitmap!="undefined"&&a instanceof ImageBitmap}function Ya(){return typeof importScripts=="function"}var qa=Ya()?function(){return self.worker&&self.worker.referrer}:function(){return(window.location.protocol==="blob:"?window.parent:window).location.href},Hl=(ku=navigator)===null||ku===void 0?void 0:ku.userAgent,Jl=!!Hl.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),vu=Hl.indexOf("Android")>-1||Hl.indexOf("Adr")>-1;function au(){for(var a=Hl,p=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],u=!0,c=0,l=p;c0){u=!1;break}}return u}var bn=m(4942);function Eu(a,p){a.forEach(function(u){p[u]&&(p[u]=p[u].bind(p))})}var ts=function(){function a(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:16;(0,bt.Z)(this,a),(0,bn.Z)(this,"duration",16),(0,bn.Z)(this,"timestamp",new Date().getTime()),this.duration=p}return(0,Ue.Z)(a,[{key:"run",value:function(u){var c=new Date().getTime(),l=c-this.timestamp;this.timestamp=c,l>=this.duration&&u()}}]),a}(),Vs=m(62096),ma=m(1449);function Il(a){return typeof a=="number"}var El=2*Math.PI*6378137/2;function ml(a,p){var u=(0,Qn.Z)(p,4),c=u[0],l=u[1],g=u[2],T=u[3];return a.lng>c&&a.lng<=g&&a.lat>l&&a.lat<=T}function fu(a){var p=[1/0,1/0,-1/0,-1/0];return a.forEach(function(u){var c=u.coordinates;Fu(p,c)}),p}function Fu(a,p){return Array.isArray(p[0])?p.forEach(function(u){Fu(a,u)}):(a[0]>p[0]&&(a[0]=p[0]),a[1]>p[1]&&(a[1]=p[1]),a[2]1&&arguments[1]!==void 0?arguments[1]:!0,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{enable:!0,decimal:1};a=sd(a,p);var c=a[0],l=a[1],g=c*El/180,T=Math.log(Math.tan((90+l)*Math.PI/360))/(Math.PI/180);return T=T*El/180,u.enable&&(g=Number(g.toFixed(u.decimal)),T=Number(T.toFixed(u.decimal))),a.length===3?[g,T,a[2]]:[g,T]}function zd(a){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,u=a[0],c=a[1],l=u/El*180,g=c/El*180;return g=180/Math.PI*(2*Math.atan(Math.exp(g*Math.PI/180))-Math.PI/2),p!=null&&(l=Number(l.toFixed(p)),g=Number(g.toFixed(p))),a.length===3?[l,g,a[2]]:[l,g]}function th(a){if(a==null)throw new Error("lng is required");return(a>180||a<-180)&&(a=a%360,a>180&&(a=-360+a),a<-180&&(a=360+a),a===0&&(a=0)),a}function Xd(a){if(a==null)throw new Error("lat is required");return(a>90||a<-90)&&(a=a%180,a>90&&(a=-180+a),a<-90&&(a=180+a),a===0&&(a=0)),a}function sd(a,p){if(p===!1)return a;var u=th(a[0]),c=Xd(a[1]);return c>85&&(c=85),c<-85&&(c=-85),a.length===3?[u,c,a[2]]:[u,c]}function Mu(a){var p=85.0511287798,u=Math.max(Math.min(p,a[1]),-p),c=256<<20,l=Math.PI/180,g=a[0]*l,T=u*l;T=Math.log(Math.tan(Math.PI/4+T/2));var B=.5/Math.PI,G=.5,te=-.5/Math.PI;return l=.5,g=c*(B*g+G),T=c*(te*T+l),[Math.floor(g),Math.floor(T)]}function Fc(a){var p=.5/Math.PI,u=.5,c=-.5/Math.PI,l=.5,g=256<<20,T=(0,Qn.Z)(a,2),B=T[0],G=T[1];B=(B/g-u)/p,G=(G/g-l)/c,G=(Math.atan(Math.pow(Math.E,G))-Math.PI/4)*2,l=Math.PI/180;var te=G/l,Me=B/l;return[Me,te]}function hd(a,p){var u=85.0511287798,c=Math.PI/180,l=6378137;return p=Math.max(Math.min(u,p),-u),a*=c,p*=c,p=Math.log(Math.tan(Math.PI/4+p/2)),[a*l,p*l]}function vd(a,p){var u=Math.PI/180,c=6378137,l=a/c/u,g=2*(Math.atan(Math.exp(p/c))-Math.PI/4)/u;return[l,g]}function Yd(a,p,u){var c=(0,ma.degreesToRadians)(p[1]-a[1]),l=(0,ma.degreesToRadians)(p[0]-a[0]),g=(0,ma.degreesToRadians)(a[1]),T=(0,ma.degreesToRadians)(p[1]),B=Math.pow(Math.sin(c/2),2)+Math.pow(Math.sin(l/2),2)*Math.cos(g)*Math.cos(T);return(0,ma.radiansToLength)(2*Math.atan2(Math.sqrt(B),Math.sqrt(1-B)),u="meters")}function nh(a){var p=Math.PI/180,u=85.0511287798,c=6378137,l=Math.max(Math.min(u,a[1]),-u),g=Math.sin(l*p),T=c*a[0]*p,B=c*Math.log((1+g)/(1-g))/2;return[T,B]}function Wd(a,p){var u=Math.abs(a[1][1]-a[0][1])*p,c=Math.abs(a[1][0]-a[0][0])*p;return[[a[0][0]-c,a[0][1]-u],[a[1][0]+c,a[1][1]+u]]}function yh(a,p){return a[0][0]<=p[0][0]&&a[0][1]<=p[0][1]&&a[1][0]>=p[1][0]&&a[1][1]>=p[1][1]}function id(a){return[[a[0],a[1]],[a[2],a[3]]]}function nd(a){var p=Pf(a,[0,0]);return[a[0]/p,a[1]/p]}function Pf(a,p){return Math.sqrt(Math.pow(a[0]-p[0],2)+Math.pow(a[1]-p[1],2))}function Jd(a,p){return a[0]*p[0]+a[1]*p[1]}function cc(a){return Math.sqrt(a[0]*a[0]+a[1]*a[1])}function Yc(a,p){return Math.acos(Jd(a,p)/(cc(a)*cc(p)))*180/Math.PI}function Wh(a,p){return p[0]>0?p[1]>0?90-Math.atan(p[1]/p[0])*180/Math.PI:90+Math.atan(-p[1]/p[0])*180/Math.PI:p[1]<0?180+(90-Math.atan(p[1]/p[0])*180/Math.PI):270+Math.atan(p[1]/-p[0])*180/Math.PI}function uf(a){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;if(!(!a||a.length<2)){for(var u=[0,1],c=0,l=[],g=0;g0){var Ge=l[g-1].rotation;Ge-Me>360-Ge+Me&&(Me=Me+360)}l.push({start:T,end:B,dis:G,rotation:Me,duration:0})}return l.map(function(St){St.duration=p*(St.dis/c)}),l}}function Lh(a){if(Il(a[0]))return a;if(Il(a[0][0]))throw new Error("\u5F53\u524D\u6570\u636E\u4E0D\u652F\u6301\u6807\u6CE8");if(Il(a[0][0][0])){var p=a,u=0,c=0,l=0;return p.forEach(function(g){g.forEach(function(T){u+=T[0],c+=T[1],l++})}),[u/l,c/l,0]}else throw new Error("\u5F53\u524D\u6570\u636E\u4E0D\u652F\u6301\u6807\u6CE8")}function Sf(a){for(var p=a[0],u=a[1],c=a[0],l=a[1],g=0,T=0,B=0,G=0;Gl&&(c=Math.floor(c/u)),c=c*p+a.charCodeAt(g);return c}function ch(a){a=a.toString();for(var p=5381,u=a.length;u;)p=p*33^a.charCodeAt(--u);return p>>>0}function Th(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var p=Math.random()*16|0,u=a==="x"?p:p&3|8;return u.toString(16)})}var yu=function(a){return a["GAODE1.x"]="GAODE1.x",a["GAODE2.x"]="GAODE2.x",a.MAPBOX="MAPBOX",a.DEFAULT="DEFAUlTMAP",a.SIMPLE="SIMPLE",a.GLOBEL="GLOBEL",a}({});function ff(a,p,u,c,l){var g=arguments.length>5&&arguments[5]!==void 0?arguments[5]:30,T=arguments.length>6?arguments[6]:void 0,B=u;return T&&(B=Math.round(u*(g-1))/(g-1)),c?qd(a,p,B,c,l):qd(a,p,B,.314,l)}function Ja(a,p){var u=1-p;return(a[0]*u+a[1]*p)*u+(a[1]*u+a[2]*p)*p}function Bu(a,p){return Math.sqrt(Math.pow(a[0]-p[0],2)+Math.pow(a[1]-p[1],2))}function wd(a,p,u){var c=[p[0]-a[0],p[1]-a[1]],l=Bu(c,[0,0]),g=Math.atan2(c[1],c[0]),T=l/2/Math.cos(u),B=g+u,G=[T*Math.cos(B)+a[0],T*Math.sin(B)+a[1]];return G}function qd(a,p,u,c,l){if(l===yu["GAODE2.x"]){var g=hd(a[0],a[1]),T=hd(p[0],p[1]),B=wd(g,T,c),G=[g[0],B[0],T[0]],te=[g[1],B[1],T[1]];return[].concat((0,kr.Z)(vd(Ja(G,u),Ja(te,u))),[0])}else{var Me=wd(a,p,c),Ge=[a[0],Me[0],p[0]],St=[a[1],Me[1],p[1]];return[Ja(Ge,u),Ja(St,u),0]}}function Ba(a,p,u,c,l){var g=arguments.length>5&&arguments[5]!==void 0?arguments[5]:30,T=arguments.length>6?arguments[6]:void 0,B=u;return T&&(B=Math.round(u*29)/29),Uu(a,p,B,l)}function ru(a,p){var u=[p[0]-a[0],p[1]-a[1]],c=Pf(u,[0,0]),l=Math.atan2(u[1],u[0]),g=.314,T=c/2/Math.cos(g),B=l+g,G=[T*Math.cos(B)+a[0],T*Math.sin(B)+a[1]];return G}function zl(a,p){var u=1-p;return(a[0]*u+a[1]*p)*u+(a[1]*u+a[2]*p)*p}function Au(a,p){var u=[a[0]-p[0],a[1]-p[1]],c=[Math.sin(u[0]/2),Math.sin(u[1]/2)],l=c[1]*c[1]+Math.cos(a[1])*Math.cos(p[1])*c[0]*c[0];return 2*Math.atan2(Math.sqrt(l),Math.sqrt(1-l))}function Uu(a,p,u,c){var l=[(0,ma.degreesToRadians)(a[0]),(0,ma.degreesToRadians)(a[1])],g=[(0,ma.degreesToRadians)(p[0]),(0,ma.degreesToRadians)(p[1])];if(c==="GAODE2.x"){var T=ru(l,g),B=[l[0],T[0],g[0]],G=[l[1],T[1],g[1]];return[zl(B,u),zl(G,u),0]}else{var te=Au(l,g);if(Math.abs(te-Math.PI)<.001)return[(1-u)*l[0]+u*g[0],(1-u)*l[1]+u*g[1]];var Me=Math.sin((1-u)*te)/Math.sin(te),Ge=Math.sin(u*te)/Math.sin(te),St=[Math.sin(l[0]),Math.sin(l[1])],Mt=[Math.cos(l[0]),Math.cos(l[1])],In=[Math.sin(g[0]),Math.sin(g[1])],kn=[Math.cos(g[0]),Math.cos(g[1])],Sr=Me*Mt[1]*Mt[0]+Ge*kn[1]*kn[0],_i=Me*Mt[1]*St[0]+Ge*kn[1]*In[0],Vo=Me*St[1]+Ge*In[1];return[(0,ma.radiansToDegrees)(Math.atan2(_i,Sr)),(0,ma.radiansToDegrees)(Math.atan2(Vo,Math.sqrt(Sr*Sr+_i*_i)))]}}function Vd(a,p){for(var u=0,c=[],l=0;lte){var Sr=In.p1,_i=In.p2,Vo=(te-In.lastTotalDistance)/In.distance,zo=Ud(_i,Sr,Vo);Me=zo[0],Ge=zo[1];break}}return{lng:Me,lat:Ge,height:0}}function Ud(a,p,u){return[a[0]*u+p[0]*(1-u),a[1]*u+p[1]*(1-u)]}function sh(a,p){return Math.sqrt(Math.pow(a[0]-p[0],2)+Math.pow(a[1]-p[1],2))}function Vf(a,p){var u=p.featureId,c=a.data.dataArray;return typeof u=="number"&&(c=c.filter(function(l){var g=l.id;return g===u})),c.map(function(l){var g=Uh(l,p);return(0,Ce.Z)((0,Ce.Z)({},l),g)})}function vf(a,p){return new Promise(function(u){a.inited?u(Vf(a,p)):a.once("update",function(){u(Vf(a,p))})})}function Uh(a,p){var u=p.offset,c=p.shape,l=p.thetaOffset,g=p.mapVersion,T=p.segmentNumber,B=T===void 0?30:T,G=p.autoFit,te=G===void 0?!0:G,Me=a.coordinates;if(c==="line")return Vd(Me,u);var Ge=Me[0],St=Me[1],Mt=typeof l=="string"?a[l]||0:l,In;switch(c){case"arc":In=ff;break;case"greatcircle":In=Ba;break;default:In=ff}var kn=In(Ge,St,u,Mt,g,B,te),Sr=(0,Qn.Z)(kn,3),_i=Sr[0],Vo=Sr[1],zo=Sr[2];return{lng:_i,lat:Vo,height:zo}}var kf=function(){function a(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:50,u=arguments.length>1?arguments[1]:void 0;(0,bt.Z)(this,a),this.limit=p,this.destroy=u||this.defaultDestroy,this.order=[],this.clear()}return(0,Ue.Z)(a,[{key:"clear",value:function(){var u=this;this.order.forEach(function(c){u.delete(c)}),this.cache={},this.order=[]}},{key:"get",value:function(u){var c=this.cache[u];return c&&(this.deleteOrder(u),this.appendOrder(u)),c}},{key:"set",value:function(u,c){this.cache[u]?(this.delete(u),this.cache[u]=c,this.appendOrder(u)):(Object.keys(this.cache).length===this.limit&&this.delete(this.order[0]),this.cache[u]=c,this.appendOrder(u))}},{key:"delete",value:function(u){var c=this.cache[u];c&&(this.deleteCache(u),this.deleteOrder(u),this.destroy(c,u))}},{key:"deleteCache",value:function(u){delete this.cache[u]}},{key:"deleteOrder",value:function(u){var c=this.order.findIndex(function(l){return l===u});c>=0&&this.order.splice(c,1)}},{key:"appendOrder",value:function(u){this.order.push(u)}},{key:"defaultDestroy",value:function(u,c){return null}}]),a}();function Bh(a){if(a.length===0)throw new Error("max requires at least one data point");for(var p=a[0],u=1;up&&(p=a[u]);return p*1}function Kf(a){if(a.length===0)throw new Error("min requires at least one data point");for(var p=a[0],u=1;uc&&(c=l,u=p),l=1,p=a[g]):l++;return u*1}var Kh={min:Kf,max:Bh,mean:ed,sum:ah,mode:Vh};function cf(a,p){return a.map(function(u){return u[p]})}function Qc(a,p){return Kh[a](p)}var ka=m(15861),as=m(97326),Op=m(64687),Qi=m.n(Op),bc=m(95),yf=m(26729),Qu=m.n(yf),Bc=function(a){return a.Realtime="realtime",a.Overlap="overlap",a.Replace="replace",a}({}),Df=function(a){return a.Loading="Loading",a.Loaded="Loaded",a.Failure="Failure",a.Cancelled="Cancelled",a}({}),Jp=0,sg=1,Ah=2;function ap(a){a.forEach(function(p){p.isCurrent&&(p.isVisible=p.isLoaded)})}function Rp(a){a.forEach(function(p){p.properties.state=Jp}),a.forEach(function(p){p.isCurrent&&!pg(p)&&Cp(p)}),a.forEach(function(p){p.isVisible=!!(p.properties.state&Ah)})}function tp(a){a.forEach(function(u){u.properties.state=Jp}),a.forEach(function(u){u.isCurrent&&pg(u)});var p=a.slice().sort(function(u,c){return u.z-c.z});p.forEach(function(u){u.isVisible=!!(u.properties.state&Ah),u.children.length&&(u.isVisible||u.properties.state&sg)?u.children.forEach(function(c){c.properties.state=sg}):u.isCurrent&&Cp(u)})}function pg(a){for(;a;){if(a.isLoaded)return a.properties.state|=Ah,!0;a=a.parent}return!1}function Cp(a){a.children.forEach(function(p){p.isLoaded?p.properties.state|=Ah:Cp(p)})}var Uf,Pd=256,Np=[-1/0,-1/0,1/0,1/0],$p=.2,ag=5,Md=(Uf={},(0,bn.Z)(Uf,Bc.Realtime,ap),(0,bn.Z)(Uf,Bc.Overlap,Rp),(0,bn.Z)(Uf,Bc.Replace,tp),Uf),jp=function(){};function Ih(a,p,u){var c=Math.floor((a+180)/360*Math.pow(2,u)),l=Math.floor((1-Math.log(Math.tan(p*Math.PI/180)+1/Math.cos(p*Math.PI/180))/Math.PI)/2*Math.pow(2,u));return[c,l]}function of(a,p,u){var c=a/Math.pow(2,u)*360-180,l=Math.PI-2*Math.PI*p/Math.pow(2,u),g=180/Math.PI*Math.atan(.5*(Math.exp(l)-Math.exp(-l)));return[c,g]}var Ff=function(p,u,c){var l=of(p,u,c),g=(0,Qn.Z)(l,2),T=g[0],B=g[1],G=of(p+1,u+1,c),te=(0,Qn.Z)(G,2),Me=te[0],Ge=te[1];return[T,Ge,Me,B]};function iu(a){var p=a.zoom,u=a.latLonBounds,c=a.maxZoom,l=c===void 0?1/0:c,g=a.minZoom,T=g===void 0?0:g,B=a.zoomOffset,G=B===void 0?0:B,te=a.extent,Me=te===void 0?Np:te,Ge=Math.ceil(p)+G;if(Number.isFinite(T)&&Gel&&(Ge=l);for(var St=(0,Qn.Z)(u,4),Mt=St[0],In=St[1],kn=St[2],Sr=St[3],_i=[Math.max(Mt,Me[0]),Math.max(In,Me[1]),Math.min(kn,Me[2]),Math.min(Sr,Me[3])],Vo=[],zo=Ih(_i[0],_i[1],Ge),Ks=(0,Qn.Z)(zo,2),ca=Ks[0],Ia=Ks[1],al=Ih(_i[2],_i[3],Ge),jl=(0,Qn.Z)(al,2),Wl=jl[0],Wu=jl[1],Pu=ca;Pu<=Wl;Pu++)for(var Vc=Wu;Vc<=Ia;Vc++)Vo.push({x:Pu,y:Vc,z:Ge});var dd=(Wl+ca)/2,Kd=(Ia+Wu)/2,Hp=function(Fg,mm){return Math.abs(Fg-dd)+Math.abs(mm-Kd)};return Vo.sort(function(gm,Fg){return Hp(gm.x,gm.y)-Hp(Fg.x,Fg.y)}),Vo}var mp=function(p,u,c){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,g=Math.pow(2,c),T=g-1,B=g,G=p,te=u;return l&&(G<0?G=G+B:G>T&&(G=G%B)),{warpX:G,warpY:te}};function Af(a){var p=np();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function np(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var Od=function(a){(0,ht.Z)(u,a);var p=Af(u);function u(c){var l;(0,bt.Z)(this,u),l=p.call(this),(0,bn.Z)((0,as.Z)(l),"tileSize",256),(0,bn.Z)((0,as.Z)(l),"isVisible",!1),(0,bn.Z)((0,as.Z)(l),"isCurrent",!1),(0,bn.Z)((0,as.Z)(l),"isVisibleChange",!1),(0,bn.Z)((0,as.Z)(l),"loadedLayers",0),(0,bn.Z)((0,as.Z)(l),"isLayerLoaded",!1),(0,bn.Z)((0,as.Z)(l),"isLoad",!1),(0,bn.Z)((0,as.Z)(l),"isChildLoad",!1),(0,bn.Z)((0,as.Z)(l),"parent",null),(0,bn.Z)((0,as.Z)(l),"children",[]),(0,bn.Z)((0,as.Z)(l),"data",null),(0,bn.Z)((0,as.Z)(l),"properties",{}),(0,bn.Z)((0,as.Z)(l),"loadDataId",0);var g=c.x,T=c.y,B=c.z,G=c.tileSize,te=c.warp,Me=te===void 0?!0:te;return l.x=g,l.y=T,l.z=B,l.warp=Me||!0,l.tileSize=G,l}return(0,Ue.Z)(u,[{key:"isLoading",get:function(){return this.loadStatus===Df.Loading}},{key:"isLoaded",get:function(){return this.loadStatus===Df.Loaded}},{key:"isFailure",get:function(){return this.loadStatus===Df.Failure}},{key:"setTileLayerLoaded",value:function(){this.isLayerLoaded=!0}},{key:"isCancelled",get:function(){return this.loadStatus===Df.Cancelled}},{key:"isDone",get:function(){return[Df.Loaded,Df.Cancelled,Df.Failure].includes(this.loadStatus)}},{key:"bounds",get:function(){return Ff(this.x,this.y,this.z)}},{key:"bboxPolygon",get:function(){var l=(0,Qn.Z)(this.bounds,4),g=l[0],T=l[1],B=l[2],G=l[3],te=[(B-g)/2,(G-T)/2],Me=(0,bc.Z)(this.bounds,{properties:{key:this.key,id:this.key,bbox:this.bounds,center:te,meta:` +`,_o=function(){var Bi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ge,Ci=(0,dt.useContext)(_n.Z),io=Ci.csp;(0,dt.useEffect)(function(){(0,gt.hq)(Bi,"@ant-design-icons",{prepend:!0,csp:io})},[])}},91851:function(nt,V,m){"use strict";m.d(V,{Z:function(){return wt}});var y=m(26508),I=m(39718),b=m(80268),z=m(52528),k=m(77617),N=m(12124),w=m.n(N),A=m(63511),C=m(35954),f=m(74710),S=m(91002),P=m(68063),W=m(85207),ne=m(46644);function re(dt){return dt.replace(/-(.)/g,function(Bt,gt){return gt.toUpperCase()})}function ce(dt,Bt){(0,ne.ZP)(dt,"[@ant-design/icons] ".concat(Bt))}function pe(dt){return(0,S.Z)(dt)==="object"&&typeof dt.name=="string"&&typeof dt.theme=="string"&&((0,S.Z)(dt.icon)==="object"||typeof dt.icon=="function")}function he(){var dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(dt).reduce(function(Bt,gt){var _n=dt[gt];switch(gt){case"class":Bt.className=_n,delete Bt.class;break;default:delete Bt[gt],Bt[re(gt)]=_n}return Bt},{})}function fe(dt,Bt,gt){return gt?k.createElement(dt.tag,(0,f.Z)((0,f.Z)({key:Bt},he(dt.attrs)),gt),(dt.children||[]).map(function(_n,Bn){return fe(_n,"".concat(Bt,"-").concat(dt.tag,"-").concat(Bn))})):k.createElement(dt.tag,(0,f.Z)({key:Bt},he(dt.attrs)),(dt.children||[]).map(function(_n,Bn){return fe(_n,"".concat(Bt,"-").concat(dt.tag,"-").concat(Bn))}))}function Be(dt){return(0,A.R_)(dt)[0]}function Ie(dt){return dt?Array.isArray(dt)?dt:[dt]:[]}var We={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},De=` +.anticon { + display: inline-block; + color: inherit; + font-style: normal; + line-height: 0; + text-align: center; + text-transform: none; + vertical-align: -0.125em; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.anticon > * { + line-height: 1; +} + +.anticon svg { + display: inline-block; +} + +.anticon::before { + display: none; +} + +.anticon .anticon-icon { + display: block; +} + +.anticon[tabindex] { + cursor: pointer; +} + +.anticon-spin::before, +.anticon-spin { + display: inline-block; + -webkit-animation: loadingCircle 1s infinite linear; + animation: loadingCircle 1s infinite linear; +} + +@-webkit-keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} + +@keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +`,ve=function(Bt){var gt=(0,k.useContext)(C.Z),_n=gt.csp,Bn=gt.prefixCls,Er=De;Bn&&(Er=Er.replace(/anticon/g,Bn)),(0,k.useEffect)(function(){var Yr=Bt.current,oi=(0,W.A)(Yr);(0,P.hq)(Er,"@ant-design-icons",{prepend:!0,csp:_n,attachTo:oi})},[])},ye=["icon","className","onClick","style","primaryColor","secondaryColor"],we={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Ce(dt){var Bt=dt.primaryColor,gt=dt.secondaryColor;we.primaryColor=Bt,we.secondaryColor=gt||Be(Bt),we.calculated=!!gt}function Ae(){return(0,f.Z)({},we)}var me=function(Bt){var gt=Bt.icon,_n=Bt.className,Bn=Bt.onClick,Er=Bt.style,Yr=Bt.primaryColor,oi=Bt.secondaryColor,to=(0,z.Z)(Bt,ye),yo=k.useRef(),yr=we;if(Yr&&(yr={primaryColor:Yr,secondaryColor:oi||Be(Yr)}),ve(yo),ce(pe(gt),"icon should be icon definiton, but got ".concat(gt)),!pe(gt))return null;var Po=gt;return Po&&typeof Po.icon=="function"&&(Po=(0,f.Z)((0,f.Z)({},Po),{},{icon:Po.icon(yr.primaryColor,yr.secondaryColor)})),fe(Po.icon,"svg-".concat(Po.name),(0,f.Z)((0,f.Z)({className:_n,onClick:Bn,style:Er,"data-icon":Po.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},to),{},{ref:yo}))};me.displayName="IconReact",me.getTwoToneColors=Ae,me.setTwoToneColors=Ce;var je=me;function xe(dt){var Bt=Ie(dt),gt=(0,I.Z)(Bt,2),_n=gt[0],Bn=gt[1];return je.setTwoToneColors({primaryColor:_n,secondaryColor:Bn})}function Pt(){var dt=je.getTwoToneColors();return dt.calculated?[dt.primaryColor,dt.secondaryColor]:dt.primaryColor}var ct=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];xe(A.iN.primary);var He=k.forwardRef(function(dt,Bt){var gt,_n=dt.className,Bn=dt.icon,Er=dt.spin,Yr=dt.rotate,oi=dt.tabIndex,to=dt.onClick,yo=dt.twoToneColor,yr=(0,z.Z)(dt,ct),Po=k.useContext(C.Z),as=Po.prefixCls,ge=as===void 0?"anticon":as,_o=Po.rootClassName,ci=w()(_o,ge,(gt={},(0,b.Z)(gt,"".concat(ge,"-").concat(Bn.name),!!Bn.name),(0,b.Z)(gt,"".concat(ge,"-spin"),!!Er||Bn.name==="loading"),gt),_n),Bi=oi;Bi===void 0&&to&&(Bi=-1);var Ci=Yr?{msTransform:"rotate(".concat(Yr,"deg)"),transform:"rotate(".concat(Yr,"deg)")}:void 0,io=Ie(yo),ln=(0,I.Z)(io,2),Ve=ln[0],_t=ln[1];return k.createElement("span",(0,y.Z)({role:"img","aria-label":Bn.name},yr,{ref:Bt,tabIndex:Bi,onClick:to,className:ci}),k.createElement(je,{icon:Bn,primaryColor:Ve,secondaryColor:_t,style:Ci}))});He.displayName="AntdIcon",He.getTwoToneColor=Pt,He.setTwoToneColor=xe;var wt=He},35954:function(nt,V,m){"use strict";var y=m(77617),I=(0,y.createContext)({});V.Z=I},95934:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(26508),I=m(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},z=b,k=m(91851),N=function(C,f){return I.createElement(k.Z,(0,y.Z)({},C,{ref:f,icon:z}))},w=I.forwardRef(N)},75769:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(26508),I=m(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},z=b,k=m(91851),N=function(C,f){return I.createElement(k.Z,(0,y.Z)({},C,{ref:f,icon:z}))},w=I.forwardRef(N)},48796:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(26508),I=m(77617),b={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},z=b,k=m(91851),N=function(C,f){return I.createElement(k.Z,(0,y.Z)({},C,{ref:f,icon:z}))},w=I.forwardRef(N)},49934:function(nt,V,m){"use strict";var y=m(26508),I=m(77617),b=m(7786),z=m(91851),k=function(w,A){return I.createElement(z.Z,(0,y.Z)({},w,{ref:A,icon:b.Z}))};V.Z=I.forwardRef(k)},42884:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(26508),I=m(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},z=b,k=m(91851),N=function(C,f){return I.createElement(k.Z,(0,y.Z)({},C,{ref:f,icon:z}))},w=I.forwardRef(N)},93319:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(26508),I=m(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},z=b,k=m(91851),N=function(C,f){return I.createElement(k.Z,(0,y.Z)({},C,{ref:f,icon:z}))},w=I.forwardRef(N)},86850:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(26508),I=m(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},z=b,k=m(91851),N=function(C,f){return I.createElement(k.Z,(0,y.Z)({},C,{ref:f,icon:z}))},w=I.forwardRef(N)},15997:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(26508),I=m(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},z=b,k=m(91851),N=function(C,f){return I.createElement(k.Z,(0,y.Z)({},C,{ref:f,icon:z}))},w=I.forwardRef(N)},37748:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(26508),I=m(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},z=b,k=m(91851),N=function(C,f){return I.createElement(k.Z,(0,y.Z)({},C,{ref:f,icon:z}))},w=I.forwardRef(N)},52063:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(26508),I=m(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},z=b,k=m(91851),N=function(C,f){return I.createElement(k.Z,(0,y.Z)({},C,{ref:f,icon:z}))},w=I.forwardRef(N)},38521:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(26508),I=m(77617),b={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},z=b,k=m(91851),N=function(C,f){return I.createElement(k.Z,(0,y.Z)({},C,{ref:f,icon:z}))},w=I.forwardRef(N)},22311:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(26508),I=m(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},z=b,k=m(91851),N=function(C,f){return I.createElement(k.Z,(0,y.Z)({},C,{ref:f,icon:z}))},w=I.forwardRef(N)},46820:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(26508),I=m(77617),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},z=b,k=m(91851),N=function(C,f){return I.createElement(k.Z,(0,y.Z)({},C,{ref:f,icon:z}))},w=I.forwardRef(N)},93343:function(){window._iconfont_svg_string_3580659='',function(nt){try{let C=function(){k||(k=!0,b())},f=function(){try{z.documentElement.doScroll("left")}catch(S){return void setTimeout(f,50)}C()};var w=C,A=f,m=(m=document.getElementsByTagName("script"))[m.length-1],V=m.getAttribute("data-injectcss"),m=m.getAttribute("data-disable-injectsvg");if(!m){var y,I,b,z,k,N=function(P,W){W.parentNode.insertBefore(P,W)};if(V&&!nt.__iconfont__svg__cssinject__){nt.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(S){console&&console.log(S)}}y=function(){var P,W=document.createElement("div");W.innerHTML=nt._iconfont_svg_string_3580659,(W=W.getElementsByTagName("svg")[0])&&(W.setAttribute("aria-hidden","true"),W.style.position="absolute",W.style.width=0,W.style.height=0,W.style.overflow="hidden",W=W,(P=document.body).firstChild?N(W,P.firstChild):P.appendChild(W))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(y,0):(I=function(){document.removeEventListener("DOMContentLoaded",I,!1),y()},document.addEventListener("DOMContentLoaded",I,!1)):document.attachEvent&&(b=y,z=nt.document,k=!1,f(),z.onreadystatechange=function(){z.readyState=="complete"&&(z.onreadystatechange=null,C())})}}catch(C){}}(window)},68503:function(nt,V,m){(function(y,I){I(V,m(5552))})(this,function(y,I){"use strict";var b={draw:"crosshair",pointHover:"pointer",pointDrag:"move",lineHover:"pointer",lineDrag:"move",polygonHover:"pointer",polygonDrag:"move"},z={point:[],line:[],polygon:[],midPoint:[],dashLine:[],text:[]},k="top",N="bottom",w="right",A="left",C="auto",f=[k,N,w,A],S="start",P="end",W="clippingParents",ne="viewport",re="popper",ce="reference",pe=f.reduce(function(be,ze){return be.concat([ze+"-"+S,ze+"-"+P])},[]),he=[].concat(f,[C]).reduce(function(be,ze){return be.concat([ze,ze+"-"+S,ze+"-"+P])},[]),fe=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Be(be){return be?(be.nodeName||"").toLowerCase():null}function Ie(be){if(be==null)return window;if(""+be!="[object Window]"){var ze=be.ownerDocument;return ze&&ze.defaultView||window}return be}function We(be){return be instanceof Ie(be).Element||be instanceof Element}function De(be){return be instanceof Ie(be).HTMLElement||be instanceof HTMLElement}function ve(be){return typeof ShadowRoot!="undefined"&&(be instanceof Ie(be).ShadowRoot||be instanceof ShadowRoot)}var ye={name:"applyStyles",enabled:!0,phase:"write",fn:function(be){var ze=be.state;Object.keys(ze.elements).forEach(function(Je){var Oe=ze.styles[Je]||{},ot=ze.attributes[Je]||{},Lt=ze.elements[Je];De(Lt)&&Be(Lt)&&(Object.assign(Lt.style,Oe),Object.keys(ot).forEach(function(nn){var Fn=ot[nn];Fn===!1?Lt.removeAttribute(nn):Lt.setAttribute(nn,Fn===!0?"":Fn)}))})},effect:function(be){var ze=be.state,Je={popper:{position:ze.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(ze.elements.popper.style,Je.popper),ze.styles=Je,ze.elements.arrow&&Object.assign(ze.elements.arrow.style,Je.arrow),function(){Object.keys(ze.elements).forEach(function(Oe){var ot=ze.elements[Oe],Lt=ze.attributes[Oe]||{},nn=Object.keys(ze.styles.hasOwnProperty(Oe)?ze.styles[Oe]:Je[Oe]).reduce(function(Fn,Kn){return Fn[Kn]="",Fn},{});De(ot)&&Be(ot)&&(Object.assign(ot.style,nn),Object.keys(Lt).forEach(function(Fn){ot.removeAttribute(Fn)}))})}},requires:["computeStyles"]};function we(be){return be.split("-")[0]}var Ce=Math.max,Ae=Math.min,me=Math.round;function je(){var be=navigator.userAgentData;return be!=null&&be.brands&&Array.isArray(be.brands)?be.brands.map(function(ze){return ze.brand+"/"+ze.version}).join(" "):navigator.userAgent}function xe(){return!/^((?!chrome|android).)*safari/i.test(je())}function Pt(be,ze,Je){ze===void 0&&(ze=!1),Je===void 0&&(Je=!1);var Oe=be.getBoundingClientRect(),ot=1,Lt=1;ze&&De(be)&&(ot=be.offsetWidth>0&&me(Oe.width)/be.offsetWidth||1,Lt=be.offsetHeight>0&&me(Oe.height)/be.offsetHeight||1);var nn=(We(be)?Ie(be):window).visualViewport,Fn=!xe()&&Je,Kn=(Oe.left+(Fn&&nn?nn.offsetLeft:0))/ot,Mi=(Oe.top+(Fn&&nn?nn.offsetTop:0))/Lt,Yo=Oe.width/ot,Lo=Oe.height/Lt;return{width:Yo,height:Lo,top:Mi,right:Kn+Yo,bottom:Mi+Lo,left:Kn,x:Kn,y:Mi}}function ct(be){var ze=Pt(be),Je=be.offsetWidth,Oe=be.offsetHeight;return Math.abs(ze.width-Je)>1||(Je=ze.width),Math.abs(ze.height-Oe)>1||(Oe=ze.height),{x:be.offsetLeft,y:be.offsetTop,width:Je,height:Oe}}function He(be,ze){var Je=ze.getRootNode&&ze.getRootNode();if(be.contains(ze))return!0;if(Je&&ve(Je)){var Oe=ze;do{if(Oe&&be.isSameNode(Oe))return!0;Oe=Oe.parentNode||Oe.host}while(Oe)}return!1}function wt(be){return Ie(be).getComputedStyle(be)}function dt(be){return["table","td","th"].indexOf(Be(be))>=0}function Bt(be){return((We(be)?be.ownerDocument:be.document)||window.document).documentElement}function gt(be){return Be(be)==="html"?be:be.assignedSlot||be.parentNode||(ve(be)?be.host:null)||Bt(be)}function _n(be){return De(be)&&wt(be).position!=="fixed"?be.offsetParent:null}function Bn(be){for(var ze=Ie(be),Je=_n(be);Je&&dt(Je)&&wt(Je).position==="static";)Je=_n(Je);return Je&&(Be(Je)==="html"||Be(Je)==="body"&&wt(Je).position==="static")?ze:Je||function(Oe){var ot=/firefox/i.test(je());if(/Trident/i.test(je())&&De(Oe)&&wt(Oe).position==="fixed")return null;var Lt=gt(Oe);for(ve(Lt)&&(Lt=Lt.host);De(Lt)&&0>["html","body"].indexOf(Be(Lt));){var nn=wt(Lt);if(nn.transform!=="none"||nn.perspective!=="none"||nn.contain==="paint"||["transform","perspective"].indexOf(nn.willChange)!==-1||ot&&nn.willChange==="filter"||ot&&nn.filter&&nn.filter!=="none")return Lt;Lt=Lt.parentNode}return null}(be)||ze}function Er(be){return 0>["top","bottom"].indexOf(be)?"y":"x"}function Yr(be,ze,Je){return Ce(be,Ae(ze,Je))}function oi(be){return Object.assign({},{top:0,right:0,bottom:0,left:0},be)}function to(be,ze){return ze.reduce(function(Je,Oe){return Je[Oe]=be,Je},{})}var yo={name:"arrow",enabled:!0,phase:"main",fn:function(be){var ze,Je=be.state,Oe=be.name,ot=be.options,Lt=Je.elements.arrow,nn=Je.modifiersData.popperOffsets,Fn=we(Je.placement),Kn=Er(Fn),Mi=[A,w].indexOf(Fn)>=0?"height":"width";if(Lt&&nn){var Yo=function(pu,ic){return oi(typeof(pu=typeof pu=="function"?pu(Object.assign({},ic.rects,{placement:ic.placement})):pu)!="number"?pu:to(pu,f))}(ot.padding,Je),Lo=ct(Lt),Bo=Kn==="y"?k:A,zu=Kn==="y"?N:w,gu=Je.rects.reference[Mi]+Je.rects.reference[Kn]-nn[Kn]-Je.rects.popper[Mi],Gl=nn[Kn]-Je.rects.reference[Kn],Sl=Bn(Lt),Kl=Sl?Kn==="y"?Sl.clientHeight||0:Sl.clientWidth||0:0,rl=Kl/2-Lo[Mi]/2+(gu/2-Gl/2),Va=Yr(Yo[Bo],rl,Kl-Lo[Mi]-Yo[zu]);Je.modifiersData[Oe]=((ze={})[Kn]=Va,ze.centerOffset=Va-rl,ze)}},effect:function(be){var ze=be.state,Je=be.options.element,Oe=Je===void 0?"[data-popper-arrow]":Je;Oe!=null&&(typeof Oe!="string"||(Oe=ze.elements.popper.querySelector(Oe)))&&He(ze.elements.popper,Oe)&&(ze.elements.arrow=Oe)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function yr(be){return be.split("-")[1]}var Po={top:"auto",right:"auto",bottom:"auto",left:"auto"};function as(be){var ze,Je=be.popper,Oe=be.popperRect,ot=be.placement,Lt=be.variation,nn=be.offsets,Fn=be.position,Kn=be.gpuAcceleration,Mi=be.adaptive,Yo=be.roundOffsets,Lo=be.isFixed,Bo=nn.x,zu=Bo===void 0?0:Bo,gu=nn.y,Gl=gu===void 0?0:gu,Sl=typeof Yo=="function"?Yo({x:zu,y:Gl}):{x:zu,y:Gl};zu=Sl.x,Gl=Sl.y;var Kl=nn.hasOwnProperty("x"),rl=nn.hasOwnProperty("y"),Va=A,pu=k,ic=window;if(Mi){var od=Bn(Je),Ao="clientHeight",Qh="clientWidth";od===Ie(Je)&&wt(od=Bt(Je)).position!=="static"&&Fn==="absolute"&&(Ao="scrollHeight",Qh="scrollWidth"),(ot===k||(ot===A||ot===w)&&Lt===P)&&(pu=N,Gl-=(Lo&&od===ic&&ic.visualViewport?ic.visualViewport.height:od[Ao])-Oe.height,Gl*=Kn?1:-1),(ot===A||(ot===k||ot===N)&&Lt===P)&&(Va=w,zu-=(Lo&&od===ic&&ic.visualViewport?ic.visualViewport.width:od[Qh])-Oe.width,zu*=Kn?1:-1)}var xc,hh=Object.assign({position:Fn},Mi&&Po),Gd=Yo===!0?function(_,R){var G=_.y,le=R.devicePixelRatio||1;return{x:me(_.x*le)/le||0,y:me(G*le)/le||0}}({x:zu,y:Gl},Ie(Je)):{x:zu,y:Gl};return zu=Gd.x,Gl=Gd.y,Object.assign({},hh,Kn?((xc={})[pu]=rl?"0":"",xc[Va]=Kl?"0":"",xc.transform=(ic.devicePixelRatio||1)>1?"translate3d("+zu+"px, "+Gl+"px, 0)":"translate("+zu+"px, "+Gl+"px)",xc):((ze={})[pu]=rl?Gl+"px":"",ze[Va]=Kl?zu+"px":"",ze.transform="",ze))}var ge={passive:!0},_o={left:"right",right:"left",bottom:"top",top:"bottom"};function ci(be){return be.replace(/left|right|bottom|top/g,function(ze){return _o[ze]})}var Bi={start:"end",end:"start"};function Ci(be){return be.replace(/start|end/g,function(ze){return Bi[ze]})}function io(be){var ze=Ie(be);return{scrollLeft:ze.pageXOffset,scrollTop:ze.pageYOffset}}function ln(be){return Pt(Bt(be)).left+io(be).scrollLeft}function Ve(be){var ze=wt(be);return/auto|scroll|overlay|hidden/.test(ze.overflow+ze.overflowY+ze.overflowX)}function _t(be){return 0>["html","body","#document"].indexOf(Be(be))?De(be)&&Ve(be)?be:_t(gt(be)):be.ownerDocument.body}function xt(be,ze){var Je;ze===void 0&&(ze=[]);var Oe=_t(be),ot=Oe===((Je=be.ownerDocument)==null?void 0:Je.body),Lt=Ie(Oe),nn=ot?[Lt].concat(Lt.visualViewport||[],Ve(Oe)?Oe:[]):Oe,Fn=ze.concat(nn);return ot?Fn:Fn.concat(xt(gt(nn)))}function Wt(be){return Object.assign({},be,{left:be.x,top:be.y,right:be.x+be.width,bottom:be.y+be.height})}function on(be,ze,Je){return ze===ne?Wt(function(Oe,ot){var Lt=Ie(Oe),nn=Bt(Oe),Fn=Lt.visualViewport,Kn=nn.clientWidth,Mi=nn.clientHeight,Yo=0,Lo=0;if(Fn){Kn=Fn.width,Mi=Fn.height;var Bo=xe();(Bo||!Bo&&ot==="fixed")&&(Yo=Fn.offsetLeft,Lo=Fn.offsetTop)}return{width:Kn,height:Mi,x:Yo+ln(Oe),y:Lo}}(be,Je)):We(ze)?function(Oe,ot){var Lt=Pt(Oe,!1,ot==="fixed");return Lt.top=Lt.top+Oe.clientTop,Lt.left=Lt.left+Oe.clientLeft,Lt.bottom=Lt.top+Oe.clientHeight,Lt.right=Lt.left+Oe.clientWidth,Lt.width=Oe.clientWidth,Lt.height=Oe.clientHeight,Lt.x=Lt.left,Lt.y=Lt.top,Lt}(ze,Je):Wt(function(Oe){var ot,Lt=Bt(Oe),nn=io(Oe),Fn=(ot=Oe.ownerDocument)==null?void 0:ot.body,Kn=Ce(Lt.scrollWidth,Lt.clientWidth,Fn?Fn.scrollWidth:0,Fn?Fn.clientWidth:0),Mi=Ce(Lt.scrollHeight,Lt.clientHeight,Fn?Fn.scrollHeight:0,Fn?Fn.clientHeight:0),Yo=-nn.scrollLeft+ln(Oe),Lo=-nn.scrollTop;return wt(Fn||Lt).direction==="rtl"&&(Yo+=Ce(Lt.clientWidth,Fn?Fn.clientWidth:0)-Kn),{width:Kn,height:Mi,x:Yo,y:Lo}}(Bt(be)))}function Ot(be,ze,Je,Oe){var ot=ze==="clippingParents"?function(Fn){var Kn=xt(gt(Fn)),Mi=["absolute","fixed"].indexOf(wt(Fn).position)>=0&&De(Fn)?Bn(Fn):Fn;return We(Mi)?Kn.filter(function(Yo){return We(Yo)&&He(Yo,Mi)&&Be(Yo)!=="body"}):[]}(be):[].concat(ze),Lt=[].concat(ot,[Je]),nn=Lt.reduce(function(Fn,Kn){var Mi=on(be,Kn,Oe);return Fn.top=Ce(Mi.top,Fn.top),Fn.right=Ae(Mi.right,Fn.right),Fn.bottom=Ae(Mi.bottom,Fn.bottom),Fn.left=Ce(Mi.left,Fn.left),Fn},on(be,Lt[0],Oe));return nn.width=nn.right-nn.left,nn.height=nn.bottom-nn.top,nn.x=nn.left,nn.y=nn.top,nn}function Tt(be){var ze,Je=be.reference,Oe=be.element,ot=be.placement,Lt=ot?we(ot):null,nn=ot?yr(ot):null,Fn=Je.x+Je.width/2-Oe.width/2,Kn=Je.y+Je.height/2-Oe.height/2;switch(Lt){case k:ze={x:Fn,y:Je.y-Oe.height};break;case N:ze={x:Fn,y:Je.y+Je.height};break;case w:ze={x:Je.x+Je.width,y:Kn};break;case A:ze={x:Je.x-Oe.width,y:Kn};break;default:ze={x:Je.x,y:Je.y}}var Mi=Lt?Er(Lt):null;if(Mi!=null){var Yo=Mi==="y"?"height":"width";switch(nn){case S:ze[Mi]=ze[Mi]-(Je[Yo]/2-Oe[Yo]/2);break;case P:ze[Mi]=ze[Mi]+(Je[Yo]/2-Oe[Yo]/2)}}return ze}function bt(be,ze){ze===void 0&&(ze={});var Je=ze.placement,Oe=Je===void 0?be.placement:Je,ot=ze.strategy,Lt=ot===void 0?be.strategy:ot,nn=ze.boundary,Fn=nn===void 0?W:nn,Kn=ze.rootBoundary,Mi=Kn===void 0?ne:Kn,Yo=ze.elementContext,Lo=Yo===void 0?re:Yo,Bo=ze.altBoundary,zu=Bo!==void 0&&Bo,gu=ze.padding,Gl=gu===void 0?0:gu,Sl=oi(typeof Gl!="number"?Gl:to(Gl,f)),Kl=be.rects.popper,rl=be.elements[zu?Lo===re?ce:re:Lo],Va=Ot(We(rl)?rl:rl.contextElement||Bt(be.elements.popper),Fn,Mi,Lt),pu=Pt(be.elements.reference),ic=Tt({reference:pu,element:Kl,strategy:"absolute",placement:Oe}),od=Wt(Object.assign({},Kl,ic)),Ao=Lo===re?od:pu,Qh={top:Va.top-Ao.top+Sl.top,bottom:Ao.bottom-Va.bottom+Sl.bottom,left:Va.left-Ao.left+Sl.left,right:Ao.right-Va.right+Sl.right},xc=be.modifiersData.offset;if(Lo===re&&xc){var hh=xc[Oe];Object.keys(Qh).forEach(function(Gd){var _=0>[w,N].indexOf(Gd)?-1:1;Qh[Gd]+=hh[0>[k,N].indexOf(Gd)?"x":"y"]*_})}return Qh}function Ht(be,ze){ze===void 0&&(ze={});var Je=ze.boundary,Oe=ze.rootBoundary,ot=ze.padding,Lt=ze.flipVariations,nn=ze.allowedAutoPlacements,Fn=nn===void 0?he:nn,Kn=yr(ze.placement),Mi=Kn?Lt?pe:pe.filter(function(Bo){return yr(Bo)===Kn}):f,Yo=Mi.filter(function(Bo){return Fn.indexOf(Bo)>=0});Yo.length===0&&(Yo=Mi);var Lo=Yo.reduce(function(Bo,zu){return Bo[zu]=bt(be,{placement:zu,boundary:Je,rootBoundary:Oe,padding:ot})[we(zu)],Bo},{});return Object.keys(Lo).sort(function(Bo,zu){return Lo[Bo]-Lo[zu]})}var Wn={name:"flip",enabled:!0,phase:"main",fn:function(be){var ze=be.state,Je=be.options,Oe=be.name;if(!ze.modifiersData[Oe]._skip){for(var ot=Je.mainAxis,Lt=ot===void 0||ot,nn=Je.altAxis,Fn=nn===void 0||nn,Kn=Je.fallbackPlacements,Mi=Je.padding,Yo=Je.boundary,Lo=Je.rootBoundary,Bo=Je.altBoundary,zu=Je.flipVariations,gu=zu===void 0||zu,Gl=Je.allowedAutoPlacements,Sl=ze.options.placement,Kl=we(Sl),rl=Kn||(Kl===Sl||!gu?[ci(Sl)]:function(ur){if(we(ur)===C)return[];var zr=ci(ur);return[Ci(ur),zr,Ci(zr)]}(Sl)),Va=[Sl].concat(rl).reduce(function(ur,zr){return ur.concat(we(zr)===C?Ht(ze,{placement:zr,boundary:Yo,rootBoundary:Lo,padding:Mi,flipVariations:gu,allowedAutoPlacements:Gl}):zr)},[]),pu=ze.rects.reference,ic=ze.rects.popper,od=new Map,Ao=!0,Qh=Va[0],xc=0;Va.length>xc;xc++){var hh=Va[xc],Gd=we(hh),_=yr(hh)===S,R=[k,N].indexOf(Gd)>=0,G=R?"width":"height",le=bt(ze,{placement:hh,boundary:Yo,rootBoundary:Lo,altBoundary:Bo,padding:Mi}),ke=R?_?w:A:_?N:k;pu[G]>ic[G]&&(ke=ci(ke));var Qe=ci(ke),Ct=[];if(Lt&&Ct.push(0>=le[Gd]),Fn&&Ct.push(0>=le[ke],0>=le[Qe]),Ct.every(function(ur){return ur})){Qh=hh,Ao=!1;break}od.set(hh,Ct)}if(Ao)for(var jt=function(ur){var zr=Va.find(function(hi){var po=od.get(hi);if(po)return po.slice(0,ur).every(function(ko){return ko})});if(zr)return Qh=zr,"break"},Rn=gu?3:1;Rn>0&&jt(Rn)!=="break";Rn--);ze.placement!==Qh&&(ze.modifiersData[Oe]._skip=!0,ze.placement=Qh,ze.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function tn(be,ze,Je){return Je===void 0&&(Je={x:0,y:0}),{top:be.top-ze.height-Je.y,right:be.right-ze.width+Je.x,bottom:be.bottom-ze.height+Je.y,left:be.left-ze.width-Je.x}}function hr(be){return[k,w,N,A].some(function(ze){return be[ze]>=0})}var Zi={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(be){var ze=be.state,Je=be.name,Oe=be.options.offset,ot=Oe===void 0?[0,0]:Oe,Lt=he.reduce(function(Kn,Mi){return Kn[Mi]=function(Yo,Lo,Bo){var zu=we(Yo),gu=0>[A,k].indexOf(zu)?1:-1,Gl=typeof Bo=="function"?Bo(Object.assign({},Lo,{placement:Yo})):Bo,Sl=Gl[0],Kl=Gl[1];return Sl=Sl||0,Kl=(Kl||0)*gu,0>[A,w].indexOf(zu)?{x:Sl,y:Kl}:{x:Kl,y:Sl}}(Mi,ze.rects,ot),Kn},{}),nn=Lt[ze.placement],Fn=nn.y;ze.modifiersData.popperOffsets!=null&&(ze.modifiersData.popperOffsets.x+=nn.x,ze.modifiersData.popperOffsets.y+=Fn),ze.modifiersData[Je]=Lt}},Ri={name:"preventOverflow",enabled:!0,phase:"main",fn:function(be){var ze=be.state,Je=be.options,Oe=be.name,ot=Je.mainAxis,Lt=ot===void 0||ot,nn=Je.altAxis,Fn=nn!==void 0&&nn,Kn=Je.tether,Mi=Kn===void 0||Kn,Yo=Je.tetherOffset,Lo=Yo===void 0?0:Yo,Bo=bt(ze,{boundary:Je.boundary,rootBoundary:Je.rootBoundary,padding:Je.padding,altBoundary:Je.altBoundary}),zu=we(ze.placement),gu=yr(ze.placement),Gl=!gu,Sl=Er(zu),Kl=Sl==="x"?"y":"x",rl=ze.modifiersData.popperOffsets,Va=ze.rects.reference,pu=ze.rects.popper,ic=typeof Lo=="function"?Lo(Object.assign({},ze.rects,{placement:ze.placement})):Lo,od=typeof ic=="number"?{mainAxis:ic,altAxis:ic}:Object.assign({mainAxis:0,altAxis:0},ic),Ao=ze.modifiersData.offset?ze.modifiersData.offset[ze.placement]:null,Qh={x:0,y:0};if(rl){if(Lt){var xc,hh=Sl==="y"?k:A,Gd=Sl==="y"?N:w,_=Sl==="y"?"height":"width",R=rl[Sl],G=R+Bo[hh],le=R-Bo[Gd],ke=Mi?-pu[_]/2:0,Qe=gu===S?Va[_]:pu[_],Ct=gu===S?-pu[_]:-Va[_],jt=ze.elements.arrow,Rn=Mi&&jt?ct(jt):{width:0,height:0},ur=ze.modifiersData["arrow#persistent"]?ze.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},zr=ur[hh],hi=ur[Gd],po=Yr(0,Va[_],Rn[_]),ko=Gl?Va[_]/2-ke-po-zr-od.mainAxis:Qe-po-zr-od.mainAxis,Zs=Gl?-Va[_]/2+ke+po+hi+od.mainAxis:Ct+po+hi+od.mainAxis,Js=ze.elements.arrow&&Bn(ze.elements.arrow),sl=(xc=Ao==null?void 0:Ao[Sl])!=null?xc:0,Da=R+Zs-sl,Ol=Yr(Mi?Ae(G,R+ko-sl-(Js?Sl==="y"?Js.clientTop||0:Js.clientLeft||0:0)):G,R,Mi?Ce(le,Da):le);rl[Sl]=Ol,Qh[Sl]=Ol-R}if(Fn){var jl,cu=rl[Kl],lu=Kl==="y"?"height":"width",Uu=cu+Bo[Sl==="x"?k:A],kc=cu-Bo[Sl==="x"?N:w],ac=[k,A].indexOf(zu)!==-1,_d=(jl=Ao==null?void 0:Ao[Kl])!=null?jl:0,Xu=ac?Uu:cu-Va[lu]-pu[lu]-_d+od.altAxis,Nd=ac?cu+Va[lu]+pu[lu]-_d-od.altAxis:kc,Yt=Mi&&ac?function(Mn,dr,jr){var go=Yr(Mn,dr,jr);return go>jr?jr:go}(Xu,cu,Nd):Yr(Mi?Xu:Uu,cu,Mi?Nd:kc);rl[Kl]=Yt,Qh[Kl]=Yt-cu}ze.modifiersData[Oe]=Qh}},requiresIfExists:["offset"]};function Pi(be,ze,Je){Je===void 0&&(Je=!1);var Oe,ot,Lt=De(ze),nn=De(ze)&&function(Lo){var Bo=Lo.getBoundingClientRect(),zu=me(Bo.width)/Lo.offsetWidth||1,gu=me(Bo.height)/Lo.offsetHeight||1;return zu!==1||gu!==1}(ze),Fn=Bt(ze),Kn=Pt(be,nn,Je),Mi={scrollLeft:0,scrollTop:0},Yo={x:0,y:0};return(Lt||!Lt&&!Je)&&((Be(ze)!=="body"||Ve(Fn))&&(Mi=(Oe=ze)!==Ie(Oe)&&De(Oe)?{scrollLeft:(ot=Oe).scrollLeft,scrollTop:ot.scrollTop}:io(Oe)),De(ze)?((Yo=Pt(ze,!0)).x+=ze.clientLeft,Yo.y+=ze.clientTop):Fn&&(Yo.x=ln(Fn))),{x:Kn.left+Mi.scrollLeft-Yo.x,y:Kn.top+Mi.scrollTop-Yo.y,width:Kn.width,height:Kn.height}}function Wo(be){var ze=new Map,Je=new Set,Oe=[];function ot(Lt){Je.add(Lt.name),[].concat(Lt.requires||[],Lt.requiresIfExists||[]).forEach(function(nn){if(!Je.has(nn)){var Fn=ze.get(nn);Fn&&ot(Fn)}}),Oe.push(Lt)}return be.forEach(function(Lt){ze.set(Lt.name,Lt)}),be.forEach(function(Lt){Je.has(Lt.name)||ot(Lt)}),Oe}var ys={placement:"bottom",modifiers:[],strategy:"absolute"};function xn(){for(var be=arguments.length,ze=Array(be),Je=0;be>Je;Je++)ze[Je]=arguments[Je];return!ze.some(function(Oe){return!(Oe&&typeof Oe.getBoundingClientRect=="function")})}function Hr(be){be===void 0&&(be={});var ze=be.defaultModifiers,Je=ze===void 0?[]:ze,Oe=be.defaultOptions,ot=Oe===void 0?ys:Oe;return function(Lt,nn,Fn){Fn===void 0&&(Fn=ot);var Kn,Mi,Yo={placement:"bottom",orderedModifiers:[],options:Object.assign({},ys,ot),modifiersData:{},elements:{reference:Lt,popper:nn},attributes:{},styles:{}},Lo=[],Bo=!1,zu={state:Yo,setOptions:function(Gl){var Sl=typeof Gl=="function"?Gl(Yo.options):Gl;gu(),Yo.options=Object.assign({},ot,Yo.options,Sl),Yo.scrollParents={reference:We(Lt)?xt(Lt):Lt.contextElement?xt(Lt.contextElement):[],popper:xt(nn)};var Kl,rl,Va=function(pu){var ic=Wo(pu);return fe.reduce(function(od,Ao){return od.concat(ic.filter(function(Qh){return Qh.phase===Ao}))},[])}((Kl=[].concat(Je,Yo.options.modifiers),rl=Kl.reduce(function(pu,ic){var od=pu[ic.name];return pu[ic.name]=od?Object.assign({},od,ic,{options:Object.assign({},od.options,ic.options),data:Object.assign({},od.data,ic.data)}):ic,pu},{}),Object.keys(rl).map(function(pu){return rl[pu]})));return Yo.orderedModifiers=Va.filter(function(pu){return pu.enabled}),Yo.orderedModifiers.forEach(function(pu){var ic=pu.options,od=pu.effect;if(typeof od=="function"){var Ao=od({state:Yo,name:pu.name,instance:zu,options:ic===void 0?{}:ic});Lo.push(Ao||function(){})}}),zu.update()},forceUpdate:function(){if(!Bo){var Gl=Yo.elements,Sl=Gl.reference,Kl=Gl.popper;if(xn(Sl,Kl)){Yo.rects={reference:Pi(Sl,Bn(Kl),Yo.options.strategy==="fixed"),popper:ct(Kl)},Yo.reset=!1,Yo.placement=Yo.options.placement,Yo.orderedModifiers.forEach(function(od){return Yo.modifiersData[od.name]=Object.assign({},od.data)});for(var rl=0;Yo.orderedModifiers.length>rl;rl++)if(Yo.reset!==!0){var Va=Yo.orderedModifiers[rl],pu=Va.fn,ic=Va.options;typeof pu=="function"&&(Yo=pu({state:Yo,options:ic===void 0?{}:ic,name:Va.name,instance:zu})||Yo)}else Yo.reset=!1,rl=-1}}},update:(Kn=function(){return new Promise(function(Gl){zu.forceUpdate(),Gl(Yo)})},function(){return Mi||(Mi=new Promise(function(Gl){Promise.resolve().then(function(){Mi=void 0,Gl(Kn())})})),Mi}),destroy:function(){gu(),Bo=!0}};if(!xn(Lt,nn))return zu;function gu(){Lo.forEach(function(Gl){return Gl()}),Lo=[]}return zu.setOptions(Fn).then(function(Gl){!Bo&&Fn.onFirstUpdate&&Fn.onFirstUpdate(Gl)}),zu}}var Jr=Hr({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(be){var ze=be.state,Je=be.instance,Oe=be.options,ot=Oe.scroll,Lt=ot===void 0||ot,nn=Oe.resize,Fn=nn===void 0||nn,Kn=Ie(ze.elements.popper),Mi=[].concat(ze.scrollParents.reference,ze.scrollParents.popper);return Lt&&Mi.forEach(function(Yo){Yo.addEventListener("scroll",Je.update,ge)}),Fn&&Kn.addEventListener("resize",Je.update,ge),function(){Lt&&Mi.forEach(function(Yo){Yo.removeEventListener("scroll",Je.update,ge)}),Fn&&Kn.removeEventListener("resize",Je.update,ge)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(be){var ze=be.state;ze.modifiersData[be.name]=Tt({reference:ze.rects.reference,element:ze.rects.popper,strategy:"absolute",placement:ze.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(be){var ze=be.state,Je=be.options,Oe=Je.gpuAcceleration,ot=Oe===void 0||Oe,Lt=Je.adaptive,nn=Lt===void 0||Lt,Fn=Je.roundOffsets,Kn=Fn===void 0||Fn,Mi={placement:we(ze.placement),variation:yr(ze.placement),popper:ze.elements.popper,popperRect:ze.rects.popper,gpuAcceleration:ot,isFixed:ze.options.strategy==="fixed"};ze.modifiersData.popperOffsets!=null&&(ze.styles.popper=Object.assign({},ze.styles.popper,as(Object.assign({},Mi,{offsets:ze.modifiersData.popperOffsets,position:ze.options.strategy,adaptive:nn,roundOffsets:Kn})))),ze.modifiersData.arrow!=null&&(ze.styles.arrow=Object.assign({},ze.styles.arrow,as(Object.assign({},Mi,{offsets:ze.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:Kn})))),ze.attributes.popper=Object.assign({},ze.attributes.popper,{"data-popper-placement":ze.placement})},data:{}},ye,Zi,Wn,Ri,yo,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(be){var ze=be.state,Je=be.name,Oe=ze.rects.reference,ot=ze.rects.popper,Lt=ze.modifiersData.preventOverflow,nn=bt(ze,{elementContext:"reference"}),Fn=bt(ze,{altBoundary:!0}),Kn=tn(nn,Oe),Mi=tn(Fn,ot,Lt),Yo=hr(Kn),Lo=hr(Mi);ze.modifiersData[Je]={referenceClippingOffsets:Kn,popperEscapeOffsets:Mi,isReferenceHidden:Yo,hasPopperEscaped:Lo},ze.attributes.popper=Object.assign({},ze.attributes.popper,{"data-popper-reference-hidden":Yo,"data-popper-escaped":Lo})}}]}),Yi="tippy-content",xo="tippy-backdrop",na="tippy-arrow",Un="tippy-svg-arrow",Xn={passive:!0,capture:!0},Mr=function(){return document.body};function li(be,ze,Je){if(Array.isArray(be)){var Oe=be[ze];return Oe==null?Array.isArray(Je)?Je[ze]:Je:Oe}return be}function wr(be,ze){var Je={}.toString.call(be);return Je.indexOf("[object")===0&&Je.indexOf(ze+"]")>-1}function qr(be,ze){return typeof be=="function"?be.apply(void 0,ze):be}function ii(be,ze){return ze===0?be:function(Oe){clearTimeout(Je),Je=setTimeout(function(){be(Oe)},ze)};var Je}function rn(be){return[].concat(be)}function Qn(be,ze){be.indexOf(ze)===-1&&be.push(ze)}function Vr(be){return[].slice.call(be)}function so(be){return Object.keys(be).reduce(function(ze,Je){return be[Je]!==void 0&&(ze[Je]=be[Je]),ze},{})}function rs(){return document.createElement("div")}function zt(be){return["Element","Fragment"].some(function(ze){return wr(be,ze)})}function pn(be){return wr(be,"MouseEvent")}function br(be){return zt(be)?[be]:function(ze){return wr(ze,"NodeList")}(be)?Vr(be):Array.isArray(be)?be:Vr(document.querySelectorAll(be))}function Gr(be,ze){be.forEach(function(Je){Je&&(Je.style.transitionDuration=ze+"ms")})}function ui(be,ze){be.forEach(function(Je){Je&&Je.setAttribute("data-state",ze)})}function xi(be){var ze,Je=rn(be)[0];return Je!=null&&(ze=Je.ownerDocument)!=null&&ze.body?Je.ownerDocument:document}function lo(be,ze,Je){var Oe=ze+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(ot){be[Oe](ot,Je)})}function Kr(be,ze){for(var Je=ze;Je;){var Oe;if(be.contains(Je))return!0;Je=Je.getRootNode==null||(Oe=Je.getRootNode())==null?void 0:Oe.host}return!1}var ti={isTouch:!1},ji=0;function Tr(){ti.isTouch||(ti.isTouch=!0,window.performance&&document.addEventListener("mousemove",Qt))}function Qt(){var be=performance.now();20>be-ji&&(ti.isTouch=!1,document.removeEventListener("mousemove",Qt)),ji=be}function Gn(){var be,ze=document.activeElement;(be=ze)&&be._tippy&&be._tippy.reference===be&&ze.blur&&!ze._tippy.state.isVisible&&ze.blur()}var yi=typeof window!="undefined"&&typeof document!="undefined"&&!!window.msCrypto,Ln=Object.assign({appendTo:Mr,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Si=Object.keys(Ln);function tr(be){var ze=(be.plugins||[]).reduce(function(Je,Oe){var ot,Lt=Oe.name;return Lt&&(Je[Lt]=be[Lt]!==void 0?be[Lt]:(ot=Ln[Lt])!=null?ot:Oe.defaultValue),Je},{});return Object.assign({},be,ze)}function vi(be,ze){var Je=Object.assign({},ze,{content:qr(ze.content,[be])},ze.ignoreAttributes?{}:function(Oe,ot){return(ot?Object.keys(tr(Object.assign({},Ln,{plugins:ot}))):Si).reduce(function(Lt,nn){var Fn=(Oe.getAttribute("data-tippy-"+nn)||"").trim();if(!Fn)return Lt;if(nn==="content")Lt[nn]=Fn;else try{Lt[nn]=JSON.parse(Fn)}catch(Kn){Lt[nn]=Fn}return Lt},{})}(be,ze.plugins));return Je.aria=Object.assign({},Ln.aria,Je.aria),Je.aria={expanded:Je.aria.expanded==="auto"?ze.interactive:Je.aria.expanded,content:Je.aria.content==="auto"?ze.interactive?null:"describedby":Je.aria.content},Je}var Ni=function(){return"innerHTML"};function kr(be,ze){be[Ni()]=ze}function qn(be){var ze=rs();return be===!0?ze.className=na:(ze.className=Un,zt(be)?ze.appendChild(be):kr(ze,be)),ze}function ds(be,ze){zt(ze.content)?(kr(be,""),be.appendChild(ze.content)):typeof ze.content!="function"&&(ze.allowHTML?kr(be,ze.content):be.textContent=ze.content)}function _a(be){var ze=be.firstElementChild,Je=Vr(ze.children);return{box:ze,content:Je.find(function(Oe){return Oe.classList.contains(Yi)}),arrow:Je.find(function(Oe){return Oe.classList.contains(na)||Oe.classList.contains(Un)}),backdrop:Je.find(function(Oe){return Oe.classList.contains(xo)})}}function da(be){var ze=rs(),Je=rs();Je.className="tippy-box",Je.setAttribute("data-state","hidden"),Je.setAttribute("tabindex","-1");var Oe=rs();function ot(Lt,nn){var Fn=_a(ze),Kn=Fn.box,Mi=Fn.content,Yo=Fn.arrow;nn.theme?Kn.setAttribute("data-theme",nn.theme):Kn.removeAttribute("data-theme"),typeof nn.animation=="string"?Kn.setAttribute("data-animation",nn.animation):Kn.removeAttribute("data-animation"),nn.inertia?Kn.setAttribute("data-inertia",""):Kn.removeAttribute("data-inertia"),Kn.style.maxWidth=typeof nn.maxWidth=="number"?nn.maxWidth+"px":nn.maxWidth,nn.role?Kn.setAttribute("role",nn.role):Kn.removeAttribute("role"),Lt.content===nn.content&&Lt.allowHTML===nn.allowHTML||ds(Mi,be.props),nn.arrow?Yo?Lt.arrow!==nn.arrow&&(Kn.removeChild(Yo),Kn.appendChild(qn(nn.arrow))):Kn.appendChild(qn(nn.arrow)):Yo&&Kn.removeChild(Yo)}return Oe.className=Yi,Oe.setAttribute("data-state","hidden"),ds(Oe,be.props),ze.appendChild(Je),Je.appendChild(Oe),ot(be.props,be.props),{popper:ze,onUpdate:ot}}da.$$tippy=!0;var zs=1,Wa=[],Co=[];function cl(be,ze){var Je,Oe,ot,Lt,nn,Fn,Kn,Mi,Yo=vi(be,Object.assign({},Ln,tr(so(ze)))),Lo=!1,Bo=!1,zu=!1,gu=!1,Gl=[],Sl=ii(jl,Yo.interactiveDebounce),Kl=zs++,rl=(Mi=Yo.plugins).filter(function(Yt,Mn){return Mi.indexOf(Yt)===Mn}),Va={id:Kl,reference:be,popper:rs(),popperInstance:null,props:Yo,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:rl,clearDelayTimeouts:function(){clearTimeout(Je),clearTimeout(Oe),cancelAnimationFrame(ot)},setProps:function(Yt){if(!Va.state.isDestroyed){Qe("onBeforeUpdate",[Va,Yt]),Da();var Mn=Va.props,dr=vi(be,Object.assign({},Mn,so(Yt),{ignoreAttributes:!0}));Va.props=dr,sl(),Mn.interactiveDebounce!==dr.interactiveDebounce&&(Rn(),Sl=ii(jl,dr.interactiveDebounce)),Mn.triggerTarget&&!dr.triggerTarget?rn(Mn.triggerTarget).forEach(function(jr){jr.removeAttribute("aria-expanded")}):dr.triggerTarget&&be.removeAttribute("aria-expanded"),jt(),ke(),od&&od(Mn,dr),Va.popperInstance&&(kc(),_d().forEach(function(jr){requestAnimationFrame(jr._tippy.popperInstance.forceUpdate)})),Qe("onAfterUpdate",[Va,Yt])}},setContent:function(Yt){Va.setProps({content:Yt})},show:function(){var Yt=Va.state.isVisible,Mn=Va.state.isDestroyed,dr=!Va.state.isEnabled,jr=ti.isTouch&&!Va.props.touch,go=li(Va.props.duration,0,Ln.duration);if(!(Yt||Mn||dr||jr)&&!_().hasAttribute("disabled")&&(Qe("onShow",[Va],!1),Va.props.onShow(Va)!==!1)){if(Va.state.isVisible=!0,Gd()&&(ic.style.visibility="visible"),ke(),po(),Va.state.isMounted||(ic.style.transition="none"),Gd()){var ia=G();Gr([ia.box,ia.content],0)}Fn=function(){var Ga;if(Va.state.isVisible&&!gu){if(gu=!0,ic.style.transition=Va.props.moveTransition,Gd()&&Va.props.animation){var Aa=G(),Xl=Aa.box,wu=Aa.content;Gr([Xl,wu],go),ui([Xl,wu],"visible")}Ct(),jt(),Qn(Co,Va),(Ga=Va.popperInstance)==null||Ga.forceUpdate(),Qe("onMount",[Va]),Va.props.animation&&Gd()&&function(Ts,Kc){Zs(Ts,Kc)}(go,function(){Va.state.isShown=!0,Qe("onShown",[Va])})}},function(){var Ga,Aa=Va.props.appendTo,Xl=_();Ga=Va.props.interactive&&Aa===Mr||Aa==="parent"?Xl.parentNode:qr(Aa,[Xl]),Ga.contains(ic)||Ga.appendChild(ic),Va.state.isMounted=!0,kc()}()}},hide:function(){var Yt=!Va.state.isVisible,Mn=Va.state.isDestroyed,dr=!Va.state.isEnabled,jr=li(Va.props.duration,1,Ln.duration);if(!(Yt||Mn||dr)&&(Qe("onHide",[Va],!1),Va.props.onHide(Va)!==!1)){if(Va.state.isVisible=!1,Va.state.isShown=!1,gu=!1,Lo=!1,Gd()&&(ic.style.visibility="hidden"),Rn(),ko(),ke(!0),Gd()){var go=G(),ia=go.box,Ga=go.content;Va.props.animation&&(Gr([ia,Ga],jr),ui([ia,Ga],"hidden"))}Ct(),jt(),Va.props.animation?Gd()&&function(Aa,Xl){Zs(Aa,function(){!Va.state.isVisible&&ic.parentNode&&ic.parentNode.contains(ic)&&Xl()})}(jr,Va.unmount):Va.unmount()}},hideWithInteractivity:function(Yt){R().addEventListener("mousemove",Sl),Qn(Wa,Sl),Sl(Yt)},enable:function(){Va.state.isEnabled=!0},disable:function(){Va.hide(),Va.state.isEnabled=!1},unmount:function(){Va.state.isVisible&&Va.hide(),Va.state.isMounted&&(ac(),_d().forEach(function(Yt){Yt._tippy.unmount()}),ic.parentNode&&ic.parentNode.removeChild(ic),Co=Co.filter(function(Yt){return Yt!==Va}),Va.state.isMounted=!1,Qe("onHidden",[Va]))},destroy:function(){Va.state.isDestroyed||(Va.clearDelayTimeouts(),Va.unmount(),Da(),delete be._tippy,Va.state.isDestroyed=!0,Qe("onDestroy",[Va]))}};if(!Yo.render)return Va;var pu=Yo.render(Va),ic=pu.popper,od=pu.onUpdate;ic.setAttribute("data-tippy-root",""),ic.id="tippy-"+Va.id,Va.popper=ic,be._tippy=Va,ic._tippy=Va;var Ao=rl.map(function(Yt){return Yt.fn(Va)}),Qh=be.hasAttribute("aria-expanded");return sl(),jt(),ke(),Qe("onCreate",[Va]),Yo.showOnCreate&&Xu(),ic.addEventListener("mouseenter",function(){Va.props.interactive&&Va.state.isVisible&&Va.clearDelayTimeouts()}),ic.addEventListener("mouseleave",function(){Va.props.interactive&&Va.props.trigger.indexOf("mouseenter")>=0&&R().addEventListener("mousemove",Sl)}),Va;function xc(){var Yt=Va.props.touch;return Array.isArray(Yt)?Yt:[Yt,0]}function hh(){return xc()[0]==="hold"}function Gd(){var Yt;return!((Yt=Va.props.render)==null||!Yt.$$tippy)}function _(){return Kn||be}function R(){var Yt=_().parentNode;return Yt?xi(Yt):document}function G(){return _a(ic)}function le(Yt){return Va.state.isMounted&&!Va.state.isVisible||ti.isTouch||Lt&&Lt.type==="focus"?0:li(Va.props.delay,Yt?0:1,Ln.delay)}function ke(Yt){Yt===void 0&&(Yt=!1),ic.style.pointerEvents=Va.props.interactive&&!Yt?"":"none",ic.style.zIndex=""+Va.props.zIndex}function Qe(Yt,Mn,dr){var jr;dr===void 0&&(dr=!0),Ao.forEach(function(go){go[Yt]&&go[Yt].apply(go,Mn)}),dr&&(jr=Va.props)[Yt].apply(jr,Mn)}function Ct(){var Yt=Va.props.aria;if(Yt.content){var Mn="aria-"+Yt.content,dr=ic.id;rn(Va.props.triggerTarget||be).forEach(function(jr){var go=jr.getAttribute(Mn);if(Va.state.isVisible)jr.setAttribute(Mn,go?go+" "+dr:dr);else{var ia=go&&go.replace(dr,"").trim();ia?jr.setAttribute(Mn,ia):jr.removeAttribute(Mn)}})}}function jt(){!Qh&&Va.props.aria.expanded&&rn(Va.props.triggerTarget||be).forEach(function(Yt){Va.props.interactive?Yt.setAttribute("aria-expanded",Va.state.isVisible&&Yt===_()?"true":"false"):Yt.removeAttribute("aria-expanded")})}function Rn(){R().removeEventListener("mousemove",Sl),Wa=Wa.filter(function(Yt){return Yt!==Sl})}function ur(Yt){if(!ti.isTouch||!zu&&Yt.type!=="mousedown"){var Mn=Yt.composedPath&&Yt.composedPath()[0]||Yt.target;if(!Va.props.interactive||!Kr(ic,Mn)){if(rn(Va.props.triggerTarget||be).some(function(dr){return Kr(dr,Mn)})){if(ti.isTouch||Va.state.isVisible&&Va.props.trigger.indexOf("click")>=0)return}else Qe("onClickOutside",[Va,Yt]);Va.props.hideOnClick===!0&&(Va.clearDelayTimeouts(),Va.hide(),Bo=!0,setTimeout(function(){Bo=!1}),Va.state.isMounted||ko())}}}function zr(){zu=!0}function hi(){zu=!1}function po(){var Yt=R();Yt.addEventListener("mousedown",ur,!0),Yt.addEventListener("touchend",ur,Xn),Yt.addEventListener("touchstart",hi,Xn),Yt.addEventListener("touchmove",zr,Xn)}function ko(){var Yt=R();Yt.removeEventListener("mousedown",ur,!0),Yt.removeEventListener("touchend",ur,Xn),Yt.removeEventListener("touchstart",hi,Xn),Yt.removeEventListener("touchmove",zr,Xn)}function Zs(Yt,Mn){var dr=G().box;function jr(go){go.target===dr&&(lo(dr,"remove",jr),Mn())}if(Yt===0)return Mn();lo(dr,"remove",nn),lo(dr,"add",jr),nn=jr}function Js(Yt,Mn,dr){dr===void 0&&(dr=!1),rn(Va.props.triggerTarget||be).forEach(function(jr){jr.addEventListener(Yt,Mn,dr),Gl.push({node:jr,eventType:Yt,handler:Mn,options:dr})})}function sl(){var Yt;hh()&&(Js("touchstart",Ol,{passive:!0}),Js("touchend",cu,{passive:!0})),(Yt=Va.props.trigger,Yt.split(/\s+/).filter(Boolean)).forEach(function(Mn){if(Mn!=="manual")switch(Js(Mn,Ol),Mn){case"mouseenter":Js("mouseleave",cu);break;case"focus":Js(yi?"focusout":"blur",lu);break;case"focusin":Js("focusout",lu)}})}function Da(){Gl.forEach(function(Yt){Yt.node.removeEventListener(Yt.eventType,Yt.handler,Yt.options)}),Gl=[]}function Ol(Yt){var Mn,dr=!1;if(Va.state.isEnabled&&!Uu(Yt)&&!Bo){var jr=((Mn=Lt)==null?void 0:Mn.type)==="focus";Lt=Yt,Kn=Yt.currentTarget,jt(),!Va.state.isVisible&&pn(Yt)&&Wa.forEach(function(go){return go(Yt)}),Yt.type==="click"&&(0>Va.props.trigger.indexOf("mouseenter")||Lo)&&Va.props.hideOnClick!==!1&&Va.state.isVisible?dr=!0:Xu(Yt),Yt.type==="click"&&(Lo=!dr),dr&&!jr&&Nd(Yt)}}function jl(Yt){var Mn=Yt.target,dr=_().contains(Mn)||ic.contains(Mn);if(Yt.type!=="mousemove"||!dr){var jr=_d().concat(ic).map(function(go){var ia,Ga=(ia=go._tippy.popperInstance)==null?void 0:ia.state;return Ga?{popperRect:go.getBoundingClientRect(),popperState:Ga,props:Yo}:null}).filter(Boolean);(function(go,ia){var Ga=ia.clientX,Aa=ia.clientY;return go.every(function(Xl){var wu=Xl.popperRect,Ts=Xl.popperState,Kc=Xl.props.interactiveBorder,fh=Ts.placement.split("-")[0],ph=Ts.modifiersData.offset;return!ph||wu.top-Aa+(fh==="bottom"?ph.top.y:0)>Kc||Aa-wu.bottom-(fh==="top"?ph.bottom.y:0)>Kc||wu.left-Ga+(fh==="right"?ph.left.x:0)>Kc||Ga-wu.right-(fh==="left"?ph.right.x:0)>Kc})})(jr,Yt)&&(Rn(),Nd(Yt))}}function cu(Yt){Uu(Yt)||Va.props.trigger.indexOf("click")>=0&&Lo||(Va.props.interactive?Va.hideWithInteractivity(Yt):Nd(Yt))}function lu(Yt){0>Va.props.trigger.indexOf("focusin")&&Yt.target!==_()||Va.props.interactive&&Yt.relatedTarget&&ic.contains(Yt.relatedTarget)||Nd(Yt)}function Uu(Yt){return!!ti.isTouch&&hh()!==Yt.type.indexOf("touch")>=0}function kc(){ac();var Yt=Va.props,Mn=Yt.popperOptions,dr=Yt.placement,jr=Yt.offset,go=Yt.getReferenceClientRect,ia=Yt.moveTransition,Ga=Gd()?_a(ic).arrow:null,Aa=go?{getBoundingClientRect:go,contextElement:go.contextElement||_()}:be,Xl={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Ts){var Kc=Ts.state;if(Gd()){var fh=G().box;["placement","reference-hidden","escaped"].forEach(function(ph){ph==="placement"?fh.setAttribute("data-placement",Kc.placement):Kc.attributes.popper["data-popper-"+ph]?fh.setAttribute("data-"+ph,""):fh.removeAttribute("data-"+ph)}),Kc.attributes.popper={}}}},wu=[{name:"offset",options:{offset:jr}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!ia}},Xl];Gd()&&Ga&&wu.push({name:"arrow",options:{element:Ga,padding:3}}),wu.push.apply(wu,(Mn==null?void 0:Mn.modifiers)||[]),Va.popperInstance=Jr(Aa,ic,Object.assign({},Mn,{placement:dr,onFirstUpdate:Fn,modifiers:wu}))}function ac(){Va.popperInstance&&(Va.popperInstance.destroy(),Va.popperInstance=null)}function _d(){return Vr(ic.querySelectorAll("[data-tippy-root]"))}function Xu(Yt){Va.clearDelayTimeouts(),Yt&&Qe("onTrigger",[Va,Yt]),po();var Mn=le(!0),dr=xc(),jr=dr[1];ti.isTouch&&dr[0]==="hold"&&jr&&(Mn=jr),Mn?Je=setTimeout(function(){Va.show()},Mn):Va.show()}function Nd(Yt){if(Va.clearDelayTimeouts(),Qe("onUntrigger",[Va,Yt]),Va.state.isVisible){if(0>Va.props.trigger.indexOf("mouseenter")||0>Va.props.trigger.indexOf("click")||0>["mouseleave","mousemove"].indexOf(Yt.type)||!Lo){var Mn=le(!1);Mn?Oe=setTimeout(function(){Va.state.isVisible&&Va.hide()},Mn):ot=requestAnimationFrame(function(){Va.hide()})}}else ko()}}function Fr(be,ze){ze===void 0&&(ze={});var Je=Ln.plugins.concat(ze.plugins||[]);document.addEventListener("touchstart",Tr,Xn),window.addEventListener("blur",Gn);var Oe=Object.assign({},ze,{plugins:Je}),ot=br(be).reduce(function(Lt,nn){var Fn=nn&&cl(nn,Oe);return Fn&&Lt.push(Fn),Lt},[]);return zt(be)?ot[0]:ot}Fr.defaultProps=Ln,Fr.setDefaultProps=function(be){Object.keys(be).forEach(function(ze){Ln[ze]=be[ze]})},Fr.currentInput=ti,Object.assign({},ye,{effect:function(be){var ze=be.state,Je={popper:{position:ze.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(ze.elements.popper.style,Je.popper),ze.styles=Je,ze.elements.arrow&&Object.assign(ze.elements.arrow.style,Je.arrow)}});var fs={clientX:0,clientY:0},jo=[];function Es(be){fs={clientX:be.clientX,clientY:be.clientY}}var xs={name:"followCursor",defaultValue:!1,fn:function(be){var ze=be.reference,Je=xi(be.props.triggerTarget||ze),Oe=!1,ot=!1,Lt=!0,nn=be.props;function Fn(){return be.props.followCursor==="initial"&&be.state.isVisible}function Kn(){Je.addEventListener("mousemove",Lo)}function Mi(){Je.removeEventListener("mousemove",Lo)}function Yo(){Oe=!0,be.setProps({getReferenceClientRect:null}),Oe=!1}function Lo(gu){var Gl=!gu.target||ze.contains(gu.target),Sl=be.props.followCursor,Kl=gu.clientX,rl=gu.clientY,Va=ze.getBoundingClientRect(),pu=Kl-Va.left,ic=rl-Va.top;!Gl&&be.props.interactive||be.setProps({getReferenceClientRect:function(){var od=ze.getBoundingClientRect(),Ao=Kl,Qh=rl;Sl==="initial"&&(Ao=od.left+pu,Qh=od.top+ic);var xc=Sl==="horizontal"?od.top:Qh,hh=Sl==="vertical"?od.right:Ao,Gd=Sl==="horizontal"?od.bottom:Qh,_=Sl==="vertical"?od.left:Ao;return{width:hh-_,height:Gd-xc,top:xc,right:hh,bottom:Gd,left:_}}})}function Bo(){be.props.followCursor&&(jo.push({instance:be,doc:Je}),function(gu){gu.addEventListener("mousemove",Es)}(Je))}function zu(){(jo=jo.filter(function(gu){return gu.instance!==be})).filter(function(gu){return gu.doc===Je}).length===0&&function(gu){gu.removeEventListener("mousemove",Es)}(Je)}return{onCreate:Bo,onDestroy:zu,onBeforeUpdate:function(){nn=be.props},onAfterUpdate:function(gu,Gl){var Sl=Gl.followCursor;Oe||Sl!==void 0&&nn.followCursor!==Sl&&(zu(),Sl?(Bo(),!be.state.isMounted||ot||Fn()||Kn()):(Mi(),Yo()))},onMount:function(){be.props.followCursor&&!ot&&(Lt&&(Lo(fs),Lt=!1),Fn()||Kn())},onTrigger:function(gu,Gl){pn(Gl)&&(fs={clientX:Gl.clientX,clientY:Gl.clientY}),ot=Gl.type==="focus"},onHidden:function(){be.props.followCursor&&(Yo(),Mi(),Lt=!0)}}}};Fr.setDefaultProps({render:da});var Za,tl,xl,Qa,si,co,dn={showTotalDistance:!1,showDashDistance:!0,showWhen:["normal","active"],format:function(be){return 1e3>be?+be.toFixed(2)+"m":+(be/1e3).toFixed(2)+"km"}},An={showWhen:["normal","active"],format:function(be){return be>1e6?"".concat(+(be/1e6).toFixed(2),"km\xB2"):"".concat(+be.toFixed(2),"m\xB2")}},Nn={maxSize:100},tt={remove:["del","backspace"],revert:["command+z","ctrl+z"],redo:["command+shift+z","ctrl+shift+z"]},ht={allowHTML:!0,followCursor:!0,placement:"bottom-start",offset:[-10,20],plugins:[xs],trigger:"manual",hideOnClick:!1,theme:"light"},vt={data:"drawData",pointAdsorbPixel:12,lineAdsorbPixel:10};function Fe(be,ze){var Je=Object.keys(be);if(Object.getOwnPropertySymbols){var Oe=Object.getOwnPropertySymbols(be);ze&&(Oe=Oe.filter(function(ot){return Object.getOwnPropertyDescriptor(be,ot).enumerable})),Je.push.apply(Je,Oe)}return Je}function lt(be){for(var ze=1;arguments.length>ze;ze++){var Je=arguments[ze]!=null?arguments[ze]:{};ze%2?Fe(Object(Je),!0).forEach(function(Oe){Cr(be,Oe,Je[Oe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(be,Object.getOwnPropertyDescriptors(Je)):Fe(Object(Je)).forEach(function(Oe){Object.defineProperty(be,Oe,Object.getOwnPropertyDescriptor(Je,Oe))})}return be}function Et(be,ze){if(!(be instanceof ze))throw new TypeError("Cannot call a class as a function")}function an(be,ze){for(var Je=0;ze.length>Je;Je++){var Oe=ze[Je];Oe.enumerable=Oe.enumerable||!1,Oe.configurable=!0,"value"in Oe&&(Oe.writable=!0),Object.defineProperty(be,fa(Oe.key),Oe)}}function jn(be,ze,Je){return ze&&an(be.prototype,ze),Je&&an(be,Je),Object.defineProperty(be,"prototype",{writable:!1}),be}function Cr(be,ze,Je){return(ze=fa(ze))in be?Object.defineProperty(be,ze,{value:Je,enumerable:!0,configurable:!0,writable:!0}):be[ze]=Je,be}function Ti(be,ze){if(typeof ze!="function"&&ze!==null)throw new TypeError("Super expression must either be null or a function");be.prototype=Object.create(ze&&ze.prototype,{constructor:{value:be,writable:!0,configurable:!0}}),Object.defineProperty(be,"prototype",{writable:!1}),ze&&Vi(be,ze)}function $i(be){return $i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ze){return ze.__proto__||Object.getPrototypeOf(ze)},$i(be)}function Vi(be,ze){return Vi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Je,Oe){return Je.__proto__=Oe,Je},Vi(be,ze)}function us(be){if(be===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return be}function ks(be){var ze=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(Je){return!1}}();return function(){var Je,Oe=$i(be);if(ze){var ot=$i(this).constructor;Je=Reflect.construct(Oe,arguments,ot)}else Je=Oe.apply(this,arguments);return function(Lt,nn){if(nn&&(typeof nn=="object"||typeof nn=="function"))return nn;if(nn!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return us(Lt)}(this,Je)}}function Os(){return Os=typeof Reflect!="undefined"&&Reflect.get?Reflect.get.bind():function(be,ze,Je){var Oe=function(Lt,nn){for(;!Object.prototype.hasOwnProperty.call(Lt,nn)&&(Lt=$i(Lt))!==null;);return Lt}(be,ze);if(Oe){var ot=Object.getOwnPropertyDescriptor(Oe,ze);return ot.get?ot.get.call(3>arguments.length?be:Je):ot.value}},Os.apply(this,arguments)}function pa(be,ze){return function(Je){if(Array.isArray(Je))return Je}(be)||function(Je,Oe){var ot=Je==null?null:typeof Symbol!="undefined"&&Je[Symbol.iterator]||Je["@@iterator"];if(ot!=null){var Lt,nn,Fn,Kn,Mi=[],Yo=!0,Lo=!1;try{if(Fn=(ot=ot.call(Je)).next,Oe===0){if(Object(ot)!==ot)return;Yo=!1}else for(;!(Yo=(Lt=Fn.call(ot)).done)&&(Mi.push(Lt.value),Mi.length!==Oe);Yo=!0);}catch(Bo){Lo=!0,nn=Bo}finally{try{if(!Yo&&ot.return!=null&&(Kn=ot.return(),Object(Kn)!==Kn))return}finally{if(Lo)throw nn}}return Mi}}(be,ze)||Cs(be,ze)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function no(be){return function(ze){if(Array.isArray(ze))return ea(ze)}(be)||function(ze){if(typeof Symbol!="undefined"&&ze[Symbol.iterator]!=null||ze["@@iterator"]!=null)return Array.from(ze)}(be)||Cs(be)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Cs(be,ze){if(be){if(typeof be=="string")return ea(be,ze);var Je=Object.prototype.toString.call(be).slice(8,-1);return Je==="Object"&&be.constructor&&(Je=be.constructor.name),Je==="Map"||Je==="Set"?Array.from(be):Je==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Je)?ea(be,ze):void 0}}function ea(be,ze){(ze==null||ze>be.length)&&(ze=be.length);for(var Je=0,Oe=Array(ze);ze>Je;Je++)Oe[Je]=be[Je];return Oe}function fa(be){var ze=function(Je,Oe){if(typeof Je!="object"||Je===null)return Je;var ot=Je[Symbol.toPrimitive];if(ot!==void 0){var Lt=ot.call(Je,Oe||"default");if(typeof Lt!="object")return Lt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Oe==="string"?String:Number)(Je)}(be,"string");return typeof ze=="symbol"?ze:ze+""}(Za=y.DrawEvent||(y.DrawEvent={})).Init="init",Za.Destroy="destroy",Za.Enable="enable",Za.Disable="disable",Za.Add="add",Za.Edit="edit",Za.Remove="remove",Za.Clear="clear",Za.Change="change",Za.DragStart="dragStart",Za.Dragging="dragging",Za.DragEnd="dragEnd",Za.Select="select",Za.AddNode="addNode",Za.RemoveNode="removeNode",(tl=y.SourceEvent||(y.SourceEvent={})).Change="change",tl.Update="update",(xl=y.RenderEvent||(y.RenderEvent={})).Click="click",xl.UnClick="unclick",xl.Dragstart="dragstart",xl.Mousemove="mousemove",xl.Mouseout="mouseout",xl.Dragging="dragging",xl.Dragend="dragend",xl.DblClick="dblClick",xl.Contextmenu="contextmenu",(Qa=y.LayerEvent||(y.LayerEvent={})).Mousedown="mousedown",Qa.Mouseup="mouseup",Qa.Click="click",Qa.UnClick="unclick",Qa.Dblclick="dblclick",Qa.Mousemove="mousemove",Qa.Mouseover="mouseover",Qa.Mouseenter="mouseenter",Qa.Mouseleave="mouseleave",Qa.Mouseout="mouseout",Qa.Contextmenu="contextmenu",(si=y.SceneEvent||(y.SceneEvent={})).Loaded="loaded",si.MapMove="mapmove",si.MoveStart="movestart",si.MoveEnd="moveend",si.ZoomChange="zoomchange",si.ZoomStart="zoomstart",si.ZoomEnd="zoomend",si.Click="click",si.Dblclick="dblclick",si.Mousemove="mousemove",si.Mousewheel="mousewheel",si.Mouseover="mouseover",si.Mouseout="mouseout",si.Mouseup="mouseup",si.Mousedown="mousedown",si.Contextmenu="contextmenu",si.Dragstart="dragstart",si.Dragging="dragging",si.Dragend="dragend",(co=y.ControlEvent||(y.ControlEvent={})).DrawChange="drawchange",co.DataChange="datachange",co.DrawSelect="drawselect";var Bl=63710088e-1,Ma={centimeters:637100880,centimetres:637100880,degrees:57.22891354143274,feet:20902260511392e-6,inches:39.37*Bl,kilometers:6371.0088,kilometres:6371.0088,meters:Bl,metres:Bl,miles:3958.761333810546,millimeters:6371008800,millimetres:6371008800,nauticalmiles:Bl/1852,radians:1,yards:6967335223679999e-9},pl={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046};function oa(be,ze,Je){Je===void 0&&(Je={});var Oe={type:"Feature"};return(Je.id===0||Je.id)&&(Oe.id=Je.id),Je.bbox&&(Oe.bbox=Je.bbox),Oe.properties=ze||{},Oe.geometry=be,Oe}function Nl(be,ze,Je){if(Je===void 0&&(Je={}),!be)throw Error("coordinates is required");if(!Array.isArray(be))throw Error("coordinates must be an Array");if(2>be.length)throw Error("coordinates must be at least 2 numbers long");if(!Ji(be[0])||!Ji(be[1]))throw Error("coordinates must contain numbers");return oa({type:"Point",coordinates:be},ze,Je)}function cs(be,ze,Je){Je===void 0&&(Je={});for(var Oe=0,ot=be;ot.length>Oe;Oe++){var Lt=ot[Oe];if(4>Lt.length)throw Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var nn=0;Lt[Lt.length-1].length>nn;nn++)if(Lt[Lt.length-1][nn]!==Lt[0][nn])throw Error("First and last Position are not equivalent.")}return oa({type:"Polygon",coordinates:be},ze,Je)}function zi(be,ze,Je){if(Je===void 0&&(Je={}),2>be.length)throw Error("coordinates must be an array of two or more positions");return oa({type:"LineString",coordinates:be},ze,Je)}function qi(be,ze){ze===void 0&&(ze={});var Je={type:"FeatureCollection"};return ze.id&&(Je.id=ze.id),ze.bbox&&(Je.bbox=ze.bbox),Je.features=be,Je}function ta(be,ze,Je){return Je===void 0&&(Je={}),oa({type:"MultiLineString",coordinates:be},ze,Je)}function ms(be,ze,Je){return Je===void 0&&(Je={}),oa({type:"MultiPoint",coordinates:be},ze,Je)}function Ua(be,ze,Je){return Je===void 0&&(Je={}),oa({type:"MultiPolygon",coordinates:be},ze,Je)}function $u(be,ze){ze===void 0&&(ze="kilometers");var Je=Ma[ze];if(!Je)throw Error(ze+" units is invalid");return be*Je}function rc(be,ze){ze===void 0&&(ze="kilometers");var Je=Ma[ze];if(!Je)throw Error(ze+" units is invalid");return be/Je}function Pc(be){return 180*(be%(2*Math.PI))/Math.PI}function ho(be){return be%360*Math.PI/180}function Ji(be){return!isNaN(be)&&be!==null&&!Array.isArray(be)}function ss(be){return!!be&&be.constructor===Object}var $n=Object.freeze({__proto__:null,earthRadius:Bl,factors:Ma,unitsFactors:{centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/Bl,yards:1.0936133},areaFactors:pl,feature:oa,geometry:function(be,ze,Je){switch(be){case"Point":return Nl(ze).geometry;case"LineString":return zi(ze).geometry;case"Polygon":return cs(ze).geometry;case"MultiPoint":return ms(ze).geometry;case"MultiLineString":return ta(ze).geometry;case"MultiPolygon":return Ua(ze).geometry;default:throw Error(be+" is invalid")}},point:Nl,points:function(be,ze,Je){return Je===void 0&&(Je={}),qi(be.map(function(Oe){return Nl(Oe,ze)}),Je)},polygon:cs,polygons:function(be,ze,Je){return Je===void 0&&(Je={}),qi(be.map(function(Oe){return cs(Oe,ze)}),Je)},lineString:zi,lineStrings:function(be,ze,Je){return Je===void 0&&(Je={}),qi(be.map(function(Oe){return zi(Oe,ze)}),Je)},featureCollection:qi,multiLineString:ta,multiPoint:ms,multiPolygon:Ua,geometryCollection:function(be,ze,Je){return Je===void 0&&(Je={}),oa({type:"GeometryCollection",geometries:be},ze,Je)},round:function(be,ze){if(ze===void 0&&(ze=0),ze&&ze<0)throw Error("precision must be a positive number");var Je=Math.pow(10,ze||0);return Math.round(be*Je)/Je},radiansToLength:$u,lengthToRadians:rc,lengthToDegrees:function(be,ze){return Pc(rc(be,ze))},bearingToAzimuth:function(be){var ze=be%360;return 0>ze&&(ze+=360),ze},radiansToDegrees:Pc,degreesToRadians:ho,convertLength:function(be,ze,Je){if(ze===void 0&&(ze="kilometers"),Je===void 0&&(Je="kilometers"),be<0)throw Error("length must be a positive number");return $u(rc(be,ze),Je)},convertArea:function(be,ze,Je){if(ze===void 0&&(ze="meters"),Je===void 0&&(Je="kilometers"),be<0)throw Error("area must be a positive number");var Oe=pl[ze];if(!Oe)throw Error("invalid original units");var ot=pl[Je];if(!ot)throw Error("invalid final units");return be/Oe*ot},isNumber:Ji,isObject:ss,validateBBox:function(be){if(!be)throw Error("bbox is required");if(!Array.isArray(be))throw Error("bbox must be an Array");if(be.length!==4&&be.length!==6)throw Error("bbox must be an Array of 4 or 6 numbers");be.forEach(function(ze){if(!Ji(ze))throw Error("bbox must only contain numbers")})},validateId:function(be){if(!be)throw Error("id is required");if(["string","number"].indexOf(typeof be)===-1)throw Error("id must be a number or a string")}});function mr(be,ze,Je){if(be!==null)for(var Oe,ot,Lt,nn,Fn,Kn,Mi,Yo,Lo=0,Bo=0,zu=be.type,gu=zu==="FeatureCollection",Gl=zu==="Feature",Sl=gu?be.features.length:1,Kl=0;Sl>Kl;Kl++){Fn=(Yo=!!(Mi=gu?be.features[Kl].geometry:Gl?be.geometry:be)&&Mi.type==="GeometryCollection")?Mi.geometries.length:1;for(var rl=0;Fn>rl;rl++){var Va=0,pu=0;if((nn=Yo?Mi.geometries[rl]:Mi)!==null){Kn=nn.coordinates;var ic=nn.type;switch(Lo=!Je||ic!=="Polygon"&&ic!=="MultiPolygon"?0:1,ic){case null:break;case"Point":if(ze(Kn,Bo,Kl,Va,pu)===!1)return!1;Bo++,Va++;break;case"LineString":case"MultiPoint":for(Oe=0;Kn.length>Oe;Oe++){if(ze(Kn[Oe],Bo,Kl,Va,pu)===!1)return!1;Bo++,ic==="MultiPoint"&&Va++}ic==="LineString"&&Va++;break;case"Polygon":case"MultiLineString":for(Oe=0;Kn.length>Oe;Oe++){for(ot=0;Kn[Oe].length-Lo>ot;ot++){if(ze(Kn[Oe][ot],Bo,Kl,Va,pu)===!1)return!1;Bo++}ic==="MultiLineString"&&Va++,ic==="Polygon"&&pu++}ic==="Polygon"&&Va++;break;case"MultiPolygon":for(Oe=0;Kn.length>Oe;Oe++){for(pu=0,ot=0;Kn[Oe].length>ot;ot++){for(Lt=0;Kn[Oe][ot].length-Lo>Lt;Lt++){if(ze(Kn[Oe][ot][Lt],Bo,Kl,Va,pu)===!1)return!1;Bo++}pu++}Va++}break;case"GeometryCollection":for(Oe=0;nn.geometries.length>Oe;Oe++)if(mr(nn.geometries[Oe],ze,Je)===!1)return!1;break;default:throw Error("Unknown Geometry Type")}}}}}function Qr(be,ze){var Je;switch(be.type){case"FeatureCollection":for(Je=0;be.features.length>Je&&ze(be.features[Je].properties,Je)!==!1;Je++);break;case"Feature":ze(be.properties,0)}}function ni(be,ze){if(be.type==="Feature")ze(be,0);else if(be.type==="FeatureCollection")for(var Je=0;be.features.length>Je&&ze(be.features[Je],Je)!==!1;Je++);}function Ki(be){var ze=[];return mr(be,function(Je){ze.push(Je)}),ze}function ro(be,ze){var Je,Oe,ot,Lt,nn,Fn,Kn,Mi,Yo,Lo,Bo=0,zu=be.type==="FeatureCollection",gu=be.type==="Feature",Gl=zu?be.features.length:1;for(Je=0;Gl>Je;Je++){for(Mi=zu?be.features[Je].properties:gu?be.properties:{},Yo=zu?be.features[Je].bbox:gu?be.bbox:void 0,Lo=zu?be.features[Je].id:gu?be.id:void 0,nn=(Kn=!!(Fn=zu?be.features[Je].geometry:gu?be.geometry:be)&&Fn.type==="GeometryCollection")?Fn.geometries.length:1,ot=0;nn>ot;ot++)if((Lt=Kn?Fn.geometries[ot]:Fn)!==null)switch(Lt.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(ze(Lt,Bo,Mi,Yo,Lo)===!1)return!1;break;case"GeometryCollection":for(Oe=0;Lt.geometries.length>Oe;Oe++)if(ze(Lt.geometries[Oe],Bo,Mi,Yo,Lo)===!1)return!1;break;default:throw Error("Unknown Geometry Type")}else if(ze(null,Bo,Mi,Yo,Lo)===!1)return!1;Bo++}}function Ei(be,ze,Je){var Oe=Je;return ro(be,function(ot,Lt,nn,Fn,Kn){Oe=Lt===0&&Je===void 0?ot:ze(Oe,ot,Lt,nn,Fn,Kn)}),Oe}function ns(be,ze){ro(be,function(Je,Oe,ot,Lt,nn){var Fn,Kn=Je===null?null:Je.type;switch(Kn){case null:case"Point":case"LineString":case"Polygon":return ze(oa(Je,ot,{bbox:Lt,id:nn}),Oe,0)!==!1&&void 0}switch(Kn){case"MultiPoint":Fn="Point";break;case"MultiLineString":Fn="LineString";break;case"MultiPolygon":Fn="Polygon"}for(var Mi=0;Je.coordinates.length>Mi;Mi++)if(ze(oa({type:Fn,coordinates:Je.coordinates[Mi]},ot),Oe,Mi)===!1)return!1})}function ca(be,ze){ns(be,function(Je,Oe,ot){var Lt=0;if(Je.geometry){var nn=Je.geometry.type;if(nn!=="Point"&&nn!=="MultiPoint"){var Fn,Kn=0,Mi=0,Yo=0;return mr(Je,function(Lo,Bo,zu,gu,Gl){if(Fn===void 0||Oe>Kn||gu>Mi||Gl>Yo)return Fn=Lo,Kn=Oe,Mi=gu,Yo=Gl,void(Lt=0);var Sl=zi([Fn,Lo],Je.properties);if(ze(Sl,Oe,ot,Gl,Lt)===!1)return!1;Lt++,Fn=Lo})!==!1&&void 0}}})}function Na(be,ze,Je){var Oe=Je,ot=!1;return ca(be,function(Lt,nn,Fn,Kn,Mi){Oe=ot===!1&&Je===void 0?Lt:ze(Oe,Lt,nn,Fn,Kn,Mi),ot=!0}),Oe}function ul(be,ze){if(!be)throw Error("geojson is required");ns(be,function(Je,Oe,ot){if(Je.geometry!==null){var Lt=Je.geometry.coordinates;switch(Je.geometry.type){case"LineString":if(ze(Je,Oe,ot,0,0)===!1)return!1;break;case"Polygon":for(var nn=0;Lt.length>nn;nn++)if(ze(zi(Lt[nn],Je.properties),Oe,ot,nn)===!1)return!1}}})}var Hl=Object.freeze({__proto__:null,coordAll:Ki,coordEach:mr,coordReduce:function(be,ze,Je,Oe){var ot=Je;return mr(be,function(Lt,nn,Fn,Kn,Mi){ot=nn===0&&Je===void 0?Lt:ze(ot,Lt,nn,Fn,Kn,Mi)},Oe),ot},featureEach:ni,featureReduce:function(be,ze,Je){var Oe=Je;return ni(be,function(ot,Lt){Oe=Lt===0&&Je===void 0?ot:ze(Oe,ot,Lt)}),Oe},findPoint:function(be,ze){if(!ss(ze=ze||{}))throw Error("options is invalid");var Je,Oe=ze.featureIndex||0,ot=ze.multiFeatureIndex||0,Lt=ze.geometryIndex||0,nn=ze.coordIndex||0,Fn=ze.properties;switch(be.type){case"FeatureCollection":0>Oe&&(Oe=be.features.length+Oe),Fn=Fn||be.features[Oe].properties,Je=be.features[Oe].geometry;break;case"Feature":Fn=Fn||be.properties,Je=be.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":Je=be;break;default:throw Error("geojson is invalid")}if(Je===null)return null;var Kn=Je.coordinates;switch(Je.type){case"Point":return Nl(Kn,Fn,ze);case"MultiPoint":return 0>ot&&(ot=Kn.length+ot),Nl(Kn[ot],Fn,ze);case"LineString":return 0>nn&&(nn=Kn.length+nn),Nl(Kn[nn],Fn,ze);case"Polygon":return 0>Lt&&(Lt=Kn.length+Lt),0>nn&&(nn=Kn[Lt].length+nn),Nl(Kn[Lt][nn],Fn,ze);case"MultiLineString":return 0>ot&&(ot=Kn.length+ot),0>nn&&(nn=Kn[ot].length+nn),Nl(Kn[ot][nn],Fn,ze);case"MultiPolygon":return 0>ot&&(ot=Kn.length+ot),0>Lt&&(Lt=Kn[ot].length+Lt),0>nn&&(nn=Kn[ot][Lt].length-nn),Nl(Kn[ot][Lt][nn],Fn,ze)}throw Error("geojson is invalid")},findSegment:function(be,ze){if(!ss(ze=ze||{}))throw Error("options is invalid");var Je,Oe=ze.featureIndex||0,ot=ze.multiFeatureIndex||0,Lt=ze.geometryIndex||0,nn=ze.segmentIndex||0,Fn=ze.properties;switch(be.type){case"FeatureCollection":0>Oe&&(Oe=be.features.length+Oe),Fn=Fn||be.features[Oe].properties,Je=be.features[Oe].geometry;break;case"Feature":Fn=Fn||be.properties,Je=be.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":Je=be;break;default:throw Error("geojson is invalid")}if(Je===null)return null;var Kn=Je.coordinates;switch(Je.type){case"Point":case"MultiPoint":return null;case"LineString":return 0>nn&&(nn=Kn.length+nn-1),zi([Kn[nn],Kn[nn+1]],Fn,ze);case"Polygon":return 0>Lt&&(Lt=Kn.length+Lt),0>nn&&(nn=Kn[Lt].length+nn-1),zi([Kn[Lt][nn],Kn[Lt][nn+1]],Fn,ze);case"MultiLineString":return 0>ot&&(ot=Kn.length+ot),0>nn&&(nn=Kn[ot].length+nn-1),zi([Kn[ot][nn],Kn[ot][nn+1]],Fn,ze);case"MultiPolygon":return 0>ot&&(ot=Kn.length+ot),0>Lt&&(Lt=Kn[ot].length+Lt),0>nn&&(nn=Kn[ot][Lt].length-nn-1),zi([Kn[ot][Lt][nn],Kn[ot][Lt][nn+1]],Fn,ze)}throw Error("geojson is invalid")},flattenEach:ns,flattenReduce:function(be,ze,Je){var Oe=Je;return ns(be,function(ot,Lt,nn){Oe=Lt===0&&nn===0&&Je===void 0?ot:ze(Oe,ot,Lt,nn)}),Oe},geomEach:ro,geomReduce:Ei,lineEach:ul,lineReduce:function(be,ze,Je){var Oe=Je;return ul(be,function(ot,Lt,nn,Fn){Oe=Lt===0&&Je===void 0?ot:ze(Oe,ot,Lt,nn,Fn)}),Oe},propEach:Qr,propReduce:function(be,ze,Je){var Oe=Je;return Qr(be,function(ot,Lt){Oe=Lt===0&&Je===void 0?ot:ze(Oe,ot,Lt)}),Oe},segmentEach:ca,segmentReduce:Na});function Ml(be){var ze=[1/0,1/0,-1/0,-1/0];return mr(be,function(Je){ze[0]>Je[0]&&(ze[0]=Je[0]),ze[1]>Je[1]&&(ze[1]=Je[1]),Je[0]>ze[2]&&(ze[2]=Je[0]),Je[1]>ze[3]&&(ze[3]=Je[1])}),ze}Ml.default=Ml;var ja=Object.freeze({__proto__:null,default:Ml});function Pu(be){if(!be)throw Error("coord is required");if(!Array.isArray(be)){if(be.type==="Feature"&&be.geometry!==null&&be.geometry.type==="Point")return be.geometry.coordinates;if(be.type==="Point")return be.coordinates}if(Array.isArray(be)&&be.length>=2&&!Array.isArray(be[0])&&!Array.isArray(be[1]))return be;throw Error("coord must be GeoJSON Point or an Array of numbers")}function Xs(be){if(Array.isArray(be))return be;if(be.type==="Feature"){if(be.geometry!==null)return be.geometry.coordinates}else if(be.coordinates)return be.coordinates;throw Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function Ya(be){return be.type==="Feature"?be.geometry:be}function qa(be,ze){return be.type==="FeatureCollection"?"FeatureCollection":be.type==="GeometryCollection"?"GeometryCollection":be.type==="Feature"&&be.geometry!==null?be.geometry.type:be.type}function Ul(be,ze,Je,Oe,ot){ql(be,ze,Je||0,Oe||be.length-1,ot||au)}function ql(be,ze,Je,Oe,ot){for(;Oe>Je;){if(Oe-Je>600){var Lt=Oe-Je+1,nn=ze-Je+1,Fn=Math.log(Lt),Kn=.5*Math.exp(2*Fn/3),Mi=.5*Math.sqrt(Fn*Kn*(Lt-Kn)/Lt)*(0>nn-Lt/2?-1:1);ql(be,ze,Math.max(Je,Math.floor(ze-nn*Kn/Lt+Mi)),Math.min(Oe,Math.floor(ze+(Lt-nn)*Kn/Lt+Mi)),ot)}var Yo=be[ze],Lo=Je,Bo=Oe;for(vu(be,Je,ze),ot(be[Oe],Yo)>0&&vu(be,Je,Oe);Bo>Lo;){for(vu(be,Lo,Bo),Lo++,Bo--;0>ot(be[Lo],Yo);)Lo++;for(;ot(be[Bo],Yo)>0;)Bo--}ot(be[Je],Yo)===0?vu(be,Je,Bo):vu(be,++Bo,Oe),Bo>ze||(Je=Bo+1),ze>Bo||(Oe=Bo-1)}}function vu(be,ze,Je){var Oe=be[ze];be[ze]=be[Je],be[Je]=Oe}function au(be,ze){return ze>be?-1:be>ze?1:0}function bn(be,ze,Je){if(!Je)return ze.indexOf(be);for(let Oe=0;ze.length>Oe;Oe++)if(Je(be,ze[Oe]))return Oe;return-1}function Eu(be,ze){ts(be,0,be.children.length,ze,be)}function ts(be,ze,Je,Oe,ot){ot||(ot=Ic(null)),ot.minX=1/0,ot.minY=1/0,ot.maxX=-1/0,ot.maxY=-1/0;for(let Lt=ze;Je>Lt;Lt++){const nn=be.children[Lt];Vs(ot,be.leaf?Oe(nn):nn)}return ot}function Vs(be,ze){return be.minX=Math.min(be.minX,ze.minX),be.minY=Math.min(be.minY,ze.minY),be.maxX=Math.max(be.maxX,ze.maxX),be.maxY=Math.max(be.maxY,ze.maxY),be}function ma(be,ze){return be.minX-ze.minX}function Il(be,ze){return be.minY-ze.minY}function El(be){return(be.maxX-be.minX)*(be.maxY-be.minY)}function gl(be){return be.maxX-be.minX+(be.maxY-be.minY)}function fu(be,ze){const Je=Math.max(be.minX,ze.minX),Oe=Math.max(be.minY,ze.minY),ot=Math.min(be.maxX,ze.maxX),Lt=Math.min(be.maxY,ze.maxY);return Math.max(0,ot-Je)*Math.max(0,Lt-Oe)}function Nu(be,ze){return!(be.minX>ze.minX||be.minY>ze.minY||ze.maxX>be.maxX||ze.maxY>be.maxY)}function lc(be,ze){return!(ze.minX>be.maxX||ze.minY>be.maxY||be.minX>ze.maxX||be.minY>ze.maxY)}function Ic(be){return{children:be,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function Vc(be,ze,Je,Oe,ot){const Lt=[ze,Je];for(;Lt.length;){if(Oe>=(Je=Lt.pop())-(ze=Lt.pop()))continue;const nn=ze+Math.ceil((Je-ze)/Oe/2)*Oe;Ul(be,nn,ze,Je,ot),Lt.push(ze,nn,nn,Je)}}var zd=Object.freeze({__proto__:null,default:class{constructor(be=9){this._maxEntries=Math.max(4,be),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(be){let ze=this.data;const Je=[];if(!lc(be,ze))return Je;const Oe=this.toBBox,ot=[];for(;ze;){for(let Lt=0;ze.children.length>Lt;Lt++){const nn=ze.children[Lt],Fn=ze.leaf?Oe(nn):nn;lc(be,Fn)&&(ze.leaf?Je.push(nn):Nu(be,Fn)?this._all(nn,Je):ot.push(nn))}ze=ot.pop()}return Je}collides(be){let ze=this.data;if(!lc(be,ze))return!1;const Je=[];for(;ze;){for(let Oe=0;ze.children.length>Oe;Oe++){const ot=ze.children[Oe],Lt=ze.leaf?this.toBBox(ot):ot;if(lc(be,Lt)){if(ze.leaf||Nu(be,Lt))return!0;Je.push(ot)}}ze=Je.pop()}return!1}load(be){if(!be||!be.length)return this;if(this._minEntries>be.length){for(let Je=0;be.length>Je;Je++)this.insert(be[Je]);return this}let ze=this._build(be.slice(),0,be.length-1,0);if(this.data.children.length)if(this.data.height===ze.height)this._splitRoot(this.data,ze);else{if(ze.height>this.data.height){const Je=this.data;this.data=ze,ze=Je}this._insert(ze,this.data.height-ze.height-1,!0)}else this.data=ze;return this}insert(be){return be&&this._insert(be,this.data.height-1),this}clear(){return this.data=Ic([]),this}remove(be,ze){if(!be)return this;let Je=this.data;const Oe=this.toBBox(be),ot=[],Lt=[];let nn,Fn,Kn;for(;Je||ot.length;){if(Je||(Je=ot.pop(),Fn=ot[ot.length-1],nn=Lt.pop(),Kn=!0),Je.leaf){const Mi=bn(be,Je.children,ze);if(Mi!==-1)return Je.children.splice(Mi,1),ot.push(Je),this._condense(ot),this}Kn||Je.leaf||!Nu(Je,Oe)?Fn?(nn++,Je=Fn.children[nn],Kn=!1):Je=null:(ot.push(Je),Lt.push(nn),nn=0,Fn=Je,Je=Je.children[0])}return this}toBBox(be){return be}compareMinX(be,ze){return be.minX-ze.minX}compareMinY(be,ze){return be.minY-ze.minY}toJSON(){return this.data}fromJSON(be){return this.data=be,this}_all(be,ze){const Je=[];for(;be;)be.leaf?ze.push(...be.children):Je.push(...be.children),be=Je.pop();return ze}_build(be,ze,Je,Oe){const ot=Je-ze+1;let Lt,nn=this._maxEntries;if(nn>=ot)return Lt=Ic(be.slice(ze,Je+1)),Eu(Lt,this.toBBox),Lt;Oe||(nn=Math.ceil(ot/Math.pow(nn,(Oe=Math.ceil(Math.log(ot)/Math.log(nn)))-1))),Lt=Ic([]),Lt.leaf=!1,Lt.height=Oe;const Fn=Math.ceil(ot/nn),Kn=Fn*Math.ceil(Math.sqrt(nn));Vc(be,ze,Je,Kn,this.compareMinX);for(let Mi=ze;Je>=Mi;Mi+=Kn){const Yo=Math.min(Mi+Kn-1,Je);Vc(be,Mi,Yo,Fn,this.compareMinY);for(let Lo=Mi;Yo>=Lo;Lo+=Fn)Lt.children.push(this._build(be,Lo,Math.min(Lo+Fn-1,Yo),Oe-1))}return Eu(Lt,this.toBBox),Lt}_chooseSubtree(be,ze,Je,Oe){for(;Oe.push(ze),!ze.leaf&&Oe.length-1!==Je;){let nn,Fn=1/0,Kn=1/0;for(let Mi=0;ze.children.length>Mi;Mi++){const Yo=ze.children[Mi],Lo=El(Yo),Bo=(Math.max((Lt=Yo).maxX,(ot=be).maxX)-Math.min(Lt.minX,ot.minX))*(Math.max(Lt.maxY,ot.maxY)-Math.min(Lt.minY,ot.minY))-Lo;Kn>Bo?(Kn=Bo,Fn=Fn>Lo?Lo:Fn,nn=Yo):Bo===Kn&&Fn>Lo&&(Fn=Lo,nn=Yo)}ze=nn||ze.children[0]}var ot,Lt;return ze}_insert(be,ze,Je){const Oe=Je?be:this.toBBox(be),ot=[],Lt=this._chooseSubtree(Oe,this.data,ze,ot);for(Lt.children.push(be),Vs(Lt,Oe);ze>=0&&ot[ze].children.length>this._maxEntries;)this._split(ot,ze),ze--;this._adjustParentBBoxes(Oe,ot,ze)}_split(be,ze){const Je=be[ze],Oe=Je.children.length,ot=this._minEntries;this._chooseSplitAxis(Je,ot,Oe);const Lt=this._chooseSplitIndex(Je,ot,Oe),nn=Ic(Je.children.splice(Lt,Je.children.length-Lt));nn.height=Je.height,nn.leaf=Je.leaf,Eu(Je,this.toBBox),Eu(nn,this.toBBox),ze?be[ze-1].children.push(nn):this._splitRoot(Je,nn)}_splitRoot(be,ze){this.data=Ic([be,ze]),this.data.height=be.height+1,this.data.leaf=!1,Eu(this.data,this.toBBox)}_chooseSplitIndex(be,ze,Je){let Oe,ot=1/0,Lt=1/0;for(let nn=ze;Je-ze>=nn;nn++){const Fn=ts(be,0,nn,this.toBBox),Kn=ts(be,nn,Je,this.toBBox),Mi=fu(Fn,Kn),Yo=El(Fn)+El(Kn);ot>Mi?(ot=Mi,Oe=nn,Lt=Lt>Yo?Yo:Lt):Mi===ot&&Lt>Yo&&(Lt=Yo,Oe=nn)}return Oe||Je-ze}_chooseSplitAxis(be,ze,Je){const Oe=be.leaf?this.compareMinX:ma,ot=be.leaf?this.compareMinY:Il,Lt=this._allDistMargin(be,ze,Je,Oe);this._allDistMargin(be,ze,Je,ot)>Lt&&be.children.sort(Oe)}_allDistMargin(be,ze,Je,Oe){be.children.sort(Oe);const ot=this.toBBox,Lt=ts(be,0,ze,ot),nn=ts(be,Je-ze,Je,ot);let Fn=gl(Lt)+gl(nn);for(let Kn=ze;Je-ze>Kn;Kn++){const Mi=be.children[Kn];Vs(Lt,be.leaf?ot(Mi):Mi),Fn+=gl(Lt)}for(let Kn=Je-ze-1;Kn>=ze;Kn--){const Mi=be.children[Kn];Vs(nn,be.leaf?ot(Mi):Mi),Fn+=gl(nn)}return Fn}_adjustParentBBoxes(be,ze,Je){for(let Oe=Je;Oe>=0;Oe--)Vs(ze[Oe],be)}_condense(be){for(let ze,Je=be.length-1;Je>=0;Je--)be[Je].children.length===0?Je>0?(ze=be[Je-1].children,ze.splice(ze.indexOf(be[Je]),1)):this.clear():Eu(be[Je],this.toBBox)}}});function eh(be,ze){return ze>be?-1:be>ze?1:0}var Kd=Object.freeze({__proto__:null,default:class{constructor(be=[],ze=eh){if(this.data=be,this.length=this.data.length,this.compare=ze,this.length>0)for(let Je=(this.length>>1)-1;Je>=0;Je--)this._down(Je)}push(be){this.data.push(be),this.length++,this._up(this.length-1)}pop(){if(this.length===0)return;const be=this.data[0],ze=this.data.pop();return this.length--,this.length>0&&(this.data[0]=ze,this._down(0)),be}peek(){return this.data[0]}_up(be){const{data:ze,compare:Je}=this,Oe=ze[be];for(;be>0;){const ot=be-1>>1,Lt=ze[ot];if(Je(Oe,Lt)>=0)break;ze[be]=Lt,be=ot}ze[be]=Oe}_down(be){const{data:ze,compare:Je}=this,Oe=this.length>>1,ot=ze[be];for(;Oe>be;){let Lt=1+(be<<1),nn=ze[Lt];const Fn=Lt+1;if(this.length>Fn&&0>Je(ze[Fn],nn)&&(Lt=Fn,nn=ze[Fn]),Je(nn,ot)>=0)break;ze[be]=nn,be=Lt}ze[be]=ot}}}),ad=function(be,ze,Je,Oe){var ot=be[0],Lt=be[1],nn=!1;Je===void 0&&(Je=0),Oe===void 0&&(Oe=ze.length);for(var Fn=(Oe-Je)/2,Kn=0,Mi=Fn-1;Fn>Kn;Mi=Kn++){var Yo=ze[Je+2*Kn+0],Lo=ze[Je+2*Kn+1],Bo=ze[Je+2*Mi+1];Lo>Lt!=Bo>Lt&&(ze[Je+2*Mi+0]-Yo)*(Lt-Lo)/(Bo-Lo)+Yo>ot&&(nn=!nn)}return nn},ku=function(be,ze,Je,Oe){var ot=be[0],Lt=be[1],nn=!1;Je===void 0&&(Je=0),Oe===void 0&&(Oe=ze.length);for(var Fn=Oe-Je,Kn=0,Mi=Fn-1;Fn>Kn;Mi=Kn++){var Yo=ze[Kn+Je][0],Lo=ze[Kn+Je][1],Bo=ze[Mi+Je][1];Lo>Lt!=Bo>Lt&&(ze[Mi+Je][0]-Yo)*(Lt-Lo)/(Bo-Lo)+Yo>ot&&(nn=!nn)}return nn},Fc=function(be,ze,Je,Oe){return ze.length>0&&Array.isArray(ze[0])?ku(be,ze,Je,Oe):ad(be,ze,Je,Oe)},dd=ad;Fc.nested=ku,Fc.flat=dd;var vd=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof m.g!="undefined"?m.g:typeof self!="undefined"?self:{};function Xd(be,ze,Je){return be(Je={path:ze,exports:{},require:function(Oe,ot){return function(){throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},Je.exports),Je.exports}function th(be){if(be.__esModule)return be;var ze=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(be).forEach(function(Je){var Oe=Object.getOwnPropertyDescriptor(be,Je);Object.defineProperty(ze,Je,Oe.get?Oe:{enumerable:!0,get:function(){return be[Je]}})}),ze}var jd=Xd(function(be,ze){(function(Je){const ot=33306690738754706e-32;function Lt(Gl,Sl,Kl,rl,Va){let pu,ic,od,Ao,Qh=Sl[0],xc=rl[0],hh=0,Gd=0;xc>Qh==xc>-Qh?(pu=Qh,Qh=Sl[++hh]):(pu=xc,xc=rl[++Gd]);let _=0;if(Gl>hh&&Kl>Gd)for(xc>Qh==xc>-Qh?(od=pu-((ic=Qh+pu)-Qh),Qh=Sl[++hh]):(od=pu-((ic=xc+pu)-xc),xc=rl[++Gd]),pu=ic,od!==0&&(Va[_++]=od);Gl>hh&&Kl>Gd;)xc>Qh==xc>-Qh?(od=pu-((ic=pu+Qh)-(Ao=ic-pu))+(Qh-Ao),Qh=Sl[++hh]):(od=pu-((ic=pu+xc)-(Ao=ic-pu))+(xc-Ao),xc=rl[++Gd]),pu=ic,od!==0&&(Va[_++]=od);for(;Gl>hh;)od=pu-((ic=pu+Qh)-(Ao=ic-pu))+(Qh-Ao),Qh=Sl[++hh],pu=ic,od!==0&&(Va[_++]=od);for(;Kl>Gd;)od=pu-((ic=pu+xc)-(Ao=ic-pu))+(xc-Ao),xc=rl[++Gd],pu=ic,od!==0&&(Va[_++]=od);return pu===0&&_!==0||(Va[_++]=pu),_}function nn(Gl){return new Float64Array(Gl)}const Fn=33306690738754716e-32,Kn=22204460492503146e-32,Mi=11093356479670487e-47,Yo=nn(4),Lo=nn(8),Bo=nn(12),zu=nn(16),gu=nn(4);Je.orient2d=function(Gl,Sl,Kl,rl,Va,pu){const ic=(Sl-pu)*(Kl-Va),od=(Gl-Va)*(rl-pu),Ao=ic-od;if(ic===0||od===0||ic>0!=od>0)return Ao;const Qh=Math.abs(ic+od);return Fn*Qh>Math.abs(Ao)?-function(xc,hh,Gd,_,R,G,le){let ke,Qe,Ct,jt,Rn,ur,zr,hi,po,ko,Zs,Js,sl,Da,Ol,jl,cu,lu;const Uu=xc-R,kc=Gd-R,ac=hh-G,_d=_-G;Rn=(Ol=(hi=Uu-(zr=(ur=134217729*Uu)-(ur-Uu)))*(ko=_d-(po=(ur=134217729*_d)-(ur-_d)))-((Da=Uu*_d)-zr*po-hi*po-zr*ko))-(Zs=Ol-(cu=(hi=ac-(zr=(ur=134217729*ac)-(ur-ac)))*(ko=kc-(po=(ur=134217729*kc)-(ur-kc)))-((jl=ac*kc)-zr*po-hi*po-zr*ko))),Yo[0]=Ol-(Zs+Rn)+(Rn-cu),Rn=(sl=Da-((Js=Da+Zs)-(Rn=Js-Da))+(Zs-Rn))-(Zs=sl-jl),Yo[1]=sl-(Zs+Rn)+(Rn-jl),Rn=(lu=Js+Zs)-Js,Yo[2]=Js-(lu-Rn)+(Zs-Rn),Yo[3]=lu;let Xu=function(jr,go){let ia=go[0];for(let Ga=1;jr>Ga;Ga++)ia+=go[Ga];return ia}(4,Yo),Nd=Kn*le;if(Xu>=Nd||-Xu>=Nd||(ke=xc-(Uu+(Rn=xc-Uu))+(Rn-R),Ct=Gd-(kc+(Rn=Gd-kc))+(Rn-R),Qe=hh-(ac+(Rn=hh-ac))+(Rn-G),jt=_-(_d+(Rn=_-_d))+(Rn-G),ke===0&&Qe===0&&Ct===0&&jt===0)||(Nd=Mi*le+ot*Math.abs(Xu),(Xu+=Uu*jt+_d*ke-(ac*Ct+kc*Qe))>=Nd||-Xu>=Nd))return Xu;Rn=(Ol=(hi=ke-(zr=(ur=134217729*ke)-(ur-ke)))*(ko=_d-(po=(ur=134217729*_d)-(ur-_d)))-((Da=ke*_d)-zr*po-hi*po-zr*ko))-(Zs=Ol-(cu=(hi=Qe-(zr=(ur=134217729*Qe)-(ur-Qe)))*(ko=kc-(po=(ur=134217729*kc)-(ur-kc)))-((jl=Qe*kc)-zr*po-hi*po-zr*ko))),gu[0]=Ol-(Zs+Rn)+(Rn-cu),Rn=(sl=Da-((Js=Da+Zs)-(Rn=Js-Da))+(Zs-Rn))-(Zs=sl-jl),gu[1]=sl-(Zs+Rn)+(Rn-jl),Rn=(lu=Js+Zs)-Js,gu[2]=Js-(lu-Rn)+(Zs-Rn),gu[3]=lu;const Yt=Lt(4,Yo,4,gu,Lo);Rn=(Ol=(hi=Uu-(zr=(ur=134217729*Uu)-(ur-Uu)))*(ko=jt-(po=(ur=134217729*jt)-(ur-jt)))-((Da=Uu*jt)-zr*po-hi*po-zr*ko))-(Zs=Ol-(cu=(hi=ac-(zr=(ur=134217729*ac)-(ur-ac)))*(ko=Ct-(po=(ur=134217729*Ct)-(ur-Ct)))-((jl=ac*Ct)-zr*po-hi*po-zr*ko))),gu[0]=Ol-(Zs+Rn)+(Rn-cu),Rn=(sl=Da-((Js=Da+Zs)-(Rn=Js-Da))+(Zs-Rn))-(Zs=sl-jl),gu[1]=sl-(Zs+Rn)+(Rn-jl),Rn=(lu=Js+Zs)-Js,gu[2]=Js-(lu-Rn)+(Zs-Rn),gu[3]=lu;const Mn=Lt(Yt,Lo,4,gu,Bo);Rn=(Ol=(hi=ke-(zr=(ur=134217729*ke)-(ur-ke)))*(ko=jt-(po=(ur=134217729*jt)-(ur-jt)))-((Da=ke*jt)-zr*po-hi*po-zr*ko))-(Zs=Ol-(cu=(hi=Qe-(zr=(ur=134217729*Qe)-(ur-Qe)))*(ko=Ct-(po=(ur=134217729*Ct)-(ur-Ct)))-((jl=Qe*Ct)-zr*po-hi*po-zr*ko))),gu[0]=Ol-(Zs+Rn)+(Rn-cu),Rn=(sl=Da-((Js=Da+Zs)-(Rn=Js-Da))+(Zs-Rn))-(Zs=sl-jl),gu[1]=sl-(Zs+Rn)+(Rn-jl),Rn=(lu=Js+Zs)-Js,gu[2]=Js-(lu-Rn)+(Zs-Rn),gu[3]=lu;const dr=Lt(Mn,Bo,4,gu,zu);return zu[dr-1]}(Gl,Sl,Kl,rl,Va,pu,Qh):Ao},Je.orient2dfast=function(Gl,Sl,Kl,rl,Va,pu){return(Sl-pu)*(Kl-Va)-(Gl-Va)*(rl-pu)},Object.defineProperty(Je,"__esModule",{value:!0})})(ze)}),vh=th(zd),id=th(Kd),nd=jd.orient2d;id.default&&(id=id.default);var Pf=qd;function qd(be,ze,Je){ze=Math.max(0,ze===void 0?2:ze),Je=Je||0;var Oe=function(rl){for(var Va=rl[0],pu=rl[0],ic=rl[0],od=rl[0],Ao=0;rl.length>Ao;Ao++){var Qh=rl[Ao];Va[0]>Qh[0]&&(Va=Qh),Qh[0]>ic[0]&&(ic=Qh),pu[1]>Qh[1]&&(pu=Qh),Qh[1]>od[1]&&(od=Qh)}var xc=[Va,pu,ic,od],hh=xc.slice();for(Ao=0;rl.length>Ao;Ao++)Fc(rl[Ao],xc)||hh.push(rl[Ao]);return function(Gd){Gd.sort(ff);for(var _=[],R=0;Gd.length>R;R++){for(;_.length>=2&&0>=Sf(_[_.length-2],_[_.length-1],Gd[R]);)_.pop();_.push(Gd[R])}for(var G=[],le=Gd.length-1;le>=0;le--){for(;G.length>=2&&0>=Sf(G[G.length-2],G[G.length-1],Gd[le]);)G.pop();G.push(Gd[le])}return G.pop(),_.pop(),_.concat(G)}(hh)}(be),ot=new vh(16);ot.toBBox=function(rl){return{minX:rl[0],minY:rl[1],maxX:rl[0],maxY:rl[1]}},ot.compareMinX=function(rl,Va){return rl[0]-Va[0]},ot.compareMinY=function(rl,Va){return rl[1]-Va[1]},ot.load(be);for(var Lt,nn=[],Fn=0;Oe.length>Fn;Fn++){var Kn=Oe[Fn];ot.remove(Kn),Lt=Nf(Kn,Lt),nn.push(Lt)}var Mi=new vh(16);for(Fn=0;nn.length>Fn;Fn++)Mi.insert(Cp(nn[Fn]));for(var Yo=ze*ze,Lo=Je*Je;nn.length;){var Bo=nn.shift(),zu=Bo.p,gu=Bo.next.p,Gl=uh(zu,gu);if(Gl>=Lo){var Sl=Gl/Yo;(Kn=cc(ot,Bo.prev.p,zu,gu,Bo.next.next.p,Sl,Mi))&&Math.min(uh(Kn,zu),uh(Kn,gu))<=Sl&&(nn.push(Bo),nn.push(Nf(Kn,Bo)),ot.remove(Kn),Mi.remove(Bo),Mi.insert(Cp(Bo)),Mi.insert(Cp(Bo.next)))}}Bo=Lt;var Kl=[];do Kl.push(Bo.p),Bo=Bo.next;while(Bo!==Lt);return Kl.push(Bo.p),Kl}function cc(be,ze,Je,Oe,ot,Lt,nn){for(var Fn=new id([],Xc),Kn=be.data;Kn;){for(var Mi=0;Kn.children.length>Mi;Mi++){var Yo=Kn.children[Mi],Lo=Kn.leaf?Th(Yo,Je,Oe):jh(Je,Oe,Yo);LtBo.dist&&Gl>Bo.dist&&Lh(Je,zu,nn)&&Lh(Oe,zu,nn))return zu}(Kn=Fn.pop())&&(Kn=Kn.node)}return null}function Xc(be,ze){return be.dist-ze.dist}function jh(be,ze,Je){if(uf(be,Je)||uf(ze,Je))return 0;var Oe=yu(be[0],be[1],ze[0],ze[1],Je.minX,Je.minY,Je.maxX,Je.minY);if(Oe===0)return 0;var ot=yu(be[0],be[1],ze[0],ze[1],Je.minX,Je.minY,Je.minX,Je.maxY);if(ot===0)return 0;var Lt=yu(be[0],be[1],ze[0],ze[1],Je.maxX,Je.minY,Je.maxX,Je.maxY);if(Lt===0)return 0;var nn=yu(be[0],be[1],ze[0],ze[1],Je.minX,Je.maxY,Je.maxX,Je.maxY);return nn===0?0:Math.min(Oe,ot,Lt,nn)}function uf(be,ze){return!(ze.minX>be[0]||be[0]>ze.maxX||ze.minY>be[1]||be[1]>ze.maxY)}function Lh(be,ze,Je){for(var Oe,ot,Lt,nn,Fn=Je.search({minX:Math.min(be[0],ze[0]),minY:Math.min(be[1],ze[1]),maxX:Math.max(be[0],ze[0]),maxY:Math.max(be[1],ze[1])}),Kn=0;Fn.length>Kn;Kn++)if(ot=Fn[Kn].next.p,Lt=be,(Oe=Fn[Kn].p)!==(nn=ze)&&ot!==Lt&&Sf(Oe,ot,Lt)>0!=Sf(Oe,ot,nn)>0&&Sf(Lt,nn,Oe)>0!=Sf(Lt,nn,ot)>0)return!1;return!0}function Sf(be,ze,Je){return nd(be[0],be[1],ze[0],ze[1],Je[0],Je[1])}function Cp(be){var ze=be.p,Je=be.next.p;return be.minX=Math.min(ze[0],Je[0]),be.minY=Math.min(ze[1],Je[1]),be.maxX=Math.max(ze[0],Je[0]),be.maxY=Math.max(ze[1],Je[1]),be}function Nf(be,ze){var Je={p:be,prev:null,next:null,minX:0,minY:0,maxX:0,maxY:0};return ze?(Je.next=ze.next,Je.prev=ze,ze.next.prev=Je,ze.next=Je):(Je.prev=Je,Je.next=Je),Je}function uh(be,ze){var Je=be[0]-ze[0],Oe=be[1]-ze[1];return Je*Je+Oe*Oe}function Th(be,ze,Je){var Oe=ze[0],ot=ze[1],Lt=Je[0]-Oe,nn=Je[1]-ot;if(Lt!==0||nn!==0){var Fn=((be[0]-Oe)*Lt+(be[1]-ot)*nn)/(Lt*Lt+nn*nn);Fn>1?(Oe=Je[0],ot=Je[1]):Fn>0&&(Oe+=Lt*Fn,ot+=nn*Fn)}return(Lt=be[0]-Oe)*Lt+(nn=be[1]-ot)*nn}function yu(be,ze,Je,Oe,ot,Lt,nn,Fn){var Kn,Mi,Yo,Lo,Bo=Je-be,zu=Oe-ze,gu=nn-ot,Gl=Fn-Lt,Sl=be-ot,Kl=ze-Lt,rl=Bo*Bo+zu*zu,Va=Bo*gu+zu*Gl,pu=gu*gu+Gl*Gl,ic=Bo*Sl+zu*Kl,od=gu*Sl+Gl*Kl,Ao=rl*pu-Va*Va,Qh=Ao,xc=Ao;Ao===0?(Mi=0,Qh=1,Lo=od,xc=pu):(Lo=rl*od-Va*ic,0>(Mi=Va*od-pu*ic)?(Mi=0,Lo=od,xc=pu):Mi>Qh&&(Mi=Qh,Lo=od+Va,xc=pu)),0>Lo?(Lo=0,0>-ic?Mi=0:-ic>rl?Mi=Qh:(Mi=-ic,Qh=rl)):Lo>xc&&(Lo=xc,0>-ic+Va?Mi=0:-ic+Va>rl?Mi=Qh:(Mi=-ic+Va,Qh=rl));var hh=(1-(Yo=Lo===0?0:Lo/xc))*ot+Yo*nn-((1-(Kn=Mi===0?0:Mi/Qh))*be+Kn*Je),Gd=(1-Yo)*Lt+Yo*Fn-((1-Kn)*ze+Kn*Oe);return hh*hh+Gd*Gd}function ff(be,ze){return be[0]===ze[0]?be[1]-ze[1]:be[0]-ze[0]}function Ja(be,ze,Je){Je===void 0&&(Je={});var Oe=Pu(be),ot=Pu(ze),Lt=ho(ot[1]-Oe[1]),nn=ho(ot[0]-Oe[0]),Fn=ho(Oe[1]),Kn=ho(ot[1]),Mi=Math.pow(Math.sin(Lt/2),2)+Math.pow(Math.sin(nn/2),2)*Math.cos(Fn)*Math.cos(Kn);return $u(2*Math.atan2(Math.sqrt(Mi),Math.sqrt(1-Mi)),Je.units)}function Fu(be){return function(ze,Je){Je===void 0&&(Je={});var Oe=Number(ze[0]),ot=Number(ze[1]),Lt=Number(ze[2]),nn=Number(ze[3]);if(ze.length===6)throw Error("@turf/bbox-polygon does not support BBox with 6 positions");var Fn=[Oe,ot];return cs([[Fn,[Lt,ot],[Lt,nn],[Oe,nn],Fn]],Je.properties,{bbox:ze,id:Je.id})}(Ml(be))}function wd(be,ze,Je,Oe){Oe===void 0&&(Oe={});var ot=Pu(be),Lt=ho(ot[0]),nn=ho(ot[1]),Fn=ho(Je),Kn=rc(ze,Oe.units),Mi=Math.asin(Math.sin(nn)*Math.cos(Kn)+Math.cos(nn)*Math.sin(Kn)*Math.cos(Fn));return Nl([Pc(Lt+Math.atan2(Math.sin(Fn)*Math.sin(Kn)*Math.cos(nn),Math.cos(Kn)-Math.sin(nn)*Math.sin(Mi))),Pc(Mi)],Oe.properties)}function Yd(be,ze,Je){if(Je===void 0&&(Je={}),Je.final===!0)return function(Mi,Yo){var Lo=Yd(Yo,Mi);return Lo=(Lo+180)%360}(be,ze);var Oe=Pu(be),ot=Pu(ze),Lt=ho(Oe[0]),nn=ho(ot[0]),Fn=ho(Oe[1]),Kn=ho(ot[1]);return Pc(Math.atan2(Math.sin(nn-Lt)*Math.cos(Kn),Math.cos(Fn)*Math.sin(Kn)-Math.sin(Fn)*Math.cos(Kn)*Math.cos(nn-Lt)))}function Ba(be,ze){ze===void 0&&(ze={});var Je=Ml(be);return Nl([(Je[0]+Je[2])/2,(Je[1]+Je[3])/2],ze.properties,ze)}function ru(be,ze){ze===void 0&&(ze={});var Je=0,Oe=0,ot=0;return mr(be,function(Lt){Je+=Lt[0],Oe+=Lt[1],ot++},!0),Nl([Je/ot,Oe/ot],ze.properties)}function zl(be,ze){switch(ze===void 0&&(ze={}),qa(be)){case"Point":return Nl(Pu(be),ze.properties);case"Polygon":var Je=[];mr(be,function(Va){Je.push(Va)});var Oe,ot,Lt,nn,Fn,Kn,Mi,Yo,Lo=ru(be,{properties:ze.properties}),Bo=Lo.geometry.coordinates,zu=0,gu=0,Gl=0,Sl=Je.map(function(Va){return[Va[0]-Bo[0],Va[1]-Bo[1]]});for(Oe=0;Je.length-1>Oe;Oe++)Gl+=Yo=(nn=(ot=Sl[Oe])[0])*(Mi=(Lt=Sl[Oe+1])[1])-(Fn=Lt[0])*(Kn=ot[1]),zu+=(nn+Fn)*Yo,gu+=(Kn+Mi)*Yo;if(Gl===0)return Lo;var Kl=1/(6*(.5*Gl));return Nl([Bo[0]+Kl*zu,Bo[1]+Kl*gu],ze.properties);default:var rl=function(Va,pu){pu===void 0&&(pu={}),pu.concavity=pu.concavity||1/0;var ic=[];if(mr(Va,function(Ao){ic.push([Ao[0],Ao[1]])}),!ic.length)return null;var od=Pf(ic,pu.concavity);return od.length>3?cs([od]):null}(be);return rl?zl(rl,{properties:ze.properties}):ru(be,{properties:ze.properties})}}function Au(be){if(!be)throw Error("geojson is required");var ze=[];return ns(be,function(Je){(function(Oe,ot){var Lt=[],nn=Oe.geometry;if(nn!==null){switch(nn.type){case"Polygon":Lt=Xs(nn);break;case"LineString":Lt=[Xs(nn)]}Lt.forEach(function(Fn){var Kn=function(Mi,Yo){var Lo=[];return Mi.reduce(function(Bo,zu){var gu,Gl,Sl,Kl,rl,Va,pu=zi([Bo,zu],Yo);return pu.bbox=[(rl=(Gl=zu)[0])>(Sl=(gu=Bo)[0])?Sl:rl,(Va=Gl[1])>(Kl=gu[1])?Kl:Va,Sl>rl?Sl:rl,Kl>Va?Kl:Va],Lo.push(pu),zu}),Lo}(Fn,Oe.properties);Kn.forEach(function(Mi){Mi.id=ot.length,ot.push(Mi)})})}})(Je,ze)}),qi(ze)}Pf.default=qd;function Vu(be,ze,Je){if(!Je)return ze.indexOf(be);for(let Oe=0;ze.length>Oe;Oe++)if(Je(be,ze[Oe]))return Oe;return-1}function Vd(be,ze){Ud(be,0,be.children.length,ze,be)}function Ud(be,ze,Je,Oe,ot){ot||(ot=ed(null)),ot.minX=1/0,ot.minY=1/0,ot.maxX=-1/0,ot.maxY=-1/0;for(let Lt=ze;Je>Lt;Lt++){const nn=be.children[Lt];oh(ot,be.leaf?Oe(nn):nn)}return ot}function oh(be,ze){return be.minX=Math.min(be.minX,ze.minX),be.minY=Math.min(be.minY,ze.minY),be.maxX=Math.max(be.maxX,ze.maxX),be.maxY=Math.max(be.maxY,ze.maxY),be}function Vf(be,ze){return be.minX-ze.minX}function yf(be,ze){return be.minY-ze.minY}function Uh(be){return(be.maxX-be.minX)*(be.maxY-be.minY)}function kf(be){return be.maxX-be.minX+(be.maxY-be.minY)}function Bh(be,ze){const Je=Math.max(be.minX,ze.minX),Oe=Math.max(be.minY,ze.minY),ot=Math.min(be.maxX,ze.maxX),Lt=Math.min(be.maxY,ze.maxY);return Math.max(0,ot-Je)*Math.max(0,Lt-Oe)}function Kf(be,ze){return!(be.minX>ze.minX||be.minY>ze.minY||ze.maxX>be.maxX||ze.maxY>be.maxY)}function sh(be,ze){return!(ze.minX>be.maxX||ze.minY>be.maxY||be.minX>ze.maxX||be.minY>ze.maxY)}function ed(be){return{children:be,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function Vh(be,ze,Je,Oe,ot){const Lt=[ze,Je];for(;Lt.length;){if(Oe>=(Je=Lt.pop())-(ze=Lt.pop()))continue;const nn=ze+Math.ceil((Je-ze)/Oe/2)*Oe;Ul(be,nn,ze,Je,ot),Lt.push(ze,nn,nn,Je)}}var Kh=Object.freeze({__proto__:null,default:class{constructor(be=9){this._maxEntries=Math.max(4,be),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(be){let ze=this.data;const Je=[];if(!sh(be,ze))return Je;const Oe=this.toBBox,ot=[];for(;ze;){for(let Lt=0;ze.children.length>Lt;Lt++){const nn=ze.children[Lt],Fn=ze.leaf?Oe(nn):nn;sh(be,Fn)&&(ze.leaf?Je.push(nn):Kf(be,Fn)?this._all(nn,Je):ot.push(nn))}ze=ot.pop()}return Je}collides(be){let ze=this.data;if(!sh(be,ze))return!1;const Je=[];for(;ze;){for(let Oe=0;ze.children.length>Oe;Oe++){const ot=ze.children[Oe],Lt=ze.leaf?this.toBBox(ot):ot;if(sh(be,Lt)){if(ze.leaf||Kf(be,Lt))return!0;Je.push(ot)}}ze=Je.pop()}return!1}load(be){if(!be||!be.length)return this;if(this._minEntries>be.length){for(let Je=0;be.length>Je;Je++)this.insert(be[Je]);return this}let ze=this._build(be.slice(),0,be.length-1,0);if(this.data.children.length)if(this.data.height===ze.height)this._splitRoot(this.data,ze);else{if(ze.height>this.data.height){const Je=this.data;this.data=ze,ze=Je}this._insert(ze,this.data.height-ze.height-1,!0)}else this.data=ze;return this}insert(be){return be&&this._insert(be,this.data.height-1),this}clear(){return this.data=ed([]),this}remove(be,ze){if(!be)return this;let Je=this.data;const Oe=this.toBBox(be),ot=[],Lt=[];let nn,Fn,Kn;for(;Je||ot.length;){if(Je||(Je=ot.pop(),Fn=ot[ot.length-1],nn=Lt.pop(),Kn=!0),Je.leaf){const Mi=Vu(be,Je.children,ze);if(Mi!==-1)return Je.children.splice(Mi,1),ot.push(Je),this._condense(ot),this}Kn||Je.leaf||!Kf(Je,Oe)?Fn?(nn++,Je=Fn.children[nn],Kn=!1):Je=null:(ot.push(Je),Lt.push(nn),nn=0,Fn=Je,Je=Je.children[0])}return this}toBBox(be){return be}compareMinX(be,ze){return be.minX-ze.minX}compareMinY(be,ze){return be.minY-ze.minY}toJSON(){return this.data}fromJSON(be){return this.data=be,this}_all(be,ze){const Je=[];for(;be;)be.leaf?ze.push(...be.children):Je.push(...be.children),be=Je.pop();return ze}_build(be,ze,Je,Oe){const ot=Je-ze+1;let Lt,nn=this._maxEntries;if(nn>=ot)return Lt=ed(be.slice(ze,Je+1)),Vd(Lt,this.toBBox),Lt;Oe||(nn=Math.ceil(ot/Math.pow(nn,(Oe=Math.ceil(Math.log(ot)/Math.log(nn)))-1))),Lt=ed([]),Lt.leaf=!1,Lt.height=Oe;const Fn=Math.ceil(ot/nn),Kn=Fn*Math.ceil(Math.sqrt(nn));Vh(be,ze,Je,Kn,this.compareMinX);for(let Mi=ze;Je>=Mi;Mi+=Kn){const Yo=Math.min(Mi+Kn-1,Je);Vh(be,Mi,Yo,Fn,this.compareMinY);for(let Lo=Mi;Yo>=Lo;Lo+=Fn)Lt.children.push(this._build(be,Lo,Math.min(Lo+Fn-1,Yo),Oe-1))}return Vd(Lt,this.toBBox),Lt}_chooseSubtree(be,ze,Je,Oe){for(;Oe.push(ze),!ze.leaf&&Oe.length-1!==Je;){let nn,Fn=1/0,Kn=1/0;for(let Mi=0;ze.children.length>Mi;Mi++){const Yo=ze.children[Mi],Lo=Uh(Yo),Bo=(Math.max((Lt=Yo).maxX,(ot=be).maxX)-Math.min(Lt.minX,ot.minX))*(Math.max(Lt.maxY,ot.maxY)-Math.min(Lt.minY,ot.minY))-Lo;Kn>Bo?(Kn=Bo,Fn=Fn>Lo?Lo:Fn,nn=Yo):Bo===Kn&&Fn>Lo&&(Fn=Lo,nn=Yo)}ze=nn||ze.children[0]}var ot,Lt;return ze}_insert(be,ze,Je){const Oe=Je?be:this.toBBox(be),ot=[],Lt=this._chooseSubtree(Oe,this.data,ze,ot);for(Lt.children.push(be),oh(Lt,Oe);ze>=0&&ot[ze].children.length>this._maxEntries;)this._split(ot,ze),ze--;this._adjustParentBBoxes(Oe,ot,ze)}_split(be,ze){const Je=be[ze],Oe=Je.children.length,ot=this._minEntries;this._chooseSplitAxis(Je,ot,Oe);const Lt=this._chooseSplitIndex(Je,ot,Oe),nn=ed(Je.children.splice(Lt,Je.children.length-Lt));nn.height=Je.height,nn.leaf=Je.leaf,Vd(Je,this.toBBox),Vd(nn,this.toBBox),ze?be[ze-1].children.push(nn):this._splitRoot(Je,nn)}_splitRoot(be,ze){this.data=ed([be,ze]),this.data.height=be.height+1,this.data.leaf=!1,Vd(this.data,this.toBBox)}_chooseSplitIndex(be,ze,Je){let Oe,ot=1/0,Lt=1/0;for(let nn=ze;Je-ze>=nn;nn++){const Fn=Ud(be,0,nn,this.toBBox),Kn=Ud(be,nn,Je,this.toBBox),Mi=Bh(Fn,Kn),Yo=Uh(Fn)+Uh(Kn);ot>Mi?(ot=Mi,Oe=nn,Lt=Lt>Yo?Yo:Lt):Mi===ot&&Lt>Yo&&(Lt=Yo,Oe=nn)}return Oe||Je-ze}_chooseSplitAxis(be,ze,Je){const Oe=be.leaf?this.compareMinX:Vf,ot=be.leaf?this.compareMinY:yf,Lt=this._allDistMargin(be,ze,Je,Oe);this._allDistMargin(be,ze,Je,ot)>Lt&&be.children.sort(Oe)}_allDistMargin(be,ze,Je,Oe){be.children.sort(Oe);const ot=this.toBBox,Lt=Ud(be,0,ze,ot),nn=Ud(be,Je-ze,Je,ot);let Fn=kf(Lt)+kf(nn);for(let Kn=ze;Je-ze>Kn;Kn++){const Mi=be.children[Kn];oh(Lt,be.leaf?ot(Mi):Mi),Fn+=kf(Lt)}for(let Kn=Je-ze-1;Kn>=ze;Kn--){const Mi=be.children[Kn];oh(nn,be.leaf?ot(Mi):Mi),Fn+=kf(nn)}return Fn}_adjustParentBBoxes(be,ze,Je){for(let Oe=Je;Oe>=0;Oe--)oh(ze[Oe],be)}_condense(be){for(let ze,Je=be.length-1;Je>=0;Je--)be[Je].children.length===0?Je>0?(ze=be[Je-1].children,ze.splice(ze.indexOf(be[Je]),1)):this.clear():Vd(be[Je],this.toBBox)}}}),cf=th(Kh),Qc=th($n),Pa=th(Hl),is=th(ja).default,Op=Pa.featureEach,Qi=Qc.featureCollection;function bc(be){var ze=new cf(be);return ze.insert=function(Je){if(Je.type!=="Feature")throw Error("invalid feature");return Je.bbox=Je.bbox?Je.bbox:is(Je),cf.prototype.insert.call(this,Je)},ze.load=function(Je){var Oe=[];return Array.isArray(Je)?Je.forEach(function(ot){if(ot.type!=="Feature")throw Error("invalid features");ot.bbox=ot.bbox?ot.bbox:is(ot),Oe.push(ot)}):Op(Je,function(ot){if(ot.type!=="Feature")throw Error("invalid features");ot.bbox=ot.bbox?ot.bbox:is(ot),Oe.push(ot)}),cf.prototype.load.call(this,Oe)},ze.remove=function(Je,Oe){if(Je.type!=="Feature")throw Error("invalid feature");return Je.bbox=Je.bbox?Je.bbox:is(Je),cf.prototype.remove.call(this,Je,Oe)},ze.clear=function(){return cf.prototype.clear.call(this)},ze.search=function(Je){var Oe=cf.prototype.search.call(this,this.toBBox(Je));return Qi(Oe)},ze.collides=function(Je){return cf.prototype.collides.call(this,this.toBBox(Je))},ze.all=function(){var Je=cf.prototype.all.call(this);return Qi(Je)},ze.toJSON=function(){return cf.prototype.toJSON.call(this)},ze.fromJSON=function(Je){return cf.prototype.fromJSON.call(this,Je)},ze.toBBox=function(Je){var Oe;if(Je.bbox)Oe=Je.bbox;else if(Array.isArray(Je)&&Je.length===4)Oe=Je;else if(Array.isArray(Je)&&Je.length===6)Oe=[Je[0],Je[1],Je[3],Je[4]];else if(Je.type==="Feature")Oe=is(Je);else{if(Je.type!=="FeatureCollection")throw Error("invalid geojson");Oe=is(Je)}return{minX:Oe[0],minY:Oe[1],maxX:Oe[2],maxY:Oe[3]}},ze}var gf=bc;function Qu(be,ze){var Je={},Oe=[];if(be.type==="LineString"&&(be=oa(be)),ze.type==="LineString"&&(ze=oa(ze)),be.type==="Feature"&&ze.type==="Feature"&&be.geometry!==null&&ze.geometry!==null&&be.geometry.type==="LineString"&&ze.geometry.type==="LineString"&&be.geometry.coordinates.length===2&&ze.geometry.coordinates.length===2){var ot=Bc(be,ze);return ot&&Oe.push(ot),qi(Oe)}var Lt=gf();return Lt.load(Au(ze)),ni(Au(be),function(nn){ni(Lt.search(nn),function(Fn){var Kn=Bc(nn,Fn);if(Kn){var Mi=Xs(Kn).join(",");Je[Mi]||(Je[Mi]=!0,Oe.push(Kn))}})}),qi(Oe)}function Bc(be,ze){var Je=Xs(be),Oe=Xs(ze);if(Je.length!==2)throw Error(" line1 must only contain 2 coordinates");if(Oe.length!==2)throw Error(" line2 must only contain 2 coordinates");var ot=Je[0][0],Lt=Je[0][1],nn=Je[1][0],Fn=Je[1][1],Kn=Oe[0][0],Mi=Oe[0][1],Yo=Oe[1][0],Lo=Oe[1][1],Bo=(Lo-Mi)*(nn-ot)-(Yo-Kn)*(Fn-Lt),zu=(Yo-Kn)*(Lt-Mi)-(Lo-Mi)*(ot-Kn),gu=(nn-ot)*(Lt-Mi)-(Fn-Lt)*(ot-Kn);if(Bo===0)return null;var Gl=zu/Bo,Sl=gu/Bo;return 0>Gl||Gl>1||0>Sl||Sl>1?null:Nl([ot+Gl*(nn-ot),Lt+Gl*(Fn-Lt)])}gf.default=bc;var Df=6378137;function qp(be){return Ei(be,function(ze,Je){return ze+function(Oe){var ot,Lt=0;switch(Oe.type){case"Polygon":return sg(Oe.coordinates);case"MultiPolygon":for(ot=0;Oe.coordinates.length>ot;ot++)Lt+=sg(Oe.coordinates[ot]);return Lt;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0}return 0}(Je)},0)}function sg(be){var ze=0;if(be&&be.length>0){ze+=Math.abs(Ah(be[0]));for(var Je=1;be.length>Je;Je++)ze-=Math.abs(Ah(be[Je]))}return ze}function Ah(be){var ze,Je,Oe,ot,Lt,nn,Fn=0,Kn=be.length;if(Kn>2){for(nn=0;Kn>nn;nn++)nn===Kn-2?(Oe=Kn-2,ot=Kn-1,Lt=0):nn===Kn-1?(Oe=Kn-1,ot=0,Lt=1):(Oe=nn,ot=nn+1,Lt=nn+2),ze=be[Oe],Je=be[ot],Fn+=(sp(be[Lt][0])-sp(ze[0]))*Math.sin(sp(Je[1]));Fn=Fn*Df*Df/2}return Fn}function sp(be){return be*Math.PI/180}function Rp(be,ze){return ze===void 0&&(ze={}),Na(be,function(Je,Oe){var ot=Oe.geometry.coordinates;return Je+Ja(ot[0],ot[1],ze)},0)}function tp(be,ze){ze===void 0&&(ze={});var Je=Ya(be);switch(ze.properties||be.type!=="Feature"||(ze.properties=be.properties),Je.type){case"Polygon":return function(Oe,ot){ot===void 0&&(ot={});var Lt=Ya(Oe),nn=Lt.coordinates,Fn=ot.properties?ot.properties:Oe.type==="Feature"?Oe.properties:{};return pg(nn,Fn)}(Je,ze);case"MultiPolygon":return function(Oe,ot){ot===void 0&&(ot={});var Lt=Ya(Oe),nn=Lt.coordinates,Fn=ot.properties?ot.properties:Oe.type==="Feature"?Oe.properties:{},Kn=[];return nn.forEach(function(Mi){Kn.push(pg(Mi,Fn))}),qi(Kn)}(Je,ze);default:throw Error("invalid poly")}}function pg(be,ze){return be.length>1?ta(be,ze):zi(be[0],ze)}function wp(be){for(var ze,Je,Oe=Xs(be),ot=0,Lt=1;Oe.length>Lt;)ze=Je||Oe[0],ot+=((Je=Oe[Lt])[0]-ze[0])*(Je[1]+ze[1]),Lt++;return ot>0}var Uf=Xd(function(be){var ze=Object.prototype.hasOwnProperty,Je="~";function Oe(){}function ot(Kn,Mi,Yo){this.fn=Kn,this.context=Mi,this.once=Yo||!1}function Lt(Kn,Mi,Yo,Lo,Bo){if(typeof Yo!="function")throw new TypeError("The listener must be a function");var zu=new ot(Yo,Lo||Kn,Bo),gu=Je?Je+Mi:Mi;return Kn._events[gu]?Kn._events[gu].fn?Kn._events[gu]=[Kn._events[gu],zu]:Kn._events[gu].push(zu):(Kn._events[gu]=zu,Kn._eventsCount++),Kn}function nn(Kn,Mi){--Kn._eventsCount==0?Kn._events=new Oe:delete Kn._events[Mi]}function Fn(){this._events=new Oe,this._eventsCount=0}Object.create&&(Oe.prototype=Object.create(null),new Oe().__proto__||(Je=!1)),Fn.prototype.eventNames=function(){var Kn,Mi,Yo=[];if(this._eventsCount===0)return Yo;for(Mi in Kn=this._events)ze.call(Kn,Mi)&&Yo.push(Je?Mi.slice(1):Mi);return Object.getOwnPropertySymbols?Yo.concat(Object.getOwnPropertySymbols(Kn)):Yo},Fn.prototype.listeners=function(Kn){var Mi=this._events[Je?Je+Kn:Kn];if(!Mi)return[];if(Mi.fn)return[Mi.fn];for(var Yo=0,Lo=Mi.length,Bo=Array(Lo);Lo>Yo;Yo++)Bo[Yo]=Mi[Yo].fn;return Bo},Fn.prototype.listenerCount=function(Kn){var Mi=this._events[Je?Je+Kn:Kn];return Mi?Mi.fn?1:Mi.length:0},Fn.prototype.emit=function(Kn,Mi,Yo,Lo,Bo,zu){var gu=Je?Je+Kn:Kn;if(!this._events[gu])return!1;var Gl,Sl,Kl=this._events[gu],rl=arguments.length;if(Kl.fn){switch(Kl.once&&this.removeListener(Kn,Kl.fn,void 0,!0),rl){case 1:return Kl.fn.call(Kl.context),!0;case 2:return Kl.fn.call(Kl.context,Mi),!0;case 3:return Kl.fn.call(Kl.context,Mi,Yo),!0;case 4:return Kl.fn.call(Kl.context,Mi,Yo,Lo),!0;case 5:return Kl.fn.call(Kl.context,Mi,Yo,Lo,Bo),!0;case 6:return Kl.fn.call(Kl.context,Mi,Yo,Lo,Bo,zu),!0}for(Sl=1,Gl=Array(rl-1);rl>Sl;Sl++)Gl[Sl-1]=arguments[Sl];Kl.fn.apply(Kl.context,Gl)}else{var Va,pu=Kl.length;for(Sl=0;pu>Sl;Sl++)switch(Kl[Sl].once&&this.removeListener(Kn,Kl[Sl].fn,void 0,!0),rl){case 1:Kl[Sl].fn.call(Kl[Sl].context);break;case 2:Kl[Sl].fn.call(Kl[Sl].context,Mi);break;case 3:Kl[Sl].fn.call(Kl[Sl].context,Mi,Yo);break;case 4:Kl[Sl].fn.call(Kl[Sl].context,Mi,Yo,Lo);break;default:if(!Gl)for(Va=1,Gl=Array(rl-1);rl>Va;Va++)Gl[Va-1]=arguments[Va];Kl[Sl].fn.apply(Kl[Sl].context,Gl)}}return!0},Fn.prototype.on=function(Kn,Mi,Yo){return Lt(this,Kn,Mi,Yo,!1)},Fn.prototype.once=function(Kn,Mi,Yo){return Lt(this,Kn,Mi,Yo,!0)},Fn.prototype.removeListener=function(Kn,Mi,Yo,Lo){var Bo=Je?Je+Kn:Kn;if(!this._events[Bo])return this;if(!Mi)return nn(this,Bo),this;var zu=this._events[Bo];if(zu.fn)zu.fn!==Mi||Lo&&!zu.once||Yo&&zu.context!==Yo||nn(this,Bo);else{for(var gu=0,Gl=[],Sl=zu.length;Sl>gu;gu++)(zu[gu].fn!==Mi||Lo&&!zu[gu].once||Yo&&zu[gu].context!==Yo)&&Gl.push(zu[gu]);Gl.length?this._events[Bo]=Gl.length===1?Gl[0]:Gl:nn(this,Bo)}return this},Fn.prototype.removeAllListeners=function(Kn){var Mi;return Kn?this._events[Mi=Je?Je+Kn:Kn]&&nn(this,Mi):(this._events=new Oe,this._eventsCount=0),this},Fn.prototype.off=Fn.prototype.removeListener,Fn.prototype.addListener=Fn.prototype.on,Fn.prefixed=Je,Fn.EventEmitter=Fn,be.exports=Fn}),Pd=function(be){Ti(Je,be);var ze=ks(Je);function Je(Oe,ot){var Lt,nn=ot.style;return Et(this,Je),(Lt=ze.call(this)).scene=void 0,Lt.style=void 0,Lt.layers=void 0,Lt.data=[],Lt.scene=Oe,Lt.style=nn,Lt.layers=Lt.initLayers(),Lt.layers.forEach(function(Fn){Oe.addLayer(Fn)}),nn.callback instanceof Function&&nn.callback(Lt.layers),Lt}return jn(Je,[{key:"getLayers",value:function(){return this.layers}},{key:"show",value:function(){this.layers.forEach(function(Oe){Oe.show()})}},{key:"hide",value:function(){this.layers.forEach(function(Oe){Oe.hide()})}},{key:"setData",value:function(Oe){var ot=no(Oe).sort(function(Lt,nn){return+Lt.properties.isActive-+nn.properties.isActive});this.data=ot,this.layers.forEach(function(Lt){Lt.setData(qi(ot))})}},{key:"destroy",value:function(){var Oe=this;this.layers.forEach(function(ot){Oe.scene.removeLayer(ot)})}}]),Je}(Uf.EventEmitter),Np=function(be){Ti(Je,be);var ze=ks(Je);function Je(){return Et(this,Je),ze.apply(this,arguments)}return jn(Je,[{key:"initLayers",value:function(){var Oe=this.style,ot=Oe.normal,Lt=Oe.style,nn=Oe.options;return[new I.LineLayer(nn!=null?nn:{}).source(qi([])).size(ot.size).color(ot.color).shape("line").style(Lt)]}}]),Je}(Pd),$p=function(be){var ze=typeof be;return be!=null&&(ze=="object"||ze=="function")},ag=typeof vd=="object"&&vd&&vd.Object===Object&&vd,Md=typeof self=="object"&&self&&self.Object===Object&&self,Wp=ag||Md||Function("return this")(),Ih=function(){return Wp.Date.now()},of=/\s/,Ff=function(be){for(var ze=be.length;ze--&&of.test(be.charAt(ze)););return ze},iu=/^\s+/,mp=function(be){return be&&be.slice(0,Ff(be)+1).replace(iu,"")},Af=Wp.Symbol,np=Object.prototype,Od=np.hasOwnProperty,td=np.toString,Dp=Af?Af.toStringTag:void 0,_f=function(be){var ze=Od.call(be,Dp),Je=be[Dp];try{be[Dp]=void 0;var Oe=!0}catch(Lt){}var ot=td.call(be);return Oe&&(ze?be[Dp]=Je:delete be[Dp]),ot},Hh=Object.prototype.toString,Ap=function(be){return Hh.call(be)},Vp=Af?Af.toStringTag:void 0,Cd=function(be){return be==null?be===void 0?"[object Undefined]":"[object Null]":Vp&&Vp in Object(be)?_f(be):Ap(be)},Jh=function(be){return be!=null&&typeof be=="object"},kh=function(be){return typeof be=="symbol"||Jh(be)&&Cd(be)=="[object Symbol]"},yh=/^[-+]0x[0-9a-f]+$/i,Bf=/^0b[01]+$/i,bd=/^0o[0-7]+$/i,$c=parseInt,Hd=function(be){if(typeof be=="number")return be;if(kh(be))return NaN;if($p(be)){var ze=typeof be.valueOf=="function"?be.valueOf():be;be=$p(ze)?ze+"":ze}if(typeof be!="string")return be===0?be:+be;be=mp(be);var Je=Bf.test(be);return Je||bd.test(be)?$c(be.slice(2),Je?2:8):yh.test(be)?NaN:+be},mh=Math.max,wo=Math.min,D=function(be,ze,Je){var Oe,ot,Lt,nn,Fn,Kn,Mi=0,Yo=!1,Lo=!1,Bo=!0;if(typeof be!="function")throw new TypeError("Expected a function");function zu(rl){var Va=Oe,pu=ot;return Oe=ot=void 0,Mi=rl,nn=be.apply(pu,Va)}function gu(rl){var Va=rl-Kn;return Kn===void 0||Va>=ze||0>Va||Lo&&rl-Mi>=Lt}function Gl(){var rl=Ih();if(gu(rl))return Sl(rl);Fn=setTimeout(Gl,function(Va){var pu=ze-(Va-Kn);return Lo?wo(pu,Lt-(Va-Mi)):pu}(rl))}function Sl(rl){return Fn=void 0,Bo&&Oe?zu(rl):(Oe=ot=void 0,nn)}function Kl(){var rl=Ih(),Va=gu(rl);if(Oe=arguments,ot=this,Kn=rl,Va){if(Fn===void 0)return function(pu){return Mi=pu,Fn=setTimeout(Gl,ze),Yo?zu(pu):nn}(Kn);if(Lo)return clearTimeout(Fn),Fn=setTimeout(Gl,ze),zu(Kn)}return Fn===void 0&&(Fn=setTimeout(Gl,ze)),nn}return ze=Hd(ze)||0,$p(Je)&&(Yo=!!Je.leading,Lt=(Lo="maxWait"in Je)?mh(Hd(Je.maxWait)||0,ze):Lt,Bo="trailing"in Je?!!Je.trailing:Bo),Kl.cancel=function(){Fn!==void 0&&clearTimeout(Fn),Mi=0,Oe=Kn=ot=Fn=void 0},Kl.flush=function(){return Fn===void 0?nn:Sl(Ih())},Kl},F=function(be){Ti(Je,be);var ze=ks(Je);function Je(){var Oe;Et(this,Je);for(var ot=arguments.length,Lt=Array(ot),nn=0;ot>nn;nn++)Lt[nn]=arguments[nn];return(Oe=ze.call.apply(ze,[this].concat(Lt))).onMouseMove=function(Fn){Oe.emit(y.RenderEvent.Mousemove,Fn)},Oe.onMouseOut=function(Fn){Oe.emit(y.RenderEvent.Mouseout,Fn)},Oe.onMouseDown=function(Fn){Oe.emit(y.RenderEvent.Dragstart,Fn)},Oe.onDragging=function(Fn){Oe.emit(y.RenderEvent.Dragging,Fn)},Oe.onDragEnd=D(function(Fn){Oe.emit(y.RenderEvent.Dragend,Fn)},0),Oe.onUnClick=function(Fn){Oe.emit(y.RenderEvent.UnClick,Fn)},Oe.enableHover=function(){var Fn,Kn;Oe.disableHover(),(Fn=Oe.layers[0])===null||Fn===void 0||Fn.on(y.LayerEvent.Mousemove,Oe.onMouseMove),(Kn=Oe.layers[0])===null||Kn===void 0||Kn.on(y.LayerEvent.Mouseout,Oe.onMouseOut)},Oe.disableHover=function(){var Fn,Kn;(Fn=Oe.layers[0])===null||Fn===void 0||Fn.off(y.LayerEvent.Mousemove,Oe.onMouseMove),(Kn=Oe.layers[0])===null||Kn===void 0||Kn.off(y.LayerEvent.Mouseout,Oe.onMouseOut)},Oe}return jn(Je,[{key:"initLayers",value:function(){var Oe=this.style,ot=Oe.normal,Lt=Oe.hover,nn=Oe.active,Fn=Oe.style,Kn=Oe.options;return[new I.LineLayer(Kn!=null?Kn:{}).source(qi([])).size("isHover*isActive",function(Mi,Yo){return Yo?nn.size:Mi?Lt.size:ot.size}).color("isHover*isActive",function(Mi,Yo){return Yo?nn.color:Mi?Lt.color:ot.color}).shape("line").style(Fn)]}},{key:"enableDrag",value:function(){this.disableDrag(),this.layers[0].on(y.LayerEvent.Mousedown,this.onMouseDown),this.scene.on(y.SceneEvent.Dragging,this.onDragging),this.scene.on(y.SceneEvent.Mouseup,this.onDragEnd),this.scene.on(y.SceneEvent.Dragend,this.onDragEnd)}},{key:"disableDrag",value:function(){this.layers[0].off(y.LayerEvent.Mousedown,this.onMouseDown),this.scene.off(y.SceneEvent.Dragging,this.onDragging),this.scene.off(y.SceneEvent.Mouseup,this.onDragEnd),this.scene.off(y.SceneEvent.Dragend,this.onDragEnd)}},{key:"enableUnClick",value:function(){this.disableUnClick(),this.layers[0].on(y.LayerEvent.UnClick,this.onUnClick)}},{key:"disableUnClick",value:function(){this.layers[0].off(y.LayerEvent.UnClick,this.onUnClick)}}]),Je}(Pd),q=function(be){Ti(Je,be);var ze=ks(Je);function Je(){var Oe;Et(this,Je);for(var ot=arguments.length,Lt=Array(ot),nn=0;ot>nn;nn++)Lt[nn]=arguments[nn];return(Oe=ze.call.apply(ze,[this].concat(Lt))).onMouseMove=function(Fn){Oe.emit(y.RenderEvent.Mousemove,Fn)},Oe.onMouseOut=function(Fn){Oe.emit(y.RenderEvent.Mouseout,Fn)},Oe.onMouseDown=function(Fn){Oe.emit(y.RenderEvent.Click,Fn)},Oe}return jn(Je,[{key:"initLayers",value:function(){var Oe=this.style,ot=Oe.normal,Lt=Oe.style,nn=Lt===void 0?{}:Lt,Fn=Oe.options,Kn=ot.shape,Mi=ot.size,Yo=ot.color;return[new I.PointLayer(Fn!=null?Fn:{}).source(qi([])).size(Mi).color(Yo).shape(Kn).style(nn)]}},{key:"enableClick",value:function(){this.disableClick(),this.layers[0].on(y.LayerEvent.Mousedown,this.onMouseDown)}},{key:"disableClick",value:function(){this.layers[0].off(y.LayerEvent.Mousedown,this.onMouseDown)}},{key:"enableHover",value:function(){var Oe,ot;this.disableHover(),(Oe=this.layers[0])===null||Oe===void 0||Oe.on(y.LayerEvent.Mousemove,this.onMouseMove),(ot=this.layers[0])===null||ot===void 0||ot.on(y.LayerEvent.Mouseout,this.onMouseOut)}},{key:"disableHover",value:function(){var Oe,ot;(Oe=this.layers[0])===null||Oe===void 0||Oe.off(y.LayerEvent.Mousemove,this.onMouseMove),(ot=this.layers[0])===null||ot===void 0||ot.off(y.LayerEvent.Mouseout,this.onMouseOut)}}]),Je}(Pd),se=function(be){Ti(Je,be);var ze=ks(Je);function Je(){var Oe;Et(this,Je);for(var ot=arguments.length,Lt=Array(ot),nn=0;ot>nn;nn++)Lt[nn]=arguments[nn];return(Oe=ze.call.apply(ze,[this].concat(Lt))).onCreate=function(Fn){Oe.emit(y.RenderEvent.UnClick,Fn)},Oe.onMouseMove=function(Fn){Oe.emit(y.RenderEvent.Mousemove,Fn)},Oe.onMouseOut=function(Fn){Oe.emit(y.RenderEvent.Mouseout,Fn)},Oe.onMouseDown=function(Fn){Oe.emit(y.RenderEvent.Dragstart,Fn)},Oe.onDragging=function(Fn){Oe.emit(y.RenderEvent.Dragging,Fn)},Oe.onDragEnd=D(function(Fn){Oe.emit(y.RenderEvent.Dragend,Fn)},0),Oe.onClick=function(Fn){Oe.emit(y.RenderEvent.Click,Fn)},Oe.onContextmenu=function(Fn){Oe.emit(y.RenderEvent.Contextmenu,Fn)},Oe}return jn(Je,[{key:"initLayers",value:function(){var Oe=this.style,ot=Oe.normal,Lt=Oe.hover,nn=Oe.active,Fn=Oe.style,Kn=Fn===void 0?{}:Fn,Mi=Oe.options;return[new I.PointLayer(Mi!=null?Mi:{}).source(qi([])).size("isHover*isActive",function(Yo,Lo){return Lo?nn.size:Yo?Lt.size:ot.size}).color("isHover*isActive",function(Yo,Lo){return Lo?nn.color:Yo?Lt.color:ot.color}).shape("isHover*isActive",function(Yo,Lo){return Lo?nn.shape:Yo?Lt.shape:ot.shape}).style(Kn)]}},{key:"enableCreate",value:function(){this.disableCreate(),this.layers[0].on(y.LayerEvent.UnClick,this.onCreate)}},{key:"disableCreate",value:function(){this.layers[0].off(y.LayerEvent.UnClick,this.onCreate)}},{key:"enableHover",value:function(){var Oe,ot;this.disableHover(),(Oe=this.layers[0])===null||Oe===void 0||Oe.on(y.LayerEvent.Mousemove,this.onMouseMove),(ot=this.layers[0])===null||ot===void 0||ot.on(y.LayerEvent.Mouseout,this.onMouseOut)}},{key:"disableHover",value:function(){var Oe,ot;(Oe=this.layers[0])===null||Oe===void 0||Oe.off(y.LayerEvent.Mousemove,this.onMouseMove),(ot=this.layers[0])===null||ot===void 0||ot.off(y.LayerEvent.Mouseout,this.onMouseOut)}},{key:"enableDrag",value:function(){this.disableDrag(),this.layers[0].on(y.LayerEvent.Mousedown,this.onMouseDown),this.scene.on(y.SceneEvent.Dragging,this.onDragging),this.scene.on(y.SceneEvent.Mouseup,this.onDragEnd),this.scene.on(y.SceneEvent.Dragend,this.onDragEnd)}},{key:"disableDrag",value:function(){this.layers[0].off(y.LayerEvent.Mousedown,this.onMouseDown),this.scene.off(y.SceneEvent.Dragging,this.onDragging),this.scene.off(y.SceneEvent.Mouseup,this.onDragEnd),this.scene.off(y.SceneEvent.Dragend,this.onDragEnd)}},{key:"enableClick",value:function(){this.disableClick(),this.layers[0].on(y.LayerEvent.Click,this.onClick)}},{key:"disableClick",value:function(){this.layers[0].off(y.LayerEvent.Click,this.onClick)}},{key:"enableContextMenu",value:function(){this.disableContextMenu(),this.layers[0].on(y.LayerEvent.Contextmenu,this.onContextmenu)}},{key:"disableContextMenu",value:function(){this.layers[0].off(y.LayerEvent.Contextmenu,this.onContextmenu)}}]),Je}(Pd),Ue=function(be){Ti(Je,be);var ze=ks(Je);function Je(){var Oe;Et(this,Je);for(var ot=arguments.length,Lt=Array(ot),nn=0;ot>nn;nn++)Lt[nn]=arguments[nn];return(Oe=ze.call.apply(ze,[this].concat(Lt))).onMouseMove=function(Fn){Oe.emit(y.RenderEvent.Mousemove,Fn)},Oe.onMouseOut=function(Fn){Oe.emit(y.RenderEvent.Mouseout,Fn)},Oe.onMouseDown=function(Fn){Oe.emit(y.RenderEvent.Dragstart,Fn)},Oe.onDragging=function(Fn){Oe.emit(y.RenderEvent.Dragging,Fn)},Oe.onDragEnd=D(function(Fn){Oe.emit(y.RenderEvent.Dragend,Fn)},0),Oe.onUnClick=function(Fn){Oe.emit(y.RenderEvent.UnClick,Fn)},Oe.enableHover=function(){var Fn,Kn;Oe.disableHover(),(Fn=Oe.layers[0])===null||Fn===void 0||Fn.on(y.LayerEvent.Mousemove,Oe.onMouseMove),(Kn=Oe.layers[0])===null||Kn===void 0||Kn.on(y.LayerEvent.Mouseout,Oe.onMouseOut)},Oe.disableHover=function(){var Fn,Kn;(Fn=Oe.layers[0])===null||Fn===void 0||Fn.off(y.LayerEvent.Mousemove,Oe.onMouseMove),(Kn=Oe.layers[0])===null||Kn===void 0||Kn.off(y.LayerEvent.Mouseout,Oe.onMouseOut)},Oe}return jn(Je,[{key:"initLayers",value:function(){var Oe=this.style,ot=Oe.normal,Lt=Oe.hover,nn=Oe.active,Fn=Oe.style,Kn=Oe.options,Mi=new I.PolygonLayer(Kn!=null?Kn:{});return Mi.source(qi([])).color("isHover*isActive",function(Yo,Lo){return Lo?nn.color:Yo?Lt.color:ot.color}).style(Fn),[Mi]}},{key:"enableDrag",value:function(){this.disableDrag(),this.layers[0].on(y.LayerEvent.Mousedown,this.onMouseDown),this.scene.on(y.SceneEvent.Dragging,this.onDragging),this.scene.on(y.SceneEvent.Mouseup,this.onDragEnd),this.scene.on(y.SceneEvent.Dragend,this.onDragEnd)}},{key:"disableDrag",value:function(){this.layers[0].off(y.LayerEvent.Mousedown,this.onMouseDown),this.scene.off(y.SceneEvent.Dragging,this.onDragging),this.scene.off(y.SceneEvent.Mouseup,this.onDragEnd),this.scene.off(y.SceneEvent.Dragend,this.onDragEnd)}},{key:"enableUnClick",value:function(){this.disableUnClick(),this.layers[0].on(y.LayerEvent.UnClick,this.onUnClick)}},{key:"disableUnClick",value:function(){this.layers[0].off(y.LayerEvent.UnClick,this.onUnClick)}}]),Je}(Pd),qt=function(be){Ti(Je,be);var ze=ks(Je);function Je(Oe){var ot;return Et(this,Je),(ot=ze.call(this)).scene=void 0,ot.previousClick=void 0,ot.onDblClick=function(Lt){var nn,Fn,Kn=(nn=(Fn=Lt.pixel)!==null&&Fn!==void 0?Fn:Lt.point)!==null&&nn!==void 0?nn:{},Mi=Kn.x,Yo=Mi===void 0?0:Mi,Lo=Kn.y,Bo=Lo===void 0?0:Lo,zu=Date.now();if(ot.previousClick){var gu=ot.previousClick,Gl=gu.y;300>zu-gu.time&&5>Math.abs(Yo-gu.x)&&5>Math.abs(Bo-Gl)&&ot.emit(y.RenderEvent.DblClick,Lt)}ot.previousClick={x:Yo,y:Bo,time:zu}},ot.onMouseMove=function(Lt){ot.emit(y.RenderEvent.Mousemove,Lt)},ot.onMouseDown=function(Lt){ot.emit(y.RenderEvent.Dragstart,Lt)},ot.onDragging=function(Lt){ot.emit(y.RenderEvent.Dragging,Lt)},ot.onDragEnd=D(function(Lt){ot.emit(y.RenderEvent.Dragend,Lt)},0),ot.scene=Oe,ot}return jn(Je,[{key:"enableDrag",value:function(){this.disableDrag(),this.scene.on(y.SceneEvent.Mousedown,this.onMouseDown),this.scene.on(y.SceneEvent.Dragging,this.onDragging),this.scene.on(y.SceneEvent.Mouseup,this.onDragEnd),this.scene.on(y.SceneEvent.Dragend,this.onDragEnd)}},{key:"disableDrag",value:function(){this.scene.off(y.SceneEvent.Mousedown,this.onMouseDown),this.scene.off(y.SceneEvent.Dragging,this.onDragging),this.scene.off(y.SceneEvent.Mouseup,this.onDragEnd),this.scene.off(y.SceneEvent.Dragend,this.onDragEnd)}},{key:"enableMouseMove",value:function(){this.disableMouseMove(),this.scene.on(y.SceneEvent.Mousemove,this.onMouseMove)}},{key:"disableMouseMove",value:function(){this.scene.off(y.SceneEvent.Mousemove,this.onMouseMove)}},{key:"enableDblClick",value:function(){this.disableDblClick(),this.scene.on(y.SceneEvent.Mousedown,this.onDblClick)}},{key:"disableDblClick",value:function(){this.scene.off(y.SceneEvent.Mousedown,this.onDblClick)}}]),Je}(Uf),zn=function(be){Ti(Je,be);var ze=ks(Je);function Je(){return Et(this,Je),ze.apply(this,arguments)}return jn(Je,[{key:"initLayers",value:function(){var Oe=this.style,ot=Oe.normal,Lt=Oe.active,nn=Oe.style,Fn=nn===void 0?{}:nn,Kn=Oe.options;return[new I.PointLayer(Kn!=null?Kn:{}).source(qi([])).size("isActive",function(Mi){return Mi?Lt.size:ot.size}).color("isActive",function(Mi){return Mi?Lt.color:ot.color}).shape("text","text").style(Fn)]}}]),Je}(Pd),di={point:se,line:F,dashLine:Np,midPoint:q,text:zn,polygon:Ue},Uo="#1990FF",ua="#ED9D48",Cl={blend:"normal",pickingBuffer:5},Ll={color:Uo,shape:"circle",size:6},Bu={color:ua,shape:"circle",size:6},Iu={shape:"circle",size:6,color:ua},pc={options:Cl,normal:Ll,hover:lt(lt({},Ll),{},{size:8}),active:lt(lt({},Ll),{},{size:8,color:ua}),style:{stroke:"#ffffff",strokeWidth:2}},zc={options:Cl,normal:Bu,hover:lt(lt({},Bu),{},{size:8}),active:lt(lt({},Bu),{},{size:8}),style:{stroke:"#ffffff",strokeWidth:2}},Rd={color:Uo,size:12},X={point:zc,line:{options:Cl,normal:{color:Uo,size:2},hover:{color:Uo,size:2},active:{color:ua,size:2},style:{}},polygon:{options:Cl,normal:{color:Uo},hover:{color:Uo},active:{color:ua},style:{opacity:.15}},midPoint:{options:Cl,normal:Iu},dashLine:{options:Cl,normal:{color:ua,size:2},style:{lineType:"dash",dashArray:[6,6]}},text:{options:Cl,normal:Rd,active:lt(lt({},Rd),{},{color:ua}),style:{fontWeight:"800",textOffset:[0,Rd.size+6],textAllowOverlap:!0,stroke:"#ffffff",strokeWidth:2}}},te=function(be,ze){return be===ze||be!=be&&ze!=ze},J=function(be,ze){for(var Je=be.length;Je--;)if(te(be[Je][0],ze))return Je;return-1},ae=Array.prototype.splice,it=function(be){var ze=this.__data__,Je=J(ze,be);return Je>=0&&(Je==ze.length-1?ze.pop():ae.call(ze,Je,1),--this.size,!0)},Rt=function(be){var ze=this.__data__,Je=J(ze,be);return 0>Je?void 0:ze[Je][1]},en=function(be){return J(this.__data__,be)>-1},Yn=function(be,ze){var Je=this.__data__,Oe=J(Je,be);return 0>Oe?(++this.size,Je.push([be,ze])):Je[Oe][1]=ze,this};function Zr(be){var ze=-1,Je=be==null?0:be.length;for(this.clear();++zeOe.length)return Oe.push([be,ze]),this.size=++Je.size,this;Je=this.__data__=new Oc(Oe)}return Je.set(be,ze),this.size=Je.size,this};function yd(be){var ze=this.__data__=new fr(be);this.size=ze.size}yd.prototype.clear=es,yd.prototype.delete=Xo,yd.prototype.get=Ss,yd.prototype.has=sa,yd.prototype.set=ld;var Bd=yd,Dc=function(be,ze){for(var Je=-1,Oe=be==null?0:be.length;++Je-1&&be%1==0&&ze>be},jg=function(be){return typeof be=="number"&&be>-1&&be%1==0&&9007199254740991>=be},ap={};ap["[object Float32Array]"]=ap["[object Float64Array]"]=ap["[object Int8Array]"]=ap["[object Int16Array]"]=ap["[object Int32Array]"]=ap["[object Uint8Array]"]=ap["[object Uint8ClampedArray]"]=ap["[object Uint16Array]"]=ap["[object Uint32Array]"]=!0,ap["[object Arguments]"]=ap["[object Array]"]=ap["[object ArrayBuffer]"]=ap["[object Boolean]"]=ap["[object DataView]"]=ap["[object Date]"]=ap["[object Error]"]=ap["[object Function]"]=ap["[object Map]"]=ap["[object Number]"]=ap["[object Object]"]=ap["[object RegExp]"]=ap["[object Set]"]=ap["[object String]"]=ap["[object WeakMap]"]=!1;var lg=function(be){return Jh(be)&&jg(be.length)&&!!ap[Cd(be)]},Id=function(be){return function(ze){return be(ze)}},rm=Xd(function(be,ze){var Je=ze&&!ze.nodeType&&ze,Oe=Je&&be&&!be.nodeType&&be,ot=Oe&&Oe.exports===Je&&ag.process,Lt=function(){try{var nn=Oe&&Oe.require&&Oe.require("util").types;return nn||ot&&ot.binding&&ot.binding("util")}catch(Fn){}}();be.exports=Lt}),Im=rm&&rm.isTypedArray,zm=Im?Id(Im):lg,im=Object.prototype.hasOwnProperty,Cm=function(be,ze){var Je=Jp(be),Oe=!Je&&bf(be),ot=!Je&&!Oe&&Hf(be),Lt=!Je&&!Oe&&!ot&&zm(be),nn=Je||Oe||ot||Lt,Fn=nn?Hp(be.length,String):[],Kn=Fn.length;for(var Mi in be)!ze&&!im.call(be,Mi)||nn&&(Mi=="length"||ot&&(Mi=="offset"||Mi=="parent")||Lt&&(Mi=="buffer"||Mi=="byteLength"||Mi=="byteOffset")||af(Mi,Kn))||Fn.push(Mi);return Fn},vm=Object.prototype,Lg=function(be){var ze=be&&be.constructor;return be===(typeof ze=="function"&&ze.prototype||vm)},ug=function(be,ze){return function(Je){return be(ze(Je))}},om=ug(Object.keys,Object),Qg=Object.prototype.hasOwnProperty,Lm=function(be){if(!Lg(be))return om(be);var ze=[];for(var Je in Object(be))Qg.call(be,Je)&&Je!="constructor"&&ze.push(Je);return ze},Om=function(be){return be!=null&&jg(be.length)&&!Vo(be)},Sg=function(be){return Om(be)?Cm(be):Lm(be)},$m=function(be,ze){return be&&Gg(ze,Sg(ze),be)},Zp=function(be){var ze=[];if(be!=null)for(var Je in Object(be))ze.push(Je);return ze},k0=Object.prototype.hasOwnProperty,Sp=function(be){if(!$p(be))return Zp(be);var ze=Lg(be),Je=[];for(var Oe in be)(Oe!="constructor"||!ze&&k0.call(be,Oe))&&Je.push(Oe);return Je},Xf=function(be){return Om(be)?Cm(be,!0):Sp(be)},Zh=function(be,ze){return be&&Gg(ze,Xf(ze),be)},a0=Xd(function(be,ze){var Je=ze&&!ze.nodeType&&ze,Oe=Je&&be&&!be.nodeType&&be,ot=Oe&&Oe.exports===Je?Wp.Buffer:void 0,Lt=ot?ot.allocUnsafe:void 0;be.exports=function(nn,Fn){if(Fn)return nn.slice();var Kn=nn.length,Mi=Lt?Lt(Kn):new nn.constructor(Kn);return nn.copy(Mi),Mi}}),M0=function(be,ze){var Je=-1,Oe=be.length;for(ze||(ze=Array(Oe));++JeFn))return!1;var Mi=Lt.get(be),Yo=Lt.get(ze);if(Mi&&Yo)return Mi==ze&&Yo==be;var Lo=-1,Bo=!0,zu=2&Je?new Ft:void 0;for(Lt.set(be,ze),Lt.set(ze,be);++Lo0){if(++ze>=800)return arguments[0]}else ze=0;return be.apply(void 0,arguments)}},Dl=ll(xd?function(be,ze){return xd(be,"toString",{configurable:!0,enumerable:!1,value:eo(ze),writable:!0})}:Ds),Oa=function(be,ze){return Dl(or(be,ze,Ds),be+"")},_s=function(be,ze,Je){if(!$p(Je))return!1;var Oe=typeof ze;return!!(Oe=="number"?Om(Je)&&af(ze,Je.length):Oe=="string"&&ze in Je)&&te(Je[ze],be)},wl=function(be){return Oa(function(ze,Je){var Oe=-1,ot=Je.length,Lt=ot>1?Je[ot-1]:void 0,nn=ot>2?Je[2]:void 0;for(Lt=be.length>3&&typeof Lt=="function"?(ot--,Lt):void 0,nn&&_s(Je[0],Je[1],nn)&&(Lt=3>ot?void 0:Lt,ot=1),ze=Object(ze);++Oe":".","?":"/","|":"\\"},Kn={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},Mi=1;20>Mi;++Mi)Lt[111+Mi]="f"+Mi;for(Mi=0;9>=Mi;++Mi)Lt[Mi+96]=""+Mi;Sl.prototype.bind=function(Kl,rl,Va){var pu=this;return pu._bindMultiple.call(pu,Kl=Kl instanceof Array?Kl:[Kl],rl,Va),pu},Sl.prototype.unbind=function(Kl,rl){return this.bind.call(this,Kl,function(){},rl)},Sl.prototype.trigger=function(Kl,rl){var Va=this;return Va._directMap[Kl+":"+rl]&&Va._directMap[Kl+":"+rl]({},Kl),Va},Sl.prototype.reset=function(){var Kl=this;return Kl._callbacks={},Kl._directMap={},Kl},Sl.prototype.stopCallback=function(Kl,rl){if((" "+rl.className+" ").indexOf(" mousetrap ")>-1||Gl(rl,this.target))return!1;if("composedPath"in Kl&&typeof Kl.composedPath=="function"){var Va=Kl.composedPath()[0];Va!==Kl.target&&(rl=Va)}return rl.tagName=="INPUT"||rl.tagName=="SELECT"||rl.tagName=="TEXTAREA"||rl.isContentEditable},Sl.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},Sl.addKeycodes=function(Kl){for(var rl in Kl)Kl.hasOwnProperty(rl)&&(Lt[rl]=Kl[rl]);ot=null},Sl.init=function(){var Kl=Sl(Je);for(var rl in Kl)rl.charAt(0)!=="_"&&(Sl[rl]=function(Va){return function(){return Kl[Va].apply(Kl,arguments)}}(rl))},Sl.init(),ze.Mousetrap=Sl,be.exports&&(be.exports=Sl)}function Yo(Kl,rl,Va){Kl.addEventListener?Kl.addEventListener(rl,Va,!1):Kl.attachEvent("on"+rl,Va)}function Lo(Kl){if(Kl.type=="keypress"){var rl=String.fromCharCode(Kl.which);return Kl.shiftKey||(rl=rl.toLowerCase()),rl}return Lt[Kl.which]?Lt[Kl.which]:nn[Kl.which]?nn[Kl.which]:String.fromCharCode(Kl.which).toLowerCase()}function Bo(Kl){return Kl=="shift"||Kl=="ctrl"||Kl=="alt"||Kl=="meta"}function zu(Kl,rl,Va){return Va||(Va=function(){if(!ot)for(var pu in ot={},Lt)pu>95&&112>pu||Lt.hasOwnProperty(pu)&&(ot[Lt[pu]]=pu);return ot}()[Kl]?"keydown":"keypress"),Va=="keypress"&&rl.length&&(Va="keydown"),Va}function gu(Kl,rl){var Va,pu,ic,od=[];for(Va=function(Ao){return Ao==="+"?["+"]:(Ao=Ao.replace(/\+{2}/g,"+plus")).split("+")}(Kl),ic=0;Va.length>ic;++ic)Kn[pu=Va[ic]]&&(pu=Kn[pu]),rl&&rl!="keypress"&&Fn[pu]&&(pu=Fn[pu],od.push("shift")),Bo(pu)&&od.push(pu);return{key:pu,modifiers:od,action:rl=zu(pu,od,rl)}}function Gl(Kl,rl){return Kl!==null&&Kl!==Je&&(Kl===rl||Gl(Kl.parentNode,rl))}function Sl(Kl){var rl=this;if(Kl=Kl||Je,!(rl instanceof Sl))return new Sl(Kl);rl.target=Kl,rl._callbacks={},rl._directMap={};var Va,pu={},ic=!1,od=!1,Ao=!1;function Qh(G){G=G||{};var le,ke=!1;for(le in pu)G[le]?ke=!0:pu[le]=0;ke||(Ao=!1)}function xc(G,le,ke,Qe,Ct,jt){var Rn,ur,zr,hi=[],po=ke.type;if(!rl._callbacks[G])return[];for(po=="keyup"&&Bo(G)&&(le=[G]),Rn=0;rl._callbacks[G].length>Rn;++Rn)ur=rl._callbacks[G][Rn],(Qe||!ur.seq||pu[ur.seq]==ur.level)&&po==ur.action&&(po=="keypress"&&!ke.metaKey&&!ke.ctrlKey||(zr=ur.modifiers,le.sort().join(",")===zr.sort().join(",")))&&((!Qe&&ur.combo==Ct||Qe&&ur.seq==Qe&&ur.level==jt)&&rl._callbacks[G].splice(Rn,1),hi.push(ur));return hi}function hh(G,le,ke,Qe){rl.stopCallback(le,le.target||le.srcElement,ke,Qe)||G(le,ke)===!1&&(function(Ct){Ct.preventDefault?Ct.preventDefault():Ct.returnValue=!1}(le),function(Ct){Ct.stopPropagation?Ct.stopPropagation():Ct.cancelBubble=!0}(le))}function Gd(G){typeof G.which!="number"&&(G.which=G.keyCode);var le=Lo(G);le&&(G.type!="keyup"||ic!==le?rl.handleKey(le,function(ke){var Qe=[];return ke.shiftKey&&Qe.push("shift"),ke.altKey&&Qe.push("alt"),ke.ctrlKey&&Qe.push("ctrl"),ke.metaKey&&Qe.push("meta"),Qe}(G),G):ic=!1)}function _(G,le,ke,Qe){function Ct(zr){return function(){Ao=zr,++pu[G],clearTimeout(Va),Va=setTimeout(Qh,1e3)}}function jt(zr){hh(ke,zr,G),Qe!=="keyup"&&(ic=Lo(zr)),setTimeout(Qh,10)}pu[G]=0;for(var Rn=0;le.length>Rn;++Rn){var ur=Rn+1===le.length?jt:Ct(Qe||gu(le[Rn+1]).action);R(le[Rn],ur,Qe,G,Rn)}}function R(G,le,ke,Qe,Ct){rl._directMap[G+":"+ke]=le;var jt,Rn=(G=G.replace(/\s+/g," ")).split(" ");Rn.length>1?_(G,Rn,le,ke):(jt=gu(G,ke),rl._callbacks[jt.key]=rl._callbacks[jt.key]||[],xc(jt.key,jt.modifiers,{type:jt.action},Qe,G,Ct),rl._callbacks[jt.key][Qe?"unshift":"push"]({callback:le,modifiers:jt.modifiers,action:jt.action,seq:Qe,level:Ct,combo:G}))}rl._handleKey=function(G,le,ke){var Qe,Ct=xc(G,le,ke),jt={},Rn=0,ur=!1;for(Qe=0;Ct.length>Qe;++Qe)Ct[Qe].seq&&(Rn=Math.max(Rn,Ct[Qe].level));for(Qe=0;Ct.length>Qe;++Qe)if(Ct[Qe].seq){if(Ct[Qe].level!=Rn)continue;ur=!0,jt[Ct[Qe].seq]=1,hh(Ct[Qe].callback,ke,Ct[Qe].combo,Ct[Qe].seq)}else ur||hh(Ct[Qe].callback,ke,Ct[Qe].combo);var zr=ke.type=="keypress"&&od;ke.type!=Ao||Bo(G)||zr||Qh(jt),od=ur&&ke.type=="keydown"},rl._bindMultiple=function(G,le,ke){for(var Qe=0;G.length>Qe;++Qe)R(G[Qe],le,ke)},Yo(Kl,"keypress",Gd),Yo(Kl,"keydown",Gd),Yo(Kl,"keyup",Gd)}})(typeof window!="undefined"?window:null,typeof window!="undefined"?document:null)}),$l,su=function(be){return be&&be.length?be[0]:void 0},tu=($l=1,function(be){return"".concat(be,"-").concat($l++)}),Gs=function(be,ze){var Je,Oe;return!(!be||!ze||((Je=be.properties)===null||Je===void 0?void 0:Je.id)!==((Oe=ze.properties)===null||Oe===void 0?void 0:Oe.id))},Gc=function(be){var ze=be.target,Je=be.targetHandler,Oe=be.otherHandler;return be.data.map(function(ot,Lt){var nn,Fn=Gs(ot,ze)?Je:Oe;return(nn=Fn==null?void 0:Fn(ot,Lt))!==null&&nn!==void 0?nn:ot})},Le=function(){return{id:tu("point"),isHover:!1,isActive:!1,isDrag:!1,createTime:Date.now()}},Me=function(){return{id:tu("line"),isHover:!1,isActive:!1,isDrag:!1,isDraw:!1,createTime:Date.now()}},et=function(){return{id:tu("polygon"),isHover:!1,isActive:!1,isDrag:!1,isDraw:!1,createTime:Date.now()}},hn=function(be){var ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Nl(be,lt(lt({},Le()),ze))},Lr=function(be){var ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return{type:"Feature",properties:lt(lt({},Me()),{},{nodes:be},ze),geometry:{type:"LineString",coordinates:Ki(qi(be))}}},Cn=function(be){return zi(be,{id:tu("dashLine")})},ei=function(be){var ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return{type:"Feature",properties:lt(lt({},et()),{},{nodes:be},ze),geometry:{type:"Polygon",coordinates:[Ki(qi([].concat(no(be),[su(be)])))]}}},Li=function(be){return function(ze,Je,Oe){Oe===void 0&&(Oe={});for(var ot=Ya(ze).coordinates,Lt=0,nn=0;ot.length>nn&&(Lt>Je||nn!==ot.length-1);nn++){if(Lt>=Je){var Fn=Je-Lt;if(Fn){var Kn=Yd(ot[nn],ot[nn-1])-180;return wd(ot[nn],Fn,Kn,Oe)}return Nl(ot[nn])}Lt+=Ja(ot[nn],ot[nn+1],Oe)}return Nl(ot[ot.length-1])}(be,Rp(be,{units:"meters"})/2,{units:"meters"})},ps=function(be,ze){var Je=ze.format,Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ot=[];if(ze.showTotalDistance){var Lt=Li(be),nn=Rp(be,{units:"meters"});Lt.properties=lt({id:tu("text"),isActive:!1,meters:nn,text:Je(nn),type:"totalDistance"},Oe),ot.push(Lt)}else for(var Fn=be.geometry.coordinates,Kn=0;Fn.length-1>Kn;Kn++){var Mi=Nl(Fn[Kn]),Yo=Nl(Fn[Kn+1]),Lo=Ja(Mi,Yo,{units:"meters"}),Bo=Ba(qi([Mi,Yo]));Bo.properties=lt({id:tu("text"),isActive:!1,meters:Lo,text:Je(Lo),type:"distance"},Oe),ot.push(Bo)}return ot},xa=function(be,ze){var Je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Oe=ze.format,ot=qp(be);return zl(be,{properties:lt({meters:ot,text:Oe(ot),type:"area",isActive:!1},Je)})},Sa=function(be){var ze,Je,Oe=be.getContainer();return(ze=(Je=Oe==null?void 0:Oe.querySelector(".l7-marker-container"))!==null&&Je!==void 0?Je:Oe==null?void 0:Oe.querySelector(".amap-maps"))!==null&&ze!==void 0?ze:null},_l=function(be){return be.lngLat||be.lnglat},Ql=function(be){var ze=_l(be);return[ze.lng,ze.lat]},Ju=function(be){return[be.lng,be.lat]},ws=function(be){for(var ze=Number.MAX_SAFE_INTEGER,Je=0,Oe=be.length,ot=0;Oe>ot;ot++)ze>be[ot]&&(ze=be[ot],Je=ot);return Je},Ha=function(be,ze){var Je=[],Oe=[];return be.forEach(function(ot){Ai(ot,ze)?Oe.length&&(Je.push(Oe),Oe=[]):Oe.push(ot)}),Oe.length&&Je.push(Oe),Je},gr=function(be,ze,Je){var Oe=[],ot=[],Lt=[];return Oe=be==="allDrawData"?ka.instances.map(function(nn){return nn.getData()}).flat():be==="drawData"?ze.getData():be instanceof Function?be(Je):be,Oe.length&&(ot=Oe.map(function(nn){var Fn,Kn=(Fn=nn.properties)!==null&&Fn!==void 0?Fn:{},Mi=Kn.nodes,Yo=Mi===void 0?[]:Mi,Lo=Kn.isActive;return Lo!==void 0&&Lo?Yo.filter(function(Bo){return!Ai(Bo.geometry.coordinates,Je)}):Yo}).flat().filter(function(nn){return nn}),ot.length||(ot=Ki(qi(Oe)).map(function(nn){return Nl(nn)})),Lt=Oe.map(function(nn){var Fn,Kn,Mi=(Fn=nn.properties)===null||Fn===void 0?void 0:Fn.line;return!((Kn=nn.properties)===null||Kn===void 0)&&Kn.isActive&&Mi?Ha(Mi.properties.nodes.map(function(Yo){return Yo.geometry.coordinates}),Je).filter(function(Yo){return Yo.length>1}).map(function(Yo){return zi(Yo)}):[Mi]}).flat().filter(function(nn){return nn}),Lt.length||Oe.forEach(function(nn){var Fn=qa(nn);if(/linestring/i.test(Fn)&&Lt.push(nn),/polygon/i.test(Fn)){var Kn,Mi,Yo=tp(nn);return(Kn=Lt).push.apply(Kn,no((Mi=Yo==null?void 0:Yo.features)!==null&&Mi!==void 0?Mi:[Yo]))}})),{points:ot,lines:Lt}},Ka=function(be,ze,Je,Oe){var ot=Je.pointAdsorbPixel,Lt=pa(be,2),nn=Oe.lngLatToPixel([Lt[0],Lt[1]]),Fn=nn.x,Kn=nn.y,Mi=ze.map(function(Lo){var Bo=pa(Lo.geometry.coordinates,2),zu=Oe.lngLatToPixel([Bo[0],Bo[1]]),gu=zu.y;return Math.pow(Fn-zu.x,2)+Math.pow(Kn-gu,2)}),Yo=ws(Mi);return Math.pow(Mi[Yo],.5)>ot?null:ze[Yo].geometry.coordinates},Ca=function(be,ze,Je,Oe){var ot=Je.lineAdsorbPixel,Lt=pa(be,2),nn=Oe.lngLatToPixel([Lt[0],Lt[1]]),Fn=nn.x,Kn=nn.y,Mi=ze.filter(function(Bo){return Ki(Bo).length>1}).map(function(Bo){return function(zu,gu,Gl){Gl===void 0&&(Gl={});var Sl=Nl([1/0,1/0],{dist:1/0}),Kl=0;return ns(zu,function(rl){for(var Va=Xs(rl),pu=0;Va.length-1>pu;pu++){var ic=Nl(Va[pu]);ic.properties.dist=Ja(gu,ic,Gl);var od=Nl(Va[pu+1]);od.properties.dist=Ja(gu,od,Gl);var Ao=Ja(ic,od,Gl),Qh=Math.max(ic.properties.dist,od.properties.dist),xc=Yd(ic,od),hh=wd(gu,Qh,xc+90,Gl),Gd=wd(gu,Qh,xc-90,Gl),_=Qu(zi([hh.geometry.coordinates,Gd.geometry.coordinates]),zi([ic.geometry.coordinates,od.geometry.coordinates])),R=null;_.features.length>0&&((R=_.features[0]).properties.dist=Ja(gu,R,Gl),R.properties.location=Kl+Ja(ic,R,Gl)),Sl.properties.dist>ic.properties.dist&&((Sl=ic).properties.index=pu,Sl.properties.location=Kl),Sl.properties.dist>od.properties.dist&&((Sl=od).properties.index=pu+1,Sl.properties.location=Kl+Ao),R&&Sl.properties.dist>R.properties.dist&&((Sl=R).properties.index=pu),Kl+=Ao}}),Sl}(Bo,be)});if(!Mi.length)return null;var Yo=Mi.map(function(Bo){var zu=pa(Bo.geometry.coordinates,2),gu=Oe.lngLatToPixel([zu[0],zu[1]]),Gl=gu.y;return Math.pow(Fn-gu.x,2)+Math.pow(Kn-Gl,2)}),Lo=ws(Yo);return Math.pow(Yo[Lo],.5)>ot?null:Mi[Lo].geometry.coordinates},Du=function(be,ze){var Je=pa(ze,2),Oe=Je[0],ot=Je[1];be.lngLat&&(be.lngLat={lng:Oe,lat:ot}),be.lnglat&&(be.lnglat={lng:Oe,lat:ot})},Wc=function(){function be(ze,Je){Et(this,be),this.container=void 0,this.cursor=null,this.options=void 0,this.container=Sa(ze),this.options=Je}return jn(be,[{key:"setCursor",value:function(ze){ze!==this.cursor&&this.container&&(this.container.style.cursor=ze?this.options[ze]:"",this.cursor=ze)}},{key:"destroy",value:function(){this.setCursor(null)}}]),be}();function Qo(be,ze){ze===void 0&&(ze={});var Je=ze.insertAt;if(be&&typeof document!="undefined"){var Oe=document.head||document.getElementsByTagName("head")[0],ot=document.createElement("style");ot.type="text/css",Je==="top"&&Oe.firstChild?Oe.insertBefore(ot,Oe.firstChild):Oe.appendChild(ot),ot.styleSheet?ot.styleSheet.cssText=be:ot.appendChild(document.createTextNode(be))}}Qo('.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}'),Qo(".tippy-box[data-theme~=light]{color:#26323d;box-shadow:0 0 20px 4px rgba(154,161,177,.15),0 4px 80px -8px rgba(36,40,47,.25),0 4px 4px -2px rgba(91,94,105,.15);background-color:#fff}.tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff}.tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff}.tippy-box[data-theme~=light]>.tippy-backdrop{background-color:#fff}.tippy-box[data-theme~=light]>.tippy-svg-arrow{fill:#fff}");var Do=function(){function be(ze,Je){var Oe=this;Et(this,be),this.content="",this.tippy=void 0,this.scene=void 0,this.isMouseInner=!1,this.onMouseMove=function(){Oe.isMouseInner=!0,Oe.checkTippyShow()},this.onMouseOut=function(){Oe.isMouseInner=!1,Oe.checkTippyShow()},this.setContent=D(function(ot){Oe.content=ot!=null?ot:"",Oe.tippy.setContent(ot!=null?ot:""),Oe.checkTippyShow()},16,{maxWait:16}),this.tippy=Fr(Sa(ze),lt(lt({},ht),Je)),this.tippy.hide(),this.scene=ze,ze.on(y.SceneEvent.Mousemove,this.onMouseMove),ze.on(y.SceneEvent.Mouseout,this.onMouseOut)}return jn(be,[{key:"getContent",value:function(){return this.content}},{key:"checkTippyShow",value:function(){this.content&&this.isMouseInner?this.tippy.show():this.tippy.hide()}},{key:"destroy",value:function(){this.scene.off(y.SceneEvent.Mousemove,this.onMouseMove),this.scene.off(y.SceneEvent.Mouseout,this.onMouseOut),this.tippy.destroy()}}]),be}(),As=function(){function be(ze){var Je=ze.config;Et(this,be),this.historyList=[],this.historyIndex=0,this.config=void 0,this.config=Je}return jn(be,[{key:"save",value:function(ze){if(this.config){var Je=this.config.maxSize;this.historyIndex&&(this.historyList=this.historyList.slice(this.historyIndex),this.historyIndex=0),Je>this.historyList.length||this.historyList.pop();var Oe=hs(ze);return this.historyList.unshift(Oe),Oe}}},{key:"revert",value:function(){if(this.historyList.length&&this.historyList.length-1>this.historyIndex){var ze=this.historyList[++this.historyIndex];return ze?hs(ze):void 0}}},{key:"redo",value:function(){if(this.historyList.length&&this.historyIndex>0){var ze=this.historyList[--this.historyIndex];return ze?hs(ze):void 0}}}]),be}(),wa=function(be){Ti(Je,be);var ze=ks(Je);function Je(Oe){var ot,Lt=Oe.data,nn=Oe.render,Fn=Oe.history,Kn=Oe.scene;return Et(this,Je),(ot=ze.call(this)).scene=void 0,ot.render=void 0,ot.data=hs(z),ot.timeout=null,ot.diffData={},ot.history=void 0,ot.scene=Kn,ot.render=nn,Fn&&(ot.history=new As({config:Fn})),Lt&&ot.setData(Lt),ot}return jn(Je,[{key:"saveHistory",value:function(){var Oe;return(Oe=this.history)===null||Oe===void 0?void 0:Oe.save(this.data)}},{key:"revertHistory",value:function(){var Oe,ot=(Oe=this.history)===null||Oe===void 0?void 0:Oe.revert();if(ot)return this.setData(ot),ot}},{key:"redoHistory",value:function(){var Oe,ot=(Oe=this.history)===null||Oe===void 0?void 0:Oe.redo();if(ot)return this.setData(ot),ot}},{key:"setData",value:function(Oe){var ot=this;return Object.keys(Oe).length&&(this.data=lt(lt({},this.data),Oe),this.diffData=lt(lt({},this.diffData),Oe),this.timeout||(this.timeout=requestAnimationFrame(function(){return ot.updateDiffData()})),this.emit(y.SourceEvent.Change,{data:this.data})),this.data}},{key:"getData",value:function(){return this.data}},{key:"getRenderData",value:function(Oe){return this.data[Oe]}},{key:"setRenderData",value:function(Oe,ot){var Lt=typeof ot=="function"?ot(this.getRenderData(Oe)):ot;return this.setData(Cr({},Oe,Lt)),this.emit(y.SourceEvent.Change,this.data),Lt}},{key:"updateDiffData",value:function(){var Oe=this,ot=Object.entries(this.diffData);ot.length&&(ot.forEach(function(Lt){var nn,Fn=pa(Lt,2),Kn=Fn[0],Mi=Fn[1];Array.isArray(Mi)&&((nn=Oe.getRender(Kn))===null||nn===void 0||nn.setData(Mi))}),this.emit(y.SourceEvent.Update,this.data,this.diffData),this.diffData={},this.timeout=null,requestAnimationFrame(function(){Oe.scene.render()}))}},{key:"getRender",value:function(Oe){return this.render[Oe]}},{key:"clear",value:function(){this.setData(Ls(Object.keys(this.render).map(function(Oe){return[Oe,[]]})))}}]),Je}(Uf),ka=function(be){Ti(Je,be);var ze=ks(Je);function Je(Oe,ot){var Lt;Et(this,Je),(Lt=ze.call(this)).scene=void 0,Lt.source=void 0,Lt.render=void 0,Lt.cursor=void 0,Lt.options=void 0,Lt.enabled=!1,Lt.allowCreate=!1,Lt.sceneRender=void 0,Lt.mouseLngLat={lng:0,lat:0},Lt.popup=void 0,Lt.addCount=0,Lt.saveMouseLngLat=D(function(Mi){Lt.mouseLngLat=_l(Mi)},100,{maxWait:100}),Lt.saveHistory=D(function(){Lt.options.history&&Lt.source.saveHistory()},100),Lt.bindThis(),Lt.scene=Oe,Lt.sceneRender=new qt(Oe),Lt.options=nl({},Lt.getDefaultOptions(ot),ot),Lt.render=Lt.initRender(),Lt.source=new wa({render:Lt.render,history:Lt.options.history||void 0,scene:Oe}),Lt.cursor=new Wc(Oe,Lt.options.cursor);var nn=Lt.options,Fn=nn.initialData,Kn=nn.popup;return Fn&&Lt.setData(Fn),Kn&&(Lt.popup=new Do(Oe,Kn instanceof Object?Kn:{})),Lt.saveHistory(),Lt.bindCommonEvent(),Lt.emit(y.DrawEvent.Init,us(Lt)),Lt.bindEnableEvent(),Je.instances.push(us(Lt)),Lt}return jn(Je,[{key:"addable",get:function(){var Oe=this.getData(),ot=this.options,Lt=ot.multiple,nn=ot.maxCount,Fn=Oe.find(function(Kn){return Kn.properties.isDraw});return!(!this.enabled||!this.allowCreate)&&(!!(Lt&&0>=nn||Fn)||!(!Lt&&this.addCount>=1)&&(0>=nn||nn>Oe.length))}},{key:"getOptions",value:function(){return this.options}},{key:"getEditItem",value:function(){return this.editItem}},{key:"getDragItem",value:function(){return this.dragItem}},{key:"setHelper",value:function(Oe){var ot,Lt,nn=this.options.helper;if(nn){var Fn=(ot=Oe in nn?nn[Oe]:Oe)!==null&&ot!==void 0?ot:null;(Lt=this.popup)===null||Lt===void 0||Lt.setContent(Fn)}}},{key:"isEnable",value:function(){return this.enabled}},{key:"bindThis",value:function(){this.initRender=this.initRender.bind(this),this.getData=this.getData.bind(this),this.setData=this.setData.bind(this),this.emitChangeEvent=this.emitChangeEvent.bind(this),this.saveHistory=this.saveHistory.bind(this),this.onSceneMouseMove=this.onSceneMouseMove.bind(this),this.revertHistory=this.revertHistory.bind(this),this.redoHistory=this.redoHistory.bind(this),this.removeActiveFeature=this.removeActiveFeature.bind(this),this.bindCommonEvent=this.bindCommonEvent.bind(this),this.bindEnableEvent=this.bindEnableEvent.bind(this),this.unbindEnableEvent=this.unbindEnableEvent.bind(this),this.setActiveFeature=this.setActiveFeature.bind(this)}},{key:"bindCommonEvent",value:function(){var Oe=this;this.on(y.DrawEvent.Add,this.emitChangeEvent),this.on(y.DrawEvent.Add,function(){Oe.addCount++}),this.on(y.DrawEvent.Edit,this.emitChangeEvent),this.on(y.DrawEvent.Remove,this.emitChangeEvent),this.on(y.DrawEvent.Clear,this.emitChangeEvent),this.on(y.DrawEvent.AddNode,this.saveHistory),this.on(y.DrawEvent.RemoveNode,this.emitChangeEvent),this.bindEmitSelectEvent(!0)}},{key:"bindEmitSelectEvent",value:function(){var Oe=this,ot=arguments.length>0&&arguments[0]!==void 0&&arguments[0],Lt=null,nn=function(){var Fn,Kn,Mi,Yo=Oe.getData().find(function(Lo){var Bo;return(Bo=Lo.properties)===null||Bo===void 0?void 0:Bo.isActive})||null;((Fn=Lt)===null||Fn===void 0||(Kn=Fn.properties)===null||Kn===void 0?void 0:Kn.id)!==(Yo==null||(Mi=Yo.properties)===null||Mi===void 0?void 0:Mi.id)&&(Lt=Yo,Oe.emit(y.DrawEvent.Select,Yo))};this.source.on(y.SourceEvent.Change,nn),ot&&nn()}},{key:"bindEnableEvent",value:function(){this.unbindKeyboardEvent(),this.scene.setMapStatus({doubleClickZoom:!1}),this.scene.on(y.SceneEvent.Mousemove,this.saveMouseLngLat),this.bindKeyboardEvent()}},{key:"unbindEnableEvent",value:function(){this.scene.setMapStatus({doubleClickZoom:!0}),this.scene.off(y.SceneEvent.Mousemove,this.saveMouseLngLat),this.unbindKeyboardEvent()}},{key:"bindKeyboardEvent",value:function(){var Oe=this,ot=this.options.keyboard||{},Lt=ot.revert,nn=ot.redo,Fn=ot.remove;Fn&&qu.bind(Fn,function(){Oe.removeActiveFeature()}),this.options.history&&(Lt&&qu.bind(Lt,this.revertHistory),nn&&qu.bind(nn,this.redoHistory))}},{key:"unbindKeyboardEvent",value:function(){var Oe=this.options.keyboard||{},ot=Oe.revert,Lt=Oe.redo,nn=Oe.remove;nn&&qu.unbind(nn),this.options.history&&(ot&&qu.unbind(ot),Lt&&qu.unbind(Lt))}},{key:"emitChangeEvent",value:function(){this.emit(y.DrawEvent.Change,this.getData()),this.saveHistory()}},{key:"revertHistory",value:function(){this.enabled&&this.options.history&&this.source.revertHistory()&&(this.correctDrawItem(),this.emit(y.DrawEvent.Change,this.getData()))}},{key:"redoHistory",value:function(){this.enabled&&this.options.history&&this.source.redoHistory()&&(this.correctDrawItem(),this.emit(y.DrawEvent.Change,this.getData()))}},{key:"getRenderLayers",value:function(){return Ls(va(this.render).map(function(Oe){var ot=pa(Oe,2);return[ot[0],ot[1].getLayers()]}))}},{key:"getTargetFeature",value:function(Oe){var ot,Lt,nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getData(),Fn=null;return Oe&&(Fn=(ot=nn.find(function(Kn){var Mi;return Kn.properties.id===(typeof Oe=="string"?Oe:(Mi=Oe.properties)===null||Mi===void 0?void 0:Mi.id)}))!==null&&ot!==void 0?ot:null,!Fn&&Oe instanceof Object&&(Fn=(Lt=nn.find(function(Kn){return Ai(Oe.geometry,Kn.geometry)}))!==null&&Lt!==void 0?Lt:null)),Fn}},{key:"removeActiveFeature",value:function(){var Oe=this.getData().find(function(ot){var Lt=ot.properties;return Lt.isActive||Lt.isDraw});return Oe&&this.removeFeature(Oe),Oe}},{key:"removeFeature",value:function(Oe){var ot=this.getData(),Lt=this.getTargetFeature(Oe);Lt&&(this.setData(ot.filter(function(nn){return!Gs(Lt,nn)})),this.emit(y.DrawEvent.Remove,Oe,this.getData()))}},{key:"correctDrawItem",value:function(){this.getData().find(function(Oe){return Oe.properties.isDraw})&&this.onSceneMouseMove({type:"mousemove",lnglat:this.mouseLngLat,lngLat:this.mouseLngLat})}},{key:"initRender",value:function(){var Oe,ot={},Lt=function(Fn,Kn){var Mi=typeof Symbol!="undefined"&&Fn[Symbol.iterator]||Fn["@@iterator"];if(!Mi){if(Array.isArray(Fn)||(Mi=Cs(Fn))||Kn&&Fn&&typeof Fn.length=="number"){Mi&&(Fn=Mi);var Yo=0,Lo=function(){};return{s:Lo,n:function(){return Fn.length>Yo?{done:!1,value:Fn[Yo++]}:{done:!0}},e:function(Gl){throw Gl},f:Lo}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Bo,zu=!0,gu=!1;return{s:function(){Mi=Mi.call(Fn)},n:function(){var Gl=Mi.next();return zu=Gl.done,Gl},e:function(Gl){gu=!0,Bo=Gl},f:function(){try{zu||Mi.return==null||Mi.return()}finally{if(gu)throw Bo}}}}(this.getRenderTypes());try{for(Lt.s();!(Oe=Lt.n()).done;){var nn=Oe.value;ot[nn]=new di[nn](this.scene,{style:this.options.style[nn]})}}catch(Fn){Lt.e(Fn)}finally{Lt.f()}return ot}},{key:"getCommonOptions",value:function(Oe){return{initialData:[],autoActive:!0,cursor:hs(b),editable:!0,style:hs(X),multiple:!0,history:hs(Nn),keyboard:hs(tt),popup:!0,helper:{},maxCount:-1}}},{key:"setCursor",value:function(Oe){this.cursor.setCursor(Oe)}},{key:"resetCursor",value:function(){this.setCursor(this.addable?"draw":null)}},{key:"enable",value:function(){var Oe=this;this.allowCreate=0>=arguments.length||arguments[0]===void 0||arguments[0],this.addCount=0,this.enabled=!0,this.bindEnableEvent(),this.resetCursor(),this.setHelper(this.addable?"draw":null),setTimeout(function(){Oe.emit(y.DrawEvent.Enable,Oe)},0)}},{key:"disable",value:function(){var Oe=this;this.resetFeatures(),this.enabled=!1,this.setCursor(null),this.unbindEnableEvent(),this.addCount=0,this.setHelper(null),setTimeout(function(){Oe.emit(y.DrawEvent.Disable,Oe)},0)}},{key:"clear",value:function(){var Oe=arguments.length>0&&arguments[0]!==void 0&&arguments[0];this.source.clear(),this.emit(y.DrawEvent.Clear,this),Oe&&this.disable()}},{key:"show",value:function(){return Object.values(this.render).forEach(function(Oe){Oe.show()})}},{key:"hide",value:function(){return Object.values(this.render).forEach(function(Oe){Oe.hide()})}},{key:"destroy",value:function(){var Oe,ot=this;Object.values(this.render).forEach(function(nn){nn.destroy()}),Object.values(y.RenderEvent).forEach(function(nn){Object.values(ot.render).forEach(function(Fn){Fn.removeAllListeners(nn)}),ot.sceneRender.removeAllListeners(nn)}),setTimeout(function(){Object.values(y.DrawEvent).forEach(function(nn){ot.removeAllListeners(nn)})},0),(Oe=this.popup)===null||Oe===void 0||Oe.destroy(),this.cursor.destroy(),this.emit(y.DrawEvent.Destroy,this);var Lt=Je.instances.indexOf(this);Lt>-1&&Je.instances.splice(Lt,1)}}]),Je}(Uf);ka.instances=[];var Fs=function(be){var ze=be==null?0:be.length;return ze?be[ze-1]:void 0},gs=function(be){Ti(Je,be);var ze=ks(Je);function Je(){return Et(this,Je),ze.apply(this,arguments)}return jn(Je,[{key:"pointRender",get:function(){return this.render.point}},{key:"dragPoint",get:function(){return this.getPointData().find(function(Oe){return Oe.properties.isDrag})}},{key:"editPoint",get:function(){return this.getPointData().find(function(Oe){return Oe.properties.isActive})}},{key:"hoverPoint",get:function(){return this.getPointData().find(function(Oe){return Oe.properties.isHover})}},{key:"getDragPoint",value:function(){return this.dragPoint}},{key:"getEditPoint",value:function(){return this.editPoint}},{key:"getPointData",value:function(){return this.source.getRenderData("point")}},{key:"setPointData",value:function(Oe){return this.source.setRenderData("point",Oe)}},{key:"bindPointRenderEvent",value:function(){var Oe,ot,Lt,nn,Fn,Kn;(Oe=this.pointRender)===null||Oe===void 0||Oe.on(y.RenderEvent.UnClick,this.onPointCreate.bind(this)),(ot=this.pointRender)===null||ot===void 0||ot.on(y.RenderEvent.Mousemove,this.onPointMouseMove.bind(this)),(Lt=this.pointRender)===null||Lt===void 0||Lt.on(y.RenderEvent.Mouseout,this.onPointMouseOut.bind(this)),(nn=this.pointRender)===null||nn===void 0||nn.on(y.RenderEvent.Dragstart,this.onPointDragStart.bind(this)),(Fn=this.pointRender)===null||Fn===void 0||Fn.on(y.RenderEvent.Dragging,this.onPointDragging.bind(this)),(Kn=this.pointRender)===null||Kn===void 0||Kn.on(y.RenderEvent.Dragend,this.onPointDragEnd.bind(this))}},{key:"handleCreatePoint",value:function(Oe){var ot=this.options,Lt=ot.autoActive,nn=ot.editable,Fn=hn(Oe);return this.setPointData(function(Kn){return Gc({target:Fn,data:[].concat(no(Kn),[Fn]),targetHandler:function(Mi){Mi.properties=lt(lt({},Mi.properties),{},{isHover:nn,isActive:Lt&&nn})},otherHandler:function(Mi){Mi.properties=lt(lt({},Mi.properties),{},{isHover:!1,isActive:!1,isDrag:!1})}})}),Fn}},{key:"handlePointHover",value:function(Oe){return this.setCursor("pointHover"),Gs(Oe,this.hoverPoint)||this.setPointData(function(ot){return Gc({target:Oe,data:ot,targetHandler:function(Lt){Lt.properties.isHover=!0},otherHandler:function(Lt){Lt.properties.isHover=!1}})}),Oe}},{key:"handlePointUnHover",value:function(Oe){return this.resetCursor(),this.setPointData(function(ot){return ot.map(function(Lt){return Lt.properties.isHover=!1,Lt})}),Oe}},{key:"handlePointDragStart",value:function(Oe){return this.setPointData(function(ot){return Gc({target:Oe,data:ot,targetHandler:function(Lt){Lt.properties=lt(lt({},Lt.properties),{},{isDrag:!0,isActive:!0})},otherHandler:function(Lt){Lt.properties=lt(lt({},Lt.properties),{},{isDrag:!1,isActive:!1})}})}),this.scene.setMapStatus({dragEnable:!1}),this.setCursor("pointDrag"),Oe}},{key:"handlePointDragging",value:function(Oe,ot){return this.setPointData(function(Lt){return Gc({target:Oe,data:Lt,targetHandler:function(nn){nn.geometry.coordinates=Ju(ot)}})}),this.scene.setMapStatus({dragEnable:!1}),this.setCursor("pointDrag"),Oe}},{key:"handlePointDragEnd",value:function(Oe){return this.setPointData(function(ot){return Gc({target:Oe,data:ot,targetHandler:function(Lt){Lt.properties.isDrag=!1}})}),this.scene.setMapStatus({dragEnable:!0}),this.setCursor("pointHover"),Oe}},{key:"onPointCreate",value:function(Oe){return this.handleCreatePoint(Ju(_l(Oe)))}},{key:"onPointMouseMove",value:function(Oe){return this.handlePointHover(Oe.feature)}},{key:"onPointMouseOut",value:function(Oe){return this.handlePointUnHover(Oe.feature)}},{key:"onPointDragStart",value:function(Oe){if(this.options.editable)return this.handlePointDragStart(Oe.feature)}},{key:"onPointDragging",value:function(Oe){var ot=this.dragPoint;if(this.options.editable&&ot)return this.handlePointDragging(ot,_l(Oe))}},{key:"onPointDragEnd",value:function(Oe){var ot=this.dragPoint;if(this.options.editable&&ot)return this.handlePointDragEnd(ot)}},{key:"enablePointRenderAction",value:function(){var Oe,ot,Lt,nn,Fn=this.options.editable;this.enabled&&((ot=this.pointRender)===null||ot===void 0||ot.enableCreate()),(Oe=this.pointRender)===null||Oe===void 0||Oe.enableClick(),Fn&&((Lt=this.pointRender)===null||Lt===void 0||Lt.enableHover(),(nn=this.pointRender)===null||nn===void 0||nn.enableDrag())}},{key:"disablePointRenderAction",value:function(){var Oe,ot,Lt,nn;(Oe=this.pointRender)===null||Oe===void 0||Oe.disableCreate(),(ot=this.pointRender)===null||ot===void 0||ot.disableHover(),(Lt=this.pointRender)===null||Lt===void 0||Lt.disableDrag(),(nn=this.pointRender)===null||nn===void 0||nn.disableClick()}}]),Je}(ka),Xi=function(be){Ti(Je,be);var ze=ks(Je);function Je(){return Et(this,Je),ze.apply(this,arguments)}return jn(Je,[{key:"midPointRender",get:function(){return this.render.midPoint}},{key:"getCommonOptions",value:function(Oe){return lt(lt({},Os($i(Je.prototype),"getCommonOptions",this).call(this,Oe)),{},{showMidPoint:!0})}},{key:"bindMidPointRenderEvent",value:function(){var Oe,ot,Lt;(Oe=this.midPointRender)===null||Oe===void 0||Oe.on(y.RenderEvent.Click,this.onMidPointClick.bind(this)),(ot=this.midPointRender)===null||ot===void 0||ot.on(y.RenderEvent.Mousemove,this.onMidPointHover.bind(this)),(Lt=this.midPointRender)===null||Lt===void 0||Lt.on(y.RenderEvent.Mouseout,this.onMidPointUnHover.bind(this))}},{key:"getMidPointData",value:function(){return this.source.getRenderData("midPoint")}},{key:"setMidPointData",value:function(Oe){return this.source.setRenderData("midPoint",Oe)}},{key:"getMidPointsByLine",value:function(Oe){var ot=Oe.properties.nodes;if(!this.options.showMidPoint||2>ot.length)return[];for(var Lt=[],nn=0;ot.length-1>nn;nn++){var Fn,Kn,Mi,Yo,Lo=Ba(qi([ot[nn],ot[nn+1]]),{properties:{id:tu("midPoint"),startId:(Fn=(Kn=ot[nn].properties)===null||Kn===void 0?void 0:Kn.id)!==null&&Fn!==void 0?Fn:"",endId:(Mi=(Yo=ot[nn+1].properties)===null||Yo===void 0?void 0:Yo.id)!==null&&Mi!==void 0?Mi:""}});Lt.push(Lo)}return Lt}},{key:"onMidPointHover",value:function(Oe){this.setCursor("pointHover")}},{key:"onMidPointUnHover",value:function(Oe){this.resetCursor()}},{key:"enableMidPointRenderAction",value:function(){var Oe,ot;(Oe=this.midPointRender)===null||Oe===void 0||Oe.enableClick(),(ot=this.midPointRender)===null||ot===void 0||ot.enableHover()}},{key:"disableMidPointRenderAction",value:function(){var Oe,ot;(Oe=this.midPointRender)===null||Oe===void 0||Oe.disableClick(),(ot=this.midPointRender)===null||ot===void 0||ot.disableHover()}}]),Je}(gs),sr={draw:"\u5355\u51FB\u7ED8\u5236\u70B9",pointHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u70B9\u4F4D\u7F6E",pointDrag:null},Rr={draw:"\u5355\u51FB\u7ED8\u5236\u9996\u4E2A\u8282\u70B9",pointHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u8282\u70B9\u4F4D\u7F6E",pointDrag:null,lineHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u7EBF\u4F4D\u7F6E",lineDrag:null,midPointHover:"\u5355\u51FB\u5728\u8BE5\u4F4D\u7F6E\u65B0\u589E\u8282\u70B9",drawFinish:"\u5355\u51FB\u7EE7\u7EED\u7ED8\u5236\uFF0C\u53CC\u51FB\u7ED3\u675F\u7ED8\u5236"},gi={draw:"\u5355\u51FB\u7ED8\u5236\u9996\u4E2A\u8282\u70B9",drawContinue:"\u5355\u51FB\u7EE7\u7EED\u7ED8\u5236",drawFinish:"\u5355\u51FB\u7EE7\u7EED\u7ED8\u5236\uFF0C\u53CC\u51FB\u7ED3\u675F\u7ED8\u5236",midPointHover:"\u5355\u51FB\u5728\u8BE5\u4F4D\u7F6E\u65B0\u589E\u8282\u70B9",pointHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u8282\u70B9\u4F4D\u7F6E",pointDrag:null,lineHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u9762\u4F4D\u7F6E",lineDrag:null,polygonHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u9762\u4F4D\u7F6E",polygonDrag:null},ls=lt(lt({},gi),{},{draw:"\u5355\u51FB\u7ED8\u5236\u9996\u4E2A\u8282\u70B9",drawFinish:"\u5355\u51FB\u7ED3\u675F\u7ED8\u5236"}),bs={draw:"\u62D6\u62FD\u5F00\u59CB\u7ED8\u5236",drawFinish:"\u677E\u5F00\u9F20\u6807\u7ED3\u675F\u7ED8\u5236"},Pl={lineHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u77E9\u5F62\u4F4D\u7F6E",polygonHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u77E9\u5F62\u4F4D\u7F6E"},Ys={lineHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u5706\u4F4D\u7F6E",polygonHover:"\u53EF\u62D6\u62FD\u8C03\u6574\u5706\u4F4D\u7F6E"},ml=function(be){Ti(Je,be);var ze=ks(Je);function Je(){var Oe;Et(this,Je);for(var ot=arguments.length,Lt=Array(ot),nn=0;ot>nn;nn++)Lt[nn]=arguments[nn];return(Oe=ze.call.apply(ze,[this].concat(Lt))).previousPosition=[0,0],Oe}return jn(Je,[{key:"lineRender",get:function(){return this.render.line}},{key:"dragLine",get:function(){return this.getLineData().find(function(Oe){return Oe.properties.isDrag})}},{key:"drawLine",get:function(){return this.getLineData().find(function(Oe){return Oe.properties.isDraw})}},{key:"editLine",get:function(){return this.getLineData().find(function(Oe){var ot=Oe.properties;return!ot.isDraw&&ot.isActive})}},{key:"hoverLine",get:function(){return this.getLineData().find(function(Oe){return Oe.properties.isHover})}},{key:"getDragLine",value:function(){return this.dragLine}},{key:"getDrawLine",value:function(){return this.drawLine}},{key:"getEditLine",value:function(){return this.editLine}},{key:"getDefaultOptions",value:function(Oe){var ot=lt(lt({},this.getCommonOptions(Oe)),{},{showMidPoint:!0,distanceOptions:!1,helper:hs(Rr)});return Oe.distanceOptions&&(ot.distanceOptions=lt(lt({},dn),ot.distanceOptions)),Oe.adsorbOptions&&(ot.adsorbOptions=lt(lt({},vt),ot.adsorbOptions)),ot}},{key:"getAdsorbPosition",value:function(Oe){var ot=this.options.adsorbOptions;if(typeof ot=="boolean")return Oe;var Lt=this.scene,nn=ot.pointAdsorbPixel,Fn=ot.lineAdsorbPixel,Kn=null,Mi=gr(ot.data,this,Oe),Yo=Mi.points,Lo=Mi.lines;return Yo.length&&nn>0&&(Kn=Ka(Oe,Yo,ot,Lt)),!Kn&&Lo.length&&Fn>0&&(Kn=Ca(Oe,Lo,ot,Lt)),Kn}},{key:"bindSceneEvent",value:function(){this.sceneRender.on(y.RenderEvent.Mousemove,this.onSceneMouseMove.bind(this))}},{key:"bindPointRenderEvent",value:function(){var Oe;Os($i(Je.prototype),"bindPointRenderEvent",this).call(this),(Oe=this.pointRender)===null||Oe===void 0||Oe.on(y.RenderEvent.Click,this.onPointClick.bind(this))}},{key:"bindLineRenderEvent",value:function(){var Oe,ot,Lt,nn,Fn,Kn;(Oe=this.lineRender)===null||Oe===void 0||Oe.on(y.RenderEvent.UnClick,this.onLineUnClick.bind(this)),(ot=this.lineRender)===null||ot===void 0||ot.on(y.RenderEvent.Mousemove,this.onLineMouseMove.bind(this)),(Lt=this.lineRender)===null||Lt===void 0||Lt.on(y.RenderEvent.Mouseout,this.onLineMouseOut.bind(this)),(nn=this.lineRender)===null||nn===void 0||nn.on(y.RenderEvent.Dragstart,this.onLineDragStart.bind(this)),(Fn=this.lineRender)===null||Fn===void 0||Fn.on(y.RenderEvent.Dragging,this.onLineDragging.bind(this)),(Kn=this.lineRender)===null||Kn===void 0||Kn.on(y.RenderEvent.Dragend,this.onLineDragEnd.bind(this))}},{key:"getDashLineDistanceTexts",value:function(Oe,ot){var Lt=ot.showTotalDistance,nn=ot.format;return ot.showDashDistance?Oe.map(function(Fn){return ps(Fn,{showTotalDistance:Lt,format:nn},{isActive:!0,type:"dash"})}).flat():[]}},{key:"getLineDistanceTexts",value:function(Oe,ot){var Lt=ot.showTotalDistance,nn=ot.format,Fn=ot.showWhen,Kn=[];if(Fn.includes("active")){var Mi=Oe.filter(function(Lo){return Lo.properties.isActive&&Lo.properties.nodes.length>1});Kn.push.apply(Kn,no(Mi.map(function(Lo){return ps(Lo,{showTotalDistance:Lt,format:nn},{isActive:!0})}).flat()))}if(Fn.includes("normal")){var Yo=Oe.filter(function(Lo){return!Lo.properties.isActive&&Lo.properties.nodes.length>1});Kn.push.apply(Kn,no(Yo.map(function(Lo){return ps(Lo,{showTotalDistance:Lt,format:nn})}).flat()))}return Kn}},{key:"getDistanceTexts",value:function(){var Oe=this.options.distanceOptions;if(!Oe)return[];var ot=[],Lt=Oe.showWhen,nn=Oe.showDashDistance,Fn=Oe.format,Kn=Oe.showTotalDistance;return ot.push.apply(ot,no(this.getDashLineDistanceTexts(this.getDashLineData(),{showTotalDistance:!1,format:Fn,showDashDistance:nn})).concat(no(this.getLineDistanceTexts(this.getLineData(),{showTotalDistance:Kn,format:Fn,showWhen:Lt})))),ot}},{key:"getAllTexts",value:function(){return this.getDistanceTexts()}},{key:"handleCreateLine",value:function(Oe){var ot=Lr([Oe],{isActive:!0,isDraw:!0});return this.setLineData(function(Lt){return Gc({target:ot,data:[].concat(no(Lt),[ot]),otherHandler:function(nn){nn.properties.isActive=!1}})}),this.setPointData([Oe]),this.setTextData(this.getAllTexts()),ot}},{key:"syncLineNodes",value:function(Oe,ot){return Oe.properties.nodes=ot,Oe.geometry.coordinates=Ki(qi(ot)),this.setLineData(function(Lt){return Lt.map(function(nn){return Gs(nn,Oe)?Oe:nn})}),Gs(this.editLine,Oe)&&this.setMidPointData(this.getMidPointsByLine(Oe)),this.setPointData(Oe.properties.nodes),this.setTextData(this.getAllTexts()),Oe}},{key:"setActiveLine",value:function(Oe){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.setLineData(function(Lt){return Gc({target:Oe,data:Lt,targetHandler:function(nn){nn.properties=lt(lt({},nn.properties),{},{isDraw:!1,isActive:!0,isDrag:!1,isHover:!1},ot)},otherHandler:function(nn){nn.properties=lt(lt({},nn.properties),{},{isDraw:!1,isActive:!1,isDrag:!1})}})}),this.setPointData(Oe.properties.nodes.map(function(Lt){return Lt.properties=lt(lt({},Lt.properties),{},{isHover:!1,isActive:!1}),Lt})),this.setMidPointData(this.getMidPointsByLine(Oe)),this.setDashLineData([]),this.setTextData(this.getAllTexts()),Oe}},{key:"clearActiveLine",value:function(){this.source.setData({point:[],line:this.getLineData().map(function(Oe){return Oe.properties=lt(lt({},Oe.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),Oe}),midPoint:[],text:this.getAllTexts()})}},{key:"handleLineUnClick",value:function(Oe){return this.clearActiveLine(),Oe}},{key:"handleLineHover",value:function(Oe){if(!this.drawLine)return this.setCursor("lineHover"),Gs(Oe,this.hoverLine)||this.setLineData(function(ot){return Gc({target:Oe,data:ot,targetHandler:function(Lt){Lt.properties.isHover=!0},otherHandler:function(Lt){Lt.properties.isHover=!1}})}),Oe}},{key:"handleLineUnHover",value:function(Oe){if(!this.drawLine)return this.resetCursor(),this.setLineData(function(ot){return ot.map(function(Lt){return Lt.properties.isHover=!1,Lt})}),Oe}},{key:"handleLineDragStart",value:function(Oe){return this.setActiveLine(Oe,{isDrag:!0,isActive:!0}),this.scene.setMapStatus({dragEnable:!1}),this.setCursor("lineDrag"),Oe}},{key:"handleLineDragging",value:function(Oe,ot){var Lt=ot.lng,nn=ot.lat,Fn=Oe.properties.nodes,Kn=pa(this.previousPosition,2),Mi=Kn[0],Yo=Kn[1];return Fn.forEach(function(Lo){var Bo=Lo.geometry.coordinates;Lo.geometry.coordinates=[Bo[0]+Lt-Mi,Bo[1]+nn-Yo]}),this.syncLineNodes(Oe,Fn),this.setActiveLine(Oe,{isDrag:!0}),this.setCursor("lineDrag"),this.previousPosition=[Lt,nn],Oe}},{key:"handleLineDragEnd",value:function(Oe){return Oe.properties.isDrag=!1,this.setLineData(function(ot){return ot}),this.scene.setMapStatus({dragEnable:!0}),Oe}},{key:"resetAdsorbLngLat",value:function(Oe){if(this.options.adsorbOptions){var ot=this.getAdsorbPosition(Ju(_l(Oe)));return ot&&Du(Oe,ot),ot}}},{key:"onPointCreate",value:function(Oe){if(!this.editLine){this.resetAdsorbLngLat(Oe);var ot=Os($i(Je.prototype),"onPointCreate",this).call(this,Oe),Lt=this.drawLine;if(ot)return Lt?(this.syncLineNodes(Lt,[].concat(no(Lt.properties.nodes),[ot])),this.setDashLineData([])):this.handleCreateLine(ot),ot}}},{key:"onPointDragStart",value:function(Oe){if(this.editLine)return this.setHelper("pointDrag"),Os($i(Je.prototype),"onPointDragStart",this).call(this,Oe)}},{key:"onPointDragging",value:function(Oe){var ot=Os($i(Je.prototype),"onPointDragging",this).call(this,Oe);if(ot){var Lt=this.resetAdsorbLngLat(Oe);Lt&&(ot.geometry.coordinates=hs(Lt))}var nn=this.editLine;return nn&&ot&&(this.syncLineNodes(nn,nn.properties.nodes.map(function(Fn){return Gs(ot,Fn)?ot:Fn})),this.setActiveLine(nn)),ot}},{key:"onPointDragEnd",value:function(Oe){if(this.editLine){var ot=Os($i(Je.prototype),"onPointDragEnd",this).call(this,Oe);return this.setPointData(function(Lt){return Lt.map(function(nn){return nn.properties.isActive=!1,nn})}),this.setHelper("pointHover"),ot}}},{key:"onLineUnClick",value:function(Oe){var ot=this.editLine;if(ot)return this.handleLineUnClick(ot)}},{key:"onLineMouseMove",value:function(Oe){if(!this.drawLine)return this.dragLine||this.drawLine||!this.options.editable||this.setHelper("lineHover"),this.handleLineHover(Oe.feature)}},{key:"onLineMouseOut",value:function(Oe){if(!this.drawLine)return this.dragLine||this.drawLine||this.setHelper(this.addable?"draw":null),this.handleLineUnHover(Oe.feature)}},{key:"onLineDragStart",value:function(Oe){if(this.options.editable&&!this.drawLine)return this.previousPosition=Ql(Oe),this.setHelper("lineDrag"),this.handleLineDragStart(Oe.feature)}},{key:"onLineDragging",value:function(Oe){var ot=this.dragLine;if(ot)return this.handleLineDragging(ot,_l(Oe))}},{key:"onLineDragEnd",value:function(Oe){var ot=this.dragLine;if(ot)return this.setHelper("lineHover"),this.handleLineDragEnd(ot)}},{key:"onPointMouseMove",value:function(Oe){var ot=Os($i(Je.prototype),"onPointMouseMove",this).call(this,Oe);return this.dragLine||this.drawLine||this.dragPoint||this.setHelper("pointHover"),ot}},{key:"onPointMouseOut",value:function(Oe){var ot=Os($i(Je.prototype),"onPointMouseOut",this).call(this,Oe);return this.dragLine||this.drawLine||this.dragPoint||this.setHelper(this.addable?"draw":null),ot}},{key:"onMidPointHover",value:function(Oe){Os($i(Je.prototype),"onMidPointHover",this).call(this,Oe),this.setHelper("midPointHover")}},{key:"onMidPointUnHover",value:function(Oe){Os($i(Je.prototype),"onMidPointUnHover",this).call(this,Oe),this.setHelper(null)}},{key:"onPointClick",value:function(Oe){}},{key:"getLineData",value:function(){return this.source.getRenderData("line")}},{key:"setLineData",value:function(Oe){return this.source.setRenderData("line",Oe)}},{key:"getTextData",value:function(){return this.source.getRenderData("text")}},{key:"setTextData",value:function(Oe){return this.source.setRenderData("text",Oe)}},{key:"getDashLineData",value:function(){return this.source.getRenderData("dashLine")}},{key:"setDashLineData",value:function(Oe){return this.source.setRenderData("dashLine",Oe)}},{key:"onMidPointClick",value:function(Oe){var ot=this.editLine,Lt=Oe.feature;if(ot&&Lt&&!this.dragPoint){var nn=ot.properties.nodes,Fn=Lt.properties,Kn=Fn.startId,Mi=Fn.endId,Yo=nn.findIndex(function(zu){return zu.properties.id===Kn}),Lo=nn.findIndex(function(zu){return zu.properties.id===Mi});if(Yo>-1&&Lo>-1){var Bo=hn(Lt.geometry.coordinates,{isDrag:!0,isHover:!0});return this.setHelper("pointDrag"),nn.splice(Lo,0,Bo),ot.geometry.coordinates=Ki(qi(nn)),this.syncLineNodes(ot,nn),this.setActiveLine(ot),Bo}}}},{key:"enableSceneRenderAction",value:function(){this.sceneRender.enableDrag(),this.sceneRender.enableMouseMove(),this.sceneRender.enableDblClick()}},{key:"disableSceneRenderAction",value:function(){this.sceneRender.disableDrag(),this.sceneRender.disableMouseMove(),this.sceneRender.disableDblClick()}},{key:"enableLineRenderAction",value:function(){var Oe,ot,Lt,nn=this.options.editable;(Oe=this.lineRender)===null||Oe===void 0||Oe.enableUnClick(),nn&&((ot=this.lineRender)===null||ot===void 0||ot.enableHover(),(Lt=this.lineRender)===null||Lt===void 0||Lt.enableDrag())}},{key:"disableLineRenderAction",value:function(){var Oe,ot,Lt;(Oe=this.lineRender)===null||Oe===void 0||Oe.disableUnClick(),(ot=this.lineRender)===null||ot===void 0||ot.disableHover(),(Lt=this.lineRender)===null||Lt===void 0||Lt.disableDrag()}}]),Je}(Xi),mu=function(be){Ti(Je,be);var ze=ks(Je);function Je(){return Et(this,Je),ze.apply(this,arguments)}return jn(Je,[{key:"dragItem",get:function(){return this.dragPolygon}},{key:"editItem",get:function(){return this.editPolygon}},{key:"polygonRender",get:function(){return this.render.polygon}},{key:"dragPolygon",get:function(){return this.getPolygonData().find(function(Oe){return Oe.properties.isDrag})}},{key:"drawPolygon",get:function(){return this.getPolygonData().find(function(Oe){return Oe.properties.isDraw})}},{key:"editPolygon",get:function(){return this.getPolygonData().find(function(Oe){var ot=Oe.properties;return!ot.isDraw&&ot.isActive})}},{key:"hoverPolygon",get:function(){return this.getPolygonData().find(function(Oe){return Oe.properties.isHover})}},{key:"getDragPolygon",value:function(){return this.dragPolygon}},{key:"getDrawPolygon",value:function(){return this.drawPolygon}},{key:"getEditPolygon",value:function(){return this.editPolygon}},{key:"getRenderTypes",value:function(){return["polygon","line","dashLine","midPoint","point","text"]}},{key:"getData",value:function(){return this.getPolygonData()}},{key:"getMainLayer",value:function(){var Oe,ot;return(Oe=(ot=this.render.polygon)===null||ot===void 0?void 0:ot.getLayers())!==null&&Oe!==void 0?Oe:[]}},{key:"getDefaultOptions",value:function(Oe){var ot=lt(lt({},Os($i(Je.prototype),"getDefaultOptions",this).call(this,Oe)),{},{areaOptions:!1,helper:hs(gi)});return Oe.areaOptions&&(ot.areaOptions=lt(lt({},An),Oe.areaOptions)),ot}},{key:"getAreaTexts",value:function(Oe){var ot=this.options.areaOptions;if(!ot)return[];var Lt=ot.format,nn=ot.showWhen,Fn=[],Kn=Oe.filter(function(Mi){return Mi.geometry.coordinates[0].length>=4});return nn.includes("active")&&Kn.filter(function(Mi){return Mi.properties.isActive}).forEach(function(Mi){Fn.push(xa(Mi,{format:Lt},{isActive:!0}))}),nn.includes("normal")&&Kn.filter(function(Mi){return!Mi.properties.isActive}).forEach(function(Mi){Fn.push(xa(Mi,{format:Lt},{isActive:!1}))}),Fn}},{key:"getAllTexts",value:function(){return[].concat(no(Os($i(Je.prototype),"getAllTexts",this).call(this)),no(this.getAreaTexts(this.getPolygonData())))}},{key:"getPolygonData",value:function(){return this.source.getRenderData("polygon")}},{key:"setPolygonData",value:function(Oe){return this.source.setRenderData("polygon",Oe)}},{key:"handleCreatePolygon",value:function(Oe,ot){var Lt=ei(Oe,{nodes:Oe,line:ot,isActive:!0,isDraw:!0});return this.setPolygonData(function(nn){return Gc({target:Lt,data:[].concat(no(nn),[Lt]),otherHandler:function(Fn){Fn.properties.isActive=!1}})}),Lt}},{key:"handlePolygonUnClick",value:function(Oe){return this.clearActivePolygon(),Oe}},{key:"handlePolygonHover",value:function(Oe){return this.setCursor("polygonHover"),Gs(Oe,this.hoverPolygon)||this.setPolygonData(function(ot){return Gc({target:Oe,data:ot,targetHandler:function(Lt){Lt.properties.isHover=!0},otherHandler:function(Lt){Lt.properties.isHover=!1}})}),Oe}},{key:"handlePolygonUnHover",value:function(){this.resetCursor(),this.setPolygonData(function(Oe){return Oe.map(function(ot){return ot.properties.isHover=!1,ot})})}},{key:"handlePolygonDragStart",value:function(Oe){return this.setActivePolygon(Oe,{isDrag:!0}),this.scene.setMapStatus({dragEnable:!1}),this.setCursor("polygonDrag"),Oe}},{key:"bindPolygonRenderEvent",value:function(){var Oe,ot,Lt,nn;(Oe=this.polygonRender)===null||Oe===void 0||Oe.on(y.RenderEvent.UnClick,this.onPolygonUnClick.bind(this)),(ot=this.polygonRender)===null||ot===void 0||ot.on(y.RenderEvent.Mousemove,this.onPolygonHover.bind(this)),(Lt=this.polygonRender)===null||Lt===void 0||Lt.on(y.RenderEvent.Mouseout,this.onPolygonUnHover.bind(this)),(nn=this.polygonRender)===null||nn===void 0||nn.on(y.RenderEvent.Dragstart,this.onPolygonDragStart.bind(this))}},{key:"syncPolygonNodes",value:function(Oe,ot){var Lt=Ki(qi([].concat(no(ot),[su(ot)]))),nn=Oe.properties,Fn=nn.line;if(Oe.properties.nodes=ot,Oe.geometry.coordinates=[wp(zi(Lt))?Lt:Lt.reverse()],this.setPolygonData(function(Bo){return Bo.map(function(zu){return Gs(zu,Oe)?Oe:zu})}),!Gs(this.drawPolygon,Oe)){var Kn=Fn.properties.nodes,Mi=no(ot),Yo=su(Mi);Mi.push(Kn.length===ot.length?hn(Yo.geometry.coordinates):Fs(Kn));var Lo=Fs(Mi);Ai(Yo.geometry.coordinates,Lo.geometry.coordinates)||(Lo.geometry.coordinates=hs(Yo.geometry.coordinates)),this.syncLineNodes(Fn,Mi)}return Oe}},{key:"setActivePolygon",value:function(Oe){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.setActiveLine(Oe.properties.line,ot),this.setPolygonData(function(Lt){return Gc({target:Oe,data:Lt,targetHandler:function(nn){nn.properties=lt(lt({},nn.properties),{},{isDraw:!1,isActive:!0,isDrag:!1,isHover:!1},ot)},otherHandler:function(nn){nn.properties=lt(lt({},nn.properties),{},{isDraw:!1,isActive:!1,isDrag:!1})}})}),this.setTextData(this.getAllTexts()),Oe}},{key:"clearActivePolygon",value:function(){this.setPolygonData(function(Oe){return Oe.map(function(ot){return ot.properties=lt(lt({},ot.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),ot})}),this.clearActiveLine()}},{key:"onLineDragStart",value:function(Oe){var ot=Os($i(Je.prototype),"onLineDragStart",this).call(this,Oe),Lt=this.getPolygonData().find(function(nn){return Gs(nn.properties.line,ot)});return Lt&&(this.setActivePolygon(Lt,{isDrag:!0}),this.emit(y.DrawEvent.DragStart,Lt,this.getPolygonData())),ot}},{key:"onLineUnClick",value:function(Oe){return this.editLine}},{key:"onLineDragEnd",value:function(Oe){var ot=Os($i(Je.prototype),"onLineDragEnd",this).call(this,Oe),Lt=this.dragPolygon;return ot&&Lt&&(Lt.properties.isDrag=!1,this.emit(y.DrawEvent.DragEnd,Lt,this.getPolygonData()),this.emit(y.DrawEvent.Edit,Lt,this.getPolygonData())),ot}},{key:"onPolygonUnClick",value:function(Oe){var ot=this.editPolygon;if(ot)return this.handlePolygonUnClick(ot)}},{key:"onPolygonHover",value:function(Oe){if(!this.drawPolygon)return this.dragPolygon||this.setHelper("polygonHover"),this.handlePolygonHover(Oe.feature)}},{key:"onPolygonUnHover",value:function(Oe){if(!this.drawPolygon)return this.setHelper(this.addable?"draw":null),this.handlePolygonUnHover()}},{key:"onPolygonDragStart",value:function(Oe){if(this.options.editable&&!this.drawPolygon){var ot=Oe.feature;return this.previousPosition=Ql(Oe),this.setHelper("polygonDrag"),this.emit(y.DrawEvent.DragStart,ot,this.getPolygonData()),this.handlePolygonDragStart(ot)}}},{key:"onMidPointClick",value:function(Oe){var ot=this.editPolygon,Lt=Os($i(Je.prototype),"onMidPointClick",this).call(this,Oe);if(Lt&&ot){var nn=ot.properties.line.properties.nodes;this.syncPolygonNodes(ot,nn.slice(0,nn.length-1)),this.setActivePolygon(ot)}return Lt}},{key:"onPointDragEnd",value:function(Oe){var ot=this.editPolygon,Lt=Os($i(Je.prototype),"onPointDragEnd",this).call(this,Oe);return Lt&&ot&&this.emit(y.DrawEvent.Edit,ot,this.getPolygonData()),Lt}},{key:"enablePolygonRenderAction",value:function(){var Oe,ot,Lt,nn=this.options.editable;(Oe=this.polygonRender)===null||Oe===void 0||Oe.enableUnClick(),nn&&((ot=this.polygonRender)===null||ot===void 0||ot.enableHover(),(Lt=this.polygonRender)===null||Lt===void 0||Lt.enableDrag())}},{key:"disablePolygonRenderAction",value:function(){var Oe,ot,Lt;(Oe=this.polygonRender)===null||Oe===void 0||Oe.disableUnClick(),(ot=this.polygonRender)===null||ot===void 0||ot.disableHover(),(Lt=this.polygonRender)===null||Lt===void 0||Lt.disableDrag()}},{key:"bindEnableEvent",value:function(){Os($i(Je.prototype),"bindEnableEvent",this).call(this),this.enableSceneRenderAction(),this.enablePointRenderAction(),this.enableLineRenderAction(),this.enableMidPointRenderAction(),this.enablePolygonRenderAction()}},{key:"unbindEnableEvent",value:function(){Os($i(Je.prototype),"unbindEnableEvent",this).call(this),this.disableSceneRenderAction(),this.disablePointRenderAction(),this.disableLineRenderAction(),this.disableMidPointRenderAction(),this.disablePolygonRenderAction()}},{key:"bindThis",value:function(){Os($i(Je.prototype),"bindThis",this).call(this),this.bindPointRenderEvent=this.bindPointRenderEvent.bind(this),this.bindSceneEvent=this.bindSceneEvent.bind(this),this.bindLineRenderEvent=this.bindLineRenderEvent.bind(this),this.bindMidPointRenderEvent=this.bindMidPointRenderEvent.bind(this),this.bindPolygonRenderEvent=this.bindPolygonRenderEvent.bind(this)}},{key:"setActiveFeature",value:function(Oe){var ot=this.getTargetFeature(Oe);ot?this.setActivePolygon(ot):this.clearActivePolygon()}},{key:"resetFeatures",value:function(){var Oe=this.getPolygonData();this.drawPolygon&&(Oe=Oe.filter(function(ot){return!ot.properties.isDraw}),this.source.setData({point:[],dashLine:[],midPoint:[]}),this.setLineData(function(ot){return ot.filter(function(Lt){return!Lt.properties.isDraw})}),this.setTextData(function(ot){return ot.filter(function(Lt){return!Lt.properties.isActive})})),this.editPolygon&&this.handlePolygonUnClick(this.editPolygon),this.setPolygonData(Oe.map(function(ot){return ot.properties=lt(lt({},ot.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),ot}))}}]),Je}(ml),hc=function(be){Ti(Je,be);var ze=ks(Je);function Je(Oe,ot){var Lt;return Et(this,Je),(Lt=ze.call(this,Oe,ot)).onSceneDragStart=Lt.onSceneDragStart.bind(us(Lt)),Lt.onSceneDragEnd=Lt.onSceneDragEnd.bind(us(Lt)),Lt}return jn(Je,[{key:"drawLine",get:function(){var Oe;return(Oe=this.drawPolygon)===null||Oe===void 0?void 0:Oe.properties.line}},{key:"isDragTrigger",get:function(){return this.options.trigger==="drag"}},{key:"isClickTrigger",get:function(){return this.options.trigger==="click"}},{key:"getDefaultOptions",value:function(Oe){var ot=lt(lt({},Os($i(Je.prototype),"getDefaultOptions",this).call(this,Oe)),{},{showMidPoint:!1,trigger:"click",autoActive:!1,helper:hs(ls)});return Oe.trigger==="drag"&&(ot.helper=lt(lt({},ot.helper),bs)),ot}},{key:"getMidPointsByLine",value:function(Oe){return[]}},{key:"handleCreatePolygon",value:function(Oe,ot){var Lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},nn=ot.properties.nodes;return ei(nn.slice(0,nn.length-1),lt({nodes:Oe,line:ot},Lt))}},{key:"handleFirstNodeCreate",value:function(Oe){var ot=hn(Oe.geometry.coordinates),Lt=this.handleCreatePolygonLine(Oe,ot,{isDraw:!0,isActive:!0}),nn=this.handleCreatePolygon([Oe,ot],Lt,{isDraw:!0,isActive:!0});return this.setPolygonData(function(Fn){return Gc({target:nn,data:[].concat(no(Fn),[nn]),targetHandler:function(Kn){Kn.properties=lt(lt({},Kn.properties),{},{isDraw:!0,isActive:!0})}})}),this.emit(y.DrawEvent.AddNode,Oe,this.drawPolygon,this.getPolygonData()),this.setHelper("drawFinish"),Oe}},{key:"handleLastNodeCreate",value:function(Oe){var ot=this.options,Lt=ot.autoActive,nn=ot.editable,Fn=this.drawPolygon;return Fn&&(this.setLineData(function(Kn){return[].concat(no(Kn),[Fn.properties.line])}),this.setActivePolygon(Fn),Lt&&nn||this.handlePolygonUnClick(Fn),this.emit(y.DrawEvent.Add,Fn,this.getPolygonData()),this.emit(y.DrawEvent.AddNode,Fn.properties.nodes[1],this.drawPolygon,this.getPolygonData()),this.setHelper(nn?Lt?"pointHover":"polygonHover":this.addable?"draw":null)),Oe}},{key:"onPointCreate",value:function(Oe){var ot=this;if(this.addable&&!this.dragPoint&&!this.editLine&&this.isClickTrigger){var Lt=this.drawPolygon,nn=Ql(Oe),Fn=this.handleCreatePoint(nn);return Lt?requestAnimationFrame(function(){ot.handleLastNodeCreate(Fn)}):this.handleFirstNodeCreate(Fn),Fn}}},{key:"setActivePolygon",value:function(Oe){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.setActiveLine(Oe.properties.line,ot),this.setPolygonData(function(nn){return Gc({target:Oe,data:nn,targetHandler:function(Fn){Fn.properties=lt(lt({},Fn.properties),{},{isDraw:!1,isActive:!0,isDrag:!1,isHover:!1},ot)},otherHandler:function(Fn){Fn.properties=lt(lt({},Fn.properties),{},{isDraw:!1,isActive:!1,isDrag:!1})}})}),this.setPointData(Oe.properties.nodes),this.setDashLineData([]);var Lt=this.getAllTexts();return this.setTextData(Lt),Oe}},{key:"onPointDragging",value:function(Oe){var ot=this.dragPoint;if(ot){var Lt=this.handlePointDragging(ot,_l(Oe)),nn=this.editPolygon;return Lt&&nn&&(this.syncPolygonNodes(nn,nn.properties.nodes.map(function(Fn){return Gs(Fn,Lt)?Lt:Fn})),this.setActivePolygon(nn)),Lt}}},{key:"onSceneDragStart",value:function(Oe){this.isDragTrigger&&this.addable&&!this.dragPoint&&!this.editLine&&(this.scene.setMapStatus({dragEnable:!1}),this.handleFirstNodeCreate(this.handleCreatePoint(Ql(Oe))))}},{key:"onSceneDragEnd",value:function(Oe){this.isDragTrigger&&this.addable&&!this.dragPoint&&!this.editLine&&this.drawPolygon&&(this.scene.setMapStatus({dragEnable:!1}),this.handleLastNodeCreate(this.handleCreatePoint(Ql(Oe))))}},{key:"onSceneMouseMove",value:function(Oe){var ot=this.drawPolygon;if(ot){var Lt=ot.properties.nodes,nn=su(Lt),Fn=Fs(Lt);Fn.geometry.coordinates=Ql(Oe),this.syncPolygonNodes(ot,[nn,Fn]),this.setDashLineData([ot.properties.line]),this.setTextData(this.getAllTexts()),this.resetCursor()}}},{key:"bindSceneDragEvent",value:function(){this.unbindSceneDragEvent(),this.sceneRender.on(y.RenderEvent.Dragstart,this.onSceneDragStart),this.sceneRender.on(y.RenderEvent.Dragend,this.onSceneDragEnd),this.scene.setMapStatus({dragEnable:!1})}},{key:"unbindSceneDragEvent",value:function(){this.sceneRender.off(y.RenderEvent.Dragstart,this.onSceneDragStart),this.sceneRender.off(y.RenderEvent.Dragend,this.onSceneDragEnd),this.scene.setMapStatus({dragEnable:!0})}},{key:"bindEnableEvent",value:function(){Os($i(Je.prototype),"bindEnableEvent",this).call(this),this.isDragTrigger&&this.bindSceneDragEvent()}},{key:"unbindEnableEvent",value:function(){Os($i(Je.prototype),"unbindEnableEvent",this).call(this),this.isDragTrigger&&this.unbindSceneDragEvent()}},{key:"bindThis",value:function(){Os($i(Je.prototype),"bindThis",this).call(this),this.onSceneDragStart=this.onSceneDragStart.bind(this),this.onSceneDragEnd=this.onSceneDragEnd.bind(this)}}]),Je}(mu),cd=function(be){Ti(Je,be);var ze=ks(Je);function Je(Oe,ot){var Lt;return Et(this,Je),(Lt=ze.call(this,Oe,ot)).bindPointRenderEvent(),Lt.bindSceneEvent(),Lt.bindMidPointRenderEvent(),Lt.bindLineRenderEvent(),Lt.bindPolygonRenderEvent(),Lt}return jn(Je,[{key:"getDefaultOptions",value:function(Oe){var ot=lt(lt({},Os($i(Je.prototype),"getDefaultOptions",this).call(this,Oe)),{},{showMidPoint:!1,circleSteps:60});return ot.distanceOptions&&(ot.distanceOptions.showTotalDistance=!0,ot.distanceOptions.showOnRadius===void 0&&(ot.distanceOptions.showOnRadius=!0)),ot.helper&&(ot.helper=lt(lt({},ot.helper),Ys)),ot}},{key:"getDistanceTexts",value:function(){var Oe=this.options.distanceOptions;if(!Oe)return[];var ot=[],Lt=Oe.showWhen,nn=Oe.showDashDistance,Fn=Oe.format,Kn=Oe.showTotalDistance;return ot.push.apply(ot,no(this.getDashLineDistanceTexts(this.getDashLineData(),{showTotalDistance:!0,format:Fn,showDashDistance:nn})).concat(no(this.getLineDistanceTexts(this.getLineData(),{showTotalDistance:Kn,format:Fn,showWhen:Lt})))),ot}},{key:"setData",value:function(Oe){var ot=this,Lt=Oe.map(function(nn){var Fn,Kn,Mi;nn.properties=lt(lt({},et()),nn.properties);var Yo=(Fn=nn.properties)===null||Fn===void 0?void 0:Fn.nodes;if(((Kn=Yo)===null||Kn===void 0?void 0:Kn.length)!==2){var Lo=pa(Ba(nn).geometry.coordinates,2),Bo=Lo[0],zu=Lo[1],gu=Ml(nn),Gl=gu[2],Sl=(gu[1]+gu[3])/2;Yo=[hn([Bo,zu]),hn([Gl,Sl])],nn.properties.nodes=Yo}var Kl=Yo[0],rl=Yo[1],Va=!!(!((Mi=nn.properties)===null||Mi===void 0)&&Mi.isActive),pu=nn.properties.line;return pu||(pu=ot.handleCreatePolygonLine(Kl,rl,{isActive:Va}),nn.properties.line=pu),ot.handleCreatePolygon([Kl,rl],pu,lt(lt({},nn.properties),{},{isActive:Va}))});this.source.setData({point:[],midPoint:[],dashLine:[],polygon:Lt,line:Lt.map(function(nn){return nn.properties.line})}),this.setTextData(this.getAllTexts()),this.editPolygon&&this.setActivePolygon(this.editPolygon)}},{key:"handleCreatePolygonLine",value:function(Oe,ot){var Lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},nn=this.getBoundaryPositions(Oe,ot).map(function(Fn){return hn(Fn)});return Lr(nn,Lt)}},{key:"syncPolygonNodes",value:function(Oe,ot){var Lt=Oe.properties.line,nn=this.getBoundaryPositions(ot[0],ot[1]);return Oe.properties.nodes=ot,Oe.geometry.coordinates=[nn],this.setPolygonData(function(Fn){return Fn.map(function(Kn){return Gs(Kn,Oe)?Oe:Kn})}),this.setPointData(Oe.properties.isDraw?[ot[0]]:ot),Lt.properties.nodes.forEach(function(Fn,Kn){Fn.geometry.coordinates=nn[Kn]}),Lt.geometry.coordinates=nn,Oe}},{key:"onLineDragging",value:function(Oe){var ot=this.dragPolygon,Lt=pa(this.previousPosition,2),nn=Lt[0],Fn=Lt[1],Kn=Os($i(Je.prototype),"onLineDragging",this).call(this,Oe);if(ot){var Mi=pa(Ql(Oe),2),Yo=Mi[0],Lo=Mi[1];ot.properties.nodes.forEach(function(Bo){var zu=pa(Bo.geometry.coordinates,2);Bo.geometry.coordinates=[zu[0]+Yo-nn,zu[1]+Lo-Fn]}),this.syncPolygonNodes(ot,ot.properties.nodes),this.setActivePolygon(ot,{isDrag:!0}),this.emit(y.DrawEvent.Dragging,ot,this.getPolygonData())}return Kn}},{key:"getBoundaryPositions",value:function(Oe,ot){for(var Lt=this.options.circleSteps,nn=Ja(Oe,ot,{units:"meters"}),Fn=[],Kn=0;Lt>Kn;Kn++)Fn.push(wd(Oe,nn,-360*Kn/Lt,{units:"meters"}).geometry.coordinates);return Fn.push(Fn[0]),Fn}}]),Je}(hc),Oo=function(be){Ti(Je,be);var ze=ks(Je);function Je(Oe,ot){var Lt;return Et(this,Je),(Lt=ze.call(this,Oe,ot)).drawLineFinish=function(){var nn,Fn=Lt.drawLine,Kn=(nn=Fn==null?void 0:Fn.properties.nodes)!==null&&nn!==void 0?nn:[];if(Fn&&(Kn==null?void 0:Kn.length)>1){Lt.setActiveLine(Fn);var Mi=Lt.options,Yo=Mi.autoActive,Lo=Mi.editable;Yo&&Lo||Lt.handleLineUnClick(Fn),Lt.setHelper(Lo&&Yo?"pointHover":Lt.addable?"draw":null),Lt.emit(y.DrawEvent.Add,Fn,Lt.getLineData())}},Lt.sceneRender.on(y.RenderEvent.DblClick,Lt.drawLineFinish),Lt.bindPointRenderEvent(),Lt.bindSceneEvent(),Lt.bindMidPointRenderEvent(),Lt.bindLineRenderEvent(),Lt}return jn(Je,[{key:"dragItem",get:function(){return this.dragLine}},{key:"editItem",get:function(){return this.editLine}},{key:"getMainLayer",value:function(){var Oe,ot;return(Oe=(ot=this.render.line)===null||ot===void 0?void 0:ot.getLayers())!==null&&Oe!==void 0?Oe:[]}},{key:"setData",value:function(Oe){var ot=Oe.map(function(Lt){var nn,Fn;return Lt.properties=lt(lt({},Me()),(nn=Lt.properties)!==null&&nn!==void 0?nn:{}),!((Fn=Lt.properties.nodes)===null||Fn===void 0)&&Fn.length||(Lt.properties.nodes=Ki(Lt).map(function(Kn){return hn(Kn)})),Lt});this.source.setData({point:[],midPoint:[],dashLine:[],line:ot}),this.setTextData(this.getAllTexts()),this.editLine&&this.setActiveLine(this.editLine)}},{key:"getData",value:function(){return this.getLineData()}},{key:"getRenderTypes",value:function(){return["line","dashLine","midPoint","point","text"]}},{key:"bindPointRenderEvent",value:function(){var Oe;Os($i(Je.prototype),"bindPointRenderEvent",this).call(this),(Oe=this.pointRender)===null||Oe===void 0||Oe.on(y.RenderEvent.Contextmenu,this.onPointContextMenu.bind(this))}},{key:"onPointClick",value:function(Oe){var ot,Lt=this,nn=this.drawLine,Fn=(ot=nn==null?void 0:nn.properties.nodes)!==null&&ot!==void 0?ot:[],Kn=Oe.feature;if(Gs(Kn,Fs(Fn)))requestAnimationFrame(function(){Lt.drawLineFinish()});else{var Mi=pa(Kn.geometry.coordinates,2);Oe.lngLat={lng:Mi[0],lat:Mi[1]},this.onPointCreate(Oe)}}},{key:"removeNode",value:function(Oe,ot){var Lt,nn=this.getTargetFeature(ot),Fn=this.getTargetFeature(Oe,(Lt=nn==null?void 0:nn.properties.nodes)!==null&&Lt!==void 0?Lt:[]);if(nn&&Fn){var Kn,Mi=(Kn=nn==null?void 0:nn.properties.nodes)!==null&&Kn!==void 0?Kn:[];if(3>Mi.length)return;this.syncLineNodes(nn,Mi.filter(function(Yo){return!Gs(Fn,Yo)})),this.emit(y.DrawEvent.RemoveNode,Fn,nn,this.getLineData()),this.emit(y.DrawEvent.Edit,nn,this.getLineData())}}},{key:"onPointContextMenu",value:function(Oe){var ot,Lt=this.editLine,nn=Oe.feature,Fn=(ot=Lt==null?void 0:Lt.properties.nodes)!==null&&ot!==void 0?ot:[];if(Lt&&Fn.length>=3)return this.removeNode(nn,Lt),this.scene.setMapStatus({dragEnable:!0}),nn}},{key:"onPointCreate",value:function(Oe){if(this.addable){var ot=Os($i(Je.prototype),"onPointCreate",this).call(this,Oe);return ot&&(this.setHelper("drawFinish"),this.emit(y.DrawEvent.AddNode,ot,this.drawLine,this.getLineData())),ot}}},{key:"onPointDragEnd",value:function(Oe){var ot=this.editLine,Lt=Os($i(Je.prototype),"onPointDragEnd",this).call(this,Oe);return ot&&Lt&&this.emit(y.DrawEvent.Edit,ot,this.getLineData()),Lt}},{key:"onLineDragStart",value:function(Oe){var ot=Os($i(Je.prototype),"onLineDragStart",this).call(this,Oe);return ot&&this.emit(y.DrawEvent.DragStart,ot,this.getLineData()),ot}},{key:"onLineDragging",value:function(Oe){var ot=Os($i(Je.prototype),"onLineDragging",this).call(this,Oe);return ot&&this.emit(y.DrawEvent.Dragging,ot,this.getLineData()),ot}},{key:"onLineDragEnd",value:function(Oe){var ot=Os($i(Je.prototype),"onLineDragEnd",this).call(this,Oe);return ot&&(this.emit(y.DrawEvent.DragEnd,ot,this.getLineData()),this.emit(y.DrawEvent.Edit,ot,this.getLineData())),ot}},{key:"onMidPointClick",value:function(Oe){var ot=this.editLine,Lt=Os($i(Je.prototype),"onMidPointClick",this).call(this,Oe);return ot&&Lt&&(this.emit(y.DrawEvent.Edit,ot,this.getLineData()),this.emit(y.DrawEvent.AddNode,Lt,ot,this.getLineData())),Lt}},{key:"onSceneMouseMove",value:function(Oe){var ot=this.drawLine;if(ot){var Lt,nn=Fs(ot.properties.nodes),Fn=Ql(Oe);this.options.adsorbOptions&&(Fn=(Lt=this.getAdsorbPosition(Fn))!==null&&Lt!==void 0?Lt:Fn),this.setDashLineData([Cn([Fn,nn.geometry.coordinates])]),this.setTextData(this.getAllTexts())}}},{key:"setActiveFeature",value:function(Oe){var ot=this.getTargetFeature(Oe);ot?this.setActiveLine(ot):this.clearActiveLine()}},{key:"resetFeatures",value:function(){var Oe=this.getLineData();this.drawLine&&(Oe=Oe.filter(function(ot){return!ot.properties.isDraw}),this.source.setData({point:[],dashLine:[],midPoint:[]}),this.setTextData(function(ot){return ot.filter(function(Lt){return!Lt.properties.isActive})})),this.editLine&&this.handleLineUnClick(this.editLine),this.setLineData(Oe.map(function(ot){return ot.properties=lt(lt({},ot.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),ot}))}},{key:"enablePointRenderAction",value:function(){var Oe;Os($i(Je.prototype),"enablePointRenderAction",this).call(this),this.options.editable&&((Oe=this.pointRender)===null||Oe===void 0||Oe.enableContextMenu())}},{key:"disablePointRenderAction",value:function(){var Oe;Os($i(Je.prototype),"disablePointRenderAction",this).call(this),(Oe=this.pointRender)===null||Oe===void 0||Oe.disableContextMenu()}},{key:"bindEnableEvent",value:function(){Os($i(Je.prototype),"bindEnableEvent",this).call(this),this.enableSceneRenderAction(),this.enablePointRenderAction(),this.enableLineRenderAction(),this.enableMidPointRenderAction(),this.sceneRender.enableDblClick()}},{key:"unbindEnableEvent",value:function(){Os($i(Je.prototype),"unbindEnableEvent",this).call(this),this.disableSceneRenderAction(),this.disablePointRenderAction(),this.disableLineRenderAction(),this.disableMidPointRenderAction(),this.sceneRender.disableDblClick()}},{key:"bindThis",value:function(){Os($i(Je.prototype),"bindThis",this).call(this),this.bindPointRenderEvent=this.bindPointRenderEvent.bind(this),this.bindSceneEvent=this.bindSceneEvent.bind(this),this.bindLineRenderEvent=this.bindLineRenderEvent.bind(this),this.bindMidPointRenderEvent=this.bindMidPointRenderEvent.bind(this)}}]),Je}(ml),Wd=function(be){Ti(Je,be);var ze=ks(Je);function Je(Oe,ot){var Lt;return Et(this,Je),(Lt=ze.call(this,Oe,ot)).bindPointRenderEvent(),Lt}return jn(Je,[{key:"dragItem",get:function(){return this.dragPoint}},{key:"editItem",get:function(){return this.editPoint}},{key:"getDefaultOptions",value:function(Oe){var ot=lt(lt({},this.getCommonOptions(Oe)),{},{helper:hs(sr),initialData:Oe.initialData});return ot.style.point=pc,ot}},{key:"bindEnableEvent",value:function(){Os($i(Je.prototype),"bindEnableEvent",this).call(this),this.enablePointRenderAction()}},{key:"unbindEnableEvent",value:function(){Os($i(Je.prototype),"unbindEnableEvent",this).call(this),this.disablePointRenderAction()}},{key:"getRenderTypes",value:function(){return["point"]}},{key:"getMainLayer",value:function(){var Oe,ot;return(Oe=(ot=this.render.point)===null||ot===void 0?void 0:ot.getLayers())!==null&&Oe!==void 0?Oe:[]}},{key:"setData",value:function(Oe){this.setPointData(Oe.map(function(ot){var Lt;return ot.properties=lt(lt({},Le()),(Lt=ot.properties)!==null&&Lt!==void 0?Lt:{}),ot}))}},{key:"getData",value:function(){return this.getPointData()}},{key:"onPointCreate",value:function(Oe){if(this.addable){var ot=Os($i(Je.prototype),"onPointCreate",this).call(this,Oe);if(ot)return this.options.editable&&this.setHelper("pointHover"),this.emit(y.DrawEvent.Add,ot,this.getData()),ot}else this.setPointData(function(Lt){return Lt.map(function(nn){return nn.properties=lt(lt({},nn.properties),{},{isHover:!1,isActive:!1}),nn})})}},{key:"onPointMouseMove",value:function(Oe){var ot=Os($i(Je.prototype),"onPointMouseMove",this).call(this,Oe);return this.options.editable&&!this.dragPoint&&this.setHelper("pointHover"),ot}},{key:"onPointMouseOut",value:function(Oe){var ot=Os($i(Je.prototype),"onPointMouseOut",this).call(this,Oe);return this.setHelper(this.addable?"draw":null),ot}},{key:"onPointDragStart",value:function(Oe){var ot=Os($i(Je.prototype),"onPointDragStart",this).call(this,Oe);return this.setHelper("pointDrag"),this.emit(y.DrawEvent.DragStart,ot,this.getData()),ot}},{key:"onPointDragging",value:function(Oe){var ot=Os($i(Je.prototype),"onPointDragging",this).call(this,Oe);return ot&&this.options.editable&&this.emit(y.DrawEvent.Dragging,ot,this.getData()),ot}},{key:"onPointDragEnd",value:function(Oe){var ot=Os($i(Je.prototype),"onPointDragEnd",this).call(this,Oe);return ot&&this.options.editable&&(this.setHelper("pointHover"),this.emit(y.DrawEvent.DragEnd,ot,this.getData()),this.emit(y.DrawEvent.Edit,ot,this.getData())),ot}},{key:"bindThis",value:function(){Os($i(Je.prototype),"bindThis",this).call(this),this.bindPointRenderEvent=this.bindPointRenderEvent.bind(this)}},{key:"onSceneMouseMove",value:function(Oe){}},{key:"setActiveFeature",value:function(Oe){var ot=this.getTargetFeature(Oe);this.setPointData(function(Lt){return Lt.map(function(nn){return nn.properties.isActive=Gs(ot,nn),nn})})}},{key:"resetFeatures",value:function(){this.setPointData(function(Oe){return Oe.map(function(ot){return ot.properties=lt(lt({},ot.properties),{},{isDrag:!1,isActive:!1,isHover:!1}),ot})})}}]),Je}(gs),fd=function(be){Ti(Je,be);var ze=ks(Je);function Je(Oe,ot){var Lt;return Et(this,Je),(Lt=ze.call(this,Oe,ot)).drawPolygonFinish=function(){var nn,Fn=Lt.drawPolygon,Kn=(nn=Fn==null?void 0:Fn.properties.nodes)!==null&&nn!==void 0?nn:[];if(Fn&&Kn.length>=3){Fn.properties.isDraw=!1,Lt.syncPolygonNodes(Fn,Kn),Lt.setActivePolygon(Fn);var Mi=Lt.options,Yo=Mi.autoActive,Lo=Mi.editable;Yo&&Lo||Lt.handlePolygonUnClick(Fn),Lt.setHelper(Lo?Yo?"pointHover":"polygonHover":Lt.addable?"draw":null),Lt.emit(y.DrawEvent.Add,Fn,Lt.getPolygonData())}},Lt.sceneRender.on(y.RenderEvent.DblClick,Lt.drawPolygonFinish),Lt.bindPointRenderEvent(),Lt.bindSceneEvent(),Lt.bindMidPointRenderEvent(),Lt.bindLineRenderEvent(),Lt.bindPolygonRenderEvent(),Lt}return jn(Je,[{key:"getDefaultOptions",value:function(Oe){return lt(lt({},Os($i(Je.prototype),"getDefaultOptions",this).call(this,Oe)),{},{liveUpdate:!1})}},{key:"setData",value:function(Oe){var ot=Oe.map(function(Lt){var nn,Fn;if(Lt.properties=lt(lt({},et()),(nn=Lt.properties)!==null&&nn!==void 0?nn:{}),!(!((Fn=Lt.properties.nodes)===null||Fn===void 0)&&Fn.length)){var Kn=Ki(Lt);Kn=Kn.slice(0,Kn.length-1),Lt.properties.nodes=Kn.map(function(Yo){return hn(Yo)})}if(!Lt.properties.line){var Mi=Lt.properties.nodes;Lt.properties.line=Lr([].concat(no(Mi),[hn(su(Mi).geometry.coordinates)]))}return Lt});this.source.setData({point:[],midPoint:[],dashLine:[],polygon:ot,line:ot.map(function(Lt){return Lt.properties.line})}),this.setTextData(this.getAllTexts()),this.editPolygon&&this.setActivePolygon(this.editPolygon)}},{key:"onPointCreate",value:function(Oe){if(this.addable&&!this.dragPoint){var ot=Os($i(Je.prototype),"onPointCreate",this).call(this,Oe),Lt=this.drawPolygon,nn=this.drawLine;return ot&&(Lt?(this.syncPolygonNodes(Lt,[].concat(no(Lt.properties.nodes),[ot])),this.setDashLineData([Cn([Ql(Oe),Lt.properties.nodes[0].geometry.coordinates])]),Lt.properties.nodes.length>1&&this.setHelper("drawFinish")):nn&&(this.handleCreatePolygon([ot],nn),this.setHelper("drawContinue")),this.emit(y.DrawEvent.AddNode,ot,Lt,this.getPolygonData())),ot}}},{key:"onPointClick",value:function(Oe){var ot=this,Lt=this.drawPolygon,nn=Oe.feature;if(Lt){var Fn=Lt.properties.nodes;if(Fn.length<3||!Gs(su(Fn),nn)&&!Gs(Fs(Fn),nn)){var Kn=pa(nn.geometry.coordinates,2);Oe.lngLat={lng:Kn[0],lat:Kn[1]},this.onPointCreate(Oe)}else requestAnimationFrame(function(){ot.drawPolygonFinish()})}}},{key:"onPointDragging",value:function(Oe){var ot=this.dragPoint,Lt=this.editPolygon;if(ot&&Lt){var nn=Lt.properties.line;nn.properties.nodes=nn.properties.nodes.map(function(zu){return Gs(zu,ot)?ot:zu});var Fn=nn.properties.nodes,Kn=Fn.slice(0,Fn.length-1),Mi=su(Fn),Yo=Fs(Fn),Lo=Gs(Mi,ot)||Gs(Yo,ot);if(Lo&&(Mi.geometry.coordinates=Yo.geometry.coordinates=Ql(Oe)),this.options.adsorbOptions&&Lo){var Bo=this.resetAdsorbLngLat(Oe);Bo&&(Mi.geometry.coordinates=Yo.geometry.coordinates=Bo)}Os($i(Je.prototype),"onPointDragging",this).call(this,Oe),this.syncPolygonNodes(Lt,Kn),this.setActivePolygon(Lt)}return ot}},{key:"onLineDragging",value:function(Oe){var ot=this.dragPolygon,Lt=Os($i(Je.prototype),"onLineDragging",this).call(this,Oe);if(Lt&&ot){var nn=Lt.properties.nodes;this.syncPolygonNodes(ot,nn.slice(0,nn.length-1)),this.emit(y.DrawEvent.Dragging,ot,this.getPolygonData())}return Lt}},{key:"onMidPointClick",value:function(Oe){var ot=Os($i(Je.prototype),"onMidPointClick",this).call(this,Oe),Lt=this.editPolygon;return ot&&Lt&&(this.emit(y.DrawEvent.Edit,Lt,this.getPolygonData()),this.emit(y.DrawEvent.AddNode,ot,Lt,this.getPolygonData())),ot}},{key:"onSceneMouseMove",value:function(Oe){var ot,Lt=this.drawPolygon,nn=(ot=Lt==null?void 0:Lt.properties.nodes)!==null&&ot!==void 0?ot:[];if(Lt&&nn.length){this.options.adsorbOptions&&this.resetAdsorbLngLat(Oe);var Fn=Ql(Oe),Kn=[];if(Kn.push(Cn([Fn,su(nn).geometry.coordinates])),nn.length>1&&Kn.push(Cn([Fn,Fs(nn).geometry.coordinates])),this.options.liveUpdate&&nn.length>=2){var Mi=Ki(qi(nn));Lt.geometry.coordinates=[[].concat(no(Mi),[Fn,Mi[0]])],this.setPolygonData(this.getPolygonData())}this.setDashLineData(Kn),this.setTextData(this.getAllTexts())}}},{key:"removeNode",value:function(Oe,ot){var Lt,nn=this.getTargetFeature(ot),Fn=this.getTargetFeature(Oe,(Lt=nn==null?void 0:nn.properties.nodes)!==null&&Lt!==void 0?Lt:[]);if(nn&&Fn){var Kn,Mi=(Kn=nn==null?void 0:nn.properties.nodes)!==null&&Kn!==void 0?Kn:[];if(4>Mi.length)return;this.syncPolygonNodes(nn,Mi.filter(function(Yo){return!Gs(Fn,Yo)})),this.emit(y.DrawEvent.RemoveNode,Fn,nn,this.getLineData()),this.emit(y.DrawEvent.Edit,nn,this.getPolygonData())}}},{key:"onPointContextMenu",value:function(Oe){var ot,Lt=this.editPolygon,nn=Oe.feature,Fn=(ot=Lt==null?void 0:Lt.properties.nodes)!==null&&ot!==void 0?ot:[];if(Lt&&Fn.length>=4)return Fn.find(function(Kn){return Gs(Kn,nn)})||(nn=Fn[0]),this.removeNode(nn,Lt),nn}},{key:"bindPointRenderEvent",value:function(){var Oe;Os($i(Je.prototype),"bindPointRenderEvent",this).call(this),(Oe=this.pointRender)===null||Oe===void 0||Oe.on(y.RenderEvent.Contextmenu,this.onPointContextMenu.bind(this))}},{key:"enablePointRenderAction",value:function(){var Oe;Os($i(Je.prototype),"enablePointRenderAction",this).call(this),this.options.editable&&((Oe=this.pointRender)===null||Oe===void 0||Oe.enableContextMenu())}},{key:"disablePointRenderAction",value:function(){var Oe;Os($i(Je.prototype),"disablePointRenderAction",this).call(this),(Oe=this.pointRender)===null||Oe===void 0||Oe.disableContextMenu()}}]),Je}(mu),lp=function(be){Ti(Je,be);var ze=ks(Je);function Je(Oe,ot){var Lt;return Et(this,Je),(Lt=ze.call(this,Oe,ot)).bindPointRenderEvent(),Lt.bindSceneEvent(),Lt.bindMidPointRenderEvent(),Lt.bindLineRenderEvent(),Lt.bindPolygonRenderEvent(),Lt}return jn(Je,[{key:"getDefaultOptions",value:function(Oe){var ot=Os($i(Je.prototype),"getDefaultOptions",this).call(this,Oe);return ot.helper&&(ot.helper=lt(lt({},ot.helper),Pl)),ot}},{key:"setData",value:function(Oe){var ot=this,Lt=Oe.map(function(nn){var Fn,Kn,Mi;nn.properties=lt(lt({},et()),(Fn=nn.properties)!==null&&Fn!==void 0?Fn:{});var Yo=nn.properties.nodes;if(((Kn=Yo)===null||Kn===void 0?void 0:Kn.length)!==2){var Lo=pa(Ml(nn),4),Bo=Lo[2],zu=Lo[3];Yo=[hn([Lo[0],Lo[1]]),hn([Bo,zu])],nn.properties.nodes=Yo}var gu=pa(Yo,2),Gl=gu[0],Sl=gu[1],Kl=!!(!((Mi=nn.properties)===null||Mi===void 0)&&Mi.isActive),rl=nn.properties.line;return rl||(rl=ot.handleCreatePolygonLine(Gl,Sl,{isActive:Kl}),nn.properties.line=rl),ot.handleCreatePolygon([Gl,Sl],rl,lt(lt({},nn.properties),{},{isActive:Kl}))});this.source.setData({point:[],midPoint:[],dashLine:[],polygon:Lt,line:Lt.map(function(nn){return nn.properties.line})}),this.setTextData(this.getAllTexts()),this.editPolygon&&this.setActivePolygon(this.editPolygon)}},{key:"handleCreatePolygonLine",value:function(Oe,ot){var Lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},nn=Ki(Fu(qi([Oe,ot]))).map(function(Fn,Kn){return Kn===0?Oe:Kn===2?ot:hn(Fn)});return Lr(nn,Lt)}},{key:"syncPolygonNodes",value:function(Oe,ot){var Lt=Oe.properties.line,nn=Ki(Fu(qi(ot)));Oe.properties.nodes=ot,Oe.geometry.coordinates=[nn],this.setPolygonData(function(Mi){return Mi.map(function(Yo){return Gs(Yo,Oe)?Oe:Yo})}),this.setPointData(Oe.properties.isDraw?[ot[0]]:ot);var Fn=Lt.properties.nodes,Kn=nn.filter(function(Mi){return!Ai(Mi,ot[0].geometry.coordinates)&&!Ai(Mi,ot[1].geometry.coordinates)});return Fn.forEach(function(Mi,Yo){var Lo=[0,0];switch(Yo){case 0:Lo=ot[0].geometry.coordinates;break;case 1:Lo=Kn[0];break;case 2:Lo=ot[1].geometry.coordinates;break;case 3:Lo=Kn[1];break;case 4:Lo=hs(ot[0].geometry.coordinates)}Mi.geometry.coordinates=Lo}),Lt.geometry.coordinates=nn,Oe}},{key:"onLineDragging",value:function(Oe){var ot=Os($i(Je.prototype),"onLineDragging",this).call(this,Oe),Lt=this.dragPolygon;if(ot&&Lt){var nn=Lt.properties.line.properties.nodes;this.syncPolygonNodes(Lt,[nn[0],nn[2]]),this.setActivePolygon(Lt,{isDrag:!0}),this.emit(y.DrawEvent.Dragging,Lt,this.getPolygonData())}return ot}}]),Je}(hc),Qp=function(be,ze){for(var Je=be;Je&&!Array.from(Je.classList).includes(ze);)Je=Je.parentElement;return Je},Xg={point:"#l7draw-point",line:"#l7draw-line",polygon:"#l7draw-polygon",rect:"#l7draw-rect",circle:"#l7draw-circle",clear:"#l7draw-qingkong"},Pm={point:Wd,line:Oo,polygon:fd,rect:lp,circle:cd},Rm="data-draw-type",Vm="l7-draw-control",Eg="".concat(Vm,"__btn"),wm="".concat(Eg,"--active");(function(be){var ze,Je,Oe,ot,Lt,nn='',Fn=(Fn=document.getElementsByTagName("script"))[Fn.length-1].getAttribute("data-injectcss");if(Fn&&!be.__iconfont__svg__cssinject__){be.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(Mi){console&&console.log(Mi)}}function Kn(){Lt||(Lt=!0,Oe())}ze=function(){var Mi,Yo=document.createElement("div");Yo.innerHTML=nn,nn=null,(Yo=Yo.getElementsByTagName("svg")[0])&&(Yo.setAttribute("aria-hidden","true"),Yo.style.position="absolute",Yo.style.width=0,Yo.style.height=0,Yo.style.overflow="hidden",(Mi=document.body).firstChild?function(Lo,Bo){Bo.parentNode.insertBefore(Lo,Bo)}(Yo,Mi.firstChild):Mi.appendChild(Yo))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(ze,0):(Je=function(){document.removeEventListener("DOMContentLoaded",Je,!1),ze()},document.addEventListener("DOMContentLoaded",Je,!1)):document.attachEvent&&(Oe=ze,ot=be.document,Lt=!1,function Mi(){try{ot.documentElement.doScroll("left")}catch(Yo){return void setTimeout(Mi,50)}Kn()}(),ot.onreadystatechange=function(){ot.readyState=="complete"&&(ot.onreadystatechange=null,Kn())})})(window),Qo(".l7-draw-control{display:flex;overflow:hidden;background:#fff;border-radius:2px;box-shadow:0 0 20px rgba(0,0,0,.14901960784313725)}.l7-draw-control__btn{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;text-align:center;background:transparent;border-width:0;border-right:1px solid #e0e0e0;outline:0;cursor:pointer}.l7-draw-control__btn:hover{background-color:#e5e5e5}.l7-draw-control__btn:last-child{border-right:0;border-bottom:0}.l7-draw-control__btn .l7-draw-icon{width:26px;height:26px;overflow:hidden;fill:currentColor}.l7-draw-control__btn--active svg{color:#0370fe}");var cm=function(be){Ti(Je,be);var ze=ks(Je);function Je(Oe){var ot,Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Et(this,Je),(ot=ze.call(this,Lt)).controlOption=void 0,ot.sceneInstance=void 0,ot.drawMap={},ot.btnMap={},ot.activeType=null,ot.emitDataChange=D(function(){ot.emit(y.ControlEvent.DataChange,ot.getDrawData())},16),ot.emitDrawSelect=function(nn,Fn){ot.emit(y.ControlEvent.DrawSelect,nn,Fn)},ot.sceneInstance=Oe,ot.controlOption=lt(lt({},ot.getDefault()),Lt||{}),ot.onBtnClick=ot.onBtnClick.bind(us(ot)),ot}return jn(Je,[{key:"getActiveType",value:function(){return this.activeType}},{key:"getDefault",value:function(){return lt(lt({},Os($i(Je.prototype),"getDefault",this).call(this)),{},{className:"",buttonClassName:"",activeButtonClassName:"",style:"",position:"topleft",commonDrawOptions:{},drawConfig:{point:!0,line:!0,polygon:!0,rect:!0,circle:!0,clear:!0}})}},{key:"addTo",value:function(Oe){return Os($i(Je.prototype),"addTo",this).call(this,Oe),this.init(),this}},{key:"onAdd",value:function(){var Oe=this.controlOption,ot=Oe.className,Lt=Oe.style,nn=I.DOM.create("div","".concat(Vm," ").concat(ot));return Lt&&nn.setAttribute("style",Lt),nn}},{key:"onRemove",value:function(){Object.values(this.drawMap).forEach(function(Oe){Oe.clear(!0)})}},{key:"init",value:function(){var Oe,ot=this,Lt=[];Object.entries(this.controlOption.drawConfig).forEach(function(nn){var Fn=pa(nn,2),Kn=Fn[0],Mi=Fn[1];if(Mi){var Yo=ot.initBtn(Kn);Yo.addEventListener("click",ot.onBtnClick),Lt.push(Yo),ot.btnMap[Kn]=Yo;var Lo=Pm[Kn];if(Lo&&ot.sceneInstance){var Bo=new Lo(ot.sceneInstance,lt(lt({},ot.controlOption.commonDrawOptions),typeof Mi=="boolean"?{}:Mi));Bo.on(y.DrawEvent.Change,ot.emitDataChange),Bo.on(y.DrawEvent.Select,function(zu){ot.emitDrawSelect(Kn,zu)}),ot.drawMap[Kn]=Bo}}}),(Oe=this.container).append.apply(Oe,Lt),this.controlOption.defaultActiveType&&this.onDrawClick(this.controlOption.defaultActiveType)}},{key:"getDrawData",value:function(){return Ls(va(this.drawMap).map(function(Oe){var ot=pa(Oe,2);return[ot[0],ot[1].getData()]}))}},{key:"getTypeDraw",value:function(Oe){var ot;return(ot=this.drawMap[Oe])!==null&&ot!==void 0?ot:null}},{key:"onBtnClick",value:function(Oe){var ot=Qp(Oe.target,Eg);if(ot){var Lt=ot.getAttribute(Rm);Lt==="clear"?this.clearDrawData():this.onDrawClick(Lt)}}},{key:"setActiveType",value:function(Oe){var ot=null,Lt=this.activeType;if(Lt){var nn,Fn=this.btnMap[Lt];if(Fn){I.DOM.removeClass(Fn,wm);var Kn=this.controlOption.activeButtonClassName;Kn&&I.DOM.removeClass(Fn,Kn)}(nn=this.drawMap[Lt])===null||nn===void 0||nn.disable(),ot=null}if(Lt!==Oe&&Oe){var Mi;(Mi=this.drawMap[Oe])===null||Mi===void 0||Mi.enable();var Yo=this.btnMap[Oe];Yo&&I.DOM.addClass(Yo,"".concat(wm," ").concat(this.controlOption.activeButtonClassName)),ot=Oe}this.activeType=ot,this.emit(y.ControlEvent.DrawChange,ot)}},{key:"onDrawClick",value:function(Oe){this.setActiveType(Oe)}},{key:"clearDrawData",value:function(){Object.values(this.drawMap).forEach(function(Oe){Oe==null||Oe.clear()})}},{key:"initBtn",value:function(Oe){var ot=I.DOM.create("button","".concat(Eg," ").concat(this.controlOption.buttonClassName));return ot.innerHTML=``),ot.setAttribute(Rm,Oe),ot}}]),Je}(I.Control);y.ACTIVE_COLOR=ua,y.BaseMode=ka,y.CircleDrawer=cd,y.DEFAULT_ADSORB_CONFIG=vt,y.DEFAULT_AREA_OPTIONS=An,y.DEFAULT_COMMON_OPTIONS=Cl,y.DEFAULT_CURSOR_MAP=b,y.DEFAULT_DISTANCE_OPTIONS=dn,y.DEFAULT_HISTORY_CONFIG=Nn,y.DEFAULT_KEYBOARD_CONFIG=tt,y.DEFAULT_MID_POINT_STYLE=Iu,y.DEFAULT_NODE_NORMAL_STYLE=Bu,y.DEFAULT_NODE_STYLE=zc,y.DEFAULT_POINT_NORMAL_STYLE=Ll,y.DEFAULT_POINT_STYLE=pc,y.DEFAULT_POPUP_CONFIG=ht,y.DEFAULT_SOURCE_DATA=z,y.DEFAULT_STYLE=X,y.DEFAULT_TEXT_NORMAL_STYLE=Rd,y.DashLineRender=Np,y.DragPolygonMode=hc,y.DrawCircle=cd,y.DrawControl=cm,y.DrawLine=Oo,y.DrawPoint=Wd,y.DrawPolygon=fd,y.DrawRect=lp,y.LayerRender=Pd,y.LineDrawer=Oo,y.LineMode=ml,y.LineRender=F,y.MidPointMode=Xi,y.MidPointRender=q,y.NORMAL_COLOR=Uo,y.PointDrawer=Wd,y.PointMode=gs,y.PointRender=se,y.PolygonDrawer=fd,y.PolygonMode=mu,y.PolygonRender=Ue,y.RENDER_MAP=di,y.RectDrawer=lp,y.SceneRender=qt,y.Source=wa,y.TextRender=zn,y.calcAreaText=xa,y.calcDistanceTextsByLine=ps,y.createDashLine=Cn,y.createLineFeature=Lr,y.createPointFeature=hn,y.createPolygonFeature=ei,y.findMinIndex=ws,y.getAdsorbFeature=gr,y.getAdsorbLine=Ca,y.getAdsorbPoint=Ka,y.getDefaultLineProperties=Me,y.getDefaultPointProperties=Le,y.getDefaultPolygonProperties=et,y.getLineCenterPoint=Li,y.getLngLat=_l,y.getMapDom=Sa,y.getParentByClassName=Qp,y.getPosition=Ql,y.getSingleColorStyle=function(be){return{point:{normal:{color:be},hover:{color:be},active:{color:be}},line:{normal:{color:be},hover:{color:be},active:{color:be}},polygon:{normal:{color:be},hover:{color:be},active:{color:be},style:{opacity:.2}},text:{normal:{color:be},active:{color:be}},midPoint:{normal:{color:be}},dashLine:{normal:{color:be}}}},y.getUuid=tu,y.isDev=!1,y.isSameFeature=Gs,y.resetEventLngLat=Du,y.splitByPosition=Ha,y.transLngLat2Position=Ju,y.updateTargetFeature=Gc,Object.defineProperty(y,"__esModule",{value:!0})})},5552:function(nt,V,m){"use strict";m.r(V),m.d(V,{AJAXError:function(){return as},AttributeType:function(){return Ld},BKDRHash:function(){return Nf},BMap:function(){return PV},BaseLayer:function(){return Xa},BaseMapService:function(){return Zx},BaseMapWrapper:function(){return WC},BaseModel:function(){return Su},BasePostProcessingPass:function(){return My},BlendType:function(){return Nh},ButtonControl:function(){return Y},CameraUniform:function(){return $b},CanvasLayer:function(){return bE},CanvasUpdateType:function(){return jf},CityBuildingLayer:function(){return SE},Control:function(){return v},CoordinateSystem:function(){return Qd},CoordinateUniform:function(){return rf},DOM:function(){return y},Earth:function(){return z7},EarthLayer:function(){return yW},ExportImage:function(){return el},FrequencyController:function(){return ts},Fullscreen:function(){return Oh},GaodeMap:function(){return KF},GaodeMapV1:function(){return $I},GaodeMapV2:function(){return KF},GeoLocate:function(){return Jf},GeometryLayer:function(){return l6},HeatmapLayer:function(){return d6},IDebugLog:function(){return pm},ILayerStage:function(){return Rl},ImageLayer:function(){return BM},InteractionEvent:function(){return fg},LRUCache:function(){return kf},LayerPopup:function(){return $0},LayerSwitch:function(){return ef},LineLayer:function(){return PE},LineTriangulation:function(){return Ut},LinearDir:function(){return Tc},LoadTileDataStatus:function(){return Df},Logo:function(){return Fl},Map:function(){return sT},MapServiceEvent:function(){return yC},MapTheme:function(){return yt},Mapbox:function(){return lL},Marker:function(){return N2},MarkerLayer:function(){return xC},MaskLayer:function(){return mO},MaskOperation:function(){return Ko},MouseLocation:function(){return Fo},PassType:function(){return Rf},PointFillTriangulation:function(){return Vt},PointLayer:function(){return R4},PolygonLayer:function(){return F4},PopperControl:function(){return Zn},Popup:function(){return _g},PositionType:function(){return go},RasterLayer:function(){return B4},RasterTileType:function(){return kv},Satistics:function(){return I},Scale:function(){return _c},ScaleTypes:function(){return n0},Scene:function(){return K7},SceneConifg:function(){return to},SceneEventList:function(){return Ew},SelectControl:function(){return Mo},SizeUnitType:function(){return Wh},Source:function(){return r0},SourceTile:function(){return Od},StencilType:function(){return nf},StyleScaleType:function(){return Wb},TYPES:function(){return gr},TextureBlend:function(){return xh},TileDebugLayer:function(){return fO},TilesetManager:function(){return yh},UpdateTileStrategy:function(){return Bc},Version:function(){return d0},Viewport:function(){return NI},WindLayer:function(){return AW},WorkerSourceMap:function(){return $r},Zoom:function(){return Ed},aProjectFlat:function(){return ku},amap2Project:function(){return dd},amap2UnProject:function(){return vd},anchorTranslate:function(){return Tt},anchorType:function(){return Ot},applyAnchorClass:function(){return bt},bBoxToBounds:function(){return id},bindAll:function(){return Eu},boundsContains:function(){return vh},calAngle:function(){return Xc},calDistance:function(){return Pf},calculateCentroid:function(){return Lh},calculatePointsCenterAndRadius:function(){return Sf},container:function(){return bv},createLayerContainer:function(){return Bb},createSceneContainer:function(){return qm},decodePickingColor:function(){return ti},djb2hash:function(){return uh},encodePickingColor:function(){return ji},executeWorkerTask:function(){return Rs},expandUrl:function(){return bd},extent:function(){return fu},flow:function(){return uf},formatImage:function(){return on},generateCatRamp:function(){return Gn},generateColorRamp:function(){return Tr},generateCustomRamp:function(){return Ln},generateLinearRamp:function(){return Qt},generateQuantizeRamp:function(){return yi},getAngle:function(){return jh},getArrayBuffer:function(){return Ci},getBBoxFromPoints:function(){return Cp},getCullFace:function(){return Ni},getDefaultDomain:function(){return tr},getImage:function(){return Wt},getJSON:function(){return Bi},getProtocolAction:function(){return Po},getReferrer:function(){return qa},getTileIndices:function(){return iu},getTileWarpXY:function(){return mp},getURLFromTemplate:function(){return $c},getWMTSURLFromTemplate:function(){return Hd},gl:function(){return Gi},guid:function(){return Th},isAndroid:function(){return vu},isColor:function(){return lo},isImageBitmap:function(){return Xs},isPC:function(){return au},isURLTemplate:function(){return Bf},isWorker:function(){return Ya},isiOS:function(){return ql},latitude:function(){return Kd},lazyInject:function(){return Cw},lazyMultiInject:function(){return QS},lineAtOffset:function(){return Vf},lineAtOffsetAsyc:function(){return yf},lineStyleType:function(){return Cc},lngLatInExtent:function(){return gl},lngLatToMeters:function(){return Vc},lnglatDistance:function(){return Xd},lodashUtil:function(){return Ma},longitude:function(){return eh},makeXMLHttpRequestPromise:function(){return _o},metersToLngLat:function(){return zd},normalize:function(){return nd},osmLonLat2TileXY:function(){return Ih},osmTileXY2LonLat:function(){return of},packCircleVertex:function(){return F_},padBounds:function(){return jd},polygonFillTriangulation:function(){return Xt},postData:function(){return io},project:function(){return th},rgb2arr:function(){return Kr},sameOrigin:function(){return ln},setL7WorkerSource:function(){return Eo},tileToBounds:function(){return Ff},tranfrormCoord:function(){return lc},unProjectFlat:function(){return Fc},validateLngLat:function(){return ad},version:function(){return X7}});var y={};m.r(y),m.d(y,{DPR:function(){return ni},addClass:function(){return ms},addStyle:function(){return Ki},appendElementType:function(){return Ml},clearChildren:function(){return ul},create:function(){return qi},css2Style:function(){return ns},empty:function(){return ho},findParentElement:function(){return ja},getClass:function(){return Pc},getContainer:function(){return oa},getDiffRect:function(){return ca},getStyleList:function(){return ro},getViewPortScale:function(){return Qr},hasClass:function(){return $u},printCanvas:function(){return mr},remove:function(){return ta},removeClass:function(){return Ua},removeStyle:function(){return Ei},setChecked:function(){return Na},setClass:function(){return rc},setTransform:function(){return ss},setUnDraggable:function(){return Hl},splitWords:function(){return cs},triggerResize:function(){return $n},trim:function(){return Nl}});var I={};m.r(I),m.d(I,{getColumn:function(){return cf},getSatByColumn:function(){return Qc},max:function(){return Bh},mean:function(){return ed},min:function(){return Kf},mode:function(){return Vh},statMap:function(){return Kh},sum:function(){return sh}});var b={};m.r(b),m.d(b,{add:function(){return lu},adjoint:function(){return gu},clone:function(){return Fn},copy:function(){return Kn},create:function(){return nn},determinant:function(){return Gl},equals:function(){return Xu},exactEquals:function(){return _d},frob:function(){return cu},fromQuat:function(){return Rn},fromQuat2:function(){return G},fromRotation:function(){return xc},fromRotationTranslation:function(){return R},fromRotationTranslationScale:function(){return Ct},fromRotationTranslationScaleOrigin:function(){return jt},fromScaling:function(){return Qh},fromTranslation:function(){return Ao},fromValues:function(){return Mi},fromXRotation:function(){return hh},fromYRotation:function(){return Gd},fromZRotation:function(){return _},frustum:function(){return ur},getRotation:function(){return Qe},getScaling:function(){return ke},getTranslation:function(){return le},identity:function(){return Lo},invert:function(){return zu},lookAt:function(){return Da},mul:function(){return Nd},multiply:function(){return Sl},multiplyScalar:function(){return kc},multiplyScalarAndAdd:function(){return ac},ortho:function(){return Js},orthoNO:function(){return Zs},orthoZO:function(){return sl},perspective:function(){return hi},perspectiveFromFieldOfView:function(){return ko},perspectiveNO:function(){return zr},perspectiveZO:function(){return po},rotate:function(){return Va},rotateX:function(){return pu},rotateY:function(){return ic},rotateZ:function(){return od},scale:function(){return rl},set:function(){return Yo},str:function(){return jl},sub:function(){return Yt},subtract:function(){return Uu},targetTo:function(){return Ol},translate:function(){return Kl},transpose:function(){return Bo}});var z={};m.r(z),m.d(z,{add:function(){return fz},angle:function(){return CM},bezier:function(){return sX},ceil:function(){return gz},clone:function(){return Aw},copy:function(){return dz},create:function(){return z_},cross:function(){return cD},dist:function(){return cX},distance:function(){return bM},div:function(){return uX},divide:function(){return pz},dot:function(){return Ox},equals:function(){return lX},exactEquals:function(){return YN},floor:function(){return ZN},forEach:function(){return JN},fromValues:function(){return $g},hermite:function(){return oX},inverse:function(){return KN},len:function(){return hD},length:function(){return uD},lerp:function(){return o0},max:function(){return D1},min:function(){return e4},mul:function(){return qN},multiply:function(){return HN},negate:function(){return t4},normalize:function(){return $2},random:function(){return XN},rotateX:function(){return hb},rotateY:function(){return yz},rotateZ:function(){return n4},round:function(){return mz},scale:function(){return Ub},scaleAndAdd:function(){return z2},set:function(){return hz},sqrDist:function(){return W2},sqrLen:function(){return qv},squaredDistance:function(){return GN},squaredLength:function(){return xM},str:function(){return bz},sub:function(){return r4},subtract:function(){return UN},transformMat3:function(){return aX},transformMat4:function(){return dD},transformQuat:function(){return vz},zero:function(){return _z}});var k={},N={},w=function(p){return N[p]},A=function(p,u){N[p]=u},C=function(p){return k[p]},f=function(p,u){k[p]=u},S={},P={},W=34,ne=10,re=13;function ce(a){return new Function("d","return {"+a.map(function(p,u){return JSON.stringify(p)+": d["+u+'] || ""'}).join(",")+"}")}function pe(a,p){var u=ce(a);return function(c,l){return p(u(c),l,a)}}function he(a){var p=Object.create(null),u=[];return a.forEach(function(c){for(var l in c)l in p||u.push(p[l]=l)}),u}function fe(a,p){var u=a+"",c=u.length;return c9999?"+"+fe(a,6):fe(a,4)}function Ie(a){var p=a.getUTCHours(),u=a.getUTCMinutes(),c=a.getUTCSeconds(),l=a.getUTCMilliseconds();return isNaN(a)?"Invalid Date":Be(a.getUTCFullYear(),4)+"-"+fe(a.getUTCMonth()+1,2)+"-"+fe(a.getUTCDate(),2)+(l?"T"+fe(p,2)+":"+fe(u,2)+":"+fe(c,2)+"."+fe(l,3)+"Z":c?"T"+fe(p,2)+":"+fe(u,2)+":"+fe(c,2)+"Z":u||p?"T"+fe(p,2)+":"+fe(u,2)+"Z":"")}function We(a){var p=new RegExp('["'+a+` +\r]`),u=a.charCodeAt(0);function c(Ze,St){var Mt,Tn,kn=l(Ze,function(vr,wi){if(Mt)return Mt(vr,wi-1);Tn=vr,Mt=St?pe(vr,St):ce(vr)});return kn.columns=Tn||[],kn}function l(Ze,St){var Mt=[],Tn=Ze.length,kn=0,vr=0,wi,zo=Tn<=0,$o=!1;Ze.charCodeAt(Tn-1)===ne&&--Tn,Ze.charCodeAt(Tn-1)===re&&--Tn;function Ks(){if(zo)return P;if($o)return $o=!1,S;var La,vl=kn,Wl;if(Ze.charCodeAt(vl)===W){for(;kn++=Tn?zo=!0:(Wl=Ze.charCodeAt(kn++))===ne?$o=!0:Wl===re&&($o=!0,Ze.charCodeAt(kn)===ne&&++kn),Ze.slice(vl+1,La-1).replace(/""/g,'"')}for(;kn=200&&u.status<300||u.status===0)&&u.response!==null){var g=u.response;if(a.type==="json")try{g=JSON.parse(u.response)}catch(B){return p(B)}p(null,g,u.getResponseHeader("Cache-Control"),u.getResponseHeader("Expires"),u)}else{var T=new Blob([u.response],{type:u.getResponseHeader("Content-Type")});p(new as(u.status,u.statusText,c.toString(),T))}},u.cancel=u.abort,u.send(a.body),u}function _o(a){return new Promise(function(p,u){ge(a,function(c,l,g,T,B){c?u({err:c,data:null,xhr:B}):p({err:null,data:l,cacheControl:g,expires:T,xhr:B})})})}function ci(a,p){return ge(a,p)}var Bi=function(p,u){var c=Po(p.url)||ci;return c((0,xe.Z)((0,xe.Z)({},p),{},{type:"json"}),u)},Ci=function(p,u){var c=Po(p.url)||ci;return c((0,xe.Z)((0,xe.Z)({},p),{},{type:"arrayBuffer"}),u)},io=function(p,u){return ci((0,xe.Z)((0,xe.Z)({},p),{},{method:"POST"}),u)};function ln(a){var p=window.document.createElement("a");return p.href=a,p.protocol===window.document.location.protocol&&p.host===window.document.location.host}var Ve="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function _t(a,p){var u=new window.Image,c=window.URL||window.webkitURL;u.crossOrigin="anonymous",u.onload=function(){p(null,u),c.revokeObjectURL(u.src),u.onload=null,window.requestAnimationFrame(function(){u.src=Ve})},u.onerror=function(){return p(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var l=new Blob([new Uint8Array(a)],{type:"image/png"});u.src=a.byteLength?c.createObjectURL(l):Ve}function xt(a,p){var u=new Blob([new Uint8Array(a)],{type:"image/png"});createImageBitmap(u).then(function(c){p(null,c)}).catch(function(c){p(new Error("Could not load image because of ".concat(c.message,". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.")))})}var Wt=function(p,u,c){var l=function(T,B){if(T)u(T);else if(B){var Z=typeof createImageBitmap=="function",ee=c?c(B):B;Z?xt(ee,u):_t(ee,u)}};return p.type==="json"?Bi(p,l):Ci(p,l)},on=function(p,u){var c=typeof createImageBitmap=="function";c?xt(p,u):_t(p,u)},Ot=function(a){return a.CENTER="center",a.TOP="top",a["TOP-LEFT"]="top-left",a["TOP-RIGHT"]="top-right",a.BOTTOM="bottom",a["BOTTOM-LEFT"]="bottom-left",a["BOTTOM-RIGHT"]="bottom-right",a.LEFT="left",a.RIGHT="right",a}({}),Tt={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function bt(a,p,u){var c=a.classList;for(var l in Tt)Tt.hasOwnProperty(l)&&c.remove("l7-".concat(u,"-anchor-").concat(l));c.add("l7-".concat(u,"-anchor-").concat(p))}function Ht(a,p,u){a.prototype=p.prototype=u,u.constructor=a}function Wn(a,p){var u=Object.create(a.prototype);for(var c in p)u[c]=p[c];return u}function tn(){}var hr=.7,Zi=1/hr,Ri="\\s*([+-]?\\d+)\\s*",Pi="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Wo="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ys=/^#([0-9a-f]{3,8})$/,xn=new RegExp("^rgb\\("+[Ri,Ri,Ri]+"\\)$"),Hr=new RegExp("^rgb\\("+[Wo,Wo,Wo]+"\\)$"),Jr=new RegExp("^rgba\\("+[Ri,Ri,Ri,Pi]+"\\)$"),Yi=new RegExp("^rgba\\("+[Wo,Wo,Wo,Pi]+"\\)$"),xo=new RegExp("^hsl\\("+[Pi,Wo,Wo]+"\\)$"),na=new RegExp("^hsla\\("+[Pi,Wo,Wo,Pi]+"\\)$"),Un={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Ht(tn,wr,{copy:function(a){return Object.assign(new this.constructor,this,a)},displayable:function(){return this.rgb().displayable()},hex:Xn,formatHex:Xn,formatHsl:Mr,formatRgb:li,toString:li});function Xn(){return this.rgb().formatHex()}function Mr(){return br(this).formatHsl()}function li(){return this.rgb().formatRgb()}function wr(a){var p,u;return a=(a+"").trim().toLowerCase(),(p=ys.exec(a))?(u=p[1].length,p=parseInt(p[1],16),u===6?qr(p):u===3?new Vr(p>>8&15|p>>4&240,p>>4&15|p&240,(p&15)<<4|p&15,1):u===8?ii(p>>24&255,p>>16&255,p>>8&255,(p&255)/255):u===4?ii(p>>12&15|p>>8&240,p>>8&15|p>>4&240,p>>4&15|p&240,((p&15)<<4|p&15)/255):null):(p=xn.exec(a))?new Vr(p[1],p[2],p[3],1):(p=Hr.exec(a))?new Vr(p[1]*255/100,p[2]*255/100,p[3]*255/100,1):(p=Jr.exec(a))?ii(p[1],p[2],p[3],p[4]):(p=Yi.exec(a))?ii(p[1]*255/100,p[2]*255/100,p[3]*255/100,p[4]):(p=xo.exec(a))?pn(p[1],p[2]/100,p[3]/100,1):(p=na.exec(a))?pn(p[1],p[2]/100,p[3]/100,p[4]):Un.hasOwnProperty(a)?qr(Un[a]):a==="transparent"?new Vr(NaN,NaN,NaN,0):null}function qr(a){return new Vr(a>>16&255,a>>8&255,a&255,1)}function ii(a,p,u,c){return c<=0&&(a=p=u=NaN),new Vr(a,p,u,c)}function rn(a){return a instanceof tn||(a=wr(a)),a?(a=a.rgb(),new Vr(a.r,a.g,a.b,a.opacity)):new Vr}function Qn(a,p,u,c){return arguments.length===1?rn(a):new Vr(a,p,u,c==null?1:c)}function Vr(a,p,u,c){this.r=+a,this.g=+p,this.b=+u,this.opacity=+c}Ht(Vr,Qn,Wn(tn,{brighter:function(a){return a=a==null?Zi:Math.pow(Zi,a),new Vr(this.r*a,this.g*a,this.b*a,this.opacity)},darker:function(a){return a=a==null?hr:Math.pow(hr,a),new Vr(this.r*a,this.g*a,this.b*a,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:so,formatHex:so,formatRgb:rs,toString:rs}));function so(){return"#"+zt(this.r)+zt(this.g)+zt(this.b)}function rs(){var a=this.opacity;return a=isNaN(a)?1:Math.max(0,Math.min(1,a)),(a===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(a===1?")":", "+a+")")}function zt(a){return a=Math.max(0,Math.min(255,Math.round(a)||0)),(a<16?"0":"")+a.toString(16)}function pn(a,p,u,c){return c<=0?a=p=u=NaN:u<=0||u>=1?a=p=NaN:p<=0&&(a=NaN),new ui(a,p,u,c)}function br(a){if(a instanceof ui)return new ui(a.h,a.s,a.l,a.opacity);if(a instanceof tn||(a=wr(a)),!a)return new ui;if(a instanceof ui)return a;a=a.rgb();var p=a.r/255,u=a.g/255,c=a.b/255,l=Math.min(p,u,c),g=Math.max(p,u,c),T=NaN,B=g-l,Z=(g+l)/2;return B?(p===g?T=(u-c)/B+(u0&&Z<1?0:T,new ui(T,B,Z,a.opacity)}function Gr(a,p,u,c){return arguments.length===1?br(a):new ui(a,p,u,c==null?1:c)}function ui(a,p,u,c){this.h=+a,this.s=+p,this.l=+u,this.opacity=+c}Ht(ui,Gr,Wn(tn,{brighter:function(a){return a=a==null?Zi:Math.pow(Zi,a),new ui(this.h,this.s,this.l*a,this.opacity)},darker:function(a){return a=a==null?hr:Math.pow(hr,a),new ui(this.h,this.s,this.l*a,this.opacity)},rgb:function(){var a=this.h%360+(this.h<0)*360,p=isNaN(a)||isNaN(this.s)?0:this.s,u=this.l,c=u+(u<.5?u:1-u)*p,l=2*u-c;return new Vr(xi(a>=240?a-240:a+120,l,c),xi(a,l,c),xi(a<120?a+240:a-120,l,c),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var a=this.opacity;return a=isNaN(a)?1:Math.max(0,Math.min(1,a)),(a===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(a===1?")":", "+a+")")}}));function xi(a,p,u){return(a<60?p+(u-p)*a/60:a<180?u:a<240?p+(u-p)*(240-a)/60:p)*255}function lo(a){return typeof a=="string"?!!wr(a):!1}function Kr(a){var p=wr(a),u=[0,0,0,0];return p!=null&&(u[0]=p.r/255,u[1]=p.g/255,u[2]=p.b/255,u[3]=p.opacity),u}function ti(a){var p=a&&a[0],u=a&&a[1],c=a&&a[2],l=p+u*256+c*65536-1;return l}function ji(a){return[a+1&255,a+1>>8&255,a+1>>8>>8&255]}function Tr(a){var p=window.document.createElement("canvas"),u=p.getContext("2d");p.width=256,p.height=1;for(var c=null,l=u.createLinearGradient(0,0,256,1),g=a.positions[0],T=a.positions[a.positions.length-1],B=0;B0&&new RegExp("(^|\\s)"+p+"(\\s|$)").test(u)}function rc(a,p){a instanceof HTMLElement?a.className=p:a.className.baseVal=p}function Pc(a){return a instanceof SVGElement&&(a=a.correspondingElement),a.className.baseVal===void 0?a.className:a.className.baseVal}function ho(a){for(;a&&a.firstChild;)a.removeChild(a.firstChild)}var Ji=zi(["transform","WebkitTransform"]);function ss(a,p){a.style[Ji]=p}function $n(){if(typeof Event=="function")window.dispatchEvent(new Event("resize"));else{var a=window.document.createEvent("UIEvents");a.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(a)}}function mr(a){var p=["padding: "+(a.height/2-8)+"px "+a.width/2+"px;","line-height: "+a.height+"px;","background-image: url("+a.toDataURL()+");"];console.log(`%c +`,p.join(""))}function Qr(){var a,p=window.document.querySelector('meta[name="viewport"]');if(!p)return 1;var u=(a=p.content)===null||a===void 0?void 0:a.split(","),c=u.find(function(l){var g=l.split("="),T=(0,qn.Z)(g,1),B=T[0];return B==="initial-scale"});return c?c.split("=")[1]*1:1}var ni=Qr()<1?1:window.devicePixelRatio;function Ki(a,p){a.setAttribute("style","".concat(a.style.cssText).concat(p))}function ro(a){return a.split(";").map(function(p){return p.trim()}).filter(function(p){return p})}function Ei(a,p){var u,c=ro((u=a.getAttribute("style"))!==null&&u!==void 0?u:""),l=ro(p),g=pl.apply(void 0,[c].concat((0,kr.Z)(l)));a.setAttribute("style",g.join(";"))}function ns(a){return Object.entries(a).map(function(p){var u=(0,qn.Z)(p,2),c=u[0],l=u[1];return"".concat(c,": ").concat(l)}).join(";")}function ca(a,p){return{left:a.left-p.left,top:a.top-p.top,right:p.left+p.width-a.left-a.width,bottom:p.top+p.height-a.top-a.height}}function Na(a,p){a.checked=p,p?a.setAttribute("checked","true"):a.removeAttribute("checked")}function ul(a){a.innerHTML=""}function Hl(a){a.setAttribute("draggable","false")}function Ml(a,p){if(typeof p=="string"){var u=document.createElement("div");for(u.innerHTML=p;u.firstChild;)a.append(u.firstChild)}else Array.isArray(p)?a.append.apply(a,(0,kr.Z)(p)):a.append(p)}function ja(a,p){for(var u=Array.isArray(p)?p:[p],c=a;c instanceof Element&&c!==window.document.body;){var l,g;if(u.find(function(T){var B;return(B=c)===null||B===void 0?void 0:B.matches(T)}))return c;c=(l=(g=c)===null||g===void 0?void 0:g.parentElement)!==null&&l!==void 0?l:null}}var Pu;function Xs(a){return typeof ImageBitmap!="undefined"&&a instanceof ImageBitmap}function Ya(){return typeof importScripts=="function"}var qa=Ya()?function(){return self.worker&&self.worker.referrer}:function(){return(window.location.protocol==="blob:"?window.parent:window).location.href},Ul=(Pu=navigator)===null||Pu===void 0?void 0:Pu.userAgent,ql=!!Ul.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),vu=Ul.indexOf("Android")>-1||Ul.indexOf("Adr")>-1;function au(){for(var a=Ul,p=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],u=!0,c=0,l=p;c0){u=!1;break}}return u}var bn=m(80268);function Eu(a,p){a.forEach(function(u){p[u]&&(p[u]=p[u].bind(p))})}var ts=function(){function a(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:16;(0,wt.Z)(this,a),(0,bn.Z)(this,"duration",16),(0,bn.Z)(this,"timestamp",new Date().getTime()),this.duration=p}return(0,He.Z)(a,[{key:"run",value:function(u){var c=new Date().getTime(),l=c-this.timestamp;this.timestamp=c,l>=this.duration&&u()}}]),a}(),Vs=m(86461),ma=m(8822);function Il(a){return typeof a=="number"}var El=2*Math.PI*6378137/2;function gl(a,p){var u=(0,qn.Z)(p,4),c=u[0],l=u[1],g=u[2],T=u[3];return a.lng>c&&a.lng<=g&&a.lat>l&&a.lat<=T}function fu(a){var p=[1/0,1/0,-1/0,-1/0];return a.forEach(function(u){var c=u.coordinates;Nu(p,c)}),p}function Nu(a,p){return Array.isArray(p[0])?p.forEach(function(u){Nu(a,u)}):(a[0]>p[0]&&(a[0]=p[0]),a[1]>p[1]&&(a[1]=p[1]),a[2]1&&arguments[1]!==void 0?arguments[1]:!0,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{enable:!0,decimal:1};a=ad(a,p);var c=a[0],l=a[1],g=c*El/180,T=Math.log(Math.tan((90+l)*Math.PI/360))/(Math.PI/180);return T=T*El/180,u.enable&&(g=Number(g.toFixed(u.decimal)),T=Number(T.toFixed(u.decimal))),a.length===3?[g,T,a[2]]:[g,T]}function zd(a){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,u=a[0],c=a[1],l=u/El*180,g=c/El*180;return g=180/Math.PI*(2*Math.atan(Math.exp(g*Math.PI/180))-Math.PI/2),p!=null&&(l=Number(l.toFixed(p)),g=Number(g.toFixed(p))),a.length===3?[l,g,a[2]]:[l,g]}function eh(a){if(a==null)throw new Error("lng is required");return(a>180||a<-180)&&(a=a%360,a>180&&(a=-360+a),a<-180&&(a=360+a),a===0&&(a=0)),a}function Kd(a){if(a==null)throw new Error("lat is required");return(a>90||a<-90)&&(a=a%180,a>90&&(a=-180+a),a<-90&&(a=180+a),a===0&&(a=0)),a}function ad(a,p){if(p===!1)return a;var u=eh(a[0]),c=Kd(a[1]);return c>85&&(c=85),c<-85&&(c=-85),a.length===3?[u,c,a[2]]:[u,c]}function ku(a){var p=85.0511287798,u=Math.max(Math.min(p,a[1]),-p),c=256<<20,l=Math.PI/180,g=a[0]*l,T=u*l;T=Math.log(Math.tan(Math.PI/4+T/2));var B=.5/Math.PI,Z=.5,ee=-.5/Math.PI;return l=.5,g=c*(B*g+Z),T=c*(ee*T+l),[Math.floor(g),Math.floor(T)]}function Fc(a){var p=.5/Math.PI,u=.5,c=-.5/Math.PI,l=.5,g=256<<20,T=(0,qn.Z)(a,2),B=T[0],Z=T[1];B=(B/g-u)/p,Z=(Z/g-l)/c,Z=(Math.atan(Math.pow(Math.E,Z))-Math.PI/4)*2,l=Math.PI/180;var ee=Z/l,Pe=B/l;return[Pe,ee]}function dd(a,p){var u=85.0511287798,c=Math.PI/180,l=6378137;return p=Math.max(Math.min(u,p),-u),a*=c,p*=c,p=Math.log(Math.tan(Math.PI/4+p/2)),[a*l,p*l]}function vd(a,p){var u=Math.PI/180,c=6378137,l=a/c/u,g=2*(Math.atan(Math.exp(p/c))-Math.PI/4)/u;return[l,g]}function Xd(a,p,u){var c=(0,ma.degreesToRadians)(p[1]-a[1]),l=(0,ma.degreesToRadians)(p[0]-a[0]),g=(0,ma.degreesToRadians)(a[1]),T=(0,ma.degreesToRadians)(p[1]),B=Math.pow(Math.sin(c/2),2)+Math.pow(Math.sin(l/2),2)*Math.cos(g)*Math.cos(T);return(0,ma.radiansToLength)(2*Math.atan2(Math.sqrt(B),Math.sqrt(1-B)),u="meters")}function th(a){var p=Math.PI/180,u=85.0511287798,c=6378137,l=Math.max(Math.min(u,a[1]),-u),g=Math.sin(l*p),T=c*a[0]*p,B=c*Math.log((1+g)/(1-g))/2;return[T,B]}function jd(a,p){var u=Math.abs(a[1][1]-a[0][1])*p,c=Math.abs(a[1][0]-a[0][0])*p;return[[a[0][0]-c,a[0][1]-u],[a[1][0]+c,a[1][1]+u]]}function vh(a,p){return a[0][0]<=p[0][0]&&a[0][1]<=p[0][1]&&a[1][0]>=p[1][0]&&a[1][1]>=p[1][1]}function id(a){return[[a[0],a[1]],[a[2],a[3]]]}function nd(a){var p=Pf(a,[0,0]);return[a[0]/p,a[1]/p]}function Pf(a,p){return Math.sqrt(Math.pow(a[0]-p[0],2)+Math.pow(a[1]-p[1],2))}function qd(a,p){return a[0]*p[0]+a[1]*p[1]}function cc(a){return Math.sqrt(a[0]*a[0]+a[1]*a[1])}function Xc(a,p){return Math.acos(qd(a,p)/(cc(a)*cc(p)))*180/Math.PI}function jh(a,p){return p[0]>0?p[1]>0?90-Math.atan(p[1]/p[0])*180/Math.PI:90+Math.atan(-p[1]/p[0])*180/Math.PI:p[1]<0?180+(90-Math.atan(p[1]/p[0])*180/Math.PI):270+Math.atan(p[1]/-p[0])*180/Math.PI}function uf(a){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;if(!(!a||a.length<2)){for(var u=[0,1],c=0,l=[],g=0;g0){var Ze=l[g-1].rotation;Ze-Pe>360-Ze+Pe&&(Pe=Pe+360)}l.push({start:T,end:B,dis:Z,rotation:Pe,duration:0})}return l.map(function(St){St.duration=p*(St.dis/c)}),l}}function Lh(a){if(Il(a[0]))return a;if(Il(a[0][0]))throw new Error("\u5F53\u524D\u6570\u636E\u4E0D\u652F\u6301\u6807\u6CE8");if(Il(a[0][0][0])){var p=a,u=0,c=0,l=0;return p.forEach(function(g){g.forEach(function(T){u+=T[0],c+=T[1],l++})}),[u/l,c/l,0]}else throw new Error("\u5F53\u524D\u6570\u636E\u4E0D\u652F\u6301\u6807\u6CE8")}function Sf(a){for(var p=a[0],u=a[1],c=a[0],l=a[1],g=0,T=0,B=0,Z=0;Zl&&(c=Math.floor(c/u)),c=c*p+a.charCodeAt(g);return c}function uh(a){a=a.toString();for(var p=5381,u=a.length;u;)p=p*33^a.charCodeAt(--u);return p>>>0}function Th(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var p=Math.random()*16|0,u=a==="x"?p:p&3|8;return u.toString(16)})}var yu=function(a){return a["GAODE1.x"]="GAODE1.x",a["GAODE2.x"]="GAODE2.x",a.MAPBOX="MAPBOX",a.DEFAULT="DEFAUlTMAP",a.SIMPLE="SIMPLE",a.GLOBEL="GLOBEL",a}({});function ff(a,p,u,c,l){var g=arguments.length>5&&arguments[5]!==void 0?arguments[5]:30,T=arguments.length>6?arguments[6]:void 0,B=u;return T&&(B=Math.round(u*(g-1))/(g-1)),c?Yd(a,p,B,c,l):Yd(a,p,B,.314,l)}function Ja(a,p){var u=1-p;return(a[0]*u+a[1]*p)*u+(a[1]*u+a[2]*p)*p}function Fu(a,p){return Math.sqrt(Math.pow(a[0]-p[0],2)+Math.pow(a[1]-p[1],2))}function wd(a,p,u){var c=[p[0]-a[0],p[1]-a[1]],l=Fu(c,[0,0]),g=Math.atan2(c[1],c[0]),T=l/2/Math.cos(u),B=g+u,Z=[T*Math.cos(B)+a[0],T*Math.sin(B)+a[1]];return Z}function Yd(a,p,u,c,l){if(l===yu["GAODE2.x"]){var g=dd(a[0],a[1]),T=dd(p[0],p[1]),B=wd(g,T,c),Z=[g[0],B[0],T[0]],ee=[g[1],B[1],T[1]];return[].concat((0,kr.Z)(vd(Ja(Z,u),Ja(ee,u))),[0])}else{var Pe=wd(a,p,c),Ze=[a[0],Pe[0],p[0]],St=[a[1],Pe[1],p[1]];return[Ja(Ze,u),Ja(St,u),0]}}function Ba(a,p,u,c,l){var g=arguments.length>5&&arguments[5]!==void 0?arguments[5]:30,T=arguments.length>6?arguments[6]:void 0,B=u;return T&&(B=Math.round(u*29)/29),Vu(a,p,B,l)}function ru(a,p){var u=[p[0]-a[0],p[1]-a[1]],c=Pf(u,[0,0]),l=Math.atan2(u[1],u[0]),g=.314,T=c/2/Math.cos(g),B=l+g,Z=[T*Math.cos(B)+a[0],T*Math.sin(B)+a[1]];return Z}function zl(a,p){var u=1-p;return(a[0]*u+a[1]*p)*u+(a[1]*u+a[2]*p)*p}function Au(a,p){var u=[a[0]-p[0],a[1]-p[1]],c=[Math.sin(u[0]/2),Math.sin(u[1]/2)],l=c[1]*c[1]+Math.cos(a[1])*Math.cos(p[1])*c[0]*c[0];return 2*Math.atan2(Math.sqrt(l),Math.sqrt(1-l))}function Vu(a,p,u,c){var l=[(0,ma.degreesToRadians)(a[0]),(0,ma.degreesToRadians)(a[1])],g=[(0,ma.degreesToRadians)(p[0]),(0,ma.degreesToRadians)(p[1])];if(c==="GAODE2.x"){var T=ru(l,g),B=[l[0],T[0],g[0]],Z=[l[1],T[1],g[1]];return[zl(B,u),zl(Z,u),0]}else{var ee=Au(l,g);if(Math.abs(ee-Math.PI)<.001)return[(1-u)*l[0]+u*g[0],(1-u)*l[1]+u*g[1]];var Pe=Math.sin((1-u)*ee)/Math.sin(ee),Ze=Math.sin(u*ee)/Math.sin(ee),St=[Math.sin(l[0]),Math.sin(l[1])],Mt=[Math.cos(l[0]),Math.cos(l[1])],Tn=[Math.sin(g[0]),Math.sin(g[1])],kn=[Math.cos(g[0]),Math.cos(g[1])],vr=Pe*Mt[1]*Mt[0]+Ze*kn[1]*kn[0],wi=Pe*Mt[1]*St[0]+Ze*kn[1]*Tn[0],zo=Pe*St[1]+Ze*Tn[1];return[(0,ma.radiansToDegrees)(Math.atan2(wi,vr)),(0,ma.radiansToDegrees)(Math.atan2(zo,Math.sqrt(vr*vr+wi*wi)))]}}function Vd(a,p){for(var u=0,c=[],l=0;lee){var vr=Tn.p1,wi=Tn.p2,zo=(ee-Tn.lastTotalDistance)/Tn.distance,$o=Ud(wi,vr,zo);Pe=$o[0],Ze=$o[1];break}}return{lng:Pe,lat:Ze,height:0}}function Ud(a,p,u){return[a[0]*u+p[0]*(1-u),a[1]*u+p[1]*(1-u)]}function oh(a,p){return Math.sqrt(Math.pow(a[0]-p[0],2)+Math.pow(a[1]-p[1],2))}function Vf(a,p){var u=p.featureId,c=a.data.dataArray;return typeof u=="number"&&(c=c.filter(function(l){var g=l.id;return g===u})),c.map(function(l){var g=Uh(l,p);return(0,xe.Z)((0,xe.Z)({},l),g)})}function yf(a,p){return new Promise(function(u){a.inited?u(Vf(a,p)):a.once("update",function(){u(Vf(a,p))})})}function Uh(a,p){var u=p.offset,c=p.shape,l=p.thetaOffset,g=p.mapVersion,T=p.segmentNumber,B=T===void 0?30:T,Z=p.autoFit,ee=Z===void 0?!0:Z,Pe=a.coordinates;if(c==="line")return Vd(Pe,u);var Ze=Pe[0],St=Pe[1],Mt=typeof l=="string"?a[l]||0:l,Tn;switch(c){case"arc":Tn=ff;break;case"greatcircle":Tn=Ba;break;default:Tn=ff}var kn=Tn(Ze,St,u,Mt,g,B,ee),vr=(0,qn.Z)(kn,3),wi=vr[0],zo=vr[1],$o=vr[2];return{lng:wi,lat:zo,height:$o}}var kf=function(){function a(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:50,u=arguments.length>1?arguments[1]:void 0;(0,wt.Z)(this,a),this.limit=p,this.destroy=u||this.defaultDestroy,this.order=[],this.clear()}return(0,He.Z)(a,[{key:"clear",value:function(){var u=this;this.order.forEach(function(c){u.delete(c)}),this.cache={},this.order=[]}},{key:"get",value:function(u){var c=this.cache[u];return c&&(this.deleteOrder(u),this.appendOrder(u)),c}},{key:"set",value:function(u,c){this.cache[u]?(this.delete(u),this.cache[u]=c,this.appendOrder(u)):(Object.keys(this.cache).length===this.limit&&this.delete(this.order[0]),this.cache[u]=c,this.appendOrder(u))}},{key:"delete",value:function(u){var c=this.cache[u];c&&(this.deleteCache(u),this.deleteOrder(u),this.destroy(c,u))}},{key:"deleteCache",value:function(u){delete this.cache[u]}},{key:"deleteOrder",value:function(u){var c=this.order.findIndex(function(l){return l===u});c>=0&&this.order.splice(c,1)}},{key:"appendOrder",value:function(u){this.order.push(u)}},{key:"defaultDestroy",value:function(u,c){return null}}]),a}();function Bh(a){if(a.length===0)throw new Error("max requires at least one data point");for(var p=a[0],u=1;up&&(p=a[u]);return p*1}function Kf(a){if(a.length===0)throw new Error("min requires at least one data point");for(var p=a[0],u=1;uc&&(c=l,u=p),l=1,p=a[g]):l++;return u*1}var Kh={min:Kf,max:Bh,mean:ed,sum:sh,mode:Vh};function cf(a,p){return a.map(function(u){return u[p]})}function Qc(a,p){return Kh[a](p)}var Pa=m(97100),is=m(9967),Op=m(96026),Qi=m.n(Op),bc=m(39511),gf=m(40666),Qu=m.n(gf),Bc=function(a){return a.Realtime="realtime",a.Overlap="overlap",a.Replace="replace",a}({}),Df=function(a){return a.Loading="Loading",a.Loaded="Loaded",a.Failure="Failure",a.Cancelled="Cancelled",a}({}),qp=0,sg=1,Ah=2;function sp(a){a.forEach(function(p){p.isCurrent&&(p.isVisible=p.isLoaded)})}function Rp(a){a.forEach(function(p){p.properties.state=qp}),a.forEach(function(p){p.isCurrent&&!pg(p)&&wp(p)}),a.forEach(function(p){p.isVisible=!!(p.properties.state&Ah)})}function tp(a){a.forEach(function(u){u.properties.state=qp}),a.forEach(function(u){u.isCurrent&&pg(u)});var p=a.slice().sort(function(u,c){return u.z-c.z});p.forEach(function(u){u.isVisible=!!(u.properties.state&Ah),u.children.length&&(u.isVisible||u.properties.state&sg)?u.children.forEach(function(c){c.properties.state=sg}):u.isCurrent&&wp(u)})}function pg(a){for(;a;){if(a.isLoaded)return a.properties.state|=Ah,!0;a=a.parent}return!1}function wp(a){a.children.forEach(function(p){p.isLoaded?p.properties.state|=Ah:wp(p)})}var Uf,Pd=256,Np=[-1/0,-1/0,1/0,1/0],$p=.2,ag=5,Md=(Uf={},(0,bn.Z)(Uf,Bc.Realtime,sp),(0,bn.Z)(Uf,Bc.Overlap,Rp),(0,bn.Z)(Uf,Bc.Replace,tp),Uf),Wp=function(){};function Ih(a,p,u){var c=Math.floor((a+180)/360*Math.pow(2,u)),l=Math.floor((1-Math.log(Math.tan(p*Math.PI/180)+1/Math.cos(p*Math.PI/180))/Math.PI)/2*Math.pow(2,u));return[c,l]}function of(a,p,u){var c=a/Math.pow(2,u)*360-180,l=Math.PI-2*Math.PI*p/Math.pow(2,u),g=180/Math.PI*Math.atan(.5*(Math.exp(l)-Math.exp(-l)));return[c,g]}var Ff=function(p,u,c){var l=of(p,u,c),g=(0,qn.Z)(l,2),T=g[0],B=g[1],Z=of(p+1,u+1,c),ee=(0,qn.Z)(Z,2),Pe=ee[0],Ze=ee[1];return[T,Ze,Pe,B]};function iu(a){var p=a.zoom,u=a.latLonBounds,c=a.maxZoom,l=c===void 0?1/0:c,g=a.minZoom,T=g===void 0?0:g,B=a.zoomOffset,Z=B===void 0?0:B,ee=a.extent,Pe=ee===void 0?Np:ee,Ze=Math.ceil(p)+Z;if(Number.isFinite(T)&&Zel&&(Ze=l);for(var St=(0,qn.Z)(u,4),Mt=St[0],Tn=St[1],kn=St[2],vr=St[3],wi=[Math.max(Mt,Pe[0]),Math.max(Tn,Pe[1]),Math.min(kn,Pe[2]),Math.min(vr,Pe[3])],zo=[],$o=Ih(wi[0],wi[1],Ze),Ks=(0,qn.Z)($o,2),ra=Ks[0],La=Ks[1],vl=Ih(wi[2],wi[3],Ze),Wl=(0,qn.Z)(vl,2),Jl=Wl[0],ju=Wl[1],Ku=ra;Ku<=Jl;Ku++)for(var Jc=ju;Jc<=La;Jc++)zo.push({x:Ku,y:Jc,z:Ze});var gd=(Jl+ra)/2,Ch=(La+ju)/2,og=function(Zg,Zm){return Math.abs(Zg-gd)+Math.abs(Zm-Ch)};return zo.sort(function(um,Zg){return og(um.x,um.y)-og(Zg.x,Zg.y)}),zo}var mp=function(p,u,c){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,g=Math.pow(2,c),T=g-1,B=g,Z=p,ee=u;return l&&(Z<0?Z=Z+B:Z>T&&(Z=Z%B)),{warpX:Z,warpY:ee}};function Af(a){var p=np();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function np(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var Od=function(a){(0,dt.Z)(u,a);var p=Af(u);function u(c){var l;(0,wt.Z)(this,u),l=p.call(this),(0,bn.Z)((0,is.Z)(l),"tileSize",256),(0,bn.Z)((0,is.Z)(l),"isVisible",!1),(0,bn.Z)((0,is.Z)(l),"isCurrent",!1),(0,bn.Z)((0,is.Z)(l),"isVisibleChange",!1),(0,bn.Z)((0,is.Z)(l),"loadedLayers",0),(0,bn.Z)((0,is.Z)(l),"isLayerLoaded",!1),(0,bn.Z)((0,is.Z)(l),"isLoad",!1),(0,bn.Z)((0,is.Z)(l),"isChildLoad",!1),(0,bn.Z)((0,is.Z)(l),"parent",null),(0,bn.Z)((0,is.Z)(l),"children",[]),(0,bn.Z)((0,is.Z)(l),"data",null),(0,bn.Z)((0,is.Z)(l),"properties",{}),(0,bn.Z)((0,is.Z)(l),"loadDataId",0);var g=c.x,T=c.y,B=c.z,Z=c.tileSize,ee=c.warp,Pe=ee===void 0?!0:ee;return l.x=g,l.y=T,l.z=B,l.warp=Pe||!0,l.tileSize=Z,l}return(0,He.Z)(u,[{key:"isLoading",get:function(){return this.loadStatus===Df.Loading}},{key:"isLoaded",get:function(){return this.loadStatus===Df.Loaded}},{key:"isFailure",get:function(){return this.loadStatus===Df.Failure}},{key:"setTileLayerLoaded",value:function(){this.isLayerLoaded=!0}},{key:"isCancelled",get:function(){return this.loadStatus===Df.Cancelled}},{key:"isDone",get:function(){return[Df.Loaded,Df.Cancelled,Df.Failure].includes(this.loadStatus)}},{key:"bounds",get:function(){return Ff(this.x,this.y,this.z)}},{key:"bboxPolygon",get:function(){var l=(0,qn.Z)(this.bounds,4),g=l[0],T=l[1],B=l[2],Z=l[3],ee=[(B-g)/2,(Z-T)/2],Pe=(0,bc.Z)(this.bounds,{properties:{key:this.key,id:this.key,bbox:this.bounds,center:ee,meta:` `.concat(this.key,` - `)}});return Me}},{key:"key",get:function(){var l="".concat(this.x,"_").concat(this.y,"_").concat(this.z);return l}},{key:"layerLoad",value:function(){this.loadedLayers++,this.emit("layerLoaded")}},{key:"loadData",value:function(){var c=(0,ka.Z)(Qi().mark(function g(T){var B,G,te,Me,Ge,St,Mt,In,kn,Sr,_i,Vo,zo,Ks,ca,Ia,al;return Qi().wrap(function(Wl){for(;;)switch(Wl.prev=Wl.next){case 0:return B=T.getData,G=T.onLoad,te=T.onError,this.loadDataId++,Me=this.loadDataId,this.isLoading&&this.abortLoad(),this.abortController=new AbortController,this.loadStatus=Df.Loading,Ge=null,Wl.prev=7,Mt=this.x,In=this.y,kn=this.z,Sr=this.bounds,_i=this.tileSize,Vo=this.warp,zo=mp(Mt,In,kn,Vo),Ks=zo.warpX,ca=zo.warpY,Ia=this.abortController.signal,al={x:Ks,y:ca,z:kn,bounds:Sr,tileSize:_i,signal:Ia,warp:Vo},Wl.next=14,B(al,this);case 14:Ge=Wl.sent,Wl.next=20;break;case 17:Wl.prev=17,Wl.t0=Wl.catch(7),St=Wl.t0;case 20:if(Me===this.loadDataId){Wl.next=22;break}return Wl.abrupt("return");case 22:if(!(this.isCancelled&&!Ge)){Wl.next=24;break}return Wl.abrupt("return");case 24:if(!(St||!Ge)){Wl.next=28;break}return this.loadStatus=Df.Failure,te(St,this),Wl.abrupt("return");case 28:this.loadStatus=Df.Loaded,this.data=Ge,G(this);case 31:case"end":return Wl.stop()}},g,this,[[7,17]])}));function l(g){return c.apply(this,arguments)}return l}()},{key:"reloadData",value:function(l){this.isLoading&&this.abortLoad(),this.loadData(l)}},{key:"abortLoad",value:function(){this.isLoaded||this.isCancelled||(this.loadStatus=Df.Cancelled,this.abortController.abort(),this.xhrCancel&&this.xhrCancel())}}]),u}(yf.EventEmitter),td=function(p,u){var c=id(p),l=Wd(c,u),g=360*3-180,T=85.0511287798065,B=[Math.max(l[0][0],-g),Math.max(l[0][1],-T),Math.min(l[1][0],g),Math.min(l[1][1],T)];return B},Tp=function(p,u){var c=id(p),l=id(u),g=yh(c,l);return g};function _f(a,p){var u=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!u){if(Array.isArray(a)||(u=Hh(a))||p&&a&&typeof a.length=="number"){u&&(a=u);var c=0,l=function(){};return{s:l,n:function(){return c>=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(te){throw te},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var te=u.next();return g=te.done,te},e:function(te){T=!0,B=te},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function Hh(a,p){if(a){if(typeof a=="string")return Dp(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return Dp(a,p)}}function Dp(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);u=0&&Ge.x0;){var G=l.shift();G.abortLoad()}}},{key:"getTileByLngLat",value:function(l,g,T){var B=this.options.zoomOffset,G=Math.ceil(T)+B,te=Ih(l,g,G),Me=this.tiles.filter(function(Ge){return Ge.key==="".concat(te[0],"_").concat(te[1],"_").concat(G)});return Me[0]}},{key:"getTileExtent",value:function(l,g){return this.getTileIndices(g,l)}},{key:"getTileByZXY",value:function(l,g,T){var B=this.tiles.filter(function(G){return G.key==="".concat(g,"_").concat(T,"_").concat(l)});return B[0]}},{key:"clear",value:function(){var l=_f(this.cacheTiles.values()),g;try{for(l.s();!(g=l.n()).done;){var T=g.value;T.isLoading?T.abortLoad():this.onTileUnload(T)}}catch(B){l.e(B)}finally{l.f()}this.lastViewStates=void 0,this.cacheTiles.clear(),this.currentTiles=[]}},{key:"destroy",value:function(){this.clear(),this.removeAllListeners()}},{key:"updateTileVisible",value:function(){var l=this.options.updateStrategy,g=new Map,T=_f(this.cacheTiles.values()),B;try{for(T.s();!(B=T.n()).done;){var G=B.value;g.set(G.key,G.isVisible),G.isCurrent=!1,G.isVisible=!1}}catch(In){T.e(In)}finally{T.f()}var te=_f(this.currentTiles),Me;try{for(te.s();!(Me=te.n()).done;){var Ge=Me.value;Ge.isCurrent=!0,Ge.isVisible=!0}}catch(In){te.e(In)}finally{te.f()}var St=Array.from(this.cacheTiles.values());typeof l=="function"?l(St):Md[l](St);var Mt=!1;Array.from(this.cacheTiles.values()).forEach(function(In){In.isVisible!==g.get(In.key)?(In.isVisibleChange=!0,Mt=!0):In.isVisibleChange=!1}),Mt&&this.emit(kh.TileUpdate)}},{key:"getTileIndices",value:function(l,g){var T=this.options,B=T.tileSize,G=T.extent,te=T.zoomOffset,Me=Math.floor(this.options.maxZoom),Ge=Math.ceil(this.options.minZoom),St=iu({maxZoom:Me,minZoom:Ge,zoomOffset:te,tileSize:B,zoom:l,latLonBounds:g,extent:G});return St}},{key:"getTileId",value:function(l,g,T){var B="".concat(l,",").concat(g,",").concat(T);return B}},{key:"loadFinished",value:function(){var l=!this.currentTiles.some(function(g){return!g.isDone});return l&&this.emit(kh.TilesLoadFinished),l}},{key:"getTile",value:function(l,g,T){var B=this.getTileId(l,g,T),G=this.cacheTiles.get(B);return G}},{key:"createTile",value:function(l,g,T){var B=this.getTileId(l,g,T),G=new Od({x:l,y:g,z:T,tileSize:this.options.tileSize,warp:this.options.warp});return this.cacheTiles.set(B,G),G.loadData({getData:this.options.getTileData,onLoad:this.onTileLoad,onError:this.onTileError}),G}},{key:"resizeCacheTiles",value:function(){var l=ag*this.currentTiles.length,g=this.cacheTiles.size>l;if(g){var T=_f(this.cacheTiles),B;try{for(T.s();!(B=T.n()).done;){var G=(0,Qn.Z)(B.value,2),te=G[0],Me=G[1];if(!Me.isVisible&&!this.currentTiles.includes(Me)&&(this.cacheTiles.delete(te),this.onTileUnload(Me)),this.cacheTiles.size<=l)break}}catch(Ge){T.e(Ge)}finally{T.f()}}this.rebuildTileTree()}},{key:"rebuildTileTree",value:function(){var l=_f(this.cacheTiles.values()),g;try{for(l.s();!(g=l.n()).done;){var T=g.value;T.parent=null,T.children.length=0}}catch(Ge){l.e(Ge)}finally{l.f()}var B=_f(this.cacheTiles.values()),G;try{for(B.s();!(G=B.n()).done;){var te=G.value,Me=this.getNearestAncestor(te.x,te.y,te.z);te.parent=Me,Me!=null&&Me.children&&Me.children.push(te)}}catch(Ge){B.e(Ge)}finally{B.f()}}},{key:"getNearestAncestor",value:function(l,g,T){for(;T>this.options.minZoom;){l=Math.floor(l/2),g=Math.floor(g/2),T=T-1;var B=this.getTile(l,g,T);if(B)return B}return null}}]),u}(Qu());function Bf(a){return/(?=.*{box})(?=.*{z})(?=.*{x})(?=.*({y}|{-y}))/.test(a)}function bd(a){var p=[],u=/\{([a-z])-([a-z])\}/.exec(a);if(u){var c=u[1].charCodeAt(0),l=u[2].charCodeAt(0),g;for(g=c;g<=l;++g)p.push(a.replace(u[0],String.fromCharCode(g)));return p}if(u=/\{(\d+)-(\d+)\}/.exec(a),u){for(var T=parseInt(u[2],10),B=parseInt(u[1],10);B<=T;B++)p.push(a.replace(u[0],B.toString()));return p}return p.push(a),p}function $c(a,p){if(!a||!a.length)throw new Error("url is not allowed to be empty");var u=p.x,c=p.y,l=p.z,g=bd(a),T=Math.abs(u+c)%g.length,B=Po(g[T])?"".concat(g[T],"/{z}/{x}/{y}"):g[T];return B.replace(/\{x\}/g,u.toString()).replace(/\{y\}/g,c.toString()).replace(/\{z\}/g,l.toString()).replace(/\{bbox\}/g,Ff(u,c,l).join(",")).replace(/\{-y\}/g,(Math.pow(2,l)-c-1).toString())}function Hd(a,p){var u=p.x,c=p.y,l=p.z,g=p.layer,T=p.version,B=T===void 0?"1.0.0":T,G=p.style,te=G===void 0?"default":G,Me=p.format,Ge=p.service,St=Ge===void 0?"WMTS":Ge,Mt=p.tileMatrixset,In="".concat(a,"&SERVICE=").concat(St,"&REQUEST=GetTile&VERSION=").concat(B,"&LAYER=").concat(g,"&STYLE=").concat(te,"&TILEMATRIXSET=").concat(Mt,"&FORMAT=").concat(Me,"&TILECOL=").concat(u,"&TILEROW=").concat(c,"&TILEMATRIX=").concat(l);return In}function vh(a,p){if(!a)throw new Error(p||"web worker helper assertion failed.")}var wo={self:typeof self!="undefined"&&self,window:typeof window!="undefined"&&window,document:typeof document!="undefined"&&document},D=wo.self||wo.window||{},F=wo.window||wo.self||{},q=wo.self||wo.window||{},ae=wo.document||{},He=typeof importScripts=="function",qt=typeof window!="undefined"&&typeof window.orientation!="undefined",zn=function(){function a(p,u){var c=this;this.name=p,this.workerThread=u,this.isRunning=!0,this.resolve=function(){},this.reject=function(){},this.result=new Promise(function(l,g){c.resolve=l,c.reject=g})}return a.prototype.postMessage=function(p,u){this.workerThread.postMessage({source:"Main thread",type:p,payload:u})},a.prototype.done=function(p){vh(this.isRunning,"WorkerJob isRunning false."),this.isRunning=!1,this.resolve(p)},a.prototype.error=function(p){vh(this.isRunning,"WorkerJob isRunning false."),this.isRunning=!1,this.reject(p)},a}(),di=zn,Uo=new Map;function la(a){vh(a.source&&!a.url||!a.source&&a.url);var p=Uo.get(a.source||a.url);return p||(a.url&&(p=Cl(a.url),Uo.set(a.url,p)),a.source&&(p=Ll(a.source),Uo.set(a.source,p))),vh(p),p}function Cl(a){if(!a.startsWith("http"))return a;var p=zu(a);return Ll(p)}function Ll(a){var p=new Blob([a],{type:"application/javascript"});return URL.createObjectURL(p)}function zu(a){return`try { + `)}});return Pe}},{key:"key",get:function(){var l="".concat(this.x,"_").concat(this.y,"_").concat(this.z);return l}},{key:"layerLoad",value:function(){this.loadedLayers++,this.emit("layerLoaded")}},{key:"loadData",value:function(){var c=(0,Pa.Z)(Qi().mark(function g(T){var B,Z,ee,Pe,Ze,St,Mt,Tn,kn,vr,wi,zo,$o,Ks,ra,La,vl;return Qi().wrap(function(Jl){for(;;)switch(Jl.prev=Jl.next){case 0:return B=T.getData,Z=T.onLoad,ee=T.onError,this.loadDataId++,Pe=this.loadDataId,this.isLoading&&this.abortLoad(),this.abortController=new AbortController,this.loadStatus=Df.Loading,Ze=null,Jl.prev=7,Mt=this.x,Tn=this.y,kn=this.z,vr=this.bounds,wi=this.tileSize,zo=this.warp,$o=mp(Mt,Tn,kn,zo),Ks=$o.warpX,ra=$o.warpY,La=this.abortController.signal,vl={x:Ks,y:ra,z:kn,bounds:vr,tileSize:wi,signal:La,warp:zo},Jl.next=14,B(vl,this);case 14:Ze=Jl.sent,Jl.next=20;break;case 17:Jl.prev=17,Jl.t0=Jl.catch(7),St=Jl.t0;case 20:if(Pe===this.loadDataId){Jl.next=22;break}return Jl.abrupt("return");case 22:if(!(this.isCancelled&&!Ze)){Jl.next=24;break}return Jl.abrupt("return");case 24:if(!(St||!Ze)){Jl.next=28;break}return this.loadStatus=Df.Failure,ee(St,this),Jl.abrupt("return");case 28:this.loadStatus=Df.Loaded,this.data=Ze,Z(this);case 31:case"end":return Jl.stop()}},g,this,[[7,17]])}));function l(g){return c.apply(this,arguments)}return l}()},{key:"reloadData",value:function(l){this.isLoading&&this.abortLoad(),this.loadData(l)}},{key:"abortLoad",value:function(){this.isLoaded||this.isCancelled||(this.loadStatus=Df.Cancelled,this.abortController.abort(),this.xhrCancel&&this.xhrCancel())}}]),u}(gf.EventEmitter),td=function(p,u){var c=id(p),l=jd(c,u),g=360*3-180,T=85.0511287798065,B=[Math.max(l[0][0],-g),Math.max(l[0][1],-T),Math.min(l[1][0],g),Math.min(l[1][1],T)];return B},Dp=function(p,u){var c=id(p),l=id(u),g=vh(c,l);return g};function _f(a,p){var u=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!u){if(Array.isArray(a)||(u=Hh(a))||p&&a&&typeof a.length=="number"){u&&(a=u);var c=0,l=function(){};return{s:l,n:function(){return c>=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(ee){throw ee},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var ee=u.next();return g=ee.done,ee},e:function(ee){T=!0,B=ee},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function Hh(a,p){if(a){if(typeof a=="string")return Ap(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return Ap(a,p)}}function Ap(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);u=0&&Ze.x0;){var Z=l.shift();Z.abortLoad()}}},{key:"getTileByLngLat",value:function(l,g,T){var B=this.options.zoomOffset,Z=Math.ceil(T)+B,ee=Ih(l,g,Z),Pe=this.tiles.filter(function(Ze){return Ze.key==="".concat(ee[0],"_").concat(ee[1],"_").concat(Z)});return Pe[0]}},{key:"getTileExtent",value:function(l,g){return this.getTileIndices(g,l)}},{key:"getTileByZXY",value:function(l,g,T){var B=this.tiles.filter(function(Z){return Z.key==="".concat(g,"_").concat(T,"_").concat(l)});return B[0]}},{key:"clear",value:function(){var l=_f(this.cacheTiles.values()),g;try{for(l.s();!(g=l.n()).done;){var T=g.value;T.isLoading?T.abortLoad():this.onTileUnload(T)}}catch(B){l.e(B)}finally{l.f()}this.lastViewStates=void 0,this.cacheTiles.clear(),this.currentTiles=[]}},{key:"destroy",value:function(){this.clear(),this.removeAllListeners()}},{key:"updateTileVisible",value:function(){var l=this.options.updateStrategy,g=new Map,T=_f(this.cacheTiles.values()),B;try{for(T.s();!(B=T.n()).done;){var Z=B.value;g.set(Z.key,Z.isVisible),Z.isCurrent=!1,Z.isVisible=!1}}catch(Tn){T.e(Tn)}finally{T.f()}var ee=_f(this.currentTiles),Pe;try{for(ee.s();!(Pe=ee.n()).done;){var Ze=Pe.value;Ze.isCurrent=!0,Ze.isVisible=!0}}catch(Tn){ee.e(Tn)}finally{ee.f()}var St=Array.from(this.cacheTiles.values());typeof l=="function"?l(St):Md[l](St);var Mt=!1;Array.from(this.cacheTiles.values()).forEach(function(Tn){Tn.isVisible!==g.get(Tn.key)?(Tn.isVisibleChange=!0,Mt=!0):Tn.isVisibleChange=!1}),Mt&&this.emit(kh.TileUpdate)}},{key:"getTileIndices",value:function(l,g){var T=this.options,B=T.tileSize,Z=T.extent,ee=T.zoomOffset,Pe=Math.floor(this.options.maxZoom),Ze=Math.ceil(this.options.minZoom),St=iu({maxZoom:Pe,minZoom:Ze,zoomOffset:ee,tileSize:B,zoom:l,latLonBounds:g,extent:Z});return St}},{key:"getTileId",value:function(l,g,T){var B="".concat(l,",").concat(g,",").concat(T);return B}},{key:"loadFinished",value:function(){var l=!this.currentTiles.some(function(g){return!g.isDone});return l&&this.emit(kh.TilesLoadFinished),l}},{key:"getTile",value:function(l,g,T){var B=this.getTileId(l,g,T),Z=this.cacheTiles.get(B);return Z}},{key:"createTile",value:function(l,g,T){var B=this.getTileId(l,g,T),Z=new Od({x:l,y:g,z:T,tileSize:this.options.tileSize,warp:this.options.warp});return this.cacheTiles.set(B,Z),Z.loadData({getData:this.options.getTileData,onLoad:this.onTileLoad,onError:this.onTileError}),Z}},{key:"resizeCacheTiles",value:function(){var l=ag*this.currentTiles.length,g=this.cacheTiles.size>l;if(g){var T=_f(this.cacheTiles),B;try{for(T.s();!(B=T.n()).done;){var Z=(0,qn.Z)(B.value,2),ee=Z[0],Pe=Z[1];if(!Pe.isVisible&&!this.currentTiles.includes(Pe)&&(this.cacheTiles.delete(ee),this.onTileUnload(Pe)),this.cacheTiles.size<=l)break}}catch(Ze){T.e(Ze)}finally{T.f()}}this.rebuildTileTree()}},{key:"rebuildTileTree",value:function(){var l=_f(this.cacheTiles.values()),g;try{for(l.s();!(g=l.n()).done;){var T=g.value;T.parent=null,T.children.length=0}}catch(Ze){l.e(Ze)}finally{l.f()}var B=_f(this.cacheTiles.values()),Z;try{for(B.s();!(Z=B.n()).done;){var ee=Z.value,Pe=this.getNearestAncestor(ee.x,ee.y,ee.z);ee.parent=Pe,Pe!=null&&Pe.children&&Pe.children.push(ee)}}catch(Ze){B.e(Ze)}finally{B.f()}}},{key:"getNearestAncestor",value:function(l,g,T){for(;T>this.options.minZoom;){l=Math.floor(l/2),g=Math.floor(g/2),T=T-1;var B=this.getTile(l,g,T);if(B)return B}return null}}]),u}(Qu());function Bf(a){return/(?=.*{box})(?=.*{z})(?=.*{x})(?=.*({y}|{-y}))/.test(a)}function bd(a){var p=[],u=/\{([a-z])-([a-z])\}/.exec(a);if(u){var c=u[1].charCodeAt(0),l=u[2].charCodeAt(0),g;for(g=c;g<=l;++g)p.push(a.replace(u[0],String.fromCharCode(g)));return p}if(u=/\{(\d+)-(\d+)\}/.exec(a),u){for(var T=parseInt(u[2],10),B=parseInt(u[1],10);B<=T;B++)p.push(a.replace(u[0],B.toString()));return p}return p.push(a),p}function $c(a,p){if(!a||!a.length)throw new Error("url is not allowed to be empty");var u=p.x,c=p.y,l=p.z,g=bd(a),T=Math.abs(u+c)%g.length,B=Po(g[T])?"".concat(g[T],"/{z}/{x}/{y}"):g[T];return B.replace(/\{x\}/g,u.toString()).replace(/\{y\}/g,c.toString()).replace(/\{z\}/g,l.toString()).replace(/\{bbox\}/g,Ff(u,c,l).join(",")).replace(/\{-y\}/g,(Math.pow(2,l)-c-1).toString())}function Hd(a,p){var u=p.x,c=p.y,l=p.z,g=p.layer,T=p.version,B=T===void 0?"1.0.0":T,Z=p.style,ee=Z===void 0?"default":Z,Pe=p.format,Ze=p.service,St=Ze===void 0?"WMTS":Ze,Mt=p.tileMatrixset,Tn="".concat(a,"&SERVICE=").concat(St,"&REQUEST=GetTile&VERSION=").concat(B,"&LAYER=").concat(g,"&STYLE=").concat(ee,"&TILEMATRIXSET=").concat(Mt,"&FORMAT=").concat(Pe,"&TILECOL=").concat(u,"&TILEROW=").concat(c,"&TILEMATRIX=").concat(l);return Tn}function mh(a,p){if(!a)throw new Error(p||"web worker helper assertion failed.")}var wo={self:typeof self!="undefined"&&self,window:typeof window!="undefined"&&window,document:typeof document!="undefined"&&document},D=wo.self||wo.window||{},F=wo.window||wo.self||{},q=wo.self||wo.window||{},se=wo.document||{},Ue=typeof importScripts=="function",qt=typeof window!="undefined"&&typeof window.orientation!="undefined",zn=function(){function a(p,u){var c=this;this.name=p,this.workerThread=u,this.isRunning=!0,this.resolve=function(){},this.reject=function(){},this.result=new Promise(function(l,g){c.resolve=l,c.reject=g})}return a.prototype.postMessage=function(p,u){this.workerThread.postMessage({source:"Main thread",type:p,payload:u})},a.prototype.done=function(p){mh(this.isRunning,"WorkerJob isRunning false."),this.isRunning=!1,this.resolve(p)},a.prototype.error=function(p){mh(this.isRunning,"WorkerJob isRunning false."),this.isRunning=!1,this.reject(p)},a}(),di=zn,Uo=new Map;function ua(a){mh(a.source&&!a.url||!a.source&&a.url);var p=Uo.get(a.source||a.url);return p||(a.url&&(p=Cl(a.url),Uo.set(a.url,p)),a.source&&(p=Ll(a.source),Uo.set(a.source,p))),mh(p),p}function Cl(a){if(!a.startsWith("http"))return a;var p=Bu(a);return Ll(p)}function Ll(a){var p=new Blob([a],{type:"application/javascript"});return URL.createObjectURL(p)}function Bu(a){return`try { importScripts('`+a+`'); } catch (error) { console.error(error); throw error; -}`}function Iu(a,p,u){p===void 0&&(p=!0);var c=u||new Set;if(a){if(pc(a))c.add(a);else if(pc(a.buffer))c.add(a.buffer);else if(!ArrayBuffer.isView(a)){if(p&&typeof a=="object")for(var l in a)Iu(a[l],p,c)}}return u===void 0?Array.from(c):[]}function pc(a){return a?a instanceof ArrayBuffer||typeof MessagePort!="undefined"&&a instanceof MessagePort||typeof ImageBitmap!="undefined"&&a instanceof ImageBitmap||typeof OffscreenCanvas!="undefined"&&a instanceof OffscreenCanvas:!1}var zc=function(){},Rd=function(){function a(p){this.terminated=!1,this.loadableURL="";var u=p.name,c=p.source,l=p.url;vh(c||l),this.name=u,this.source=c,this.url=l,this.onMessage=zc,this.onError=function(g){return console.log(g)},this.worker=this.createBrowserWorker()}return a.isSupported=function(){return typeof Worker!="undefined"},a.prototype.destroy=function(){this.onMessage=zc,this.onError=zc,this.worker.terminate(),this.terminated=!0},Object.defineProperty(a.prototype,"isRunning",{get:function(){return!!this.onMessage},enumerable:!1,configurable:!0}),a.prototype.postMessage=function(p,u){u=u||Iu(p),this.worker.postMessage(p,u)},a.prototype.getErrorFromErrorEvent=function(p){var u="Failed to load ";return u+="worker "+this.name+" from "+this.url+". ",p.message&&(u+=p.message+" in "),p.lineno&&(u+=":"+p.lineno+":"+p.colno),new Error(u)},a.prototype.createBrowserWorker=function(){var p=this;this.loadableURL=la({source:this.source,url:this.url});var u=new Worker(this.loadableURL,{name:this.name});return u.onmessage=function(c){c.data?p.onMessage(c.data):p.onError(new Error("No data received"))},u.onerror=function(c){p.onError(p.getErrorFromErrorEvent(c)),p.terminated=!0},u.onmessageerror=function(c){return console.error("worker "+p.name+", message error: "+c)},u},a}(),X=Rd,ne=function(){return ne=Object.assign||function(a){for(var p,u=1,c=arguments.length;u0&&g[g.length-1])&&(te[0]===6||te[0]===2)){u=0;continue}if(te[0]===3&&(!g||te[1]>g[0]&&te[1]this.getMaxConcurrency();u?(p.destroy(),this.count--):this.idleQueue.push(p),this.isDestroyed||this.startQueuedJob()},a.prototype.getAvailableWorker=function(){if(this.idleQueue.length>0)return this.idleQueue.shift()||null;if(this.count=a.length&&(a=void 0),{value:a&&a[c++],done:!a}}};throw new TypeError(p?"Object is not iterable.":"Symbol.iterator is not defined.")},Zr={maxConcurrency:3,maxMobileConcurrency:1,onDebug:function(){},reuseWorkers:!0},fr=function(){function a(p){this.workerPools=new Map,this.props=en({},Zr),this.setProps(p),this.workerPools=new Map}return a.isSupported=function(){return X.isSupported()},a.getWorkerFarm=function(p){return p===void 0&&(p={}),a.workerFarm=a.workerFarm||new a({}),a.workerFarm.setProps(p),a.workerFarm},a.prototype.destroy=function(){var p,u;try{for(var c=Yn(this.workerPools.values()),l=c.next();!l.done;l=c.next()){var g=l.value;g.destroy()}}catch(T){p={error:T}}finally{try{l&&!l.done&&(u=c.return)&&u.call(c)}finally{if(p)throw p.error}}},a.prototype.setProps=function(p){var u,c;this.props=en(en({},this.props),p);try{for(var l=Yn(this.workerPools.values()),g=l.next();!g.done;g=l.next()){var T=g.value;T.setProps(this.getWorkerPoolProps())}}catch(B){u={error:B}}finally{try{g&&!g.done&&(c=l.return)&&c.call(l)}finally{if(u)throw u.error}}},a.prototype.getWorkerPool=function(p){var u=p.name,c=p.source,l=p.url,g=this.workerPools.get(u);return g||(g=new Rt({name:u,source:c,url:l}),g.setProps(this.getWorkerPoolProps()),this.workerPools.set(u,g)),g},a.prototype.getWorkerPoolProps=function(){return{maxConcurrency:this.props.maxConcurrency,maxMobileConcurrency:this.props.maxMobileConcurrency,reuseWorkers:this.props.reuseWorkers,onDebug:this.props.onDebug}},a}(),es=fr,Xo=new Map,Ss=function(){function a(){}return Object.defineProperty(a,"onmessage",{set:function(p){self.onmessage=function(u){if(qs(u)){var c=u.data,l=c.type,g=c.payload;p(l,g)}}},enumerable:!1,configurable:!0}),a.addEventListener=function(p){var u=Xo.get(p);u||(u=function(c){if(qs(c)){var l=c.data,g=l.type,T=l.payload;p(g,T)}}),self.addEventListener("message",u)},a.removeEventListener=function(p){var u=Xo.get(p);Xo.delete(p),self.removeEventListener("message",u)},a.postMessage=function(p,u){if(self){var c={source:"Worker thread",type:p,payload:u},l=Iu(u);self.postMessage(c,l)}},a}(),oa=null;function qs(a){var p=a.type,u=a.data;return p==="message"&&u&&typeof u.source=="string"&&u.source==="Main thread"}function Wo(a){return JSON.parse(Ws(a))}function Ws(a){var p=new Set;return JSON.stringify(a,function(u,c){if(typeof c=="object"&&c!==null){if(p.has(c))try{return JSON.parse(JSON.stringify(c))}catch(l){return}p.add(c)}return c})}function za(a){return""+a.name}function yl(a,p){p===void 0&&(p={});var u=p[a.id]||{},c=a.name+".worker.js",l=u.workerUrl;return p._workerType==="test"&&(l=a.module+"/dist/"+c),l||(l="https://unpkg.com/"+a.module+"/dist/"+c),assert(l),l}var nu=function(a,p,u,c){function l(g){return g instanceof u?g:new u(function(T){T(g)})}return new(u||(u=Promise))(function(g,T){function B(Me){try{te(c.next(Me))}catch(Ge){T(Ge)}}function G(Me){try{te(c.throw(Me))}catch(Ge){T(Ge)}}function te(Me){Me.done?g(Me.value):l(Me.value).then(B,G)}te((c=c.apply(a,p||[])).next())})},xu=function(a,p){var u={label:0,sent:function(){if(g[0]&1)throw g[1];return g[1]},trys:[],ops:[]},c,l,g,T;return T={next:B(0),throw:B(1),return:B(2)},typeof Symbol=="function"&&(T[Symbol.iterator]=function(){return this}),T;function B(te){return function(Me){return G([te,Me])}}function G(te){if(c)throw new TypeError("Generator is already executing.");for(;u;)try{if(c=1,l&&(g=te[0]&2?l.return:te[0]?l.throw||((g=l.return)&&g.call(l),0):l.next)&&!(g=g.call(l,te[1])).done)return g;switch(l=0,g&&(te=[te[0]&2,g.value]),te[0]){case 0:case 1:g=te;break;case 4:return u.label++,{value:te[1],done:!1};case 5:u.label++,l=te[1],te=[0];continue;case 7:te=u.ops.pop(),u.trys.pop();continue;default:if(g=u.trys,!(g=g.length>0&&g[g.length-1])&&(te[0]===6||te[0]===2)){u=0;continue}if(te[0]===3&&(!g||te[1]>g[0]&&te[1]0){if(this._values.length>0)throw new Error("Illegal internal state");var u=this._settlers.shift();p instanceof Error?u.reject(p):u.resolve({value:p})}else this._values.push(p)},a.prototype.close=function(){for(;this._settlers.length>0;){var p=this._settlers.shift();p.resolve({done:!0})}this._closed=!0},a.prototype.next=function(){var p=this;if(this._values.length>0){var u=this._values.shift();return u instanceof Error?Promise.reject(u):Promise.resolve({done:!1,value:u})}if(this._closed){if(this._settlers.length>0)throw new Error("Illegal internal state");return Promise.resolve({done:!0,value:void 0})}return new Promise(function(c,l){p._settlers.push({resolve:c,reject:l})})},a}(),wc=null,fd=function(a,p,u,c){function l(g){return g instanceof u?g:new u(function(T){T(g)})}return new(u||(u=Promise))(function(g,T){function B(Me){try{te(c.next(Me))}catch(Ge){T(Ge)}}function G(Me){try{te(c.throw(Me))}catch(Ge){T(Ge)}}function te(Me){Me.done?g(Me.value):l(Me.value).then(B,G)}te((c=c.apply(a,p||[])).next())})},Td=function(a,p){var u={label:0,sent:function(){if(g[0]&1)throw g[1];return g[1]},trys:[],ops:[]},c,l,g,T;return T={next:B(0),throw:B(1),return:B(2)},typeof Symbol=="function"&&(T[Symbol.iterator]=function(){return this}),T;function B(te){return function(Me){return G([te,Me])}}function G(te){if(c)throw new TypeError("Generator is already executing.");for(;u;)try{if(c=1,l&&(g=te[0]&2?l.return:te[0]?l.throw||((g=l.return)&&g.call(l),0):l.next)&&!(g=g.call(l,te[1])).done)return g;switch(l=0,g&&(te=[te[0]&2,g.value]),te[0]){case 0:case 1:g=te;break;case 4:return u.label++,{value:te[1],done:!1};case 5:u.label++,l=te[1],te=[0];continue;case 7:te=u.ops.pop(),u.trys.pop();continue;default:if(g=u.trys,!(g=g.length>0&&g[g.length-1])&&(te[0]===6||te[0]===2)){u=0;continue}if(te[0]===3&&(!g||te[1]>g[0]&&te[1]0&&g[g.length-1])&&(te[0]===6||te[0]===2)){u=0;continue}if(te[0]===3&&(!g||te[1]>g[0]&&te[1]0&&(l=1/Math.sqrt(l)),a[0]=p[0]*l,a[1]=p[1]*l,a}function Lm(a,p){return a[0]*p[0]+a[1]*p[1]}function Rm(a,p,u){var c=p[0]*u[1]-p[1]*u[0];return a[0]=a[1]=0,a[2]=c,a}function Sg(a,p,u,c){var l=p[0],g=p[1];return a[0]=l+c*(u[0]-l),a[1]=g+c*(u[1]-g),a}function Wm(a,p){p=p||1;var u=glMatrix.RANDOM()*2*Math.PI;return a[0]=Math.cos(u)*p,a[1]=Math.sin(u)*p,a}function Gp(a,p,u){var c=p[0],l=p[1];return a[0]=u[0]*c+u[2]*l,a[1]=u[1]*c+u[3]*l,a}function P0(a,p,u){var c=p[0],l=p[1];return a[0]=u[0]*c+u[2]*l+u[4],a[1]=u[1]*c+u[3]*l+u[5],a}function wp(a,p,u){var c=p[0],l=p[1];return a[0]=u[0]*c+u[3]*l+u[6],a[1]=u[1]*c+u[4]*l+u[7],a}function Xf(a,p,u){var c=p[0],l=p[1];return a[0]=u[0]*c+u[4]*l+u[12],a[1]=u[1]*c+u[5]*l+u[13],a}function Zh(a,p,u,c){var l=p[0]-u[0],g=p[1]-u[1],T=Math.sin(c),B=Math.cos(c);return a[0]=l*B-g*T+u[0],a[1]=l*T+g*B+u[1],a}function a0(a,p){var u=a[0],c=a[1],l=p[0],g=p[1],T=Math.sqrt(u*u+c*c)*Math.sqrt(l*l+g*g),B=T&&(u*l+c*g)/T;return Math.acos(Math.min(Math.max(B,-1),1))}function k0(a){return a[0]=0,a[1]=0,a}function Zg(a){return"vec2("+a[0]+", "+a[1]+")"}function Vm(a,p){return a[0]===p[0]&&a[1]===p[1]}function m0(a,p){var u=a[0],c=a[1],l=p[0],g=p[1];return Math.abs(u-l)<=glMatrix.EPSILON*Math.max(1,Math.abs(u),Math.abs(l))&&Math.abs(c-g)<=glMatrix.EPSILON*Math.max(1,Math.abs(c),Math.abs(g))}var Gm=null,$d=Hf,Y0=null,Wg=null,e0=null,_m=null,Um=null,yp=function(){var a=Zd();return function(p,u,c,l,g,T){var B,G;for(u||(u=2),c||(c=0),l?G=Math.min(l*u+c,p.length):G=p.length,B=c;B0&&arguments[0]!==void 0?arguments[0]:{};(0,bt.Z)(this,a),(0,bn.Z)(this,"lastFlip",-1),(0,bn.Z)(this,"miter",zf(0,0)),(0,bn.Z)(this,"started",!1),(0,bn.Z)(this,"dash",!1),(0,bn.Z)(this,"totalDistance",0),(0,bn.Z)(this,"currentIndex",0),this.join=p.join||"miter",this.cap=p.cap||"butt",this.miterLimit=p.miterLimit||10,this.thickness=p.thickness||1,this.dash=p.dash||!1,this.complex={positions:[],indices:[],normals:[],startIndex:0,indexes:[]}}return(0,Ue.Z)(a,[{key:"extrude_gaode2",value:function(u,c){var l=this.complex;if(u.length<=1)return l;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var g=u.length,T=l.startIndex,B=1;Bthis.miterLimit&&(Vc=!0)}Vc?(Mt.push(this.normal[0],this.normal[1],0),Mt.push(Wu[0],Wu[1],0),St.push(g[0],g[1],g[2]|0,this.totalDistance,-this.thickness*Pu,g[2]|0),this.complex.indexes.push(this.currentIndex),St.push(g[0],g[1],g[2]|0,this.totalDistance,this.thickness*Pu,g[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,Ge.push.apply(Ge,(0,kr.Z)(this.lastFlip!==-Pu?[c,c+2,c+3]:[c+2,c+1,c+3])),Ge.push(c+2,c+3,c+4),_e(sm,Pg),bf(this.normal,sm),Mt.push(this.normal[0],this.normal[1],0),St.push(g[0],g[1],g[2]|0,this.totalDistance,-this.thickness*Pu,g[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,Me+=3):(this.extrusions(St,Mt,g,Wu,Wl,this.totalDistance),Ge.push.apply(Ge,(0,kr.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),Pu=-1,bf(this.normal,Wu),Me+=2),this.lastFlip=Pu}else{if(_e(this.normal,Ap),In){var ca=Zd(),Ia=Zd();$d(Ia,Ap,this.normal),Bp(ca,Ap,this.normal),Mt.push(Ia[0],Ia[1],0),Mt.push(ca[0],ca[1],0),St.push(g[0],g[1],g[2]|0,this.totalDistance,this.thickness,g[2]|0),this.complex.indexes.push(this.currentIndex),St.push(g[0],g[1],g[2]|0,this.totalDistance,this.thickness,g[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(St,Mt,g,this.normal,this.thickness,this.totalDistance);Ge.push.apply(Ge,(0,kr.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),Me+=2}return Me}},{key:"simpleSegment",value:function(u,c,l,g,T){var B=0,G=u.indices,te=u.positions,Me=u.normals,Ge=Mu([g[0],g[1]]),St=Mu([l[0],l[1]]);at(Ap,Ge,St);var Mt=0;if(this.dash&&(Mt=this.lineSegmentDistance(Ge,St),this.totalDistance+=Mt),this.normal||(this.normal=Zd(),_e(this.normal,Ap)),this.started||(this.started=!0,this.extrusions(te,Me,l,this.normal,this.thickness,this.totalDistance-Mt)),G.push(c+0,c+1,c+2),!T)_e(this.normal,Ap),this.extrusions(te,Me,g,this.normal,this.thickness,this.totalDistance),G.push.apply(G,(0,kr.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),B+=2;else{var In=Mu([T[0],T[1]]);gn(Ge,In)&&Bp(In,Ge,Qg(In,Hf(In,Ge,St))),at(Pg,In,Ge);var kn=H(pe,Zd(),Ap,Pg,this.thickness),Sr=(0,Qn.Z)(kn,2),_i=Sr[0],Vo=Sr[1],zo=Lm(pe,this.normal)<0?-1:1;this.extrusions(te,Me,g,Vo,_i,this.totalDistance),G.push.apply(G,(0,kr.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),zo=-1,bf(this.normal,Vo),B+=2,this.lastFlip=zo}return B}},{key:"segment",value:function(u,c,l,g,T){var B=0,G=u.indices,te=u.positions,Me=u.normals,Ge=this.cap==="square",St=this.join==="bevel",Mt=Mu([g[0],g[1]]),In=Mu([l[0],l[1]]);at(Ap,Mt,In);var kn=0;if(this.dash&&(kn=this.lineSegmentDistance(Mt,In),this.totalDistance+=kn),this.normal||(this.normal=Zd(),_e(this.normal,Ap)),!this.started)if(this.started=!0,Ge){var Sr=Zd(),_i=Zd();Bp(Sr,this.normal,Ap),Bp(_i,this.normal,Ap),Me.push(_i[0],_i[1],0),Me.push(Sr[0],Sr[1],0),te.push(l[0],l[1],l[2]|0,this.totalDistance-kn,-this.thickness,l[2]|0),this.complex.indexes.push(this.currentIndex),te.push(l[0],l[1],l[2]|0,this.totalDistance-kn,this.thickness,l[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(te,Me,l,this.normal,this.thickness,this.totalDistance-kn);if(G.push(c+0,c+1,c+2),T){var Ks=Mu([T[0],T[1]]);gn(Mt,Ks)&&Bp(Ks,Mt,Qg(Ks,Hf(Ks,Mt,In))),at(Pg,Ks,Mt);var ca=H(pe,Zd(),Ap,Pg,this.thickness),Ia=(0,Qn.Z)(ca,2),al=Ia[0],jl=Ia[1],Wl=Lm(pe,this.normal)<0?-1:1,Wu=St;if(!Wu&&this.join==="miter"){var Pu=al;Pu>this.miterLimit&&(Wu=!0)}Wu?(Me.push(this.normal[0],this.normal[1],0),Me.push(jl[0],jl[1],0),te.push(g[0],g[1],g[2]|0,this.totalDistance,-this.thickness*Wl,g[2]|0),this.complex.indexes.push(this.currentIndex),te.push(g[0],g[1],g[2]|0,this.totalDistance,this.thickness*Wl,g[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,G.push.apply(G,(0,kr.Z)(this.lastFlip!==-Wl?[c,c+2,c+3]:[c+2,c+1,c+3])),G.push(c+2,c+3,c+4),_e(sm,Pg),bf(this.normal,sm),Me.push(this.normal[0],this.normal[1],0),te.push(g[0],g[1],g[2]|0,this.totalDistance,-this.thickness*Wl,g[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,B+=3):(this.extrusions(te,Me,g,jl,al,this.totalDistance),G.push.apply(G,(0,kr.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),Wl=-1,bf(this.normal,jl),B+=2),this.lastFlip=Wl}else{if(_e(this.normal,Ap),Ge){var Vo=Zd(),zo=Zd();$d(zo,Ap,this.normal),Bp(Vo,Ap,this.normal),Me.push(zo[0],zo[1],0),Me.push(Vo[0],Vo[1],0),te.push(g[0],g[1],g[2]|0,this.totalDistance,this.thickness,g[2]|0),this.complex.indexes.push(this.currentIndex),te.push(g[0],g[1],g[2]|0,this.totalDistance,this.thickness,g[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(te,Me,g,this.normal,this.thickness,this.totalDistance);G.push.apply(G,(0,kr.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),B+=2}return B}},{key:"extrusions",value:function(u,c,l,g,T,B){c.push(g[0],g[1],0),c.push(g[0],g[1],0),u.push(l[0],l[1],l[2]|0,B,-T,l[2]|0),this.complex.indexes.push(this.currentIndex),u.push(l[0],l[1],l[2]|0,B,T,l[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}},{key:"lineSegmentDistance",value:function(u,c){var l=c[0]-u[0],g=c[1]-u[1];return Math.sqrt(l*l+g*g)}}]),a}(),It=85.0511287798;function Ut(a){var p=a.coordinates,u=a.originCoordinates,c=a.version,l=new Xe({dash:!0,join:"bevel"});if(c==="GAODE2.x"){var g=p;Array.isArray(g[0][0])||(g=[p]);var T=u;Array.isArray(T[0][0])||(T=[u]);for(var B=0;BIt&&(u=It),p<-It&&(u=-It),[Math.PI*a/180+Math.PI,Math.PI-Math.log(Math.tan(Math.PI*.25+Math.PI*u/180*.5))]}function mn(a,p){return[(a-Math.PI)*180/Math.PI,(Math.atan(Math.exp(Math.PI-p))-Math.PI*.25)*2*180/Math.PI]}var On=function(){var a=(0,ka.Z)(Qi().mark(function p(u){var c,l,g,T,B,G,te,Me,Ge;return Qi().wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return c=u.descriptors,l=u.features,g=u.enablePicking,T=u.iconMap,B={a_Color:Oc,a_Position:ad,filter:yd,a_vertexId:Bd,a_PickingColor:function(kn){var Sr=kn.id;return g?Wi(Sr):[0,0,0]},a_DistanceAndIndex:function(kn,Sr,_i,Vo,zo,Ks){return Ks===void 0?[_i[3],10]:[_i[3],Ks]},a_Total_Distance:function(kn,Sr,_i){return[_i[5]]},a_Size:function(kn){var Sr=kn.size,_i=Sr===void 0?1:Sr;return Array.isArray(_i)?[_i[0],_i[1]]:[_i,0]},a_Normal:function(kn,Sr,_i,Vo,zo){return zo},a_Miter:function(kn,Sr,_i){return[_i[4]]},a_iconMapUV:function(kn){var Sr=kn.texture,_i=T[Sr]||{x:0,y:0},Vo=_i.x,zo=_i.y;return[Vo,zo]}},G={sizePerElement:0,elements:[]},te=0,Me=[],Ge=3,l.forEach(function(In,kn){var Sr=Ut(In),_i=Sr.indices,Vo=Sr.vertices,zo=Sr.normals,Ks=Sr.size,ca=Sr.indexes;_i.forEach(function(Wl){Me.push(Wl+te)}),Ge=Ks;var Ia=Vo.length/Ks;G.sizePerElement=Ge,G.elements.push({featureIdx:kn,vertices:Vo,normals:zo,offset:te}),te+=Ia;for(var al=function(Wu){var Pu=(zo==null?void 0:zo.slice(Wu*3,Wu*3+3))||[],Vc=Vo.slice(Wu*Ks,Wu*Ks+Ks),dd=0;ca&&ca[Wu]!==void 0&&(dd=ca[Wu]),c.forEach(function(Kd){if(Kd&&B[Kd.name]){var Hp;(Hp=Kd.buffer.data).push.apply(Hp,(0,kr.Z)(B[Kd.name](In,kn,Vc,Wu,Pu,dd)))}})},jl=0;jl0}).forEach(function(_i,Vo){var zo=bi(_i[B]);(0,ct.flattenEach)(zo,function(Ks){var ca=(0,Pt.getCoords)(Ks),Ia=(0,Ce.Z)((0,Ce.Z)({},_i),{},{_id:Vo,coordinates:ca});G.push(Ia)})}),{dataArray:G};for(var te=0;te>>0}function Ls(a,p){return p===void 0?null:(0,Ro.Z)(a.properties[p])*1==="number"?a.properties[p]*1:a.properties&&a.properties[p]?hs(a.properties[p]+"")%1000019:null}function Ye(a,p){var u=[],c={};return a.features?(a.features=a.features.filter(function(l){var g=l.geometry;return l!=null&&g&&g.type&&g.coordinates&&g.coordinates.length>0}),a=bi(a),a.features.length===0?{dataArray:[],featureKeys:c}:((0,ct.flattenEach)(a,function(l,g){var T=Ls(l,p==null?void 0:p.featureId);T===null&&(T=g);var B=T,G=(0,Pt.getCoords)(l),te=(0,Ce.Z)((0,Ce.Z)({},l.properties),{},{coordinates:G,_id:B});u.push(te)}),{dataArray:u,featureKeys:c})):(a.features=[],{dataArray:[]})}function gt(a,p,u,c){for(var l=c,g=u-p>>1,T=u-p,B,G=a[p],te=a[p+1],Me=a[u],Ge=a[u+1],St=p+3;Stl)B=St,l=Mt;else if(Mt===l){var In=Math.abs(St-g);Inc&&(B-p>3&>(a,p,B,c),a[B+2]=l,u-B>3&>(a,B,u,c))}function Ft(a,p,u,c,l,g){var T=l-u,B=g-c;if(T!==0||B!==0){var G=((a-u)*T+(p-c)*B)/(T*T+B*B);G>1?(u=l,c=g):G>0&&(u+=T*G,c+=B*G)}return T=a-u,B=p-c,T*T+B*B}function Dt(a,p,u,c){var l={id:typeof a=="undefined"?null:a,type:p,geometry:u,tags:c,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return $t(l),l}function $t(a){var p=a.geometry,u=a.type;if(u==="Point"||u==="MultiPoint"||u==="LineString")Gt(a,p);else if(u==="Polygon"||u==="MultiLineString")for(var c=0;c0&&(c?T+=(l*te-G*g)/2:T+=Math.sqrt(Math.pow(G-l,2)+Math.pow(te-g,2))),l=G,g=te}var Me=p.length-3;p[2]=1,gt(p,0,Me,u),p[Me+2]=1,p.size=Math.abs(T),p.start=0,p.end=p.size}function qn(a,p,u,c){for(var l=0;l1?1:u}function kt(a,p,u,c,l,g,T,B){if(u/=p,c/=p,g>=u&&T=c)return null;for(var G=[],te=0;te=u&&In=c)continue;var kn=[];if(St==="Point"||St==="MultiPoint")er(Ge,kn,u,c,l);else if(St==="LineString")An(Ge,kn,u,c,l,!1,B.lineMetrics);else if(St==="MultiLineString")cr(Ge,kn,u,c,l,!1);else if(St==="Polygon")cr(Ge,kn,u,c,l,!0);else if(St==="MultiPolygon")for(var Sr=0;Sr=u&&T<=c&&(p.push(a[g]),p.push(a[g+1]),p.push(a[g+2]))}}function An(a,p,u,c,l,g,T){for(var B=rr(a),G=l===0?Ai:De,te=a.start,Me,Ge,St=0;Stu&&(Ge=G(B,Mt,In,Sr,_i,u),T&&(B.start=te+Me*Ge)):Vo>c?zo=u&&(Ge=G(B,Mt,In,Sr,_i,u),Ks=!0),zo>c&&Vo<=c&&(Ge=G(B,Mt,In,Sr,_i,c),Ks=!0),!g&&Ks&&(T&&(B.end=te+Me*Ge),p.push(B),B=rr(a)),T&&(te+=Me)}var ca=a.length-3;Mt=a[ca],In=a[ca+1],kn=a[ca+2],Vo=l===0?Mt:In,Vo>=u&&Vo<=c&&Br(B,Mt,In,kn),ca=B.length-3,g&&ca>=3&&(B[ca]!==B[0]||B[ca+1]!==B[1])&&Br(B,B[0],B[1],B[2]),B.length&&p.push(B)}function rr(a){var p=[];return p.size=a.size,p.start=a.start,p.end=a.end,p}function cr(a,p,u,c,l,g){for(var T=0;TT.maxX&&(T.maxX=Me),Ge>T.maxY&&(T.maxY=Ge)}return T}function To(a,p,u,c){var l=p.geometry,g=p.type,T=[];if(g==="Point"||g==="MultiPoint")for(var B=0;B0&&p.size<(l?T:c)){u.numPoints+=p.length/3;return}for(var B=[],G=0;GT)&&(u.numSimplified++,B.push(p[G]),B.push(p[G+1])),u.numPoints++;l&&xi(B,g),a.push(B)}function xi(a,p){for(var u=0,c=0,l=a.length,g=l-2;c0===p)for(c=0,l=a.length;c24)throw new Error("maxZoom should be in the 0-24 range");if(p.promoteId&&p.generateId)throw new Error("promoteId and generateId cannot be used together.");var c=Pr(a,p);this.tiles={},this.tileCoords=[],u&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",p.indexMaxZoom,p.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),c=Zo(c,p),c.length&&this.splitTile(c,0,0,0),u&&(c.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}is.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},is.prototype.splitTile=function(a,p,u,c,l,g,T){for(var B=[a,p,u,c],G=this.options,te=G.debug;B.length;){c=B.pop(),u=B.pop(),p=B.pop(),a=B.pop();var Me=1<1&&console.time("creation"),St=this.tiles[Ge]=ha(a,p,u,c,G),this.tileCoords.push({z:p,x:u,y:c}),te)){te>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",p,u,c,St.numFeatures,St.numPoints,St.numSimplified),console.timeEnd("creation"));var Mt="z"+p;this.stats[Mt]=(this.stats[Mt]||0)+1,this.total++}if(St.source=a,l){if(p===G.maxZoom||p===l)continue;var In=1<1&&console.time("clipping");var kn=.5*G.buffer/G.extent,Sr=.5-kn,_i=.5+kn,Vo=1+kn,zo,Ks,ca,Ia,al,jl;zo=Ks=ca=Ia=null,al=kt(a,Me,u-kn,u+_i,0,St.minX,St.maxX,G),jl=kt(a,Me,u+Sr,u+Vo,0,St.minX,St.maxX,G),a=null,al&&(zo=kt(al,Me,c-kn,c+_i,1,St.minY,St.maxY,G),Ks=kt(al,Me,c+Sr,c+Vo,1,St.minY,St.maxY,G),al=null),jl&&(ca=kt(jl,Me,c-kn,c+_i,1,St.minY,St.maxY,G),Ia=kt(jl,Me,c+Sr,c+Vo,1,St.minY,St.maxY,G),jl=null),te>1&&console.timeEnd("clipping"),B.push(zo||[],p+1,u*2,c*2),B.push(Ks||[],p+1,u*2,c*2+1),B.push(ca||[],p+1,u*2+1,c*2),B.push(Ia||[],p+1,u*2+1,c*2+1)}}},is.prototype.getTile=function(a,p,u){var c=this.options,l=c.extent,g=c.debug;if(a<0||a>24)return null;var T=1<1&&console.log("drilling down to z%d-%d-%d",a,p,u);for(var G=a,te=p,Me=u,Ge;!Ge&&G>0;)G--,te=Math.floor(te/2),Me=Math.floor(Me/2),Ge=this.tiles[Ds(G,te,Me)];return!Ge||!Ge.source?null:(g>1&&console.log("found parent tile z%d-%d-%d",G,te,Me),g>1&&console.time("drilling down"),this.splitTile(Ge.source,G,te,Me,a,p,u),g>1&&console.timeEnd("drilling down"),this.tiles[B]?sa(this.tiles[B],l):null)};function Ds(a,p,u){return((1<0)switch(c[0]){case"band":try{a[l]=p[c[1]][u]}catch(g){console.warn("Raster Data err!"),a[l]=0}break;default:Le(c,p,u)}})}function Oe(a){var p=(0,Qn.Z)(a,3),u=p[0],c=p[1],l=c===void 0?-1:c,g=p[2],T=g===void 0?-1:g;if(u===void 0)return console.warn("Express err!"),["+",0,0];var B=u.replace(/\s+/g,"");return[B,l,T]}function et(a){var p=Oe(a),u=p[0],c=p[1],l=p[2];return Array.isArray(c)&&(c=et(a[1])),Array.isArray(l)&&(l=et(a[2])),Gs(u,c,l)}var hn={nd:{type:"operation",expression:["/",["-",["band",1],["band",0]],["+",["band",1],["band",0]]]},rgb:{type:"function",method:Lr}};function Lr(a,p){for(var u=a[0].rasterData,c=a[1].rasterData,l=a[2].rasterData,g=[],T=(p==null?void 0:p.countCut)||[2,98],B=(0,Qn.Z)(T,2),G=B[0],te=B[1],Me=(p==null?void 0:p.RMinMax)||Cn(u,G,te),Ge=(p==null?void 0:p.GMinMax)||Cn(c,G,te),St=(p==null?void 0:p.BMinMax)||Cn(l,G,te),Mt=0;Mt"),IRendererService:Symbol.for("IRendererService"),IShaderModuleService:Symbol.for("IShaderModuleService"),IIconService:Symbol.for("IIconService"),IFontService:Symbol.for("IFontService"),IInteractionService:Symbol.for("IInteractionService"),IPickingService:Symbol.for("IPickingService"),IControlService:Symbol.for("IControlService"),IStyleAttributeService:Symbol.for("IStyleAttributeService"),ILayer:Symbol.for("ILayer"),ILayerPlugin:Symbol.for("ILayerPlugin"),INormalPass:Symbol.for("INormalPass"),IPostProcessor:Symbol.for("IPostProcessor"),IPostProcessingPass:Symbol.for("IPostProcessingPass"),IFactoryPostProcessingPass:Symbol.for("Factory"),IFactoryNormalPass:Symbol.for("Factory"),IMultiPassRenderer:Symbol.for("IMultiPassRenderer"),SceneID:Symbol.for("SceneID"),MapConfig:Symbol.for("MapConfig")},Ka=m(49296),Ca=m.n(Ka);function Du(a,p){var u=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!u){if(Array.isArray(a)||(u=jc(a))||p&&a&&typeof a.length=="number"){u&&(a=u);var c=0,l=function(){};return{s:l,n:function(){return c>=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(te){throw te},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var te=u.next();return g=te.done,te},e:function(te){T=!0,B=te},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function jc(a,p){if(a){if(typeof a=="string")return Qo(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return Qo(a,p)}}function Qo(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);ug&&(Mt=0,St++),B[kn]={x:Mt,y:Ge+St*Do,width:Do,height:Do,advance:_i},Mt+=Do}});var In=c+l*2;return{mapping:B,xOffset:Mt,yOffset:Ge+St*In,canvasHeight:Fs(Ge+(St+1)*In)}}function wa(a,p,u){var c=0,l=0,g=0,T=[],B={},G=Du(a),te;try{for(G.s();!(te=G.n()).done;){var Me=te.value;if(!B[Me.id]){var Ge=Me.size;c+Ge+p>u&&(Pa(B,T,l),c=0,l=g+l+p,g=0,T=[]),T.push({icon:Me,xOffset:c}),c=c+Ge+p,g=Math.max(g,Ge)}}}catch(Mt){G.e(Mt)}finally{G.f()}T.length>0&&Pa(B,T,l);var St=Fs(g+l+p);return{mapping:B,canvasHeight:St}}function Pa(a,p,u){var c=Du(p),l;try{for(c.s();!(l=c.n()).done;){var g=l.value,T=g.icon,B=g.xOffset;a[T.id]=(0,Ce.Z)((0,Ce.Z)({},T),{},{x:B,y:u,image:T.image,width:T.width,height:T.height})}}catch(G){c.e(G)}finally{c.f()}}function Fs(a){return Math.pow(2,Math.ceil(Math.log2(a)))}var gs,Xi;function sr(a,p){var u=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!u){if(Array.isArray(a)||(u=Rr(a))||p&&a&&typeof a.length=="number"){u&&(a=u);var c=0,l=function(){};return{s:l,n:function(){return c>=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(te){throw te},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var te=u.next();return g=te.done,te},e:function(te){T=!0,B=te},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function Rr(a,p){if(a){if(typeof a=="string")return gi(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return gi(a,p)}}function gi(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);u0&&g[g.length-1])&&(ee[0]===6||ee[0]===2)){u=0;continue}if(ee[0]===3&&(!g||ee[1]>g[0]&&ee[1]this.getMaxConcurrency();u?(p.destroy(),this.count--):this.idleQueue.push(p),this.isDestroyed||this.startQueuedJob()},a.prototype.getAvailableWorker=function(){if(this.idleQueue.length>0)return this.idleQueue.shift()||null;if(this.count=a.length&&(a=void 0),{value:a&&a[c++],done:!a}}};throw new TypeError(p?"Object is not iterable.":"Symbol.iterator is not defined.")},Zr={maxConcurrency:3,maxMobileConcurrency:1,onDebug:function(){},reuseWorkers:!0},fr=function(){function a(p){this.workerPools=new Map,this.props=en({},Zr),this.setProps(p),this.workerPools=new Map}return a.isSupported=function(){return X.isSupported()},a.getWorkerFarm=function(p){return p===void 0&&(p={}),a.workerFarm=a.workerFarm||new a({}),a.workerFarm.setProps(p),a.workerFarm},a.prototype.destroy=function(){var p,u;try{for(var c=Yn(this.workerPools.values()),l=c.next();!l.done;l=c.next()){var g=l.value;g.destroy()}}catch(T){p={error:T}}finally{try{l&&!l.done&&(u=c.return)&&u.call(c)}finally{if(p)throw p.error}}},a.prototype.setProps=function(p){var u,c;this.props=en(en({},this.props),p);try{for(var l=Yn(this.workerPools.values()),g=l.next();!g.done;g=l.next()){var T=g.value;T.setProps(this.getWorkerPoolProps())}}catch(B){u={error:B}}finally{try{g&&!g.done&&(c=l.return)&&c.call(l)}finally{if(u)throw u.error}}},a.prototype.getWorkerPool=function(p){var u=p.name,c=p.source,l=p.url,g=this.workerPools.get(u);return g||(g=new Rt({name:u,source:c,url:l}),g.setProps(this.getWorkerPoolProps()),this.workerPools.set(u,g)),g},a.prototype.getWorkerPoolProps=function(){return{maxConcurrency:this.props.maxConcurrency,maxMobileConcurrency:this.props.maxMobileConcurrency,reuseWorkers:this.props.reuseWorkers,onDebug:this.props.onDebug}},a}(),es=fr,Xo=new Map,Ss=function(){function a(){}return Object.defineProperty(a,"onmessage",{set:function(p){self.onmessage=function(u){if(qs(u)){var c=u.data,l=c.type,g=c.payload;p(l,g)}}},enumerable:!1,configurable:!0}),a.addEventListener=function(p){var u=Xo.get(p);u||(u=function(c){if(qs(c)){var l=c.data,g=l.type,T=l.payload;p(g,T)}}),self.addEventListener("message",u)},a.removeEventListener=function(p){var u=Xo.get(p);Xo.delete(p),self.removeEventListener("message",u)},a.postMessage=function(p,u){if(self){var c={source:"Worker thread",type:p,payload:u},l=Iu(u);self.postMessage(c,l)}},a}(),sa=null;function qs(a){var p=a.type,u=a.data;return p==="message"&&u&&typeof u.source=="string"&&u.source==="Main thread"}function Vo(a){return JSON.parse(js(a))}function js(a){var p=new Set;return JSON.stringify(a,function(u,c){if(typeof c=="object"&&c!==null){if(p.has(c))try{return JSON.parse(JSON.stringify(c))}catch(l){return}p.add(c)}return c})}function za(a){return""+a.name}function yl(a,p){p===void 0&&(p={});var u=p[a.id]||{},c=a.name+".worker.js",l=u.workerUrl;return p._workerType==="test"&&(l=a.module+"/dist/"+c),l||(l="https://unpkg.com/"+a.module+"/dist/"+c),assert(l),l}var nu=function(a,p,u,c){function l(g){return g instanceof u?g:new u(function(T){T(g)})}return new(u||(u=Promise))(function(g,T){function B(Pe){try{ee(c.next(Pe))}catch(Ze){T(Ze)}}function Z(Pe){try{ee(c.throw(Pe))}catch(Ze){T(Ze)}}function ee(Pe){Pe.done?g(Pe.value):l(Pe.value).then(B,Z)}ee((c=c.apply(a,p||[])).next())})},xu=function(a,p){var u={label:0,sent:function(){if(g[0]&1)throw g[1];return g[1]},trys:[],ops:[]},c,l,g,T;return T={next:B(0),throw:B(1),return:B(2)},typeof Symbol=="function"&&(T[Symbol.iterator]=function(){return this}),T;function B(ee){return function(Pe){return Z([ee,Pe])}}function Z(ee){if(c)throw new TypeError("Generator is already executing.");for(;u;)try{if(c=1,l&&(g=ee[0]&2?l.return:ee[0]?l.throw||((g=l.return)&&g.call(l),0):l.next)&&!(g=g.call(l,ee[1])).done)return g;switch(l=0,g&&(ee=[ee[0]&2,g.value]),ee[0]){case 0:case 1:g=ee;break;case 4:return u.label++,{value:ee[1],done:!1};case 5:u.label++,l=ee[1],ee=[0];continue;case 7:ee=u.ops.pop(),u.trys.pop();continue;default:if(g=u.trys,!(g=g.length>0&&g[g.length-1])&&(ee[0]===6||ee[0]===2)){u=0;continue}if(ee[0]===3&&(!g||ee[1]>g[0]&&ee[1]0){if(this._values.length>0)throw new Error("Illegal internal state");var u=this._settlers.shift();p instanceof Error?u.reject(p):u.resolve({value:p})}else this._values.push(p)},a.prototype.close=function(){for(;this._settlers.length>0;){var p=this._settlers.shift();p.resolve({done:!0})}this._closed=!0},a.prototype.next=function(){var p=this;if(this._values.length>0){var u=this._values.shift();return u instanceof Error?Promise.reject(u):Promise.resolve({done:!1,value:u})}if(this._closed){if(this._settlers.length>0)throw new Error("Illegal internal state");return Promise.resolve({done:!0,value:void 0})}return new Promise(function(c,l){p._settlers.push({resolve:c,reject:l})})},a}(),wc=null,hd=function(a,p,u,c){function l(g){return g instanceof u?g:new u(function(T){T(g)})}return new(u||(u=Promise))(function(g,T){function B(Pe){try{ee(c.next(Pe))}catch(Ze){T(Ze)}}function Z(Pe){try{ee(c.throw(Pe))}catch(Ze){T(Ze)}}function ee(Pe){Pe.done?g(Pe.value):l(Pe.value).then(B,Z)}ee((c=c.apply(a,p||[])).next())})},Td=function(a,p){var u={label:0,sent:function(){if(g[0]&1)throw g[1];return g[1]},trys:[],ops:[]},c,l,g,T;return T={next:B(0),throw:B(1),return:B(2)},typeof Symbol=="function"&&(T[Symbol.iterator]=function(){return this}),T;function B(ee){return function(Pe){return Z([ee,Pe])}}function Z(ee){if(c)throw new TypeError("Generator is already executing.");for(;u;)try{if(c=1,l&&(g=ee[0]&2?l.return:ee[0]?l.throw||((g=l.return)&&g.call(l),0):l.next)&&!(g=g.call(l,ee[1])).done)return g;switch(l=0,g&&(ee=[ee[0]&2,g.value]),ee[0]){case 0:case 1:g=ee;break;case 4:return u.label++,{value:ee[1],done:!1};case 5:u.label++,l=ee[1],ee=[0];continue;case 7:ee=u.ops.pop(),u.trys.pop();continue;default:if(g=u.trys,!(g=g.length>0&&g[g.length-1])&&(ee[0]===6||ee[0]===2)){u=0;continue}if(ee[0]===3&&(!g||ee[1]>g[0]&&ee[1]0&&g[g.length-1])&&(ee[0]===6||ee[0]===2)){u=0;continue}if(ee[0]===3&&(!g||ee[1]>g[0]&&ee[1]0&&(l=1/Math.sqrt(l)),a[0]=p[0]*l,a[1]=p[1]*l,a}function Lm(a,p){return a[0]*p[0]+a[1]*p[1]}function Om(a,p,u){var c=p[0]*u[1]-p[1]*u[0];return a[0]=a[1]=0,a[2]=c,a}function Sg(a,p,u,c){var l=p[0],g=p[1];return a[0]=l+c*(u[0]-l),a[1]=g+c*(u[1]-g),a}function $m(a,p){p=p||1;var u=glMatrix.RANDOM()*2*Math.PI;return a[0]=Math.cos(u)*p,a[1]=Math.sin(u)*p,a}function Zp(a,p,u){var c=p[0],l=p[1];return a[0]=u[0]*c+u[2]*l,a[1]=u[1]*c+u[3]*l,a}function k0(a,p,u){var c=p[0],l=p[1];return a[0]=u[0]*c+u[2]*l+u[4],a[1]=u[1]*c+u[3]*l+u[5],a}function Sp(a,p,u){var c=p[0],l=p[1];return a[0]=u[0]*c+u[3]*l+u[6],a[1]=u[1]*c+u[4]*l+u[7],a}function Xf(a,p,u){var c=p[0],l=p[1];return a[0]=u[0]*c+u[4]*l+u[12],a[1]=u[1]*c+u[5]*l+u[13],a}function Zh(a,p,u,c){var l=p[0]-u[0],g=p[1]-u[1],T=Math.sin(c),B=Math.cos(c);return a[0]=l*B-g*T+u[0],a[1]=l*T+g*B+u[1],a}function a0(a,p){var u=a[0],c=a[1],l=p[0],g=p[1],T=Math.sqrt(u*u+c*c)*Math.sqrt(l*l+g*g),B=T&&(u*l+c*g)/T;return Math.acos(Math.min(Math.max(B,-1),1))}function M0(a){return a[0]=0,a[1]=0,a}function Kg(a){return"vec2("+a[0]+", "+a[1]+")"}function Wm(a,p){return a[0]===p[0]&&a[1]===p[1]}function m0(a,p){var u=a[0],c=a[1],l=p[0],g=p[1];return Math.abs(u-l)<=glMatrix.EPSILON*Math.max(1,Math.abs(u),Math.abs(l))&&Math.abs(c-g)<=glMatrix.EPSILON*Math.max(1,Math.abs(c),Math.abs(g))}var Gm=null,$d=Hf,K0=null,Vg=null,e0=null,ym=null,jm=null,yp=function(){var a=Zd();return function(p,u,c,l,g,T){var B,Z;for(u||(u=2),c||(c=0),l?Z=Math.min(l*u+c,p.length):Z=p.length,B=c;B0&&arguments[0]!==void 0?arguments[0]:{};(0,wt.Z)(this,a),(0,bn.Z)(this,"lastFlip",-1),(0,bn.Z)(this,"miter",zf(0,0)),(0,bn.Z)(this,"started",!1),(0,bn.Z)(this,"dash",!1),(0,bn.Z)(this,"totalDistance",0),(0,bn.Z)(this,"currentIndex",0),this.join=p.join||"miter",this.cap=p.cap||"butt",this.miterLimit=p.miterLimit||10,this.thickness=p.thickness||1,this.dash=p.dash||!1,this.complex={positions:[],indices:[],normals:[],startIndex:0,indexes:[]}}return(0,He.Z)(a,[{key:"extrude_gaode2",value:function(u,c){var l=this.complex;if(u.length<=1)return l;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var g=u.length,T=l.startIndex,B=1;Bthis.miterLimit&&(Jc=!0)}Jc?(Mt.push(this.normal[0],this.normal[1],0),Mt.push(ju[0],ju[1],0),St.push(g[0],g[1],g[2]|0,this.totalDistance,-this.thickness*Ku,g[2]|0),this.complex.indexes.push(this.currentIndex),St.push(g[0],g[1],g[2]|0,this.totalDistance,this.thickness*Ku,g[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,Ze.push.apply(Ze,(0,kr.Z)(this.lastFlip!==-Ku?[c,c+2,c+3]:[c+2,c+1,c+3])),Ze.push(c+2,c+3,c+4),_e(sm,Pg),bf(this.normal,sm),Mt.push(this.normal[0],this.normal[1],0),St.push(g[0],g[1],g[2]|0,this.totalDistance,-this.thickness*Ku,g[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,Pe+=3):(this.extrusions(St,Mt,g,ju,Jl,this.totalDistance),Ze.push.apply(Ze,(0,kr.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),Ku=-1,bf(this.normal,ju),Pe+=2),this.lastFlip=Ku}else{if(_e(this.normal,Ip),Tn){var ra=Zd(),La=Zd();$d(La,Ip,this.normal),Bp(ra,Ip,this.normal),Mt.push(La[0],La[1],0),Mt.push(ra[0],ra[1],0),St.push(g[0],g[1],g[2]|0,this.totalDistance,this.thickness,g[2]|0),this.complex.indexes.push(this.currentIndex),St.push(g[0],g[1],g[2]|0,this.totalDistance,this.thickness,g[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(St,Mt,g,this.normal,this.thickness,this.totalDistance);Ze.push.apply(Ze,(0,kr.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),Pe+=2}return Pe}},{key:"simpleSegment",value:function(u,c,l,g,T){var B=0,Z=u.indices,ee=u.positions,Pe=u.normals,Ze=ku([g[0],g[1]]),St=ku([l[0],l[1]]);at(Ip,Ze,St);var Mt=0;if(this.dash&&(Mt=this.lineSegmentDistance(Ze,St),this.totalDistance+=Mt),this.normal||(this.normal=Zd(),_e(this.normal,Ip)),this.started||(this.started=!0,this.extrusions(ee,Pe,l,this.normal,this.thickness,this.totalDistance-Mt)),Z.push(c+0,c+1,c+2),!T)_e(this.normal,Ip),this.extrusions(ee,Pe,g,this.normal,this.thickness,this.totalDistance),Z.push.apply(Z,(0,kr.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),B+=2;else{var Tn=ku([T[0],T[1]]);gn(Ze,Tn)&&Bp(Tn,Ze,Qg(Tn,Hf(Tn,Ze,St))),at(Pg,Tn,Ze);var kn=H(de,Zd(),Ip,Pg,this.thickness),vr=(0,qn.Z)(kn,2),wi=vr[0],zo=vr[1],$o=Lm(de,this.normal)<0?-1:1;this.extrusions(ee,Pe,g,zo,wi,this.totalDistance),Z.push.apply(Z,(0,kr.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),$o=-1,bf(this.normal,zo),B+=2,this.lastFlip=$o}return B}},{key:"segment",value:function(u,c,l,g,T){var B=0,Z=u.indices,ee=u.positions,Pe=u.normals,Ze=this.cap==="square",St=this.join==="bevel",Mt=ku([g[0],g[1]]),Tn=ku([l[0],l[1]]);at(Ip,Mt,Tn);var kn=0;if(this.dash&&(kn=this.lineSegmentDistance(Mt,Tn),this.totalDistance+=kn),this.normal||(this.normal=Zd(),_e(this.normal,Ip)),!this.started)if(this.started=!0,Ze){var vr=Zd(),wi=Zd();Bp(vr,this.normal,Ip),Bp(wi,this.normal,Ip),Pe.push(wi[0],wi[1],0),Pe.push(vr[0],vr[1],0),ee.push(l[0],l[1],l[2]|0,this.totalDistance-kn,-this.thickness,l[2]|0),this.complex.indexes.push(this.currentIndex),ee.push(l[0],l[1],l[2]|0,this.totalDistance-kn,this.thickness,l[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(ee,Pe,l,this.normal,this.thickness,this.totalDistance-kn);if(Z.push(c+0,c+1,c+2),T){var Ks=ku([T[0],T[1]]);gn(Mt,Ks)&&Bp(Ks,Mt,Qg(Ks,Hf(Ks,Mt,Tn))),at(Pg,Ks,Mt);var ra=H(de,Zd(),Ip,Pg,this.thickness),La=(0,qn.Z)(ra,2),vl=La[0],Wl=La[1],Jl=Lm(de,this.normal)<0?-1:1,ju=St;if(!ju&&this.join==="miter"){var Ku=vl;Ku>this.miterLimit&&(ju=!0)}ju?(Pe.push(this.normal[0],this.normal[1],0),Pe.push(Wl[0],Wl[1],0),ee.push(g[0],g[1],g[2]|0,this.totalDistance,-this.thickness*Jl,g[2]|0),this.complex.indexes.push(this.currentIndex),ee.push(g[0],g[1],g[2]|0,this.totalDistance,this.thickness*Jl,g[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,Z.push.apply(Z,(0,kr.Z)(this.lastFlip!==-Jl?[c,c+2,c+3]:[c+2,c+1,c+3])),Z.push(c+2,c+3,c+4),_e(sm,Pg),bf(this.normal,sm),Pe.push(this.normal[0],this.normal[1],0),ee.push(g[0],g[1],g[2]|0,this.totalDistance,-this.thickness*Jl,g[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,B+=3):(this.extrusions(ee,Pe,g,Wl,vl,this.totalDistance),Z.push.apply(Z,(0,kr.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),Jl=-1,bf(this.normal,Wl),B+=2),this.lastFlip=Jl}else{if(_e(this.normal,Ip),Ze){var zo=Zd(),$o=Zd();$d($o,Ip,this.normal),Bp(zo,Ip,this.normal),Pe.push($o[0],$o[1],0),Pe.push(zo[0],zo[1],0),ee.push(g[0],g[1],g[2]|0,this.totalDistance,this.thickness,g[2]|0),this.complex.indexes.push(this.currentIndex),ee.push(g[0],g[1],g[2]|0,this.totalDistance,this.thickness,g[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(ee,Pe,g,this.normal,this.thickness,this.totalDistance);Z.push.apply(Z,(0,kr.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),B+=2}return B}},{key:"extrusions",value:function(u,c,l,g,T,B){c.push(g[0],g[1],0),c.push(g[0],g[1],0),u.push(l[0],l[1],l[2]|0,B,-T,l[2]|0),this.complex.indexes.push(this.currentIndex),u.push(l[0],l[1],l[2]|0,B,T,l[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}},{key:"lineSegmentDistance",value:function(u,c){var l=c[0]-u[0],g=c[1]-u[1];return Math.sqrt(l*l+g*g)}}]),a}(),It=85.0511287798;function Ut(a){var p=a.coordinates,u=a.originCoordinates,c=a.version,l=new Xe({dash:!0,join:"bevel"});if(c==="GAODE2.x"){var g=p;Array.isArray(g[0][0])||(g=[p]);var T=u;Array.isArray(T[0][0])||(T=[u]);for(var B=0;BIt&&(u=It),p<-It&&(u=-It),[Math.PI*a/180+Math.PI,Math.PI-Math.log(Math.tan(Math.PI*.25+Math.PI*u/180*.5))]}function mn(a,p){return[(a-Math.PI)*180/Math.PI,(Math.atan(Math.exp(Math.PI-p))-Math.PI*.25)*2*180/Math.PI]}var On=function(){var a=(0,Pa.Z)(Qi().mark(function p(u){var c,l,g,T,B,Z,ee,Pe,Ze;return Qi().wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return c=u.descriptors,l=u.features,g=u.enablePicking,T=u.iconMap,B={a_Color:Oc,a_Position:ld,filter:yd,a_vertexId:Bd,a_PickingColor:function(kn){var vr=kn.id;return g?ji(vr):[0,0,0]},a_DistanceAndIndex:function(kn,vr,wi,zo,$o,Ks){return Ks===void 0?[wi[3],10]:[wi[3],Ks]},a_Total_Distance:function(kn,vr,wi){return[wi[5]]},a_Size:function(kn){var vr=kn.size,wi=vr===void 0?1:vr;return Array.isArray(wi)?[wi[0],wi[1]]:[wi,0]},a_Normal:function(kn,vr,wi,zo,$o){return $o},a_Miter:function(kn,vr,wi){return[wi[4]]},a_iconMapUV:function(kn){var vr=kn.texture,wi=T[vr]||{x:0,y:0},zo=wi.x,$o=wi.y;return[zo,$o]}},Z={sizePerElement:0,elements:[]},ee=0,Pe=[],Ze=3,l.forEach(function(Tn,kn){var vr=Ut(Tn),wi=vr.indices,zo=vr.vertices,$o=vr.normals,Ks=vr.size,ra=vr.indexes;wi.forEach(function(Jl){Pe.push(Jl+ee)}),Ze=Ks;var La=zo.length/Ks;Z.sizePerElement=Ze,Z.elements.push({featureIdx:kn,vertices:zo,normals:$o,offset:ee}),ee+=La;for(var vl=function(ju){var Ku=($o==null?void 0:$o.slice(ju*3,ju*3+3))||[],Jc=zo.slice(ju*Ks,ju*Ks+Ks),gd=0;ra&&ra[ju]!==void 0&&(gd=ra[ju]),c.forEach(function(Ch){if(Ch&&B[Ch.name]){var og;(og=Ch.buffer.data).push.apply(og,(0,kr.Z)(B[Ch.name](Tn,kn,Jc,ju,Ku,gd)))}})},Wl=0;Wl0}).forEach(function(wi,zo){var $o=_i(wi[B]);(0,ct.flattenEach)($o,function(Ks){var ra=(0,Pt.getCoords)(Ks),La=(0,xe.Z)((0,xe.Z)({},wi),{},{_id:zo,coordinates:ra});Z.push(La)})}),{dataArray:Z};for(var ee=0;ee>>0}function Ls(a,p){return p===void 0?null:(0,Ro.Z)(a.properties[p])*1==="number"?a.properties[p]*1:a.properties&&a.properties[p]?hs(a.properties[p]+"")%1000019:null}function Ye(a,p){var u=[],c={};return a.features?(a.features=a.features.filter(function(l){var g=l.geometry;return l!=null&&g&&g.type&&g.coordinates&&g.coordinates.length>0}),a=_i(a),a.features.length===0?{dataArray:[],featureKeys:c}:((0,ct.flattenEach)(a,function(l,g){var T=Ls(l,p==null?void 0:p.featureId);T===null&&(T=g);var B=T,Z=(0,Pt.getCoords)(l),ee=(0,xe.Z)((0,xe.Z)({},l.properties),{},{coordinates:Z,_id:B});u.push(ee)}),{dataArray:u,featureKeys:c})):(a.features=[],{dataArray:[]})}function mt(a,p,u,c){for(var l=c,g=u-p>>1,T=u-p,B,Z=a[p],ee=a[p+1],Pe=a[u],Ze=a[u+1],St=p+3;Stl)B=St,l=Mt;else if(Mt===l){var Tn=Math.abs(St-g);Tnc&&(B-p>3&&mt(a,p,B,c),a[B+2]=l,u-B>3&&mt(a,B,u,c))}function Ft(a,p,u,c,l,g){var T=l-u,B=g-c;if(T!==0||B!==0){var Z=((a-u)*T+(p-c)*B)/(T*T+B*B);Z>1?(u=l,c=g):Z>0&&(u+=T*Z,c+=B*Z)}return T=a-u,B=p-c,T*T+B*B}function Dt(a,p,u,c){var l={id:typeof a=="undefined"?null:a,type:p,geometry:u,tags:c,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return $t(l),l}function $t(a){var p=a.geometry,u=a.type;if(u==="Point"||u==="MultiPoint"||u==="LineString")Gt(a,p);else if(u==="Polygon"||u==="MultiLineString")for(var c=0;c0&&(c?T+=(l*ee-Z*g)/2:T+=Math.sqrt(Math.pow(Z-l,2)+Math.pow(ee-g,2))),l=Z,g=ee}var Pe=p.length-3;p[2]=1,mt(p,0,Pe,u),p[Pe+2]=1,p.size=Math.abs(T),p.start=0,p.end=p.size}function Jn(a,p,u,c){for(var l=0;l1?1:u}function kt(a,p,u,c,l,g,T,B){if(u/=p,c/=p,g>=u&&T=c)return null;for(var Z=[],ee=0;ee=u&&Tn=c)continue;var kn=[];if(St==="Point"||St==="MultiPoint")er(Ze,kn,u,c,l);else if(St==="LineString")In(Ze,kn,u,c,l,!1,B.lineMetrics);else if(St==="MultiLineString")cr(Ze,kn,u,c,l,!1);else if(St==="Polygon")cr(Ze,kn,u,c,l,!0);else if(St==="MultiPolygon")for(var vr=0;vr=u&&T<=c&&(p.push(a[g]),p.push(a[g+1]),p.push(a[g+2]))}}function In(a,p,u,c,l,g,T){for(var B=rr(a),Z=l===0?Ai:Ee,ee=a.start,Pe,Ze,St=0;Stu&&(Ze=Z(B,Mt,Tn,vr,wi,u),T&&(B.start=ee+Pe*Ze)):zo>c?$o=u&&(Ze=Z(B,Mt,Tn,vr,wi,u),Ks=!0),$o>c&&zo<=c&&(Ze=Z(B,Mt,Tn,vr,wi,c),Ks=!0),!g&&Ks&&(T&&(B.end=ee+Pe*Ze),p.push(B),B=rr(a)),T&&(ee+=Pe)}var ra=a.length-3;Mt=a[ra],Tn=a[ra+1],kn=a[ra+2],zo=l===0?Mt:Tn,zo>=u&&zo<=c&&Br(B,Mt,Tn,kn),ra=B.length-3,g&&ra>=3&&(B[ra]!==B[0]||B[ra+1]!==B[1])&&Br(B,B[0],B[1],B[2]),B.length&&p.push(B)}function rr(a){var p=[];return p.size=a.size,p.start=a.start,p.end=a.end,p}function cr(a,p,u,c,l,g){for(var T=0;TT.maxX&&(T.maxX=Pe),Ze>T.maxY&&(T.maxY=Ze)}return T}function To(a,p,u,c){var l=p.geometry,g=p.type,T=[];if(g==="Point"||g==="MultiPoint")for(var B=0;B0&&p.size<(l?T:c)){u.numPoints+=p.length/3;return}for(var B=[],Z=0;ZT)&&(u.numSimplified++,B.push(p[Z]),B.push(p[Z+1])),u.numPoints++;l&&bi(B,g),a.push(B)}function bi(a,p){for(var u=0,c=0,l=a.length,g=l-2;c0===p)for(c=0,l=a.length;c24)throw new Error("maxZoom should be in the 0-24 range");if(p.promoteId&&p.generateId)throw new Error("promoteId and generateId cannot be used together.");var c=Pr(a,p);this.tiles={},this.tileCoords=[],u&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",p.indexMaxZoom,p.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),c=Zo(c,p),c.length&&this.splitTile(c,0,0,0),u&&(c.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}os.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},os.prototype.splitTile=function(a,p,u,c,l,g,T){for(var B=[a,p,u,c],Z=this.options,ee=Z.debug;B.length;){c=B.pop(),u=B.pop(),p=B.pop(),a=B.pop();var Pe=1<1&&console.time("creation"),St=this.tiles[Ze]=ha(a,p,u,c,Z),this.tileCoords.push({z:p,x:u,y:c}),ee)){ee>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",p,u,c,St.numFeatures,St.numPoints,St.numSimplified),console.timeEnd("creation"));var Mt="z"+p;this.stats[Mt]=(this.stats[Mt]||0)+1,this.total++}if(St.source=a,l){if(p===Z.maxZoom||p===l)continue;var Tn=1<1&&console.time("clipping");var kn=.5*Z.buffer/Z.extent,vr=.5-kn,wi=.5+kn,zo=1+kn,$o,Ks,ra,La,vl,Wl;$o=Ks=ra=La=null,vl=kt(a,Pe,u-kn,u+wi,0,St.minX,St.maxX,Z),Wl=kt(a,Pe,u+vr,u+zo,0,St.minX,St.maxX,Z),a=null,vl&&($o=kt(vl,Pe,c-kn,c+wi,1,St.minY,St.maxY,Z),Ks=kt(vl,Pe,c+vr,c+zo,1,St.minY,St.maxY,Z),vl=null),Wl&&(ra=kt(Wl,Pe,c-kn,c+wi,1,St.minY,St.maxY,Z),La=kt(Wl,Pe,c+vr,c+zo,1,St.minY,St.maxY,Z),Wl=null),ee>1&&console.timeEnd("clipping"),B.push($o||[],p+1,u*2,c*2),B.push(Ks||[],p+1,u*2,c*2+1),B.push(ra||[],p+1,u*2+1,c*2),B.push(La||[],p+1,u*2+1,c*2+1)}}},os.prototype.getTile=function(a,p,u){var c=this.options,l=c.extent,g=c.debug;if(a<0||a>24)return null;var T=1<1&&console.log("drilling down to z%d-%d-%d",a,p,u);for(var Z=a,ee=p,Pe=u,Ze;!Ze&&Z>0;)Z--,ee=Math.floor(ee/2),Pe=Math.floor(Pe/2),Ze=this.tiles[Ds(Z,ee,Pe)];return!Ze||!Ze.source?null:(g>1&&console.log("found parent tile z%d-%d-%d",Z,ee,Pe),g>1&&console.time("drilling down"),this.splitTile(Ze.source,Z,ee,Pe,a,p,u),g>1&&console.timeEnd("drilling down"),this.tiles[B]?aa(this.tiles[B],l):null)};function Ds(a,p,u){return((1<0)switch(c[0]){case"band":try{a[l]=p[c[1]][u]}catch(g){console.warn("Raster Data err!"),a[l]=0}break;default:Le(c,p,u)}})}function Me(a){var p=(0,qn.Z)(a,3),u=p[0],c=p[1],l=c===void 0?-1:c,g=p[2],T=g===void 0?-1:g;if(u===void 0)return console.warn("Express err!"),["+",0,0];var B=u.replace(/\s+/g,"");return[B,l,T]}function et(a){var p=Me(a),u=p[0],c=p[1],l=p[2];return Array.isArray(c)&&(c=et(a[1])),Array.isArray(l)&&(l=et(a[2])),Gs(u,c,l)}var hn={nd:{type:"operation",expression:["/",["-",["band",1],["band",0]],["+",["band",1],["band",0]]]},rgb:{type:"function",method:Lr}};function Lr(a,p){for(var u=a[0].rasterData,c=a[1].rasterData,l=a[2].rasterData,g=[],T=(p==null?void 0:p.countCut)||[2,98],B=(0,qn.Z)(T,2),Z=B[0],ee=B[1],Pe=(p==null?void 0:p.RMinMax)||Cn(u,Z,ee),Ze=(p==null?void 0:p.GMinMax)||Cn(c,Z,ee),St=(p==null?void 0:p.BMinMax)||Cn(l,Z,ee),Mt=0;Mt"),IRendererService:Symbol.for("IRendererService"),IShaderModuleService:Symbol.for("IShaderModuleService"),IIconService:Symbol.for("IIconService"),IFontService:Symbol.for("IFontService"),IInteractionService:Symbol.for("IInteractionService"),IPickingService:Symbol.for("IPickingService"),IControlService:Symbol.for("IControlService"),IStyleAttributeService:Symbol.for("IStyleAttributeService"),ILayer:Symbol.for("ILayer"),ILayerPlugin:Symbol.for("ILayerPlugin"),INormalPass:Symbol.for("INormalPass"),IPostProcessor:Symbol.for("IPostProcessor"),IPostProcessingPass:Symbol.for("IPostProcessingPass"),IFactoryPostProcessingPass:Symbol.for("Factory"),IFactoryNormalPass:Symbol.for("Factory"),IMultiPassRenderer:Symbol.for("IMultiPassRenderer"),SceneID:Symbol.for("SceneID"),MapConfig:Symbol.for("MapConfig")},Ka=m(52155),Ca=m.n(Ka);function Du(a,p){var u=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!u){if(Array.isArray(a)||(u=Wc(a))||p&&a&&typeof a.length=="number"){u&&(a=u);var c=0,l=function(){};return{s:l,n:function(){return c>=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(ee){throw ee},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var ee=u.next();return g=ee.done,ee},e:function(ee){T=!0,B=ee},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function Wc(a,p){if(a){if(typeof a=="string")return Qo(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return Qo(a,p)}}function Qo(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);ug&&(Mt=0,St++),B[kn]={x:Mt,y:Ze+St*Do,width:Do,height:Do,advance:wi},Mt+=Do}});var Tn=c+l*2;return{mapping:B,xOffset:Mt,yOffset:Ze+St*Tn,canvasHeight:Fs(Ze+(St+1)*Tn)}}function wa(a,p,u){var c=0,l=0,g=0,T=[],B={},Z=Du(a),ee;try{for(Z.s();!(ee=Z.n()).done;){var Pe=ee.value;if(!B[Pe.id]){var Ze=Pe.size;c+Ze+p>u&&(ka(B,T,l),c=0,l=g+l+p,g=0,T=[]),T.push({icon:Pe,xOffset:c}),c=c+Ze+p,g=Math.max(g,Ze)}}}catch(Mt){Z.e(Mt)}finally{Z.f()}T.length>0&&ka(B,T,l);var St=Fs(g+l+p);return{mapping:B,canvasHeight:St}}function ka(a,p,u){var c=Du(p),l;try{for(c.s();!(l=c.n()).done;){var g=l.value,T=g.icon,B=g.xOffset;a[T.id]=(0,xe.Z)((0,xe.Z)({},T),{},{x:B,y:u,image:T.image,width:T.width,height:T.height})}}catch(Z){c.e(Z)}finally{c.f()}}function Fs(a){return Math.pow(2,Math.ceil(Math.log2(a)))}var gs,Xi;function sr(a,p){var u=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!u){if(Array.isArray(a)||(u=Rr(a))||p&&a&&typeof a.length=="number"){u&&(a=u);var c=0,l=function(){};return{s:l,n:function(){return c>=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(ee){throw ee},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var ee=u.next();return g=ee.done,ee},e:function(ee){T=!0,B=ee},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function Rr(a,p){if(a){if(typeof a=="string")return gi(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return gi(a,p)}}function gi(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);u0?(u[0]=(B*T+Me*c+G*g-te*l)*2/Ge,u[1]=(G*T+Me*l+te*c-B*g)*2/Ge,u[2]=(te*T+Me*g+B*l-G*c)*2/Ge):(u[0]=(B*T+Me*c+G*g-te*l)*2,u[1]=(G*T+Me*l+te*c-B*g)*2,u[2]=(te*T+Me*g+B*l-G*c)*2),R(a,p,u),a}function ue(a,p){return a[0]=p[12],a[1]=p[13],a[2]=p[14],a}function Pe(a,p){var u=p[0],c=p[1],l=p[2],g=p[4],T=p[5],B=p[6],G=p[8],te=p[9],Me=p[10];return a[0]=Math.hypot(u,c,l),a[1]=Math.hypot(g,T,B),a[2]=Math.hypot(G,te,Me),a}function Qe(a,p){var u=new Sc(3);Pe(u,p);var c=1/u[0],l=1/u[1],g=1/u[2],T=p[0]*c,B=p[1]*l,G=p[2]*g,te=p[4]*c,Me=p[5]*l,Ge=p[6]*g,St=p[8]*c,Mt=p[9]*l,In=p[10]*g,kn=T+Me+In,Sr=0;return kn>0?(Sr=Math.sqrt(kn+1)*2,a[3]=.25*Sr,a[0]=(Ge-Mt)/Sr,a[1]=(St-G)/Sr,a[2]=(B-te)/Sr):T>Me&&T>In?(Sr=Math.sqrt(1+T-Me-In)*2,a[3]=(Ge-Mt)/Sr,a[0]=.25*Sr,a[1]=(B+te)/Sr,a[2]=(St+G)/Sr):Me>In?(Sr=Math.sqrt(1+Me-T-In)*2,a[3]=(St-G)/Sr,a[0]=(B+te)/Sr,a[1]=.25*Sr,a[2]=(Ge+Mt)/Sr):(Sr=Math.sqrt(1+In-T-Me)*2,a[3]=(B-te)/Sr,a[0]=(St+G)/Sr,a[1]=(Ge+Mt)/Sr,a[2]=.25*Sr),a}function wt(a,p,u,c){var l=p[0],g=p[1],T=p[2],B=p[3],G=l+l,te=g+g,Me=T+T,Ge=l*G,St=l*te,Mt=l*Me,In=g*te,kn=g*Me,Sr=T*Me,_i=B*G,Vo=B*te,zo=B*Me,Ks=c[0],ca=c[1],Ia=c[2];return a[0]=(1-(In+Sr))*Ks,a[1]=(St+zo)*Ks,a[2]=(Mt-Vo)*Ks,a[3]=0,a[4]=(St-zo)*ca,a[5]=(1-(Ge+Sr))*ca,a[6]=(kn+_i)*ca,a[7]=0,a[8]=(Mt+Vo)*Ia,a[9]=(kn-_i)*Ia,a[10]=(1-(Ge+In))*Ia,a[11]=0,a[12]=u[0],a[13]=u[1],a[14]=u[2],a[15]=1,a}function Wt(a,p,u,c,l){var g=p[0],T=p[1],B=p[2],G=p[3],te=g+g,Me=T+T,Ge=B+B,St=g*te,Mt=g*Me,In=g*Ge,kn=T*Me,Sr=T*Ge,_i=B*Ge,Vo=G*te,zo=G*Me,Ks=G*Ge,ca=c[0],Ia=c[1],al=c[2],jl=l[0],Wl=l[1],Wu=l[2],Pu=(1-(kn+_i))*ca,Vc=(Mt+Ks)*ca,dd=(In-zo)*ca,Kd=(Mt-Ks)*Ia,Hp=(1-(St+_i))*Ia,gm=(Sr+Vo)*Ia,Fg=(In+zo)*al,mm=(Sr-Vo)*al,b0=(1-(St+kn))*al;return a[0]=Pu,a[1]=Vc,a[2]=dd,a[3]=0,a[4]=Kd,a[5]=Hp,a[6]=gm,a[7]=0,a[8]=Fg,a[9]=mm,a[10]=b0,a[11]=0,a[12]=u[0]+jl-(Pu*jl+Kd*Wl+Fg*Wu),a[13]=u[1]+Wl-(Vc*jl+Hp*Wl+mm*Wu),a[14]=u[2]+Wu-(dd*jl+gm*Wl+b0*Wu),a[15]=1,a}function Rn(a,p){var u=p[0],c=p[1],l=p[2],g=p[3],T=u+u,B=c+c,G=l+l,te=u*T,Me=c*T,Ge=c*B,St=l*T,Mt=l*B,In=l*G,kn=g*T,Sr=g*B,_i=g*G;return a[0]=1-Ge-In,a[1]=Me+_i,a[2]=St-Sr,a[3]=0,a[4]=Me-_i,a[5]=1-te-In,a[6]=Mt+kn,a[7]=0,a[8]=St+Sr,a[9]=Mt-kn,a[10]=1-te-Ge,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}function ur(a,p,u,c,l,g,T){var B=1/(u-p),G=1/(l-c),te=1/(g-T);return a[0]=g*2*B,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=g*2*G,a[6]=0,a[7]=0,a[8]=(u+p)*B,a[9]=(l+c)*G,a[10]=(T+g)*te,a[11]=-1,a[12]=0,a[13]=0,a[14]=T*g*2*te,a[15]=0,a}function zr(a,p,u,c,l){var g=1/Math.tan(p/2),T;return a[0]=g/u,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=g,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[11]=-1,a[12]=0,a[13]=0,a[15]=0,l!=null&&l!==1/0?(T=1/(c-l),a[10]=(l+c)*T,a[14]=2*l*c*T):(a[10]=-1,a[14]=-2*c),a}var hi=zr;function po(a,p,u,c,l){var g=1/Math.tan(p/2),T;return a[0]=g/u,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=g,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[11]=-1,a[12]=0,a[13]=0,a[15]=0,l!=null&&l!==1/0?(T=1/(c-l),a[10]=l*T,a[14]=l*c*T):(a[10]=-1,a[14]=-c),a}function ko(a,p,u,c){var l=Math.tan(p.upDegrees*Math.PI/180),g=Math.tan(p.downDegrees*Math.PI/180),T=Math.tan(p.leftDegrees*Math.PI/180),B=Math.tan(p.rightDegrees*Math.PI/180),G=2/(T+B),te=2/(l+g);return a[0]=G,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=te,a[6]=0,a[7]=0,a[8]=-((T-B)*G*.5),a[9]=(l-g)*te*.5,a[10]=c/(u-c),a[11]=-1,a[12]=0,a[13]=0,a[14]=c*u/(u-c),a[15]=0,a}function Zs(a,p,u,c,l,g,T){var B=1/(p-u),G=1/(c-l),te=1/(g-T);return a[0]=-2*B,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=-2*G,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=2*te,a[11]=0,a[12]=(p+u)*B,a[13]=(l+c)*G,a[14]=(T+g)*te,a[15]=1,a}var Js=Zs;function sl(a,p,u,c,l,g,T){var B=1/(p-u),G=1/(c-l),te=1/(g-T);return a[0]=-2*B,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=-2*G,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=te,a[11]=0,a[12]=(p+u)*B,a[13]=(l+c)*G,a[14]=g*te,a[15]=1,a}function Da(a,p,u,c){var l,g,T,B,G,te,Me,Ge,St,Mt,In=p[0],kn=p[1],Sr=p[2],_i=c[0],Vo=c[1],zo=c[2],Ks=u[0],ca=u[1],Ia=u[2];return Math.abs(In-Ks)0&&(Mt=1/Math.sqrt(Mt),Me*=Mt,Ge*=Mt,St*=Mt);var In=G*St-te*Ge,kn=te*Me-B*St,Sr=B*Ge-G*Me;return Mt=In*In+kn*kn+Sr*Sr,Mt>0&&(Mt=1/Math.sqrt(Mt),In*=Mt,kn*=Mt,Sr*=Mt),a[0]=In,a[1]=kn,a[2]=Sr,a[3]=0,a[4]=Ge*Sr-St*kn,a[5]=St*In-Me*Sr,a[6]=Me*kn-Ge*In,a[7]=0,a[8]=Me,a[9]=Ge,a[10]=St,a[11]=0,a[12]=l,a[13]=g,a[14]=T,a[15]=1,a}function Vl(a){return"mat4("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+", "+a[6]+", "+a[7]+", "+a[8]+", "+a[9]+", "+a[10]+", "+a[11]+", "+a[12]+", "+a[13]+", "+a[14]+", "+a[15]+")"}function cu(a){return Math.hypot(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],a[10],a[11],a[12],a[13],a[14],a[15])}function lu(a,p,u){return a[0]=p[0]+u[0],a[1]=p[1]+u[1],a[2]=p[2]+u[2],a[3]=p[3]+u[3],a[4]=p[4]+u[4],a[5]=p[5]+u[5],a[6]=p[6]+u[6],a[7]=p[7]+u[7],a[8]=p[8]+u[8],a[9]=p[9]+u[9],a[10]=p[10]+u[10],a[11]=p[11]+u[11],a[12]=p[12]+u[12],a[13]=p[13]+u[13],a[14]=p[14]+u[14],a[15]=p[15]+u[15],a}function Hu(a,p,u){return a[0]=p[0]-u[0],a[1]=p[1]-u[1],a[2]=p[2]-u[2],a[3]=p[3]-u[3],a[4]=p[4]-u[4],a[5]=p[5]-u[5],a[6]=p[6]-u[6],a[7]=p[7]-u[7],a[8]=p[8]-u[8],a[9]=p[9]-u[9],a[10]=p[10]-u[10],a[11]=p[11]-u[11],a[12]=p[12]-u[12],a[13]=p[13]-u[13],a[14]=p[14]-u[14],a[15]=p[15]-u[15],a}function kc(a,p,u){return a[0]=p[0]*u,a[1]=p[1]*u,a[2]=p[2]*u,a[3]=p[3]*u,a[4]=p[4]*u,a[5]=p[5]*u,a[6]=p[6]*u,a[7]=p[7]*u,a[8]=p[8]*u,a[9]=p[9]*u,a[10]=p[10]*u,a[11]=p[11]*u,a[12]=p[12]*u,a[13]=p[13]*u,a[14]=p[14]*u,a[15]=p[15]*u,a}function ac(a,p,u,c){return a[0]=p[0]+u[0]*c,a[1]=p[1]+u[1]*c,a[2]=p[2]+u[2]*c,a[3]=p[3]+u[3]*c,a[4]=p[4]+u[4]*c,a[5]=p[5]+u[5]*c,a[6]=p[6]+u[6]*c,a[7]=p[7]+u[7]*c,a[8]=p[8]+u[8]*c,a[9]=p[9]+u[9]*c,a[10]=p[10]+u[10]*c,a[11]=p[11]+u[11]*c,a[12]=p[12]+u[12]*c,a[13]=p[13]+u[13]*c,a[14]=p[14]+u[14]*c,a[15]=p[15]+u[15]*c,a}function _d(a,p){return a[0]===p[0]&&a[1]===p[1]&&a[2]===p[2]&&a[3]===p[3]&&a[4]===p[4]&&a[5]===p[5]&&a[6]===p[6]&&a[7]===p[7]&&a[8]===p[8]&&a[9]===p[9]&&a[10]===p[10]&&a[11]===p[11]&&a[12]===p[12]&&a[13]===p[13]&&a[14]===p[14]&&a[15]===p[15]}function Xu(a,p){var u=a[0],c=a[1],l=a[2],g=a[3],T=a[4],B=a[5],G=a[6],te=a[7],Me=a[8],Ge=a[9],St=a[10],Mt=a[11],In=a[12],kn=a[13],Sr=a[14],_i=a[15],Vo=p[0],zo=p[1],Ks=p[2],ca=p[3],Ia=p[4],al=p[5],jl=p[6],Wl=p[7],Wu=p[8],Pu=p[9],Vc=p[10],dd=p[11],Kd=p[12],Hp=p[13],gm=p[14],Fg=p[15];return Math.abs(u-Vo)<=ld*Math.max(1,Math.abs(u),Math.abs(Vo))&&Math.abs(c-zo)<=ld*Math.max(1,Math.abs(c),Math.abs(zo))&&Math.abs(l-Ks)<=ld*Math.max(1,Math.abs(l),Math.abs(Ks))&&Math.abs(g-ca)<=ld*Math.max(1,Math.abs(g),Math.abs(ca))&&Math.abs(T-Ia)<=ld*Math.max(1,Math.abs(T),Math.abs(Ia))&&Math.abs(B-al)<=ld*Math.max(1,Math.abs(B),Math.abs(al))&&Math.abs(G-jl)<=ld*Math.max(1,Math.abs(G),Math.abs(jl))&&Math.abs(te-Wl)<=ld*Math.max(1,Math.abs(te),Math.abs(Wl))&&Math.abs(Me-Wu)<=ld*Math.max(1,Math.abs(Me),Math.abs(Wu))&&Math.abs(Ge-Pu)<=ld*Math.max(1,Math.abs(Ge),Math.abs(Pu))&&Math.abs(St-Vc)<=ld*Math.max(1,Math.abs(St),Math.abs(Vc))&&Math.abs(Mt-dd)<=ld*Math.max(1,Math.abs(Mt),Math.abs(dd))&&Math.abs(In-Kd)<=ld*Math.max(1,Math.abs(In),Math.abs(Kd))&&Math.abs(kn-Hp)<=ld*Math.max(1,Math.abs(kn),Math.abs(Hp))&&Math.abs(Sr-gm)<=ld*Math.max(1,Math.abs(Sr),Math.abs(gm))&&Math.abs(_i-Fg)<=ld*Math.max(1,Math.abs(_i),Math.abs(Fg))}var Nd=Sl,Yt=Hu,Mn,dr,Wr=(Mn=(0,ws.b2)(),Mn(dr=function(){function a(){(0,bt.Z)(this,a),(0,bn.Z)(this,"viewport",void 0),(0,bn.Z)(this,"overridedViewProjectionMatrix",void 0),(0,bn.Z)(this,"jitteredViewProjectionMatrix",void 0),(0,bn.Z)(this,"jitteredProjectionMatrix",void 0),(0,bn.Z)(this,"viewMatrixInverse",void 0),(0,bn.Z)(this,"cameraPosition",void 0)}return(0,Ue.Z)(a,[{key:"init",value:function(){}},{key:"update",value:function(u){this.viewport=u,this.viewMatrixInverse=nn(),$u(this.viewMatrixInverse,u.getViewMatrix()),this.cameraPosition=[this.viewMatrixInverse[12],this.viewMatrixInverse[13],this.viewMatrixInverse[14]]}},{key:"getProjectionMatrix",value:function(){return this.jitteredProjectionMatrix||this.viewport.getProjectionMatrix()}},{key:"getModelMatrix",value:function(){return this.viewport.getModelMatrix()}},{key:"getViewMatrix",value:function(){return this.viewport.getViewMatrix()}},{key:"getViewMatrixUncentered",value:function(){return this.viewport.getViewMatrixUncentered()}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.viewport.getViewProjectionMatrixUncentered()}},{key:"getViewProjectionMatrix",value:function(){return this.overridedViewProjectionMatrix||this.jitteredViewProjectionMatrix||this.viewport.getViewProjectionMatrix()}},{key:"getZoom",value:function(){return this.viewport.getZoom()}},{key:"getZoomScale",value:function(){return this.viewport.getZoomScale()}},{key:"getCenter",value:function(){var u=this.viewport.getCenter(),c=(0,Qn.Z)(u,2),l=c[0],g=c[1];return[l,g]}},{key:"getFocalDistance",value:function(){return this.viewport.getFocalDistance()}},{key:"getCameraPosition",value:function(){return this.cameraPosition}},{key:"projectFlat",value:function(u,c){return this.viewport.projectFlat(u,c)}},{key:"setViewProjectionMatrix",value:function(u){this.overridedViewProjectionMatrix=u}},{key:"jitterProjectionMatrix",value:function(u,c){var l=Ao(nn(),[u,c,0]);this.jitteredProjectionMatrix=Sl(nn(),l,this.viewport.getProjectionMatrix()),this.jitteredViewProjectionMatrix=Sl(nn(),this.jitteredProjectionMatrix,this.viewport.getViewMatrix())}},{key:"clearJitterProjectionMatrix",value:function(){this.jitteredProjectionMatrix=void 0,this.jitteredViewProjectionMatrix=void 0}}]),a}())||dr),go=function(a){return a.TOPRIGHT="topright",a.TOPLEFT="topleft",a.BOTTOMRIGHT="bottomright",a.BOTTOMLEFT="bottomleft",a.TOPCENTER="topcenter",a.BOTTOMCENTER="bottomcenter",a.LEFTCENTER="leftcenter",a.RIGHTCENTER="rightcenter",a.LEFTTOP="lefttop",a.RIGHTTOP="righttop",a.LEFTBOTTOM="leftbottom",a.RIGHTBOTTOM="rightbottom",a}({}),ra,Ga;function Aa(a,p){var u=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!u){if(Array.isArray(a)||(u=Xl(a))||p&&a&&typeof a.length=="number"){u&&(a=u);var c=0,l=function(){};return{s:l,n:function(){return c>=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(te){throw te},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var te=u.next();return g=te.done,te},e:function(te){T=!0,B=te},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function Xl(a,p){if(a){if(typeof a=="string")return wu(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return wu(a,p)}}function wu(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);u-1&&this.controls.splice(c,1),u.remove(),this}},{key:"addControls",value:function(){var u=this;this.unAddControls.forEach(function(c){c.addTo(u.scene),u.controls.push(c)}),this.unAddControls=[]}},{key:"destroy",value:function(){var u=Aa(this.controls),c;try{for(u.s();!(c=u.n()).done;){var l=c.value;l.remove()}}catch(g){u.e(g)}finally{u.f()}this.controls=[],this.clearControlPos()}},{key:"initControlPos",value:function(){var u=this.controlCorners={},c="l7-",l=this.controlContainer=Ji("div",c+"control-container",this.container);function g(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],G=B.map(function(te){return c+te}).join(" ");u[B.filter(function(te){return!["row","column"].includes(te)}).join("")]=Ji("div",G,l)}function T(B){var G=B.replace(/^(top|bottom|left|right|center)/,"$1-").split("-");return[].concat((0,kr.Z)(G),[Ts[B]])}Object.values(go).forEach(function(B){g(T(B))}),this.checkCornerOverlap()}},{key:"clearControlPos",value:function(){for(var u in this.controlCorners)this.controlCorners[u]&&ta(this.controlCorners[u]);this.controlContainer&&ta(this.controlContainer)}},{key:"checkCornerOverlap",value:function(){var u=this,c=window.MutationObserver;if(c)for(var l=function(){var G=T[g],te=G.match(/^(top|bottom)(left|right)$/);if(te){var Me=(0,Qn.Z)(te,3),Ge=Me[1],St=Me[2],Mt=u.controlCorners["".concat(Ge).concat(St)],In=new c(function(kn){var Sr=(0,Qn.Z)(kn,1),_i=Sr[0].target;Mt&&(Mt.style[Ge]=_i.clientHeight+"px")});In.observe(u.controlCorners["".concat(St).concat(Ge)],{childList:!0,attributes:!0})}},g=0,T=Object.keys(this.controlCorners);g-1&&this.markerLayers.splice(c,1)}},{key:"addMarker",value:function(u){this.mapsService.map&&this.mapsService.getMarkerContainer()?(this.markers.push(u),u.addTo(this.scene)):this.unAddMarkers.push(u)}},{key:"addMarkers",value:function(){var u=this;this.unAddMarkers.forEach(function(c){c.addTo(u.scene),u.markers.push(c)}),this.unAddMarkers=[]}},{key:"addMarkerLayers",value:function(){var u=this;this.unAddMarkerLayers.forEach(function(c){u.markerLayers.push(c),c.addTo(u.scene)}),this.unAddMarkers=[]}},{key:"removeMarker",value:function(u){u.remove(),this.markers.indexOf(u);var c=this.markers.indexOf(u);c>-1&&this.markers.splice(c,1)}},{key:"removeAllMarkers",value:function(){this.destroy()}},{key:"init",value:function(u){this.scene=u,this.mapsService=u.get(gr.IMapService)}},{key:"destroy",value:function(){this.markers.forEach(function(u){u.remove()}),this.markers=[],this.markerLayers.forEach(function(u){u.destroy()}),this.markerLayers=[]}},{key:"removeMakerLayerMarker",value:function(u){u.destroy()}}]),a}())||gh),wh,cg,yg=(wh=(0,ws.b2)(),wh(cg=function(){function a(){(0,bt.Z)(this,a),(0,bn.Z)(this,"scene",void 0),(0,bn.Z)(this,"mapsService",void 0),(0,bn.Z)(this,"popups",[]),(0,bn.Z)(this,"unAddPopups",[])}return(0,Ue.Z)(a,[{key:"isMarkerReady",get:function(){return this.mapsService.map&&this.mapsService.getMarkerContainer()}},{key:"removePopup",value:function(u){u!=null&&u.isOpen()&&u.remove();var c=this.popups.indexOf(u);c>-1&&this.popups.splice(c,1);var l=this.unAddPopups.indexOf(u);l>-1&&this.unAddPopups.splice(l,1)}},{key:"destroy",value:function(){this.popups.forEach(function(u){return u.remove()})}},{key:"addPopup",value:function(u){var c=this;u&&u.getOptions().autoClose&&[].concat((0,kr.Z)(this.popups),(0,kr.Z)(this.unAddPopups)).forEach(function(l){l.getOptions().autoClose&&c.removePopup(l)}),this.isMarkerReady?(u.addTo(this.scene),this.popups.push(u)):this.unAddPopups.push(u),u.on("close",function(){c.removePopup(u)})}},{key:"initPopup",value:function(){var u=this;this.unAddPopups.length&&this.unAddPopups.forEach(function(c){u.addPopup(c),u.unAddPopups=[]})}},{key:"init",value:function(u){this.scene=u,this.mapsService=u.get(gr.IMapService)}}]),a}())||cg),Fh=function(a){return a.normal="normal",a.additive="additive",a.subtractive="subtractive",a.min="min",a.max="max",a.none="none",a}({}),nf=function(a){return a.MULTIPLE="MULTIPLE",a.SINGLE="SINGLE",a}({}),Ko=function(a){return a.AND="and",a.OR="or",a}({}),Rl=function(a){return a.INIT="init",a.UPDATE="update",a}({}),Zf={MapToken:"\u60A8\u6B63\u5728\u4F7F\u7528 Demo \u6D4B\u8BD5 Token, \u751F\u4EA7\u73AF\u5883\u52A1\u5FC5\u81EA\u884C\u6CE8\u518C Token \u786E\u4FDD\u670D\u52A1\u7A33\u5B9A \u9AD8\u5FB7\u5730\u56FE\u7533\u8BF7\u5730\u5740 https://lbs.amap.com/api/javascript-api/guide/abc/prepare Mapbox\u5730\u56FE\u7533\u8BF7\u5730\u5740 https://docs.mapbox.com/help/glossary/access-token/",SDK:"\u8BF7\u786E\u8BA4\u5F15\u5165\u4E86mapbox-gl api\u4E14\u5728L7\u4E4B\u524D\u5F15\u5165"},$f=Zf,Yf,em,Mf=Ma.merge,kd={id:"map",logoPosition:"bottomleft",logoVisible:!0,antialias:!0,stencil:!0,preserveDrawingBuffer:!1,pickBufferScale:1,fitBoundsOptions:{animate:!1}},Ef={colors:["rgb(103,0,31)","rgb(178,24,43)","rgb(214,96,77)","rgb(244,165,130)","rgb(253,219,199)","rgb(247,247,247)","rgb(209,229,240)","rgb(146,197,222)","rgb(67,147,195)","rgb(33,102,172)","rgb(5,48,97)"],size:10,shape:"circle",scales:{},shape2d:["circle","triangle","square","pentagon","hexagon","octogon","hexagram","rhombus","vesica"],shape3d:["cylinder","triangleColumn","hexagonColumn","squareColumn"],minZoom:-1,maxZoom:24,visible:!0,autoFit:!1,pickingBuffer:0,enablePropagation:!1,zIndex:0,blend:"normal",maskLayers:[],enableMask:!0,maskOperation:Ko.AND,pickedFeatureID:-1,enableMultiPassRenderer:!1,enablePicking:!0,active:!1,activeColor:"#2f54eb",enableHighlight:!1,enableSelect:!1,highlightColor:"#2f54eb",activeMix:0,selectColor:"blue",selectMix:0,enableTAA:!1,jitterScale:1,enableLighting:!1,animateOption:{enable:!1,interval:.2,duration:4,trailLength:.15},forward:!0},Rg=(Yf=(0,ws.b2)(),Yf(em=function(){function a(){(0,bt.Z)(this,a),(0,bn.Z)(this,"sceneConfigCache",{}),(0,bn.Z)(this,"layerConfigCache",{}),(0,bn.Z)(this,"layerAttributeConfigCache",{})}return(0,Ue.Z)(a,[{key:"getSceneConfig",value:function(u){return this.sceneConfigCache[u]}},{key:"getSceneWarninfo",value:function(u){return $f[u]}},{key:"setSceneConfig",value:function(u,c){this.sceneConfigCache[u]=(0,Ce.Z)((0,Ce.Z)({},kd),c)}},{key:"getLayerConfig",value:function(u){return this.layerConfigCache[u]}},{key:"setLayerConfig",value:function(u,c,l){this.layerConfigCache[c]=(0,Ce.Z)({},Mf({},this.sceneConfigCache[u],Ef,l))}},{key:"getAttributeConfig",value:function(u){return this.layerAttributeConfigCache[u]}},{key:"setAttributeConfig",value:function(u,c){this.layerAttributeConfigCache[u]=(0,Ce.Z)((0,Ce.Z)({},this.layerAttributeConfigCache[u]),c)}},{key:"clean",value:function(){this.sceneConfigCache={},this.layerConfigCache={}}}]),a}())||em);function Fd(a,p,u,c){u&&Object.defineProperty(a,p,{enumerable:u.enumerable,configurable:u.configurable,writable:u.writable,value:u.initializer?u.initializer.call(c):void 0})}function $h(a,p,u,c,l){var g={};return Object.keys(c).forEach(function(T){g[T]=c[T]}),g.enumerable=!!g.enumerable,g.configurable=!!g.configurable,("value"in g||g.initializer)&&(g.writable=!0),g=u.slice().reverse().reduce(function(T,B){return B(a,p,T)||T},g),l&&g.initializer!==void 0&&(g.value=g.initializer?g.initializer.call(l):void 0,g.initializer=void 0),g.initializer===void 0&&(Object.defineProperty(a,p,g),g=null),g}function Tg(){var a=new Sc(4);return Sc!=Float32Array&&(a[0]=0,a[1]=0,a[2]=0,a[3]=0),a}function cm(a){var p=new glMatrix.ARRAY_TYPE(4);return p[0]=a[0],p[1]=a[1],p[2]=a[2],p[3]=a[3],p}function Sp(a,p,u,c){var l=new Sc(4);return l[0]=a,l[1]=p,l[2]=u,l[3]=c,l}function gf(a,p){return a[0]=p[0],a[1]=p[1],a[2]=p[2],a[3]=p[3],a}function Kp(a,p,u,c,l){return a[0]=p,a[1]=u,a[2]=c,a[3]=l,a}function Of(a,p,u){return a[0]=p[0]+u[0],a[1]=p[1]+u[1],a[2]=p[2]+u[2],a[3]=p[3]+u[3],a}function Nu(a,p,u){return a[0]=p[0]-u[0],a[1]=p[1]-u[1],a[2]=p[2]-u[2],a[3]=p[3]-u[3],a}function lh(a,p,u){return a[0]=p[0]*u[0],a[1]=p[1]*u[1],a[2]=p[2]*u[2],a[3]=p[3]*u[3],a}function oh(a,p,u){return a[0]=p[0]/u[0],a[1]=p[1]/u[1],a[2]=p[2]/u[2],a[3]=p[3]/u[3],a}function Ip(a,p){return a[0]=Math.ceil(p[0]),a[1]=Math.ceil(p[1]),a[2]=Math.ceil(p[2]),a[3]=Math.ceil(p[3]),a}function qf(a,p){return a[0]=Math.floor(p[0]),a[1]=Math.floor(p[1]),a[2]=Math.floor(p[2]),a[3]=Math.floor(p[3]),a}function kp(a,p,u){return a[0]=Math.min(p[0],u[0]),a[1]=Math.min(p[1],u[1]),a[2]=Math.min(p[2],u[2]),a[3]=Math.min(p[3],u[3]),a}function Xp(a,p,u){return a[0]=Math.max(p[0],u[0]),a[1]=Math.max(p[1],u[1]),a[2]=Math.max(p[2],u[2]),a[3]=Math.max(p[3],u[3]),a}function rp(a,p){return a[0]=Math.round(p[0]),a[1]=Math.round(p[1]),a[2]=Math.round(p[2]),a[3]=Math.round(p[3]),a}function Em(a,p,u){return a[0]=p[0]*u,a[1]=p[1]*u,a[2]=p[2]*u,a[3]=p[3]*u,a}function Kg(a,p,u,c){return a[0]=p[0]+u[0]*c,a[1]=p[1]+u[1]*c,a[2]=p[2]+u[2]*c,a[3]=p[3]+u[3]*c,a}function dg(a,p){var u=p[0]-a[0],c=p[1]-a[1],l=p[2]-a[2],g=p[3]-a[3];return Math.hypot(u,c,l,g)}function Xg(a,p){var u=p[0]-a[0],c=p[1]-a[1],l=p[2]-a[2],g=p[3]-a[3];return u*u+c*c+l*l+g*g}function og(a){var p=a[0],u=a[1],c=a[2],l=a[3];return Math.hypot(p,u,c,l)}function hg(a){var p=a[0],u=a[1],c=a[2],l=a[3];return p*p+u*u+c*c+l*l}function Yp(a,p){return a[0]=-p[0],a[1]=-p[1],a[2]=-p[2],a[3]=-p[3],a}function z0(a,p){return a[0]=1/p[0],a[1]=1/p[1],a[2]=1/p[2],a[3]=1/p[3],a}function gy(a,p){var u=p[0],c=p[1],l=p[2],g=p[3],T=u*u+c*c+l*l+g*g;return T>0&&(T=1/Math.sqrt(T)),a[0]=u*T,a[1]=c*T,a[2]=l*T,a[3]=g*T,a}function H0(a,p){return a[0]*p[0]+a[1]*p[1]+a[2]*p[2]+a[3]*p[3]}function q_(a,p,u,c){var l=u[0]*c[1]-u[1]*c[0],g=u[0]*c[2]-u[2]*c[0],T=u[0]*c[3]-u[3]*c[0],B=u[1]*c[2]-u[2]*c[1],G=u[1]*c[3]-u[3]*c[1],te=u[2]*c[3]-u[3]*c[2],Me=p[0],Ge=p[1],St=p[2],Mt=p[3];return a[0]=Ge*te-St*G+Mt*B,a[1]=-(Me*te)+St*T-Mt*g,a[2]=Me*G-Ge*T+Mt*l,a[3]=-(Me*B)+Ge*g-St*l,a}function lv(a,p,u,c){var l=p[0],g=p[1],T=p[2],B=p[3];return a[0]=l+c*(u[0]-l),a[1]=g+c*(u[1]-g),a[2]=T+c*(u[2]-T),a[3]=B+c*(u[3]-B),a}function vy(a,p){p=p||1;var u,c,l,g,T,B;do u=glMatrix.RANDOM()*2-1,c=glMatrix.RANDOM()*2-1,T=u*u+c*c;while(T>=1);do l=glMatrix.RANDOM()*2-1,g=glMatrix.RANDOM()*2-1,B=l*l+g*g;while(B>=1);var G=Math.sqrt((1-T)/B);return a[0]=p*u,a[1]=p*c,a[2]=p*l*G,a[3]=p*g*G,a}function q0(a,p,u){var c=p[0],l=p[1],g=p[2],T=p[3];return a[0]=u[0]*c+u[4]*l+u[8]*g+u[12]*T,a[1]=u[1]*c+u[5]*l+u[9]*g+u[13]*T,a[2]=u[2]*c+u[6]*l+u[10]*g+u[14]*T,a[3]=u[3]*c+u[7]*l+u[11]*g+u[15]*T,a}function Uy(a,p,u){var c=p[0],l=p[1],g=p[2],T=u[0],B=u[1],G=u[2],te=u[3],Me=te*c+B*g-G*l,Ge=te*l+G*c-T*g,St=te*g+T*l-B*c,Mt=-T*c-B*l-G*g;return a[0]=Me*te+Mt*-T+Ge*-G-St*-B,a[1]=Ge*te+Mt*-B+St*-T-Me*-G,a[2]=St*te+Mt*-G+Me*-B-Ge*-T,a[3]=p[3],a}function Cv(a){return a[0]=0,a[1]=0,a[2]=0,a[3]=0,a}function gv(a){return"vec4("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+")"}function c1(a,p){return a[0]===p[0]&&a[1]===p[1]&&a[2]===p[2]&&a[3]===p[3]}function wv(a,p){var u=a[0],c=a[1],l=a[2],g=a[3],T=p[0],B=p[1],G=p[2],te=p[3];return Math.abs(u-T)<=glMatrix.EPSILON*Math.max(1,Math.abs(u),Math.abs(T))&&Math.abs(c-B)<=glMatrix.EPSILON*Math.max(1,Math.abs(c),Math.abs(B))&&Math.abs(l-G)<=glMatrix.EPSILON*Math.max(1,Math.abs(l),Math.abs(G))&&Math.abs(g-te)<=glMatrix.EPSILON*Math.max(1,Math.abs(g),Math.abs(te))}var mv=null,E0=null,Bv=null,d1=null,q1=null,zv=null,ey=null,Ku=function(){var a=Tg();return function(p,u,c,l,g,T){var B,G;for(u||(u=4),c||(c=0),l?G=Math.min(l*u+c,p.length):G=p.length,B=c;B0?(u[0]=(B*T+Pe*c+Z*g-ee*l)*2/Ze,u[1]=(Z*T+Pe*l+ee*c-B*g)*2/Ze,u[2]=(ee*T+Pe*g+B*l-Z*c)*2/Ze):(u[0]=(B*T+Pe*c+Z*g-ee*l)*2,u[1]=(Z*T+Pe*l+ee*c-B*g)*2,u[2]=(ee*T+Pe*g+B*l-Z*c)*2),R(a,p,u),a}function le(a,p){return a[0]=p[12],a[1]=p[13],a[2]=p[14],a}function ke(a,p){var u=p[0],c=p[1],l=p[2],g=p[4],T=p[5],B=p[6],Z=p[8],ee=p[9],Pe=p[10];return a[0]=Math.hypot(u,c,l),a[1]=Math.hypot(g,T,B),a[2]=Math.hypot(Z,ee,Pe),a}function Qe(a,p){var u=new Sc(3);ke(u,p);var c=1/u[0],l=1/u[1],g=1/u[2],T=p[0]*c,B=p[1]*l,Z=p[2]*g,ee=p[4]*c,Pe=p[5]*l,Ze=p[6]*g,St=p[8]*c,Mt=p[9]*l,Tn=p[10]*g,kn=T+Pe+Tn,vr=0;return kn>0?(vr=Math.sqrt(kn+1)*2,a[3]=.25*vr,a[0]=(Ze-Mt)/vr,a[1]=(St-Z)/vr,a[2]=(B-ee)/vr):T>Pe&&T>Tn?(vr=Math.sqrt(1+T-Pe-Tn)*2,a[3]=(Ze-Mt)/vr,a[0]=.25*vr,a[1]=(B+ee)/vr,a[2]=(St+Z)/vr):Pe>Tn?(vr=Math.sqrt(1+Pe-T-Tn)*2,a[3]=(St-Z)/vr,a[0]=(B+ee)/vr,a[1]=.25*vr,a[2]=(Ze+Mt)/vr):(vr=Math.sqrt(1+Tn-T-Pe)*2,a[3]=(B-ee)/vr,a[0]=(St+Z)/vr,a[1]=(Ze+Mt)/vr,a[2]=.25*vr),a}function Ct(a,p,u,c){var l=p[0],g=p[1],T=p[2],B=p[3],Z=l+l,ee=g+g,Pe=T+T,Ze=l*Z,St=l*ee,Mt=l*Pe,Tn=g*ee,kn=g*Pe,vr=T*Pe,wi=B*Z,zo=B*ee,$o=B*Pe,Ks=c[0],ra=c[1],La=c[2];return a[0]=(1-(Tn+vr))*Ks,a[1]=(St+$o)*Ks,a[2]=(Mt-zo)*Ks,a[3]=0,a[4]=(St-$o)*ra,a[5]=(1-(Ze+vr))*ra,a[6]=(kn+wi)*ra,a[7]=0,a[8]=(Mt+zo)*La,a[9]=(kn-wi)*La,a[10]=(1-(Ze+Tn))*La,a[11]=0,a[12]=u[0],a[13]=u[1],a[14]=u[2],a[15]=1,a}function jt(a,p,u,c,l){var g=p[0],T=p[1],B=p[2],Z=p[3],ee=g+g,Pe=T+T,Ze=B+B,St=g*ee,Mt=g*Pe,Tn=g*Ze,kn=T*Pe,vr=T*Ze,wi=B*Ze,zo=Z*ee,$o=Z*Pe,Ks=Z*Ze,ra=c[0],La=c[1],vl=c[2],Wl=l[0],Jl=l[1],ju=l[2],Ku=(1-(kn+wi))*ra,Jc=(Mt+Ks)*ra,gd=(Tn-$o)*ra,Ch=(Mt-Ks)*La,og=(1-(St+wi))*La,um=(vr+zo)*La,Zg=(Tn+$o)*vl,Zm=(vr-zo)*vl,p0=(1-(St+kn))*vl;return a[0]=Ku,a[1]=Jc,a[2]=gd,a[3]=0,a[4]=Ch,a[5]=og,a[6]=um,a[7]=0,a[8]=Zg,a[9]=Zm,a[10]=p0,a[11]=0,a[12]=u[0]+Wl-(Ku*Wl+Ch*Jl+Zg*ju),a[13]=u[1]+Jl-(Jc*Wl+og*Jl+Zm*ju),a[14]=u[2]+ju-(gd*Wl+um*Jl+p0*ju),a[15]=1,a}function Rn(a,p){var u=p[0],c=p[1],l=p[2],g=p[3],T=u+u,B=c+c,Z=l+l,ee=u*T,Pe=c*T,Ze=c*B,St=l*T,Mt=l*B,Tn=l*Z,kn=g*T,vr=g*B,wi=g*Z;return a[0]=1-Ze-Tn,a[1]=Pe+wi,a[2]=St-vr,a[3]=0,a[4]=Pe-wi,a[5]=1-ee-Tn,a[6]=Mt+kn,a[7]=0,a[8]=St+vr,a[9]=Mt-kn,a[10]=1-ee-Ze,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}function ur(a,p,u,c,l,g,T){var B=1/(u-p),Z=1/(l-c),ee=1/(g-T);return a[0]=g*2*B,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=g*2*Z,a[6]=0,a[7]=0,a[8]=(u+p)*B,a[9]=(l+c)*Z,a[10]=(T+g)*ee,a[11]=-1,a[12]=0,a[13]=0,a[14]=T*g*2*ee,a[15]=0,a}function zr(a,p,u,c,l){var g=1/Math.tan(p/2),T;return a[0]=g/u,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=g,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[11]=-1,a[12]=0,a[13]=0,a[15]=0,l!=null&&l!==1/0?(T=1/(c-l),a[10]=(l+c)*T,a[14]=2*l*c*T):(a[10]=-1,a[14]=-2*c),a}var hi=zr;function po(a,p,u,c,l){var g=1/Math.tan(p/2),T;return a[0]=g/u,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=g,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[11]=-1,a[12]=0,a[13]=0,a[15]=0,l!=null&&l!==1/0?(T=1/(c-l),a[10]=l*T,a[14]=l*c*T):(a[10]=-1,a[14]=-c),a}function ko(a,p,u,c){var l=Math.tan(p.upDegrees*Math.PI/180),g=Math.tan(p.downDegrees*Math.PI/180),T=Math.tan(p.leftDegrees*Math.PI/180),B=Math.tan(p.rightDegrees*Math.PI/180),Z=2/(T+B),ee=2/(l+g);return a[0]=Z,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=ee,a[6]=0,a[7]=0,a[8]=-((T-B)*Z*.5),a[9]=(l-g)*ee*.5,a[10]=c/(u-c),a[11]=-1,a[12]=0,a[13]=0,a[14]=c*u/(u-c),a[15]=0,a}function Zs(a,p,u,c,l,g,T){var B=1/(p-u),Z=1/(c-l),ee=1/(g-T);return a[0]=-2*B,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=-2*Z,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=2*ee,a[11]=0,a[12]=(p+u)*B,a[13]=(l+c)*Z,a[14]=(T+g)*ee,a[15]=1,a}var Js=Zs;function sl(a,p,u,c,l,g,T){var B=1/(p-u),Z=1/(c-l),ee=1/(g-T);return a[0]=-2*B,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=-2*Z,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=ee,a[11]=0,a[12]=(p+u)*B,a[13]=(l+c)*Z,a[14]=g*ee,a[15]=1,a}function Da(a,p,u,c){var l,g,T,B,Z,ee,Pe,Ze,St,Mt,Tn=p[0],kn=p[1],vr=p[2],wi=c[0],zo=c[1],$o=c[2],Ks=u[0],ra=u[1],La=u[2];return Math.abs(Tn-Ks)0&&(Mt=1/Math.sqrt(Mt),Pe*=Mt,Ze*=Mt,St*=Mt);var Tn=Z*St-ee*Ze,kn=ee*Pe-B*St,vr=B*Ze-Z*Pe;return Mt=Tn*Tn+kn*kn+vr*vr,Mt>0&&(Mt=1/Math.sqrt(Mt),Tn*=Mt,kn*=Mt,vr*=Mt),a[0]=Tn,a[1]=kn,a[2]=vr,a[3]=0,a[4]=Ze*vr-St*kn,a[5]=St*Tn-Pe*vr,a[6]=Pe*kn-Ze*Tn,a[7]=0,a[8]=Pe,a[9]=Ze,a[10]=St,a[11]=0,a[12]=l,a[13]=g,a[14]=T,a[15]=1,a}function jl(a){return"mat4("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+", "+a[6]+", "+a[7]+", "+a[8]+", "+a[9]+", "+a[10]+", "+a[11]+", "+a[12]+", "+a[13]+", "+a[14]+", "+a[15]+")"}function cu(a){return Math.hypot(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],a[10],a[11],a[12],a[13],a[14],a[15])}function lu(a,p,u){return a[0]=p[0]+u[0],a[1]=p[1]+u[1],a[2]=p[2]+u[2],a[3]=p[3]+u[3],a[4]=p[4]+u[4],a[5]=p[5]+u[5],a[6]=p[6]+u[6],a[7]=p[7]+u[7],a[8]=p[8]+u[8],a[9]=p[9]+u[9],a[10]=p[10]+u[10],a[11]=p[11]+u[11],a[12]=p[12]+u[12],a[13]=p[13]+u[13],a[14]=p[14]+u[14],a[15]=p[15]+u[15],a}function Uu(a,p,u){return a[0]=p[0]-u[0],a[1]=p[1]-u[1],a[2]=p[2]-u[2],a[3]=p[3]-u[3],a[4]=p[4]-u[4],a[5]=p[5]-u[5],a[6]=p[6]-u[6],a[7]=p[7]-u[7],a[8]=p[8]-u[8],a[9]=p[9]-u[9],a[10]=p[10]-u[10],a[11]=p[11]-u[11],a[12]=p[12]-u[12],a[13]=p[13]-u[13],a[14]=p[14]-u[14],a[15]=p[15]-u[15],a}function kc(a,p,u){return a[0]=p[0]*u,a[1]=p[1]*u,a[2]=p[2]*u,a[3]=p[3]*u,a[4]=p[4]*u,a[5]=p[5]*u,a[6]=p[6]*u,a[7]=p[7]*u,a[8]=p[8]*u,a[9]=p[9]*u,a[10]=p[10]*u,a[11]=p[11]*u,a[12]=p[12]*u,a[13]=p[13]*u,a[14]=p[14]*u,a[15]=p[15]*u,a}function ac(a,p,u,c){return a[0]=p[0]+u[0]*c,a[1]=p[1]+u[1]*c,a[2]=p[2]+u[2]*c,a[3]=p[3]+u[3]*c,a[4]=p[4]+u[4]*c,a[5]=p[5]+u[5]*c,a[6]=p[6]+u[6]*c,a[7]=p[7]+u[7]*c,a[8]=p[8]+u[8]*c,a[9]=p[9]+u[9]*c,a[10]=p[10]+u[10]*c,a[11]=p[11]+u[11]*c,a[12]=p[12]+u[12]*c,a[13]=p[13]+u[13]*c,a[14]=p[14]+u[14]*c,a[15]=p[15]+u[15]*c,a}function _d(a,p){return a[0]===p[0]&&a[1]===p[1]&&a[2]===p[2]&&a[3]===p[3]&&a[4]===p[4]&&a[5]===p[5]&&a[6]===p[6]&&a[7]===p[7]&&a[8]===p[8]&&a[9]===p[9]&&a[10]===p[10]&&a[11]===p[11]&&a[12]===p[12]&&a[13]===p[13]&&a[14]===p[14]&&a[15]===p[15]}function Xu(a,p){var u=a[0],c=a[1],l=a[2],g=a[3],T=a[4],B=a[5],Z=a[6],ee=a[7],Pe=a[8],Ze=a[9],St=a[10],Mt=a[11],Tn=a[12],kn=a[13],vr=a[14],wi=a[15],zo=p[0],$o=p[1],Ks=p[2],ra=p[3],La=p[4],vl=p[5],Wl=p[6],Jl=p[7],ju=p[8],Ku=p[9],Jc=p[10],gd=p[11],Ch=p[12],og=p[13],um=p[14],Zg=p[15];return Math.abs(u-zo)<=ud*Math.max(1,Math.abs(u),Math.abs(zo))&&Math.abs(c-$o)<=ud*Math.max(1,Math.abs(c),Math.abs($o))&&Math.abs(l-Ks)<=ud*Math.max(1,Math.abs(l),Math.abs(Ks))&&Math.abs(g-ra)<=ud*Math.max(1,Math.abs(g),Math.abs(ra))&&Math.abs(T-La)<=ud*Math.max(1,Math.abs(T),Math.abs(La))&&Math.abs(B-vl)<=ud*Math.max(1,Math.abs(B),Math.abs(vl))&&Math.abs(Z-Wl)<=ud*Math.max(1,Math.abs(Z),Math.abs(Wl))&&Math.abs(ee-Jl)<=ud*Math.max(1,Math.abs(ee),Math.abs(Jl))&&Math.abs(Pe-ju)<=ud*Math.max(1,Math.abs(Pe),Math.abs(ju))&&Math.abs(Ze-Ku)<=ud*Math.max(1,Math.abs(Ze),Math.abs(Ku))&&Math.abs(St-Jc)<=ud*Math.max(1,Math.abs(St),Math.abs(Jc))&&Math.abs(Mt-gd)<=ud*Math.max(1,Math.abs(Mt),Math.abs(gd))&&Math.abs(Tn-Ch)<=ud*Math.max(1,Math.abs(Tn),Math.abs(Ch))&&Math.abs(kn-og)<=ud*Math.max(1,Math.abs(kn),Math.abs(og))&&Math.abs(vr-um)<=ud*Math.max(1,Math.abs(vr),Math.abs(um))&&Math.abs(wi-Zg)<=ud*Math.max(1,Math.abs(wi),Math.abs(Zg))}var Nd=Sl,Yt=Uu,Mn,dr,jr=(Mn=(0,ws.b2)(),Mn(dr=function(){function a(){(0,wt.Z)(this,a),(0,bn.Z)(this,"viewport",void 0),(0,bn.Z)(this,"overridedViewProjectionMatrix",void 0),(0,bn.Z)(this,"jitteredViewProjectionMatrix",void 0),(0,bn.Z)(this,"jitteredProjectionMatrix",void 0),(0,bn.Z)(this,"viewMatrixInverse",void 0),(0,bn.Z)(this,"cameraPosition",void 0)}return(0,He.Z)(a,[{key:"init",value:function(){}},{key:"update",value:function(u){this.viewport=u,this.viewMatrixInverse=nn(),zu(this.viewMatrixInverse,u.getViewMatrix()),this.cameraPosition=[this.viewMatrixInverse[12],this.viewMatrixInverse[13],this.viewMatrixInverse[14]]}},{key:"getProjectionMatrix",value:function(){return this.jitteredProjectionMatrix||this.viewport.getProjectionMatrix()}},{key:"getModelMatrix",value:function(){return this.viewport.getModelMatrix()}},{key:"getViewMatrix",value:function(){return this.viewport.getViewMatrix()}},{key:"getViewMatrixUncentered",value:function(){return this.viewport.getViewMatrixUncentered()}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.viewport.getViewProjectionMatrixUncentered()}},{key:"getViewProjectionMatrix",value:function(){return this.overridedViewProjectionMatrix||this.jitteredViewProjectionMatrix||this.viewport.getViewProjectionMatrix()}},{key:"getZoom",value:function(){return this.viewport.getZoom()}},{key:"getZoomScale",value:function(){return this.viewport.getZoomScale()}},{key:"getCenter",value:function(){var u=this.viewport.getCenter(),c=(0,qn.Z)(u,2),l=c[0],g=c[1];return[l,g]}},{key:"getFocalDistance",value:function(){return this.viewport.getFocalDistance()}},{key:"getCameraPosition",value:function(){return this.cameraPosition}},{key:"projectFlat",value:function(u,c){return this.viewport.projectFlat(u,c)}},{key:"setViewProjectionMatrix",value:function(u){this.overridedViewProjectionMatrix=u}},{key:"jitterProjectionMatrix",value:function(u,c){var l=Ao(nn(),[u,c,0]);this.jitteredProjectionMatrix=Sl(nn(),l,this.viewport.getProjectionMatrix()),this.jitteredViewProjectionMatrix=Sl(nn(),this.jitteredProjectionMatrix,this.viewport.getViewMatrix())}},{key:"clearJitterProjectionMatrix",value:function(){this.jitteredProjectionMatrix=void 0,this.jitteredViewProjectionMatrix=void 0}}]),a}())||dr),go=function(a){return a.TOPRIGHT="topright",a.TOPLEFT="topleft",a.BOTTOMRIGHT="bottomright",a.BOTTOMLEFT="bottomleft",a.TOPCENTER="topcenter",a.BOTTOMCENTER="bottomcenter",a.LEFTCENTER="leftcenter",a.RIGHTCENTER="rightcenter",a.LEFTTOP="lefttop",a.RIGHTTOP="righttop",a.LEFTBOTTOM="leftbottom",a.RIGHTBOTTOM="rightbottom",a}({}),ia,Ga;function Aa(a,p){var u=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!u){if(Array.isArray(a)||(u=Xl(a))||p&&a&&typeof a.length=="number"){u&&(a=u);var c=0,l=function(){};return{s:l,n:function(){return c>=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(ee){throw ee},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var ee=u.next();return g=ee.done,ee},e:function(ee){T=!0,B=ee},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function Xl(a,p){if(a){if(typeof a=="string")return wu(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return wu(a,p)}}function wu(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);u-1&&this.controls.splice(c,1),u.remove(),this}},{key:"addControls",value:function(){var u=this;this.unAddControls.forEach(function(c){c.addTo(u.scene),u.controls.push(c)}),this.unAddControls=[]}},{key:"destroy",value:function(){var u=Aa(this.controls),c;try{for(u.s();!(c=u.n()).done;){var l=c.value;l.remove()}}catch(g){u.e(g)}finally{u.f()}this.controls=[],this.clearControlPos()}},{key:"initControlPos",value:function(){var u=this.controlCorners={},c="l7-",l=this.controlContainer=qi("div",c+"control-container",this.container);function g(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Z=B.map(function(ee){return c+ee}).join(" ");u[B.filter(function(ee){return!["row","column"].includes(ee)}).join("")]=qi("div",Z,l)}function T(B){var Z=B.replace(/^(top|bottom|left|right|center)/,"$1-").split("-");return[].concat((0,kr.Z)(Z),[Ts[B]])}Object.values(go).forEach(function(B){g(T(B))}),this.checkCornerOverlap()}},{key:"clearControlPos",value:function(){for(var u in this.controlCorners)this.controlCorners[u]&&ta(this.controlCorners[u]);this.controlContainer&&ta(this.controlContainer)}},{key:"checkCornerOverlap",value:function(){var u=this,c=window.MutationObserver;if(c)for(var l=function(){var Z=T[g],ee=Z.match(/^(top|bottom)(left|right)$/);if(ee){var Pe=(0,qn.Z)(ee,3),Ze=Pe[1],St=Pe[2],Mt=u.controlCorners["".concat(Ze).concat(St)],Tn=new c(function(kn){var vr=(0,qn.Z)(kn,1),wi=vr[0].target;Mt&&(Mt.style[Ze]=wi.clientHeight+"px")});Tn.observe(u.controlCorners["".concat(St).concat(Ze)],{childList:!0,attributes:!0})}},g=0,T=Object.keys(this.controlCorners);g-1&&this.markerLayers.splice(c,1)}},{key:"addMarker",value:function(u){this.mapsService.map&&this.mapsService.getMarkerContainer()?(this.markers.push(u),u.addTo(this.scene)):this.unAddMarkers.push(u)}},{key:"addMarkers",value:function(){var u=this;this.unAddMarkers.forEach(function(c){c.addTo(u.scene),u.markers.push(c)}),this.unAddMarkers=[]}},{key:"addMarkerLayers",value:function(){var u=this;this.unAddMarkerLayers.forEach(function(c){u.markerLayers.push(c),c.addTo(u.scene)}),this.unAddMarkers=[]}},{key:"removeMarker",value:function(u){u.remove(),this.markers.indexOf(u);var c=this.markers.indexOf(u);c>-1&&this.markers.splice(c,1)}},{key:"removeAllMarkers",value:function(){this.destroy()}},{key:"init",value:function(u){this.scene=u,this.mapsService=u.get(gr.IMapService)}},{key:"destroy",value:function(){this.markers.forEach(function(u){u.remove()}),this.markers=[],this.markerLayers.forEach(function(u){u.destroy()}),this.markerLayers=[]}},{key:"removeMakerLayerMarker",value:function(u){u.destroy()}}]),a}())||ph),wh,cg,yg=(wh=(0,ws.b2)(),wh(cg=function(){function a(){(0,wt.Z)(this,a),(0,bn.Z)(this,"scene",void 0),(0,bn.Z)(this,"mapsService",void 0),(0,bn.Z)(this,"popups",[]),(0,bn.Z)(this,"unAddPopups",[])}return(0,He.Z)(a,[{key:"isMarkerReady",get:function(){return this.mapsService.map&&this.mapsService.getMarkerContainer()}},{key:"removePopup",value:function(u){u!=null&&u.isOpen()&&u.remove();var c=this.popups.indexOf(u);c>-1&&this.popups.splice(c,1);var l=this.unAddPopups.indexOf(u);l>-1&&this.unAddPopups.splice(l,1)}},{key:"destroy",value:function(){this.popups.forEach(function(u){return u.remove()})}},{key:"addPopup",value:function(u){var c=this;u&&u.getOptions().autoClose&&[].concat((0,kr.Z)(this.popups),(0,kr.Z)(this.unAddPopups)).forEach(function(l){l.getOptions().autoClose&&c.removePopup(l)}),this.isMarkerReady?(u.addTo(this.scene),this.popups.push(u)):this.unAddPopups.push(u),u.on("close",function(){c.removePopup(u)})}},{key:"initPopup",value:function(){var u=this;this.unAddPopups.length&&this.unAddPopups.forEach(function(c){u.addPopup(c),u.unAddPopups=[]})}},{key:"init",value:function(u){this.scene=u,this.mapsService=u.get(gr.IMapService)}}]),a}())||cg),Nh=function(a){return a.normal="normal",a.additive="additive",a.subtractive="subtractive",a.min="min",a.max="max",a.none="none",a}({}),nf=function(a){return a.MULTIPLE="MULTIPLE",a.SINGLE="SINGLE",a}({}),Ko=function(a){return a.AND="and",a.OR="or",a}({}),Rl=function(a){return a.INIT="init",a.UPDATE="update",a}({}),Zf={MapToken:"\u60A8\u6B63\u5728\u4F7F\u7528 Demo \u6D4B\u8BD5 Token, \u751F\u4EA7\u73AF\u5883\u52A1\u5FC5\u81EA\u884C\u6CE8\u518C Token \u786E\u4FDD\u670D\u52A1\u7A33\u5B9A \u9AD8\u5FB7\u5730\u56FE\u7533\u8BF7\u5730\u5740 https://lbs.amap.com/api/javascript-api/guide/abc/prepare Mapbox\u5730\u56FE\u7533\u8BF7\u5730\u5740 https://docs.mapbox.com/help/glossary/access-token/",SDK:"\u8BF7\u786E\u8BA4\u5F15\u5165\u4E86mapbox-gl api\u4E14\u5728L7\u4E4B\u524D\u5F15\u5165"},$f=Zf,Yf,em,Mf=Ma.merge,kd={id:"map",logoPosition:"bottomleft",logoVisible:!0,antialias:!0,stencil:!0,preserveDrawingBuffer:!1,pickBufferScale:1,fitBoundsOptions:{animate:!1}},Ef={colors:["rgb(103,0,31)","rgb(178,24,43)","rgb(214,96,77)","rgb(244,165,130)","rgb(253,219,199)","rgb(247,247,247)","rgb(209,229,240)","rgb(146,197,222)","rgb(67,147,195)","rgb(33,102,172)","rgb(5,48,97)"],size:10,shape:"circle",scales:{},shape2d:["circle","triangle","square","pentagon","hexagon","octogon","hexagram","rhombus","vesica"],shape3d:["cylinder","triangleColumn","hexagonColumn","squareColumn"],minZoom:-1,maxZoom:24,visible:!0,autoFit:!1,pickingBuffer:0,enablePropagation:!1,zIndex:0,blend:"normal",maskLayers:[],enableMask:!0,maskOperation:Ko.AND,pickedFeatureID:-1,enableMultiPassRenderer:!1,enablePicking:!0,active:!1,activeColor:"#2f54eb",enableHighlight:!1,enableSelect:!1,highlightColor:"#2f54eb",activeMix:0,selectColor:"blue",selectMix:0,enableTAA:!1,jitterScale:1,enableLighting:!1,animateOption:{enable:!1,interval:.2,duration:4,trailLength:.15},forward:!0},Rg=(Yf=(0,ws.b2)(),Yf(em=function(){function a(){(0,wt.Z)(this,a),(0,bn.Z)(this,"sceneConfigCache",{}),(0,bn.Z)(this,"layerConfigCache",{}),(0,bn.Z)(this,"layerAttributeConfigCache",{})}return(0,He.Z)(a,[{key:"getSceneConfig",value:function(u){return this.sceneConfigCache[u]}},{key:"getSceneWarninfo",value:function(u){return $f[u]}},{key:"setSceneConfig",value:function(u,c){this.sceneConfigCache[u]=(0,xe.Z)((0,xe.Z)({},kd),c)}},{key:"getLayerConfig",value:function(u){return this.layerConfigCache[u]}},{key:"setLayerConfig",value:function(u,c,l){this.layerConfigCache[c]=(0,xe.Z)({},Mf({},this.sceneConfigCache[u],Ef,l))}},{key:"getAttributeConfig",value:function(u){return this.layerAttributeConfigCache[u]}},{key:"setAttributeConfig",value:function(u,c){this.layerAttributeConfigCache[u]=(0,xe.Z)((0,xe.Z)({},this.layerAttributeConfigCache[u]),c)}},{key:"clean",value:function(){this.sceneConfigCache={},this.layerConfigCache={}}}]),a}())||em);function Fd(a,p,u,c){u&&Object.defineProperty(a,p,{enumerable:u.enumerable,configurable:u.configurable,writable:u.writable,value:u.initializer?u.initializer.call(c):void 0})}function $h(a,p,u,c,l){var g={};return Object.keys(c).forEach(function(T){g[T]=c[T]}),g.enumerable=!!g.enumerable,g.configurable=!!g.configurable,("value"in g||g.initializer)&&(g.writable=!0),g=u.slice().reverse().reduce(function(T,B){return B(a,p,T)||T},g),l&&g.initializer!==void 0&&(g.value=g.initializer?g.initializer.call(l):void 0,g.initializer=void 0),g.initializer===void 0&&(Object.defineProperty(a,p,g),g=null),g}function Tg(){var a=new Sc(4);return Sc!=Float32Array&&(a[0]=0,a[1]=0,a[2]=0,a[3]=0),a}function dm(a){var p=new glMatrix.ARRAY_TYPE(4);return p[0]=a[0],p[1]=a[1],p[2]=a[2],p[3]=a[3],p}function Ep(a,p,u,c){var l=new Sc(4);return l[0]=a,l[1]=p,l[2]=u,l[3]=c,l}function mf(a,p){return a[0]=p[0],a[1]=p[1],a[2]=p[2],a[3]=p[3],a}function Gp(a,p,u,c,l){return a[0]=p,a[1]=u,a[2]=c,a[3]=l,a}function Of(a,p,u){return a[0]=p[0]+u[0],a[1]=p[1]+u[1],a[2]=p[2]+u[2],a[3]=p[3]+u[3],a}function Ru(a,p,u){return a[0]=p[0]-u[0],a[1]=p[1]-u[1],a[2]=p[2]-u[2],a[3]=p[3]-u[3],a}function ah(a,p,u){return a[0]=p[0]*u[0],a[1]=p[1]*u[1],a[2]=p[2]*u[2],a[3]=p[3]*u[3],a}function ih(a,p,u){return a[0]=p[0]/u[0],a[1]=p[1]/u[1],a[2]=p[2]/u[2],a[3]=p[3]/u[3],a}function Lp(a,p){return a[0]=Math.ceil(p[0]),a[1]=Math.ceil(p[1]),a[2]=Math.ceil(p[2]),a[3]=Math.ceil(p[3]),a}function qf(a,p){return a[0]=Math.floor(p[0]),a[1]=Math.floor(p[1]),a[2]=Math.floor(p[2]),a[3]=Math.floor(p[3]),a}function kp(a,p,u){return a[0]=Math.min(p[0],u[0]),a[1]=Math.min(p[1],u[1]),a[2]=Math.min(p[2],u[2]),a[3]=Math.min(p[3],u[3]),a}function Kp(a,p,u){return a[0]=Math.max(p[0],u[0]),a[1]=Math.max(p[1],u[1]),a[2]=Math.max(p[2],u[2]),a[3]=Math.max(p[3],u[3]),a}function rp(a,p){return a[0]=Math.round(p[0]),a[1]=Math.round(p[1]),a[2]=Math.round(p[2]),a[3]=Math.round(p[3]),a}function Sm(a,p,u){return a[0]=p[0]*u,a[1]=p[1]*u,a[2]=p[2]*u,a[3]=p[3]*u,a}function Yg(a,p,u,c){return a[0]=p[0]+u[0]*c,a[1]=p[1]+u[1]*c,a[2]=p[2]+u[2]*c,a[3]=p[3]+u[3]*c,a}function dg(a,p){var u=p[0]-a[0],c=p[1]-a[1],l=p[2]-a[2],g=p[3]-a[3];return Math.hypot(u,c,l,g)}function qg(a,p){var u=p[0]-a[0],c=p[1]-a[1],l=p[2]-a[2],g=p[3]-a[3];return u*u+c*c+l*l+g*g}function ig(a){var p=a[0],u=a[1],c=a[2],l=a[3];return Math.hypot(p,u,c,l)}function hg(a){var p=a[0],u=a[1],c=a[2],l=a[3];return p*p+u*u+c*c+l*l}function Xp(a,p){return a[0]=-p[0],a[1]=-p[1],a[2]=-p[2],a[3]=-p[3],a}function B0(a,p){return a[0]=1/p[0],a[1]=1/p[1],a[2]=1/p[2],a[3]=1/p[3],a}function v1(a,p){var u=p[0],c=p[1],l=p[2],g=p[3],T=u*u+c*c+l*l+g*g;return T>0&&(T=1/Math.sqrt(T)),a[0]=u*T,a[1]=c*T,a[2]=l*T,a[3]=g*T,a}function j0(a,p){return a[0]*p[0]+a[1]*p[1]+a[2]*p[2]+a[3]*p[3]}function q_(a,p,u,c){var l=u[0]*c[1]-u[1]*c[0],g=u[0]*c[2]-u[2]*c[0],T=u[0]*c[3]-u[3]*c[0],B=u[1]*c[2]-u[2]*c[1],Z=u[1]*c[3]-u[3]*c[1],ee=u[2]*c[3]-u[3]*c[2],Pe=p[0],Ze=p[1],St=p[2],Mt=p[3];return a[0]=Ze*ee-St*Z+Mt*B,a[1]=-(Pe*ee)+St*T-Mt*g,a[2]=Pe*Z-Ze*T+Mt*l,a[3]=-(Pe*B)+Ze*g-St*l,a}function uv(a,p,u,c){var l=p[0],g=p[1],T=p[2],B=p[3];return a[0]=l+c*(u[0]-l),a[1]=g+c*(u[1]-g),a[2]=T+c*(u[2]-T),a[3]=B+c*(u[3]-B),a}function y1(a,p){p=p||1;var u,c,l,g,T,B;do u=glMatrix.RANDOM()*2-1,c=glMatrix.RANDOM()*2-1,T=u*u+c*c;while(T>=1);do l=glMatrix.RANDOM()*2-1,g=glMatrix.RANDOM()*2-1,B=l*l+g*g;while(B>=1);var Z=Math.sqrt((1-T)/B);return a[0]=p*u,a[1]=p*c,a[2]=p*l*Z,a[3]=p*g*Z,a}function X0(a,p,u){var c=p[0],l=p[1],g=p[2],T=p[3];return a[0]=u[0]*c+u[4]*l+u[8]*g+u[12]*T,a[1]=u[1]*c+u[5]*l+u[9]*g+u[13]*T,a[2]=u[2]*c+u[6]*l+u[10]*g+u[14]*T,a[3]=u[3]*c+u[7]*l+u[11]*g+u[15]*T,a}function V1(a,p,u){var c=p[0],l=p[1],g=p[2],T=u[0],B=u[1],Z=u[2],ee=u[3],Pe=ee*c+B*g-Z*l,Ze=ee*l+Z*c-T*g,St=ee*g+T*l-B*c,Mt=-T*c-B*l-Z*g;return a[0]=Pe*ee+Mt*-T+Ze*-Z-St*-B,a[1]=Ze*ee+Mt*-B+St*-T-Pe*-Z,a[2]=St*ee+Mt*-Z+Pe*-B-Ze*-T,a[3]=p[3],a}function wv(a){return a[0]=0,a[1]=0,a[2]=0,a[3]=0,a}function mv(a){return"vec4("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+")"}function sy(a,p){return a[0]===p[0]&&a[1]===p[1]&&a[2]===p[2]&&a[3]===p[3]}function Sv(a,p){var u=a[0],c=a[1],l=a[2],g=a[3],T=p[0],B=p[1],Z=p[2],ee=p[3];return Math.abs(u-T)<=glMatrix.EPSILON*Math.max(1,Math.abs(u),Math.abs(T))&&Math.abs(c-B)<=glMatrix.EPSILON*Math.max(1,Math.abs(c),Math.abs(B))&&Math.abs(l-Z)<=glMatrix.EPSILON*Math.max(1,Math.abs(l),Math.abs(Z))&&Math.abs(g-ee)<=glMatrix.EPSILON*Math.max(1,Math.abs(g),Math.abs(ee))}var vv=null,E0=null,$v=null,ay=null,Ky=null,Wv=null,n1=null,Gu=function(){var a=Tg();return function(p,u,c,l,g,T){var B,Z;for(u||(u=4),c||(c=0),l?Z=Math.min(l*u+c,p.length):Z=p.length,B=c;BIn-1*ni||zo<0||Ks>kn-1*ni||Ks<0)return!1;var ca=Ge({x:Math.floor(zo/p.pickBufferScale),y:Math.floor((kn-(g+1)*ni)/p.pickBufferScale),width:1,height:1,data:new Uint8Array(1*1*4),framebuffer:p.pickingFBO});if(p.pickedColors=ca,ca[0]!==0||ca[1]!==0||ca[2]!==0){var Ia=ti(ca),al=u.layerPickService.getFeatureById(Ia);Ia!==u.getCurrentPickId()&&B==="mousemove"&&(B="mouseenter");var jl={x:l,y:g,type:B,lngLat:T,featureId:Ia,feature:al,target:G};al&&(te=!0,u.setCurrentPickId(Ia),p.triggerHoverOnLayer(u,jl))}else{var Wl={x:l,y:g,lngLat:T,type:u.getCurrentPickId()!==null&&B==="mousemove"?"mouseout":"un"+B,featureId:null,target:G,feature:null};p.triggerHoverOnLayer(u,(0,Ce.Z)((0,Ce.Z)({},Wl),{},{type:"unpick"})),p.triggerHoverOnLayer(u,Wl),u.setCurrentPickId(null)}if(_i&&u.layerPickService.highlightPickedFeature(ca),Vo&&B==="click"&&(ca==null?void 0:ca.toString())!==[0,0,0,0].toString()){var Wu=ti(ca);u.getCurrentSelectedId()===null||Wu!==u.getCurrentSelectedId()?(u.layerPickService.selectFeature(ca),u.setCurrentSelectedId(Wu)):(u.layerPickService.selectFeature(new Uint8Array([0,0,0,0])),u.setCurrentSelectedId(null))}return te})}return(0,Ue.Z)(a,[{key:"init",value:function(u){var c=this.rendererService,l=c.createTexture2D,g=c.createFramebuffer,T=c.getContainer,B=this.getContainerSize(T()),G=B.width,te=B.height;G*=ni,te*=ni,this.pickBufferScale=this.configService.getSceneConfig(u).pickBufferScale||1,this.pickingFBO=g({color:l({width:Math.round(G/this.pickBufferScale),height:Math.round(te/this.pickBufferScale),wrapS:Gi.CLAMP_TO_EDGE,wrapT:Gi.CLAMP_TO_EDGE})}),this.interactionService.on(fg.Hover,this.pickingAllLayer.bind(this))}},{key:"boxPickLayer",value:function(){var p=(0,ka.Z)(Qi().mark(function c(l,g,T){var B=this,G,te,Me;return Qi().wrap(function(St){for(;;)switch(St.prev=St.next){case 0:G=this.rendererService,te=G.useFramebuffer,Me=G.clear,this.resizePickingFBO(),te(this.pickingFBO,function(){Me({framebuffer:B.pickingFBO,color:[0,0,0,0],stencil:0,depth:1}),l.hooks.beforePickingEncode.call(),l.renderModels({ispick:!0}),l.hooks.afterPickingEncode.call();var Mt=B.pickBox(l,g);T(Mt)});case 3:case"end":return St.stop()}},c,this)}));function u(c,l,g){return p.apply(this,arguments)}return u}()},{key:"pickBox",value:function(u,c){var l=this,g=c.map(function(Wu){var Pu=Wu<0?0:Wu;return Math.floor(Pu*ni/l.pickBufferScale)}),T=(0,Qn.Z)(g,4),B=T[0],G=T[1],te=T[2],Me=T[3],Ge=this.rendererService,St=Ge.readPixels,Mt=Ge.getContainer,In=this.getContainerSize(Mt()),kn=In.width,Sr=In.height;if(kn*=ni,Sr*=ni,B>(kn-1)*ni/this.pickBufferScale||te<0||G>(Sr-1)*ni/this.pickBufferScale||Me<0)return[];for(var _i=Math.min(kn/this.pickBufferScale,te)-B,Vo=Math.min(Sr/this.pickBufferScale,Me)-G,zo=St({x:B,y:Math.floor(Sr/this.pickBufferScale-(Me+1)),width:_i,height:Vo,data:new Uint8Array(_i*Vo*4),framebuffer:this.pickingFBO}),Ks=[],ca={},Ia=0;Ia0&&arguments[0]!==void 0?arguments[0]:!0;(0,bt.Z)(this,a),(0,bn.Z)(this,"autoStart",void 0),(0,bn.Z)(this,"startTime",0),(0,bn.Z)(this,"oldTime",0),(0,bn.Z)(this,"running",!1),(0,bn.Z)(this,"elapsedTime",0),this.autoStart=p}return(0,Ue.Z)(a,[{key:"start",value:function(){this.startTime=(typeof performance=="undefined"?Date:performance).now(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}},{key:"stop",value:function(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}},{key:"getElapsedTime",value:function(){return this.getDelta(),this.elapsedTime}},{key:"getDelta",value:function(){var u=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){var c=(typeof performance=="undefined"?Date:performance).now();u=(c-this.oldTime)/1e3,this.oldTime=c,this.elapsedTime+=u}return u}}]),a}(),uv,Q1,ry,cv,rv,yv,jv,Wv,Ny;function e_(a,p){var u=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!u){if(Array.isArray(a)||(u=iv(a))||p&&a&&typeof a.length=="number"){u&&(a=u);var c=0,l=function(){};return{s:l,n:function(){return c>=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(te){throw te},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var te=u.next();return g=te.done,te},e:function(te){T=!0,B=te},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function iv(a,p){if(a){if(typeof a=="string")return S_(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return S_(a,p)}}function S_(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);u-1&&B.layerChildren.splice(G,1)):(te=this.layers.indexOf(T),te>-1&&this.layers.splice(te,1)),T.destroy(),this.reRender(),this.emit("layerChange",this.layers);case 4:case"end":return Ge.stop()}},g,this)}));function l(g,T){return c.apply(this,arguments)}return l}()},{key:"removeAllLayers",value:function(){var c=(0,ka.Z)(Qi().mark(function g(){return Qi().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:this.destroy(),this.reRender();case 2:case"end":return B.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"setEnableRender",value:function(l){this.enableRender=l}},{key:"renderLayers",value:function(){var c=(0,ka.Z)(Qi().mark(function g(){var T,B,G,te,Me,Ge;return Qi().wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:if(!(this.alreadyInRendering||!this.enableRender)){Mt.next=2;break}return Mt.abrupt("return");case 2:this.updateLayerRenderList(),T=this.debugService.generateRenderUid(),this.debugService.renderStart(T),this.alreadyInRendering=!0,this.clear(),B=e_(this.layerList),Mt.prev=8,B.s();case 10:if((G=B.n()).done){Mt.next=23;break}if(te=G.value,Me=te.getLayerConfig(),Ge=Me.enableMask,te.masks.filter(function(In){return In.inited}).length>0&&Ge&&this.renderMask(te.masks),!te.getLayerConfig().enableMultiPassRenderer){Mt.next=19;break}return Mt.next=17,te.renderMultiPass();case 17:Mt.next=21;break;case 19:return Mt.next=21,te.render();case 21:Mt.next=10;break;case 23:Mt.next=28;break;case 25:Mt.prev=25,Mt.t0=Mt.catch(8),B.e(Mt.t0);case 28:return Mt.prev=28,B.f(),Mt.finish(28);case 31:this.debugService.renderEnd(T),this.alreadyInRendering=!1;case 33:case"end":return Mt.stop()}},g,this,[[8,25,28,31]])}));function l(){return c.apply(this,arguments)}return l}()},{key:"renderMask",value:function(l){var g=0;this.renderService.clear({stencil:0,depth:1,framebuffer:null});var T=l.length>1?nf.MULTIPLE:nf.SINGLE,B=e_(l),G;try{for(B.s();!(G=B.n()).done;){var te=G.value;te.render({isStencil:!0,stencilType:T,stencilIndex:g++})}}catch(Me){B.e(Me)}finally{B.f()}}},{key:"beforeRenderData",value:function(){var c=(0,ka.Z)(Qi().mark(function g(T){var B;return Qi().wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return te.next=2,T.hooks.beforeRenderData.promise();case 2:B=te.sent,B&&this.renderLayers();case 4:case"end":return te.stop()}},g,this)}));function l(g){return c.apply(this,arguments)}return l}()},{key:"renderTileLayerMask",value:function(l){var g=0,T=l.getLayerConfig(),B=T.enableMask,G=B===void 0?!0:B,te=l.tileMask?1:0,Me=l.masks.filter(function(kn){return kn.inited});te=te+(G?Me.length:1);var Ge=te>1?nf.MULTIPLE:nf.SINGLE;if((l.tileMask||Me.length&&G)&&this.renderService.clear({stencil:0,depth:1,framebuffer:null}),Me.length&&G){var St=e_(Me),Mt;try{for(St.s();!(Mt=St.n()).done;){var In=Mt.value;In.render({isStencil:!0,stencilType:Ge,stencilIndex:g++})}}catch(kn){St.e(kn)}finally{St.f()}}l.tileMask&&l.tileMask.render({isStencil:!0,stencilType:Ge,stencilIndex:g++,stencilOperation:Ko.OR})}},{key:"renderTileLayer",value:function(){var c=(0,ka.Z)(Qi().mark(function g(T){return Qi().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:if(this.renderTileLayerMask(T),!T.getLayerConfig().enableMultiPassRenderer){G.next=6;break}return G.next=4,T.renderMultiPass();case 4:G.next=8;break;case 6:return G.next=8,T.render();case 8:case"end":return G.stop()}},g,this)}));function l(g){return c.apply(this,arguments)}return l}()},{key:"updateLayerRenderList",value:function(){var l=this;this.layerList=[],this.layers.filter(function(g){return g.inited}).filter(function(g){return g.isVisible()}).sort(function(g,T){return g.zIndex-T.zIndex}).forEach(function(g){l.layerList.push(g)})}},{key:"destroy",value:function(){this.layers.forEach(function(l){l.destroy()}),this.layers=[],this.layerList=[],this.emit("layerChange",this.layers)}},{key:"startAnimate",value:function(){this.animateInstanceCount++===0&&(this.clock.start(),this.runRender())}},{key:"stopAnimate",value:function(){--this.animateInstanceCount===0&&(this.stopRender(),this.clock.stop())}},{key:"getOESTextureFloat",value:function(){return this.renderService.extensionObject.OES_texture_float}},{key:"enableShaderPick",value:function(){this.shaderPicking=!0}},{key:"disableShaderPick",value:function(){this.shaderPicking=!1}},{key:"getShaderPickStat",value:function(){return this.shaderPicking}},{key:"clear",value:function(){var l=Kr(this.mapService.bgColor);this.renderService.clear({color:l,depth:1,stencil:0,framebuffer:null})}},{key:"runRender",value:function(){this.renderLayers(),this.layerRenderID=window.requestAnimationFrame(this.runRender.bind(this))}},{key:"stopRender",value:function(){window.cancelAnimationFrame(this.layerRenderID)}}]),u}(yf.EventEmitter),jv=$h(yv.prototype,"renderService",[Q1],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Wv=$h(yv.prototype,"mapService",[ry],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ny=$h(yv.prototype,"debugService",[cv],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),yv))||rv),Vg=m(91),Q_=Ma.isNil,ZC=function(){function a(p){var u=this;(0,bt.Z)(this,a),(0,bn.Z)(this,"name",void 0),(0,bn.Z)(this,"type",void 0),(0,bn.Z)(this,"scale",void 0),(0,bn.Z)(this,"descriptor",void 0),(0,bn.Z)(this,"featureBufferLayout",[]),(0,bn.Z)(this,"needRescale",!1),(0,bn.Z)(this,"needRemapping",!1),(0,bn.Z)(this,"needRegenerateVertices",!1),(0,bn.Z)(this,"featureRange",{startIndex:0,endIndex:1/0}),(0,bn.Z)(this,"vertexAttribute",void 0),(0,bn.Z)(this,"defaultCallback",function(c){if(c.length===0){var l;return((l=u.scale)===null||l===void 0?void 0:l.defaultValues)||[]}return c.map(function(g,T){var B,G=(B=u.scale)===null||B===void 0?void 0:B.scalers[T].func,te=G(g);return te})}),this.setProps(p)}return(0,Ue.Z)(a,[{key:"setProps",value:function(u){Object.assign(this,u)}},{key:"mapping",value:function(u){var c;if((c=this.scale)!==null&&c!==void 0&&c.callback){var l,g=(l=this.scale)===null||l===void 0?void 0:l.callback.apply(l,(0,kr.Z)(u));if(!Q_(g))return[g]}return this.defaultCallback(u)}},{key:"resetDescriptor",value:function(){this.descriptor&&(this.descriptor.buffer.data=[])}}]),a}(),T_=["buffer","update","name"],ax=["buffer","update","name"],p1,lx,D_,A_,I_,qx,ux=(p1={},(0,bn.Z)(p1,Gi.FLOAT,4),(0,bn.Z)(p1,Gi.UNSIGNED_BYTE,1),(0,bn.Z)(p1,Gi.UNSIGNED_SHORT,2),p1),yS=(lx=(0,ws.b2)(),D_=(0,ws.f3)(gr.IRendererService),lx(A_=(I_=function(){function a(){(0,bt.Z)(this,a),(0,bn.Z)(this,"attributesAndIndices",void 0),Fd(this,"rendererService",qx,this),(0,bn.Z)(this,"attributes",[]),(0,bn.Z)(this,"triangulation",void 0),(0,bn.Z)(this,"featureLayout",{sizePerElement:0,elements:[]})}return(0,Ue.Z)(a,[{key:"registerStyleAttribute",value:function(u){var c=this.getLayerStyleAttribute(u.name||"");return c?c.setProps(u):(c=new ZC(u),this.attributes.push(c)),c}},{key:"unRegisterStyleAttribute",value:function(u){var c=this.attributes.findIndex(function(l){return l.name===u});c>-1&&this.attributes.splice(c,1)}},{key:"updateScaleAttribute",value:function(u){this.attributes.forEach(function(c){var l,g=c.name,T=(l=c.scale)===null||l===void 0?void 0:l.field;(u[g]||T&&u[T])&&(c.needRescale=!0,c.needRemapping=!0,c.needRegenerateVertices=!0)})}},{key:"updateStyleAttribute",value:function(u,c,l){var g=this.getLayerStyleAttribute(u);g||(g=this.registerStyleAttribute((0,Ce.Z)((0,Ce.Z)({},c),{},{name:u})));var T=c.scale;T&&g&&(g.scale=T,g.needRescale=!0,g.needRemapping=!0,g.needRegenerateVertices=!0,l&&l.featureRange&&(g.featureRange=l.featureRange))}},{key:"getLayerStyleAttributes",value:function(){return this.attributes}},{key:"getLayerStyleAttribute",value:function(u){return this.attributes.find(function(c){return c.name===u})}},{key:"getLayerAttributeScale",value:function(u){var c,l=this.getLayerStyleAttribute(u),g=l==null||(c=l.scale)===null||c===void 0?void 0:c.scalers;return g&&g[0]?g[0].func:null}},{key:"updateAttributeByFeatureRange",value:function(u,c){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,g=arguments.length>3?arguments[3]:void 0,T=arguments.length>4?arguments[4]:void 0,B=this.attributes.find(function(ca){return ca.name===u});if(B&&B.descriptor){var G=B.descriptor,te=G.update,Me=G.buffer,Ge=G.size,St=Ge===void 0?0:Ge,Mt=ux[Me.type||Gi.FLOAT];if(te){var In=this.featureLayout,kn=In.elements,Sr=In.sizePerElement,_i=kn.slice(l,g);if(!_i.length)return;var Vo=_i[0].offset,zo=Vo*St*Mt,Ks=_i.map(function(ca,Ia){for(var al=ca.featureIdx,jl=ca.vertices,Wl=ca.normals,Wu=jl.length/Sr,Pu=[],Vc=0;Vc0&&g[g.length-1])&&(te[0]===6||te[0]===2)){u=0;continue}if(te[0]===3&&(!g||te[1]>g[0]&&te[1]0)&&!(l=c.next()).done;)g.push(l.value)}catch(B){T={error:B}}finally{try{l&&!l.done&&(u=c.return)&&u.call(c)}finally{if(T)throw T.error}}return g}function Ky(a,p,u){if(u||arguments.length===2)for(var c=0,l=p.length,g;c=0&&c.length%1===0}a.exports=p.default})(xy,xy.exports);var Av={},P_={exports:{}},Iv={exports:{}};(function(a,p){Object.defineProperty(p,"__esModule",{value:!0}),p.default=function(u){return function(){for(var c=[],l=arguments.length;l--;)c[l]=arguments[l];var g=c.pop();return u.call(this,c,g)}},a.exports=p.default})(Iv,Iv.exports);var sy={};Object.defineProperty(sy,"__esModule",{value:!0}),sy.fallback=Qx,sy.wrap=dx;var Jx=sy.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,Lv=sy.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,cx=sy.hasNextTick=typeof oy=="object"&&typeof oy.nextTick=="function";function Qx(a){setTimeout(a,0)}function dx(a){return function(p){for(var u=[],c=arguments.length-1;c-- >0;)u[c]=arguments[c+1];return a(function(){return p.apply(void 0,u)})}}var eb;Jx?eb=queueMicrotask:Lv?eb=setImmediate:cx?eb=oy.nextTick:eb=Qx,sy.default=dx(eb),function(a,p){Object.defineProperty(p,"__esModule",{value:!0}),p.default=G;var u=Iv.exports,c=B(u),l=sy,g=B(l),T=Av;function B(Ge){return Ge&&Ge.__esModule?Ge:{default:Ge}}function G(Ge){return(0,T.isAsync)(Ge)?function(){for(var St=[],Mt=arguments.length;Mt--;)St[Mt]=arguments[Mt];var In=St.pop(),kn=Ge.apply(this,St);return te(kn,In)}:(0,c.default)(function(St,Mt){var In;try{In=Ge.apply(this,St)}catch(kn){return Mt(kn)}if(In&&typeof In.then=="function")return te(In,Mt);Mt(null,In)})}function te(Ge,St){return Ge.then(function(Mt){Me(St,null,Mt)},function(Mt){Me(St,Mt&&Mt.message?Mt:new Error(Mt))})}function Me(Ge,St,Mt){try{Ge(St,Mt)}catch(In){(0,g.default)(function(kn){throw kn},In)}}a.exports=p.default}(P_,P_.exports),Object.defineProperty(Av,"__esModule",{value:!0}),Av.isAsyncIterable=Av.isAsyncGenerator=Av.isAsync=void 0;var hx=P_.exports,fx=Yw(hx);function Yw(a){return a&&a.__esModule?a:{default:a}}function Ab(a){return a[Symbol.toStringTag]==="AsyncFunction"}function GC(a){return a[Symbol.toStringTag]==="AsyncGenerator"}function px(a){return typeof a[Symbol.asyncIterator]=="function"}function _S(a){if(typeof a!="function")throw new Error("expected a function");return Ab(a)?(0,fx.default)(a):a}Av.default=_S,Av.isAsync=Ab,Av.isAsyncGenerator=GC,Av.isAsyncIterable=px;var g1={exports:{}};(function(a,p){Object.defineProperty(p,"__esModule",{value:!0}),p.default=u;function u(c,l){if(l===void 0&&(l=c.length),!l)throw new Error("arity is undefined");function g(){for(var T=this,B=[],G=arguments.length;G--;)B[G]=arguments[G];return typeof B[l-1]=="function"?c.apply(this,B):new Promise(function(te,Me){B[l-1]=function(Ge){for(var St=[],Mt=arguments.length-1;Mt-- >0;)St[Mt]=arguments[Mt+1];if(Ge)return Me(Ge);te(St.length>1?St:St[0])},c.apply(T,B)})}return g}a.exports=p.default})(g1,g1.exports),function(a,p){Object.defineProperty(p,"__esModule",{value:!0});var u=xy.exports,c=G(u),l=Av,g=G(l),T=g1.exports,B=G(T);function G(te){return te&&te.__esModule?te:{default:te}}p.default=(0,B.default)(function(te,Me,Ge){var St=(0,c.default)(Me)?[]:{};te(Me,function(Mt,In,kn){(0,g.default)(Mt)(function(Sr){for(var _i,Vo=[],zo=arguments.length-1;zo-- >0;)Vo[zo]=arguments[zo+1];Vo.length<2&&(_i=Vo,Vo=_i[0]),St[In]=Vo,kn(Sr)})},function(Mt){return Ge(Mt,St)})},3),a.exports=p.default}(Xy,Xy.exports);var m1={exports:{}},t_={exports:{}},k_={exports:{}},tb={exports:{}};(function(a,p){Object.defineProperty(p,"__esModule",{value:!0}),p.default=u;function u(c){function l(){for(var g=[],T=arguments.length;T--;)g[T]=arguments[T];if(c!==null){var B=c;c=null,B.apply(this,g)}}return Object.assign(l,c),l}a.exports=p.default})(tb,tb.exports);var Ib={exports:{}},M1={exports:{}};(function(a,p){Object.defineProperty(p,"__esModule",{value:!0}),p.default=function(u){return u[Symbol.iterator]&&u[Symbol.iterator]()},a.exports=p.default})(M1,M1.exports),function(a,p){Object.defineProperty(p,"__esModule",{value:!0}),p.default=Me;var u=xy.exports,c=T(u),l=M1.exports,g=T(l);function T(Ge){return Ge&&Ge.__esModule?Ge:{default:Ge}}function B(Ge){var St=-1,Mt=Ge.length;return function(){return++St=B||St||Me||(St=!0,T.next().then(function(Vo){var zo=Vo.value,Ks=Vo.done;if(!(Ge||Me)){if(St=!1,Ks){Me=!0,Mt<=0&&te(null);return}Mt++,G(zo,In,Sr),In++,kn()}}).catch(_i))}function Sr(Vo,zo){if(Mt-=1,!Ge){if(Vo)return _i(Vo);if(Vo===!1){Me=!0,Ge=!0;return}if(zo===c.default||Me&&Mt<=0)return Me=!0,te(null);kn()}}function _i(Vo){Ge||(St=!1,Me=!0,te(Vo))}kn()}a.exports=p.default}(Lb,Lb.exports),function(a,p){Object.defineProperty(p,"__esModule",{value:!0});var u=tb.exports,c=Mt(u),l=Ib.exports,g=Mt(l),T=v1.exports,B=Mt(T),G=Av,te=Lb.exports,Me=Mt(te),Ge=nb.exports,St=Mt(Ge);function Mt(In){return In&&In.__esModule?In:{default:In}}p.default=function(In){return function(kn,Sr,_i){if(_i=(0,c.default)(_i),In<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!kn)return _i(null);if((0,G.isAsyncGenerator)(kn))return(0,Me.default)(kn,In,Sr,_i);if((0,G.isAsyncIterable)(kn))return(0,Me.default)(kn[Symbol.asyncIterator](),In,Sr,_i);var Vo=(0,g.default)(kn),zo=!1,Ks=!1,ca=0,Ia=!1;function al(Wl,Wu){if(!Ks)if(ca-=1,Wl)zo=!0,_i(Wl);else if(Wl===!1)zo=!0,Ks=!0;else{if(Wu===St.default||zo&&ca<=0)return zo=!0,_i(null);Ia||jl()}}function jl(){for(Ia=!0;ca0;)Vo[zo]=arguments[zo+1];if(_i!==!1){if(_i||In===St.length)return Mt.apply(void 0,[_i].concat(Vo));kn(Vo)}}kn([])}p.default=(0,te.default)(Ge),a.exports=p.default})(tC,tC.exports);var YC=L_(tC.exports),qC=function(){function a(){this.tasks=[]}return a.prototype.call=function(){return YC(this.tasks)},a.prototype.tap=function(p,u){this.tasks.length===0?this.tasks.push(function(c){var l=u();c(l?null:!1,l)}):this.tasks.push(function(c,l){var g=u.apply(void 0,Ky([],Dv(c),!1));l(g?null:!1,p)})},a}(),qw=function(){function a(){this.tasks=[]}return a.prototype.call=function(){return n_(this.tasks)},a.prototype.tap=function(p,u){this.tasks.push(function(c){var l=u();c(l,p)})},a}(),Jw=function(){function a(){this.args=[],this.tasks=[]}return a.prototype.promise=function(){for(var p=arguments,u=[],c=0;c1&&(B=g[1].trim()),c){case"bool":B=B==="true";break;case"float":case"int":B=Number(B);break;case"vec2":case"vec3":case"vec4":case"ivec2":case"ivec3":case"ivec4":case"mat2":case"mat3":case"mat4":B?B=B.replace("[","").replace("]","").split(",").reduce(function(G,te){return G.push(Number(te.trim())),G},[]):B=new Array(se(c)).fill(0);break;default:}return p[T]=B,"uniform ".concat(c," ").concat(T,`; + `,u.id="l7-scene-".concat(fm++),u.classList.add("l7-scene"),p.appendChild(u),u}return null}function Ty(a){var p,u=!0;if((a==null||(p=a.target)===null||p===void 0?void 0:p.target)instanceof HTMLElement)for(var c,l=a==null||(c=a.target)===null||c===void 0?void 0:c.target;l;){var g,T=Array.from(l.classList);if(T.includes("l7-marker")||T.includes("l7-popup")){u=!1;break}l=(g=l)===null||g===void 0?void 0:g.parentElement}return u}var Gi=function(a){return a[a.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",a[a.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",a[a.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT",a[a.POINTS=0]="POINTS",a[a.LINES=1]="LINES",a[a.LINE_LOOP=2]="LINE_LOOP",a[a.LINE_STRIP=3]="LINE_STRIP",a[a.TRIANGLES=4]="TRIANGLES",a[a.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",a[a.TRIANGLE_FAN=6]="TRIANGLE_FAN",a[a.ZERO=0]="ZERO",a[a.ONE=1]="ONE",a[a.SRC_COLOR=768]="SRC_COLOR",a[a.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",a[a.SRC_ALPHA=770]="SRC_ALPHA",a[a.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",a[a.DST_ALPHA=772]="DST_ALPHA",a[a.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",a[a.DST_COLOR=774]="DST_COLOR",a[a.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",a[a.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",a[a.FUNC_ADD=32774]="FUNC_ADD",a[a.BLEND_EQUATION=32777]="BLEND_EQUATION",a[a.BLEND_EQUATION_RGB=32777]="BLEND_EQUATION_RGB",a[a.BLEND_EQUATION_ALPHA=34877]="BLEND_EQUATION_ALPHA",a[a.FUNC_SUBTRACT=32778]="FUNC_SUBTRACT",a[a.FUNC_REVERSE_SUBTRACT=32779]="FUNC_REVERSE_SUBTRACT",a[a.MAX_EXT=32776]="MAX_EXT",a[a.MIN_EXT=32775]="MIN_EXT",a[a.BLEND_DST_RGB=32968]="BLEND_DST_RGB",a[a.BLEND_SRC_RGB=32969]="BLEND_SRC_RGB",a[a.BLEND_DST_ALPHA=32970]="BLEND_DST_ALPHA",a[a.BLEND_SRC_ALPHA=32971]="BLEND_SRC_ALPHA",a[a.CONSTANT_COLOR=32769]="CONSTANT_COLOR",a[a.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",a[a.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",a[a.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA",a[a.BLEND_COLOR=32773]="BLEND_COLOR",a[a.ARRAY_BUFFER=34962]="ARRAY_BUFFER",a[a.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",a[a.ARRAY_BUFFER_BINDING=34964]="ARRAY_BUFFER_BINDING",a[a.ELEMENT_ARRAY_BUFFER_BINDING=34965]="ELEMENT_ARRAY_BUFFER_BINDING",a[a.STREAM_DRAW=35040]="STREAM_DRAW",a[a.STATIC_DRAW=35044]="STATIC_DRAW",a[a.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",a[a.BUFFER_SIZE=34660]="BUFFER_SIZE",a[a.BUFFER_USAGE=34661]="BUFFER_USAGE",a[a.CURRENT_VERTEX_ATTRIB=34342]="CURRENT_VERTEX_ATTRIB",a[a.FRONT=1028]="FRONT",a[a.BACK=1029]="BACK",a[a.FRONT_AND_BACK=1032]="FRONT_AND_BACK",a[a.CULL_FACE=2884]="CULL_FACE",a[a.BLEND=3042]="BLEND",a[a.DITHER=3024]="DITHER",a[a.STENCIL_TEST=2960]="STENCIL_TEST",a[a.DEPTH_TEST=2929]="DEPTH_TEST",a[a.SCISSOR_TEST=3089]="SCISSOR_TEST",a[a.POLYGON_OFFSET_FILL=32823]="POLYGON_OFFSET_FILL",a[a.SAMPLE_ALPHA_TO_COVERAGE=32926]="SAMPLE_ALPHA_TO_COVERAGE",a[a.SAMPLE_COVERAGE=32928]="SAMPLE_COVERAGE",a[a.NO_ERROR=0]="NO_ERROR",a[a.INVALID_ENUM=1280]="INVALID_ENUM",a[a.INVALID_VALUE=1281]="INVALID_VALUE",a[a.INVALID_OPERATION=1282]="INVALID_OPERATION",a[a.OUT_OF_MEMORY=1285]="OUT_OF_MEMORY",a[a.CW=2304]="CW",a[a.CCW=2305]="CCW",a[a.LINE_WIDTH=2849]="LINE_WIDTH",a[a.ALIASED_POINT_SIZE_RANGE=33901]="ALIASED_POINT_SIZE_RANGE",a[a.ALIASED_LINE_WIDTH_RANGE=33902]="ALIASED_LINE_WIDTH_RANGE",a[a.CULL_FACE_MODE=2885]="CULL_FACE_MODE",a[a.FRONT_FACE=2886]="FRONT_FACE",a[a.DEPTH_RANGE=2928]="DEPTH_RANGE",a[a.DEPTH_WRITEMASK=2930]="DEPTH_WRITEMASK",a[a.DEPTH_CLEAR_VALUE=2931]="DEPTH_CLEAR_VALUE",a[a.DEPTH_FUNC=2932]="DEPTH_FUNC",a[a.STENCIL_CLEAR_VALUE=2961]="STENCIL_CLEAR_VALUE",a[a.STENCIL_FUNC=2962]="STENCIL_FUNC",a[a.STENCIL_FAIL=2964]="STENCIL_FAIL",a[a.STENCIL_PASS_DEPTH_FAIL=2965]="STENCIL_PASS_DEPTH_FAIL",a[a.STENCIL_PASS_DEPTH_PASS=2966]="STENCIL_PASS_DEPTH_PASS",a[a.STENCIL_REF=2967]="STENCIL_REF",a[a.STENCIL_VALUE_MASK=2963]="STENCIL_VALUE_MASK",a[a.STENCIL_WRITEMASK=2968]="STENCIL_WRITEMASK",a[a.STENCIL_BACK_FUNC=34816]="STENCIL_BACK_FUNC",a[a.STENCIL_BACK_FAIL=34817]="STENCIL_BACK_FAIL",a[a.STENCIL_BACK_PASS_DEPTH_FAIL=34818]="STENCIL_BACK_PASS_DEPTH_FAIL",a[a.STENCIL_BACK_PASS_DEPTH_PASS=34819]="STENCIL_BACK_PASS_DEPTH_PASS",a[a.STENCIL_BACK_REF=36003]="STENCIL_BACK_REF",a[a.STENCIL_BACK_VALUE_MASK=36004]="STENCIL_BACK_VALUE_MASK",a[a.STENCIL_BACK_WRITEMASK=36005]="STENCIL_BACK_WRITEMASK",a[a.VIEWPORT=2978]="VIEWPORT",a[a.SCISSOR_BOX=3088]="SCISSOR_BOX",a[a.COLOR_CLEAR_VALUE=3106]="COLOR_CLEAR_VALUE",a[a.COLOR_WRITEMASK=3107]="COLOR_WRITEMASK",a[a.UNPACK_ALIGNMENT=3317]="UNPACK_ALIGNMENT",a[a.PACK_ALIGNMENT=3333]="PACK_ALIGNMENT",a[a.MAX_TEXTURE_SIZE=3379]="MAX_TEXTURE_SIZE",a[a.MAX_VIEWPORT_DIMS=3386]="MAX_VIEWPORT_DIMS",a[a.SUBPIXEL_BITS=3408]="SUBPIXEL_BITS",a[a.RED_BITS=3410]="RED_BITS",a[a.GREEN_BITS=3411]="GREEN_BITS",a[a.BLUE_BITS=3412]="BLUE_BITS",a[a.ALPHA_BITS=3413]="ALPHA_BITS",a[a.DEPTH_BITS=3414]="DEPTH_BITS",a[a.STENCIL_BITS=3415]="STENCIL_BITS",a[a.POLYGON_OFFSET_UNITS=10752]="POLYGON_OFFSET_UNITS",a[a.POLYGON_OFFSET_FACTOR=32824]="POLYGON_OFFSET_FACTOR",a[a.TEXTURE_BINDING_2D=32873]="TEXTURE_BINDING_2D",a[a.SAMPLE_BUFFERS=32936]="SAMPLE_BUFFERS",a[a.SAMPLES=32937]="SAMPLES",a[a.SAMPLE_COVERAGE_VALUE=32938]="SAMPLE_COVERAGE_VALUE",a[a.SAMPLE_COVERAGE_INVERT=32939]="SAMPLE_COVERAGE_INVERT",a[a.COMPRESSED_TEXTURE_FORMATS=34467]="COMPRESSED_TEXTURE_FORMATS",a[a.DONT_CARE=4352]="DONT_CARE",a[a.FASTEST=4353]="FASTEST",a[a.NICEST=4354]="NICEST",a[a.GENERATE_MIPMAP_HINT=33170]="GENERATE_MIPMAP_HINT",a[a.BYTE=5120]="BYTE",a[a.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",a[a.SHORT=5122]="SHORT",a[a.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",a[a.INT=5124]="INT",a[a.UNSIGNED_INT=5125]="UNSIGNED_INT",a[a.FLOAT=5126]="FLOAT",a[a.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",a[a.ALPHA=6406]="ALPHA",a[a.RGB=6407]="RGB",a[a.RGBA=6408]="RGBA",a[a.LUMINANCE=6409]="LUMINANCE",a[a.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",a[a.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",a[a.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",a[a.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",a[a.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",a[a.VERTEX_SHADER=35633]="VERTEX_SHADER",a[a.MAX_VERTEX_ATTRIBS=34921]="MAX_VERTEX_ATTRIBS",a[a.MAX_VERTEX_UNIFORM_VECTORS=36347]="MAX_VERTEX_UNIFORM_VECTORS",a[a.MAX_VARYING_VECTORS=36348]="MAX_VARYING_VECTORS",a[a.MAX_COMBINED_TEXTURE_IMAGE_UNITS=35661]="MAX_COMBINED_TEXTURE_IMAGE_UNITS",a[a.MAX_VERTEX_TEXTURE_IMAGE_UNITS=35660]="MAX_VERTEX_TEXTURE_IMAGE_UNITS",a[a.MAX_TEXTURE_IMAGE_UNITS=34930]="MAX_TEXTURE_IMAGE_UNITS",a[a.MAX_FRAGMENT_UNIFORM_VECTORS=36349]="MAX_FRAGMENT_UNIFORM_VECTORS",a[a.SHADER_TYPE=35663]="SHADER_TYPE",a[a.DELETE_STATUS=35712]="DELETE_STATUS",a[a.LINK_STATUS=35714]="LINK_STATUS",a[a.VALIDATE_STATUS=35715]="VALIDATE_STATUS",a[a.ATTACHED_SHADERS=35717]="ATTACHED_SHADERS",a[a.ACTIVE_UNIFORMS=35718]="ACTIVE_UNIFORMS",a[a.ACTIVE_ATTRIBUTES=35721]="ACTIVE_ATTRIBUTES",a[a.SHADING_LANGUAGE_VERSION=35724]="SHADING_LANGUAGE_VERSION",a[a.CURRENT_PROGRAM=35725]="CURRENT_PROGRAM",a[a.NEVER=512]="NEVER",a[a.LESS=513]="LESS",a[a.EQUAL=514]="EQUAL",a[a.LEQUAL=515]="LEQUAL",a[a.GREATER=516]="GREATER",a[a.NOTEQUAL=517]="NOTEQUAL",a[a.GEQUAL=518]="GEQUAL",a[a.ALWAYS=519]="ALWAYS",a[a.KEEP=7680]="KEEP",a[a.REPLACE=7681]="REPLACE",a[a.INCR=7682]="INCR",a[a.DECR=7683]="DECR",a[a.INVERT=5386]="INVERT",a[a.INCR_WRAP=34055]="INCR_WRAP",a[a.DECR_WRAP=34056]="DECR_WRAP",a[a.VENDOR=7936]="VENDOR",a[a.RENDERER=7937]="RENDERER",a[a.VERSION=7938]="VERSION",a[a.NEAREST=9728]="NEAREST",a[a.LINEAR=9729]="LINEAR",a[a.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",a[a.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",a[a.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",a[a.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR",a[a.TEXTURE_MAG_FILTER=10240]="TEXTURE_MAG_FILTER",a[a.TEXTURE_MIN_FILTER=10241]="TEXTURE_MIN_FILTER",a[a.TEXTURE_WRAP_S=10242]="TEXTURE_WRAP_S",a[a.TEXTURE_WRAP_T=10243]="TEXTURE_WRAP_T",a[a.TEXTURE_2D=3553]="TEXTURE_2D",a[a.TEXTURE=5890]="TEXTURE",a[a.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",a[a.TEXTURE_BINDING_CUBE_MAP=34068]="TEXTURE_BINDING_CUBE_MAP",a[a.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",a[a.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",a[a.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",a[a.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",a[a.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",a[a.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",a[a.MAX_CUBE_MAP_TEXTURE_SIZE=34076]="MAX_CUBE_MAP_TEXTURE_SIZE",a[a.TEXTURE0=33984]="TEXTURE0",a[a.TEXTURE1=33985]="TEXTURE1",a[a.TEXTURE2=33986]="TEXTURE2",a[a.TEXTURE3=33987]="TEXTURE3",a[a.TEXTURE4=33988]="TEXTURE4",a[a.TEXTURE5=33989]="TEXTURE5",a[a.TEXTURE6=33990]="TEXTURE6",a[a.TEXTURE7=33991]="TEXTURE7",a[a.TEXTURE8=33992]="TEXTURE8",a[a.TEXTURE9=33993]="TEXTURE9",a[a.TEXTURE10=33994]="TEXTURE10",a[a.TEXTURE11=33995]="TEXTURE11",a[a.TEXTURE12=33996]="TEXTURE12",a[a.TEXTURE13=33997]="TEXTURE13",a[a.TEXTURE14=33998]="TEXTURE14",a[a.TEXTURE15=33999]="TEXTURE15",a[a.TEXTURE16=34e3]="TEXTURE16",a[a.TEXTURE17=34001]="TEXTURE17",a[a.TEXTURE18=34002]="TEXTURE18",a[a.TEXTURE19=34003]="TEXTURE19",a[a.TEXTURE20=34004]="TEXTURE20",a[a.TEXTURE21=34005]="TEXTURE21",a[a.TEXTURE22=34006]="TEXTURE22",a[a.TEXTURE23=34007]="TEXTURE23",a[a.TEXTURE24=34008]="TEXTURE24",a[a.TEXTURE25=34009]="TEXTURE25",a[a.TEXTURE26=34010]="TEXTURE26",a[a.TEXTURE27=34011]="TEXTURE27",a[a.TEXTURE28=34012]="TEXTURE28",a[a.TEXTURE29=34013]="TEXTURE29",a[a.TEXTURE30=34014]="TEXTURE30",a[a.TEXTURE31=34015]="TEXTURE31",a[a.ACTIVE_TEXTURE=34016]="ACTIVE_TEXTURE",a[a.REPEAT=10497]="REPEAT",a[a.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",a[a.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",a[a.FLOAT_VEC2=35664]="FLOAT_VEC2",a[a.FLOAT_VEC3=35665]="FLOAT_VEC3",a[a.FLOAT_VEC4=35666]="FLOAT_VEC4",a[a.INT_VEC2=35667]="INT_VEC2",a[a.INT_VEC3=35668]="INT_VEC3",a[a.INT_VEC4=35669]="INT_VEC4",a[a.BOOL=35670]="BOOL",a[a.BOOL_VEC2=35671]="BOOL_VEC2",a[a.BOOL_VEC3=35672]="BOOL_VEC3",a[a.BOOL_VEC4=35673]="BOOL_VEC4",a[a.FLOAT_MAT2=35674]="FLOAT_MAT2",a[a.FLOAT_MAT3=35675]="FLOAT_MAT3",a[a.FLOAT_MAT4=35676]="FLOAT_MAT4",a[a.SAMPLER_2D=35678]="SAMPLER_2D",a[a.SAMPLER_CUBE=35680]="SAMPLER_CUBE",a[a.VERTEX_ATTRIB_ARRAY_ENABLED=34338]="VERTEX_ATTRIB_ARRAY_ENABLED",a[a.VERTEX_ATTRIB_ARRAY_SIZE=34339]="VERTEX_ATTRIB_ARRAY_SIZE",a[a.VERTEX_ATTRIB_ARRAY_STRIDE=34340]="VERTEX_ATTRIB_ARRAY_STRIDE",a[a.VERTEX_ATTRIB_ARRAY_TYPE=34341]="VERTEX_ATTRIB_ARRAY_TYPE",a[a.VERTEX_ATTRIB_ARRAY_NORMALIZED=34922]="VERTEX_ATTRIB_ARRAY_NORMALIZED",a[a.VERTEX_ATTRIB_ARRAY_POINTER=34373]="VERTEX_ATTRIB_ARRAY_POINTER",a[a.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING=34975]="VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",a[a.COMPILE_STATUS=35713]="COMPILE_STATUS",a[a.LOW_FLOAT=36336]="LOW_FLOAT",a[a.MEDIUM_FLOAT=36337]="MEDIUM_FLOAT",a[a.HIGH_FLOAT=36338]="HIGH_FLOAT",a[a.LOW_INT=36339]="LOW_INT",a[a.MEDIUM_INT=36340]="MEDIUM_INT",a[a.HIGH_INT=36341]="HIGH_INT",a[a.FRAMEBUFFER=36160]="FRAMEBUFFER",a[a.RENDERBUFFER=36161]="RENDERBUFFER",a[a.RGBA4=32854]="RGBA4",a[a.RGB5_A1=32855]="RGB5_A1",a[a.RGB565=36194]="RGB565",a[a.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",a[a.STENCIL_INDEX=6401]="STENCIL_INDEX",a[a.STENCIL_INDEX8=36168]="STENCIL_INDEX8",a[a.DEPTH_STENCIL=34041]="DEPTH_STENCIL",a[a.RENDERBUFFER_WIDTH=36162]="RENDERBUFFER_WIDTH",a[a.RENDERBUFFER_HEIGHT=36163]="RENDERBUFFER_HEIGHT",a[a.RENDERBUFFER_INTERNAL_FORMAT=36164]="RENDERBUFFER_INTERNAL_FORMAT",a[a.RENDERBUFFER_RED_SIZE=36176]="RENDERBUFFER_RED_SIZE",a[a.RENDERBUFFER_GREEN_SIZE=36177]="RENDERBUFFER_GREEN_SIZE",a[a.RENDERBUFFER_BLUE_SIZE=36178]="RENDERBUFFER_BLUE_SIZE",a[a.RENDERBUFFER_ALPHA_SIZE=36179]="RENDERBUFFER_ALPHA_SIZE",a[a.RENDERBUFFER_DEPTH_SIZE=36180]="RENDERBUFFER_DEPTH_SIZE",a[a.RENDERBUFFER_STENCIL_SIZE=36181]="RENDERBUFFER_STENCIL_SIZE",a[a.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE=36048]="FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",a[a.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME=36049]="FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",a[a.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL=36050]="FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",a[a.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE=36051]="FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",a[a.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",a[a.DEPTH_ATTACHMENT=36096]="DEPTH_ATTACHMENT",a[a.STENCIL_ATTACHMENT=36128]="STENCIL_ATTACHMENT",a[a.DEPTH_STENCIL_ATTACHMENT=33306]="DEPTH_STENCIL_ATTACHMENT",a[a.NONE=0]="NONE",a[a.FRAMEBUFFER_COMPLETE=36053]="FRAMEBUFFER_COMPLETE",a[a.FRAMEBUFFER_INCOMPLETE_ATTACHMENT=36054]="FRAMEBUFFER_INCOMPLETE_ATTACHMENT",a[a.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT=36055]="FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",a[a.FRAMEBUFFER_INCOMPLETE_DIMENSIONS=36057]="FRAMEBUFFER_INCOMPLETE_DIMENSIONS",a[a.FRAMEBUFFER_UNSUPPORTED=36061]="FRAMEBUFFER_UNSUPPORTED",a[a.FRAMEBUFFER_BINDING=36006]="FRAMEBUFFER_BINDING",a[a.RENDERBUFFER_BINDING=36007]="RENDERBUFFER_BINDING",a[a.MAX_RENDERBUFFER_SIZE=34024]="MAX_RENDERBUFFER_SIZE",a[a.INVALID_FRAMEBUFFER_OPERATION=1286]="INVALID_FRAMEBUFFER_OPERATION",a[a.UNPACK_FLIP_Y_WEBGL=37440]="UNPACK_FLIP_Y_WEBGL",a[a.UNPACK_PREMULTIPLY_ALPHA_WEBGL=37441]="UNPACK_PREMULTIPLY_ALPHA_WEBGL",a[a.CONTEXT_LOST_WEBGL=37442]="CONTEXT_LOST_WEBGL",a[a.UNPACK_COLORSPACE_CONVERSION_WEBGL=37443]="UNPACK_COLORSPACE_CONVERSION_WEBGL",a[a.BROWSER_DEFAULT_WEBGL=37444]="BROWSER_DEFAULT_WEBGL",a}({}),C_,Xy,b1,uy,U1,y0,J_,x1,r1,Dy,Ay,H1,Iy,jv=(C_=(0,ws.b2)(),Xy=(0,ws.f3)(gr.IMapService),b1=(0,ws.f3)(gr.IRendererService),uy=(0,ws.f3)(gr.IGlobalConfigService),U1=(0,ws.f3)(gr.IInteractionService),y0=(0,ws.f3)(gr.ILayerService),C_(J_=(x1=function(){function a(){var p=this;(0,wt.Z)(this,a),(0,bn.Z)(this,"pickedColors",void 0),(0,bn.Z)(this,"pickedTileLayers",[]),Fd(this,"mapService",r1,this),Fd(this,"rendererService",Dy,this),Fd(this,"configService",Ay,this),Fd(this,"interactionService",H1,this),Fd(this,"layerService",Iy,this),(0,bn.Z)(this,"pickingFBO",void 0),(0,bn.Z)(this,"width",0),(0,bn.Z)(this,"height",0),(0,bn.Z)(this,"alreadyInPicking",!1),(0,bn.Z)(this,"pickBufferScale",1),(0,bn.Z)(this,"pickFromPickingFBO",function(u,c){var l=c.x,g=c.y,T=c.lngLat,B=c.type,Z=c.target,ee=!1,Pe=p.rendererService,Ze=Pe.readPixels,St=Pe.getContainer,Mt=p.getContainerSize(St()),Tn=Mt.width,kn=Mt.height;Tn*=ni,kn*=ni;var vr=u.getLayerConfig(),wi=vr.enableHighlight,zo=vr.enableSelect,$o=l*ni,Ks=g*ni;if($o>Tn-1*ni||$o<0||Ks>kn-1*ni||Ks<0)return!1;var ra=Ze({x:Math.floor($o/p.pickBufferScale),y:Math.floor((kn-(g+1)*ni)/p.pickBufferScale),width:1,height:1,data:new Uint8Array(1*1*4),framebuffer:p.pickingFBO});if(p.pickedColors=ra,ra[0]!==0||ra[1]!==0||ra[2]!==0){var La=ti(ra),vl=u.layerPickService.getFeatureById(La);La!==u.getCurrentPickId()&&B==="mousemove"&&(B="mouseenter");var Wl={x:l,y:g,type:B,lngLat:T,featureId:La,feature:vl,target:Z};vl&&(ee=!0,u.setCurrentPickId(La),p.triggerHoverOnLayer(u,Wl))}else{var Jl={x:l,y:g,lngLat:T,type:u.getCurrentPickId()!==null&&B==="mousemove"?"mouseout":"un"+B,featureId:null,target:Z,feature:null};p.triggerHoverOnLayer(u,(0,xe.Z)((0,xe.Z)({},Jl),{},{type:"unpick"})),p.triggerHoverOnLayer(u,Jl),u.setCurrentPickId(null)}if(wi&&u.layerPickService.highlightPickedFeature(ra),zo&&B==="click"&&(ra==null?void 0:ra.toString())!==[0,0,0,0].toString()){var ju=ti(ra);u.getCurrentSelectedId()===null||ju!==u.getCurrentSelectedId()?(u.layerPickService.selectFeature(ra),u.setCurrentSelectedId(ju)):(u.layerPickService.selectFeature(new Uint8Array([0,0,0,0])),u.setCurrentSelectedId(null))}return ee})}return(0,He.Z)(a,[{key:"init",value:function(u){var c=this.rendererService,l=c.createTexture2D,g=c.createFramebuffer,T=c.getContainer,B=this.getContainerSize(T()),Z=B.width,ee=B.height;Z*=ni,ee*=ni,this.pickBufferScale=this.configService.getSceneConfig(u).pickBufferScale||1,this.pickingFBO=g({color:l({width:Math.round(Z/this.pickBufferScale),height:Math.round(ee/this.pickBufferScale),wrapS:Gi.CLAMP_TO_EDGE,wrapT:Gi.CLAMP_TO_EDGE})}),this.interactionService.on(fg.Hover,this.pickingAllLayer.bind(this))}},{key:"boxPickLayer",value:function(){var p=(0,Pa.Z)(Qi().mark(function c(l,g,T){var B=this,Z,ee,Pe;return Qi().wrap(function(St){for(;;)switch(St.prev=St.next){case 0:Z=this.rendererService,ee=Z.useFramebuffer,Pe=Z.clear,this.resizePickingFBO(),ee(this.pickingFBO,function(){Pe({framebuffer:B.pickingFBO,color:[0,0,0,0],stencil:0,depth:1}),l.hooks.beforePickingEncode.call(),l.renderModels({ispick:!0}),l.hooks.afterPickingEncode.call();var Mt=B.pickBox(l,g);T(Mt)});case 3:case"end":return St.stop()}},c,this)}));function u(c,l,g){return p.apply(this,arguments)}return u}()},{key:"pickBox",value:function(u,c){var l=this,g=c.map(function(ju){var Ku=ju<0?0:ju;return Math.floor(Ku*ni/l.pickBufferScale)}),T=(0,qn.Z)(g,4),B=T[0],Z=T[1],ee=T[2],Pe=T[3],Ze=this.rendererService,St=Ze.readPixels,Mt=Ze.getContainer,Tn=this.getContainerSize(Mt()),kn=Tn.width,vr=Tn.height;if(kn*=ni,vr*=ni,B>(kn-1)*ni/this.pickBufferScale||ee<0||Z>(vr-1)*ni/this.pickBufferScale||Pe<0)return[];for(var wi=Math.min(kn/this.pickBufferScale,ee)-B,zo=Math.min(vr/this.pickBufferScale,Pe)-Z,$o=St({x:B,y:Math.floor(vr/this.pickBufferScale-(Pe+1)),width:wi,height:zo,data:new Uint8Array(wi*zo*4),framebuffer:this.pickingFBO}),Ks=[],ra={},La=0;La<$o.length/4;La=La+1){var vl=$o.slice(La*4,La*4+4),Wl=ti(vl);if(Wl!==-1&&!ra[Wl]){var Jl=u.layerPickService.getFeatureById(Wl);Ks.push((0,xe.Z)((0,xe.Z)({},Jl),{},{pickedFeatureIdx:Wl})),ra[Wl]=!0}}return Ks}},{key:"handleCursor",value:function(u,c){var l=u.getLayerConfig(),g=l.cursor,T=g===void 0?"":g,B=l.cursorEnabled;if(B){var Z=this.mapService.version,ee=Z==="GAODE2.x"?this.mapService.getMapContainer():this.mapService.getMarkerContainer(),Pe=ee==null?void 0:ee.style.getPropertyValue("cursor");c==="unmousemove"&&Pe!==""?ee==null||ee.style.setProperty("cursor",""):c==="mousemove"&&(ee==null||ee.style.setProperty("cursor",T))}}},{key:"destroy",value:function(){this.pickingFBO.destroy(),this.pickingFBO=null}},{key:"getContainerSize",value:function(u){return u.getContext?{width:u.width/ni,height:u.height/ni}:u.getBoundingClientRect()}},{key:"pickingAllLayer",value:function(){var p=(0,Pa.Z)(Qi().mark(function c(l){return Qi().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(!(!this.layerService.needPick(l.type)||!this.isPickingAllLayer())){T.next=2;break}return T.abrupt("return");case 2:return this.alreadyInPicking=!0,T.next=5,this.pickingLayers(l);case 5:this.layerService.renderLayers(),this.alreadyInPicking=!1;case 7:case"end":return T.stop()}},c,this)}));function u(c){return p.apply(this,arguments)}return u}()},{key:"isPickingAllLayer",value:function(){return!(this.alreadyInPicking||this.layerService.alreadyInRendering||this.interactionService.indragging||!this.layerService.getShaderPickStat())}},{key:"resizePickingFBO",value:function(){var u=this.rendererService.getContainer,c=this.getContainerSize(u()),l=c.width,g=c.height;l*=ni,g*=ni,(this.width!==l||this.height!==g)&&(this.pickingFBO.resize({width:Math.round(l/this.pickBufferScale),height:Math.round(g/this.pickBufferScale)}),this.width=l,this.height=g)}},{key:"pickingLayers",value:function(){var p=(0,Pa.Z)(Qi().mark(function c(l){var g=this,T,B,Z;return Qi().wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:T=this.rendererService,B=T.useFramebuffer,Z=T.clear,this.resizePickingFBO(),B(this.pickingFBO,function(){var Ze=g.layerService.getRenderList();Ze.filter(function(St){return St.needPick(l.type)}).reverse().some(function(St){Z({framebuffer:g.pickingFBO,color:[0,0,0,0],stencil:0,depth:1}),St.layerPickService.pickRender(l);var Mt=g.pickFromPickingFBO(St,l);return g.layerService.pickedLayerId=Mt?+St.id:-1,Mt&&!St.getLayerConfig().enablePropagation})});case 3:case"end":return Pe.stop()}},c,this)}));function u(c){return p.apply(this,arguments)}return u}()},{key:"triggerHoverOnLayer",value:function(u,c){Ty(c)&&(this.handleCursor(u,c.type),u.emit(c.type,c))}}]),a}(),r1=$h(x1.prototype,"mapService",[Xy],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Dy=$h(x1.prototype,"rendererService",[b1],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ay=$h(x1.prototype,"configService",[uy],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),H1=$h(x1.prototype,"interactionService",[U1],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Iy=$h(x1.prototype,"layerService",[y0],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x1))||J_),i1=function(){function a(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;(0,wt.Z)(this,a),(0,bn.Z)(this,"autoStart",void 0),(0,bn.Z)(this,"startTime",0),(0,bn.Z)(this,"oldTime",0),(0,bn.Z)(this,"running",!1),(0,bn.Z)(this,"elapsedTime",0),this.autoStart=p}return(0,He.Z)(a,[{key:"start",value:function(){this.startTime=(typeof performance=="undefined"?Date:performance).now(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}},{key:"stop",value:function(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}},{key:"getElapsedTime",value:function(){return this.getDelta(),this.elapsedTime}},{key:"getDelta",value:function(){var u=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){var c=(typeof performance=="undefined"?Date:performance).now();u=(c-this.oldTime)/1e3,this.oldTime=c,this.elapsedTime+=u}return u}}]),a}(),cv,Yy,o1,dv,iv,_v,Vv,Uv,R1;function qy(a,p){var u=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!u){if(Array.isArray(a)||(u=ov(a))||p&&a&&typeof a.length=="number"){u&&(a=u);var c=0,l=function(){};return{s:l,n:function(){return c>=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(ee){throw ee},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var ee=u.next();return g=ee.done,ee},e:function(ee){T=!0,B=ee},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function ov(a,p){if(a){if(typeof a=="string")return w_(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return w_(a,p)}}function w_(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);u-1&&B.layerChildren.splice(Z,1)):(ee=this.layers.indexOf(T),ee>-1&&this.layers.splice(ee,1)),T.destroy(),this.reRender(),this.emit("layerChange",this.layers);case 4:case"end":return Ze.stop()}},g,this)}));function l(g,T){return c.apply(this,arguments)}return l}()},{key:"removeAllLayers",value:function(){var c=(0,Pa.Z)(Qi().mark(function g(){return Qi().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:this.destroy(),this.reRender();case 2:case"end":return B.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"setEnableRender",value:function(l){this.enableRender=l}},{key:"renderLayers",value:function(){var c=(0,Pa.Z)(Qi().mark(function g(){var T,B,Z,ee,Pe,Ze;return Qi().wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:if(!(this.alreadyInRendering||!this.enableRender)){Mt.next=2;break}return Mt.abrupt("return");case 2:this.updateLayerRenderList(),T=this.debugService.generateRenderUid(),this.debugService.renderStart(T),this.alreadyInRendering=!0,this.clear(),B=qy(this.layerList),Mt.prev=8,B.s();case 10:if((Z=B.n()).done){Mt.next=23;break}if(ee=Z.value,Pe=ee.getLayerConfig(),Ze=Pe.enableMask,ee.masks.filter(function(Tn){return Tn.inited}).length>0&&Ze&&this.renderMask(ee.masks),!ee.getLayerConfig().enableMultiPassRenderer){Mt.next=19;break}return Mt.next=17,ee.renderMultiPass();case 17:Mt.next=21;break;case 19:return Mt.next=21,ee.render();case 21:Mt.next=10;break;case 23:Mt.next=28;break;case 25:Mt.prev=25,Mt.t0=Mt.catch(8),B.e(Mt.t0);case 28:return Mt.prev=28,B.f(),Mt.finish(28);case 31:this.debugService.renderEnd(T),this.alreadyInRendering=!1;case 33:case"end":return Mt.stop()}},g,this,[[8,25,28,31]])}));function l(){return c.apply(this,arguments)}return l}()},{key:"renderMask",value:function(l){var g=0;this.renderService.clear({stencil:0,depth:1,framebuffer:null});var T=l.length>1?nf.MULTIPLE:nf.SINGLE,B=qy(l),Z;try{for(B.s();!(Z=B.n()).done;){var ee=Z.value;ee.render({isStencil:!0,stencilType:T,stencilIndex:g++})}}catch(Pe){B.e(Pe)}finally{B.f()}}},{key:"beforeRenderData",value:function(){var c=(0,Pa.Z)(Qi().mark(function g(T){var B;return Qi().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return ee.next=2,T.hooks.beforeRenderData.promise();case 2:B=ee.sent,B&&this.renderLayers();case 4:case"end":return ee.stop()}},g,this)}));function l(g){return c.apply(this,arguments)}return l}()},{key:"renderTileLayerMask",value:function(l){var g=0,T=l.getLayerConfig(),B=T.enableMask,Z=B===void 0?!0:B,ee=l.tileMask?1:0,Pe=l.masks.filter(function(kn){return kn.inited});ee=ee+(Z?Pe.length:1);var Ze=ee>1?nf.MULTIPLE:nf.SINGLE;if((l.tileMask||Pe.length&&Z)&&this.renderService.clear({stencil:0,depth:1,framebuffer:null}),Pe.length&&Z){var St=qy(Pe),Mt;try{for(St.s();!(Mt=St.n()).done;){var Tn=Mt.value;Tn.render({isStencil:!0,stencilType:Ze,stencilIndex:g++})}}catch(kn){St.e(kn)}finally{St.f()}}l.tileMask&&l.tileMask.render({isStencil:!0,stencilType:Ze,stencilIndex:g++,stencilOperation:Ko.OR})}},{key:"renderTileLayer",value:function(){var c=(0,Pa.Z)(Qi().mark(function g(T){return Qi().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:if(this.renderTileLayerMask(T),!T.getLayerConfig().enableMultiPassRenderer){Z.next=6;break}return Z.next=4,T.renderMultiPass();case 4:Z.next=8;break;case 6:return Z.next=8,T.render();case 8:case"end":return Z.stop()}},g,this)}));function l(g){return c.apply(this,arguments)}return l}()},{key:"updateLayerRenderList",value:function(){var l=this;this.layerList=[],this.layers.filter(function(g){return g.inited}).filter(function(g){return g.isVisible()}).sort(function(g,T){return g.zIndex-T.zIndex}).forEach(function(g){l.layerList.push(g)})}},{key:"destroy",value:function(){this.layers.forEach(function(l){l.destroy()}),this.layers=[],this.layerList=[],this.emit("layerChange",this.layers)}},{key:"startAnimate",value:function(){this.animateInstanceCount++===0&&(this.clock.start(),this.runRender())}},{key:"stopAnimate",value:function(){--this.animateInstanceCount===0&&(this.stopRender(),this.clock.stop())}},{key:"getOESTextureFloat",value:function(){return this.renderService.extensionObject.OES_texture_float}},{key:"enableShaderPick",value:function(){this.shaderPicking=!0}},{key:"disableShaderPick",value:function(){this.shaderPicking=!1}},{key:"getShaderPickStat",value:function(){return this.shaderPicking}},{key:"clear",value:function(){var l=Kr(this.mapService.bgColor);this.renderService.clear({color:l,depth:1,stencil:0,framebuffer:null})}},{key:"runRender",value:function(){this.renderLayers(),this.layerRenderID=window.requestAnimationFrame(this.runRender.bind(this))}},{key:"stopRender",value:function(){window.cancelAnimationFrame(this.layerRenderID)}}]),u}(gf.EventEmitter),Vv=$h(_v.prototype,"renderService",[Yy],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Uv=$h(_v.prototype,"mapService",[o1],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R1=$h(_v.prototype,"debugService",[dv],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_v))||iv),Ug=m(52528),Q_=Ma.isNil,rw=function(){function a(p){var u=this;(0,wt.Z)(this,a),(0,bn.Z)(this,"name",void 0),(0,bn.Z)(this,"type",void 0),(0,bn.Z)(this,"scale",void 0),(0,bn.Z)(this,"descriptor",void 0),(0,bn.Z)(this,"featureBufferLayout",[]),(0,bn.Z)(this,"needRescale",!1),(0,bn.Z)(this,"needRemapping",!1),(0,bn.Z)(this,"needRegenerateVertices",!1),(0,bn.Z)(this,"featureRange",{startIndex:0,endIndex:1/0}),(0,bn.Z)(this,"vertexAttribute",void 0),(0,bn.Z)(this,"defaultCallback",function(c){if(c.length===0){var l;return((l=u.scale)===null||l===void 0?void 0:l.defaultValues)||[]}return c.map(function(g,T){var B,Z=(B=u.scale)===null||B===void 0?void 0:B.scalers[T].func,ee=Z(g);return ee})}),this.setProps(p)}return(0,He.Z)(a,[{key:"setProps",value:function(u){Object.assign(this,u)}},{key:"mapping",value:function(u){var c;if((c=this.scale)!==null&&c!==void 0&&c.callback){var l,g=(l=this.scale)===null||l===void 0?void 0:l.callback.apply(l,(0,kr.Z)(u));if(!Q_(g))return[g]}return this.defaultCallback(u)}},{key:"resetDescriptor",value:function(){this.descriptor&&(this.descriptor.buffer.data=[])}}]),a}(),E_=["buffer","update","name"],dx=["buffer","update","name"],cy,hx,T_,D_,A_,sC,fx=(cy={},(0,bn.Z)(cy,Gi.FLOAT,4),(0,bn.Z)(cy,Gi.UNSIGNED_BYTE,1),(0,bn.Z)(cy,Gi.UNSIGNED_SHORT,2),cy),LS=(hx=(0,ws.b2)(),T_=(0,ws.f3)(gr.IRendererService),hx(D_=(A_=function(){function a(){(0,wt.Z)(this,a),(0,bn.Z)(this,"attributesAndIndices",void 0),Fd(this,"rendererService",sC,this),(0,bn.Z)(this,"attributes",[]),(0,bn.Z)(this,"triangulation",void 0),(0,bn.Z)(this,"featureLayout",{sizePerElement:0,elements:[]})}return(0,He.Z)(a,[{key:"registerStyleAttribute",value:function(u){var c=this.getLayerStyleAttribute(u.name||"");return c?c.setProps(u):(c=new rw(u),this.attributes.push(c)),c}},{key:"unRegisterStyleAttribute",value:function(u){var c=this.attributes.findIndex(function(l){return l.name===u});c>-1&&this.attributes.splice(c,1)}},{key:"updateScaleAttribute",value:function(u){this.attributes.forEach(function(c){var l,g=c.name,T=(l=c.scale)===null||l===void 0?void 0:l.field;(u[g]||T&&u[T])&&(c.needRescale=!0,c.needRemapping=!0,c.needRegenerateVertices=!0)})}},{key:"updateStyleAttribute",value:function(u,c,l){var g=this.getLayerStyleAttribute(u);g||(g=this.registerStyleAttribute((0,xe.Z)((0,xe.Z)({},c),{},{name:u})));var T=c.scale;T&&g&&(g.scale=T,g.needRescale=!0,g.needRemapping=!0,g.needRegenerateVertices=!0,l&&l.featureRange&&(g.featureRange=l.featureRange))}},{key:"getLayerStyleAttributes",value:function(){return this.attributes}},{key:"getLayerStyleAttribute",value:function(u){return this.attributes.find(function(c){return c.name===u})}},{key:"getLayerAttributeScale",value:function(u){var c,l=this.getLayerStyleAttribute(u),g=l==null||(c=l.scale)===null||c===void 0?void 0:c.scalers;return g&&g[0]?g[0].func:null}},{key:"updateAttributeByFeatureRange",value:function(u,c){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,g=arguments.length>3?arguments[3]:void 0,T=arguments.length>4?arguments[4]:void 0,B=this.attributes.find(function(ra){return ra.name===u});if(B&&B.descriptor){var Z=B.descriptor,ee=Z.update,Pe=Z.buffer,Ze=Z.size,St=Ze===void 0?0:Ze,Mt=fx[Pe.type||Gi.FLOAT];if(ee){var Tn=this.featureLayout,kn=Tn.elements,vr=Tn.sizePerElement,wi=kn.slice(l,g);if(!wi.length)return;var zo=wi[0].offset,$o=zo*St*Mt,Ks=wi.map(function(ra,La){for(var vl=ra.featureIdx,Wl=ra.vertices,Jl=ra.normals,ju=Wl.length/vr,Ku=[],Jc=0;Jc0&&g[g.length-1])&&(ee[0]===6||ee[0]===2)){u=0;continue}if(ee[0]===3&&(!g||ee[1]>g[0]&&ee[1]0)&&!(l=c.next()).done;)g.push(l.value)}catch(B){T={error:B}}finally{try{l&&!l.done&&(u=c.return)&&u.call(c)}finally{if(T)throw T.error}}return g}function G1(a,p,u){if(u||arguments.length===2)for(var c=0,l=p.length,g;c=0&&c.length%1===0}a.exports=p.default})(C1,C1.exports);var Iv={},L_={exports:{}},Lv={exports:{}};(function(a,p){Object.defineProperty(p,"__esModule",{value:!0}),p.default=function(u){return function(){for(var c=[],l=arguments.length;l--;)c[l]=arguments[l];var g=c.pop();return u.call(this,c,g)}},a.exports=p.default})(Lv,Lv.exports);var l1={};Object.defineProperty(l1,"__esModule",{value:!0}),l1.fallback=lC,l1.wrap=gx;var aC=l1.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,Pv=l1.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,px=l1.hasNextTick=typeof a1=="object"&&typeof a1.nextTick=="function";function lC(a){setTimeout(a,0)}function gx(a){return function(p){for(var u=[],c=arguments.length-1;c-- >0;)u[c]=arguments[c+1];return a(function(){return p.apply(void 0,u)})}}var eb;aC?eb=queueMicrotask:Pv?eb=setImmediate:px?eb=a1.nextTick:eb=lC,l1.default=gx(eb),function(a,p){Object.defineProperty(p,"__esModule",{value:!0}),p.default=Z;var u=Lv.exports,c=B(u),l=l1,g=B(l),T=Iv;function B(Ze){return Ze&&Ze.__esModule?Ze:{default:Ze}}function Z(Ze){return(0,T.isAsync)(Ze)?function(){for(var St=[],Mt=arguments.length;Mt--;)St[Mt]=arguments[Mt];var Tn=St.pop(),kn=Ze.apply(this,St);return ee(kn,Tn)}:(0,c.default)(function(St,Mt){var Tn;try{Tn=Ze.apply(this,St)}catch(kn){return Mt(kn)}if(Tn&&typeof Tn.then=="function")return ee(Tn,Mt);Mt(null,Tn)})}function ee(Ze,St){return Ze.then(function(Mt){Pe(St,null,Mt)},function(Mt){Pe(St,Mt&&Mt.message?Mt:new Error(Mt))})}function Pe(Ze,St,Mt){try{Ze(St,Mt)}catch(Tn){(0,g.default)(function(kn){throw kn},Tn)}}a.exports=p.default}(L_,L_.exports),Object.defineProperty(Iv,"__esModule",{value:!0}),Iv.isAsyncIterable=Iv.isAsyncGenerator=Iv.isAsync=void 0;var mx=L_.exports,vx=l2(mx);function l2(a){return a&&a.__esModule?a:{default:a}}function Pb(a){return a[Symbol.toStringTag]==="AsyncFunction"}function iw(a){return a[Symbol.toStringTag]==="AsyncGenerator"}function yx(a){return typeof a[Symbol.asyncIterator]=="function"}function PS(a){if(typeof a!="function")throw new Error("expected a function");return Pb(a)?(0,vx.default)(a):a}Iv.default=PS,Iv.isAsync=Pb,Iv.isAsyncGenerator=iw,Iv.isAsyncIterable=yx;var dy={exports:{}};(function(a,p){Object.defineProperty(p,"__esModule",{value:!0}),p.default=u;function u(c,l){if(l===void 0&&(l=c.length),!l)throw new Error("arity is undefined");function g(){for(var T=this,B=[],Z=arguments.length;Z--;)B[Z]=arguments[Z];return typeof B[l-1]=="function"?c.apply(this,B):new Promise(function(ee,Pe){B[l-1]=function(Ze){for(var St=[],Mt=arguments.length-1;Mt-- >0;)St[Mt]=arguments[Mt+1];if(Ze)return Pe(Ze);ee(St.length>1?St:St[0])},c.apply(T,B)})}return g}a.exports=p.default})(dy,dy.exports),function(a,p){Object.defineProperty(p,"__esModule",{value:!0});var u=C1.exports,c=Z(u),l=Iv,g=Z(l),T=dy.exports,B=Z(T);function Z(ee){return ee&&ee.__esModule?ee:{default:ee}}p.default=(0,B.default)(function(ee,Pe,Ze){var St=(0,c.default)(Pe)?[]:{};ee(Pe,function(Mt,Tn,kn){(0,g.default)(Mt)(function(vr){for(var wi,zo=[],$o=arguments.length-1;$o-- >0;)zo[$o]=arguments[$o+1];zo.length<2&&(wi=zo,zo=wi[0]),St[Tn]=zo,kn(vr)})},function(Mt){return Ze(Mt,St)})},3),a.exports=p.default}(K1,K1.exports);var hy={exports:{}},Jy={exports:{}},P_={exports:{}},tb={exports:{}};(function(a,p){Object.defineProperty(p,"__esModule",{value:!0}),p.default=u;function u(c){function l(){for(var g=[],T=arguments.length;T--;)g[T]=arguments[T];if(c!==null){var B=c;c=null,B.apply(this,g)}}return Object.assign(l,c),l}a.exports=p.default})(tb,tb.exports);var kb={exports:{}},ky={exports:{}};(function(a,p){Object.defineProperty(p,"__esModule",{value:!0}),p.default=function(u){return u[Symbol.iterator]&&u[Symbol.iterator]()},a.exports=p.default})(ky,ky.exports),function(a,p){Object.defineProperty(p,"__esModule",{value:!0}),p.default=Pe;var u=C1.exports,c=T(u),l=ky.exports,g=T(l);function T(Ze){return Ze&&Ze.__esModule?Ze:{default:Ze}}function B(Ze){var St=-1,Mt=Ze.length;return function(){return++St=B||St||Pe||(St=!0,T.next().then(function(zo){var $o=zo.value,Ks=zo.done;if(!(Ze||Pe)){if(St=!1,Ks){Pe=!0,Mt<=0&&ee(null);return}Mt++,Z($o,Tn,vr),Tn++,kn()}}).catch(wi))}function vr(zo,$o){if(Mt-=1,!Ze){if(zo)return wi(zo);if(zo===!1){Pe=!0,Ze=!0;return}if($o===c.default||Pe&&Mt<=0)return Pe=!0,ee(null);kn()}}function wi(zo){Ze||(St=!1,Pe=!0,ee(zo))}kn()}a.exports=p.default}(Mb,Mb.exports),function(a,p){Object.defineProperty(p,"__esModule",{value:!0});var u=tb.exports,c=Mt(u),l=kb.exports,g=Mt(l),T=fy.exports,B=Mt(T),Z=Iv,ee=Mb.exports,Pe=Mt(ee),Ze=nb.exports,St=Mt(Ze);function Mt(Tn){return Tn&&Tn.__esModule?Tn:{default:Tn}}p.default=function(Tn){return function(kn,vr,wi){if(wi=(0,c.default)(wi),Tn<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!kn)return wi(null);if((0,Z.isAsyncGenerator)(kn))return(0,Pe.default)(kn,Tn,vr,wi);if((0,Z.isAsyncIterable)(kn))return(0,Pe.default)(kn[Symbol.asyncIterator](),Tn,vr,wi);var zo=(0,g.default)(kn),$o=!1,Ks=!1,ra=0,La=!1;function vl(Jl,ju){if(!Ks)if(ra-=1,Jl)$o=!0,wi(Jl);else if(Jl===!1)$o=!0,Ks=!0;else{if(ju===St.default||$o&&ra<=0)return $o=!0,wi(null);La||Wl()}}function Wl(){for(La=!0;ra0;)zo[$o]=arguments[$o+1];if(wi!==!1){if(wi||Tn===St.length)return Mt.apply(void 0,[wi].concat(zo));kn(zo)}}kn([])}p.default=(0,ee.default)(Ze),a.exports=p.default})(cC,cC.exports);var aw=I_(cC.exports),lw=function(){function a(){this.tasks=[]}return a.prototype.call=function(){return aw(this.tasks)},a.prototype.tap=function(p,u){this.tasks.length===0?this.tasks.push(function(c){var l=u();c(l?null:!1,l)}):this.tasks.push(function(c,l){var g=u.apply(void 0,G1([],Av(c),!1));l(g?null:!1,p)})},a}(),u2=function(){function a(){this.tasks=[]}return a.prototype.call=function(){return Qy(this.tasks)},a.prototype.tap=function(p,u){this.tasks.push(function(c){var l=u();c(l,p)})},a}(),c2=function(){function a(){this.args=[],this.tasks=[]}return a.prototype.promise=function(){for(var p=arguments,u=[],c=0;c1&&(B=g[1].trim()),c){case"bool":B=B==="true";break;case"float":case"int":B=Number(B);break;case"vec2":case"vec3":case"vec4":case"ivec2":case"ivec3":case"ivec4":case"mat2":case"mat3":case"mat4":B?B=B.replace("[","").replace("]","").split(",").reduce(function(Z,ee){return Z.push(Number(ee.trim())),Z},[]):B=new Array(oe(c)).fill(0);break;default:}return p[T]=B,"uniform ".concat(c," ").concat(T,`; `)}),{content:a,uniforms:p}}var st,ft,Kt=Ma.uniq,Jt="#define PI 3.14159265359",At=`#define SHIFT_RIGHT17 1.0 / 131072.0 #define SHIFT_RIGHT18 1.0 / 262144.0 #define SHIFT_RIGHT19 1.0 / 524288.0 @@ -240,7 +294,7 @@ vec3 calc_lighting(vec3 position, vec3 normal, vec3 viewDir) { // } return weight; } -`,Wn=`varying vec4 v_PickingResult; +`,Vn=`varying vec4 v_PickingResult; uniform vec4 u_HighlightColor : [0, 0, 0, 0]; uniform vec4 u_SelectColor : [0, 0, 0, 0]; uniform float u_PickingStage : 0.0; @@ -807,17 +861,17 @@ float sdVesica(vec2 p, float r, float d) { #else precision mediump float; #endif -`,uu=/#pragma include (["^+"]?["[a-zA-Z_0-9](.*)"]*?)/g,ou=/void\s+main\s*\([^)]*\)\s*\{\n?/,Vu=/}\n?[^{}]*$/,Ru=(st=(0,ws.b2)(),st(ft=function(){function a(){(0,bt.Z)(this,a),(0,bn.Z)(this,"moduleCache",{}),(0,bn.Z)(this,"rawContentCache",{})}return(0,Ue.Z)(a,[{key:"registerBuiltinModules",value:function(){this.destroy(),this.registerModule("common",{vs:Jt,fs:Jt}),this.registerModule("decode",{vs:At,fs:""}),this.registerModule("projection",{vs:Us,fs:""}),this.registerModule("project",{vs:Ms,fs:""}),this.registerModule("sdf_2d",{vs:"",fs:Ea}),this.registerModule("lighting",{vs:vn,fs:""}),this.registerModule("light",{vs:fn,fs:""}),this.registerModule("picking",{vs:ar,fs:Wn}),this.registerModule("rotation_2d",{vs:bl,fs:""})}},{key:"registerModule",value:function(u,c){var l=c.vs,g=c.fs,T=c.uniforms,B=c.inject,G=Fe(l),te=G.content,Me=G.uniforms,Ge=Fe(g),St=Ge.content,Mt=Ge.uniforms;this.rawContentCache[u]={fs:St,inject:B,uniforms:(0,Ce.Z)((0,Ce.Z)((0,Ce.Z)({},Me),Mt),T),vs:te}}},{key:"destroy",value:function(){this.moduleCache={},this.rawContentCache={}}},{key:"getModule",value:function(u){var c=this,l=this.rawContentCache[u].vs,g=this.rawContentCache[u].fs,T=this.rawContentCache[u].inject,B={};T!=null&&T["vs:#decl"]&&(l=(T==null?void 0:T["vs:#decl"])+l,B=Fe(T==null?void 0:T["vs:#decl"]).uniforms),T!=null&&T["vs:#main-start"]&&(l=l.replace(ou,function(Sr){return Sr+(T==null?void 0:T["vs:#main-start"])}));var G=this.processModule(l,[],"vs"),te=G.content,Me=G.includeList,Ge=this.processModule(g,[],"fs"),St=Ge.content,Mt=Ge.includeList,In="",kn=Kt(Me.concat(Mt).concat(u)).reduce(function(Sr,_i){return(0,Ce.Z)((0,Ce.Z)({},Sr),c.rawContentCache[_i].uniforms)},(0,Ce.Z)({},B));return Bs.test(St)||(In=In+Ra),In=In+St,this.moduleCache[u]={fs:In.trim(),uniforms:kn,vs:te.trim()},this.moduleCache[u]}},{key:"processModule",value:function(u,c,l){var g=this,T=u.replace(uu,function(B,G){var te=G.split(" "),Me=te[0].replace(/"/g,"");if(c.indexOf(Me)>-1)return"";var Ge=g.rawContentCache[Me][l];c.push(Me);var St=g.processModule(Ge,c,l),Mt=St.content;return Mt});return{content:T,includeList:c}}},{key:"injectDefines",value:function(u){var c=Object.keys(u).reduce(function(l,g){return l+"#define ".concat(g.toUpperCase()," ").concat(u[g],`; +`,uu=/#pragma include (["^+"]?["[a-zA-Z_0-9](.*)"]*?)/g,ou=/void\s+main\s*\([^)]*\)\s*\{\n?/,Wu=/}\n?[^{}]*$/,Ou=(st=(0,ws.b2)(),st(ft=function(){function a(){(0,wt.Z)(this,a),(0,bn.Z)(this,"moduleCache",{}),(0,bn.Z)(this,"rawContentCache",{})}return(0,He.Z)(a,[{key:"registerBuiltinModules",value:function(){this.destroy(),this.registerModule("common",{vs:Jt,fs:Jt}),this.registerModule("decode",{vs:At,fs:""}),this.registerModule("projection",{vs:Us,fs:""}),this.registerModule("project",{vs:Ms,fs:""}),this.registerModule("sdf_2d",{vs:"",fs:Ea}),this.registerModule("lighting",{vs:vn,fs:""}),this.registerModule("light",{vs:fn,fs:""}),this.registerModule("picking",{vs:ar,fs:Vn}),this.registerModule("rotation_2d",{vs:bl,fs:""})}},{key:"registerModule",value:function(u,c){var l=c.vs,g=c.fs,T=c.uniforms,B=c.inject,Z=Re(l),ee=Z.content,Pe=Z.uniforms,Ze=Re(g),St=Ze.content,Mt=Ze.uniforms;this.rawContentCache[u]={fs:St,inject:B,uniforms:(0,xe.Z)((0,xe.Z)((0,xe.Z)({},Pe),Mt),T),vs:ee}}},{key:"destroy",value:function(){this.moduleCache={},this.rawContentCache={}}},{key:"getModule",value:function(u){var c=this,l=this.rawContentCache[u].vs,g=this.rawContentCache[u].fs,T=this.rawContentCache[u].inject,B={};T!=null&&T["vs:#decl"]&&(l=(T==null?void 0:T["vs:#decl"])+l,B=Re(T==null?void 0:T["vs:#decl"]).uniforms),T!=null&&T["vs:#main-start"]&&(l=l.replace(ou,function(vr){return vr+(T==null?void 0:T["vs:#main-start"])}));var Z=this.processModule(l,[],"vs"),ee=Z.content,Pe=Z.includeList,Ze=this.processModule(g,[],"fs"),St=Ze.content,Mt=Ze.includeList,Tn="",kn=Kt(Pe.concat(Mt).concat(u)).reduce(function(vr,wi){return(0,xe.Z)((0,xe.Z)({},vr),c.rawContentCache[wi].uniforms)},(0,xe.Z)({},B));return Bs.test(St)||(Tn=Tn+Ra),Tn=Tn+St,this.moduleCache[u]={fs:Tn.trim(),uniforms:kn,vs:ee.trim()},this.moduleCache[u]}},{key:"processModule",value:function(u,c,l){var g=this,T=u.replace(uu,function(B,Z){var ee=Z.split(" "),Pe=ee[0].replace(/"/g,"");if(c.indexOf(Pe)>-1)return"";var Ze=g.rawContentCache[Pe][l];c.push(Pe);var St=g.processModule(Ze,c,l),Mt=St.content;return Mt});return{content:T,includeList:c}}},{key:"injectDefines",value:function(u){var c=Object.keys(u).reduce(function(l,g){return l+"#define ".concat(g.toUpperCase()," ").concat(u[g],`; `)},` -`);return c}}]),a}())||ft);function tc(a,p){for(;!Object.prototype.hasOwnProperty.call(a,p)&&(a=(0,mt.Z)(a),a!==null););return a}function La(){return typeof Reflect!="undefined"&&Reflect.get?La=Reflect.get.bind():La=function(p,u,c){var l=tc(p,u);if(l){var g=Object.getOwnPropertyDescriptor(l,u);return g.get?g.get.call(arguments.length<3?p:c):g.value}},La.apply(this,arguments)}var Rf=function(a){return a.Normal="normal",a.PostProcessing="post-processing",a}({}),sf,qp,tg=(sf=(0,ws.b2)(),sf(qp=function(){function a(){(0,bt.Z)(this,a),(0,bn.Z)(this,"shaderModuleService",void 0),(0,bn.Z)(this,"rendererService",void 0),(0,bn.Z)(this,"cameraService",void 0),(0,bn.Z)(this,"mapService",void 0),(0,bn.Z)(this,"interactionService",void 0),(0,bn.Z)(this,"layerService",void 0),(0,bn.Z)(this,"config",void 0)}return(0,Ue.Z)(a,[{key:"getName",value:function(){return""}},{key:"getType",value:function(){return Rf.Normal}},{key:"init",value:function(u,c){this.config=c,this.rendererService=u.getContainer().get(gr.IRendererService),this.cameraService=u.getContainer().get(gr.ICameraService),this.mapService=u.getContainer().get(gr.IMapService),this.interactionService=u.getContainer().get(gr.IInteractionService),this.layerService=u.getContainer().get(gr.ILayerService),this.shaderModuleService=u.getContainer().get(gr.IShaderModuleService)}},{key:"render",value:function(u){}}]),a}())||qp),uh,_p;function jf(a){var p=Tm();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function Tm(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var bm=(uh=(0,ws.b2)(),uh(_p=function(a){(0,ht.Z)(u,a);var p=jf(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,Ue.Z)(u,[{key:"getName",value:function(){return"clear"}},{key:"init",value:function(l,g){La((0,mt.Z)(u.prototype),"init",this).call(this,l,g)}},{key:"render",value:function(){this.rendererService.clear({color:[0,0,0,0],depth:1,framebuffer:null})}}]),u}(tg))||_p),gg,O0,J0,am,km;function xm(a,p){var u=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!u){if(Array.isArray(a)||(u=u0(a))||p&&a&&typeof a.length=="number"){u&&(a=u);var c=0,l=function(){};return{s:l,n:function(){return c>=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(te){throw te},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var te=u.next();return g=te.done,te},e:function(te){T=!0,B=te},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function u0(a,p){if(a){if(typeof a=="string")return y1(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return y1(a,p)}}function y1(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);u_i||Ia<0||al>Vo||al<0)){var jl;kn(c.pickingFBO,function(){var Wl;if(jl=In({x:Math.round(Ia),y:Math.round(Vo-(te+1)*ni),width:1,height:1,data:new Uint8Array(1*1*4),framebuffer:c.pickingFBO}),jl[0]!==0||jl[1]!==0||jl[2]!==0){var Wu=ti(jl),Pu=c.layer.getSource().getFeatureById(Wu),Vc={x:G,y:te,type:Ge,lngLat:Me,featureId:Wu,feature:Pu};Pu&&(c.layer.setCurrentPickId(Wu),c.triggerHoverOnLayer(Vc))}else{var dd={x:G,y:te,lngLat:Me,type:c.layer.getCurrentPickId()===null?"un"+Ge:"mouseout",featureId:null,feature:null};c.triggerHoverOnLayer((0,Ce.Z)((0,Ce.Z)({},dd),{},{type:"unpick"})),c.triggerHoverOnLayer(dd),c.layer.setCurrentPickId(null)}Ks&&c.highlightPickedFeature(jl),ca&&Ge==="click"&&((Wl=jl)===null||Wl===void 0?void 0:Wl.toString())!==[0,0,0,0].toString()&&c.selectFeature(jl)})}}}),c}return(0,Ue.Z)(u,[{key:"getType",value:function(){return Rf.Normal}},{key:"getName",value:function(){return"pixelPicking"}},{key:"init",value:function(l,g){La((0,mt.Z)(u.prototype),"init",this).call(this,l,g),this.layer=l;var T=this.rendererService,B=T.createTexture2D,G=T.createFramebuffer,te=T.getViewportSize,Me=te(),Ge=Me.width,St=Me.height;this.pickingFBO=G({color:B({width:Ge,height:St,wrapS:Gi.CLAMP_TO_EDGE,wrapT:Gi.CLAMP_TO_EDGE})}),this.interactionService.on(fg.Hover,this.pickFromPickingFBO),this.interactionService.on(fg.Select,this.selectFeatureHandle.bind(this)),this.interactionService.on(fg.Active,this.highlightFeatureHandle.bind(this))}},{key:"render",value:function(l){var g=this;if(!this.alreadyInRendering){var T=this.rendererService,B=T.getViewportSize,G=T.useFramebuffer,te=T.clear,Me=B(),Ge=Me.width,St=Me.height;this.alreadyInRendering=!0,(this.width!==Ge||this.height!==St)&&(this.pickingFBO.resize({width:Ge,height:St}),this.width=Ge,this.height=St),G(this.pickingFBO,function(){te({framebuffer:g.pickingFBO,color:[0,0,0,0],stencil:0,depth:1});var Mt=g.layer.multiPassRenderer.getRenderFlag();g.layer.multiPassRenderer.setRenderFlag(!1),l.hooks.beforePickingEncode.call(),l.render(),l.hooks.afterPickingEncode.call(),g.layer.multiPassRenderer.setRenderFlag(Mt),g.alreadyInRendering=!1})}}},{key:"triggerHoverOnLayer",value:function(l){this.layer.emit(l.type,l)}},{key:"highlightPickedFeature",value:function(l){var g=(0,Qn.Z)(l,3),T=g[0],B=g[1],G=g[2];this.layer.hooks.beforeHighlight.call([T,B,G]),this.layerService.renderLayers()}},{key:"selectFeature",value:function(l){var g=(0,Qn.Z)(l,3),T=g[0],B=g[1],G=g[2];this.layer.hooks.beforeSelect.call([T,B,G]),this.layerService.renderLayers()}},{key:"selectFeatureHandle",value:function(l){var g=l.featureId,T=Wi(g);this.selectFeature(new Uint8Array(T))}},{key:"highlightFeatureHandle",value:function(l){var g=l.featureId,T=Wi(g);this.highlightPickedFeature(new Uint8Array(T))}}]),u}(tg))||O_),vx,yx,ew,tw,nw,u3=Ma.camelCase,ET=Ma.isNil,SS=Ma.upperFirst,TT=`attribute vec2 a_Position; +`);return c}}]),a}())||ft);function tc(a,p){for(;!Object.prototype.hasOwnProperty.call(a,p)&&(a=(0,gt.Z)(a),a!==null););return a}function Ia(){return typeof Reflect!="undefined"&&Reflect.get?Ia=Reflect.get.bind():Ia=function(p,u,c){var l=tc(p,u);if(l){var g=Object.getOwnPropertyDescriptor(l,u);return g.get?g.get.call(arguments.length<3?p:c):g.value}},Ia.apply(this,arguments)}var Rf=function(a){return a.Normal="normal",a.PostProcessing="post-processing",a}({}),sf,Yp,eg=(sf=(0,ws.b2)(),sf(Yp=function(){function a(){(0,wt.Z)(this,a),(0,bn.Z)(this,"shaderModuleService",void 0),(0,bn.Z)(this,"rendererService",void 0),(0,bn.Z)(this,"cameraService",void 0),(0,bn.Z)(this,"mapService",void 0),(0,bn.Z)(this,"interactionService",void 0),(0,bn.Z)(this,"layerService",void 0),(0,bn.Z)(this,"config",void 0)}return(0,He.Z)(a,[{key:"getName",value:function(){return""}},{key:"getType",value:function(){return Rf.Normal}},{key:"init",value:function(u,c){this.config=c,this.rendererService=u.getContainer().get(gr.IRendererService),this.cameraService=u.getContainer().get(gr.ICameraService),this.mapService=u.getContainer().get(gr.IMapService),this.interactionService=u.getContainer().get(gr.IInteractionService),this.layerService=u.getContainer().get(gr.ILayerService),this.shaderModuleService=u.getContainer().get(gr.IShaderModuleService)}},{key:"render",value:function(u){}}]),a}())||Yp),lh,_p;function Wf(a){var p=Em();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function Em(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var _m=(lh=(0,ws.b2)(),lh(_p=function(a){(0,dt.Z)(u,a);var p=Wf(u);function u(){return(0,wt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"getName",value:function(){return"clear"}},{key:"init",value:function(l,g){Ia((0,gt.Z)(u.prototype),"init",this).call(this,l,g)}},{key:"render",value:function(){this.rendererService.clear({color:[0,0,0,0],depth:1,framebuffer:null})}}]),u}(eg))||_p),gg,R0,Y0,am,km;function bm(a,p){var u=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!u){if(Array.isArray(a)||(u=u0(a))||p&&a&&typeof a.length=="number"){u&&(a=u);var c=0,l=function(){};return{s:l,n:function(){return c>=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(ee){throw ee},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var ee=u.next();return g=ee.done,ee},e:function(ee){T=!0,B=ee},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function u0(a,p){if(a){if(typeof a=="string")return py(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return py(a,p)}}function py(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);uwi||La<0||vl>zo||vl<0)){var Wl;kn(c.pickingFBO,function(){var Jl;if(Wl=Tn({x:Math.round(La),y:Math.round(zo-(ee+1)*ni),width:1,height:1,data:new Uint8Array(1*1*4),framebuffer:c.pickingFBO}),Wl[0]!==0||Wl[1]!==0||Wl[2]!==0){var ju=ti(Wl),Ku=c.layer.getSource().getFeatureById(ju),Jc={x:Z,y:ee,type:Ze,lngLat:Pe,featureId:ju,feature:Ku};Ku&&(c.layer.setCurrentPickId(ju),c.triggerHoverOnLayer(Jc))}else{var gd={x:Z,y:ee,lngLat:Pe,type:c.layer.getCurrentPickId()===null?"un"+Ze:"mouseout",featureId:null,feature:null};c.triggerHoverOnLayer((0,xe.Z)((0,xe.Z)({},gd),{},{type:"unpick"})),c.triggerHoverOnLayer(gd),c.layer.setCurrentPickId(null)}Ks&&c.highlightPickedFeature(Wl),ra&&Ze==="click"&&((Jl=Wl)===null||Jl===void 0?void 0:Jl.toString())!==[0,0,0,0].toString()&&c.selectFeature(Wl)})}}}),c}return(0,He.Z)(u,[{key:"getType",value:function(){return Rf.Normal}},{key:"getName",value:function(){return"pixelPicking"}},{key:"init",value:function(l,g){Ia((0,gt.Z)(u.prototype),"init",this).call(this,l,g),this.layer=l;var T=this.rendererService,B=T.createTexture2D,Z=T.createFramebuffer,ee=T.getViewportSize,Pe=ee(),Ze=Pe.width,St=Pe.height;this.pickingFBO=Z({color:B({width:Ze,height:St,wrapS:Gi.CLAMP_TO_EDGE,wrapT:Gi.CLAMP_TO_EDGE})}),this.interactionService.on(fg.Hover,this.pickFromPickingFBO),this.interactionService.on(fg.Select,this.selectFeatureHandle.bind(this)),this.interactionService.on(fg.Active,this.highlightFeatureHandle.bind(this))}},{key:"render",value:function(l){var g=this;if(!this.alreadyInRendering){var T=this.rendererService,B=T.getViewportSize,Z=T.useFramebuffer,ee=T.clear,Pe=B(),Ze=Pe.width,St=Pe.height;this.alreadyInRendering=!0,(this.width!==Ze||this.height!==St)&&(this.pickingFBO.resize({width:Ze,height:St}),this.width=Ze,this.height=St),Z(this.pickingFBO,function(){ee({framebuffer:g.pickingFBO,color:[0,0,0,0],stencil:0,depth:1});var Mt=g.layer.multiPassRenderer.getRenderFlag();g.layer.multiPassRenderer.setRenderFlag(!1),l.hooks.beforePickingEncode.call(),l.render(),l.hooks.afterPickingEncode.call(),g.layer.multiPassRenderer.setRenderFlag(Mt),g.alreadyInRendering=!1})}}},{key:"triggerHoverOnLayer",value:function(l){this.layer.emit(l.type,l)}},{key:"highlightPickedFeature",value:function(l){var g=(0,qn.Z)(l,3),T=g[0],B=g[1],Z=g[2];this.layer.hooks.beforeHighlight.call([T,B,Z]),this.layerService.renderLayers()}},{key:"selectFeature",value:function(l){var g=(0,qn.Z)(l,3),T=g[0],B=g[1],Z=g[2];this.layer.hooks.beforeSelect.call([T,B,Z]),this.layerService.renderLayers()}},{key:"selectFeatureHandle",value:function(l){var g=l.featureId,T=ji(g);this.selectFeature(new Uint8Array(T))}},{key:"highlightFeatureHandle",value:function(l){var g=l.featureId,T=ji(g);this.highlightPickedFeature(new Uint8Array(T))}}]),u}(eg))||M_),xx,Cx,dw,hw,fw,l3=Ma.camelCase,DT=Ma.isNil,FS=Ma.upperFirst,AT=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,O1=(vx=(0,ws.b2)(),yx=(0,ws.f3)(gr.IShaderModuleService),vx(ew=(tw=function(){function a(){(0,bt.Z)(this,a),Fd(this,"shaderModuleService",nw,this),(0,bn.Z)(this,"rendererService",void 0),(0,bn.Z)(this,"config",void 0),(0,bn.Z)(this,"quad",TT),(0,bn.Z)(this,"enabled",!0),(0,bn.Z)(this,"renderToScreen",!1),(0,bn.Z)(this,"model",void 0),(0,bn.Z)(this,"name",void 0),(0,bn.Z)(this,"optionsToUpdate",{})}return(0,Ue.Z)(a,[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(u){this.name=u}},{key:"getType",value:function(){return Rf.PostProcessing}},{key:"init",value:function(u,c){this.config=c,this.rendererService=u.getContainer().get(gr.IRendererService),this.shaderModuleService=u.getContainer().get(gr.IShaderModuleService);var l=this.rendererService,g=l.createAttribute,T=l.createBuffer,B=l.createModel,G=this.setupShaders(),te=G.vs,Me=G.fs,Ge=G.uniforms;this.model=B({vs:te,fs:Me,attributes:{a_Position:g({buffer:T({data:[-4,-4,4,-4,0,4],type:Gi.FLOAT}),size:2})},uniforms:(0,Ce.Z)((0,Ce.Z)({u_Texture:null},Ge),this.config&&this.convertOptionsToUniforms(this.config)),depth:{enable:!1},count:3,blend:{enable:this.getName()==="copy"}})}},{key:"render",value:function(u,c){var l=this,g=u.multiPassRenderer.getPostProcessor(),T=this.rendererService,B=T.useFramebuffer,G=T.getViewportSize,te=T.clear,Me=G(),Ge=Me.width,St=Me.height;B(this.renderToScreen?null:g.getWriteFBO(),function(){te({framebuffer:g.getWriteFBO(),color:[0,0,0,0],depth:1,stencil:0});var Mt=(0,Ce.Z)({u_BloomFinal:0,u_Texture:g.getReadFBO(),u_ViewportSize:[Ge,St]},l.convertOptionsToUniforms(l.optionsToUpdate));c&&(Mt.u_BloomFinal=1,Mt.u_Texture2=c),l.model.draw({uniforms:Mt})})}},{key:"isEnabled",value:function(){return this.enabled}},{key:"setEnabled",value:function(u){this.enabled=u}},{key:"setRenderToScreen",value:function(u){this.renderToScreen=u}},{key:"updateOptions",value:function(u){this.optionsToUpdate=(0,Ce.Z)((0,Ce.Z)({},this.optionsToUpdate),u)}},{key:"setupShaders",value:function(){throw new Error("Method not implemented.")}},{key:"convertOptionsToUniforms",value:function(u){var c={};return Object.keys(u).forEach(function(l){ET(u[l])||(c["u_".concat(SS(u3(l)))]=u[l])}),c}}]),a}(),nw=$h(tw.prototype,"shaderModuleService",[yx],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),tw))||ew),DT,AT;function c3(a){var p=d3();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function d3(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var IT=`varying vec2 v_UV; +}`,My=(xx=(0,ws.b2)(),Cx=(0,ws.f3)(gr.IShaderModuleService),xx(dw=(hw=function(){function a(){(0,wt.Z)(this,a),Fd(this,"shaderModuleService",fw,this),(0,bn.Z)(this,"rendererService",void 0),(0,bn.Z)(this,"config",void 0),(0,bn.Z)(this,"quad",AT),(0,bn.Z)(this,"enabled",!0),(0,bn.Z)(this,"renderToScreen",!1),(0,bn.Z)(this,"model",void 0),(0,bn.Z)(this,"name",void 0),(0,bn.Z)(this,"optionsToUpdate",{})}return(0,He.Z)(a,[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(u){this.name=u}},{key:"getType",value:function(){return Rf.PostProcessing}},{key:"init",value:function(u,c){this.config=c,this.rendererService=u.getContainer().get(gr.IRendererService),this.shaderModuleService=u.getContainer().get(gr.IShaderModuleService);var l=this.rendererService,g=l.createAttribute,T=l.createBuffer,B=l.createModel,Z=this.setupShaders(),ee=Z.vs,Pe=Z.fs,Ze=Z.uniforms;this.model=B({vs:ee,fs:Pe,attributes:{a_Position:g({buffer:T({data:[-4,-4,4,-4,0,4],type:Gi.FLOAT}),size:2})},uniforms:(0,xe.Z)((0,xe.Z)({u_Texture:null},Ze),this.config&&this.convertOptionsToUniforms(this.config)),depth:{enable:!1},count:3,blend:{enable:this.getName()==="copy"}})}},{key:"render",value:function(u,c){var l=this,g=u.multiPassRenderer.getPostProcessor(),T=this.rendererService,B=T.useFramebuffer,Z=T.getViewportSize,ee=T.clear,Pe=Z(),Ze=Pe.width,St=Pe.height;B(this.renderToScreen?null:g.getWriteFBO(),function(){ee({framebuffer:g.getWriteFBO(),color:[0,0,0,0],depth:1,stencil:0});var Mt=(0,xe.Z)({u_BloomFinal:0,u_Texture:g.getReadFBO(),u_ViewportSize:[Ze,St]},l.convertOptionsToUniforms(l.optionsToUpdate));c&&(Mt.u_BloomFinal=1,Mt.u_Texture2=c),l.model.draw({uniforms:Mt})})}},{key:"isEnabled",value:function(){return this.enabled}},{key:"setEnabled",value:function(u){this.enabled=u}},{key:"setRenderToScreen",value:function(u){this.renderToScreen=u}},{key:"updateOptions",value:function(u){this.optionsToUpdate=(0,xe.Z)((0,xe.Z)({},this.optionsToUpdate),u)}},{key:"setupShaders",value:function(){throw new Error("Method not implemented.")}},{key:"convertOptionsToUniforms",value:function(u){var c={};return Object.keys(u).forEach(function(l){DT(u[l])||(c["u_".concat(FS(l3(l)))]=u[l])}),c}}]),a}(),fw=$h(hw.prototype,"shaderModuleService",[Cx],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),hw))||dw),IT,LT;function u3(a){var p=c3();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function c3(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var PT=`varying vec2 v_UV; uniform float u_BloomFinal: 0.0; uniform sampler2D u_Texture; @@ -873,14 +927,14 @@ void main() { } else { gl_FragColor = inbloomColor; } -}`,h3=`attribute vec2 a_Position; +}`,d3=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,rw=Ma.isNil,ES=(DT=(0,ws.b2)(),DT(AT=function(a){(0,ht.Z)(u,a);var p=c3(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,Ue.Z)(u,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:h3,fs:IT});var l=this.shaderModuleService.getModule("blur-pass"),g=l.vs,T=l.fs,B=l.uniforms,G=this.rendererService.getViewportSize(),te=G.width,Me=G.height;return{vs:g,fs:T,uniforms:(0,Ce.Z)((0,Ce.Z)({},B),{},{u_ViewportSize:[te,Me]})}}},{key:"convertOptionsToUniforms",value:function(l){var g={};return rw(l.bloomRadius)||(g.u_radius=l.bloomRadius),rw(l.bloomIntensity)||(g.u_intensity=l.bloomIntensity),rw(l.bloomBaseRadio)||(g.u_baseRadio=l.bloomBaseRadio),g}}]),u}(O1))||AT),LT,t2;function PT(a){var p=kT();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function kT(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var R_=`varying vec2 v_UV; +}`,pw=Ma.isNil,BS=(IT=(0,ws.b2)(),IT(LT=function(a){(0,dt.Z)(u,a);var p=u3(u);function u(){return(0,wt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:d3,fs:PT});var l=this.shaderModuleService.getModule("blur-pass"),g=l.vs,T=l.fs,B=l.uniforms,Z=this.rendererService.getViewportSize(),ee=Z.width,Pe=Z.height;return{vs:g,fs:T,uniforms:(0,xe.Z)((0,xe.Z)({},B),{},{u_ViewportSize:[ee,Pe]})}}},{key:"convertOptionsToUniforms",value:function(l){var g={};return pw(l.bloomRadius)||(g.u_radius=l.bloomRadius),pw(l.bloomIntensity)||(g.u_intensity=l.bloomIntensity),pw(l.bloomBaseRadio)||(g.u_baseRadio=l.bloomBaseRadio),g}}]),u}(My))||LT),kT,f2;function MT(a){var p=OT();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function OT(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var O_=`varying vec2 v_UV; uniform sampler2D u_Texture; @@ -902,14 +956,14 @@ vec4 blur9(sampler2D image, vec2 uv, vec2 resolution, vec2 direction) { void main() { gl_FragColor = blur9(u_Texture, v_UV, u_ViewportSize, u_BlurDir); -}`,n2=`attribute vec2 a_Position; +}`,p2=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,sb=Ma.isNil,TS=(LT=(0,ws.b2)(),LT(t2=function(a){(0,ht.Z)(u,a);var p=PT(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,Ue.Z)(u,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:n2,fs:R_});var l=this.shaderModuleService.getModule("blur-pass"),g=l.vs,T=l.fs,B=l.uniforms,G=this.rendererService.getViewportSize(),te=G.width,Me=G.height;return{vs:g,fs:T,uniforms:(0,Ce.Z)((0,Ce.Z)({},B),{},{u_ViewportSize:[te,Me]})}}},{key:"convertOptionsToUniforms",value:function(l){var g={};return sb(l.blurRadius)||(g.u_BlurDir=[l.blurRadius,0]),g}}]),u}(O1))||t2),iw,DS;function AS(a){var p=qy();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function qy(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var kb=`varying vec2 v_UV; +}`,sb=Ma.isNil,zS=(kT=(0,ws.b2)(),kT(f2=function(a){(0,dt.Z)(u,a);var p=MT(u);function u(){return(0,wt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:p2,fs:O_});var l=this.shaderModuleService.getModule("blur-pass"),g=l.vs,T=l.fs,B=l.uniforms,Z=this.rendererService.getViewportSize(),ee=Z.width,Pe=Z.height;return{vs:g,fs:T,uniforms:(0,xe.Z)((0,xe.Z)({},B),{},{u_ViewportSize:[ee,Pe]})}}},{key:"convertOptionsToUniforms",value:function(l){var g={};return sb(l.blurRadius)||(g.u_BlurDir=[l.blurRadius,0]),g}}]),u}(My))||f2),gw,$S;function WS(a){var p=Y1();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function Y1(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var Rb=`varying vec2 v_UV; uniform sampler2D u_Texture; @@ -931,14 +985,14 @@ vec4 blur9(sampler2D image, vec2 uv, vec2 resolution, vec2 direction) { void main() { gl_FragColor = blur9(u_Texture, v_UV, u_ViewportSize, u_BlurDir); -}`,ow=`attribute vec2 a_Position; +}`,mw=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,f3=Ma.isNil,r2=(iw=(0,ws.b2)(),iw(DS=function(a){(0,ht.Z)(u,a);var p=AS(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,Ue.Z)(u,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:ow,fs:kb});var l=this.shaderModuleService.getModule("blur-pass"),g=l.vs,T=l.fs,B=l.uniforms,G=this.rendererService.getViewportSize(),te=G.width,Me=G.height;return{vs:g,fs:T,uniforms:(0,Ce.Z)((0,Ce.Z)({},B),{},{u_ViewportSize:[te,Me]})}}},{key:"convertOptionsToUniforms",value:function(l){var g={};return f3(l.blurRadius)||(g.u_BlurDir=[0,l.blurRadius]),g}}]),u}(O1))||DS),IS,wy;function MT(a){var p=Mb();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function Mb(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var p3=`varying vec2 v_UV; +}`,h3=Ma.isNil,g2=(gw=(0,ws.b2)(),gw($S=function(a){(0,dt.Z)(u,a);var p=WS(u);function u(){return(0,wt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:mw,fs:Rb});var l=this.shaderModuleService.getModule("blur-pass"),g=l.vs,T=l.fs,B=l.uniforms,Z=this.rendererService.getViewportSize(),ee=Z.width,Pe=Z.height;return{vs:g,fs:T,uniforms:(0,xe.Z)((0,xe.Z)({},B),{},{u_ViewportSize:[ee,Pe]})}}},{key:"convertOptionsToUniforms",value:function(l){var g={};return h3(l.blurRadius)||(g.u_BlurDir=[0,l.blurRadius]),g}}]),u}(My))||$S),jS,S1;function RT(a){var p=Nb();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function Nb(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var f3=`varying vec2 v_UV; uniform sampler2D u_Texture; uniform vec2 u_ViewportSize: [1.0, 1.0]; @@ -981,27 +1035,27 @@ vec4 colorHalftone_filterColor(vec4 color, vec2 texSize, vec2 texCoord) { void main() { gl_FragColor = vec4(texture2D(u_Texture, v_UV)); gl_FragColor = colorHalftone_filterColor(gl_FragColor, u_ViewportSize, v_UV); -}`,R1=`attribute vec2 a_Position; +}`,Oy=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,LS=(IS=(0,ws.b2)(),IS(wy=function(a){(0,ht.Z)(u,a);var p=MT(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,Ue.Z)(u,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("colorhalftone-pass",{vs:R1,fs:p3});var l=this.shaderModuleService.getModule("colorhalftone-pass"),g=l.vs,T=l.fs,B=l.uniforms,G=this.rendererService.getViewportSize(),te=G.width,Me=G.height;return{vs:g,fs:T,uniforms:(0,Ce.Z)((0,Ce.Z)({},B),{},{u_ViewportSize:[te,Me]})}}}]),u}(O1))||wy),_x,PS;function OT(a){var p=kS();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function kS(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var OS=`varying vec2 v_UV; +}`,VS=(jS=(0,ws.b2)(),jS(S1=function(a){(0,dt.Z)(u,a);var p=RT(u);function u(){return(0,wt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("colorhalftone-pass",{vs:Oy,fs:f3});var l=this.shaderModuleService.getModule("colorhalftone-pass"),g=l.vs,T=l.fs,B=l.uniforms,Z=this.rendererService.getViewportSize(),ee=Z.width,Pe=Z.height;return{vs:g,fs:T,uniforms:(0,xe.Z)((0,xe.Z)({},B),{},{u_ViewportSize:[ee,Pe]})}}}]),u}(My))||S1),Sx,US;function NT(a){var p=HS();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function HS(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var ZS=`varying vec2 v_UV; uniform sampler2D u_Texture; void main() { gl_FragColor = vec4(texture2D(u_Texture, v_UV)); -}`,g3=`attribute vec2 a_Position; +}`,p3=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,sw=(_x=(0,ws.b2)(),_x(PS=function(a){(0,ht.Z)(u,a);var p=OT(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,Ue.Z)(u,[{key:"setupShaders",value:function(){return this.shaderModuleService.registerModule("copy-pass",{vs:g3,fs:OS}),this.shaderModuleService.getModule("copy-pass")}}]),u}(O1))||PS),i2,RS;function m3(a){var p=v3();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function v3(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var y3=`varying vec2 v_UV; +}`,vw=(Sx=(0,ws.b2)(),Sx(US=function(a){(0,dt.Z)(u,a);var p=NT(u);function u(){return(0,wt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"setupShaders",value:function(){return this.shaderModuleService.registerModule("copy-pass",{vs:p3,fs:ZS}),this.shaderModuleService.getModule("copy-pass")}}]),u}(My))||US),m2,GS;function g3(a){var p=m3();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function m3(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var v3=`varying vec2 v_UV; uniform sampler2D u_Texture; uniform vec2 u_ViewportSize: [1.0, 1.0]; @@ -1044,14 +1098,14 @@ vec4 hexagonalPixelate_sampleColor(sampler2D texture, vec2 texSize, vec2 texCoor void main() { gl_FragColor = vec4(texture2D(u_Texture, v_UV)); gl_FragColor = hexagonalPixelate_sampleColor(u_Texture, u_ViewportSize, v_UV); -}`,_3=`attribute vec2 a_Position; +}`,y3=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,b3=(i2=(0,ws.b2)(),i2(RS=function(a){(0,ht.Z)(u,a);var p=m3(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,Ue.Z)(u,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("hexagonalpixelate-pass",{vs:_3,fs:y3});var l=this.shaderModuleService.getModule("hexagonalpixelate-pass"),g=l.vs,T=l.fs,B=l.uniforms,G=this.rendererService.getViewportSize(),te=G.width,Me=G.height;return{vs:g,fs:T,uniforms:(0,Ce.Z)((0,Ce.Z)({},B),{},{u_ViewportSize:[te,Me]})}}}]),u}(O1))||RS),iC,bx;function x3(a){var p=xx();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function xx(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var Sy=`varying vec2 v_UV; +}`,_3=(m2=(0,ws.b2)(),m2(GS=function(a){(0,dt.Z)(u,a);var p=g3(u);function u(){return(0,wt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("hexagonalpixelate-pass",{vs:y3,fs:v3});var l=this.shaderModuleService.getModule("hexagonalpixelate-pass"),g=l.vs,T=l.fs,B=l.uniforms,Z=this.rendererService.getViewportSize(),ee=Z.width,Pe=Z.height;return{vs:g,fs:T,uniforms:(0,xe.Z)((0,xe.Z)({},B),{},{u_ViewportSize:[ee,Pe]})}}}]),u}(My))||GS),fC,Ex;function b3(a){var p=Tx();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function Tx(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var E1=`varying vec2 v_UV; uniform sampler2D u_Texture; uniform vec2 u_ViewportSize: [1.0, 1.0]; @@ -1084,14 +1138,14 @@ vec4 ink_sampleColor(sampler2D texture, vec2 texSize, vec2 texCoord) { void main() { gl_FragColor = vec4(texture2D(u_Texture, v_UV)); gl_FragColor = ink_sampleColor(u_Texture, u_ViewportSize, v_UV); -}`,oC=`attribute vec2 a_Position; +}`,pC=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,RT=(iC=(0,ws.b2)(),iC(bx=function(a){(0,ht.Z)(u,a);var p=x3(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,Ue.Z)(u,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("ink-pass",{vs:oC,fs:Sy});var l=this.shaderModuleService.getModule("ink-pass"),g=l.vs,T=l.fs,B=l.uniforms,G=this.rendererService.getViewportSize(),te=G.width,Me=G.height;return{vs:g,fs:T,uniforms:(0,Ce.Z)((0,Ce.Z)({},B),{},{u_ViewportSize:[te,Me]})}}}]),u}(O1))||bx),r_,Ob;function NS(a){var p=aw();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function aw(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var Ui=`varying vec2 v_UV; +}`,FT=(fC=(0,ws.b2)(),fC(Ex=function(a){(0,dt.Z)(u,a);var p=b3(u);function u(){return(0,wt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("ink-pass",{vs:pC,fs:E1});var l=this.shaderModuleService.getModule("ink-pass"),g=l.vs,T=l.fs,B=l.uniforms,Z=this.rendererService.getViewportSize(),ee=Z.width,Pe=Z.height;return{vs:g,fs:T,uniforms:(0,xe.Z)((0,xe.Z)({},B),{},{u_ViewportSize:[ee,Pe]})}}}]),u}(My))||Ex),e_,Fb;function KS(a){var p=yw();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function yw(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var Ui=`varying vec2 v_UV; uniform sampler2D u_Texture; uniform float u_Amount : 0.5; @@ -1119,14 +1173,14 @@ varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,NT=(r_=(0,ws.b2)(),r_(Ob=function(a){(0,ht.Z)(u,a);var p=NS(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,Ue.Z)(u,[{key:"setupShaders",value:function(){return this.shaderModuleService.registerModule("noise-pass",{vs:Ad,fs:Ui}),this.shaderModuleService.getModule("noise-pass")}}]),u}(O1))||Ob),FT,ab;function sC(a){var p=Sh();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function Sh(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var C3=`attribute vec2 a_Position; +}`,BT=(e_=(0,ws.b2)(),e_(Fb=function(a){(0,dt.Z)(u,a);var p=KS(u);function u(){return(0,wt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"setupShaders",value:function(){return this.shaderModuleService.registerModule("noise-pass",{vs:Ad,fs:Ui}),this.shaderModuleService.getModule("noise-pass")}}]),u}(My))||Fb),zT,ab;function gC(a){var p=Sh();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function Sh(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var x3=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,lw=`varying vec2 v_UV; +}`,_w=`varying vec2 v_UV; uniform sampler2D u_Texture; @@ -1147,7 +1201,7 @@ vec4 sepia_filterColor(vec4 color) { void main() { gl_FragColor = vec4(texture2D(u_Texture, v_UV)); gl_FragColor = sepia_filterColor(gl_FragColor); -}`,w3=(FT=(0,ws.b2)(),FT(ab=function(a){(0,ht.Z)(u,a);var p=sC(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,Ue.Z)(u,[{key:"setupShaders",value:function(){return this.shaderModuleService.registerModule("sepia-pass",{vs:C3,fs:lw}),this.shaderModuleService.getModule("sepia-pass")}}]),u}(O1))||ab),BT,N_,zT,FS,Cx,o2,F_=(BT=(0,ws.b2)(),N_=(0,ws.f3)(gr.IRendererService),zT=(0,ws.zY)(),BT(FS=(Cx=function(){function a(){(0,bt.Z)(this,a),Fd(this,"rendererService",o2,this),(0,bn.Z)(this,"passes",[]),(0,bn.Z)(this,"readFBO",void 0),(0,bn.Z)(this,"writeFBO",void 0)}return(0,Ue.Z)(a,[{key:"getReadFBO",value:function(){return this.readFBO}},{key:"getWriteFBO",value:function(){return this.writeFBO}},{key:"getCurrentFBOTex",value:function(){var u=this.rendererService,c=u.getViewportSize,l=u.createTexture2D,g=c(),T=g.width,B=g.height;return l({x:0,y:0,width:T,height:B,copy:!0})}},{key:"getReadFBOTex",value:function(){var u=this,c=this.rendererService.useFramebuffer;return new Promise(function(l){c(u.readFBO,(0,ka.Z)(Qi().mark(function g(){return Qi().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:l(u.getCurrentFBOTex());case 1:case"end":return B.stop()}},g)})))})}},{key:"renderBloomPass",value:function(){var p=(0,ka.Z)(Qi().mark(function c(l,g){var T,B;return Qi().wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return te.next=2,this.getReadFBOTex();case 2:T=te.sent,B=0;case 4:if(!(B<4)){te.next=11;break}return te.next=7,g.render(l,T);case 7:this.swap(),B++,te.next=4;break;case 11:case"end":return te.stop()}},c,this)}));function u(c,l){return p.apply(this,arguments)}return u}()},{key:"render",value:function(){var p=(0,ka.Z)(Qi().mark(function c(l){var g,T;return Qi().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:g=0;case 1:if(!(g0;)u=u+c*(l%p),l=Math.floor(l/p),c=c/p;return u}var Ym=1,l2=(aC=(0,ws.b2)(),BS=(0,ws.f3)(gr.IShaderModuleService),aC(uw=(a2=function(a){(0,ht.Z)(u,a);var p=$T(u);function u(){var c;(0,bt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T=1&&(te(this.copyRenderTarget,function(){g.outputModel.draw({uniforms:{u_Texture:g.outputRenderTarget}})}),te(l.multiPassRenderer.getPostProcessor().getReadFBO(),function(){g.copyModel.draw({uniforms:{u_Texture:g.copyRenderTarget}})}),l.multiPassRenderer.getPostProcessor().render(l));var Vo=this.prevRenderTarget;this.prevRenderTarget=this.outputRenderTarget,this.outputRenderTarget=Vo,this.frame++,this.cameraService.clearJitterProjectionMatrix()}},{key:"isFinished",value:function(){return this.frame>=this.haltonSequence.length}},{key:"resetFrame",value:function(){this.frame=0}},{key:"stopAccumulating",value:function(){this.accumulatingId=0,window.clearTimeout(this.timer)}},{key:"createTriangleModel",value:function(l,g,T){this.shaderModuleService.registerModule(l,{vs:cw,fs:g});var B=this.shaderModuleService.getModule(l),G=B.vs,te=B.fs,Me=B.uniforms,Ge=this.rendererService,St=Ge.createAttribute,Mt=Ge.createBuffer,In=Ge.createModel;return In((0,Ce.Z)({vs:G,fs:te,attributes:{a_Position:St({buffer:Mt({data:[-4,-4,4,-4,0,4],type:Gi.FLOAT}),size:2})},uniforms:(0,Ce.Z)({},Me),depth:{enable:!1},count:3},T))}}]),u}(tg),zS=$h(a2.prototype,"shaderModuleService",[BS],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a2))||uw),lC=new ws.W2;lC.bind(gr.IGlobalConfigService).to(Rg).inSingletonScope(),(0,ws.GW)((0,ws.b2)(),yf.EventEmitter),lC.bind(gr.IEventEmitter).to(yf.EventEmitter);var u2=(0,Ha.Z)(lC,!1),dw=function(p){var u=u2.lazyInject(p);return function(c,l,g){u.call(this,c,l),g&&(g.initializer=function(){return c[l]})}},jS=function(p){var u=u2.lazyMultiInject(p);return function(c,l,g){u.call(this,c,l),g&&(g.initializer=function(){return c[l]})}},_v=lC,jT=0;function qm(){var a=new ws.W2;return a.parent=lC,a.bind(gr.SceneID).toConstantValue("".concat(jT++)),a.bind(gr.IShaderModuleService).to(Ru).inSingletonScope(),a.bind(gr.ILayerService).to(Db).inSingletonScope(),a.bind(gr.IDebugService).to(dm).inSingletonScope(),a.bind(gr.ISceneService).to(K).inSingletonScope(),a.bind(gr.ICameraService).to(Wr).inSingletonScope(),a.bind(gr.ICoordinateSystemService).to(Xm).inSingletonScope(),a.bind(gr.IInteractionService).to(yy).inSingletonScope(),a.bind(gr.IPickingService).to($v).inSingletonScope(),a.bind(gr.IControlService).to(Xc).inSingletonScope(),a.bind(gr.IMarkerService).to(ih).inSingletonScope(),a.bind(gr.IIconService).to(Lt).inSingletonScope(),a.bind(gr.IFontService).to(Eg).inSingletonScope(),a.bind(gr.IPopupService).to(yg).inSingletonScope(),a.bind(gr.INormalPass).to(bm).whenTargetNamed("clear"),a.bind(gr.INormalPass).to(ob).whenTargetNamed("pixelPicking"),a.bind(gr.INormalPass).to(s2).whenTargetNamed("render"),a.bind(gr.INormalPass).to(l2).whenTargetNamed("taa"),a.bind(gr.IFactoryNormalPass).toFactory(function(p){return function(u){return p.container.getNamed(gr.INormalPass,u)}}),a.bind(gr.IPostProcessingPass).to(sw).whenTargetNamed("copy"),a.bind(gr.IPostProcessingPass).to(ES).whenTargetNamed("bloom"),a.bind(gr.IPostProcessingPass).to(TS).whenTargetNamed("blurH"),a.bind(gr.IPostProcessingPass).to(r2).whenTargetNamed("blurV"),a.bind(gr.IPostProcessingPass).to(NT).whenTargetNamed("noise"),a.bind(gr.IPostProcessingPass).to(w3).whenTargetNamed("sepia"),a.bind(gr.IPostProcessingPass).to(LS).whenTargetNamed("colorHalftone"),a.bind(gr.IPostProcessingPass).to(b3).whenTargetNamed("hexagonalPixelate"),a.bind(gr.IPostProcessingPass).to(RT).whenTargetNamed("ink"),a.bind(gr.IFactoryPostProcessingPass).toFactory(function(p){return function(u){var c=p.container.getNamed(gr.IPostProcessingPass,u);return c.setName(u),c}}),a}function Rb(a){var p=new ws.W2;return p.parent=a,p.bind(gr.IStyleAttributeService).to(yS).inSingletonScope(),p.bind(gr.IMultiPassRenderer).to(Fy).inSingletonScope(),p.bind(gr.IPostProcessor).to(F_).inSingletonScope(),p}var WT=["circle","triangle","square","pentagon","hexagon","octogon","hexagram","rhombus","vesica"];function Sx(a){return WT.indexOf(a)}var i_=Ma.clamp,WS=2,ub=4,c2=64,cb=128,VS=256,US=512,HS=8192,hw=16384,c0=32768,zm=null,Bg=131072,Zv=262144,d2=524288,_1=1048576,Ex=2097152,VT=4194304,F1=8388608,Nb=16777216,UT=null;function fw(a,p){return a=i_(Math.floor(a),0,255),p=i_(Math.floor(p),0,255),256*a+p}function B_(a){var p=a.color,u=a.radius,c=a.tileX,l=a.tileY,g=a.shape,T=a.opacity,B=a.stroke,G=a.strokeWidth,te=a.strokeOpacity,Me=[],Ge=[],St=[],Mt=[fw(p[0],p[1]),fw(p[2],p[3])],In=[fw(B[0],B[1]),fw(B[2],B[3])];return[[-1,-1],[1,-1],[1,1],[-1,1]].forEach(function(kn){var Sr=(0,Qn.Z)(kn,2),_i=Sr[0],Vo=Sr[1];Me.push([].concat(Mt,[(_i+1)*F1+(Vo+1)*Ex+Sx(g)*Bg+u,(c+512)*d2+(l+512)*c2])),Ge.push([].concat(In,[G,te])),St.push([T,0,0,0])}),{packedBuffer:Me,packedBuffer2:Ge,packedBuffer3:St}}function h2(a,p){if(a===0&&!p)return 0;if(a===1&&p)return 4294967295;var u=p?1:0,c=Math.floor(a*127);return c*UT+u*Nb+c*Bg+u*zm+c*US+u*VS+c*WS+u}var Fb={ProjectionMatrix:"u_ProjectionMatrix",ViewMatrix:"u_ViewMatrix",ViewProjectionMatrix:"u_ViewProjectionMatrix",Zoom:"u_Zoom",ZoomScale:"u_ZoomScale",FocalDistance:"u_FocalDistance",CameraPosition:"u_CameraPosition"},fm={MapInitStart:"mapInitStart",LayerInitStart:"layerInitStart",LayerInitEnd:"layerInitEnd",SourceInitStart:"sourceInitStart",SourceInitEnd:"sourceInitEnd",ScaleInitStart:"scaleInitStart",ScaleInitEnd:"scaleInitEnd",MappingStart:"mappingStart",MappingEnd:"mappingEnd",BuildModelStart:"buildModelStart",BuildModelEnd:"buildModelEnd"},n0=function(a){return a.LINEAR="linear",a.SEQUENTIAL="sequential",a.POWER="power",a.LOG="log",a.IDENTITY="identity",a.TIME="time",a.QUANTILE="quantile",a.QUANTIZE="quantize",a.THRESHOLD="threshold",a.CAT="cat",a.DIVERGING="diverging",a}({}),Bb=function(a){return a.CONSTANT="constant",a.VARIABLE="variable",a}({}),Ld=function(a){return a[a.Attribute=0]="Attribute",a[a.InstancedAttribute=1]="InstancedAttribute",a[a.Uniform=2]="Uniform",a}({}),pw=["mapload","mapchange","mapAfterFrameChange"],gw=["loaded","fontloaded","maploaded","resize","destroy","dragstart","dragging","dragend","dragcancel"],Pv=function(a){return a.IMAGE="image",a.CUSTOMIMAGE="customImage",a.ARRAYBUFFER="arraybuffer",a.RGB="rgb",a.TERRAINRGB="terrainRGB",a.CUSTOMRGB="customRGB",a.CUSTOMARRAYBUFFER="customArrayBuffer",a.CUSTOMTERRAINRGB="customTerrainRGB",a}({}),HT=function(){var a=(0,ka.Z)(Qi().mark(function p(u,c,l,g){return Qi().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.abrupt("return",new Promise(function(G,te){c({x:u.x,y:u.y,z:u.z},function(Me,Ge){if(Me||Ge.length===0){te(Me);return}Ge&&Sa([{data:Ge,bands:[0]}],l,g,function(St,Mt){St?te(St):Mt&&G(Mt)})})}));case 1:case"end":return B.stop()}},p)}));return function(u,c,l,g){return a.apply(this,arguments)}}(),f2=function(){var a=(0,ka.Z)(Qi().mark(function p(u,c){return Qi().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.abrupt("return",new Promise(function(T,B){c({x:u.x,y:u.y,z:u.z},function(G,te){if(G||!te){B(G);return}te instanceof ArrayBuffer?on(te,function(Me,Ge){Me&&B(Me),T(Ge)}):te instanceof HTMLImageElement?T(te):B(G)})}));case 1:case"end":return g.stop()}},p)}));return function(u,c){return a.apply(this,arguments)}}();function ZS(a,p){return Array.isArray(a)?typeof a[0]=="string"?a.map(function(u){return $c(u,p)}):a.map(function(u){return{url:$c(u.url,p),bands:u.bands||[0]}}):$c(a,p)}function Jm(a){return typeof a=="string"?[{url:a,bands:[0]}]:typeof a[0]=="string"?a.map(function(p){return{url:p,bands:[0]}}):a}function ZT(a,p){a.xhrCancel=function(){p.map(function(u){u.abort()})}}var GT=function(){var a=(0,ka.Z)(Qi().mark(function p(u,c,l,g,T){var B,G,te,Me,Ge,St;return Qi().wrap(function(In){for(;;)switch(In.prev=In.next){case 0:if(B=Jm(c.url),!(B.length>1)){In.next=15;break}return In.next=4,GS(B,c);case 4:if(G=In.sent,te=G.rasterFiles,Me=G.xhrList,Ge=G.errList,ZT(u,Me),!(Ge.length>0)){In.next=12;break}return l(Ge,null),In.abrupt("return");case 12:Sa(te,g,T,l),In.next=17;break;case 15:St=wi(c,function(kn,Sr){if(kn)l(kn);else if(Sr){var _i=[{data:Sr,bands:B[0].bands}];Sa(_i,g,T,l)}}),ZT(u,[St]);case 17:case"end":return In.stop()}},p)}));return function(u,c,l,g,T){return a.apply(this,arguments)}}();function GS(a,p){return zb.apply(this,arguments)}function zb(){return zb=(0,ka.Z)(Qi().mark(function a(p,u){var c,l,g,T,B,G,te,Me,Ge,St,Mt;return Qi().wrap(function(kn){for(;;)switch(kn.prev=kn.next){case 0:c=[],l=[],g=[],T=0;case 4:if(!(T1&&arguments[1]!==void 0?arguments[1]:{};if(uC(a))throw new Error("tile server url is error");var u=(p==null?void 0:p.dataType)||Pv.IMAGE;u===Pv.RGB&&(u=Pv.ARRAYBUFFER);var c=function(T,B){switch(u){case Pv.IMAGE:return b1(a,T,B,p);case Pv.CUSTOMIMAGE:case Pv.CUSTOMTERRAINRGB:return f2(B,p==null?void 0:p.getCustomData);case Pv.ARRAYBUFFER:return KS(a,T,B,(p==null?void 0:p.format)||KT,p==null?void 0:p.operation);case Pv.CUSTOMARRAYBUFFER:case Pv.CUSTOMRGB:return HT(B,p==null?void 0:p.getCustomData,(p==null?void 0:p.format)||KT,p==null?void 0:p.operation);default:return b1(a,T,B,p)}},l=(0,Ce.Z)((0,Ce.Z)((0,Ce.Z)({},By),p),{},{getTileData:c});return{data:a,dataArray:[],tilesetOptions:l,isTile:!0}}var XT=["extent","min","max","width","height","format","operation"];function p2(a,p){var u=p.extent,c=p.min,l=p.max,g=p.width,T=p.height,B=p.format,G=p.operation,te=(0,Vg.Z)(p,XT),Me;if(B===void 0||Ur(a))Me=Array.from(a);else{var Ge=Array.isArray(a)?a:[a];Me=ei(Ge,B,G)}var St={_id:1,dataArray:[(0,Ce.Z)((0,Ce.Z)({_id:1,data:Me,width:g,height:T},te),{},{min:c,max:l,coordinates:[[u[0],u[1]],[u[2],u[3]]]})]};return St}var XS={tileSize:256,minZoom:0,maxZoom:1/0,zoomOffset:0},YT=function(){var a=(0,ka.Z)(Qi().mark(function p(u){return Qi().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",new Promise(function(g){var T=(0,Qn.Z)(u.bounds,4),B=T[0],G=T[1],te=T[2],Me=T[3],Ge={layers:{testTile:{features:[{type:"Feature",properties:{key:u.x+"/"+u.y+"/"+u.z,x:(B+te)/2,y:(G+Me)/2},geometry:{type:"LineString",coordinates:[[te,Me],[te,G],[B,G],[B,G]]}}]}}};g(Ge)}));case 1:case"end":return l.stop()}},p)}));return function(u){return a.apply(this,arguments)}}();function qT(a,p){var u=function(g){return YT(g)},c=(0,Ce.Z)((0,Ce.Z)((0,Ce.Z)({},XS),p),{},{getTileData:u});return{data:a,dataArray:[],tilesetOptions:c,isTile:!0}}var JT=m(69848),o_=m.n(JT);function g2(a,p){var u=p.radius,c=u===void 0?40:u,l=p.maxZoom,g=l===void 0?18:l,T=p.minZoom,B=T===void 0?0:T,G=p.zoom,te=G===void 0?2:G;if(a.pointIndex){var Me=a.pointIndex.getClusters(a.extent,Math.floor(te));return a.dataArray=Ag(Me),a}var Ge=new(o_())({radius:c,minZoom:B,maxZoom:g}),St={type:"FeatureCollection",features:[]};return St.features=a.dataArray.map(function(Mt){return{type:"Feature",geometry:{type:"Point",coordinates:Mt.coordinates},properties:(0,Ce.Z)({},Mt)}}),Ge.load(St.features),Ge}function Ag(a){return a.map(function(p,u){return(0,Ce.Z)({coordinates:p.geometry.coordinates,_id:u+1},p.properties)})}function m2(a){if(a.length===0)throw new Error("max requires at least one data point");for(var p=a[0],u=1;up&&(p=a[u]);return p}function kv(a){if(a.length===0)throw new Error("min requires at least one data point");for(var p=a[0],u=1;u=Math.abs(a[l])?u+=p-c+a[l]:u+=a[l]-c+p,p=c;return p+u*1}function v2(a){if(a.length===0)throw new Error("mean requires at least one data point");return db(a)/a.length}var YS={min:kv,max:m2,mean:v2,sum:db};function qS(a){var p=y2();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function y2(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var JS=Ma.cloneDeep,t1=Ma.isFunction,mw=Ma.isString,vw=Ma.mergeWith;function QT(a,p){if(Array.isArray(p))return p}var _2=function(a){(0,ht.Z)(u,a);var p=qS(u);function u(c,l){var g;return(0,bt.Z)(this,u),g=p.call(this),(0,bn.Z)((0,as.Z)(g),"type","source"),(0,bn.Z)((0,as.Z)(g),"isTile",!1),(0,bn.Z)((0,as.Z)(g),"inited",!1),(0,bn.Z)((0,as.Z)(g),"hooks",{init:new ay}),(0,bn.Z)((0,as.Z)(g),"parser",{type:"geojson"}),(0,bn.Z)((0,as.Z)(g),"transforms",[]),(0,bn.Z)((0,as.Z)(g),"cluster",!1),(0,bn.Z)((0,as.Z)(g),"clusterOptions",{enable:!1,radius:40,maxZoom:20,zoom:-99,method:"count"}),(0,bn.Z)((0,as.Z)(g),"invalidExtent",!1),(0,bn.Z)((0,as.Z)(g),"dataArrayChanged",!1),(0,bn.Z)((0,as.Z)(g),"cfg",{autoRender:!0}),g.originData=c,g.initCfg(l),g.init().then(function(){g.inited=!0,g.emit("update",{type:"inited"})}),g}return(0,Ue.Z)(u,[{key:"getSourceCfg",value:function(){return this.cfg}},{key:"getClusters",value:function(l){return this.clusterIndex.getClusters(this.caculClusterExtent(2),l)}},{key:"getClustersLeaves",value:function(l){return this.clusterIndex.getLeaves(l,1/0)}},{key:"getParserType",value:function(){return this.parser.type}},{key:"updateClusterData",value:function(l){var g=this,T=this.clusterOptions,B=T.method,G=B===void 0?"sum":B,te=T.field,Me=this.clusterIndex.getClusters(this.caculClusterExtent(2),Math.floor(l));this.clusterOptions.zoom=l,Me.forEach(function(Ge){Ge.id||(Ge.properties.point_count=1)}),(te||t1(G))&&(Me=Me.map(function(Ge){var St=Ge.id;if(St){var Mt=g.clusterIndex.getLeaves(St,1/0),In=Mt.map(function(_i){return _i.properties}),kn;if(mw(G)&&te){var Sr=ai(In,te);kn=YS[G](Sr)}t1(G)&&(kn=G(In)),Ge.properties.stat=kn}else Ge.properties.point_count=1;return Ge})),this.data=w("geojson")({type:"FeatureCollection",features:Me}),this.executeTrans()}},{key:"getFeatureById",value:function(l){var g=this.parser,T=g.type,B=T===void 0?"geojson":T,G=g.geometry;if(B==="geojson"&&!this.cluster){var te=l=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(te){throw te},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var te=u.next();return g=te.done,te},e:function(te){T=!0,B=te},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function x2(a,p){if(a){if(typeof a=="string")return eD(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return eD(a,p)}}function eD(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);uc?l:c)}}catch(zo){g.e(zo)}finally{g.f()}var G=(u+c)/2,te=tD(p,G);if(te.xOffset<=0||te.yOffset<=0)return{gridHash:{},gridOffset:te};var Me={},Ge=Tx(a),St;try{for(Ge.s();!(St=Ge.n()).done;){var Mt=St.value,In=Mt.coordinates[1],kn=Mt.coordinates[0];if(Number.isFinite(In)&&Number.isFinite(kn)){var Sr=Math.floor((In+90)/te.yOffset),_i=Math.floor((kn+180)/te.xOffset),Vo="".concat(Sr,"-").concat(_i);Me[Vo]=Me[Vo]||{count:0,points:[]},Me[Vo].count+=1,Me[Vo].points.push(Mt)}}}catch(zo){Ge.e(zo)}finally{Ge.f()}return{gridHash:Me,gridOffset:te}}function tD(a,p){var u=eE(a),c=Ax(p,a);return{yOffset:u,xOffset:c}}function eE(a){return a/C2*(180/Math.PI)}function Ax(a,p){return p/C2*(180/Math.PI)/Math.cos(a*Math.PI/180)}function zy(a,p,u){return Object.keys(a).reduce(function(c,l,g){var T=l.split("-"),B=parseInt(T[0],10),G=parseInt(T[1],10),te={};if(u.field&&u.method){var Me=cf(a[l].points,u.field);te[u.method]=Kh[u.method](Me)}return Object.assign(te,{_id:g,coordinates:Mu([-180+p.xOffset*(G+.5),-90+p.yOffset*(B+.5)]),rawData:a[l].points,count:a[l].count}),c.push(te),c},[])}var Ix=Math.PI/3,S3=[0,Ix,2*Ix,3*Ix,4*Ix,5*Ix];function cC(a){return a[0]}function nD(a){return a[1]}function tE(){var a=0,p=0,u=1,c=1,l=cC,g=nD,T,B,G;function te(Ge){var St={},Mt=[],In,kn=Ge.length;for(In=0;In1){var Ia=_i-Ks,al=Ks+(_iWl*Wl+Wu*Wu&&(Ks=al+(zo&1?1:-1)/2,zo=jl)}var Pu=Ks+"-"+zo,Vc=St[Pu];Vc?Vc.push(Sr):(Mt.push(Vc=St[Pu]=[Sr]),Vc.x=(Ks+(zo&1)/2)*B,Vc.y=zo*G)}return Mt}function Me(Ge){var St=0,Mt=0;return S3.map(function(In){var kn=Math.sin(In)*Ge,Sr=-Math.cos(In)*Ge,_i=kn-St,Vo=Sr-Mt;return St=kn,Mt=Sr,[_i,Vo]})}return te.hexagon=function(Ge){return"m"+Me(Ge==null?T:+Ge).join("l")+"z"},te.centers=function(){for(var Ge=[],St=Math.round(p/G),Mt=Math.round(a/B),In=St*G;In180||Math.abs(In[1][0])>180){if(Me.x>Mt){var kn=this.mapsService.lngLatToContainer([G-360,te]);Me.x=kn.x}if(Me.x<0){var Sr=this.mapsService.lngLatToContainer([G+360,te]);Me.x=Sr.x}}(Me.x>Mt||Me.x<0||Me.y>St||Me.y<0)&&(g.style.display="none"),g.style.left=Me.x+T[0]+"px",g.style.top=Me.y-T[1]+"px"}}}},{key:"init",value:function(){var l=this,g=this.markerOption.element,T=this.markerOption,B=T.color,G=T.anchor;if(!g){this.defaultMarker=!0,g=Ji("div"),this.markerOption.element=g;var te=document.createElementNS("http://www.w3.org/2000/svg","svg");te.setAttributeNS(null,"display","block"),te.setAttributeNS(null,"height","48px"),te.setAttributeNS(null,"width","48px"),te.setAttributeNS(null,"viewBox","0 0 1024 1024");var Me=document.createElementNS("http://www.w3.org/2000/svg","path");Me.setAttributeNS(null,"d","M512 490.666667C453.12 490.666667 405.333333 442.88 405.333333 384 405.333333 325.12 453.12 277.333333 512 277.333333 570.88 277.333333 618.666667 325.12 618.666667 384 618.666667 442.88 570.88 490.666667 512 490.666667M512 85.333333C346.88 85.333333 213.333333 218.88 213.333333 384 213.333333 608 512 938.666667 512 938.666667 512 938.666667 810.666667 608 810.666667 384 810.666667 218.88 677.12 85.333333 512 85.333333Z"),Me.setAttributeNS(null,"fill",B),te.appendChild(Me),g.appendChild(te)}ms(g,"l7-marker"),Object.keys(this.markerOption.style||{}).forEach(function(Ge){var St,Mt,In=((St=l.markerOption)===null||St===void 0?void 0:St.style)&&((Mt=l.markerOption)===null||Mt===void 0?void 0:Mt.style[Ge]);g&&(g.style[Ge]=In)}),xt(g,G,"marker")}},{key:"registerMarkerEvent",value:function(l){l.addEventListener("click",this.onMapClick),l.addEventListener("mousemove",this.eventHandle),l.addEventListener("click",this.eventHandle),l.addEventListener("mousedown",this.eventHandle),l.addEventListener("mouseup",this.eventHandle),l.addEventListener("dblclick",this.eventHandle),l.addEventListener("contextmenu",this.eventHandle),l.addEventListener("mouseover",this.eventHandle),l.addEventListener("mouseout",this.eventHandle),l.addEventListener("touchstart",this.eventHandle),l.addEventListener("touchend",this.eventHandle)}},{key:"unRegisterMarkerEvent",value:function(){var l=this.getElement();l.removeEventListener("click",this.onMapClick),l.removeEventListener("mousemove",this.eventHandle),l.removeEventListener("click",this.eventHandle),l.removeEventListener("mousedown",this.eventHandle),l.removeEventListener("mouseup",this.eventHandle),l.removeEventListener("dblclick",this.eventHandle),l.removeEventListener("contextmenu",this.eventHandle),l.removeEventListener("mouseover",this.eventHandle),l.removeEventListener("mouseout",this.eventHandle),l.removeEventListener("touchstart",this.eventHandle),l.removeEventListener("touchend",this.eventHandle)}},{key:"polyfillEvent",value:function(l){!this.mapsService||this.mapsService.version!=="GAODE2.x"||au()||(l.type==="touchstart"&&(this.touchStartTime=Date.now()),l.type==="touchend"&&Date.now()-this.touchStartTime<300&&this.emit("click",{target:l,data:this.markerOption.extData,lngLat:this.lngLat}))}},{key:"addDragHandler",value:function(l){return null}},{key:"onUp",value:function(l){throw new Error("Method not implemented.")}}]),u}(yf.EventEmitter);function E2(a){var p=iE();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function iE(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var iD=Ma.merge,dC=function(a){(0,ht.Z)(u,a);var p=E2(u);function u(c){var l,g;return(0,bt.Z)(this,u),g=p.call(this),(0,bn.Z)((0,as.Z)(g),"markers",[]),(0,bn.Z)((0,as.Z)(g),"points",[]),(0,bn.Z)((0,as.Z)(g),"clusterMarkers",[]),g.markerLayerOption=iD(g.getDefault(),c),Eu(["update"],(0,as.Z)(g)),g.zoom=((l=g.markerLayerOption.clusterOption)===null||l===void 0?void 0:l.zoom)||-99,g}return(0,Ue.Z)(u,[{key:"getDefault",value:function(){return{cluster:!1,clusterOption:{radius:80,maxZoom:20,minZoom:0,zoom:-99,style:{},className:""}}}},{key:"addTo",value:function(l){return this.scene=l,this.mapsService=l.get(gr.IMapService),this.markerLayerOption.cluster&&(this.initCluster(),this.update(),this.mapsService.on("camerachange",this.update),this.mapsService.on("viewchange",this.update)),this.mapsService.on("camerachange",this.setContainerSize.bind(this)),this.mapsService.on("viewchange",this.setContainerSize.bind(this)),this.addMarkers(),this.inited=!0,this}},{key:"setContainerSize",value:function(){if(this.mapsService){var l=this.mapsService.getContainer();this.containerSize={containerWidth:(l==null?void 0:l.scrollWidth)||0,containerHeight:(l==null?void 0:l.scrollHeight)||0,bounds:this.mapsService.getBounds()}}}},{key:"getContainerSize",value:function(){return this.containerSize}},{key:"addMarker",value:function(l){var g=this.markerLayerOption.cluster;if(l.getMarkerLayerContainerSize=this.getContainerSize.bind(this),g&&(this.addPoint(l,this.markers.length),this.mapsService)){var T=this.mapsService.getZoom(),B=this.mapsService.getBounds();this.bbox=Wd(B,.5),this.zoom=Math.floor(T),this.getClusterMarker(this.bbox,this.zoom)}this.markers.push(l)}},{key:"removeMarker",value:function(l){this.markers.indexOf(l);var g=this.markers.indexOf(l);g>-1&&this.markers.splice(g,1)}},{key:"hide",value:function(){this.markers.map(function(l){l.getElement().style.opacity="0"}),this.clusterMarkers.map(function(l){l.getElement().style.opacity="0"})}},{key:"show",value:function(){this.markers.map(function(l){l.getElement().style.opacity="1"}),this.clusterMarkers.map(function(l){l.getElement().style.opacity="1"})}},{key:"getMarkers",value:function(){var l=this.markerLayerOption.cluster;return l?this.clusterMarkers:this.markers}},{key:"addMarkers",value:function(){var l=this;this.getMarkers().forEach(function(g){g.addTo(l.scene)})}},{key:"clear",value:function(){this.markers.forEach(function(l){l.remove()}),this.clusterMarkers.forEach(function(l){l.remove()}),this.markers=[],this.points=[],this.clusterMarkers=[]}},{key:"destroy",value:function(){this.clear(),this.removeAllListeners(),this.mapsService.off("camerachange",this.update),this.mapsService.off("viewchange",this.update),this.mapsService.off("camerachange",this.setContainerSize.bind(this)),this.mapsService.off("viewchange",this.setContainerSize.bind(this))}},{key:"addPoint",value:function(l,g){var T=l.getLnglat(),B=T.lng,G=T.lat,te={geometry:{type:"Point",coordinates:[B,G]},properties:(0,Ce.Z)((0,Ce.Z)({},l.getExtData()),{},{marker_id:g})};this.points.push(te),this.clusterIndex&&this.clusterIndex.load(this.points)}},{key:"initCluster",value:function(){if(this.markerLayerOption.cluster){var l=this.markerLayerOption.clusterOption,g=l.radius,T=l.minZoom,B=T===void 0?0:T,G=l.maxZoom;this.clusterIndex=new(o_())({radius:g,minZoom:B,maxZoom:G}),this.clusterIndex.load(this.points)}}},{key:"getClusterMarker",value:function(l,g){var T=this,B=l[0].concat(l[1]),G=this.clusterIndex.getClusters(B,g);this.clusterMarkers.forEach(function(te){te.remove()}),this.clusterMarkers=[],G.forEach(function(te){var Me,Ge=T.markerLayerOption.clusterOption,St=Ge.field,Mt=Ge.method;if((Me=te.properties)!==null&&Me!==void 0&&Me.cluster_id){var In,kn=T.getLeaves((In=te.properties)===null||In===void 0?void 0:In.cluster_id);if(te.properties.clusterData=kn,St&&Mt){var Sr=kn==null?void 0:kn.map(function(ca){var Ia=(0,bn.Z)({},St,ca.properties[St]);return Ia}),_i=cf(Sr,St),Vo=Qc(Mt,_i),zo="point_"+Mt;te.properties[zo]=Vo.toFixed(2)}}var Ks=T.clusterMarker(te);T.clusterMarkers.push(Ks),Ks.addTo(T.scene)})}},{key:"getLeaves",value:function(l){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1/0,T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return l?this.clusterIndex.getLeaves(l,g,T):null}},{key:"clusterMarker",value:function(l){var g=this.markerLayerOption.clusterOption,T=g,B=T.element,G=B===void 0?this.generateElement.bind(this):B,te=new S2({element:G(l)}).setLnglat({lng:l.geometry.coordinates[0],lat:l.geometry.coordinates[1]});return te}},{key:"normalMarker",value:function(l){var g=l.properties.marker_id;return this.markers[g]}},{key:"update",value:function(){if(this.mapsService&&this.markers.length!==0){var l=this.mapsService.getZoom(),g=this.mapsService.getBounds();(!this.bbox||Math.abs(l-this.zoom)>=1||!yh(this.bbox,g))&&(this.bbox=Wd(g,.5),this.zoom=Math.floor(l),this.getClusterMarker(this.bbox,this.zoom))}}},{key:"generateElement",value:function(l){var g=Ji("div","l7-marker-cluster"),T=Ji("div","",g),B=Ji("span","",T),G=this.markerLayerOption.clusterOption,te=G.field,Me=G.method;l.properties.point_count=l.properties.point_count||1;var Ge=te&&Me?l.properties["point_"+Me]||l.properties[te]:l.properties.point_count;return B.textContent=Ge,g}}]),u}(yf.EventEmitter),t4=m(4157);function D3(a){var p=A3();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function A3(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var v=function(a){(0,ht.Z)(u,a);var p=D3(u);function u(c){var l;return(0,bt.Z)(this,u),l=p.call(this),u.controlCount++,l.controlOption=(0,Ce.Z)((0,Ce.Z)({},l.getDefault(c)),c||{}),l}return(0,Ue.Z)(u,[{key:"getOptions",value:function(){return this.controlOption}},{key:"setOptions",value:function(l){var g=this.getDefault(l);Object.entries(l).forEach(function(T){var B=(0,Qn.Z)(T,2),G=B[0],te=B[1];te===void 0&&(l[G]=g[G])}),"position"in l&&this.setPosition(l.position),"className"in l&&this.setClassName(l.className),"style"in l&&this.setStyle(l.style),this.controlOption=(0,Ce.Z)((0,Ce.Z)({},this.controlOption),l)}},{key:"addTo",value:function(l){this.mapsService=l.get(gr.IMapService),this.renderService=l.get(gr.IRendererService),this.layerService=l.get(gr.ILayerService),this.controlService=l.get(gr.IControlService),this.configService=l.get(gr.IGlobalConfigService),this.scene=l.get(gr.ISceneService),this.sceneContainer=l,this.isShow=!0,this.container=this.onAdd(),ms(this.container,"l7-control");var g=this.controlOption,T=g.className,B=g.style;return T&&this.setClassName(T),B&&this.setStyle(B),this.insertContainer(),this.emit("add",this),this}},{key:"remove",value:function(){if(!this.mapsService)return this;ta(this.container),this.onRemove(),this.emit("remove",this)}},{key:"onAdd",value:function(){return Ji("div")}},{key:"onRemove",value:function(){}},{key:"show",value:function(){var l=this.container;Ua(l,"l7-control--hide"),this.isShow=!0,this.emit("show",this)}},{key:"hide",value:function(){var l=this.container;ms(l,"l7-control--hide"),this.isShow=!1,this.emit("hide",this)}},{key:"getDefault",value:function(l){return{position:go.TOPRIGHT,name:"".concat(u.controlCount)}}},{key:"getContainer",value:function(){return this.container}},{key:"getIsShow",value:function(){return this.isShow}},{key:"_refocusOnMap",value:function(l){if(this.mapsService&&l&&l.screenX>0&&l.screenY>0){var g=this.mapsService.getContainer();g!==null&&g.focus()}}},{key:"setPosition",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:go.TOPLEFT,g=this.controlService;return g&&g.removeControl(this),this.controlOption.position=l,g&&g.addControl(this,this.sceneContainer),this}},{key:"setClassName",value:function(l){var g=this.container,T=this.controlOption.className;T&&Ua(g,T),l&&ms(g,l)}},{key:"setStyle",value:function(l){var g=this.container;l?g.setAttribute("style",l):g.removeAttribute("style")}},{key:"insertContainer",value:function(){var l=this.controlOption.position,g=this.container;if(l instanceof Element)l.appendChild(g);else{var T=this.controlService.controlCorners[l];["bottomleft","bottomright","righttop","rightbottom"].includes(l)?T.insertBefore(g,T.firstChild):T.appendChild(g)}}},{key:"checkUpdateOption",value:function(l,g){return g.some(function(T){return T in l})}}]),u}(Qu());(0,bn.Z)(v,"controlCount",0);function M(a){var p=L();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function L(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var Y=function(a){(0,ht.Z)(u,a);var p=M(u);function u(){var c;(0,bt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T0&&arguments[0]!==void 0?arguments[0]:"";return Ji("button","l7-button-control ".concat(l))}},{key:"onAdd",value:function(){this.button=this.createButton(),this.isDisable=!1;var l=this.controlOption,g=l.title,T=l.btnText,B=l.btnIcon;return this.setBtnTitle(g),this.setBtnText(T),this.setBtnIcon(B),this.button}},{key:"onRemove",value:function(){this.button=this.buttonIcon=this.buttonText=void 0,this.isDisable=!1}},{key:"setOptions",value:function(l){var g=l.title,T=l.btnText,B=l.btnIcon;this.checkUpdateOption(l,["title"])&&this.setBtnTitle(g),this.checkUpdateOption(l,["btnIcon"])&&this.setBtnIcon(B),this.checkUpdateOption(l,["btnText"])&&this.setBtnText(T),La((0,mt.Z)(u.prototype),"setOptions",this).call(this,l)}},{key:"setBtnTitle",value:function(l){var g;(g=this.button)===null||g===void 0||g.setAttribute("title",l!=null?l:"")}},{key:"setBtnIcon",value:function(l){if(this.buttonIcon&&ta(this.buttonIcon),l){var g,T=(g=this.button)===null||g===void 0?void 0:g.firstChild;if(T){var B;(B=this.button)===null||B===void 0||B.insertBefore(l,T)}else{var G;(G=this.button)===null||G===void 0||G.appendChild(l)}this.buttonIcon=l}}},{key:"setBtnText",value:function(l){if(this.button)if(Ua(this.button,"l7-button-control--row"),Ua(this.button,"l7-button-control--column"),l){var g=this.buttonText;if(!g){var T;g=Ji("div","l7-button-control__text"),(T=this.button)===null||T===void 0||T.appendChild(g),this.buttonText=g}g.innerText=l,ms(this.button,this.controlOption.vertical?"l7-button-control--column":"l7-button-control--row")}else!l&&this.buttonText&&(ta(this.buttonText),this.buttonText=void 0)}}]),u}(v);function ee(a){var p=je();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function je(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var qe=function(a){(0,ht.Z)(u,a);var p=ee(u);function u(c,l){var g;return(0,bt.Z)(this,u),g=p.call(this),(0,bn.Z)((0,as.Z)(g),"isShow",!1),(0,bn.Z)((0,as.Z)(g),"timeout",null),(0,bn.Z)((0,as.Z)(g),"show",function(){return g.isShow||!g.contentDOM.innerHTML||(g.resetPopperPosition(),Ua(g.popperDOM,"l7-popper-hide"),g.isShow=!0,g.option.unique&&u.conflictPopperList.forEach(function(T){T!==(0,as.Z)(g)&&T.isShow&&T.hide()}),g.emit("show"),window.addEventListener("pointerdown",g.onPopperUnClick)),(0,as.Z)(g)}),(0,bn.Z)((0,as.Z)(g),"hide",function(){return g.isShow&&(ms(g.popperDOM,"l7-popper-hide"),g.isShow=!1,g.emit("hide"),window.removeEventListener("pointerdown",g.onPopperUnClick)),(0,as.Z)(g)}),(0,bn.Z)((0,as.Z)(g),"setHideTimeout",function(){g.timeout||(g.timeout=window.setTimeout(function(){g.isShow&&(g.hide(),g.timeout=null)},300))}),(0,bn.Z)((0,as.Z)(g),"clearHideTimeout",function(){g.timeout&&(window.clearTimeout(g.timeout),g.timeout=null)}),(0,bn.Z)((0,as.Z)(g),"onBtnClick",function(){g.isShow?g.hide():g.show()}),(0,bn.Z)((0,as.Z)(g),"onPopperUnClick",function(T){Wa(T.target,[".l7-button-control",".l7-popper-content"])||g.hide()}),(0,bn.Z)((0,as.Z)(g),"onBtnMouseLeave",function(){g.setHideTimeout()}),(0,bn.Z)((0,as.Z)(g),"onBtnMouseMove",function(){g.clearHideTimeout(),!g.isShow&&g.show()}),g.button=c,g.option=l,g.init(),l.unique&&u.conflictPopperList.push((0,as.Z)(g)),g}return(0,Ue.Z)(u,[{key:"buttonRect",get:function(){return this.button.getBoundingClientRect()}},{key:"getPopperDOM",value:function(){return this.popperDOM}},{key:"getIsShow",value:function(){return this.isShow}},{key:"getContent",value:function(){return this.content}},{key:"setContent",value:function(l){typeof l=="string"?this.contentDOM.innerHTML=l:l instanceof HTMLElement&&(cl(this.contentDOM),this.contentDOM.appendChild(l)),this.content=l}},{key:"init",value:function(){var l=this.option.trigger;this.popperDOM=this.createPopper(),l==="click"?this.button.addEventListener("click",this.onBtnClick):(this.button.addEventListener("mousemove",this.onBtnMouseMove),this.button.addEventListener("mouseleave",this.onBtnMouseLeave),this.popperDOM.addEventListener("mousemove",this.onBtnMouseMove),this.popperDOM.addEventListener("mouseleave",this.onBtnMouseLeave))}},{key:"destroy",value:function(){this.button.removeEventListener("click",this.onBtnClick),this.button.removeEventListener("mousemove",this.onBtnMouseMove),this.button.removeEventListener("mousemove",this.onBtnMouseLeave),this.popperDOM.removeEventListener("mousemove",this.onBtnMouseMove),this.popperDOM.removeEventListener("mouseleave",this.onBtnMouseLeave),ta(this.popperDOM)}},{key:"resetPopperPosition",value:function(){var l={},g=this.option,T=g.container,B=g.offset,G=B===void 0?[0,0]:B,te=g.placement,Me=(0,Qn.Z)(G,2),Ge=Me[0],St=Me[1],Mt=this.button.getBoundingClientRect(),In=T.getBoundingClientRect(),kn=ua(Mt,In),Sr=kn.left,_i=kn.right,Vo=kn.top,zo=kn.bottom,Ks=!1,ca=!1;/^(left|right)/.test(te)?(te.includes("left")?l.right="".concat(Mt.width+_i,"px"):te.includes("right")&&(l.left="".concat(Mt.width+Sr,"px")),te.includes("start")?l.top="".concat(Vo,"px"):te.includes("end")?l.bottom="".concat(zo,"px"):(l.top="".concat(Vo+Mt.height/2,"px"),ca=!0,l.transform="translate(".concat(Ge,"px, calc(").concat(St,"px - 50%))"))):/^(top|bottom)/.test(te)&&(te.includes("top")?l.bottom="".concat(Mt.height+zo,"px"):te.includes("bottom")&&(l.top="".concat(Mt.height+Vo,"px")),te.includes("start")?l.left="".concat(Sr,"px"):te.includes("end")?l.right="".concat(_i,"px"):(l.left="".concat(Sr+Mt.width/2,"px"),Ks=!0,l.transform="translate(calc(".concat(Ge,"px - 50%), ").concat(St,"px)"))),l.transform="translate(calc(".concat(Ge,"px - ").concat(Ks?"50%":"0%","), calc(").concat(St,"px - ").concat(ca?"50%":"0%",")");var Ia=te.split("-");Ia.length&&ms(this.popperDOM,Ia.map(function(al){return"l7-popper-".concat(al)}).join(" ")),Ki(this.popperDOM,ns(l))}},{key:"createPopper",value:function(){var l=this.option,g=l.container,T=l.className,B=T===void 0?"":T,G=l.content,te=Ji("div","l7-popper l7-popper-hide ".concat(B)),Me=Ji("div","l7-popper-content"),Ge=Ji("div","l7-popper-arrow");return te.appendChild(Me),te.appendChild(Ge),g.appendChild(te),this.popperDOM=te,this.contentDOM=Me,G&&this.setContent(G),te}}]),u}(yf.EventEmitter);(0,bn.Z)(qe,"conflictPopperList",[]);function pt(a){var p=un();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function un(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var Pn={topleft:"right-start",topcenter:"bottom",topright:"left-start",bottomleft:"right-end",bottomcenter:"top",bottomright:"left-end",lefttop:"bottom-start",leftcenter:"right",leftbottom:"top-start",righttop:"bottom-end",rightcenter:"left",rightbottom:"top-end"},Hn=function(a){(0,ht.Z)(u,a);var p=pt(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,Ue.Z)(u,[{key:"getPopper",value:function(){return this.popper}},{key:"hide",value:function(){this.popper.hide(),La((0,mt.Z)(u.prototype),"hide",this).call(this)}},{key:"getDefault",value:function(l){var g,T=La((0,mt.Z)(u.prototype),"getDefault",this).call(this,l),B=(g=l==null?void 0:l.position)!==null&&g!==void 0?g:T.position;return(0,Ce.Z)((0,Ce.Z)({},La((0,mt.Z)(u.prototype),"getDefault",this).call(this,l)),{},{popperPlacement:B instanceof Element?"bottom":Pn[B],popperTrigger:"click"})}},{key:"onAdd",value:function(){var l=La((0,mt.Z)(u.prototype),"onAdd",this).call(this);return this.initPopper(),l}},{key:"onRemove",value:function(){this.popper.destroy()}},{key:"initPopper",value:function(){var l=this,g=this.controlOption,T=g.popperClassName,B=g.popperPlacement,G=g.popperTrigger,te=this.mapsService.getMapContainer();return this.popper=new qe(this.button,{className:T,placement:B,trigger:G,container:te,unique:!0}),this.popper.on("show",function(){l.emit("popperShow",l)}).on("hide",function(){l.emit("popperHide",l)}),this.popper}},{key:"setOptions",value:function(l){if(La((0,mt.Z)(u.prototype),"setOptions",this).call(this,l),this.checkUpdateOption(l,["popperPlacement","popperTrigger","popperClassName"])){var g=this.popper.getContent();this.popper.destroy(),this.initPopper(),this.popper.setContent(g)}}}]),u}(Y);function mi(a){var p=Hi();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function Hi(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var bo=function(a){return a.ActiveOptionClassName="l7-select-control-item-active",a.OptionValueAttrKey="data-option-value",a.OptionIndexAttrKey="data-option-index",a}(bo||{}),Mo=function(a){(0,ht.Z)(u,a);var p=mi(u);function u(){var c;(0,bt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T-1?c.selectValue.splice(G,1):c.selectValue=[].concat((0,kr.Z)(c.selectValue),[B.value])}else c.selectValue=[B.value];c.setSelectValue(c.selectValue)}),c}return(0,Ue.Z)(u,[{key:"setOptions",value:function(l){La((0,mt.Z)(u.prototype),"setOptions",this).call(this,l);var g=l.options;g&&this.popper.setContent(this.getPopperContent(g))}},{key:"onAdd",value:function(){var l=La((0,mt.Z)(u.prototype),"onAdd",this).call(this),g=this.controlOption.defaultValue;return g&&(this.selectValue=this.transSelectValue(g)),this.popper.setContent(this.getPopperContent(this.controlOption.options)),l}},{key:"getSelectValue",value:function(){return this.getIsMultiple()?this.selectValue:this.selectValue[0]}},{key:"setSelectValue",value:function(l){var g=this,T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,B=this.transSelectValue(l);this.optionDOMList.forEach(function(G){var te=G.getAttribute(bo.OptionValueAttrKey),Me=g.getIsMultiple()?G.querySelector("input[type=checkbox]"):void 0;B.includes(te)?(ms(G,bo.ActiveOptionClassName),Me&&Na(Me,!0)):(Ua(G,bo.ActiveOptionClassName),Me&&Na(Me,!1))}),this.selectValue=B,T&&this.emit("selectChange",this.getIsMultiple()?B:B[0])}},{key:"getIsMultiple",value:function(){return!1}},{key:"getPopperContent",value:function(l){var g=this,T=this.isImageOptions(),B=Ji("div",T?"l7-select-control--image":"l7-select-control--normal");this.getIsMultiple()&&ms(B,"l7-select-control--multiple");var G=l.map(function(te,Me){var Ge=T?g.createImageOption(te):g.createNormalOption(te);return Ge.setAttribute(bo.OptionValueAttrKey,te.value),Ge.setAttribute(bo.OptionIndexAttrKey,window.String(Me)),Ge.addEventListener("click",g.onItemClick.bind(g,te)),Ge});return B.append.apply(B,(0,kr.Z)(G)),this.optionDOMList=G,B}},{key:"createImageOption",value:function(l){var g=this.selectValue.includes(l.value),T=Ji("div","l7-select-control-item ".concat(g?bo.ActiveOptionClassName:"")),B=Ji("img");B.setAttribute("src",l.img),Zl(B),T.appendChild(B);var G=Ji("div","l7-select-control-item-row");this.getIsMultiple()&&T.appendChild(this.createCheckbox(g));var te=Ji("span");return te.innerText=l.text,G.appendChild(te),T.appendChild(G),T}},{key:"createCheckbox",value:function(l){var g=Ji("input");return g.setAttribute("type","checkbox"),l&&Na(g,!0),g}},{key:"isImageOptions",value:function(){return!!this.controlOption.options.find(function(l){return l.img})}},{key:"transSelectValue",value:function(l){return Array.isArray(l)?l:[l]}}]),u}(Hn),Nr=function(p){var u=document.createElementNS("http://www.w3.org/2000/svg","svg");u.classList.add("l7-iconfont"),u.setAttribute("aria-hidden","true");var c=document.createElementNS("http://www.w3.org/2000/svg","use");return c.setAttributeNS("http://www.w3.org/1999/xlink","href","#".concat(p)),u.appendChild(c),u};function Go(a){var p=Fa();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function Fa(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var el=function(a){(0,ht.Z)(u,a);var p=Go(u);function u(){var c;(0,bt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(te){throw te},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var te=u.next();return g=te.done,te},e:function(te){T=!0,B=te},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function Lu(a,p){if(a){if(typeof a=="string")return uc(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return uc(a,p)}}function uc(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);u0&&arguments[0]!==void 0?arguments[0]:document.documentElement,u=arguments.length>1?arguments[1]:void 0;return new Promise(function(c,l){var g=function B(){du.off("change",B),c()};du.on("change",g);var T=p[rl.requestFullscreen](u);T instanceof Promise&&T.then(g).catch(l)})},exit:function(){return new Promise(function(p,u){if(!du.isFullscreen){p();return}var c=function g(){du.off("change",g),p()};du.on("change",c);var l=document[rl.exitFullscreen]();l instanceof Promise&&l.then(c).catch(u)})},toggle:function(p,u){return du.isFullscreen?du.exit():du.request(p,u)},onchange:function(p){du.on("change",p)},onerror:function(p){du.on("error",p)},on:function(p,u){var c=Yu[p];c&&document.addEventListener(c,u,!1)},off:function(p,u){var c=Yu[p];c&&document.removeEventListener(c,u,!1)},raw:rl};Object.defineProperties(du,{isFullscreen:{get:function(){return!!document[rl.fullscreenElement]}},element:{enumerable:!0,get:function(){var p;return(p=document[rl.fullscreenElement])!==null&&p!==void 0?p:void 0}},isEnabled:{enumerable:!0,get:function(){return!!document[rl.fullscreenEnabled]}}}),rl||(du={isEnabled:!1});var Ac=du;function sc(a){var p=Zu();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function Zu(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var Oh=function(a){(0,ht.Z)(u,a);var p=sc(u);function u(c){var l;return(0,bt.Z)(this,u),l=p.call(this,c),(0,bn.Z)((0,as.Z)(l),"isFullscreen",!1),(0,bn.Z)((0,as.Z)(l),"toggleFullscreen",(0,ka.Z)(Qi().mark(function g(){return Qi().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:if(!Ac.isEnabled){B.next=3;break}return B.next=3,Ac.toggle(l.mapContainer);case 3:case"end":return B.stop()}},g)}))),(0,bn.Z)((0,as.Z)(l),"onClick",function(){l.toggleFullscreen()}),(0,bn.Z)((0,as.Z)(l),"onFullscreenChange",function(){l.isFullscreen=!!document.fullscreenElement;var g=l.controlOption,T=g.btnText,B=g.btnIcon,G=g.title,te=g.exitBtnText,Me=g.exitBtnIcon,Ge=g.exitTitle;l.isFullscreen?(l.setBtnTitle(Ge),l.setBtnText(te),l.setBtnIcon(Me)):(l.setBtnTitle(G),l.setBtnText(T),l.setBtnIcon(B)),l.emit("fullscreenChange",l.isFullscreen)}),Ac.isEnabled||console.warn("\u5F53\u524D\u6D4F\u89C8\u5668\u73AF\u5883\u4E0D\u652F\u6301\u5BF9\u5730\u56FE\u5168\u5C4F\u5316"),l}return(0,Ue.Z)(u,[{key:"setOptions",value:function(l){var g=l.exitBtnText,T=l.exitBtnIcon,B=l.exitTitle;this.isFullscreen&&(this.checkUpdateOption(l,["exitBtnIcon"])&&this.setBtnIcon(T),this.checkUpdateOption(l,["exitBtnText"])&&this.setBtnText(g),this.checkUpdateOption(l,["exitTitle"])&&this.setBtnTitle(B)),La((0,mt.Z)(u.prototype),"setOptions",this).call(this,l)}},{key:"onAdd",value:function(){var l=La((0,mt.Z)(u.prototype),"onAdd",this).call(this);return l.addEventListener("click",this.onClick),this.mapContainer=ia(this.scene.getSceneConfig().id),this.mapContainer.addEventListener("fullscreenchange",this.onFullscreenChange),l}},{key:"onRemove",value:function(){La((0,mt.Z)(u.prototype),"onRemove",this).call(this),this.mapContainer.removeEventListener("fullscreenchange",this.onFullscreenChange)}},{key:"getDefault",value:function(l){return(0,Ce.Z)((0,Ce.Z)({},La((0,mt.Z)(u.prototype),"getDefault",this).call(this,l)),{},{title:"\u5168\u5C4F",btnIcon:Nr("l7-icon-fullscreen"),exitTitle:"\u9000\u51FA\u5168\u5C4F",exitBtnIcon:Nr("l7-icon-exit-fullscreen")})}}]),u}(Y);function xf(a){var p=Dh();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function Dh(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var Jf=function(a){(0,ht.Z)(u,a);var p=xf(u);function u(c){var l;return(0,bt.Z)(this,u),l=p.call(this,c),(0,bn.Z)((0,as.Z)(l),"getGeoLocation",function(){return new Promise(function(g,T){window.navigator.geolocation.getCurrentPosition(function(B){var G=B.coords,te=G!=null?G:{},Me=te.longitude,Ge=te.latitude;!isNaN(Me)&&!isNaN(Ge)?g([Me,Ge]):T()},function(B){T(B)})})}),(0,bn.Z)((0,as.Z)(l),"onClick",(0,ka.Z)(Qi().mark(function g(){var T,B,G;return Qi().wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:if(window.navigator.geolocation){Me.next=2;break}return Me.abrupt("return");case 2:return T=l.controlOption.transform,Me.next=5,l.getGeoLocation();case 5:if(B=Me.sent,G=l.mapsService.getZoom(),Me.t0=l.mapsService,Me.t1=G>15?G:15,!T){Me.next=15;break}return Me.next=12,T(B);case 12:Me.t2=Me.sent,Me.next=16;break;case 15:Me.t2=B;case 16:Me.t3=Me.t2,Me.t0.setZoomAndCenter.call(Me.t0,Me.t1,Me.t3);case 18:case"end":return Me.stop()}},g)}))),window.navigator.geolocation||console.warn("\u5F53\u524D\u6D4F\u89C8\u5668\u73AF\u5883\u4E0D\u652F\u6301\u83B7\u53D6\u5730\u7406\u5B9A\u4F4D"),l}return(0,Ue.Z)(u,[{key:"getDefault",value:function(l){return(0,Ce.Z)((0,Ce.Z)({},La((0,mt.Z)(u.prototype),"getDefault",this).call(this,l)),{},{title:"\u5B9A\u4F4D",btnIcon:Nr("l7-icon-reposition")})}},{key:"onAdd",value:function(){var l=La((0,mt.Z)(u.prototype),"onAdd",this).call(this);return l.addEventListener("click",this.onClick),l}}]),u}(Y);function Lf(a){var p=pm();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function pm(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var Qh=function(a){(0,ht.Z)(u,a);var p=Lf(u);function u(){var c;(0,bt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T=10?10:T>=5?5:T>=3?3:T>=2?2:1,g*T}},{key:"updateMetric",value:function(l){var g=this.getRoundNum(l),T=g<1e3?g+" m":g/1e3+" km";this.updateScale(this.mScale,T,g/l)}},{key:"updateImperial",value:function(l){var g=l*3.2808399,T,B,G;g>5280?(T=g/5280,B=this.getRoundNum(T),this.updateScale(this.iScale,B+" mi",B/T)):(G=this.getRoundNum(g),this.updateScale(this.iScale,G+" ft",G/g))}}]),u}(v);function Ec(a){var p=mh();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function mh(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var Ed=function(a){(0,ht.Z)(u,a);var p=Ec(u);function u(){var c;(0,bt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;Tc.mapsService.getMinZoom()&&c.mapsService.zoomOut()}),(0,bn.Z)((0,as.Z)(c),"updateDisabled",function(){var B=c.mapsService;c.zoomInButton.removeAttribute("disabled"),c.zoomOutButton.removeAttribute("disabled"),(c.disabled||B.getZoom()<=B.getMinZoom())&&c.zoomOutButton.setAttribute("disabled","true"),c.controlOption.showZoom&&c.zoomNumDiv&&(c.zoomNumDiv.innerText=String(Math.floor(B.getZoom()))),(c.disabled||B.getZoom()>=B.getMaxZoom())&&c.zoomInButton.setAttribute("disabled","true")}),c}return(0,Ue.Z)(u,[{key:"getDefault",value:function(l){return(0,Ce.Z)((0,Ce.Z)({},La((0,mt.Z)(u.prototype),"getDefault",this).call(this,l)),{},{position:go.BOTTOMRIGHT,name:"zoom",zoomInText:Nr("l7-icon-enlarge"),zoomInTitle:"Zoom in",zoomOutText:Nr("l7-icon-narrow"),zoomOutTitle:"Zoom out",showZoom:!1})}},{key:"setOptions",value:function(l){La((0,mt.Z)(u.prototype),"setOptions",this).call(this,l),this.checkUpdateOption(l,["zoomInText","zoomInTitle","zoomOutText","zoomOutTitle","showZoom"])&&this.resetButtonGroup(this.container)}},{key:"onAdd",value:function(){var l=Ji("div","l7-control-zoom");return this.resetButtonGroup(l),this.mapsService.on("zoomend",this.updateDisabled),this.mapsService.on("zoomchange",this.updateDisabled),l}},{key:"onRemove",value:function(){this.mapsService.off("zoomend",this.updateDisabled),this.mapsService.off("zoomchange",this.updateDisabled)}},{key:"disable",value:function(){return this.disabled=!0,this.updateDisabled(),this}},{key:"enable",value:function(){return this.disabled=!1,this.updateDisabled(),this}},{key:"resetButtonGroup",value:function(l){cl(l),this.zoomInButton=this.createButton(this.controlOption.zoomInText,this.controlOption.zoomInTitle,"l7-button-control",l,this.zoomIn),this.controlOption.showZoom&&(this.zoomNumDiv=this.createButton("0","","l7-button-control l7-control-zoom__number",l)),this.zoomOutButton=this.createButton(this.controlOption.zoomOutText,this.controlOption.zoomOutTitle,"l7-button-control",l,this.zoomOut),this.updateDisabled()}},{key:"createButton",value:function(l,g,T,B,G){var te=Ji("button",T,B);return typeof l=="string"?te.innerHTML=l:te.append(l),te.title=g,G&&te.addEventListener("click",G),te}}]),u}(v);function Mc(a){var p=Lp();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function Lp(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var _g=function(a){(0,ht.Z)(u,a);var p=Mc(u);function u(c){var l;(0,bt.Z)(this,u),l=p.call(this),(0,bn.Z)((0,as.Z)(l),"isShow",!0),(0,bn.Z)((0,as.Z)(l),"onMouseMove",function(T){var B,G=l.mapsService.getMapContainer(),te=(B=G==null?void 0:G.getBoundingClientRect())!==null&&B!==void 0?B:{},Me=te.left,Ge=Me===void 0?0:Me,St=te.top,Mt=St===void 0?0:St;l.setPopupPosition(T.clientX-Ge,T.clientY-Mt)}),(0,bn.Z)((0,as.Z)(l),"updateLngLatPosition",function(){if(!(!l.mapsService||l.popupOption.followCursor)){var T=l.lngLat,B=T.lng,G=T.lat,te=l.mapsService.lngLatToContainer([B,G]),Me=te.x,Ge=te.y;l.setPopupPosition(Me,Ge)}}),(0,bn.Z)((0,as.Z)(l),"onKeyDown",function(T){T.keyCode===27&&l.remove()}),(0,bn.Z)((0,as.Z)(l),"onCloseButtonClick",function(T){T.stopPropagation&&T.stopPropagation(),l.hide()}),(0,bn.Z)((0,as.Z)(l),"update",function(){var T=!!l.lngLat,B=l.popupOption,G=B.className,te=B.style,Me=B.maxWidth,Ge=B.anchor,St=B.stopPropagation;if(!(!l.mapsService||!T||!l.content)){var Mt=l.mapsService.getMarkerContainer();if(!l.container&&Mt&&(l.container=Ji("div","l7-popup ".concat(G!=null?G:""," ").concat(l.isShow?"":"l7-popup-hide"),Mt),te&&l.container.setAttribute("style",te),l.tip=Ji("div","l7-popup-tip",l.container),l.container.appendChild(l.content),St&&["mousemove","mousedown","mouseup","click","dblclick"].forEach(function(Sr){l.container.addEventListener(Sr,function(_i){_i.stopPropagation()})}),l.container.style.whiteSpace="nowrap"),l.updateLngLatPosition(),os(l.container,"".concat(Tt[Ge])),xt(l.container,Ge,"popup"),Me){var In=l.container.getBoundingClientRect(),kn=In.width;kn>parseFloat(Me)&&(l.container.style.width=Me)}else l.container.style.removeProperty("width")}}),l.popupOption=(0,Ce.Z)((0,Ce.Z)({},l.getDefault(c!=null?c:{})),c);var g=l.popupOption.lngLat;return g&&(l.lngLat=g),l}return(0,Ue.Z)(u,[{key:"lngLat",get:function(){var l;return(l=this.popupOption.lngLat)!==null&&l!==void 0?l:{lng:0,lat:0}},set:function(l){this.popupOption.lngLat=l}},{key:"getIsShow",value:function(){return this.isShow}},{key:"addTo",value:function(l){this.mapsService=l.get(gr.IMapService),this.sceneService=l.get(gr.ISceneService),this.layerService=l.get(gr.ILayerService),this.mapsService.on("camerachange",this.update),this.mapsService.on("viewchange",this.update),this.scene=l,this.update(),this.updateCloseOnClick(),this.updateCloseOnEsc(),this.updateFollowCursor();var g=this.popupOption,T=g.html,B=g.text,G=g.title;return T?this.setHTML(T):B&&this.setText(B),G&&this.setTitle(G),this.emit("open"),this}},{key:"remove",value:function(){if(this!==null&&this!==void 0&&this.isOpen())return this.content&&ta(this.content),this.container&&(ta(this.container),delete this.container),this.mapsService&&(this.mapsService.off("camerachange",this.update),this.mapsService.off("viewchange",this.update),this.updateCloseOnClick(!0),this.updateCloseOnEsc(!0),this.updateFollowCursor(!0),delete this.mapsService),this.emit("close"),this}},{key:"getOptions",value:function(){return this.popupOption}},{key:"setOptions",value:function(l){return this.show(),this.popupOption=(0,Ce.Z)((0,Ce.Z)({},this.popupOption),l),this.checkUpdateOption(l,["html","text","title","closeButton","closeButtonOffsets","maxWidth","anchor","stopPropagation","className","style","lngLat","offsets"])&&(this.container&&(ta(this.container),this.container=void 0),this.popupOption.html?this.setHTML(this.popupOption.html):this.popupOption.text&&this.setText(this.popupOption.text),this.popupOption.title&&this.setTitle(this.popupOption.title)),this.checkUpdateOption(l,["closeOnEsc"])&&this.updateCloseOnEsc(),this.checkUpdateOption(l,["closeOnClick"])&&this.updateCloseOnClick(),this.checkUpdateOption(l,["followCursor"])&&this.updateFollowCursor(),this.checkUpdateOption(l,["html"])&&l.html?this.setHTML(l.html):this.checkUpdateOption(l,["text"])&&l.text&&this.setText(l.text),this.checkUpdateOption(l,["lngLat"])&&l.lngLat&&this.setLnglat(l.lngLat),this}},{key:"open",value:function(){return this.addTo(this.scene),this}},{key:"close",value:function(){return this.remove(),this}},{key:"show",value:function(){if(!this.isShow)return this.container&&Ua(this.container,"l7-popup-hide"),this.isShow=!0,this.emit("show"),this}},{key:"hide",value:function(){if(this.isShow)return this.container&&ms(this.container,"l7-popup-hide"),this.isShow=!1,this.emit("hide"),this}},{key:"setHTML",value:function(l){return this.popupOption.html=l,this.setDOMContent(l)}},{key:"setText",value:function(l){return this.popupOption.text=l,this.setDOMContent(window.document.createTextNode(l))}},{key:"setTitle",value:function(l){this.show(),this.popupOption.title=l,l?(this.contentTitle||(this.contentTitle=Ji("div","l7-popup-content__title"),this.content.firstChild?this.content.insertBefore(this.contentTitle,this.content.firstChild):this.content.append(this.contentTitle)),cl(this.contentTitle),Ml(this.contentTitle,l)):this.contentTitle&&(ta(this.contentTitle),this.contentTitle=void 0)}},{key:"panToPopup",value:function(){var l=this.lngLat,g=l.lng,T=l.lat;return this.popupOption.autoPan&&this.mapsService.panTo([g,T]),this}},{key:"setLngLat",value:function(l){return this.setLnglat(l)}},{key:"setLnglat",value:function(l){var g=this;return this.show(),this.lngLat=l,Array.isArray(l)&&(this.lngLat={lng:l[0],lat:l[1]}),this.mapsService&&(this.mapsService.off("camerachange",this.update),this.mapsService.off("viewchange",this.update),this.mapsService.on("camerachange",this.update),this.mapsService.on("viewchange",this.update)),this.update(),this.popupOption.autoPan&&setTimeout(function(){g.panToPopup()},0),this}},{key:"getLnglat",value:function(){return this.lngLat}},{key:"setMaxWidth",value:function(l){return this.popupOption.maxWidth=l,this.update(),this}},{key:"isOpen",value:function(){return!!this.mapsService}},{key:"getDefault",value:function(l){return{closeButton:!0,closeOnClick:!1,maxWidth:"240px",offsets:[0,0],anchor:Ot.BOTTOM,stopPropagation:!0,autoPan:!1,autoClose:!0,closeOnEsc:!1,followCursor:!1}}},{key:"setDOMContent",value:function(l){return this.show(),this.createContent(),Ml(this.contentPanel,l),this.update(),this}},{key:"updateCloseOnClick",value:function(l){var g=this,T=this.mapsService;T&&(T==null||T.off("click",this.onCloseButtonClick),this.popupOption.closeOnClick&&!l&&requestAnimationFrame(function(){T==null||T.on("click",g.onCloseButtonClick)}))}},{key:"updateCloseOnEsc",value:function(l){window.removeEventListener("keydown",this.onKeyDown),this.popupOption.closeOnEsc&&!l&&window.addEventListener("keydown",this.onKeyDown)}},{key:"updateFollowCursor",value:function(l){var g,T=(g=this.mapsService)===null||g===void 0?void 0:g.getContainer();T&&(T==null||T.removeEventListener("mousemove",this.onMouseMove),this.popupOption.followCursor&&!l&&(T==null||T.addEventListener("mousemove",this.onMouseMove)))}},{key:"createContent",value:function(){var l=this;if(this.content&&ta(this.content),this.contentTitle=void 0,this.content=Ji("div","l7-popup-content",this.container),this.setTitle(this.popupOption.title),this.popupOption.closeButton){var g=Nr("l7-icon-guanbi");ms(g,"l7-popup-close-button"),this.content.appendChild(g),this.popupOption.closeButtonOffsets&&(g.style.right=this.popupOption.closeButtonOffsets[0]+"px",g.style.top=this.popupOption.closeButtonOffsets[1]+"px"),g.setAttribute("aria-label","Close popup"),g.addEventListener("click",function(T){l.hide()}),g.addEventListener("pointerup",function(T){T.stopPropagation()}),g.addEventListener("pointerdown",function(T){T.stopPropagation()}),this.closeButton=g}else this.closeButton=void 0;this.contentPanel=Ji("div","l7-popup-content__panel",this.content)}},{key:"setPopupPosition",value:function(l,g){if(this.container){var T=this.popupOption.offsets;this.container.style.left=l+T[0]+"px",this.container.style.top=g-T[1]+"px"}}},{key:"checkUpdateOption",value:function(l,g){return g.some(function(T){return T in l})}}]),u}(yf.EventEmitter);function Dm(a){var p=i0();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function i0(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var Cm=Ma.get,j0=function(a){(0,ht.Z)(u,a);var p=Dm(u);function u(){var c;(0,bt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T0;)u=u+c*(l%p),l=Math.floor(l/p),c=c/p;return u}var Ym=1,b2=(mC=(0,ws.b2)(),YS=(0,ws.f3)(gr.IShaderModuleService),mC(bw=(_2=function(a){(0,dt.Z)(u,a);var p=jT(u);function u(){var c;(0,wt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T=1&&(ee(this.copyRenderTarget,function(){g.outputModel.draw({uniforms:{u_Texture:g.outputRenderTarget}})}),ee(l.multiPassRenderer.getPostProcessor().getReadFBO(),function(){g.copyModel.draw({uniforms:{u_Texture:g.copyRenderTarget}})}),l.multiPassRenderer.getPostProcessor().render(l));var zo=this.prevRenderTarget;this.prevRenderTarget=this.outputRenderTarget,this.outputRenderTarget=zo,this.frame++,this.cameraService.clearJitterProjectionMatrix()}},{key:"isFinished",value:function(){return this.frame>=this.haltonSequence.length}},{key:"resetFrame",value:function(){this.frame=0}},{key:"stopAccumulating",value:function(){this.accumulatingId=0,window.clearTimeout(this.timer)}},{key:"createTriangleModel",value:function(l,g,T){this.shaderModuleService.registerModule(l,{vs:xw,fs:g});var B=this.shaderModuleService.getModule(l),Z=B.vs,ee=B.fs,Pe=B.uniforms,Ze=this.rendererService,St=Ze.createAttribute,Mt=Ze.createBuffer,Tn=Ze.createModel;return Tn((0,xe.Z)({vs:Z,fs:ee,attributes:{a_Position:St({buffer:Mt({data:[-4,-4,4,-4,0,4],type:Gi.FLOAT}),size:2})},uniforms:(0,xe.Z)({},Pe),depth:{enable:!1},count:3},T))}}]),u}(eg),qS=$h(_2.prototype,"shaderModuleService",[YS],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_2))||bw),vC=new ws.W2;vC.bind(gr.IGlobalConfigService).to(Rg).inSingletonScope(),(0,ws.GW)((0,ws.b2)(),gf.EventEmitter),vC.bind(gr.IEventEmitter).to(gf.EventEmitter);var x2=(0,Ha.Z)(vC,!1),Cw=function(p){var u=x2.lazyInject(p);return function(c,l,g){u.call(this,c,l),g&&(g.initializer=function(){return c[l]})}},QS=function(p){var u=x2.lazyMultiInject(p);return function(c,l,g){u.call(this,c,l),g&&(g.initializer=function(){return c[l]})}},bv=vC,VT=0;function qm(){var a=new ws.W2;return a.parent=vC,a.bind(gr.SceneID).toConstantValue("".concat(VT++)),a.bind(gr.IShaderModuleService).to(Ou).inSingletonScope(),a.bind(gr.ILayerService).to(Lb).inSingletonScope(),a.bind(gr.IDebugService).to(hm).inSingletonScope(),a.bind(gr.ISceneService).to(K).inSingletonScope(),a.bind(gr.ICameraService).to(jr).inSingletonScope(),a.bind(gr.ICoordinateSystemService).to(Xm).inSingletonScope(),a.bind(gr.IInteractionService).to(_1).inSingletonScope(),a.bind(gr.IPickingService).to(jv).inSingletonScope(),a.bind(gr.IControlService).to(Kc).inSingletonScope(),a.bind(gr.IMarkerService).to(rh).inSingletonScope(),a.bind(gr.IIconService).to(Lt).inSingletonScope(),a.bind(gr.IFontService).to(Eg).inSingletonScope(),a.bind(gr.IPopupService).to(yg).inSingletonScope(),a.bind(gr.INormalPass).to(_m).whenTargetNamed("clear"),a.bind(gr.INormalPass).to(ob).whenTargetNamed("pixelPicking"),a.bind(gr.INormalPass).to(y2).whenTargetNamed("render"),a.bind(gr.INormalPass).to(b2).whenTargetNamed("taa"),a.bind(gr.IFactoryNormalPass).toFactory(function(p){return function(u){return p.container.getNamed(gr.INormalPass,u)}}),a.bind(gr.IPostProcessingPass).to(vw).whenTargetNamed("copy"),a.bind(gr.IPostProcessingPass).to(BS).whenTargetNamed("bloom"),a.bind(gr.IPostProcessingPass).to(zS).whenTargetNamed("blurH"),a.bind(gr.IPostProcessingPass).to(g2).whenTargetNamed("blurV"),a.bind(gr.IPostProcessingPass).to(BT).whenTargetNamed("noise"),a.bind(gr.IPostProcessingPass).to(C3).whenTargetNamed("sepia"),a.bind(gr.IPostProcessingPass).to(VS).whenTargetNamed("colorHalftone"),a.bind(gr.IPostProcessingPass).to(_3).whenTargetNamed("hexagonalPixelate"),a.bind(gr.IPostProcessingPass).to(FT).whenTargetNamed("ink"),a.bind(gr.IFactoryPostProcessingPass).toFactory(function(p){return function(u){var c=p.container.getNamed(gr.IPostProcessingPass,u);return c.setName(u),c}}),a}function Bb(a){var p=new ws.W2;return p.parent=a,p.bind(gr.IStyleAttributeService).to(LS).inSingletonScope(),p.bind(gr.IMultiPassRenderer).to(N1).inSingletonScope(),p.bind(gr.IPostProcessor).to(N_).inSingletonScope(),p}var UT=["circle","triangle","square","pentagon","hexagon","octogon","hexagram","rhombus","vesica"];function Ax(a){return UT.indexOf(a)}var t_=Ma.clamp,eE=2,ub=4,C2=64,cb=128,tE=256,nE=512,rE=8192,ww=16384,c0=32768,Bm=null,Bg=131072,Kv=262144,w2=524288,gy=1048576,Ix=2097152,HT=4194304,Ny=8388608,zb=16777216,ZT=null;function Sw(a,p){return a=t_(Math.floor(a),0,255),p=t_(Math.floor(p),0,255),256*a+p}function F_(a){var p=a.color,u=a.radius,c=a.tileX,l=a.tileY,g=a.shape,T=a.opacity,B=a.stroke,Z=a.strokeWidth,ee=a.strokeOpacity,Pe=[],Ze=[],St=[],Mt=[Sw(p[0],p[1]),Sw(p[2],p[3])],Tn=[Sw(B[0],B[1]),Sw(B[2],B[3])];return[[-1,-1],[1,-1],[1,1],[-1,1]].forEach(function(kn){var vr=(0,qn.Z)(kn,2),wi=vr[0],zo=vr[1];Pe.push([].concat(Mt,[(wi+1)*Ny+(zo+1)*Ix+Ax(g)*Bg+u,(c+512)*w2+(l+512)*C2])),Ze.push([].concat(Tn,[Z,ee])),St.push([T,0,0,0])}),{packedBuffer:Pe,packedBuffer2:Ze,packedBuffer3:St}}function S2(a,p){if(a===0&&!p)return 0;if(a===1&&p)return 4294967295;var u=p?1:0,c=Math.floor(a*127);return c*ZT+u*zb+c*Bg+u*Bm+c*nE+u*tE+c*eE+u}var $b={ProjectionMatrix:"u_ProjectionMatrix",ViewMatrix:"u_ViewMatrix",ViewProjectionMatrix:"u_ViewProjectionMatrix",Zoom:"u_Zoom",ZoomScale:"u_ZoomScale",FocalDistance:"u_FocalDistance",CameraPosition:"u_CameraPosition"},pm={MapInitStart:"mapInitStart",LayerInitStart:"layerInitStart",LayerInitEnd:"layerInitEnd",SourceInitStart:"sourceInitStart",SourceInitEnd:"sourceInitEnd",ScaleInitStart:"scaleInitStart",ScaleInitEnd:"scaleInitEnd",MappingStart:"mappingStart",MappingEnd:"mappingEnd",BuildModelStart:"buildModelStart",BuildModelEnd:"buildModelEnd"},n0=function(a){return a.LINEAR="linear",a.SEQUENTIAL="sequential",a.POWER="power",a.LOG="log",a.IDENTITY="identity",a.TIME="time",a.QUANTILE="quantile",a.QUANTIZE="quantize",a.THRESHOLD="threshold",a.CAT="cat",a.DIVERGING="diverging",a}({}),Wb=function(a){return a.CONSTANT="constant",a.VARIABLE="variable",a}({}),Ld=function(a){return a[a.Attribute=0]="Attribute",a[a.InstancedAttribute=1]="InstancedAttribute",a[a.Uniform=2]="Uniform",a}({}),yC=["mapload","mapchange","mapAfterFrameChange"],Ew=["loaded","fontloaded","maploaded","resize","destroy","dragstart","dragging","dragend","dragcancel"],kv=function(a){return a.IMAGE="image",a.CUSTOMIMAGE="customImage",a.ARRAYBUFFER="arraybuffer",a.RGB="rgb",a.TERRAINRGB="terrainRGB",a.CUSTOMRGB="customRGB",a.CUSTOMARRAYBUFFER="customArrayBuffer",a.CUSTOMTERRAINRGB="customTerrainRGB",a}({}),GT=function(){var a=(0,Pa.Z)(Qi().mark(function p(u,c,l,g){return Qi().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.abrupt("return",new Promise(function(Z,ee){c({x:u.x,y:u.y,z:u.z},function(Pe,Ze){if(Pe||Ze.length===0){ee(Pe);return}Ze&&Sa([{data:Ze,bands:[0]}],l,g,function(St,Mt){St?ee(St):Mt&&Z(Mt)})})}));case 1:case"end":return B.stop()}},p)}));return function(u,c,l,g){return a.apply(this,arguments)}}(),E2=function(){var a=(0,Pa.Z)(Qi().mark(function p(u,c){return Qi().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.abrupt("return",new Promise(function(T,B){c({x:u.x,y:u.y,z:u.z},function(Z,ee){if(Z||!ee){B(Z);return}ee instanceof ArrayBuffer?on(ee,function(Pe,Ze){Pe&&B(Pe),T(Ze)}):ee instanceof HTMLImageElement?T(ee):B(Z)})}));case 1:case"end":return g.stop()}},p)}));return function(u,c){return a.apply(this,arguments)}}();function iE(a,p){return Array.isArray(a)?typeof a[0]=="string"?a.map(function(u){return $c(u,p)}):a.map(function(u){return{url:$c(u.url,p),bands:u.bands||[0]}}):$c(a,p)}function Jm(a){return typeof a=="string"?[{url:a,bands:[0]}]:typeof a[0]=="string"?a.map(function(p){return{url:p,bands:[0]}}):a}function KT(a,p){a.xhrCancel=function(){p.map(function(u){u.abort()})}}var XT=function(){var a=(0,Pa.Z)(Qi().mark(function p(u,c,l,g,T){var B,Z,ee,Pe,Ze,St;return Qi().wrap(function(Tn){for(;;)switch(Tn.prev=Tn.next){case 0:if(B=Jm(c.url),!(B.length>1)){Tn.next=15;break}return Tn.next=4,oE(B,c);case 4:if(Z=Tn.sent,ee=Z.rasterFiles,Pe=Z.xhrList,Ze=Z.errList,KT(u,Pe),!(Ze.length>0)){Tn.next=12;break}return l(Ze,null),Tn.abrupt("return");case 12:Sa(ee,g,T,l),Tn.next=17;break;case 15:St=Ci(c,function(kn,vr){if(kn)l(kn);else if(vr){var wi=[{data:vr,bands:B[0].bands}];Sa(wi,g,T,l)}}),KT(u,[St]);case 17:case"end":return Tn.stop()}},p)}));return function(u,c,l,g,T){return a.apply(this,arguments)}}();function oE(a,p){return jb.apply(this,arguments)}function jb(){return jb=(0,Pa.Z)(Qi().mark(function a(p,u){var c,l,g,T,B,Z,ee,Pe,Ze,St,Mt;return Qi().wrap(function(kn){for(;;)switch(kn.prev=kn.next){case 0:c=[],l=[],g=[],T=0;case 4:if(!(T1&&arguments[1]!==void 0?arguments[1]:{};if(_C(a))throw new Error("tile server url is error");var u=(p==null?void 0:p.dataType)||kv.IMAGE;u===kv.RGB&&(u=kv.ARRAYBUFFER);var c=function(T,B){switch(u){case kv.IMAGE:return vy(a,T,B,p);case kv.CUSTOMIMAGE:case kv.CUSTOMTERRAINRGB:return E2(B,p==null?void 0:p.getCustomData);case kv.ARRAYBUFFER:return sE(a,T,B,(p==null?void 0:p.format)||YT,p==null?void 0:p.operation);case kv.CUSTOMARRAYBUFFER:case kv.CUSTOMRGB:return GT(B,p==null?void 0:p.getCustomData,(p==null?void 0:p.format)||YT,p==null?void 0:p.operation);default:return vy(a,T,B,p)}},l=(0,xe.Z)((0,xe.Z)((0,xe.Z)({},F1),p),{},{getTileData:c});return{data:a,dataArray:[],tilesetOptions:l,isTile:!0}}var qT=["extent","min","max","width","height","format","operation"];function T2(a,p){var u=p.extent,c=p.min,l=p.max,g=p.width,T=p.height,B=p.format,Z=p.operation,ee=(0,Ug.Z)(p,qT),Pe;if(B===void 0||Ur(a))Pe=Array.from(a);else{var Ze=Array.isArray(a)?a:[a];Pe=ei(Ze,B,Z)}var St={_id:1,dataArray:[(0,xe.Z)((0,xe.Z)({_id:1,data:Pe,width:g,height:T},ee),{},{min:c,max:l,coordinates:[[u[0],u[1]],[u[2],u[3]]]})]};return St}var aE={tileSize:256,minZoom:0,maxZoom:1/0,zoomOffset:0},JT=function(){var a=(0,Pa.Z)(Qi().mark(function p(u){return Qi().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",new Promise(function(g){var T=(0,qn.Z)(u.bounds,4),B=T[0],Z=T[1],ee=T[2],Pe=T[3],Ze={layers:{testTile:{features:[{type:"Feature",properties:{key:u.x+"/"+u.y+"/"+u.z,x:(B+ee)/2,y:(Z+Pe)/2},geometry:{type:"LineString",coordinates:[[ee,Pe],[ee,Z],[B,Z],[B,Z]]}}]}}};g(Ze)}));case 1:case"end":return l.stop()}},p)}));return function(u){return a.apply(this,arguments)}}();function QT(a,p){var u=function(g){return JT(g)},c=(0,xe.Z)((0,xe.Z)((0,xe.Z)({},aE),p),{},{getTileData:u});return{data:a,dataArray:[],tilesetOptions:c,isTile:!0}}var eD=m(77028),n_=m.n(eD);function D2(a,p){var u=p.radius,c=u===void 0?40:u,l=p.maxZoom,g=l===void 0?18:l,T=p.minZoom,B=T===void 0?0:T,Z=p.zoom,ee=Z===void 0?2:Z;if(a.pointIndex){var Pe=a.pointIndex.getClusters(a.extent,Math.floor(ee));return a.dataArray=Ag(Pe),a}var Ze=new(n_())({radius:c,minZoom:B,maxZoom:g}),St={type:"FeatureCollection",features:[]};return St.features=a.dataArray.map(function(Mt){return{type:"Feature",geometry:{type:"Point",coordinates:Mt.coordinates},properties:(0,xe.Z)({},Mt)}}),Ze.load(St.features),Ze}function Ag(a){return a.map(function(p,u){return(0,xe.Z)({coordinates:p.geometry.coordinates,_id:u+1},p.properties)})}function A2(a){if(a.length===0)throw new Error("max requires at least one data point");for(var p=a[0],u=1;up&&(p=a[u]);return p}function Mv(a){if(a.length===0)throw new Error("min requires at least one data point");for(var p=a[0],u=1;u=Math.abs(a[l])?u+=p-c+a[l]:u+=a[l]-c+p,p=c;return p+u*1}function I2(a){if(a.length===0)throw new Error("mean requires at least one data point");return db(a)/a.length}var lE={min:Mv,max:A2,mean:I2,sum:db};function uE(a){var p=L2();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function L2(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var cE=Ma.cloneDeep,ey=Ma.isFunction,Tw=Ma.isString,Dw=Ma.mergeWith;function tD(a,p){if(Array.isArray(p))return p}var P2=function(a){(0,dt.Z)(u,a);var p=uE(u);function u(c,l){var g;return(0,wt.Z)(this,u),g=p.call(this),(0,bn.Z)((0,is.Z)(g),"type","source"),(0,bn.Z)((0,is.Z)(g),"isTile",!1),(0,bn.Z)((0,is.Z)(g),"inited",!1),(0,bn.Z)((0,is.Z)(g),"hooks",{init:new u1}),(0,bn.Z)((0,is.Z)(g),"parser",{type:"geojson"}),(0,bn.Z)((0,is.Z)(g),"transforms",[]),(0,bn.Z)((0,is.Z)(g),"cluster",!1),(0,bn.Z)((0,is.Z)(g),"clusterOptions",{enable:!1,radius:40,maxZoom:20,zoom:-99,method:"count"}),(0,bn.Z)((0,is.Z)(g),"invalidExtent",!1),(0,bn.Z)((0,is.Z)(g),"dataArrayChanged",!1),(0,bn.Z)((0,is.Z)(g),"cfg",{autoRender:!0}),g.originData=c,g.initCfg(l),g.init().then(function(){g.inited=!0,g.emit("update",{type:"inited"})}),g}return(0,He.Z)(u,[{key:"getSourceCfg",value:function(){return this.cfg}},{key:"getClusters",value:function(l){return this.clusterIndex.getClusters(this.caculClusterExtent(2),l)}},{key:"getClustersLeaves",value:function(l){return this.clusterIndex.getLeaves(l,1/0)}},{key:"getParserType",value:function(){return this.parser.type}},{key:"updateClusterData",value:function(l){var g=this,T=this.clusterOptions,B=T.method,Z=B===void 0?"sum":B,ee=T.field,Pe=this.clusterIndex.getClusters(this.caculClusterExtent(2),Math.floor(l));this.clusterOptions.zoom=l,Pe.forEach(function(Ze){Ze.id||(Ze.properties.point_count=1)}),(ee||ey(Z))&&(Pe=Pe.map(function(Ze){var St=Ze.id;if(St){var Mt=g.clusterIndex.getLeaves(St,1/0),Tn=Mt.map(function(wi){return wi.properties}),kn;if(Tw(Z)&&ee){var vr=ai(Tn,ee);kn=lE[Z](vr)}ey(Z)&&(kn=Z(Tn)),Ze.properties.stat=kn}else Ze.properties.point_count=1;return Ze})),this.data=w("geojson")({type:"FeatureCollection",features:Pe}),this.executeTrans()}},{key:"getFeatureById",value:function(l){var g=this.parser,T=g.type,B=T===void 0?"geojson":T,Z=g.geometry;if(B==="geojson"&&!this.cluster){var ee=l=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(ee){throw ee},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var ee=u.next();return g=ee.done,ee},e:function(ee){T=!0,B=ee},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function M2(a,p){if(a){if(typeof a=="string")return nD(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return nD(a,p)}}function nD(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);uc?l:c)}}catch($o){g.e($o)}finally{g.f()}var Z=(u+c)/2,ee=rD(p,Z);if(ee.xOffset<=0||ee.yOffset<=0)return{gridHash:{},gridOffset:ee};var Pe={},Ze=Lx(a),St;try{for(Ze.s();!(St=Ze.n()).done;){var Mt=St.value,Tn=Mt.coordinates[1],kn=Mt.coordinates[0];if(Number.isFinite(Tn)&&Number.isFinite(kn)){var vr=Math.floor((Tn+90)/ee.yOffset),wi=Math.floor((kn+180)/ee.xOffset),zo="".concat(vr,"-").concat(wi);Pe[zo]=Pe[zo]||{count:0,points:[]},Pe[zo].count+=1,Pe[zo].points.push(Mt)}}}catch($o){Ze.e($o)}finally{Ze.f()}return{gridHash:Pe,gridOffset:ee}}function rD(a,p){var u=hE(a),c=kx(p,a);return{yOffset:u,xOffset:c}}function hE(a){return a/O2*(180/Math.PI)}function kx(a,p){return p/O2*(180/Math.PI)/Math.cos(a*Math.PI/180)}function B1(a,p,u){return Object.keys(a).reduce(function(c,l,g){var T=l.split("-"),B=parseInt(T[0],10),Z=parseInt(T[1],10),ee={};if(u.field&&u.method){var Pe=cf(a[l].points,u.field);ee[u.method]=Kh[u.method](Pe)}return Object.assign(ee,{_id:g,coordinates:ku([-180+p.xOffset*(Z+.5),-90+p.yOffset*(B+.5)]),rawData:a[l].points,count:a[l].count}),c.push(ee),c},[])}var Mx=Math.PI/3,w3=[0,Mx,2*Mx,3*Mx,4*Mx,5*Mx];function bC(a){return a[0]}function iD(a){return a[1]}function fE(){var a=0,p=0,u=1,c=1,l=bC,g=iD,T,B,Z;function ee(Ze){var St={},Mt=[],Tn,kn=Ze.length;for(Tn=0;Tn1){var La=wi-Ks,vl=Ks+(wiJl*Jl+ju*ju&&(Ks=vl+($o&1?1:-1)/2,$o=Wl)}var Ku=Ks+"-"+$o,Jc=St[Ku];Jc?Jc.push(vr):(Mt.push(Jc=St[Ku]=[vr]),Jc.x=(Ks+($o&1)/2)*B,Jc.y=$o*Z)}return Mt}function Pe(Ze){var St=0,Mt=0;return w3.map(function(Tn){var kn=Math.sin(Tn)*Ze,vr=-Math.cos(Tn)*Ze,wi=kn-St,zo=vr-Mt;return St=kn,Mt=vr,[wi,zo]})}return ee.hexagon=function(Ze){return"m"+Pe(Ze==null?T:+Ze).join("l")+"z"},ee.centers=function(){for(var Ze=[],St=Math.round(p/Z),Mt=Math.round(a/B),Tn=St*Z;Tn180||Math.abs(Tn[1][0])>180){if(Pe.x>Mt){var kn=this.mapsService.lngLatToContainer([Z-360,ee]);Pe.x=kn.x}if(Pe.x<0){var vr=this.mapsService.lngLatToContainer([Z+360,ee]);Pe.x=vr.x}}(Pe.x>Mt||Pe.x<0||Pe.y>St||Pe.y<0)&&(g.style.display="none"),g.style.left=Pe.x+T[0]+"px",g.style.top=Pe.y-T[1]+"px"}}}},{key:"init",value:function(){var l=this,g=this.markerOption.element,T=this.markerOption,B=T.color,Z=T.anchor;if(!g){this.defaultMarker=!0,g=qi("div"),this.markerOption.element=g;var ee=document.createElementNS("http://www.w3.org/2000/svg","svg");ee.setAttributeNS(null,"display","block"),ee.setAttributeNS(null,"height","48px"),ee.setAttributeNS(null,"width","48px"),ee.setAttributeNS(null,"viewBox","0 0 1024 1024");var Pe=document.createElementNS("http://www.w3.org/2000/svg","path");Pe.setAttributeNS(null,"d","M512 490.666667C453.12 490.666667 405.333333 442.88 405.333333 384 405.333333 325.12 453.12 277.333333 512 277.333333 570.88 277.333333 618.666667 325.12 618.666667 384 618.666667 442.88 570.88 490.666667 512 490.666667M512 85.333333C346.88 85.333333 213.333333 218.88 213.333333 384 213.333333 608 512 938.666667 512 938.666667 512 938.666667 810.666667 608 810.666667 384 810.666667 218.88 677.12 85.333333 512 85.333333Z"),Pe.setAttributeNS(null,"fill",B),ee.appendChild(Pe),g.appendChild(ee)}ms(g,"l7-marker"),Object.keys(this.markerOption.style||{}).forEach(function(Ze){var St,Mt,Tn=((St=l.markerOption)===null||St===void 0?void 0:St.style)&&((Mt=l.markerOption)===null||Mt===void 0?void 0:Mt.style[Ze]);g&&(g.style[Ze]=Tn)}),bt(g,Z,"marker")}},{key:"registerMarkerEvent",value:function(l){l.addEventListener("click",this.onMapClick),l.addEventListener("mousemove",this.eventHandle),l.addEventListener("click",this.eventHandle),l.addEventListener("mousedown",this.eventHandle),l.addEventListener("mouseup",this.eventHandle),l.addEventListener("dblclick",this.eventHandle),l.addEventListener("contextmenu",this.eventHandle),l.addEventListener("mouseover",this.eventHandle),l.addEventListener("mouseout",this.eventHandle),l.addEventListener("touchstart",this.eventHandle),l.addEventListener("touchend",this.eventHandle)}},{key:"unRegisterMarkerEvent",value:function(){var l=this.getElement();l.removeEventListener("click",this.onMapClick),l.removeEventListener("mousemove",this.eventHandle),l.removeEventListener("click",this.eventHandle),l.removeEventListener("mousedown",this.eventHandle),l.removeEventListener("mouseup",this.eventHandle),l.removeEventListener("dblclick",this.eventHandle),l.removeEventListener("contextmenu",this.eventHandle),l.removeEventListener("mouseover",this.eventHandle),l.removeEventListener("mouseout",this.eventHandle),l.removeEventListener("touchstart",this.eventHandle),l.removeEventListener("touchend",this.eventHandle)}},{key:"polyfillEvent",value:function(l){!this.mapsService||this.mapsService.version!=="GAODE2.x"||au()||(l.type==="touchstart"&&(this.touchStartTime=Date.now()),l.type==="touchend"&&Date.now()-this.touchStartTime<300&&this.emit("click",{target:l,data:this.markerOption.extData,lngLat:this.lngLat}))}},{key:"addDragHandler",value:function(l){return null}},{key:"onUp",value:function(l){throw new Error("Method not implemented.")}}]),u}(gf.EventEmitter);function F2(a){var p=mE();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function mE(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var sD=Ma.merge,xC=function(a){(0,dt.Z)(u,a);var p=F2(u);function u(c){var l,g;return(0,wt.Z)(this,u),g=p.call(this),(0,bn.Z)((0,is.Z)(g),"markers",[]),(0,bn.Z)((0,is.Z)(g),"points",[]),(0,bn.Z)((0,is.Z)(g),"clusterMarkers",[]),g.markerLayerOption=sD(g.getDefault(),c),Eu(["update"],(0,is.Z)(g)),g.zoom=((l=g.markerLayerOption.clusterOption)===null||l===void 0?void 0:l.zoom)||-99,g}return(0,He.Z)(u,[{key:"getDefault",value:function(){return{cluster:!1,clusterOption:{radius:80,maxZoom:20,minZoom:0,zoom:-99,style:{},className:""}}}},{key:"addTo",value:function(l){return this.scene=l,this.mapsService=l.get(gr.IMapService),this.markerLayerOption.cluster&&(this.initCluster(),this.update(),this.mapsService.on("camerachange",this.update),this.mapsService.on("viewchange",this.update)),this.mapsService.on("camerachange",this.setContainerSize.bind(this)),this.mapsService.on("viewchange",this.setContainerSize.bind(this)),this.addMarkers(),this.inited=!0,this}},{key:"setContainerSize",value:function(){if(this.mapsService){var l=this.mapsService.getContainer();this.containerSize={containerWidth:(l==null?void 0:l.scrollWidth)||0,containerHeight:(l==null?void 0:l.scrollHeight)||0,bounds:this.mapsService.getBounds()}}}},{key:"getContainerSize",value:function(){return this.containerSize}},{key:"addMarker",value:function(l){var g=this.markerLayerOption.cluster;if(l.getMarkerLayerContainerSize=this.getContainerSize.bind(this),g&&(this.addPoint(l,this.markers.length),this.mapsService)){var T=this.mapsService.getZoom(),B=this.mapsService.getBounds();this.bbox=jd(B,.5),this.zoom=Math.floor(T),this.getClusterMarker(this.bbox,this.zoom)}this.markers.push(l)}},{key:"removeMarker",value:function(l){this.markers.indexOf(l);var g=this.markers.indexOf(l);g>-1&&this.markers.splice(g,1)}},{key:"hide",value:function(){this.markers.map(function(l){l.getElement().style.opacity="0"}),this.clusterMarkers.map(function(l){l.getElement().style.opacity="0"})}},{key:"show",value:function(){this.markers.map(function(l){l.getElement().style.opacity="1"}),this.clusterMarkers.map(function(l){l.getElement().style.opacity="1"})}},{key:"getMarkers",value:function(){var l=this.markerLayerOption.cluster;return l?this.clusterMarkers:this.markers}},{key:"addMarkers",value:function(){var l=this;this.getMarkers().forEach(function(g){g.addTo(l.scene)})}},{key:"clear",value:function(){this.markers.forEach(function(l){l.remove()}),this.clusterMarkers.forEach(function(l){l.remove()}),this.markers=[],this.points=[],this.clusterMarkers=[]}},{key:"destroy",value:function(){this.clear(),this.removeAllListeners(),this.mapsService.off("camerachange",this.update),this.mapsService.off("viewchange",this.update),this.mapsService.off("camerachange",this.setContainerSize.bind(this)),this.mapsService.off("viewchange",this.setContainerSize.bind(this))}},{key:"addPoint",value:function(l,g){var T=l.getLnglat(),B=T.lng,Z=T.lat,ee={geometry:{type:"Point",coordinates:[B,Z]},properties:(0,xe.Z)((0,xe.Z)({},l.getExtData()),{},{marker_id:g})};this.points.push(ee),this.clusterIndex&&this.clusterIndex.load(this.points)}},{key:"initCluster",value:function(){if(this.markerLayerOption.cluster){var l=this.markerLayerOption.clusterOption,g=l.radius,T=l.minZoom,B=T===void 0?0:T,Z=l.maxZoom;this.clusterIndex=new(n_())({radius:g,minZoom:B,maxZoom:Z}),this.clusterIndex.load(this.points)}}},{key:"getClusterMarker",value:function(l,g){var T=this,B=l[0].concat(l[1]),Z=this.clusterIndex.getClusters(B,g);this.clusterMarkers.forEach(function(ee){ee.remove()}),this.clusterMarkers=[],Z.forEach(function(ee){var Pe,Ze=T.markerLayerOption.clusterOption,St=Ze.field,Mt=Ze.method;if((Pe=ee.properties)!==null&&Pe!==void 0&&Pe.cluster_id){var Tn,kn=T.getLeaves((Tn=ee.properties)===null||Tn===void 0?void 0:Tn.cluster_id);if(ee.properties.clusterData=kn,St&&Mt){var vr=kn==null?void 0:kn.map(function(ra){var La=(0,bn.Z)({},St,ra.properties[St]);return La}),wi=cf(vr,St),zo=Qc(Mt,wi),$o="point_"+Mt;ee.properties[$o]=zo.toFixed(2)}}var Ks=T.clusterMarker(ee);T.clusterMarkers.push(Ks),Ks.addTo(T.scene)})}},{key:"getLeaves",value:function(l){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1/0,T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return l?this.clusterIndex.getLeaves(l,g,T):null}},{key:"clusterMarker",value:function(l){var g=this.markerLayerOption.clusterOption,T=g,B=T.element,Z=B===void 0?this.generateElement.bind(this):B,ee=new N2({element:Z(l)}).setLnglat({lng:l.geometry.coordinates[0],lat:l.geometry.coordinates[1]});return ee}},{key:"normalMarker",value:function(l){var g=l.properties.marker_id;return this.markers[g]}},{key:"update",value:function(){if(this.mapsService&&this.markers.length!==0){var l=this.mapsService.getZoom(),g=this.mapsService.getBounds();(!this.bbox||Math.abs(l-this.zoom)>=1||!vh(this.bbox,g))&&(this.bbox=jd(g,.5),this.zoom=Math.floor(l),this.getClusterMarker(this.bbox,this.zoom))}}},{key:"generateElement",value:function(l){var g=qi("div","l7-marker-cluster"),T=qi("div","",g),B=qi("span","",T),Z=this.markerLayerOption.clusterOption,ee=Z.field,Pe=Z.method;l.properties.point_count=l.properties.point_count||1;var Ze=ee&&Pe?l.properties["point_"+Pe]||l.properties[ee]:l.properties.point_count;return B.textContent=Ze,g}}]),u}(gf.EventEmitter),YL=m(93343);function T3(a){var p=D3();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function D3(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var v=function(a){(0,dt.Z)(u,a);var p=T3(u);function u(c){var l;return(0,wt.Z)(this,u),l=p.call(this),u.controlCount++,l.controlOption=(0,xe.Z)((0,xe.Z)({},l.getDefault(c)),c||{}),l}return(0,He.Z)(u,[{key:"getOptions",value:function(){return this.controlOption}},{key:"setOptions",value:function(l){var g=this.getDefault(l);Object.entries(l).forEach(function(T){var B=(0,qn.Z)(T,2),Z=B[0],ee=B[1];ee===void 0&&(l[Z]=g[Z])}),"position"in l&&this.setPosition(l.position),"className"in l&&this.setClassName(l.className),"style"in l&&this.setStyle(l.style),this.controlOption=(0,xe.Z)((0,xe.Z)({},this.controlOption),l)}},{key:"addTo",value:function(l){this.mapsService=l.get(gr.IMapService),this.renderService=l.get(gr.IRendererService),this.layerService=l.get(gr.ILayerService),this.controlService=l.get(gr.IControlService),this.configService=l.get(gr.IGlobalConfigService),this.scene=l.get(gr.ISceneService),this.sceneContainer=l,this.isShow=!0,this.container=this.onAdd(),ms(this.container,"l7-control");var g=this.controlOption,T=g.className,B=g.style;return T&&this.setClassName(T),B&&this.setStyle(B),this.insertContainer(),this.emit("add",this),this}},{key:"remove",value:function(){if(!this.mapsService)return this;ta(this.container),this.onRemove(),this.emit("remove",this)}},{key:"onAdd",value:function(){return qi("div")}},{key:"onRemove",value:function(){}},{key:"show",value:function(){var l=this.container;Ua(l,"l7-control--hide"),this.isShow=!0,this.emit("show",this)}},{key:"hide",value:function(){var l=this.container;ms(l,"l7-control--hide"),this.isShow=!1,this.emit("hide",this)}},{key:"getDefault",value:function(l){return{position:go.TOPRIGHT,name:"".concat(u.controlCount)}}},{key:"getContainer",value:function(){return this.container}},{key:"getIsShow",value:function(){return this.isShow}},{key:"_refocusOnMap",value:function(l){if(this.mapsService&&l&&l.screenX>0&&l.screenY>0){var g=this.mapsService.getContainer();g!==null&&g.focus()}}},{key:"setPosition",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:go.TOPLEFT,g=this.controlService;return g&&g.removeControl(this),this.controlOption.position=l,g&&g.addControl(this,this.sceneContainer),this}},{key:"setClassName",value:function(l){var g=this.container,T=this.controlOption.className;T&&Ua(g,T),l&&ms(g,l)}},{key:"setStyle",value:function(l){var g=this.container;l?g.setAttribute("style",l):g.removeAttribute("style")}},{key:"insertContainer",value:function(){var l=this.controlOption.position,g=this.container;if(l instanceof Element)l.appendChild(g);else{var T=this.controlService.controlCorners[l];["bottomleft","bottomright","righttop","rightbottom"].includes(l)?T.insertBefore(g,T.firstChild):T.appendChild(g)}}},{key:"checkUpdateOption",value:function(l,g){return g.some(function(T){return T in l})}}]),u}(Qu());(0,bn.Z)(v,"controlCount",0);function M(a){var p=L();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function L(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var Y=function(a){(0,dt.Z)(u,a);var p=M(u);function u(){var c;(0,wt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T0&&arguments[0]!==void 0?arguments[0]:"";return qi("button","l7-button-control ".concat(l))}},{key:"onAdd",value:function(){this.button=this.createButton(),this.isDisable=!1;var l=this.controlOption,g=l.title,T=l.btnText,B=l.btnIcon;return this.setBtnTitle(g),this.setBtnText(T),this.setBtnIcon(B),this.button}},{key:"onRemove",value:function(){this.button=this.buttonIcon=this.buttonText=void 0,this.isDisable=!1}},{key:"setOptions",value:function(l){var g=l.title,T=l.btnText,B=l.btnIcon;this.checkUpdateOption(l,["title"])&&this.setBtnTitle(g),this.checkUpdateOption(l,["btnIcon"])&&this.setBtnIcon(B),this.checkUpdateOption(l,["btnText"])&&this.setBtnText(T),Ia((0,gt.Z)(u.prototype),"setOptions",this).call(this,l)}},{key:"setBtnTitle",value:function(l){var g;(g=this.button)===null||g===void 0||g.setAttribute("title",l!=null?l:"")}},{key:"setBtnIcon",value:function(l){if(this.buttonIcon&&ta(this.buttonIcon),l){var g,T=(g=this.button)===null||g===void 0?void 0:g.firstChild;if(T){var B;(B=this.button)===null||B===void 0||B.insertBefore(l,T)}else{var Z;(Z=this.button)===null||Z===void 0||Z.appendChild(l)}this.buttonIcon=l}}},{key:"setBtnText",value:function(l){if(this.button)if(Ua(this.button,"l7-button-control--row"),Ua(this.button,"l7-button-control--column"),l){var g=this.buttonText;if(!g){var T;g=qi("div","l7-button-control__text"),(T=this.button)===null||T===void 0||T.appendChild(g),this.buttonText=g}g.innerText=l,ms(this.button,this.controlOption.vertical?"l7-button-control--column":"l7-button-control--row")}else!l&&this.buttonText&&(ta(this.buttonText),this.buttonText=void 0)}}]),u}(v);function Q(a){var p=$e();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function $e(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var qe=function(a){(0,dt.Z)(u,a);var p=Q(u);function u(c,l){var g;return(0,wt.Z)(this,u),g=p.call(this),(0,bn.Z)((0,is.Z)(g),"isShow",!1),(0,bn.Z)((0,is.Z)(g),"timeout",null),(0,bn.Z)((0,is.Z)(g),"show",function(){return g.isShow||!g.contentDOM.innerHTML||(g.resetPopperPosition(),Ua(g.popperDOM,"l7-popper-hide"),g.isShow=!0,g.option.unique&&u.conflictPopperList.forEach(function(T){T!==(0,is.Z)(g)&&T.isShow&&T.hide()}),g.emit("show"),window.addEventListener("pointerdown",g.onPopperUnClick)),(0,is.Z)(g)}),(0,bn.Z)((0,is.Z)(g),"hide",function(){return g.isShow&&(ms(g.popperDOM,"l7-popper-hide"),g.isShow=!1,g.emit("hide"),window.removeEventListener("pointerdown",g.onPopperUnClick)),(0,is.Z)(g)}),(0,bn.Z)((0,is.Z)(g),"setHideTimeout",function(){g.timeout||(g.timeout=window.setTimeout(function(){g.isShow&&(g.hide(),g.timeout=null)},300))}),(0,bn.Z)((0,is.Z)(g),"clearHideTimeout",function(){g.timeout&&(window.clearTimeout(g.timeout),g.timeout=null)}),(0,bn.Z)((0,is.Z)(g),"onBtnClick",function(){g.isShow?g.hide():g.show()}),(0,bn.Z)((0,is.Z)(g),"onPopperUnClick",function(T){ja(T.target,[".l7-button-control",".l7-popper-content"])||g.hide()}),(0,bn.Z)((0,is.Z)(g),"onBtnMouseLeave",function(){g.setHideTimeout()}),(0,bn.Z)((0,is.Z)(g),"onBtnMouseMove",function(){g.clearHideTimeout(),!g.isShow&&g.show()}),g.button=c,g.option=l,g.init(),l.unique&&u.conflictPopperList.push((0,is.Z)(g)),g}return(0,He.Z)(u,[{key:"buttonRect",get:function(){return this.button.getBoundingClientRect()}},{key:"getPopperDOM",value:function(){return this.popperDOM}},{key:"getIsShow",value:function(){return this.isShow}},{key:"getContent",value:function(){return this.content}},{key:"setContent",value:function(l){typeof l=="string"?this.contentDOM.innerHTML=l:l instanceof HTMLElement&&(ul(this.contentDOM),this.contentDOM.appendChild(l)),this.content=l}},{key:"init",value:function(){var l=this.option.trigger;this.popperDOM=this.createPopper(),l==="click"?this.button.addEventListener("click",this.onBtnClick):(this.button.addEventListener("mousemove",this.onBtnMouseMove),this.button.addEventListener("mouseleave",this.onBtnMouseLeave),this.popperDOM.addEventListener("mousemove",this.onBtnMouseMove),this.popperDOM.addEventListener("mouseleave",this.onBtnMouseLeave))}},{key:"destroy",value:function(){this.button.removeEventListener("click",this.onBtnClick),this.button.removeEventListener("mousemove",this.onBtnMouseMove),this.button.removeEventListener("mousemove",this.onBtnMouseLeave),this.popperDOM.removeEventListener("mousemove",this.onBtnMouseMove),this.popperDOM.removeEventListener("mouseleave",this.onBtnMouseLeave),ta(this.popperDOM)}},{key:"resetPopperPosition",value:function(){var l={},g=this.option,T=g.container,B=g.offset,Z=B===void 0?[0,0]:B,ee=g.placement,Pe=(0,qn.Z)(Z,2),Ze=Pe[0],St=Pe[1],Mt=this.button.getBoundingClientRect(),Tn=T.getBoundingClientRect(),kn=ca(Mt,Tn),vr=kn.left,wi=kn.right,zo=kn.top,$o=kn.bottom,Ks=!1,ra=!1;/^(left|right)/.test(ee)?(ee.includes("left")?l.right="".concat(Mt.width+wi,"px"):ee.includes("right")&&(l.left="".concat(Mt.width+vr,"px")),ee.includes("start")?l.top="".concat(zo,"px"):ee.includes("end")?l.bottom="".concat($o,"px"):(l.top="".concat(zo+Mt.height/2,"px"),ra=!0,l.transform="translate(".concat(Ze,"px, calc(").concat(St,"px - 50%))"))):/^(top|bottom)/.test(ee)&&(ee.includes("top")?l.bottom="".concat(Mt.height+$o,"px"):ee.includes("bottom")&&(l.top="".concat(Mt.height+zo,"px")),ee.includes("start")?l.left="".concat(vr,"px"):ee.includes("end")?l.right="".concat(wi,"px"):(l.left="".concat(vr+Mt.width/2,"px"),Ks=!0,l.transform="translate(calc(".concat(Ze,"px - 50%), ").concat(St,"px)"))),l.transform="translate(calc(".concat(Ze,"px - ").concat(Ks?"50%":"0%","), calc(").concat(St,"px - ").concat(ra?"50%":"0%",")");var La=ee.split("-");La.length&&ms(this.popperDOM,La.map(function(vl){return"l7-popper-".concat(vl)}).join(" ")),Ki(this.popperDOM,ns(l))}},{key:"createPopper",value:function(){var l=this.option,g=l.container,T=l.className,B=T===void 0?"":T,Z=l.content,ee=qi("div","l7-popper l7-popper-hide ".concat(B)),Pe=qi("div","l7-popper-content"),Ze=qi("div","l7-popper-arrow");return ee.appendChild(Pe),ee.appendChild(Ze),g.appendChild(ee),this.popperDOM=ee,this.contentDOM=Pe,Z&&this.setContent(Z),ee}}]),u}(gf.EventEmitter);(0,bn.Z)(qe,"conflictPopperList",[]);function pt(a){var p=un();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function un(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var Pn={topleft:"right-start",topcenter:"bottom",topright:"left-start",bottomleft:"right-end",bottomcenter:"top",bottomright:"left-end",lefttop:"bottom-start",leftcenter:"right",leftbottom:"top-start",righttop:"bottom-end",rightcenter:"left",rightbottom:"top-end"},Zn=function(a){(0,dt.Z)(u,a);var p=pt(u);function u(){return(0,wt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"getPopper",value:function(){return this.popper}},{key:"hide",value:function(){this.popper.hide(),Ia((0,gt.Z)(u.prototype),"hide",this).call(this)}},{key:"getDefault",value:function(l){var g,T=Ia((0,gt.Z)(u.prototype),"getDefault",this).call(this,l),B=(g=l==null?void 0:l.position)!==null&&g!==void 0?g:T.position;return(0,xe.Z)((0,xe.Z)({},Ia((0,gt.Z)(u.prototype),"getDefault",this).call(this,l)),{},{popperPlacement:B instanceof Element?"bottom":Pn[B],popperTrigger:"click"})}},{key:"onAdd",value:function(){var l=Ia((0,gt.Z)(u.prototype),"onAdd",this).call(this);return this.initPopper(),l}},{key:"onRemove",value:function(){this.popper.destroy()}},{key:"initPopper",value:function(){var l=this,g=this.controlOption,T=g.popperClassName,B=g.popperPlacement,Z=g.popperTrigger,ee=this.mapsService.getMapContainer();return this.popper=new qe(this.button,{className:T,placement:B,trigger:Z,container:ee,unique:!0}),this.popper.on("show",function(){l.emit("popperShow",l)}).on("hide",function(){l.emit("popperHide",l)}),this.popper}},{key:"setOptions",value:function(l){if(Ia((0,gt.Z)(u.prototype),"setOptions",this).call(this,l),this.checkUpdateOption(l,["popperPlacement","popperTrigger","popperClassName"])){var g=this.popper.getContent();this.popper.destroy(),this.initPopper(),this.popper.setContent(g)}}}]),u}(Y);function mi(a){var p=Hi();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function Hi(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var bo=function(a){return a.ActiveOptionClassName="l7-select-control-item-active",a.OptionValueAttrKey="data-option-value",a.OptionIndexAttrKey="data-option-index",a}(bo||{}),Mo=function(a){(0,dt.Z)(u,a);var p=mi(u);function u(){var c;(0,wt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T-1?c.selectValue.splice(Z,1):c.selectValue=[].concat((0,kr.Z)(c.selectValue),[B.value])}else c.selectValue=[B.value];c.setSelectValue(c.selectValue)}),c}return(0,He.Z)(u,[{key:"setOptions",value:function(l){Ia((0,gt.Z)(u.prototype),"setOptions",this).call(this,l);var g=l.options;g&&this.popper.setContent(this.getPopperContent(g))}},{key:"onAdd",value:function(){var l=Ia((0,gt.Z)(u.prototype),"onAdd",this).call(this),g=this.controlOption.defaultValue;return g&&(this.selectValue=this.transSelectValue(g)),this.popper.setContent(this.getPopperContent(this.controlOption.options)),l}},{key:"getSelectValue",value:function(){return this.getIsMultiple()?this.selectValue:this.selectValue[0]}},{key:"setSelectValue",value:function(l){var g=this,T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,B=this.transSelectValue(l);this.optionDOMList.forEach(function(Z){var ee=Z.getAttribute(bo.OptionValueAttrKey),Pe=g.getIsMultiple()?Z.querySelector("input[type=checkbox]"):void 0;B.includes(ee)?(ms(Z,bo.ActiveOptionClassName),Pe&&Na(Pe,!0)):(Ua(Z,bo.ActiveOptionClassName),Pe&&Na(Pe,!1))}),this.selectValue=B,T&&this.emit("selectChange",this.getIsMultiple()?B:B[0])}},{key:"getIsMultiple",value:function(){return!1}},{key:"getPopperContent",value:function(l){var g=this,T=this.isImageOptions(),B=qi("div",T?"l7-select-control--image":"l7-select-control--normal");this.getIsMultiple()&&ms(B,"l7-select-control--multiple");var Z=l.map(function(ee,Pe){var Ze=T?g.createImageOption(ee):g.createNormalOption(ee);return Ze.setAttribute(bo.OptionValueAttrKey,ee.value),Ze.setAttribute(bo.OptionIndexAttrKey,window.String(Pe)),Ze.addEventListener("click",g.onItemClick.bind(g,ee)),Ze});return B.append.apply(B,(0,kr.Z)(Z)),this.optionDOMList=Z,B}},{key:"createImageOption",value:function(l){var g=this.selectValue.includes(l.value),T=qi("div","l7-select-control-item ".concat(g?bo.ActiveOptionClassName:"")),B=qi("img");B.setAttribute("src",l.img),Hl(B),T.appendChild(B);var Z=qi("div","l7-select-control-item-row");this.getIsMultiple()&&T.appendChild(this.createCheckbox(g));var ee=qi("span");return ee.innerText=l.text,Z.appendChild(ee),T.appendChild(Z),T}},{key:"createCheckbox",value:function(l){var g=qi("input");return g.setAttribute("type","checkbox"),l&&Na(g,!0),g}},{key:"isImageOptions",value:function(){return!!this.controlOption.options.find(function(l){return l.img})}},{key:"transSelectValue",value:function(l){return Array.isArray(l)?l:[l]}}]),u}(Zn),Nr=function(p){var u=document.createElementNS("http://www.w3.org/2000/svg","svg");u.classList.add("l7-iconfont"),u.setAttribute("aria-hidden","true");var c=document.createElementNS("http://www.w3.org/2000/svg","use");return c.setAttributeNS("http://www.w3.org/1999/xlink","href","#".concat(p)),u.appendChild(c),u};function Go(a){var p=Fa();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function Fa(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var el=function(a){(0,dt.Z)(u,a);var p=Go(u);function u(){var c;(0,wt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(ee){throw ee},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var ee=u.next();return g=ee.done,ee},e:function(ee){T=!0,B=ee},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function Lu(a,p){if(a){if(typeof a=="string")return uc(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return uc(a,p)}}function uc(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);u0&&arguments[0]!==void 0?arguments[0]:document.documentElement,u=arguments.length>1?arguments[1]:void 0;return new Promise(function(c,l){var g=function B(){du.off("change",B),c()};du.on("change",g);var T=p[il.requestFullscreen](u);T instanceof Promise&&T.then(g).catch(l)})},exit:function(){return new Promise(function(p,u){if(!du.isFullscreen){p();return}var c=function g(){du.off("change",g),p()};du.on("change",c);var l=document[il.exitFullscreen]();l instanceof Promise&&l.then(c).catch(u)})},toggle:function(p,u){return du.isFullscreen?du.exit():du.request(p,u)},onchange:function(p){du.on("change",p)},onerror:function(p){du.on("error",p)},on:function(p,u){var c=Yu[p];c&&document.addEventListener(c,u,!1)},off:function(p,u){var c=Yu[p];c&&document.removeEventListener(c,u,!1)},raw:il};Object.defineProperties(du,{isFullscreen:{get:function(){return!!document[il.fullscreenElement]}},element:{enumerable:!0,get:function(){var p;return(p=document[il.fullscreenElement])!==null&&p!==void 0?p:void 0}},isEnabled:{enumerable:!0,get:function(){return!!document[il.fullscreenEnabled]}}}),il||(du={isEnabled:!1});var Ac=du;function sc(a){var p=Hu();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function Hu(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var Oh=function(a){(0,dt.Z)(u,a);var p=sc(u);function u(c){var l;return(0,wt.Z)(this,u),l=p.call(this,c),(0,bn.Z)((0,is.Z)(l),"isFullscreen",!1),(0,bn.Z)((0,is.Z)(l),"toggleFullscreen",(0,Pa.Z)(Qi().mark(function g(){return Qi().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:if(!Ac.isEnabled){B.next=3;break}return B.next=3,Ac.toggle(l.mapContainer);case 3:case"end":return B.stop()}},g)}))),(0,bn.Z)((0,is.Z)(l),"onClick",function(){l.toggleFullscreen()}),(0,bn.Z)((0,is.Z)(l),"onFullscreenChange",function(){l.isFullscreen=!!document.fullscreenElement;var g=l.controlOption,T=g.btnText,B=g.btnIcon,Z=g.title,ee=g.exitBtnText,Pe=g.exitBtnIcon,Ze=g.exitTitle;l.isFullscreen?(l.setBtnTitle(Ze),l.setBtnText(ee),l.setBtnIcon(Pe)):(l.setBtnTitle(Z),l.setBtnText(T),l.setBtnIcon(B)),l.emit("fullscreenChange",l.isFullscreen)}),Ac.isEnabled||console.warn("\u5F53\u524D\u6D4F\u89C8\u5668\u73AF\u5883\u4E0D\u652F\u6301\u5BF9\u5730\u56FE\u5168\u5C4F\u5316"),l}return(0,He.Z)(u,[{key:"setOptions",value:function(l){var g=l.exitBtnText,T=l.exitBtnIcon,B=l.exitTitle;this.isFullscreen&&(this.checkUpdateOption(l,["exitBtnIcon"])&&this.setBtnIcon(T),this.checkUpdateOption(l,["exitBtnText"])&&this.setBtnText(g),this.checkUpdateOption(l,["exitTitle"])&&this.setBtnTitle(B)),Ia((0,gt.Z)(u.prototype),"setOptions",this).call(this,l)}},{key:"onAdd",value:function(){var l=Ia((0,gt.Z)(u.prototype),"onAdd",this).call(this);return l.addEventListener("click",this.onClick),this.mapContainer=oa(this.scene.getSceneConfig().id),this.mapContainer.addEventListener("fullscreenchange",this.onFullscreenChange),l}},{key:"onRemove",value:function(){Ia((0,gt.Z)(u.prototype),"onRemove",this).call(this),this.mapContainer.removeEventListener("fullscreenchange",this.onFullscreenChange)}},{key:"getDefault",value:function(l){return(0,xe.Z)((0,xe.Z)({},Ia((0,gt.Z)(u.prototype),"getDefault",this).call(this,l)),{},{title:"\u5168\u5C4F",btnIcon:Nr("l7-icon-fullscreen"),exitTitle:"\u9000\u51FA\u5168\u5C4F",exitBtnIcon:Nr("l7-icon-exit-fullscreen")})}}]),u}(Y);function xf(a){var p=Dh();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function Dh(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var Jf=function(a){(0,dt.Z)(u,a);var p=xf(u);function u(c){var l;return(0,wt.Z)(this,u),l=p.call(this,c),(0,bn.Z)((0,is.Z)(l),"getGeoLocation",function(){return new Promise(function(g,T){window.navigator.geolocation.getCurrentPosition(function(B){var Z=B.coords,ee=Z!=null?Z:{},Pe=ee.longitude,Ze=ee.latitude;!isNaN(Pe)&&!isNaN(Ze)?g([Pe,Ze]):T()},function(B){T(B)})})}),(0,bn.Z)((0,is.Z)(l),"onClick",(0,Pa.Z)(Qi().mark(function g(){var T,B,Z;return Qi().wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:if(window.navigator.geolocation){Pe.next=2;break}return Pe.abrupt("return");case 2:return T=l.controlOption.transform,Pe.next=5,l.getGeoLocation();case 5:if(B=Pe.sent,Z=l.mapsService.getZoom(),Pe.t0=l.mapsService,Pe.t1=Z>15?Z:15,!T){Pe.next=15;break}return Pe.next=12,T(B);case 12:Pe.t2=Pe.sent,Pe.next=16;break;case 15:Pe.t2=B;case 16:Pe.t3=Pe.t2,Pe.t0.setZoomAndCenter.call(Pe.t0,Pe.t1,Pe.t3);case 18:case"end":return Pe.stop()}},g)}))),window.navigator.geolocation||console.warn("\u5F53\u524D\u6D4F\u89C8\u5668\u73AF\u5883\u4E0D\u652F\u6301\u83B7\u53D6\u5730\u7406\u5B9A\u4F4D"),l}return(0,He.Z)(u,[{key:"getDefault",value:function(l){return(0,xe.Z)((0,xe.Z)({},Ia((0,gt.Z)(u.prototype),"getDefault",this).call(this,l)),{},{title:"\u5B9A\u4F4D",btnIcon:Nr("l7-icon-reposition")})}},{key:"onAdd",value:function(){var l=Ia((0,gt.Z)(u.prototype),"onAdd",this).call(this);return l.addEventListener("click",this.onClick),l}}]),u}(Y);function Lf(a){var p=gm();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function gm(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var ef=function(a){(0,dt.Z)(u,a);var p=Lf(u);function u(){var c;(0,wt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T=10?10:T>=5?5:T>=3?3:T>=2?2:1,g*T}},{key:"updateMetric",value:function(l){var g=this.getRoundNum(l),T=g<1e3?g+" m":g/1e3+" km";this.updateScale(this.mScale,T,g/l)}},{key:"updateImperial",value:function(l){var g=l*3.2808399,T,B,Z;g>5280?(T=g/5280,B=this.getRoundNum(T),this.updateScale(this.iScale,B+" mi",B/T)):(Z=this.getRoundNum(g),this.updateScale(this.iScale,Z+" ft",Z/g))}}]),u}(v);function Ec(a){var p=gh();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function gh(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var Ed=function(a){(0,dt.Z)(u,a);var p=Ec(u);function u(){var c;(0,wt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;Tc.mapsService.getMinZoom()&&c.mapsService.zoomOut()}),(0,bn.Z)((0,is.Z)(c),"updateDisabled",function(){var B=c.mapsService;c.zoomInButton.removeAttribute("disabled"),c.zoomOutButton.removeAttribute("disabled"),(c.disabled||B.getZoom()<=B.getMinZoom())&&c.zoomOutButton.setAttribute("disabled","true"),c.controlOption.showZoom&&c.zoomNumDiv&&(c.zoomNumDiv.innerText=String(Math.floor(B.getZoom()))),(c.disabled||B.getZoom()>=B.getMaxZoom())&&c.zoomInButton.setAttribute("disabled","true")}),c}return(0,He.Z)(u,[{key:"getDefault",value:function(l){return(0,xe.Z)((0,xe.Z)({},Ia((0,gt.Z)(u.prototype),"getDefault",this).call(this,l)),{},{position:go.BOTTOMRIGHT,name:"zoom",zoomInText:Nr("l7-icon-enlarge"),zoomInTitle:"Zoom in",zoomOutText:Nr("l7-icon-narrow"),zoomOutTitle:"Zoom out",showZoom:!1})}},{key:"setOptions",value:function(l){Ia((0,gt.Z)(u.prototype),"setOptions",this).call(this,l),this.checkUpdateOption(l,["zoomInText","zoomInTitle","zoomOutText","zoomOutTitle","showZoom"])&&this.resetButtonGroup(this.container)}},{key:"onAdd",value:function(){var l=qi("div","l7-control-zoom");return this.resetButtonGroup(l),this.mapsService.on("zoomend",this.updateDisabled),this.mapsService.on("zoomchange",this.updateDisabled),l}},{key:"onRemove",value:function(){this.mapsService.off("zoomend",this.updateDisabled),this.mapsService.off("zoomchange",this.updateDisabled)}},{key:"disable",value:function(){return this.disabled=!0,this.updateDisabled(),this}},{key:"enable",value:function(){return this.disabled=!1,this.updateDisabled(),this}},{key:"resetButtonGroup",value:function(l){ul(l),this.zoomInButton=this.createButton(this.controlOption.zoomInText,this.controlOption.zoomInTitle,"l7-button-control",l,this.zoomIn),this.controlOption.showZoom&&(this.zoomNumDiv=this.createButton("0","","l7-button-control l7-control-zoom__number",l)),this.zoomOutButton=this.createButton(this.controlOption.zoomOutText,this.controlOption.zoomOutTitle,"l7-button-control",l,this.zoomOut),this.updateDisabled()}},{key:"createButton",value:function(l,g,T,B,Z){var ee=qi("button",T,B);return typeof l=="string"?ee.innerHTML=l:ee.append(l),ee.title=g,Z&&ee.addEventListener("click",Z),ee}}]),u}(v);function Mc(a){var p=Pp();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function Pp(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var _g=function(a){(0,dt.Z)(u,a);var p=Mc(u);function u(c){var l;(0,wt.Z)(this,u),l=p.call(this),(0,bn.Z)((0,is.Z)(l),"isShow",!0),(0,bn.Z)((0,is.Z)(l),"onMouseMove",function(T){var B,Z=l.mapsService.getMapContainer(),ee=(B=Z==null?void 0:Z.getBoundingClientRect())!==null&&B!==void 0?B:{},Pe=ee.left,Ze=Pe===void 0?0:Pe,St=ee.top,Mt=St===void 0?0:St;l.setPopupPosition(T.clientX-Ze,T.clientY-Mt)}),(0,bn.Z)((0,is.Z)(l),"updateLngLatPosition",function(){if(!(!l.mapsService||l.popupOption.followCursor)){var T=l.lngLat,B=T.lng,Z=T.lat,ee=l.mapsService.lngLatToContainer([B,Z]),Pe=ee.x,Ze=ee.y;l.setPopupPosition(Pe,Ze)}}),(0,bn.Z)((0,is.Z)(l),"onKeyDown",function(T){T.keyCode===27&&l.remove()}),(0,bn.Z)((0,is.Z)(l),"onCloseButtonClick",function(T){T.stopPropagation&&T.stopPropagation(),l.hide()}),(0,bn.Z)((0,is.Z)(l),"update",function(){var T=!!l.lngLat,B=l.popupOption,Z=B.className,ee=B.style,Pe=B.maxWidth,Ze=B.anchor,St=B.stopPropagation;if(!(!l.mapsService||!T||!l.content)){var Mt=l.mapsService.getMarkerContainer();if(!l.container&&Mt&&(l.container=qi("div","l7-popup ".concat(Z!=null?Z:""," ").concat(l.isShow?"":"l7-popup-hide"),Mt),ee&&l.container.setAttribute("style",ee),l.tip=qi("div","l7-popup-tip",l.container),l.container.appendChild(l.content),St&&["mousemove","mousedown","mouseup","click","dblclick"].forEach(function(vr){l.container.addEventListener(vr,function(wi){wi.stopPropagation()})}),l.container.style.whiteSpace="nowrap"),l.updateLngLatPosition(),ss(l.container,"".concat(Tt[Ze])),bt(l.container,Ze,"popup"),Pe){var Tn=l.container.getBoundingClientRect(),kn=Tn.width;kn>parseFloat(Pe)&&(l.container.style.width=Pe)}else l.container.style.removeProperty("width")}}),l.popupOption=(0,xe.Z)((0,xe.Z)({},l.getDefault(c!=null?c:{})),c);var g=l.popupOption.lngLat;return g&&(l.lngLat=g),l}return(0,He.Z)(u,[{key:"lngLat",get:function(){var l;return(l=this.popupOption.lngLat)!==null&&l!==void 0?l:{lng:0,lat:0}},set:function(l){this.popupOption.lngLat=l}},{key:"getIsShow",value:function(){return this.isShow}},{key:"addTo",value:function(l){this.mapsService=l.get(gr.IMapService),this.sceneService=l.get(gr.ISceneService),this.layerService=l.get(gr.ILayerService),this.mapsService.on("camerachange",this.update),this.mapsService.on("viewchange",this.update),this.scene=l,this.update(),this.updateCloseOnClick(),this.updateCloseOnEsc(),this.updateFollowCursor();var g=this.popupOption,T=g.html,B=g.text,Z=g.title;return T?this.setHTML(T):B&&this.setText(B),Z&&this.setTitle(Z),this.emit("open"),this}},{key:"remove",value:function(){if(this!==null&&this!==void 0&&this.isOpen())return this.content&&ta(this.content),this.container&&(ta(this.container),delete this.container),this.mapsService&&(this.mapsService.off("camerachange",this.update),this.mapsService.off("viewchange",this.update),this.updateCloseOnClick(!0),this.updateCloseOnEsc(!0),this.updateFollowCursor(!0),delete this.mapsService),this.emit("close"),this}},{key:"getOptions",value:function(){return this.popupOption}},{key:"setOptions",value:function(l){return this.show(),this.popupOption=(0,xe.Z)((0,xe.Z)({},this.popupOption),l),this.checkUpdateOption(l,["html","text","title","closeButton","closeButtonOffsets","maxWidth","anchor","stopPropagation","className","style","lngLat","offsets"])&&(this.container&&(ta(this.container),this.container=void 0),this.popupOption.html?this.setHTML(this.popupOption.html):this.popupOption.text&&this.setText(this.popupOption.text),this.popupOption.title&&this.setTitle(this.popupOption.title)),this.checkUpdateOption(l,["closeOnEsc"])&&this.updateCloseOnEsc(),this.checkUpdateOption(l,["closeOnClick"])&&this.updateCloseOnClick(),this.checkUpdateOption(l,["followCursor"])&&this.updateFollowCursor(),this.checkUpdateOption(l,["html"])&&l.html?this.setHTML(l.html):this.checkUpdateOption(l,["text"])&&l.text&&this.setText(l.text),this.checkUpdateOption(l,["lngLat"])&&l.lngLat&&this.setLnglat(l.lngLat),this}},{key:"open",value:function(){return this.addTo(this.scene),this}},{key:"close",value:function(){return this.remove(),this}},{key:"show",value:function(){if(!this.isShow)return this.container&&Ua(this.container,"l7-popup-hide"),this.isShow=!0,this.emit("show"),this}},{key:"hide",value:function(){if(this.isShow)return this.container&&ms(this.container,"l7-popup-hide"),this.isShow=!1,this.emit("hide"),this}},{key:"setHTML",value:function(l){return this.popupOption.html=l,this.setDOMContent(l)}},{key:"setText",value:function(l){return this.popupOption.text=l,this.setDOMContent(window.document.createTextNode(l))}},{key:"setTitle",value:function(l){this.show(),this.popupOption.title=l,l?(this.contentTitle||(this.contentTitle=qi("div","l7-popup-content__title"),this.content.firstChild?this.content.insertBefore(this.contentTitle,this.content.firstChild):this.content.append(this.contentTitle)),ul(this.contentTitle),Ml(this.contentTitle,l)):this.contentTitle&&(ta(this.contentTitle),this.contentTitle=void 0)}},{key:"panToPopup",value:function(){var l=this.lngLat,g=l.lng,T=l.lat;return this.popupOption.autoPan&&this.mapsService.panTo([g,T]),this}},{key:"setLngLat",value:function(l){return this.setLnglat(l)}},{key:"setLnglat",value:function(l){var g=this;return this.show(),this.lngLat=l,Array.isArray(l)&&(this.lngLat={lng:l[0],lat:l[1]}),this.mapsService&&(this.mapsService.off("camerachange",this.update),this.mapsService.off("viewchange",this.update),this.mapsService.on("camerachange",this.update),this.mapsService.on("viewchange",this.update)),this.update(),this.popupOption.autoPan&&setTimeout(function(){g.panToPopup()},0),this}},{key:"getLnglat",value:function(){return this.lngLat}},{key:"setMaxWidth",value:function(l){return this.popupOption.maxWidth=l,this.update(),this}},{key:"isOpen",value:function(){return!!this.mapsService}},{key:"getDefault",value:function(l){return{closeButton:!0,closeOnClick:!1,maxWidth:"240px",offsets:[0,0],anchor:Ot.BOTTOM,stopPropagation:!0,autoPan:!1,autoClose:!0,closeOnEsc:!1,followCursor:!1}}},{key:"setDOMContent",value:function(l){return this.show(),this.createContent(),Ml(this.contentPanel,l),this.update(),this}},{key:"updateCloseOnClick",value:function(l){var g=this,T=this.mapsService;T&&(T==null||T.off("click",this.onCloseButtonClick),this.popupOption.closeOnClick&&!l&&requestAnimationFrame(function(){T==null||T.on("click",g.onCloseButtonClick)}))}},{key:"updateCloseOnEsc",value:function(l){window.removeEventListener("keydown",this.onKeyDown),this.popupOption.closeOnEsc&&!l&&window.addEventListener("keydown",this.onKeyDown)}},{key:"updateFollowCursor",value:function(l){var g,T=(g=this.mapsService)===null||g===void 0?void 0:g.getContainer();T&&(T==null||T.removeEventListener("mousemove",this.onMouseMove),this.popupOption.followCursor&&!l&&(T==null||T.addEventListener("mousemove",this.onMouseMove)))}},{key:"createContent",value:function(){var l=this;if(this.content&&ta(this.content),this.contentTitle=void 0,this.content=qi("div","l7-popup-content",this.container),this.setTitle(this.popupOption.title),this.popupOption.closeButton){var g=Nr("l7-icon-guanbi");ms(g,"l7-popup-close-button"),this.content.appendChild(g),this.popupOption.closeButtonOffsets&&(g.style.right=this.popupOption.closeButtonOffsets[0]+"px",g.style.top=this.popupOption.closeButtonOffsets[1]+"px"),g.setAttribute("aria-label","Close popup"),g.addEventListener("click",function(T){l.hide()}),g.addEventListener("pointerup",function(T){T.stopPropagation()}),g.addEventListener("pointerdown",function(T){T.stopPropagation()}),this.closeButton=g}else this.closeButton=void 0;this.contentPanel=qi("div","l7-popup-content__panel",this.content)}},{key:"setPopupPosition",value:function(l,g){if(this.container){var T=this.popupOption.offsets;this.container.style.left=l+T[0]+"px",this.container.style.top=g-T[1]+"px"}}},{key:"checkUpdateOption",value:function(l,g){return g.some(function(T){return T in l})}}]),u}(gf.EventEmitter);function Tm(a){var p=i0();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function i0(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var xm=Ma.get,$0=function(a){(0,dt.Z)(u,a);var p=Tm(u);function u(){var c;(0,wt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T0&&p.version===d0["GAODE2.x"]){var c=u.coordCenter;typeof a[0].coordinates[0]=="number"?a.filter(function(l){return!l.originCoordinates}).map(function(l){l.version=d0["GAODE2.x"],l.originCoordinates=Gv(l.coordinates),l.coordinates=p.coordToAMap2RelativeCoordinates(l.coordinates,c)}):a.filter(function(l){return!l.originCoordinates}).map(function(l){l.version=d0["GAODE2.x"],l.originCoordinates=Gv(l.coordinates),l.coordinates=p.coordToAMap2RelativeCoordinates(l.coordinates,c)})}}function Mv(a,p){a.length>0&&p.version===d0.SIMPLE&&a.map(function(u){u.simpleCoordinate||(u.coordinates=z_(u.coordinates,p),u.simpleCoordinate=!0)})}function z_(a,p){if(typeof a[0]=="number")return p.simpleMapCoord.unproject(a);if(a[0]&&a[0][0]instanceof Array){var u=[];return a.map(function(l){var g=[];l.map(function(T){g.push(p.simpleMapCoord.unproject(T))}),u.push(g)}),u}else{var c=[];return a.map(function(l){c.push(p.simpleMapCoord.unproject(l))}),c}}function Ov(a,p){var u;if(!a.scale)return[];var c=(a==null||(u=a.scale)===null||u===void 0?void 0:u.scalers)||[],l=[];c.forEach(function(T){var B,G=T.field;(p.hasOwnProperty(G)||((B=a.scale)===null||B===void 0?void 0:B.type)==="variable")&&l.push(p[G])});var g=a.mapping?a.mapping(l):[];return g}function x1(a,p,u,c,l){var g=l==null?void 0:l.getLayerConfig(),T=g.arrow,B=T===void 0?{enable:!1}:T,G=p.map(function(te){var Me={id:te._id,coordinates:te.coordinates};if(a.filter(function(Mt){return Mt.scale!==void 0}).forEach(function(Mt){var In=Ov(Mt,te);Mt.needRemapping=!1,Mt.name==="color"&&(In=In.map(function(kn){return Kr(kn)})),Me[Mt.name]=Array.isArray(In)&&In.length===1?In[0]:In,Mt.name==="shape"&&(Me.shape=u.getIconFontKey(Me[Mt.name]))}),Me.shape==="line"&&B.enable){var Ge=Me.coordinates,St=s_(Ge[0],Ge[1]);Me.coordinates.splice(1,0,St,St)}return Me});return Ug(G,c,l),Mv(G,c),G}function oE(a,p,u,c,l,g){var T=new r0(l,g),B=c.getLayerStyleAttributes()||[],G=T.data.dataArray,te=G,Me=x1(B,te,p,u,a);return T.destroy(),Me}function I3(a){return a.map(function(p){return typeof p=="string"&&(p=[p,{}]),p})}function L3(a,p,u,c){var l=a.multiPassRenderer,g=a.getLayerConfig(),T=g.enableTAA;return T?l.add(c("taa")):l.add(c("render")),I3(p).forEach(function(B){var G=(0,Qn.Z)(B,2),te=G[0],Me=G[1];l.add(u(te),Me)}),l.add(u("copy")),l}var n4=function(){function a(p){(0,bt.Z)(this,a),this.layer=p}return(0,Ue.Z)(a,[{key:"pickRender",value:function(u){var c=this.layer.getContainer(),l=c.get(gr.ILayerService),g=this.layer;if(g.tileLayer)return g.tileLayer.pickRender(u);g.hooks.beforePickingEncode.call(),l.renderTileLayerMask(g),g.renderModels({ispick:!0}),g.hooks.afterPickingEncode.call()}},{key:"pick",value:function(u,c){var l=this.layer.getContainer(),g=l.get(gr.IPickingService);return u.type==="RasterLayer"?this.pickRasterLayer(u,c):(this.pickRender(c),g.pickFromPickingFBO(u,c))}},{key:"pickRasterLayer",value:function(u,c,l){var g=this.layer.getContainer(),T=g.get(gr.IPickingService),B=g.get(gr.IMapService),G=this.layer.getSource().extent,te=ml(c.lngLat,G),Me={x:c.x,y:c.y,type:c.type,lngLat:c.lngLat,target:c,rasterValue:null},Ge=l||u;if(te){var St=this.readRasterValue(u,G,B,c.x,c.y);return Me.rasterValue=St,T.triggerHoverOnLayer(Ge,Me),!0}else return Me.type=c.type==="mousemove"?"mouseout":"un"+c.type,T.triggerHoverOnLayer(Ge,(0,Ce.Z)((0,Ce.Z)({},Me),{},{type:"unpick"})),T.triggerHoverOnLayer(Ge,Me),!1}},{key:"readRasterValue",value:function(u,c,l,g,T){var B=u.getSource().data.dataArray[0],G=(0,Qn.Z)(c,4),te=G[0],Me=te===void 0?0:te,Ge=G[1],St=Ge===void 0?0:Ge,Mt=G[2],In=Mt===void 0?10:Mt,kn=G[3],Sr=kn===void 0?-10:kn,_i=l.lngLatToContainer([Me,St]),Vo=l.lngLatToContainer([In,Sr]),zo=Vo.x-_i.x,Ks=_i.y-Vo.y,ca=[(g-_i.x)/zo,(T-Vo.y)/Ks],Ia=B.width||1,al=B.height||1,jl=Math.floor(ca[0]*Ia),Wl=Math.floor(ca[1]*al),Wu=Math.max(0,Wl-1)*Ia+jl,Pu=B.data[Wu];return Pu}},{key:"selectFeature",value:function(u){var c=this.layer,l=(0,Qn.Z)(u,3),g=l[0],T=l[1],B=l[2];c.hooks.beforeSelect.call([g,T,B])}},{key:"highlightPickedFeature",value:function(u){var c=(0,Qn.Z)(u,3),l=c[0],g=c[1],T=c[2];this.layer.hooks.beforeHighlight.call([l,g,T])}},{key:"getFeatureById",value:function(u){return this.layer.getSource().getFeatureById(u)}}]),a}(),r4=function(){function a(p){(0,bt.Z)(this,a),this.layer=p;var u=this.layer.getContainer();this.rendererService=u.get(gr.IRendererService)}return(0,Ue.Z)(a,[{key:"getColorTexture",value:function(u,c){var l=this.getTextureKey(u,c);return this.key===l?this.colorTexture:(this.createColorTexture(u,c),this.key=l,this.colorTexture)}},{key:"createColorTexture",value:function(u,c){var l=this.rendererService.createTexture2D,g=this.getColorRampBar(u,c),T=l({data:new Uint8Array(g.data),width:g.width,height:g.height,flipY:!1});return this.colorTexture=T,T}},{key:"setColorTexture",value:function(u,c,l){this.key=this.getTextureKey(c,l),this.colorTexture=u}},{key:"destroy",value:function(){var u;(u=this.colorTexture)===null||u===void 0||u.destroy()}},{key:"getColorRampBar",value:function(u,c){switch(u.type){case"cat":return Gn(u);case"quantize":return yi(u);case"custom":return Ln(u,c);case"linear":return Qt(u,c);default:return Tr(u)}}},{key:"getTextureKey",value:function(u,c){var l;return"".concat(u.colors.join("_"),"_").concat(u==null||(l=u.positions)===null||l===void 0?void 0:l.join("_"),"_").concat(u.type,"_").concat(c==null?void 0:c.join("_"))}}]),a}(),i4=["passes"],yM=["moduleName","vertexShader","fragmentShader","inject","triangulation","segmentNumber"],P3,T2,$b;function sE(a,p){var u=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!u){if(Array.isArray(a)||(u=aE(a))||p&&a&&typeof a.length=="number"){u&&(a=u);var c=0,l=function(){};return{s:l,n:function(){return c>=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(te){throw te},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var te=u.next();return g=te.done,te},e:function(te){T=!0,B=te},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function aE(a,p){if(a){if(typeof a=="string")return k3(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return k3(a,p)}}function k3(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);u0&&arguments[0]!==void 0?arguments[0]:{};return(0,bt.Z)(this,u),c=p.call(this),(0,bn.Z)((0,as.Z)(c),"id","".concat(Is++)),(0,bn.Z)((0,as.Z)(c),"name","".concat(Is)),(0,bn.Z)((0,as.Z)(c),"visible",!0),(0,bn.Z)((0,as.Z)(c),"zIndex",0),(0,bn.Z)((0,as.Z)(c),"inited",!1),(0,bn.Z)((0,as.Z)(c),"layerModelNeedUpdate",!1),(0,bn.Z)((0,as.Z)(c),"pickedFeatureID",null),(0,bn.Z)((0,as.Z)(c),"selectedFeatureID",null),(0,bn.Z)((0,as.Z)(c),"styleNeedUpdate",!1),(0,bn.Z)((0,as.Z)(c),"forceRender",!1),(0,bn.Z)((0,as.Z)(c),"clusterZoom",0),(0,bn.Z)((0,as.Z)(c),"defaultSourceConfig",{data:[],options:{parser:{type:"json"}}}),(0,bn.Z)((0,as.Z)(c),"dataState",{dataSourceNeedUpdate:!1,dataMappingNeedUpdate:!1,filterNeedUpdate:!1,featureScaleNeedUpdate:!1,StyleAttrNeedUpdate:!1}),(0,bn.Z)((0,as.Z)(c),"hooks",{init:new bS,afterInit:new qw,beforeRender:new qw,beforeRenderData:new JC,afterRender:new ay,beforePickingEncode:new ay,afterPickingEncode:new ay,beforeHighlight:new ay(["pickedColor"]),afterHighlight:new ay,beforeSelect:new ay(["pickedColor"]),afterSelect:new ay,beforeDestroy:new ay,afterDestroy:new ay}),(0,bn.Z)((0,as.Z)(c),"models",[]),(0,bn.Z)((0,as.Z)(c),"startInit",!1),(0,bn.Z)((0,as.Z)(c),"layerChildren",[]),(0,bn.Z)((0,as.Z)(c),"masks",[]),Fd((0,as.Z)(c),"configService",$b,(0,as.Z)(c)),(0,bn.Z)((0,as.Z)(c),"animateOptions",{enable:!1}),(0,bn.Z)((0,as.Z)(c),"currentPickId",null),(0,bn.Z)((0,as.Z)(c),"encodeStyleAttribute",{}),(0,bn.Z)((0,as.Z)(c),"enableShaderEncodeStyles",[]),(0,bn.Z)((0,as.Z)(c),"enableDataEncodeStyles",[]),(0,bn.Z)((0,as.Z)(c),"enablg",[]),(0,bn.Z)((0,as.Z)(c),"pendingStyleAttributes",[]),(0,bn.Z)((0,as.Z)(c),"scaleOptions",{}),(0,bn.Z)((0,as.Z)(c),"animateStatus",!1),(0,bn.Z)((0,as.Z)(c),"isDestroyed",!1),(0,bn.Z)((0,as.Z)(c),"encodeDataLength",0),(0,bn.Z)((0,as.Z)(c),"sourceEvent",function(){c.dataState.dataSourceNeedUpdate=!0;var g=c.getLayerConfig();g&&g.autoFit&&c.fitBounds(g.fitBoundsOptions);var T=c.layerSource.getSourceCfg().autoRender;T&&c.reRender()}),c.name=l.name||c.id,c.zIndex=l.zIndex||0,c.rawConfig=l,c}return(0,Ue.Z)(u,[{key:"addMask",value:function(l){this.masks.push(l),this.enableMask()}},{key:"removeMask",value:function(l){var g=this.masks.indexOf(l);g>-1&&this.masks.splice(g,1)}},{key:"disableMask",value:function(){this.updateLayerConfig({enableMask:!1})}},{key:"enableMask",value:function(){this.updateLayerConfig({enableMask:!0})}},{key:"addMaskLayer",value:function(l){this.masks.push(l)}},{key:"removeMaskLayer",value:function(l){var g=this.masks.indexOf(l);g>-1&&this.masks.splice(g,1),l.destroy()}},{key:"getAttribute",value:function(l){return this.styleAttributeService.getLayerStyleAttribute(l)}},{key:"getLayerConfig",value:function(){return this.configService.getLayerConfig(this.id)}},{key:"updateLayerConfig",value:function(l){var g=this;if(Object.keys(l).map(function(B){B in g.rawConfig&&(g.rawConfig[B]=l[B])}),!this.startInit)this.needUpdateConfig=(0,Ce.Z)((0,Ce.Z)({},this.needUpdateConfig),l);else{var T=this.container.get(gr.SceneID);this.configService.setLayerConfig(T,this.id,(0,Ce.Z)((0,Ce.Z)((0,Ce.Z)({},this.configService.getLayerConfig(this.id)),this.needUpdateConfig),l)),this.needUpdateConfig={}}}},{key:"setContainer",value:function(l,g){this.container=l,this.sceneContainer=g}},{key:"getContainer",value:function(){return this.container}},{key:"addPlugin",value:function(l){return this.plugins.push(l),this}},{key:"init",value:function(){var c=(0,ka.Z)(Qi().mark(function g(){var T=this,B,G,te,Me,Ge,St,Mt;return Qi().wrap(function(kn){for(;;)switch(kn.prev=kn.next){case 0:B=this.container.get(gr.SceneID),this.startInit=!0,this.configService.setLayerConfig(B,this.id,this.rawConfig),this.layerType=this.rawConfig.layerType,this.iconService=this.container.get(gr.IIconService),this.fontService=this.container.get(gr.IFontService),this.rendererService=this.container.get(gr.IRendererService),this.layerService=this.container.get(gr.ILayerService),this.debugService=this.container.get(gr.IDebugService),this.interactionService=this.container.get(gr.IInteractionService),this.pickingService=this.container.get(gr.IPickingService),this.mapService=this.container.get(gr.IMapService),G=this.getLayerConfig(),te=G.enableMultiPassRenderer,Me=G.passes,te&&Me!==null&&Me!==void 0&&Me.length&&Me.length>0&&this.mapService.on("mapAfterFrameChange",function(){T.renderLayers()}),this.cameraService=this.container.get(gr.ICameraService),this.coordinateService=this.container.get(gr.ICoordinateSystemService),this.shaderModuleService=this.container.get(gr.IShaderModuleService),this.postProcessingPassFactory=this.container.get(gr.IFactoryPostProcessingPass),this.normalPassFactory=this.container.get(gr.IFactoryNormalPass),this.styleAttributeService=this.container.get(gr.IStyleAttributeService),te&&(this.multiPassRenderer=this.container.get(gr.IMultiPassRenderer),this.multiPassRenderer.setLayer(this)),this.pendingStyleAttributes.forEach(function(Sr){var _i=Sr.attributeName,Vo=Sr.attributeField,zo=Sr.attributeValues,Ks=Sr.updateOptions;T.styleAttributeService.updateStyleAttribute(_i,{scale:(0,Ce.Z)({field:Vo},T.splitValuesAndCallbackInAttribute(zo,Vo?void 0:T.getLayerConfig()[_i]))},Ks)}),this.pendingStyleAttributes=[],this.plugins=this.container.getAll(gr.ILayerPlugin),Ge=sE(this.plugins);try{for(Ge.s();!(St=Ge.n()).done;)Mt=St.value,Mt.apply(this,{rendererService:this.rendererService,mapService:this.mapService,styleAttributeService:this.styleAttributeService,normalPassFactory:this.normalPassFactory,postProcessingPassFactory:this.postProcessingPassFactory})}catch(Sr){Ge.e(Sr)}finally{Ge.f()}return this.layerPickService=new n4(this),this.textureService=new r4(this),this.log(fm.LayerInitStart),kn.next=31,this.hooks.init.promise();case 31:this.log(fm.LayerInitEnd),this.inited=!0,this.emit("inited",{target:this,type:"inited"}),this.emit("add",{target:this,type:"add"}),this.hooks.afterInit.call();case 36:case"end":return kn.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"log",value:function(l){var g,T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"init";if(!(this.tileLayer||this.isTileLayer)){var B="".concat(this.id,".").concat(T,".").concat(l),G={id:this.id,type:this.type};(g=this.debugService)===null||g===void 0||g.log(B,G)}}},{key:"updateModelData",value:function(l){l.attributes&&l.elements?this.models.map(function(g){g.updateAttributesAndElements(l.attributes,l.elements)}):console.warn("data error")}},{key:"createModelData",value:function(l,g){var T;if((T=this.layerModel)!==null&&T!==void 0&&T.createModelData)return this.layerModel.createModelData(g);var B=this.calculateEncodeData(l,g),G=this.triangulation;return B&&G?this.styleAttributeService.createAttributesAndIndices(B,G):{attributes:void 0,elements:void 0}}},{key:"setLayerPickService",value:function(l){this.layerPickService=l}},{key:"calculateEncodeData",value:function(l,g){return this.inited?oE(this,this.fontService,this.mapService,this.styleAttributeService,l,g):(console.warn("layer not inited!"),null)}},{key:"prepareBuildModel",value:function(){Object.keys(this.needUpdateConfig||{}).length!==0&&this.updateLayerConfig({});var l=this.getLayerConfig(),g=l.animateOption;g!=null&&g.enable&&(this.layerService.startAnimate(),this.animateStatus=!0)}},{key:"color",value:function(l,g,T){return this.updateStyleAttribute("color",l,g,T),this}},{key:"texture",value:function(l,g,T){return this.updateStyleAttribute("texture",l,g,T),this}},{key:"rotate",value:function(l,g,T){return this.updateStyleAttribute("rotate",l,g,T),this}},{key:"size",value:function(l,g,T){return this.updateStyleAttribute("size",l,g,T),this}},{key:"filter",value:function(l,g,T){var B=this.updateStyleAttribute("filter",l,g,T);return this.dataState.dataSourceNeedUpdate=B&&this.inited,this}},{key:"shape",value:function(l,g,T){this.shapeOption={field:l,values:g};var B=this.updateStyleAttribute("shape",l,g,T);return this.dataState.dataSourceNeedUpdate=B&&this.inited,this}},{key:"label",value:function(l,g,T){return this.pendingStyleAttributes.push({attributeName:"label",attributeField:l,attributeValues:g,updateOptions:T}),this}},{key:"animate",value:function(l){var g={};return Ey(l)?(g.enable=!0,g=(0,Ce.Z)((0,Ce.Z)({},g),l)):g.enable=l,this.updateLayerConfig({animateOption:g}),this}},{key:"source",value:function(l,g){return(l==null?void 0:l.type)==="source"?(this.setSource(l),this):(this.sourceOption={data:l,options:g},this.clusterZoom=0,this)}},{key:"setData",value:function(l,g){var T=this;return this.inited?(this.log(fm.SourceInitStart,Rl.UPDATE),this.layerSource.setData(l,g),this.log(fm.SourceInitEnd,Rl.UPDATE)):this.on("inited",function(){T.log(fm.SourceInitStart,Rl.UPDATE);var B=T.getSource();B?T.layerSource.setData(l,g):T.source(new r0(l,g)),T.layerSource.once("update",function(){T.log(fm.SourceInitEnd,Rl.UPDATE)})}),this}},{key:"style",value:function(l){var g=this,T=l.passes,B=(0,Vg.Z)(l,i4);T&&I3(T).forEach(function(te){var Me=g.multiPassRenderer.getPostProcessor().getPostProcessingPassByName(te[0]);Me&&Me.updateOptions(te[1])});var G=B;return Object.keys(B).forEach(function(te){var Me=B[te];Array.isArray(Me)&&Me.length===2&&!sD(Me[0])&&!sD(Me[1])&&(G[te]={field:Me[0],value:Me[1]})}),this.encodeStyle(G),this.updateLayerConfig(G),this}},{key:"encodeStyle",value:function(l){var g=this;Object.keys(l).forEach(function(T){[].concat((0,kr.Z)(g.enableShaderEncodeStyles),(0,kr.Z)(g.enableDataEncodeStyles)).includes(T)&&xM(l[T])&&(l[T].field||l[T].value)&&!M3(g.encodeStyleAttribute[T],l[T])?(g.encodeStyleAttribute[T]=l[T],g.updateStyleAttribute(T,l[T].field,l[T].value),g.inited&&(g.dataState.dataMappingNeedUpdate=!0)):g.encodeStyleAttribute[T]&&(delete g.encodeStyleAttribute[T],g.dataState.dataSourceNeedUpdate=!0)})}},{key:"scale",value:function(l,g){var T=(0,Ce.Z)({},this.scaleOptions);if(Ey(l)?this.scaleOptions=(0,Ce.Z)((0,Ce.Z)({},this.scaleOptions),l):this.scaleOptions[l]=g,this.styleAttributeService&&!M3(T,this.scaleOptions)){var B=Ey(l)?l:(0,bn.Z)({},l,g);this.styleAttributeService.updateScaleAttribute(B)}return this}},{key:"renderLayers",value:function(){this.rendering=!0,this.layerService.reRender(),this.rendering=!1}},{key:"render",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.tileLayer?(this.tileLayer.render(),this):(this.layerService.beforeRenderData(this),this.encodeDataLength<=0&&!this.forceRender?this:(this.renderModels(l),this))}},{key:"renderMultiPass",value:function(){var c=(0,ka.Z)(Qi().mark(function g(){return Qi().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:if(!(this.encodeDataLength<=0&&!this.forceRender)){B.next=2;break}return B.abrupt("return");case 2:if(!(this.multiPassRenderer&&this.multiPassRenderer.getRenderFlag())){B.next=7;break}return B.next=5,this.multiPassRenderer.render();case 5:B.next=8;break;case 7:this.multiPassRenderer?this.renderModels():this.renderModels();case 8:case"end":return B.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"active",value:function(l){var g={};return g.enableHighlight=Ey(l)?!0:l,Ey(l)?(g.enableHighlight=!0,l.color&&(g.highlightColor=l.color),l.mix&&(g.activeMix=l.mix)):g.enableHighlight=!!l,this.updateLayerConfig(g),this}},{key:"setActive",value:function(l,g){var T=this;if(Ey(l)){var B=l.x,G=B===void 0?0:B,te=l.y,Me=te===void 0?0:te;this.updateLayerConfig({highlightColor:Ey(g)?g.color:this.getLayerConfig().highlightColor,activeMix:Ey(g)?g.mix:this.getLayerConfig().activeMix}),this.pick({x:G,y:Me})}else this.updateLayerConfig({pickedFeatureID:l,highlightColor:Ey(g)?g.color:this.getLayerConfig().highlightColor,activeMix:Ey(g)?g.mix:this.getLayerConfig().activeMix}),this.hooks.beforeHighlight.call(Wi(l)).then(function(){setTimeout(function(){T.reRender()},1)})}},{key:"select",value:function(l){var g={};return g.enableSelect=Ey(l)?!0:l,Ey(l)?(g.enableSelect=!0,l.color&&(g.selectColor=l.color),l.mix&&(g.selectMix=l.mix)):g.enableSelect=!!l,this.updateLayerConfig(g),this}},{key:"setSelect",value:function(l,g){var T=this;if(Ey(l)){var B=l.x,G=B===void 0?0:B,te=l.y,Me=te===void 0?0:te;this.updateLayerConfig({selectColor:Ey(g)?g.color:this.getLayerConfig().selectColor,selectMix:Ey(g)?g.mix:this.getLayerConfig().selectMix}),this.pick({x:G,y:Me})}else this.updateLayerConfig({pickedFeatureID:l,selectColor:Ey(g)?g.color:this.getLayerConfig().selectColor,selectMix:Ey(g)?g.mix:this.getLayerConfig().selectMix}),this.hooks.beforeSelect.call(Wi(l)).then(function(){setTimeout(function(){T.reRender()},1)})}},{key:"setBlend",value:function(l){return this.updateLayerConfig({blend:l}),this.reRender(),this}},{key:"show",value:function(){return this.updateLayerConfig({visible:!0}),this.reRender(),this.emit("show"),this}},{key:"hide",value:function(){return this.updateLayerConfig({visible:!1}),this.reRender(),this.emit("hide"),this}},{key:"setIndex",value:function(l){return this.zIndex=l,this.layerService.updateLayerRenderList(),this.layerService.renderLayers(),this}},{key:"setCurrentPickId",value:function(l){this.currentPickId=l}},{key:"getCurrentPickId",value:function(){return this.currentPickId}},{key:"setCurrentSelectedId",value:function(l){this.selectedFeatureID=l}},{key:"getCurrentSelectedId",value:function(){return this.selectedFeatureID}},{key:"isVisible",value:function(){var l=this.mapService.getZoom(),g=this.getLayerConfig(),T=g.visible,B=g.minZoom,G=B===void 0?-1/0:B,te=g.maxZoom,Me=te===void 0?1/0:te;return!!T&&l>=G&&l0&&arguments[0]!==void 0?arguments[0]:!0;if(!this.isDestroyed){this.layerChildren.map(function(Ge){return Ge.destroy(!1)}),this.layerChildren=[];var te=this.getLayerConfig(),Me=te.maskfence;Me&&(this.masks.map(function(Ge){return Ge.destroy(!1)}),this.masks=[]),this.hooks.beforeDestroy.call(),this.layerSource.off("update",this.sourceEvent),(l=this.multiPassRenderer)===null||l===void 0||l.destroy(),this.textureService.destroy(),this.styleAttributeService.clearAllAttributes(),this.hooks.afterDestroy.call(),(g=this.layerModel)===null||g===void 0||g.clearModels(G),(T=this.tileLayer)===null||T===void 0||T.destroy(),this.models=[],(B=this.debugService)===null||B===void 0||B.removeLog(this.id),this.emit("remove",{target:this,type:"remove"}),this.emit("destroy",{target:this,type:"destroy"}),this.removeAllListeners(),this.isDestroyed=!0}}},{key:"clear",value:function(){this.styleAttributeService.clearAllAttributes()}},{key:"clearModels",value:function(){var l;this.models.forEach(function(g){return g.destroy()}),(l=this.layerModel)===null||l===void 0||l.clearModels(),this.models=[]}},{key:"isDirty",value:function(){return!!(this.styleAttributeService.getLayerStyleAttributes()||[]).filter(function(l){return l.needRescale||l.needRemapping||l.needRegenerateVertices}).length}},{key:"setSource",value:function(l){var g=this;if(this.layerSource&&this.layerSource.off("update",this.sourceEvent),this.layerSource=l,this.clusterZoom=0,this.inited&&this.layerSource.cluster){var T=this.mapService.getZoom();this.layerSource.updateClusterData(T)}this.layerSource.inited&&this.sourceEvent(),this.layerSource.on("update",function(B){var G=B.type;if(g.coordCenter===void 0){var te,Me=g.layerSource.center;g.coordCenter=Me,(te=g.mapService)!==null&&te!==void 0&&te.setCoordCenter&&g.mapService.setCoordCenter(Me)}if(G==="update"){if(g.tileLayer){g.tileLayer.reload();return}g.sourceEvent()}})}},{key:"getSource",value:function(){return this.layerSource}},{key:"getScaleOptions",value:function(){return this.scaleOptions}},{key:"setEncodedData",value:function(l){this.encodedData=l,this.encodeDataLength=l.length}},{key:"getEncodedData",value:function(){return this.encodedData}},{key:"getScale",value:function(l){return this.styleAttributeService.getLayerAttributeScale(l)}},{key:"getLegend",value:function(l){var g,T,B,G=this.styleAttributeService.getLayerStyleAttribute(l),te=(G==null||(g=G.scale)===null||g===void 0?void 0:g.scalers)||[];return{type:(T=te[0].option)===null||T===void 0?void 0:T.type,field:G==null||(B=G.scale)===null||B===void 0?void 0:B.field,items:this.getLegendItems(l)}}},{key:"getLegendItems",value:function(l){var g=this.styleAttributeService.getLayerAttributeScale(l);if(!g)return[];if(g.invertExtent){var T=g.range().map(function(te){return(0,bn.Z)({value:g.invertExtent(te)},l,te)});return T}else if(g.ticks){var B=g.ticks().map(function(te){return(0,bn.Z)({value:te},l,g(te))});return B}else if(g!=null&&g.domain){var G=g.domain().filter(function(te){return!CM(te)}).map(function(te){return(0,bn.Z)({value:te},l,g(te))});return G}return[]}},{key:"pick",value:function(l){var g=l.x,T=l.y;this.interactionService.triggerHover({x:g,y:T})}},{key:"boxSelect",value:function(l,g){this.pickingService.boxPickLayer(this,l,g)}},{key:"buildLayerModel",value:function(){var c=(0,ka.Z)(Qi().mark(function g(T){var B=this,G,te,Me,Ge,St,Mt,In,kn,Sr,_i,Vo,zo;return Qi().wrap(function(ca){for(;;)switch(ca.prev=ca.next){case 0:return G=T.moduleName,te=T.vertexShader,Me=T.fragmentShader,Ge=T.inject,St=T.triangulation,Mt=T.segmentNumber,In=(0,Vg.Z)(T,yM),this.shaderModuleService.registerModule(G,{vs:te,fs:Me,inject:Ge}),kn=this.shaderModuleService.getModule(G),Sr=kn.vs,_i=kn.fs,Vo=kn.uniforms,zo=this.rendererService.createModel,ca.abrupt("return",new Promise(function(Ia){var al=B.styleAttributeService.createAttributesAndIndices(B.encodedData,St,Mt),jl=al.attributes,Wl=al.elements,Wu=al.count,Pu=(0,Ce.Z)({attributes:jl,uniforms:Vo,fs:_i,vs:Sr,elements:Wl,blend:uy[Fh.normal]},In);Wu&&(Pu.count=Wu);var Vc=zo(Pu);Ia(Vc)}));case 5:case"end":return ca.stop()}},g,this)}));function l(g){return c.apply(this,arguments)}return l}()},{key:"createAttributes",value:function(l){var g=l.triangulation,T=this.styleAttributeService.createAttributes(this.encodedData,g),B=T.attributes;return B}},{key:"getTime",value:function(){return this.layerService.clock.getDelta()}},{key:"setAnimateStartTime",value:function(){this.animateStartTime=this.layerService.clock.getElapsedTime()}},{key:"stopAnimate",value:function(){this.animateStatus&&(this.layerService.stopAnimate(),this.animateStatus=!1,this.updateLayerConfig({animateOption:{enable:!1}}))}},{key:"getLayerAnimateTime",value:function(){return this.layerService.clock.getElapsedTime()-this.animateStartTime}},{key:"needPick",value:function(l){var g=this.getLayerConfig(),T=g.enableHighlight,B=T===void 0?!0:T,G=g.enableSelect,te=G===void 0?!0:G,Me=this.eventNames().indexOf(l)!==-1||this.eventNames().indexOf("un"+l)!==-1;return(l==="click"||l==="dblclick")&&te&&(Me=!0),l==="mousemove"&&(B||this.eventNames().indexOf("mouseenter")!==-1||this.eventNames().indexOf("unmousemove")!==-1||this.eventNames().indexOf("mouseout")!==-1)&&(Me=!0),this.isVisible()&&Me}},{key:"buildModels",value:function(){var c=(0,ka.Z)(Qi().mark(function g(){return Qi().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:throw new Error("Method not implemented.");case 1:case"end":return B.stop()}},g)}));function l(){return c.apply(this,arguments)}return l}()},{key:"rebuildModels",value:function(){var c=(0,ka.Z)(Qi().mark(function g(){return Qi().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.next=2,this.buildModels();case 2:case"end":return B.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"renderMulPass",value:function(){var c=(0,ka.Z)(Qi().mark(function g(T){return Qi().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,T.render();case 2:case"end":return G.stop()}},g)}));function l(g){return c.apply(this,arguments)}return l}()},{key:"renderModels",value:function(){var l=this,g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.encodeDataLength<=0&&!this.forceRender?(this.clearModels(),this):(this.hooks.beforeRender.call(),this.models.forEach(function(T){T.draw({uniforms:l.layerModel.getUninforms(),blend:l.layerModel.getBlend(),stencil:l.layerModel.getStencil(g)},(g==null?void 0:g.ispick)||!1)}),this.hooks.afterRender.call(),this)}},{key:"updateStyleAttribute",value:function(l,g,T,B){var G=this.configService.getAttributeConfig(this.id)||{};return M3(G[l],{field:g,values:T})?!1:(["color","size","texture","rotate","filter","label","shape"].indexOf(l)!==-1&&this.configService.setAttributeConfig(this.id,(0,bn.Z)({},l,{field:g,values:T})),this.startInit?this.styleAttributeService.updateStyleAttribute(l,{scale:(0,Ce.Z)({field:g},this.splitValuesAndCallbackInAttribute(T,this.getLayerConfig()[g]))},B):this.pendingStyleAttributes.push({attributeName:l,attributeField:g,attributeValues:T,updateOptions:B}),!0)}},{key:"getLayerAttributeConfig",value:function(){return this.configService.getAttributeConfig(this.id)}},{key:"getShaderPickStat",value:function(){return this.layerService.getShaderPickStat()}},{key:"setEarthTime",value:function(l){console.warn("empty fn")}},{key:"processData",value:function(l){return l}},{key:"getModelType",value:function(){throw new Error("Method not implemented.")}},{key:"getDefaultConfig",value:function(){return{}}},{key:"initLayerModels",value:function(){var c=(0,ka.Z)(Qi().mark(function g(){return Qi().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return this.models.forEach(function(G){return G.destroy()}),this.models=[],B.next=4,this.layerModel.initModels();case 4:this.models=B.sent;case 5:case"end":return B.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"reRender",value:function(){this.inited&&this.layerService.reRender()}},{key:"splitValuesAndCallbackInAttribute",value:function(l,g){return{values:bM(l)?void 0:l,callback:bM(l)?l:void 0}}}]),u}(yf.EventEmitter),$b=$h(T2.prototype,"configService",[P3],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T2);function Ta(a,p){return{enable:a,mask:255,func:{cmp:Gi.EQUAL,ref:p?1:0,mask:1}}}function $a(a){return a.maskOperation===Ko.OR?{enable:!0,mask:255,func:{cmp:Gi.ALWAYS,ref:1,mask:255},opFront:{fail:Gi.KEEP,zfail:Gi.REPLACE,zpass:Gi.REPLACE}}:{enable:!0,mask:255,func:{cmp:a.stencilType===nf.SINGLE||a.stencilIndex===0?Gi.ALWAYS:Gi.LESS,ref:a.stencilType===nf.SINGLE?1:a.stencilIndex===0?2:1,mask:255},opFront:{fail:Gi.KEEP,zfail:Gi.REPLACE,zpass:Gi.REPLACE}}}function hl(a){switch(a){case"rotation":return{name:"Rotation",type:Ld.Attribute,descriptor:{name:"a_Rotation",buffer:{usage:Gi.DYNAMIC_DRAW,data:[],type:Gi.FLOAT},size:1,update:function(u){var c=u.rotation,l=c===void 0?0:c;return Array.isArray(l)?[l[0]]:[l]}}};case"stroke":return{name:"stroke",type:Ld.Attribute,descriptor:{name:"a_Stroke",buffer:{usage:Gi.DYNAMIC_DRAW,data:[],type:Gi.FLOAT},size:4,update:function(u){var c=u.stroke,l=c===void 0?[1,1,1,1]:c;return l}}};case"opacity":return{name:"opacity",type:Ld.Attribute,descriptor:{name:"a_Opacity",buffer:{usage:Gi.STATIC_DRAW,data:[],type:Gi.FLOAT},size:1,update:function(u){var c=u.opacity,l=c===void 0?1:c;return[l]}}};case"extrusionBase":return{name:"extrusionBase",type:Ld.Attribute,descriptor:{name:"a_ExtrusionBase",buffer:{usage:Gi.STATIC_DRAW,data:[],type:Gi.FLOAT},size:1,update:function(u){var c=u.extrusionBase,l=c===void 0?0:c;return[l]}}};case"offsets":return{name:"offsets",type:Ld.Attribute,descriptor:{name:"a_Offsets",buffer:{usage:Gi.STATIC_DRAW,data:[],type:Gi.FLOAT},size:2,update:function(u){var c=u.offsets;return c}}};default:return}}var fl,gc,Jc,Su=(fl=dw(gr.IGlobalConfigService),gc=function(){function a(p){(0,bt.Z)(this,a),(0,bn.Z)(this,"preStyleAttribute",{}),(0,bn.Z)(this,"encodeStyleAttribute",{}),Fd(this,"configService",Jc,this),this.layer=p,this.rendererService=p.getContainer().get(gr.IRendererService),this.pickingService=p.getContainer().get(gr.IPickingService),this.shaderModuleService=p.getContainer().get(gr.IShaderModuleService),this.styleAttributeService=p.getContainer().get(gr.IStyleAttributeService),this.mapService=p.getContainer().get(gr.IMapService),this.iconService=p.getContainer().get(gr.IIconService),this.fontService=p.getContainer().get(gr.IFontService),this.cameraService=p.getContainer().get(gr.ICameraService),this.layerService=p.getContainer().get(gr.ILayerService),this.registerStyleAttribute(),this.registerBuiltinAttributes(),this.startModelAnimate();var u=this.rendererService.createTexture2D;this.createTexture2D=u}return(0,Ue.Z)(a,[{key:"getBlend",value:function(){var u=this.layer.getLayerConfig(),c=u.blend,l=c===void 0?"normal":c;return uy[Fh[l]]}},{key:"getStencil",value:function(u){var c=this.layer.getLayerConfig(),l=c.mask,g=l===void 0?!1:l,T=c.maskInside,B=T===void 0?!0:T,G=c.enableMask,te=c.maskOperation,Me=te===void 0?Ko.AND:te;if(this.layer.type==="MaskLayer")return $a({isStencil:!0,stencilType:nf.SINGLE});if(u.isStencil)return $a((0,Ce.Z)((0,Ce.Z)({},u),{},{maskOperation:Me}));var Ge=g||G&&this.layer.masks.length!==0||this.layer.tileMask!==void 0;return Ta(Ge,B)}},{key:"getDefaultStyle",value:function(){return{}}},{key:"getUninforms",value:function(){throw new Error("Method not implemented.")}},{key:"getAnimateUniforms",value:function(){return{}}},{key:"needUpdate",value:function(){var p=(0,ka.Z)(Qi().mark(function c(){return Qi().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.abrupt("return",!1);case 1:case"end":return g.stop()}},c)}));function u(){return p.apply(this,arguments)}return u}()},{key:"buildModels",value:function(){var p=(0,ka.Z)(Qi().mark(function c(){return Qi().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:throw new Error("Method not implemented.");case 1:case"end":return g.stop()}},c)}));function u(){return p.apply(this,arguments)}return u}()},{key:"initModels",value:function(){var p=(0,ka.Z)(Qi().mark(function c(){return Qi().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:throw new Error("Method not implemented.");case 1:case"end":return g.stop()}},c)}));function u(){return p.apply(this,arguments)}return u}()},{key:"clearModels",value:function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0}},{key:"getAttribute",value:function(){throw new Error("Method not implemented.")}},{key:"render",value:function(u){throw new Error("Method not implemented.")}},{key:"registerBuiltinAttributes",value:function(){throw new Error("Method not implemented.")}},{key:"animateOption2Array",value:function(u){return[u.enable?0:1,u.duration||4,u.interval||.2,u.trailLength||.1]}},{key:"startModelAnimate",value:function(){var u=this.layer.getLayerConfig(),c=u.animateOption;c.enable&&this.layer.setAnimateStartTime()}},{key:"getInject",value:function(){var u=this.layer.encodeStyleAttribute,c="",l={opacity:"float",stroke:"vec4",offsets:"vec2",textOffset:"vec2",rotation:"float",extrusionBase:"float"};this.layer.enableShaderEncodeStyles.forEach(function(T){u[T]&&(c+="#define USE_ATTRIBUTE_".concat(T.toUpperCase(),` 0.0; +`);var q0,d1=(q0={},(0,bn.Z)(q0,Nh.additive,{enable:!0,func:{srcRGB:Gi.ONE,dstRGB:Gi.ONE,srcAlpha:1,dstAlpha:1}}),(0,bn.Z)(q0,Nh.none,{enable:!1}),(0,bn.Z)(q0,Nh.normal,{enable:!0,func:{srcRGB:Gi.SRC_ALPHA,dstRGB:Gi.ONE_MINUS_SRC_ALPHA,srcAlpha:1,dstAlpha:1}}),(0,bn.Z)(q0,Nh.subtractive,{enable:!0,func:{srcRGB:Gi.ONE,dstRGB:Gi.ONE,srcAlpha:Gi.ZERO,dstAlpha:Gi.ONE_MINUS_SRC_COLOR},equation:{rgb:Gi.FUNC_SUBTRACT,alpha:Gi.FUNC_SUBTRACT}}),(0,bn.Z)(q0,Nh.max,{enable:!0,func:{srcRGB:Gi.ONE,dstRGB:Gi.ONE},equation:{rgb:Gi.MAX_EXT}}),(0,bn.Z)(q0,Nh.min,{enable:!0,func:{srcRGB:Gi.ONE,dstRGB:Gi.ONE},equation:{rgb:Gi.MIN_EXT}}),q0),d0=function(a){return a["GAODE1.x"]="GAODE1.x",a["GAODE2.x"]="GAODE2.x",a.MAPBOX="MAPBOX",a.DEFUALT="DEFUALTMAP",a.SIMPLE="SIMPLE",a.GLOBEL="GLOBEL",a}({}),Xv=Ma.cloneDeep;function r_(a,p){var u=[p[0]-a[0],p[1]-a[1]],c=nd(u),l=[a[0]+c[0]*1e-4,a[1]+c[1]*1e-4];return l}function Hg(a,p,u){if(a.length>0&&p.version===d0["GAODE2.x"]){var c=u.coordCenter;typeof a[0].coordinates[0]=="number"?a.filter(function(l){return!l.originCoordinates}).map(function(l){l.version=d0["GAODE2.x"],l.originCoordinates=Xv(l.coordinates),l.coordinates=p.coordToAMap2RelativeCoordinates(l.coordinates,c)}):a.filter(function(l){return!l.originCoordinates}).map(function(l){l.version=d0["GAODE2.x"],l.originCoordinates=Xv(l.coordinates),l.coordinates=p.coordToAMap2RelativeCoordinates(l.coordinates,c)})}}function Ov(a,p){a.length>0&&p.version===d0.SIMPLE&&a.map(function(u){u.simpleCoordinate||(u.coordinates=B_(u.coordinates,p),u.simpleCoordinate=!0)})}function B_(a,p){if(typeof a[0]=="number")return p.simpleMapCoord.unproject(a);if(a[0]&&a[0][0]instanceof Array){var u=[];return a.map(function(l){var g=[];l.map(function(T){g.push(p.simpleMapCoord.unproject(T))}),u.push(g)}),u}else{var c=[];return a.map(function(l){c.push(p.simpleMapCoord.unproject(l))}),c}}function Rv(a,p){var u;if(!a.scale)return[];var c=(a==null||(u=a.scale)===null||u===void 0?void 0:u.scalers)||[],l=[];c.forEach(function(T){var B,Z=T.field;(p.hasOwnProperty(Z)||((B=a.scale)===null||B===void 0?void 0:B.type)==="variable")&&l.push(p[Z])});var g=a.mapping?a.mapping(l):[];return g}function yy(a,p,u,c,l){var g=l==null?void 0:l.getLayerConfig(),T=g.arrow,B=T===void 0?{enable:!1}:T,Z=p.map(function(ee){var Pe={id:ee._id,coordinates:ee.coordinates};if(a.filter(function(Mt){return Mt.scale!==void 0}).forEach(function(Mt){var Tn=Rv(Mt,ee);Mt.needRemapping=!1,Mt.name==="color"&&(Tn=Tn.map(function(kn){return Kr(kn)})),Pe[Mt.name]=Array.isArray(Tn)&&Tn.length===1?Tn[0]:Tn,Mt.name==="shape"&&(Pe.shape=u.getIconFontKey(Pe[Mt.name]))}),Pe.shape==="line"&&B.enable){var Ze=Pe.coordinates,St=r_(Ze[0],Ze[1]);Pe.coordinates.splice(1,0,St,St)}return Pe});return Hg(Z,c,l),Ov(Z,c),Z}function vE(a,p,u,c,l,g){var T=new r0(l,g),B=c.getLayerStyleAttributes()||[],Z=T.data.dataArray,ee=Z,Pe=yy(B,ee,p,u,a);return T.destroy(),Pe}function A3(a){return a.map(function(p){return typeof p=="string"&&(p=[p,{}]),p})}function I3(a,p,u,c){var l=a.multiPassRenderer,g=a.getLayerConfig(),T=g.enableTAA;return T?l.add(c("taa")):l.add(c("render")),A3(p).forEach(function(B){var Z=(0,qn.Z)(B,2),ee=Z[0],Pe=Z[1];l.add(u(ee),Pe)}),l.add(u("copy")),l}var qL=function(){function a(p){(0,wt.Z)(this,a),this.layer=p}return(0,He.Z)(a,[{key:"pickRender",value:function(u){var c=this.layer.getContainer(),l=c.get(gr.ILayerService),g=this.layer;if(g.tileLayer)return g.tileLayer.pickRender(u);g.hooks.beforePickingEncode.call(),l.renderTileLayerMask(g),g.renderModels({ispick:!0}),g.hooks.afterPickingEncode.call()}},{key:"pick",value:function(u,c){var l=this.layer.getContainer(),g=l.get(gr.IPickingService);return u.type==="RasterLayer"?this.pickRasterLayer(u,c):(this.pickRender(c),g.pickFromPickingFBO(u,c))}},{key:"pickRasterLayer",value:function(u,c,l){var g=this.layer.getContainer(),T=g.get(gr.IPickingService),B=g.get(gr.IMapService),Z=this.layer.getSource().extent,ee=gl(c.lngLat,Z),Pe={x:c.x,y:c.y,type:c.type,lngLat:c.lngLat,target:c,rasterValue:null},Ze=l||u;if(ee){var St=this.readRasterValue(u,Z,B,c.x,c.y);return Pe.rasterValue=St,T.triggerHoverOnLayer(Ze,Pe),!0}else return Pe.type=c.type==="mousemove"?"mouseout":"un"+c.type,T.triggerHoverOnLayer(Ze,(0,xe.Z)((0,xe.Z)({},Pe),{},{type:"unpick"})),T.triggerHoverOnLayer(Ze,Pe),!1}},{key:"readRasterValue",value:function(u,c,l,g,T){var B=u.getSource().data.dataArray[0],Z=(0,qn.Z)(c,4),ee=Z[0],Pe=ee===void 0?0:ee,Ze=Z[1],St=Ze===void 0?0:Ze,Mt=Z[2],Tn=Mt===void 0?10:Mt,kn=Z[3],vr=kn===void 0?-10:kn,wi=l.lngLatToContainer([Pe,St]),zo=l.lngLatToContainer([Tn,vr]),$o=zo.x-wi.x,Ks=wi.y-zo.y,ra=[(g-wi.x)/$o,(T-zo.y)/Ks],La=B.width||1,vl=B.height||1,Wl=Math.floor(ra[0]*La),Jl=Math.floor(ra[1]*vl),ju=Math.max(0,Jl-1)*La+Wl,Ku=B.data[ju];return Ku}},{key:"selectFeature",value:function(u){var c=this.layer,l=(0,qn.Z)(u,3),g=l[0],T=l[1],B=l[2];c.hooks.beforeSelect.call([g,T,B])}},{key:"highlightPickedFeature",value:function(u){var c=(0,qn.Z)(u,3),l=c[0],g=c[1],T=c[2];this.layer.hooks.beforeHighlight.call([l,g,T])}},{key:"getFeatureById",value:function(u){return this.layer.getSource().getFeatureById(u)}}]),a}(),JL=function(){function a(p){(0,wt.Z)(this,a),this.layer=p;var u=this.layer.getContainer();this.rendererService=u.get(gr.IRendererService)}return(0,He.Z)(a,[{key:"getColorTexture",value:function(u,c){var l=this.getTextureKey(u,c);return this.key===l?this.colorTexture:(this.createColorTexture(u,c),this.key=l,this.colorTexture)}},{key:"createColorTexture",value:function(u,c){var l=this.rendererService.createTexture2D,g=this.getColorRampBar(u,c),T=l({data:new Uint8Array(g.data),width:g.width,height:g.height,flipY:!1});return this.colorTexture=T,T}},{key:"setColorTexture",value:function(u,c,l){this.key=this.getTextureKey(c,l),this.colorTexture=u}},{key:"destroy",value:function(){var u;(u=this.colorTexture)===null||u===void 0||u.destroy()}},{key:"getColorRampBar",value:function(u,c){switch(u.type){case"cat":return Gn(u);case"quantize":return yi(u);case"custom":return Ln(u,c);case"linear":return Qt(u,c);default:return Tr(u)}}},{key:"getTextureKey",value:function(u,c){var l;return"".concat(u.colors.join("_"),"_").concat(u==null||(l=u.positions)===null||l===void 0?void 0:l.join("_"),"_").concat(u.type,"_").concat(c==null?void 0:c.join("_"))}}]),a}(),QL=["passes"],gM=["moduleName","vertexShader","fragmentShader","inject","triangulation","segmentNumber"],L3,B2,Vb;function yE(a,p){var u=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!u){if(Array.isArray(a)||(u=_E(a))||p&&a&&typeof a.length=="number"){u&&(a=u);var c=0,l=function(){};return{s:l,n:function(){return c>=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(ee){throw ee},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var ee=u.next();return g=ee.done,ee},e:function(ee){T=!0,B=ee},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function _E(a,p){if(a){if(typeof a=="string")return P3(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return P3(a,p)}}function P3(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);u0&&arguments[0]!==void 0?arguments[0]:{};return(0,wt.Z)(this,u),c=p.call(this),(0,bn.Z)((0,is.Z)(c),"id","".concat(Is++)),(0,bn.Z)((0,is.Z)(c),"name","".concat(Is)),(0,bn.Z)((0,is.Z)(c),"visible",!0),(0,bn.Z)((0,is.Z)(c),"zIndex",0),(0,bn.Z)((0,is.Z)(c),"inited",!1),(0,bn.Z)((0,is.Z)(c),"layerModelNeedUpdate",!1),(0,bn.Z)((0,is.Z)(c),"pickedFeatureID",null),(0,bn.Z)((0,is.Z)(c),"selectedFeatureID",null),(0,bn.Z)((0,is.Z)(c),"styleNeedUpdate",!1),(0,bn.Z)((0,is.Z)(c),"forceRender",!1),(0,bn.Z)((0,is.Z)(c),"clusterZoom",0),(0,bn.Z)((0,is.Z)(c),"defaultSourceConfig",{data:[],options:{parser:{type:"json"}}}),(0,bn.Z)((0,is.Z)(c),"dataState",{dataSourceNeedUpdate:!1,dataMappingNeedUpdate:!1,filterNeedUpdate:!1,featureScaleNeedUpdate:!1,StyleAttrNeedUpdate:!1}),(0,bn.Z)((0,is.Z)(c),"hooks",{init:new kS,afterInit:new u2,beforeRender:new u2,beforeRenderData:new uw,afterRender:new u1,beforePickingEncode:new u1,afterPickingEncode:new u1,beforeHighlight:new u1(["pickedColor"]),afterHighlight:new u1,beforeSelect:new u1(["pickedColor"]),afterSelect:new u1,beforeDestroy:new u1,afterDestroy:new u1}),(0,bn.Z)((0,is.Z)(c),"models",[]),(0,bn.Z)((0,is.Z)(c),"startInit",!1),(0,bn.Z)((0,is.Z)(c),"layerChildren",[]),(0,bn.Z)((0,is.Z)(c),"masks",[]),Fd((0,is.Z)(c),"configService",Vb,(0,is.Z)(c)),(0,bn.Z)((0,is.Z)(c),"animateOptions",{enable:!1}),(0,bn.Z)((0,is.Z)(c),"currentPickId",null),(0,bn.Z)((0,is.Z)(c),"encodeStyleAttribute",{}),(0,bn.Z)((0,is.Z)(c),"enableShaderEncodeStyles",[]),(0,bn.Z)((0,is.Z)(c),"enableDataEncodeStyles",[]),(0,bn.Z)((0,is.Z)(c),"enablg",[]),(0,bn.Z)((0,is.Z)(c),"pendingStyleAttributes",[]),(0,bn.Z)((0,is.Z)(c),"scaleOptions",{}),(0,bn.Z)((0,is.Z)(c),"animateStatus",!1),(0,bn.Z)((0,is.Z)(c),"isDestroyed",!1),(0,bn.Z)((0,is.Z)(c),"encodeDataLength",0),(0,bn.Z)((0,is.Z)(c),"sourceEvent",function(){c.dataState.dataSourceNeedUpdate=!0;var g=c.getLayerConfig();g&&g.autoFit&&c.fitBounds(g.fitBoundsOptions);var T=c.layerSource.getSourceCfg().autoRender;T&&c.reRender()}),c.name=l.name||c.id,c.zIndex=l.zIndex||0,c.rawConfig=l,c}return(0,He.Z)(u,[{key:"addMask",value:function(l){this.masks.push(l),this.enableMask()}},{key:"removeMask",value:function(l){var g=this.masks.indexOf(l);g>-1&&this.masks.splice(g,1)}},{key:"disableMask",value:function(){this.updateLayerConfig({enableMask:!1})}},{key:"enableMask",value:function(){this.updateLayerConfig({enableMask:!0})}},{key:"addMaskLayer",value:function(l){this.masks.push(l)}},{key:"removeMaskLayer",value:function(l){var g=this.masks.indexOf(l);g>-1&&this.masks.splice(g,1),l.destroy()}},{key:"getAttribute",value:function(l){return this.styleAttributeService.getLayerStyleAttribute(l)}},{key:"getLayerConfig",value:function(){return this.configService.getLayerConfig(this.id)}},{key:"updateLayerConfig",value:function(l){var g=this;if(Object.keys(l).map(function(B){B in g.rawConfig&&(g.rawConfig[B]=l[B])}),!this.startInit)this.needUpdateConfig=(0,xe.Z)((0,xe.Z)({},this.needUpdateConfig),l);else{var T=this.container.get(gr.SceneID);this.configService.setLayerConfig(T,this.id,(0,xe.Z)((0,xe.Z)((0,xe.Z)({},this.configService.getLayerConfig(this.id)),this.needUpdateConfig),l)),this.needUpdateConfig={}}}},{key:"setContainer",value:function(l,g){this.container=l,this.sceneContainer=g}},{key:"getContainer",value:function(){return this.container}},{key:"addPlugin",value:function(l){return this.plugins.push(l),this}},{key:"init",value:function(){var c=(0,Pa.Z)(Qi().mark(function g(){var T=this,B,Z,ee,Pe,Ze,St,Mt;return Qi().wrap(function(kn){for(;;)switch(kn.prev=kn.next){case 0:B=this.container.get(gr.SceneID),this.startInit=!0,this.configService.setLayerConfig(B,this.id,this.rawConfig),this.layerType=this.rawConfig.layerType,this.iconService=this.container.get(gr.IIconService),this.fontService=this.container.get(gr.IFontService),this.rendererService=this.container.get(gr.IRendererService),this.layerService=this.container.get(gr.ILayerService),this.debugService=this.container.get(gr.IDebugService),this.interactionService=this.container.get(gr.IInteractionService),this.pickingService=this.container.get(gr.IPickingService),this.mapService=this.container.get(gr.IMapService),Z=this.getLayerConfig(),ee=Z.enableMultiPassRenderer,Pe=Z.passes,ee&&Pe!==null&&Pe!==void 0&&Pe.length&&Pe.length>0&&this.mapService.on("mapAfterFrameChange",function(){T.renderLayers()}),this.cameraService=this.container.get(gr.ICameraService),this.coordinateService=this.container.get(gr.ICoordinateSystemService),this.shaderModuleService=this.container.get(gr.IShaderModuleService),this.postProcessingPassFactory=this.container.get(gr.IFactoryPostProcessingPass),this.normalPassFactory=this.container.get(gr.IFactoryNormalPass),this.styleAttributeService=this.container.get(gr.IStyleAttributeService),ee&&(this.multiPassRenderer=this.container.get(gr.IMultiPassRenderer),this.multiPassRenderer.setLayer(this)),this.pendingStyleAttributes.forEach(function(vr){var wi=vr.attributeName,zo=vr.attributeField,$o=vr.attributeValues,Ks=vr.updateOptions;T.styleAttributeService.updateStyleAttribute(wi,{scale:(0,xe.Z)({field:zo},T.splitValuesAndCallbackInAttribute($o,zo?void 0:T.getLayerConfig()[wi]))},Ks)}),this.pendingStyleAttributes=[],this.plugins=this.container.getAll(gr.ILayerPlugin),Ze=yE(this.plugins);try{for(Ze.s();!(St=Ze.n()).done;)Mt=St.value,Mt.apply(this,{rendererService:this.rendererService,mapService:this.mapService,styleAttributeService:this.styleAttributeService,normalPassFactory:this.normalPassFactory,postProcessingPassFactory:this.postProcessingPassFactory})}catch(vr){Ze.e(vr)}finally{Ze.f()}return this.layerPickService=new qL(this),this.textureService=new JL(this),this.log(pm.LayerInitStart),kn.next=31,this.hooks.init.promise();case 31:this.log(pm.LayerInitEnd),this.inited=!0,this.emit("inited",{target:this,type:"inited"}),this.emit("add",{target:this,type:"add"}),this.hooks.afterInit.call();case 36:case"end":return kn.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"log",value:function(l){var g,T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"init";if(!(this.tileLayer||this.isTileLayer)){var B="".concat(this.id,".").concat(T,".").concat(l),Z={id:this.id,type:this.type};(g=this.debugService)===null||g===void 0||g.log(B,Z)}}},{key:"updateModelData",value:function(l){l.attributes&&l.elements?this.models.map(function(g){g.updateAttributesAndElements(l.attributes,l.elements)}):console.warn("data error")}},{key:"createModelData",value:function(l,g){var T;if((T=this.layerModel)!==null&&T!==void 0&&T.createModelData)return this.layerModel.createModelData(g);var B=this.calculateEncodeData(l,g),Z=this.triangulation;return B&&Z?this.styleAttributeService.createAttributesAndIndices(B,Z):{attributes:void 0,elements:void 0}}},{key:"setLayerPickService",value:function(l){this.layerPickService=l}},{key:"calculateEncodeData",value:function(l,g){return this.inited?vE(this,this.fontService,this.mapService,this.styleAttributeService,l,g):(console.warn("layer not inited!"),null)}},{key:"prepareBuildModel",value:function(){Object.keys(this.needUpdateConfig||{}).length!==0&&this.updateLayerConfig({});var l=this.getLayerConfig(),g=l.animateOption;g!=null&&g.enable&&(this.layerService.startAnimate(),this.animateStatus=!0)}},{key:"color",value:function(l,g,T){return this.updateStyleAttribute("color",l,g,T),this}},{key:"texture",value:function(l,g,T){return this.updateStyleAttribute("texture",l,g,T),this}},{key:"rotate",value:function(l,g,T){return this.updateStyleAttribute("rotate",l,g,T),this}},{key:"size",value:function(l,g,T){return this.updateStyleAttribute("size",l,g,T),this}},{key:"filter",value:function(l,g,T){var B=this.updateStyleAttribute("filter",l,g,T);return this.dataState.dataSourceNeedUpdate=B&&this.inited,this}},{key:"shape",value:function(l,g,T){this.shapeOption={field:l,values:g};var B=this.updateStyleAttribute("shape",l,g,T);return this.dataState.dataSourceNeedUpdate=B&&this.inited,this}},{key:"label",value:function(l,g,T){return this.pendingStyleAttributes.push({attributeName:"label",attributeField:l,attributeValues:g,updateOptions:T}),this}},{key:"animate",value:function(l){var g={};return T1(l)?(g.enable=!0,g=(0,xe.Z)((0,xe.Z)({},g),l)):g.enable=l,this.updateLayerConfig({animateOption:g}),this}},{key:"source",value:function(l,g){return(l==null?void 0:l.type)==="source"?(this.setSource(l),this):(this.sourceOption={data:l,options:g},this.clusterZoom=0,this)}},{key:"setData",value:function(l,g){var T=this;return this.inited?(this.log(pm.SourceInitStart,Rl.UPDATE),this.layerSource.setData(l,g),this.log(pm.SourceInitEnd,Rl.UPDATE)):this.on("inited",function(){T.log(pm.SourceInitStart,Rl.UPDATE);var B=T.getSource();B?T.layerSource.setData(l,g):T.source(new r0(l,g)),T.layerSource.once("update",function(){T.log(pm.SourceInitEnd,Rl.UPDATE)})}),this}},{key:"style",value:function(l){var g=this,T=l.passes,B=(0,Ug.Z)(l,QL);T&&A3(T).forEach(function(ee){var Pe=g.multiPassRenderer.getPostProcessor().getPostProcessingPassByName(ee[0]);Pe&&Pe.updateOptions(ee[1])});var Z=B;return Object.keys(B).forEach(function(ee){var Pe=B[ee];Array.isArray(Pe)&&Pe.length===2&&!lD(Pe[0])&&!lD(Pe[1])&&(Z[ee]={field:Pe[0],value:Pe[1]})}),this.encodeStyle(Z),this.updateLayerConfig(Z),this}},{key:"encodeStyle",value:function(l){var g=this;Object.keys(l).forEach(function(T){[].concat((0,kr.Z)(g.enableShaderEncodeStyles),(0,kr.Z)(g.enableDataEncodeStyles)).includes(T)&&yM(l[T])&&(l[T].field||l[T].value)&&!k3(g.encodeStyleAttribute[T],l[T])?(g.encodeStyleAttribute[T]=l[T],g.updateStyleAttribute(T,l[T].field,l[T].value),g.inited&&(g.dataState.dataMappingNeedUpdate=!0)):g.encodeStyleAttribute[T]&&(delete g.encodeStyleAttribute[T],g.dataState.dataSourceNeedUpdate=!0)})}},{key:"scale",value:function(l,g){var T=(0,xe.Z)({},this.scaleOptions);if(T1(l)?this.scaleOptions=(0,xe.Z)((0,xe.Z)({},this.scaleOptions),l):this.scaleOptions[l]=g,this.styleAttributeService&&!k3(T,this.scaleOptions)){var B=T1(l)?l:(0,bn.Z)({},l,g);this.styleAttributeService.updateScaleAttribute(B)}return this}},{key:"renderLayers",value:function(){this.rendering=!0,this.layerService.reRender(),this.rendering=!1}},{key:"render",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.tileLayer?(this.tileLayer.render(),this):(this.layerService.beforeRenderData(this),this.encodeDataLength<=0&&!this.forceRender?this:(this.renderModels(l),this))}},{key:"renderMultiPass",value:function(){var c=(0,Pa.Z)(Qi().mark(function g(){return Qi().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:if(!(this.encodeDataLength<=0&&!this.forceRender)){B.next=2;break}return B.abrupt("return");case 2:if(!(this.multiPassRenderer&&this.multiPassRenderer.getRenderFlag())){B.next=7;break}return B.next=5,this.multiPassRenderer.render();case 5:B.next=8;break;case 7:this.multiPassRenderer?this.renderModels():this.renderModels();case 8:case"end":return B.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"active",value:function(l){var g={};return g.enableHighlight=T1(l)?!0:l,T1(l)?(g.enableHighlight=!0,l.color&&(g.highlightColor=l.color),l.mix&&(g.activeMix=l.mix)):g.enableHighlight=!!l,this.updateLayerConfig(g),this}},{key:"setActive",value:function(l,g){var T=this;if(T1(l)){var B=l.x,Z=B===void 0?0:B,ee=l.y,Pe=ee===void 0?0:ee;this.updateLayerConfig({highlightColor:T1(g)?g.color:this.getLayerConfig().highlightColor,activeMix:T1(g)?g.mix:this.getLayerConfig().activeMix}),this.pick({x:Z,y:Pe})}else this.updateLayerConfig({pickedFeatureID:l,highlightColor:T1(g)?g.color:this.getLayerConfig().highlightColor,activeMix:T1(g)?g.mix:this.getLayerConfig().activeMix}),this.hooks.beforeHighlight.call(ji(l)).then(function(){setTimeout(function(){T.reRender()},1)})}},{key:"select",value:function(l){var g={};return g.enableSelect=T1(l)?!0:l,T1(l)?(g.enableSelect=!0,l.color&&(g.selectColor=l.color),l.mix&&(g.selectMix=l.mix)):g.enableSelect=!!l,this.updateLayerConfig(g),this}},{key:"setSelect",value:function(l,g){var T=this;if(T1(l)){var B=l.x,Z=B===void 0?0:B,ee=l.y,Pe=ee===void 0?0:ee;this.updateLayerConfig({selectColor:T1(g)?g.color:this.getLayerConfig().selectColor,selectMix:T1(g)?g.mix:this.getLayerConfig().selectMix}),this.pick({x:Z,y:Pe})}else this.updateLayerConfig({pickedFeatureID:l,selectColor:T1(g)?g.color:this.getLayerConfig().selectColor,selectMix:T1(g)?g.mix:this.getLayerConfig().selectMix}),this.hooks.beforeSelect.call(ji(l)).then(function(){setTimeout(function(){T.reRender()},1)})}},{key:"setBlend",value:function(l){return this.updateLayerConfig({blend:l}),this.reRender(),this}},{key:"show",value:function(){return this.updateLayerConfig({visible:!0}),this.reRender(),this.emit("show"),this}},{key:"hide",value:function(){return this.updateLayerConfig({visible:!1}),this.reRender(),this.emit("hide"),this}},{key:"setIndex",value:function(l){return this.zIndex=l,this.layerService.updateLayerRenderList(),this.layerService.renderLayers(),this}},{key:"setCurrentPickId",value:function(l){this.currentPickId=l}},{key:"getCurrentPickId",value:function(){return this.currentPickId}},{key:"setCurrentSelectedId",value:function(l){this.selectedFeatureID=l}},{key:"getCurrentSelectedId",value:function(){return this.selectedFeatureID}},{key:"isVisible",value:function(){var l=this.mapService.getZoom(),g=this.getLayerConfig(),T=g.visible,B=g.minZoom,Z=B===void 0?-1/0:B,ee=g.maxZoom,Pe=ee===void 0?1/0:ee;return!!T&&l>=Z&&l0&&arguments[0]!==void 0?arguments[0]:!0;if(!this.isDestroyed){this.layerChildren.map(function(Ze){return Ze.destroy(!1)}),this.layerChildren=[];var ee=this.getLayerConfig(),Pe=ee.maskfence;Pe&&(this.masks.map(function(Ze){return Ze.destroy(!1)}),this.masks=[]),this.hooks.beforeDestroy.call(),this.layerSource.off("update",this.sourceEvent),(l=this.multiPassRenderer)===null||l===void 0||l.destroy(),this.textureService.destroy(),this.styleAttributeService.clearAllAttributes(),this.hooks.afterDestroy.call(),(g=this.layerModel)===null||g===void 0||g.clearModels(Z),(T=this.tileLayer)===null||T===void 0||T.destroy(),this.models=[],(B=this.debugService)===null||B===void 0||B.removeLog(this.id),this.emit("remove",{target:this,type:"remove"}),this.emit("destroy",{target:this,type:"destroy"}),this.removeAllListeners(),this.isDestroyed=!0}}},{key:"clear",value:function(){this.styleAttributeService.clearAllAttributes()}},{key:"clearModels",value:function(){var l;this.models.forEach(function(g){return g.destroy()}),(l=this.layerModel)===null||l===void 0||l.clearModels(),this.models=[]}},{key:"isDirty",value:function(){return!!(this.styleAttributeService.getLayerStyleAttributes()||[]).filter(function(l){return l.needRescale||l.needRemapping||l.needRegenerateVertices}).length}},{key:"setSource",value:function(l){var g=this;if(this.layerSource&&this.layerSource.off("update",this.sourceEvent),this.layerSource=l,this.clusterZoom=0,this.inited&&this.layerSource.cluster){var T=this.mapService.getZoom();this.layerSource.updateClusterData(T)}this.layerSource.inited&&this.sourceEvent(),this.layerSource.on("update",function(B){var Z=B.type;if(g.coordCenter===void 0){var ee,Pe=g.layerSource.center;g.coordCenter=Pe,(ee=g.mapService)!==null&&ee!==void 0&&ee.setCoordCenter&&g.mapService.setCoordCenter(Pe)}if(Z==="update"){if(g.tileLayer){g.tileLayer.reload();return}g.sourceEvent()}})}},{key:"getSource",value:function(){return this.layerSource}},{key:"getScaleOptions",value:function(){return this.scaleOptions}},{key:"setEncodedData",value:function(l){this.encodedData=l,this.encodeDataLength=l.length}},{key:"getEncodedData",value:function(){return this.encodedData}},{key:"getScale",value:function(l){return this.styleAttributeService.getLayerAttributeScale(l)}},{key:"getLegend",value:function(l){var g,T,B,Z=this.styleAttributeService.getLayerStyleAttribute(l),ee=(Z==null||(g=Z.scale)===null||g===void 0?void 0:g.scalers)||[];return{type:(T=ee[0].option)===null||T===void 0?void 0:T.type,field:Z==null||(B=Z.scale)===null||B===void 0?void 0:B.field,items:this.getLegendItems(l)}}},{key:"getLegendItems",value:function(l){var g=this.styleAttributeService.getLayerAttributeScale(l);if(!g)return[];if(g.invertExtent){var T=g.range().map(function(ee){return(0,bn.Z)({value:g.invertExtent(ee)},l,ee)});return T}else if(g.ticks){var B=g.ticks().map(function(ee){return(0,bn.Z)({value:ee},l,g(ee))});return B}else if(g!=null&&g.domain){var Z=g.domain().filter(function(ee){return!_M(ee)}).map(function(ee){return(0,bn.Z)({value:ee},l,g(ee))});return Z}return[]}},{key:"pick",value:function(l){var g=l.x,T=l.y;this.interactionService.triggerHover({x:g,y:T})}},{key:"boxSelect",value:function(l,g){this.pickingService.boxPickLayer(this,l,g)}},{key:"buildLayerModel",value:function(){var c=(0,Pa.Z)(Qi().mark(function g(T){var B=this,Z,ee,Pe,Ze,St,Mt,Tn,kn,vr,wi,zo,$o;return Qi().wrap(function(ra){for(;;)switch(ra.prev=ra.next){case 0:return Z=T.moduleName,ee=T.vertexShader,Pe=T.fragmentShader,Ze=T.inject,St=T.triangulation,Mt=T.segmentNumber,Tn=(0,Ug.Z)(T,gM),this.shaderModuleService.registerModule(Z,{vs:ee,fs:Pe,inject:Ze}),kn=this.shaderModuleService.getModule(Z),vr=kn.vs,wi=kn.fs,zo=kn.uniforms,$o=this.rendererService.createModel,ra.abrupt("return",new Promise(function(La){var vl=B.styleAttributeService.createAttributesAndIndices(B.encodedData,St,Mt),Wl=vl.attributes,Jl=vl.elements,ju=vl.count,Ku=(0,xe.Z)({attributes:Wl,uniforms:zo,fs:wi,vs:vr,elements:Jl,blend:d1[Nh.normal]},Tn);ju&&(Ku.count=ju);var Jc=$o(Ku);La(Jc)}));case 5:case"end":return ra.stop()}},g,this)}));function l(g){return c.apply(this,arguments)}return l}()},{key:"createAttributes",value:function(l){var g=l.triangulation,T=this.styleAttributeService.createAttributes(this.encodedData,g),B=T.attributes;return B}},{key:"getTime",value:function(){return this.layerService.clock.getDelta()}},{key:"setAnimateStartTime",value:function(){this.animateStartTime=this.layerService.clock.getElapsedTime()}},{key:"stopAnimate",value:function(){this.animateStatus&&(this.layerService.stopAnimate(),this.animateStatus=!1,this.updateLayerConfig({animateOption:{enable:!1}}))}},{key:"getLayerAnimateTime",value:function(){return this.layerService.clock.getElapsedTime()-this.animateStartTime}},{key:"needPick",value:function(l){var g=this.getLayerConfig(),T=g.enableHighlight,B=T===void 0?!0:T,Z=g.enableSelect,ee=Z===void 0?!0:Z,Pe=this.eventNames().indexOf(l)!==-1||this.eventNames().indexOf("un"+l)!==-1;return(l==="click"||l==="dblclick")&&ee&&(Pe=!0),l==="mousemove"&&(B||this.eventNames().indexOf("mouseenter")!==-1||this.eventNames().indexOf("unmousemove")!==-1||this.eventNames().indexOf("mouseout")!==-1)&&(Pe=!0),this.isVisible()&&Pe}},{key:"buildModels",value:function(){var c=(0,Pa.Z)(Qi().mark(function g(){return Qi().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:throw new Error("Method not implemented.");case 1:case"end":return B.stop()}},g)}));function l(){return c.apply(this,arguments)}return l}()},{key:"rebuildModels",value:function(){var c=(0,Pa.Z)(Qi().mark(function g(){return Qi().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.next=2,this.buildModels();case 2:case"end":return B.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"renderMulPass",value:function(){var c=(0,Pa.Z)(Qi().mark(function g(T){return Qi().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return Z.next=2,T.render();case 2:case"end":return Z.stop()}},g)}));function l(g){return c.apply(this,arguments)}return l}()},{key:"renderModels",value:function(){var l=this,g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.encodeDataLength<=0&&!this.forceRender?(this.clearModels(),this):(this.hooks.beforeRender.call(),this.models.forEach(function(T){T.draw({uniforms:l.layerModel.getUninforms(),blend:l.layerModel.getBlend(),stencil:l.layerModel.getStencil(g)},(g==null?void 0:g.ispick)||!1)}),this.hooks.afterRender.call(),this)}},{key:"updateStyleAttribute",value:function(l,g,T,B){var Z=this.configService.getAttributeConfig(this.id)||{};return k3(Z[l],{field:g,values:T})?!1:(["color","size","texture","rotate","filter","label","shape"].indexOf(l)!==-1&&this.configService.setAttributeConfig(this.id,(0,bn.Z)({},l,{field:g,values:T})),this.startInit?this.styleAttributeService.updateStyleAttribute(l,{scale:(0,xe.Z)({field:g},this.splitValuesAndCallbackInAttribute(T,this.getLayerConfig()[g]))},B):this.pendingStyleAttributes.push({attributeName:l,attributeField:g,attributeValues:T,updateOptions:B}),!0)}},{key:"getLayerAttributeConfig",value:function(){return this.configService.getAttributeConfig(this.id)}},{key:"getShaderPickStat",value:function(){return this.layerService.getShaderPickStat()}},{key:"setEarthTime",value:function(l){console.warn("empty fn")}},{key:"processData",value:function(l){return l}},{key:"getModelType",value:function(){throw new Error("Method not implemented.")}},{key:"getDefaultConfig",value:function(){return{}}},{key:"initLayerModels",value:function(){var c=(0,Pa.Z)(Qi().mark(function g(){return Qi().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return this.models.forEach(function(Z){return Z.destroy()}),this.models=[],B.next=4,this.layerModel.initModels();case 4:this.models=B.sent;case 5:case"end":return B.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"reRender",value:function(){this.inited&&this.layerService.reRender()}},{key:"splitValuesAndCallbackInAttribute",value:function(l,g){return{values:vM(l)?void 0:l,callback:vM(l)?l:void 0}}}]),u}(gf.EventEmitter),Vb=$h(B2.prototype,"configService",[L3],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),B2);function Ta(a,p){return{enable:a,mask:255,func:{cmp:Gi.EQUAL,ref:p?1:0,mask:1}}}function $a(a){return a.maskOperation===Ko.OR?{enable:!0,mask:255,func:{cmp:Gi.ALWAYS,ref:1,mask:255},opFront:{fail:Gi.KEEP,zfail:Gi.REPLACE,zpass:Gi.REPLACE}}:{enable:!0,mask:255,func:{cmp:a.stencilType===nf.SINGLE||a.stencilIndex===0?Gi.ALWAYS:Gi.LESS,ref:a.stencilType===nf.SINGLE?1:a.stencilIndex===0?2:1,mask:255},opFront:{fail:Gi.KEEP,zfail:Gi.REPLACE,zpass:Gi.REPLACE}}}function dl(a){switch(a){case"rotation":return{name:"Rotation",type:Ld.Attribute,descriptor:{name:"a_Rotation",buffer:{usage:Gi.DYNAMIC_DRAW,data:[],type:Gi.FLOAT},size:1,update:function(u){var c=u.rotation,l=c===void 0?0:c;return Array.isArray(l)?[l[0]]:[l]}}};case"stroke":return{name:"stroke",type:Ld.Attribute,descriptor:{name:"a_Stroke",buffer:{usage:Gi.DYNAMIC_DRAW,data:[],type:Gi.FLOAT},size:4,update:function(u){var c=u.stroke,l=c===void 0?[1,1,1,1]:c;return l}}};case"opacity":return{name:"opacity",type:Ld.Attribute,descriptor:{name:"a_Opacity",buffer:{usage:Gi.STATIC_DRAW,data:[],type:Gi.FLOAT},size:1,update:function(u){var c=u.opacity,l=c===void 0?1:c;return[l]}}};case"extrusionBase":return{name:"extrusionBase",type:Ld.Attribute,descriptor:{name:"a_ExtrusionBase",buffer:{usage:Gi.STATIC_DRAW,data:[],type:Gi.FLOAT},size:1,update:function(u){var c=u.extrusionBase,l=c===void 0?0:c;return[l]}}};case"offsets":return{name:"offsets",type:Ld.Attribute,descriptor:{name:"a_Offsets",buffer:{usage:Gi.STATIC_DRAW,data:[],type:Gi.FLOAT},size:2,update:function(u){var c=u.offsets;return c}}};default:return}}var hl,gc,qc,Su=(hl=Cw(gr.IGlobalConfigService),gc=function(){function a(p){(0,wt.Z)(this,a),(0,bn.Z)(this,"preStyleAttribute",{}),(0,bn.Z)(this,"encodeStyleAttribute",{}),Fd(this,"configService",qc,this),this.layer=p,this.rendererService=p.getContainer().get(gr.IRendererService),this.pickingService=p.getContainer().get(gr.IPickingService),this.shaderModuleService=p.getContainer().get(gr.IShaderModuleService),this.styleAttributeService=p.getContainer().get(gr.IStyleAttributeService),this.mapService=p.getContainer().get(gr.IMapService),this.iconService=p.getContainer().get(gr.IIconService),this.fontService=p.getContainer().get(gr.IFontService),this.cameraService=p.getContainer().get(gr.ICameraService),this.layerService=p.getContainer().get(gr.ILayerService),this.registerStyleAttribute(),this.registerBuiltinAttributes(),this.startModelAnimate();var u=this.rendererService.createTexture2D;this.createTexture2D=u}return(0,He.Z)(a,[{key:"getBlend",value:function(){var u=this.layer.getLayerConfig(),c=u.blend,l=c===void 0?"normal":c;return d1[Nh[l]]}},{key:"getStencil",value:function(u){var c=this.layer.getLayerConfig(),l=c.mask,g=l===void 0?!1:l,T=c.maskInside,B=T===void 0?!0:T,Z=c.enableMask,ee=c.maskOperation,Pe=ee===void 0?Ko.AND:ee;if(this.layer.type==="MaskLayer")return $a({isStencil:!0,stencilType:nf.SINGLE});if(u.isStencil)return $a((0,xe.Z)((0,xe.Z)({},u),{},{maskOperation:Pe}));var Ze=g||Z&&this.layer.masks.length!==0||this.layer.tileMask!==void 0;return Ta(Ze,B)}},{key:"getDefaultStyle",value:function(){return{}}},{key:"getUninforms",value:function(){throw new Error("Method not implemented.")}},{key:"getAnimateUniforms",value:function(){return{}}},{key:"needUpdate",value:function(){var p=(0,Pa.Z)(Qi().mark(function c(){return Qi().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.abrupt("return",!1);case 1:case"end":return g.stop()}},c)}));function u(){return p.apply(this,arguments)}return u}()},{key:"buildModels",value:function(){var p=(0,Pa.Z)(Qi().mark(function c(){return Qi().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:throw new Error("Method not implemented.");case 1:case"end":return g.stop()}},c)}));function u(){return p.apply(this,arguments)}return u}()},{key:"initModels",value:function(){var p=(0,Pa.Z)(Qi().mark(function c(){return Qi().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:throw new Error("Method not implemented.");case 1:case"end":return g.stop()}},c)}));function u(){return p.apply(this,arguments)}return u}()},{key:"clearModels",value:function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0}},{key:"getAttribute",value:function(){throw new Error("Method not implemented.")}},{key:"render",value:function(u){throw new Error("Method not implemented.")}},{key:"registerBuiltinAttributes",value:function(){throw new Error("Method not implemented.")}},{key:"animateOption2Array",value:function(u){return[u.enable?0:1,u.duration||4,u.interval||.2,u.trailLength||.1]}},{key:"startModelAnimate",value:function(){var u=this.layer.getLayerConfig(),c=u.animateOption;c.enable&&this.layer.setAnimateStartTime()}},{key:"getInject",value:function(){var u=this.layer.encodeStyleAttribute,c="",l={opacity:"float",stroke:"vec4",offsets:"vec2",textOffset:"vec2",rotation:"float",extrusionBase:"float"};this.layer.enableShaderEncodeStyles.forEach(function(T){u[T]&&(c+="#define USE_ATTRIBUTE_".concat(T.toUpperCase(),` 0.0; `)),c+=` #ifdef USE_ATTRIBUTE_`.concat(T.toUpperCase(),` @@ -1918,7 +1972,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `).concat(l[T]," ").concat(T," = u_").concat(T,`; #endif -`)}),{"vs:#decl":c,"vs:#main-start":g}}},{key:"getStyleAttribute",value:function(){var u=this,c={},l={opacity:1,stroke:[1,0,0,1],offsets:[0,0],rotation:0,extrusionBase:0};return this.layer.enableShaderEncodeStyles.forEach(function(g){if(!u.layer.encodeStyleAttribute[g]){var T=u.layer.getLayerConfig()[g],B=typeof T=="undefined"?l[g]:T;g==="stroke"&&(B=Kr(B)),c["u_"+g]=B}}),c}},{key:"registerStyleAttribute",value:function(){var u=this;Object.keys(this.layer.encodeStyleAttribute).forEach(function(c){var l=hl(c);l&&u.styleAttributeService.registerStyleAttribute(l)})}},{key:"updateEncodeAttribute",value:function(u,c){this.encodeStyleAttribute[u]=c}}]),a}(),Jc=$h(gc.prototype,"configService",[fl],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),gc),Cc=function(a){return a[a.solid=0]="solid",a[a.dash=1]="dash",a}({}),Tc=function(a){return a.VERTICAL="vertical",a.HORIZONTAL="horizontal",a}({}),Ch=function(a){return a.NORMAL="normal",a.REPLACE="replace",a}({}),jh=function(a){return a[a.pixel=0]="pixel",a[a.meter=1]="meter",a}({}),Wf=function(a){return a.ALWAYS="always",a.DRAGEND="dragend",a}({});function Gh(a){var p=lf();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function lf(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var zg=function(a){(0,ht.Z)(u,a);var p=Gh(u);function u(){var c;(0,bt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T0&&(g=1/Math.sqrt(g)),a[0]=p[0]*g,a[1]=p[1]*g,a[2]=p[2]*g,a}function Lx(a,p){return a[0]*p[0]+a[1]*p[1]+a[2]*p[2]}function lD(a,p,u){var c=p[0],l=p[1],g=p[2],T=u[0],B=u[1],G=u[2];return a[0]=l*G-g*B,a[1]=g*T-c*G,a[2]=c*B-l*T,a}function o0(a,p,u,c){var l=p[0],g=p[1],T=p[2];return a[0]=l+c*(u[0]-l),a[1]=g+c*(u[1]-g),a[2]=T+c*(u[2]-T),a}function rX(a,p,u,c,l,g){var T=g*g,B=T*(2*g-3)+1,G=T*(g-2)+g,te=T*(g-1),Me=T*(3-2*g);return a[0]=p[0]*B+u[0]*G+c[0]*te+l[0]*Me,a[1]=p[1]*B+u[1]*G+c[1]*te+l[1]*Me,a[2]=p[2]*B+u[2]*G+c[2]*te+l[2]*Me,a}function iX(a,p,u,c,l,g){var T=1-g,B=T*T,G=g*g,te=B*T,Me=3*g*B,Ge=3*G*T,St=G*g;return a[0]=p[0]*te+u[0]*Me+c[0]*Ge+l[0]*St,a[1]=p[1]*te+u[1]*Me+c[1]*Ge+l[1]*St,a[2]=p[2]*te+u[2]*Me+c[2]*Ge+l[2]*St,a}function r6(a,p){p=p||1;var u=Io()*2*Math.PI,c=Io()*2-1,l=Math.sqrt(1-c*c)*p;return a[0]=Math.cos(u)*l,a[1]=Math.sin(u)*l,a[2]=c*p,a}function uD(a,p,u){var c=p[0],l=p[1],g=p[2],T=u[3]*c+u[7]*l+u[11]*g+u[15];return T=T||1,a[0]=(u[0]*c+u[4]*l+u[8]*g+u[12])/T,a[1]=(u[1]*c+u[5]*l+u[9]*g+u[13])/T,a[2]=(u[2]*c+u[6]*l+u[10]*g+u[14])/T,a}function oX(a,p,u){var c=p[0],l=p[1],g=p[2];return a[0]=c*u[0]+l*u[3]+g*u[6],a[1]=c*u[1]+l*u[4]+g*u[7],a[2]=c*u[2]+l*u[5]+g*u[8],a}function az(a,p,u){var c=u[0],l=u[1],g=u[2],T=u[3],B=p[0],G=p[1],te=p[2],Me=l*te-g*G,Ge=g*B-c*te,St=c*G-l*B,Mt=l*St-g*Ge,In=g*Me-c*St,kn=c*Ge-l*Me,Sr=T*2;return Me*=Sr,Ge*=Sr,St*=Sr,Mt*=2,In*=2,kn*=2,a[0]=B+Me+Mt,a[1]=G+Ge+In,a[2]=te+St+kn,a}function hb(a,p,u,c){var l=[],g=[];return l[0]=p[0]-u[0],l[1]=p[1]-u[1],l[2]=p[2]-u[2],g[0]=l[0],g[1]=l[1]*Math.cos(c)-l[2]*Math.sin(c),g[2]=l[1]*Math.sin(c)+l[2]*Math.cos(c),a[0]=g[0]+u[0],a[1]=g[1]+u[1],a[2]=g[2]+u[2],a}function lz(a,p,u,c){var l=[],g=[];return l[0]=p[0]-u[0],l[1]=p[1]-u[1],l[2]=p[2]-u[2],g[0]=l[2]*Math.sin(c)+l[0]*Math.cos(c),g[1]=l[1],g[2]=l[2]*Math.cos(c)-l[0]*Math.sin(c),a[0]=g[0]+u[0],a[1]=g[1]+u[1],a[2]=g[2]+u[2],a}function a4(a,p,u,c){var l=[],g=[];return l[0]=p[0]-u[0],l[1]=p[1]-u[1],l[2]=p[2]-u[2],g[0]=l[0]*Math.cos(c)-l[1]*Math.sin(c),g[1]=l[0]*Math.sin(c)+l[1]*Math.cos(c),g[2]=l[2],a[0]=g[0]+u[0],a[1]=g[1]+u[1],a[2]=g[2]+u[2],a}function EM(a,p){var u=a[0],c=a[1],l=a[2],g=p[0],T=p[1],B=p[2],G=Math.sqrt(u*u+c*c+l*l),te=Math.sqrt(g*g+T*T+B*B),Me=G*te,Ge=Me&&Lx(a,p)/Me;return Math.acos(Math.min(Math.max(Ge,-1),1))}function uz(a){return a[0]=0,a[1]=0,a[2]=0,a}function cz(a){return"vec3("+a[0]+", "+a[1]+", "+a[2]+")"}function i6(a,p){return a[0]===p[0]&&a[1]===p[1]&&a[2]===p[2]}function sX(a,p){var u=a[0],c=a[1],l=a[2],g=p[0],T=p[1],B=p[2];return Math.abs(u-g)<=ld*Math.max(1,Math.abs(u),Math.abs(g))&&Math.abs(c-T)<=ld*Math.max(1,Math.abs(c),Math.abs(T))&&Math.abs(l-B)<=ld*Math.max(1,Math.abs(l),Math.abs(B))}var l4=JN,o6=QN,aX=iz,lX=wM,I2=t6,cD=aD,Xv=SM,s6=function(){var a=$_();return function(p,u,c,l,g,T){var B,G;for(u||(u=3),c||(c=0),l?G=Math.min(l*u+c,p.length):G=p.length,B=c;B0)for(var ca=Ge.length,Ia=ca-2*(G+1);Ia+G+20&&arguments[0]!==void 0?arguments[0]:{};(0,bt.Z)(this,a),(0,bn.Z)(this,"lastFlip",-1),(0,bn.Z)(this,"miter",zf(0,0)),(0,bn.Z)(this,"started",!1),(0,bn.Z)(this,"dash",!1),(0,bn.Z)(this,"totalDistance",0),(0,bn.Z)(this,"currentIndex",0),this.join=p.join||"miter",this.cap=p.cap||"butt",this.miterLimit=p.miterLimit||10,this.thickness=p.thickness||1,this.dash=p.dash||!1,this.complex={positions:[],indices:[],normals:[],startIndex:0,indexes:[]}}return(0,Ue.Z)(a,[{key:"simpleExtrude",value:function(u){var c=this.complex;if(u.length<=1)return c;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var l=u.length,g=c.startIndex,T=1;Tthis.miterLimit&&(Vc=!0)}Vc?(Mt.push(this.normal[0],this.normal[1],0),Mt.push(Wu[0],Wu[1],0),St.push(g[0],g[1],g[2]|0,this.totalDistance,-this.thickness*Pu,g[2]|0),this.complex.indexes.push(this.currentIndex),St.push(g[0],g[1],g[2]|0,this.totalDistance,this.thickness*Pu,g[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,Ge.push.apply(Ge,(0,kr.Z)(this.lastFlip!==-Pu?[c,c+2,c+3]:[c+2,c+1,c+3])),Ge.push(c+2,c+3,c+4),P2(hC,L2),bf(this.normal,hC),Mt.push(this.normal[0],this.normal[1],0),St.push(g[0],g[1],g[2]|0,this.totalDistance,-this.thickness*Pu,g[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,Me+=3):(this.extrusions(St,Mt,g,Wu,Wl,this.totalDistance),Ge.push.apply(Ge,(0,kr.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),Pu=-1,bf(this.normal,Wu),Me+=2),this.lastFlip=Pu}else{if(P2(this.normal,bv),In){var ca=Zd(),Ia=Zd();$d(Ia,bv,this.normal),Bp(ca,bv,this.normal),Mt.push(Ia[0],Ia[1],0),Mt.push(ca[0],ca[1],0),St.push(g[0],g[1],g[2]|0,this.totalDistance,this.thickness,g[2]|0),this.complex.indexes.push(this.currentIndex),St.push(g[0],g[1],g[2]|0,this.totalDistance,this.thickness,g[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(St,Mt,g,this.normal,this.thickness,this.totalDistance);Ge.push.apply(Ge,(0,kr.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),Me+=2}return Me}},{key:"segment",value:function(u,c,l,g,T){var B=0,G=u.indices,te=u.positions,Me=u.normals,Ge=this.cap==="square",St=this.join==="bevel",Mt=Mu([g[0],g[1]]),In=Mu([l[0],l[1]]);cE(bv,Mt,In);var kn=0;if(this.dash&&(kn=this.lineSegmentDistance(Mt,In),this.totalDistance+=kn),this.normal||(this.normal=Zd(),P2(this.normal,bv)),!this.started)if(this.started=!0,Ge){var Sr=Zd(),_i=Zd();Bp(Sr,this.normal,bv),Bp(_i,this.normal,bv),Me.push(_i[0],_i[1],0),Me.push(Sr[0],Sr[1],0),te.push(l[0],l[1],l[2]|0,this.totalDistance-kn,-this.thickness,l[2]|0),this.complex.indexes.push(this.currentIndex),te.push(l[0],l[1],l[2]|0,this.totalDistance-kn,this.thickness,l[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(te,Me,l,this.normal,this.thickness,this.totalDistance-kn);if(G.push(c+0,c+1,c+2),T){var Ks=Mu([T[0],T[1]]);n1(Mt,Ks)&&Bp(Ks,Mt,Qg(Ks,Hf(Ks,Mt,In))),cE(L2,Ks,Mt);var ca=DM(uE,Zd(),bv,L2,this.thickness),Ia=(0,Qn.Z)(ca,2),al=Ia[0],jl=Ia[1],Wl=Lm(uE,this.normal)<0?-1:1,Wu=St;if(!Wu&&this.join==="miter"){var Pu=al;Pu>this.miterLimit&&(Wu=!0)}Wu?(Me.push(this.normal[0],this.normal[1],0),Me.push(jl[0],jl[1],0),te.push(g[0],g[1],g[2]|0,this.totalDistance,-this.thickness*Wl,g[2]|0),this.complex.indexes.push(this.currentIndex),te.push(g[0],g[1],g[2]|0,this.totalDistance,this.thickness*Wl,g[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,G.push.apply(G,(0,kr.Z)(this.lastFlip!==-Wl?[c,c+2,c+3]:[c+2,c+1,c+3])),G.push(c+2,c+3,c+4),P2(hC,L2),bf(this.normal,hC),Me.push(this.normal[0],this.normal[1],0),te.push(g[0],g[1],g[2]|0,this.totalDistance,-this.thickness*Wl,g[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,B+=3):(this.extrusions(te,Me,g,jl,al,this.totalDistance),G.push.apply(G,(0,kr.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),Wl=-1,bf(this.normal,jl),B+=2),this.lastFlip=Wl}else{if(P2(this.normal,bv),Ge){var Vo=Zd(),zo=Zd();$d(zo,bv,this.normal),Bp(Vo,bv,this.normal),Me.push(zo[0],zo[1],0),Me.push(Vo[0],Vo[1],0),te.push(g[0],g[1],g[2]|0,this.totalDistance,this.thickness,g[2]|0),this.complex.indexes.push(this.currentIndex),te.push(g[0],g[1],g[2]|0,this.totalDistance,this.thickness,g[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(te,Me,g,this.normal,this.thickness,this.totalDistance);G.push.apply(G,(0,kr.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),B+=2}return B}},{key:"extrusions",value:function(u,c,l,g,T,B){c.push(g[0],g[1],0),c.push(g[0],g[1],0),u.push(l[0],l[1],l[2]|0,B,-T,l[2]|0),this.complex.indexes.push(this.currentIndex),u.push(l[0],l[1],l[2]|0,B,T,l[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}},{key:"lineSegmentDistance",value:function(u,c){var l=c[0]-u[0],g=c[1]-u[1];return Math.sqrt(l*l+g*g)}}]),a}();function Qm(a){var p=a[0][0],u=a[0][a[0].length-1];p[0]===u[0]&&p[1]===u[1]&&(a[0]=a[0].slice(0,a[0].length-1));for(var c=a[0].length,l=xd().flatten(a),g=l.vertices,T=l.dimensions,B=[],G=[],te=0;te1&&arguments[1]!==void 0?arguments[1]:!1,u=a[0][0],c=a[0][a[0].length-1];u[0]===c[0]&&u[1]===c[1]&&(a[0]=a[0].slice(0,a[0].length-1));for(var l=a[0].length,g=xd().flatten(a),T=g.vertices,B=g.dimensions,G=[],te=[],Me=[],Ge=0;Ge3&&arguments[3]!==void 0?arguments[3]:!1,l=$_(),g=$_(),T=$_();c&&(a=Uc(a),p=Uc(p),u=Uc(u));var B=Yg.apply(z,(0,kr.Z)(a)),G=Yg.apply(z,(0,kr.Z)(p)),te=Yg.apply(z,(0,kr.Z)(u));l4(l,te,G),l4(g,B,G),lD(T,l,g);var Me=$_();return A2(Me,T),Me}var fb,N3=function(a){return a.CYLINDER="cylinder",a.SQUARECOLUMN="squareColumn",a.TRIANGLECOLUMN="triangleColumn",a.HEXAGONCOLUMN="hexagonColumn",a.PENTAGONCOLUMN="pentagonColumn",a}({}),hD=function(a){return a.CIRCLE="circle",a.SQUARE="square",a.TRIANGLE="triangle",a.HEXAGON="hexagon",a.PENTAGON="pentagon",a}({});function fD(a){for(var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,u=Math.PI*2/a,c=[],l=0;l1&&arguments[1]!==void 0?arguments[1]:!1;if(h4&&h4[a])return h4[a];var u=pD[a]?pD[a]():pD.cylinder(),c=AM([u],p);return h4[a]=c,c}function v4(a,p){for(var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,l=new Float32Array(a.length/u*3),g,T,B,G=vec3.create(),te=vec3.create(),Me=vec3.create(),Ge=0,St=p.length;Ge0&&(g=1/Math.sqrt(g)),a[0]=p[0]*g,a[1]=p[1]*g,a[2]=p[2]*g,a}function Ox(a,p){return a[0]*p[0]+a[1]*p[1]+a[2]*p[2]}function cD(a,p,u){var c=p[0],l=p[1],g=p[2],T=u[0],B=u[1],Z=u[2];return a[0]=l*Z-g*B,a[1]=g*T-c*Z,a[2]=c*B-l*T,a}function o0(a,p,u,c){var l=p[0],g=p[1],T=p[2];return a[0]=l+c*(u[0]-l),a[1]=g+c*(u[1]-g),a[2]=T+c*(u[2]-T),a}function oX(a,p,u,c,l,g){var T=g*g,B=T*(2*g-3)+1,Z=T*(g-2)+g,ee=T*(g-1),Pe=T*(3-2*g);return a[0]=p[0]*B+u[0]*Z+c[0]*ee+l[0]*Pe,a[1]=p[1]*B+u[1]*Z+c[1]*ee+l[1]*Pe,a[2]=p[2]*B+u[2]*Z+c[2]*ee+l[2]*Pe,a}function sX(a,p,u,c,l,g){var T=1-g,B=T*T,Z=g*g,ee=B*T,Pe=3*g*B,Ze=3*Z*T,St=Z*g;return a[0]=p[0]*ee+u[0]*Pe+c[0]*Ze+l[0]*St,a[1]=p[1]*ee+u[1]*Pe+c[1]*Ze+l[1]*St,a[2]=p[2]*ee+u[2]*Pe+c[2]*Ze+l[2]*St,a}function XN(a,p){p=p||1;var u=Io()*2*Math.PI,c=Io()*2-1,l=Math.sqrt(1-c*c)*p;return a[0]=Math.cos(u)*l,a[1]=Math.sin(u)*l,a[2]=c*p,a}function dD(a,p,u){var c=p[0],l=p[1],g=p[2],T=u[3]*c+u[7]*l+u[11]*g+u[15];return T=T||1,a[0]=(u[0]*c+u[4]*l+u[8]*g+u[12])/T,a[1]=(u[1]*c+u[5]*l+u[9]*g+u[13])/T,a[2]=(u[2]*c+u[6]*l+u[10]*g+u[14])/T,a}function aX(a,p,u){var c=p[0],l=p[1],g=p[2];return a[0]=c*u[0]+l*u[3]+g*u[6],a[1]=c*u[1]+l*u[4]+g*u[7],a[2]=c*u[2]+l*u[5]+g*u[8],a}function vz(a,p,u){var c=u[0],l=u[1],g=u[2],T=u[3],B=p[0],Z=p[1],ee=p[2],Pe=l*ee-g*Z,Ze=g*B-c*ee,St=c*Z-l*B,Mt=l*St-g*Ze,Tn=g*Pe-c*St,kn=c*Ze-l*Pe,vr=T*2;return Pe*=vr,Ze*=vr,St*=vr,Mt*=2,Tn*=2,kn*=2,a[0]=B+Pe+Mt,a[1]=Z+Ze+Tn,a[2]=ee+St+kn,a}function hb(a,p,u,c){var l=[],g=[];return l[0]=p[0]-u[0],l[1]=p[1]-u[1],l[2]=p[2]-u[2],g[0]=l[0],g[1]=l[1]*Math.cos(c)-l[2]*Math.sin(c),g[2]=l[1]*Math.sin(c)+l[2]*Math.cos(c),a[0]=g[0]+u[0],a[1]=g[1]+u[1],a[2]=g[2]+u[2],a}function yz(a,p,u,c){var l=[],g=[];return l[0]=p[0]-u[0],l[1]=p[1]-u[1],l[2]=p[2]-u[2],g[0]=l[2]*Math.sin(c)+l[0]*Math.cos(c),g[1]=l[1],g[2]=l[2]*Math.cos(c)-l[0]*Math.sin(c),a[0]=g[0]+u[0],a[1]=g[1]+u[1],a[2]=g[2]+u[2],a}function n4(a,p,u,c){var l=[],g=[];return l[0]=p[0]-u[0],l[1]=p[1]-u[1],l[2]=p[2]-u[2],g[0]=l[0]*Math.cos(c)-l[1]*Math.sin(c),g[1]=l[0]*Math.sin(c)+l[1]*Math.cos(c),g[2]=l[2],a[0]=g[0]+u[0],a[1]=g[1]+u[1],a[2]=g[2]+u[2],a}function CM(a,p){var u=a[0],c=a[1],l=a[2],g=p[0],T=p[1],B=p[2],Z=Math.sqrt(u*u+c*c+l*l),ee=Math.sqrt(g*g+T*T+B*B),Pe=Z*ee,Ze=Pe&&Ox(a,p)/Pe;return Math.acos(Math.min(Math.max(Ze,-1),1))}function _z(a){return a[0]=0,a[1]=0,a[2]=0,a}function bz(a){return"vec3("+a[0]+", "+a[1]+", "+a[2]+")"}function YN(a,p){return a[0]===p[0]&&a[1]===p[1]&&a[2]===p[2]}function lX(a,p){var u=a[0],c=a[1],l=a[2],g=p[0],T=p[1],B=p[2];return Math.abs(u-g)<=ud*Math.max(1,Math.abs(u),Math.abs(g))&&Math.abs(c-T)<=ud*Math.max(1,Math.abs(c),Math.abs(T))&&Math.abs(l-B)<=ud*Math.max(1,Math.abs(l),Math.abs(B))}var r4=UN,qN=HN,uX=pz,cX=bM,W2=GN,hD=uD,qv=xM,JN=function(){var a=z_();return function(p,u,c,l,g,T){var B,Z;for(u||(u=3),c||(c=0),l?Z=Math.min(l*u+c,p.length):Z=p.length,B=c;B0)for(var ra=Ze.length,La=ra-2*(Z+1);La+Z+20&&arguments[0]!==void 0?arguments[0]:{};(0,wt.Z)(this,a),(0,bn.Z)(this,"lastFlip",-1),(0,bn.Z)(this,"miter",zf(0,0)),(0,bn.Z)(this,"started",!1),(0,bn.Z)(this,"dash",!1),(0,bn.Z)(this,"totalDistance",0),(0,bn.Z)(this,"currentIndex",0),this.join=p.join||"miter",this.cap=p.cap||"butt",this.miterLimit=p.miterLimit||10,this.thickness=p.thickness||1,this.dash=p.dash||!1,this.complex={positions:[],indices:[],normals:[],startIndex:0,indexes:[]}}return(0,He.Z)(a,[{key:"simpleExtrude",value:function(u){var c=this.complex;if(u.length<=1)return c;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var l=u.length,g=c.startIndex,T=1;Tthis.miterLimit&&(Jc=!0)}Jc?(Mt.push(this.normal[0],this.normal[1],0),Mt.push(ju[0],ju[1],0),St.push(g[0],g[1],g[2]|0,this.totalDistance,-this.thickness*Ku,g[2]|0),this.complex.indexes.push(this.currentIndex),St.push(g[0],g[1],g[2]|0,this.totalDistance,this.thickness*Ku,g[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,Ze.push.apply(Ze,(0,kr.Z)(this.lastFlip!==-Ku?[c,c+2,c+3]:[c+2,c+1,c+3])),Ze.push(c+2,c+3,c+4),V2(CC,j2),bf(this.normal,CC),Mt.push(this.normal[0],this.normal[1],0),St.push(g[0],g[1],g[2]|0,this.totalDistance,-this.thickness*Ku,g[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,Pe+=3):(this.extrusions(St,Mt,g,ju,Jl,this.totalDistance),Ze.push.apply(Ze,(0,kr.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),Ku=-1,bf(this.normal,ju),Pe+=2),this.lastFlip=Ku}else{if(V2(this.normal,xv),Tn){var ra=Zd(),La=Zd();$d(La,xv,this.normal),Bp(ra,xv,this.normal),Mt.push(La[0],La[1],0),Mt.push(ra[0],ra[1],0),St.push(g[0],g[1],g[2]|0,this.totalDistance,this.thickness,g[2]|0),this.complex.indexes.push(this.currentIndex),St.push(g[0],g[1],g[2]|0,this.totalDistance,this.thickness,g[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(St,Mt,g,this.normal,this.thickness,this.totalDistance);Ze.push.apply(Ze,(0,kr.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),Pe+=2}return Pe}},{key:"segment",value:function(u,c,l,g,T){var B=0,Z=u.indices,ee=u.positions,Pe=u.normals,Ze=this.cap==="square",St=this.join==="bevel",Mt=ku([g[0],g[1]]),Tn=ku([l[0],l[1]]);CE(xv,Mt,Tn);var kn=0;if(this.dash&&(kn=this.lineSegmentDistance(Mt,Tn),this.totalDistance+=kn),this.normal||(this.normal=Zd(),V2(this.normal,xv)),!this.started)if(this.started=!0,Ze){var vr=Zd(),wi=Zd();Bp(vr,this.normal,xv),Bp(wi,this.normal,xv),Pe.push(wi[0],wi[1],0),Pe.push(vr[0],vr[1],0),ee.push(l[0],l[1],l[2]|0,this.totalDistance-kn,-this.thickness,l[2]|0),this.complex.indexes.push(this.currentIndex),ee.push(l[0],l[1],l[2]|0,this.totalDistance-kn,this.thickness,l[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(ee,Pe,l,this.normal,this.thickness,this.totalDistance-kn);if(Z.push(c+0,c+1,c+2),T){var Ks=ku([T[0],T[1]]);ty(Mt,Ks)&&Bp(Ks,Mt,Qg(Ks,Hf(Ks,Mt,Tn))),CE(j2,Ks,Mt);var ra=SM(xE,Zd(),xv,j2,this.thickness),La=(0,qn.Z)(ra,2),vl=La[0],Wl=La[1],Jl=Lm(xE,this.normal)<0?-1:1,ju=St;if(!ju&&this.join==="miter"){var Ku=vl;Ku>this.miterLimit&&(ju=!0)}ju?(Pe.push(this.normal[0],this.normal[1],0),Pe.push(Wl[0],Wl[1],0),ee.push(g[0],g[1],g[2]|0,this.totalDistance,-this.thickness*Jl,g[2]|0),this.complex.indexes.push(this.currentIndex),ee.push(g[0],g[1],g[2]|0,this.totalDistance,this.thickness*Jl,g[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,Z.push.apply(Z,(0,kr.Z)(this.lastFlip!==-Jl?[c,c+2,c+3]:[c+2,c+1,c+3])),Z.push(c+2,c+3,c+4),V2(CC,j2),bf(this.normal,CC),Pe.push(this.normal[0],this.normal[1],0),ee.push(g[0],g[1],g[2]|0,this.totalDistance,-this.thickness*Jl,g[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,B+=3):(this.extrusions(ee,Pe,g,Wl,vl,this.totalDistance),Z.push.apply(Z,(0,kr.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),Jl=-1,bf(this.normal,Wl),B+=2),this.lastFlip=Jl}else{if(V2(this.normal,xv),Ze){var zo=Zd(),$o=Zd();$d($o,xv,this.normal),Bp(zo,xv,this.normal),Pe.push($o[0],$o[1],0),Pe.push(zo[0],zo[1],0),ee.push(g[0],g[1],g[2]|0,this.totalDistance,this.thickness,g[2]|0),this.complex.indexes.push(this.currentIndex),ee.push(g[0],g[1],g[2]|0,this.totalDistance,this.thickness,g[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(ee,Pe,g,this.normal,this.thickness,this.totalDistance);Z.push.apply(Z,(0,kr.Z)(this.lastFlip===1?[c,c+2,c+3]:[c+2,c+1,c+3])),B+=2}return B}},{key:"extrusions",value:function(u,c,l,g,T,B){c.push(g[0],g[1],0),c.push(g[0],g[1],0),u.push(l[0],l[1],l[2]|0,B,-T,l[2]|0),this.complex.indexes.push(this.currentIndex),u.push(l[0],l[1],l[2]|0,B,T,l[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}},{key:"lineSegmentDistance",value:function(u,c){var l=c[0]-u[0],g=c[1]-u[1];return Math.sqrt(l*l+g*g)}}]),a}();function Qm(a){var p=a[0][0],u=a[0][a[0].length-1];p[0]===u[0]&&p[1]===u[1]&&(a[0]=a[0].slice(0,a[0].length-1));for(var c=a[0].length,l=xd().flatten(a),g=l.vertices,T=l.dimensions,B=[],Z=[],ee=0;ee1&&arguments[1]!==void 0?arguments[1]:!1,u=a[0][0],c=a[0][a[0].length-1];u[0]===c[0]&&u[1]===c[1]&&(a[0]=a[0].slice(0,a[0].length-1));for(var l=a[0].length,g=xd().flatten(a),T=g.vertices,B=g.dimensions,Z=[],ee=[],Pe=[],Ze=0;Ze3&&arguments[3]!==void 0?arguments[3]:!1,l=z_(),g=z_(),T=z_();c&&(a=Vc(a),p=Vc(p),u=Vc(u));var B=$g.apply(z,(0,kr.Z)(a)),Z=$g.apply(z,(0,kr.Z)(p)),ee=$g.apply(z,(0,kr.Z)(u));r4(l,ee,Z),r4(g,B,Z),cD(T,l,g);var Pe=z_();return $2(Pe,T),Pe}var fb,R3=function(a){return a.CYLINDER="cylinder",a.SQUARECOLUMN="squareColumn",a.TRIANGLECOLUMN="triangleColumn",a.HEXAGONCOLUMN="hexagonColumn",a.PENTAGONCOLUMN="pentagonColumn",a}({}),pD=function(a){return a.CIRCLE="circle",a.SQUARE="square",a.TRIANGLE="triangle",a.HEXAGON="hexagon",a.PENTAGON="pentagon",a}({});function gD(a){for(var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,u=Math.PI*2/a,c=[],l=0;l1&&arguments[1]!==void 0?arguments[1]:!1;if(a4&&a4[a])return a4[a];var u=mD[a]?mD[a]():mD.cylinder(),c=EM([u],p);return a4[a]=c,c}function h4(a,p){for(var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,l=new Float32Array(a.length/u*3),g,T,B,Z=vec3.create(),ee=vec3.create(),Pe=vec3.create(),Ze=0,St=p.length;Ze0&&arguments[0]!==void 0?arguments[0]:1,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,G=arguments.length>4&&arguments[4]!==void 0?arguments[4]:120,te=arguments.length>5&&arguments[5]!==void 0?arguments[5]:30,Me=l/2,Ge=g/2,St=Math.floor(T),Mt=Math.floor(B),In=St+1,kn=Mt+1,Sr=l/St,_i=g/Mt,Vo=[],zo=[],Ks=0;Ks0&&arguments[0]!==void 0?arguments[0]:1,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,Z=arguments.length>4&&arguments[4]!==void 0?arguments[4]:120,ee=arguments.length>5&&arguments[5]!==void 0?arguments[5]:30,Pe=l/2,Ze=g/2,St=Math.floor(T),Mt=Math.floor(B),Tn=St+1,kn=Mt+1,vr=l/St,wi=g/Mt,zo=[],$o=[],Ks=0;KsSt&&(c.positions[Mt+2]=Ge)):(c.positions[Mt+2]-=Me,c.positions[Mt+2]0&&arguments[0]!==void 0?arguments[0]:10,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100,T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:120,B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:30,G=[],te=[],Me=this.mapService,Ge=this.spriteAnimate===Vb.UP?-this.spriteTop:this.spriteTop,St=0;StSt&&(c.positions[Mt+2]=Ze)):(c.positions[Mt+2]-=Pe,c.positions[Mt+2]0&&arguments[0]!==void 0?arguments[0]:10,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100,T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:120,B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:30,Z=[],ee=[],Pe=this.mapService,Ze=this.spriteAnimate===Zb.UP?-this.spriteTop:this.spriteTop,St=0;St0&&arguments[0]!==void 0?arguments[0]:{},T=this.getModelType();return T==="heatmap"?(this.layerModel&&this.layerModel.render(g),this):this.encodeDataLength<=0&&!this.forceRender?this:(this.hooks.beforeRender.call(),this.models.forEach(function(B){return B.draw({uniforms:l.layerModel.getUninforms(),blend:l.layerModel.getBlend(),stencil:l.layerModel.getStencil(g)})}),this.hooks.afterRender.call(),this)}},{key:"updateModelData",value:function(l){l.attributes&&l.elements?this.models[0].updateAttributesAndElements(l.attributes,l.elements):console.warn("data error")}},{key:"getModelType",value:function(){var l,g=this.styleAttributeService.getLayerStyleAttribute("shape"),T=this.getLayerConfig(),B=T.shape3d,G=this.getSource(),te=G.data.type,Me=(g==null||(l=g.scale)===null||l===void 0?void 0:l.field)||"heatmap";return Me==="heatmap"||Me==="heatmap3d"?"heatmap":te==="hexagon"?(B==null?void 0:B.indexOf(Me))===-1?"hexagon":"grid3d":te==="grid"?(B==null?void 0:B.indexOf(Me))===-1?"grid":"grid3d":"heatmap"}}]),u}(Xa);function $M(a){var p=E4();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function E4(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var Rz=`precision mediump float; +`,z3=function(a){(0,dt.Z)(u,a);var p=c6(u);function u(){return(0,wt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"getUninforms",value:function(){var l=this.layer.getLayerConfig(),g=l.opacity,T=l.coverage,B=l.angle;return{u_opacity:g||1,u_coverage:T||.9,u_angle:B||0,u_radius:[this.layer.getSource().data.xOffset,this.layer.getSource().data.yOffset]}}},{key:"initModels",value:function(){var c=(0,Pa.Z)(Qi().mark(function g(){return Qi().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.abrupt("return",this.buildModels());case 1:case"end":return B.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"buildModels",value:function(){var c=(0,Pa.Z)(Qi().mark(function g(){var T;return Qi().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return Z.next=2,this.layer.buildLayerModel({moduleName:"heatmapHexagon",vertexShader:Uz,fragmentShader:Vz,triangulation:c4,depth:{enable:!1},primitive:Gi.TRIANGLES});case 2:return T=Z.sent,Z.abrupt("return",[T]);case 4:case"end":return Z.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"pos",type:Ld.Attribute,descriptor:{name:"a_Pos",buffer:{usage:Gi.DYNAMIC_DRAW,data:[],type:Gi.FLOAT},size:3,update:function(g){var T=g.version==="GAODE2.x"?g.originCoordinates:g.coordinates;return[T[0],T[1],0]}}})}}]),u}(Su),kw={heatmap:y4,heatmap3d:y4,grid:$z,grid3d:gb,hexagon:z3},TC=kw;function Mw(a){var p=_4();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function _4(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var d6=function(a){(0,dt.Z)(u,a);var p=Mw(u);function u(){var c;(0,wt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T0&&arguments[0]!==void 0?arguments[0]:{},T=this.getModelType();return T==="heatmap"?(this.layerModel&&this.layerModel.render(g),this):this.encodeDataLength<=0&&!this.forceRender?this:(this.hooks.beforeRender.call(),this.models.forEach(function(B){return B.draw({uniforms:l.layerModel.getUninforms(),blend:l.layerModel.getBlend(),stencil:l.layerModel.getStencil(g)})}),this.hooks.afterRender.call(),this)}},{key:"updateModelData",value:function(l){l.attributes&&l.elements?this.models[0].updateAttributesAndElements(l.attributes,l.elements):console.warn("data error")}},{key:"getModelType",value:function(){var l,g=this.styleAttributeService.getLayerStyleAttribute("shape"),T=this.getLayerConfig(),B=T.shape3d,Z=this.getSource(),ee=Z.data.type,Pe=(g==null||(l=g.scale)===null||l===void 0?void 0:l.field)||"heatmap";return Pe==="heatmap"||Pe==="heatmap3d"?"heatmap":ee==="hexagon"?(B==null?void 0:B.indexOf(Pe))===-1?"hexagon":"grid3d":ee==="grid"?(B==null?void 0:B.indexOf(Pe))===-1?"grid":"grid3d":"heatmap"}}]),u}(Xa);function FM(a){var p=b4();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function b4(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var Hz=`precision mediump float; uniform float u_opacity: 1.0; uniform sampler2D u_texture; varying vec2 v_texCoord; @@ -2585,7 +2639,7 @@ void main() { if(gl_FragColor.a < 0.01) discard; } -`,kx=`precision highp float; +`,Nx=`precision highp float; uniform mat4 u_ModelMatrix; attribute vec3 a_Position; @@ -2598,7 +2652,7 @@ void main() { gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy,0., 1.0)); } -`,b6=function(a){(0,ht.Z)(u,a);var p=$M(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,Ue.Z)(u,[{key:"getUninforms",value:function(){var l=this.layer.getLayerConfig(),g=l.opacity;return{u_opacity:g||1,u_texture:this.texture}}},{key:"initModels",value:function(){var c=(0,ka.Z)(Qi().mark(function g(){var T,B,G,te;return Qi().wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:return T=this.layer.getSource(),B=this.rendererService.createTexture2D,this.texture=B({height:0,width:0}),Ge.next=5,T.data.images;case 5:return G=Ge.sent,this.texture=B({data:G[0],width:G[0].width,height:G[0].height,mag:Gi.LINEAR,min:Gi.LINEAR}),Ge.next=9,this.layer.buildLayerModel({moduleName:"rasterImage",vertexShader:kx,fragmentShader:Rz,triangulation:mD,primitive:Gi.TRIANGLES,blend:{enable:!0},depth:{enable:!1}});case 9:return te=Ge.sent,Ge.abrupt("return",[te]);case 11:case"end":return Ge.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"clearModels",value:function(){var l;(l=this.texture)===null||l===void 0||l.destroy()}},{key:"buildModels",value:function(){var c=(0,ka.Z)(Qi().mark(function g(){return Qi().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.abrupt("return",this.initModels());case 1:case"end":return B.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"uv",type:Ld.Attribute,descriptor:{name:"a_Uv",buffer:{usage:Gi.DYNAMIC_DRAW,data:[],type:Gi.FLOAT},size:2,update:function(g,T,B){return[B[3],B[4]]}}})}}]),u}(Su),Nz={image:b6},Fz=Nz;function Bz(a){var p=TD();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function TD(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var jM=function(a){(0,ht.Z)(u,a);var p=Bz(u);function u(){var c;(0,bt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T0&&T.enable){var Ia=T.speed,al=Ia===void 0?.01:Ia;this.raiseCount+=al,this.raiseCount>=1&&(this.raiseRepeat>1?(this.raiseCount=0,this.raiseRepeat--):this.raiseCount=1)}return{u_pickLight:Number(St),u_heightfixed:Number(In),u_r:T.enable&&this.raiseRepeat>0?this.raiseCount:1,u_opacity:nm(G)?G:1,u_linearColor:zo,u_sourceColor:Ks,u_targetColor:ca,u_opacitylinear:Number(Sr.enable),u_opacitylinear_dir:Sr.dir==="up"?1:0,u_lightEnable:Number(Vo)}}},{key:"initModels",value:function(){var c=(0,ka.Z)(Qi().mark(function g(){return Qi().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.abrupt("return",this.buildModels());case 1:case"end":return B.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"buildModels",value:function(){var c=(0,ka.Z)(Qi().mark(function g(){var T,B,G,te;return Qi().wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:return T=this.layer.getLayerConfig(),B=T.animateOption.repeat,G=B===void 0?1:B,this.raiseRepeat=G,Ge.next=4,this.layer.buildLayerModel({moduleName:"pointEarthExtrude",vertexShader:I6,fragmentShader:A6,triangulation:IM,depth:{enable:!0},cull:{enable:!0,face:Ni(this.mapService.version)},blend:this.getBlend()});case 4:return te=Ge.sent,Ge.abrupt("return",[te]);case 6:case"end":return Ge.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:Ld.Attribute,descriptor:{name:"a_Size",buffer:{usage:Gi.DYNAMIC_DRAW,data:[],type:Gi.FLOAT},size:3,update:function(g){var T=g.size;if(T){var B=[];return Array.isArray(T)&&(B=T.length===2?[T[0],T[0],T[1]]:T),Array.isArray(T)||(B=[T,T,T]),B}else return[2,2,2]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:Ld.Attribute,descriptor:{name:"a_Normal",buffer:{usage:Gi.STATIC_DRAW,data:[],type:Gi.FLOAT},size:3,update:function(g,T,B,G,te){return te}}}),this.styleAttributeService.registerStyleAttribute({name:"pos",type:Ld.Attribute,descriptor:{name:"a_Pos",buffer:{usage:Gi.DYNAMIC_DRAW,data:[],type:Gi.FLOAT},size:3,update:function(g){var T=Lh(g.coordinates);return TM([T[0],T[1]])}}})}}]),u}(Su);function O4(a){var p=LD();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function LD(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var YM=`uniform float u_additive; +`,nm=Ma.isNumber,Q0=function(a){(0,dt.Z)(u,a);var p=ZM(u);function u(){var c;(0,wt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T0&&T.enable){var La=T.speed,vl=La===void 0?.01:La;this.raiseCount+=vl,this.raiseCount>=1&&(this.raiseRepeat>1?(this.raiseCount=0,this.raiseRepeat--):this.raiseCount=1)}return{u_pickLight:Number(St),u_heightfixed:Number(Tn),u_r:T.enable&&this.raiseRepeat>0?this.raiseCount:1,u_opacity:nm(Z)?Z:1,u_linearColor:$o,u_sourceColor:Ks,u_targetColor:ra,u_opacitylinear:Number(vr.enable),u_opacitylinear_dir:vr.dir==="up"?1:0,u_lightEnable:Number(zo)}}},{key:"initModels",value:function(){var c=(0,Pa.Z)(Qi().mark(function g(){return Qi().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.abrupt("return",this.buildModels());case 1:case"end":return B.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"buildModels",value:function(){var c=(0,Pa.Z)(Qi().mark(function g(){var T,B,Z,ee;return Qi().wrap(function(Ze){for(;;)switch(Ze.prev=Ze.next){case 0:return T=this.layer.getLayerConfig(),B=T.animateOption.repeat,Z=B===void 0?1:B,this.raiseRepeat=Z,Ze.next=4,this.layer.buildLayerModel({moduleName:"pointEarthExtrude",vertexShader:x6,fragmentShader:b6,triangulation:TM,depth:{enable:!0},cull:{enable:!0,face:Ni(this.mapService.version)},blend:this.getBlend()});case 4:return ee=Ze.sent,Ze.abrupt("return",[ee]);case 6:case"end":return Ze.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:Ld.Attribute,descriptor:{name:"a_Size",buffer:{usage:Gi.DYNAMIC_DRAW,data:[],type:Gi.FLOAT},size:3,update:function(g){var T=g.size;if(T){var B=[];return Array.isArray(T)&&(B=T.length===2?[T[0],T[0],T[1]]:T),Array.isArray(T)||(B=[T,T,T]),B}else return[2,2,2]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:Ld.Attribute,descriptor:{name:"a_Normal",buffer:{usage:Gi.STATIC_DRAW,data:[],type:Gi.FLOAT},size:3,update:function(g,T,B,Z,ee){return ee}}}),this.styleAttributeService.registerStyleAttribute({name:"pos",type:Ld.Attribute,descriptor:{name:"a_Pos",buffer:{usage:Gi.DYNAMIC_DRAW,data:[],type:Gi.FLOAT},size:3,update:function(g){var T=Lh(g.coordinates);return wM([T[0],T[1]])}}})}}]),u}(Su);function I4(a){var p=kD();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function kD(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var GM=`uniform float u_additive; uniform float u_opacity : 1; uniform float u_stroke_opacity : 1; uniform float u_stroke_width : 2; @@ -5378,7 +5431,7 @@ void main() { gl_FragColor = filterColor(gl_FragColor); } } -`,Yv=`attribute vec4 a_Color; +`,Jv=`attribute vec4 a_Color; attribute vec3 a_Position; attribute vec3 a_Extrude; attribute float a_Size; @@ -5429,7 +5482,7 @@ void main() { setPickingColor(a_PickingColor); } -`,p$=function(a){(0,ht.Z)(u,a);var p=O4(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,Ue.Z)(u,[{key:"getUninforms",value:function(){var l=this.layer.getLayerConfig(),g=l.opacity,T=g===void 0?1:g,B=l.strokeOpacity,G=B===void 0?1:B,te=l.strokeWidth,Me=te===void 0?0:te,Ge=l.stroke,St=Ge===void 0?"rgba(0,0,0,0)":Ge,Mt=l.blend,In=l.blur,kn=In===void 0?0:In;return{u_blur:kn,u_additive:Mt==="additive"?1:0,u_opacity:T,u_stroke_opacity:G,u_stroke_width:Me,u_stroke_color:Kr(St)}}},{key:"getAnimateUniforms",value:function(){var l=this.layer.getLayerConfig(),g=l.animateOption,T=g===void 0?{enable:!1}:g;return{u_animate:this.animateOption2Array(T),u_time:this.layer.getLayerAnimateTime()}}},{key:"initModels",value:function(){var c=(0,ka.Z)(Qi().mark(function g(){return Qi().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.abrupt("return",this.buildModels());case 1:case"end":return B.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"buildModels",value:function(){var c=(0,ka.Z)(Qi().mark(function g(){var T;return Qi().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return this.layer.triangulation=c6,G.next=3,this.layer.buildLayerModel({moduleName:"pointEarthFill",vertexShader:Yv,fragmentShader:YM,triangulation:c6,depth:{enable:!0},blend:this.getBlend()});case 3:return T=G.sent,G.abrupt("return",[T]);case 5:case"end":return G.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"animateOption2Array",value:function(l){return[l.enable?0:1,l.speed||1,l.rings||3,0]}},{key:"registerBuiltinAttributes",value:function(){var l=this;this.styleAttributeService.registerStyleAttribute({name:"extrude",type:Ld.Attribute,descriptor:{name:"a_Extrude",buffer:{usage:Gi.DYNAMIC_DRAW,data:[],type:Gi.FLOAT},size:3,update:function(T,B,G,te){var Me=(0,Qn.Z)(G,3),Ge=Me[0],St=Me[1],Mt=Me[2],In=Yg(0,0,1),kn=Yg(Ge,0,Mt),Sr=Ge>=0?EM(In,kn):Math.PI*2-EM(In,kn),_i=Math.PI*2-Math.asin(St/100),Vo=nn();oc(Vo,Vo,Sr),pu(Vo,Vo,_i);var zo=Yg(1,1,0);uD(zo,zo,Vo),A2(zo,zo);var Ks=Yg(-1,1,0);uD(Ks,Ks,Vo),A2(Ks,Ks);var ca=Yg(-1,-1,0);uD(ca,ca,Vo),A2(ca,ca);var Ia=Yg(1,-1,0);uD(Ia,Ia,Vo),A2(Ia,Ia);var al=[].concat((0,kr.Z)(zo),(0,kr.Z)(Ks),(0,kr.Z)(ca),(0,kr.Z)(Ia)),jl=te%4*3;return[al[jl],al[jl+1],al[jl+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:Ld.Attribute,descriptor:{name:"a_Size",buffer:{usage:Gi.DYNAMIC_DRAW,data:[],type:Gi.FLOAT},size:1,update:function(T){var B=T.size,G=B===void 0?5:B;return Array.isArray(G)?[G[0]]:[G]}}}),this.styleAttributeService.registerStyleAttribute({name:"shape",type:Ld.Attribute,descriptor:{name:"a_Shape",buffer:{usage:Gi.DYNAMIC_DRAW,data:[],type:Gi.FLOAT},size:1,update:function(T){var B=T.shape,G=B===void 0?2:B,te=l.layer.getLayerConfig().shape2d,Me=te.indexOf(G);return[Me]}}})}}]),u}(Su);function PD(a){var p=L6();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function L6(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var kD=`varying vec4 v_color; +`,S$=function(a){(0,dt.Z)(u,a);var p=I4(u);function u(){return(0,wt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"getUninforms",value:function(){var l=this.layer.getLayerConfig(),g=l.opacity,T=g===void 0?1:g,B=l.strokeOpacity,Z=B===void 0?1:B,ee=l.strokeWidth,Pe=ee===void 0?0:ee,Ze=l.stroke,St=Ze===void 0?"rgba(0,0,0,0)":Ze,Mt=l.blend,Tn=l.blur,kn=Tn===void 0?0:Tn;return{u_blur:kn,u_additive:Mt==="additive"?1:0,u_opacity:T,u_stroke_opacity:Z,u_stroke_width:Pe,u_stroke_color:Kr(St)}}},{key:"getAnimateUniforms",value:function(){var l=this.layer.getLayerConfig(),g=l.animateOption,T=g===void 0?{enable:!1}:g;return{u_animate:this.animateOption2Array(T),u_time:this.layer.getLayerAnimateTime()}}},{key:"initModels",value:function(){var c=(0,Pa.Z)(Qi().mark(function g(){return Qi().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.abrupt("return",this.buildModels());case 1:case"end":return B.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"buildModels",value:function(){var c=(0,Pa.Z)(Qi().mark(function g(){var T;return Qi().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return this.layer.triangulation=n6,Z.next=3,this.layer.buildLayerModel({moduleName:"pointEarthFill",vertexShader:Jv,fragmentShader:GM,triangulation:n6,depth:{enable:!0},blend:this.getBlend()});case 3:return T=Z.sent,Z.abrupt("return",[T]);case 5:case"end":return Z.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"animateOption2Array",value:function(l){return[l.enable?0:1,l.speed||1,l.rings||3,0]}},{key:"registerBuiltinAttributes",value:function(){var l=this;this.styleAttributeService.registerStyleAttribute({name:"extrude",type:Ld.Attribute,descriptor:{name:"a_Extrude",buffer:{usage:Gi.DYNAMIC_DRAW,data:[],type:Gi.FLOAT},size:3,update:function(T,B,Z,ee){var Pe=(0,qn.Z)(Z,3),Ze=Pe[0],St=Pe[1],Mt=Pe[2],Tn=$g(0,0,1),kn=$g(Ze,0,Mt),vr=Ze>=0?CM(Tn,kn):Math.PI*2-CM(Tn,kn),wi=Math.PI*2-Math.asin(St/100),zo=nn();ic(zo,zo,vr),pu(zo,zo,wi);var $o=$g(1,1,0);dD($o,$o,zo),$2($o,$o);var Ks=$g(-1,1,0);dD(Ks,Ks,zo),$2(Ks,Ks);var ra=$g(-1,-1,0);dD(ra,ra,zo),$2(ra,ra);var La=$g(1,-1,0);dD(La,La,zo),$2(La,La);var vl=[].concat((0,kr.Z)($o),(0,kr.Z)(Ks),(0,kr.Z)(ra),(0,kr.Z)(La)),Wl=ee%4*3;return[vl[Wl],vl[Wl+1],vl[Wl+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:Ld.Attribute,descriptor:{name:"a_Size",buffer:{usage:Gi.DYNAMIC_DRAW,data:[],type:Gi.FLOAT},size:1,update:function(T){var B=T.size,Z=B===void 0?5:B;return Array.isArray(Z)?[Z[0]]:[Z]}}}),this.styleAttributeService.registerStyleAttribute({name:"shape",type:Ld.Attribute,descriptor:{name:"a_Shape",buffer:{usage:Gi.DYNAMIC_DRAW,data:[],type:Gi.FLOAT},size:1,update:function(T){var B=T.shape,Z=B===void 0?2:B,ee=l.layer.getLayerConfig().shape2d,Pe=ee.indexOf(Z);return[Pe]}}})}}]),u}(Su);function MD(a){var p=C6();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function C6(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var OD=`varying vec4 v_color; varying float v_lightWeight; uniform float u_pickLight: 0.0; @@ -5447,7 +5500,7 @@ void main() { gl_FragColor = filterColor(gl_FragColor); } } -`,P6=`precision highp float; +`,w6=`precision highp float; #define pi 3.1415926535 #define ambientRatio 0.5 @@ -5556,7 +5609,7 @@ void main() { setPickingColor(a_PickingColor); } -`,O2=function(a){(0,ht.Z)(u,a);var p=PD(u);function u(){var c;(0,bt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T0&&T.enable){var Ia=T.speed,al=Ia===void 0?.01:Ia;this.raiseCount+=al,this.raiseCount>=1&&(this.raiseRepeat>1?(this.raiseCount=0,this.raiseRepeat--):this.raiseCount=1)}return{u_pickLight:Number(St),u_heightfixed:Number(In),u_r:T.enable&&this.raiseRepeat>0?this.raiseCount:1,u_opacity:G,u_linearColor:zo,u_sourceColor:Ks,u_targetColor:ca,u_opacitylinear:Number(Sr.enable),u_opacitylinear_dir:Sr.dir==="up"?1:0,u_lightEnable:Number(Vo)}}},{key:"initModels",value:function(){var c=(0,ka.Z)(Qi().mark(function g(){return Qi().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.abrupt("return",this.buildModels());case 1:case"end":return B.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"buildModels",value:function(){var c=(0,ka.Z)(Qi().mark(function g(){var T,B,G,te,Me,Ge;return Qi().wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return T=this.layer.getLayerConfig(),B=T.depth,G=B===void 0?!0:B,te=T.animateOption.repeat,Me=te===void 0?1:te,this.raiseRepeat=Me,Mt.next=4,this.layer.buildLayerModel({moduleName:"pointExtrude",vertexShader:P6,fragmentShader:kD,triangulation:IM,cull:{enable:!0,face:Ni(this.mapService.version)},depth:{enable:G}});case 4:return Ge=Mt.sent,Mt.abrupt("return",[Ge]);case 6:case"end":return Mt.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:Ld.Attribute,descriptor:{name:"a_Size",buffer:{usage:Gi.DYNAMIC_DRAW,data:[],type:Gi.FLOAT},size:3,update:function(g){var T=g.size;if(T){var B=[];return Array.isArray(T)&&(B=T.length===2?[T[0],T[0],T[1]]:T),Array.isArray(T)||(B=[T,T,T]),B}else return[2,2,2]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:Ld.Attribute,descriptor:{name:"a_Normal",buffer:{usage:Gi.STATIC_DRAW,data:[],type:Gi.FLOAT},size:3,update:function(g,T,B,G,te){return te}}}),this.styleAttributeService.registerStyleAttribute({name:"pos",type:Ld.Attribute,descriptor:{name:"a_Pos",buffer:{usage:Gi.DYNAMIC_DRAW,data:[],type:Gi.FLOAT},size:3,update:function(g){var T=Lh(g.coordinates);return[T[0],T[1],0]}}})}}]),u}(Su);function g$(a){var p=k6();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function k6(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var M6=` +`,Z2=function(a){(0,dt.Z)(u,a);var p=MD(u);function u(){var c;(0,wt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T0&&T.enable){var La=T.speed,vl=La===void 0?.01:La;this.raiseCount+=vl,this.raiseCount>=1&&(this.raiseRepeat>1?(this.raiseCount=0,this.raiseRepeat--):this.raiseCount=1)}return{u_pickLight:Number(St),u_heightfixed:Number(Tn),u_r:T.enable&&this.raiseRepeat>0?this.raiseCount:1,u_opacity:Z,u_linearColor:$o,u_sourceColor:Ks,u_targetColor:ra,u_opacitylinear:Number(vr.enable),u_opacitylinear_dir:vr.dir==="up"?1:0,u_lightEnable:Number(zo)}}},{key:"initModels",value:function(){var c=(0,Pa.Z)(Qi().mark(function g(){return Qi().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.abrupt("return",this.buildModels());case 1:case"end":return B.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"buildModels",value:function(){var c=(0,Pa.Z)(Qi().mark(function g(){var T,B,Z,ee,Pe,Ze;return Qi().wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return T=this.layer.getLayerConfig(),B=T.depth,Z=B===void 0?!0:B,ee=T.animateOption.repeat,Pe=ee===void 0?1:ee,this.raiseRepeat=Pe,Mt.next=4,this.layer.buildLayerModel({moduleName:"pointExtrude",vertexShader:w6,fragmentShader:OD,triangulation:TM,cull:{enable:!0,face:Ni(this.mapService.version)},depth:{enable:Z}});case 4:return Ze=Mt.sent,Mt.abrupt("return",[Ze]);case 6:case"end":return Mt.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:Ld.Attribute,descriptor:{name:"a_Size",buffer:{usage:Gi.DYNAMIC_DRAW,data:[],type:Gi.FLOAT},size:3,update:function(g){var T=g.size;if(T){var B=[];return Array.isArray(T)&&(B=T.length===2?[T[0],T[0],T[1]]:T),Array.isArray(T)||(B=[T,T,T]),B}else return[2,2,2]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:Ld.Attribute,descriptor:{name:"a_Normal",buffer:{usage:Gi.STATIC_DRAW,data:[],type:Gi.FLOAT},size:3,update:function(g,T,B,Z,ee){return ee}}}),this.styleAttributeService.registerStyleAttribute({name:"pos",type:Ld.Attribute,descriptor:{name:"a_Pos",buffer:{usage:Gi.DYNAMIC_DRAW,data:[],type:Gi.FLOAT},size:3,update:function(g){var T=Lh(g.coordinates);return[T[0],T[1],0]}}})}}]),u}(Su);function E$(a){var p=S6();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function S6(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var E6=` uniform float u_additive; @@ -5611,7 +5664,7 @@ void main() { gl_FragColor = filterColor(gl_FragColor); } } -`,m$=`uniform float u_additive; +`,T$=`uniform float u_additive; uniform float u_stroke_opacity : 1; uniform float u_stroke_width : 2; @@ -5688,7 +5741,7 @@ void main() { discard; } } -`,qM=`attribute vec4 a_Color; +`,KM=`attribute vec4 a_Color; attribute vec3 a_Position; attribute vec3 a_Extrude; attribute float a_Size; @@ -5766,7 +5819,7 @@ void main() { setPickingColor(a_PickingColor); } -`,j_=function(a){(0,ht.Z)(u,a);var p=g$(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,Ue.Z)(u,[{key:"getUninforms",value:function(){var l=this.layer.getLayerConfig(),g=l.strokeOpacity,T=g===void 0?1:g,B=l.strokeWidth,G=B===void 0?0:B,te=l.blend,Me=l.blur,Ge=Me===void 0?0:Me,St=l.raisingHeight,Mt=St===void 0?0:St,In=l.heightfixed,kn=In===void 0?!1:In,Sr=l.unit,_i=Sr===void 0?"pixel":Sr;return(0,Ce.Z)({u_blur_height_fixed:[Ge,Number(Mt),Number(kn)],u_additive:te==="additive"?1:0,u_stroke_opacity:T,u_stroke_width:G,u_size_unit:jh[_i]},this.getStyleAttribute())}},{key:"getAnimateUniforms",value:function(){var l=this.layer.getLayerConfig(),g=l.animateOption,T=g===void 0?{enable:!1}:g;return{u_animate:this.animateOption2Array(T),u_time:this.layer.getLayerAnimateTime()}}},{key:"getAttribute",value:function(){return this.styleAttributeService.createAttributesAndIndices(this.layer.getEncodedData(),Vt)}},{key:"initModels",value:function(){var c=(0,ka.Z)(Qi().mark(function g(){return Qi().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.abrupt("return",this.buildModels());case 1:case"end":return B.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"buildModels",value:function(){var c=(0,ka.Z)(Qi().mark(function g(){var T,B,G,te,Me,Ge,St,Mt;return Qi().wrap(function(kn){for(;;)switch(kn.prev=kn.next){case 0:return T=this.layer.getLayerConfig(),B=T.animateOption,G=B===void 0?{enable:!1}:B,te=this.getShaders(G),Me=te.frag,Ge=te.vert,St=te.type,this.layer.triangulation=Vt,kn.next=5,this.layer.buildLayerModel({moduleName:St,vertexShader:Ge,fragmentShader:Me,inject:this.getInject(),triangulation:Vt,depth:{enable:!1}});case 5:return Mt=kn.sent,kn.abrupt("return",[Mt]);case 7:case"end":return kn.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"getShaders",value:function(l){if(l.enable)switch(l.type){case"wave":return{frag:M6,vert:qM,type:"pointWave"};default:return{frag:M6,vert:qM,type:"pointWave"}}else return{frag:m$,vert:qM,type:"pointFill"}}},{key:"animateOption2Array",value:function(l){return[l.enable?0:1,l.speed||1,l.rings||3,0]}},{key:"registerBuiltinAttributes",value:function(){var l=this.layer.getLayerConfig().shape2d;this.styleAttributeService.registerStyleAttribute({name:"extrude",type:Ld.Attribute,descriptor:{name:"a_Extrude",buffer:{usage:Gi.DYNAMIC_DRAW,data:[],type:Gi.FLOAT},size:3,update:function(T,B,G,te){var Me=[1,1,0,-1,1,0,-1,-1,0,1,-1,0],Ge=te%4*3;return[Me[Ge],Me[Ge+1],Me[Ge+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:Ld.Attribute,descriptor:{name:"a_Size",buffer:{usage:Gi.DYNAMIC_DRAW,data:[],type:Gi.FLOAT},size:1,update:function(T){var B=T.size,G=B===void 0?5:B;return Array.isArray(G)?[G[0]]:[G]}}}),this.styleAttributeService.registerStyleAttribute({name:"shape",type:Ld.Attribute,descriptor:{name:"a_Shape",buffer:{usage:Gi.DYNAMIC_DRAW,data:[],type:Gi.FLOAT},size:1,update:function(T){var B=T.shape,G=B===void 0?2:B,te=l.indexOf(G);return[te]}}})}}]),u}(Su);function Ay(a){var p=MD();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function MD(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var R4=`uniform sampler2D u_texture; +`,$_=function(a){(0,dt.Z)(u,a);var p=E$(u);function u(){return(0,wt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"getUninforms",value:function(){var l=this.layer.getLayerConfig(),g=l.strokeOpacity,T=g===void 0?1:g,B=l.strokeWidth,Z=B===void 0?0:B,ee=l.blend,Pe=l.blur,Ze=Pe===void 0?0:Pe,St=l.raisingHeight,Mt=St===void 0?0:St,Tn=l.heightfixed,kn=Tn===void 0?!1:Tn,vr=l.unit,wi=vr===void 0?"pixel":vr;return(0,xe.Z)({u_blur_height_fixed:[Ze,Number(Mt),Number(kn)],u_additive:ee==="additive"?1:0,u_stroke_opacity:T,u_stroke_width:Z,u_size_unit:Wh[wi]},this.getStyleAttribute())}},{key:"getAnimateUniforms",value:function(){var l=this.layer.getLayerConfig(),g=l.animateOption,T=g===void 0?{enable:!1}:g;return{u_animate:this.animateOption2Array(T),u_time:this.layer.getLayerAnimateTime()}}},{key:"getAttribute",value:function(){return this.styleAttributeService.createAttributesAndIndices(this.layer.getEncodedData(),Vt)}},{key:"initModels",value:function(){var c=(0,Pa.Z)(Qi().mark(function g(){return Qi().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.abrupt("return",this.buildModels());case 1:case"end":return B.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"buildModels",value:function(){var c=(0,Pa.Z)(Qi().mark(function g(){var T,B,Z,ee,Pe,Ze,St,Mt;return Qi().wrap(function(kn){for(;;)switch(kn.prev=kn.next){case 0:return T=this.layer.getLayerConfig(),B=T.animateOption,Z=B===void 0?{enable:!1}:B,ee=this.getShaders(Z),Pe=ee.frag,Ze=ee.vert,St=ee.type,this.layer.triangulation=Vt,kn.next=5,this.layer.buildLayerModel({moduleName:St,vertexShader:Ze,fragmentShader:Pe,inject:this.getInject(),triangulation:Vt,depth:{enable:!1}});case 5:return Mt=kn.sent,kn.abrupt("return",[Mt]);case 7:case"end":return kn.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"getShaders",value:function(l){if(l.enable)switch(l.type){case"wave":return{frag:E6,vert:KM,type:"pointWave"};default:return{frag:E6,vert:KM,type:"pointWave"}}else return{frag:T$,vert:KM,type:"pointFill"}}},{key:"animateOption2Array",value:function(l){return[l.enable?0:1,l.speed||1,l.rings||3,0]}},{key:"registerBuiltinAttributes",value:function(){var l=this.layer.getLayerConfig().shape2d;this.styleAttributeService.registerStyleAttribute({name:"extrude",type:Ld.Attribute,descriptor:{name:"a_Extrude",buffer:{usage:Gi.DYNAMIC_DRAW,data:[],type:Gi.FLOAT},size:3,update:function(T,B,Z,ee){var Pe=[1,1,0,-1,1,0,-1,-1,0,1,-1,0],Ze=ee%4*3;return[Pe[Ze],Pe[Ze+1],Pe[Ze+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:Ld.Attribute,descriptor:{name:"a_Size",buffer:{usage:Gi.DYNAMIC_DRAW,data:[],type:Gi.FLOAT},size:1,update:function(T){var B=T.size,Z=B===void 0?5:B;return Array.isArray(Z)?[Z[0]]:[Z]}}}),this.styleAttributeService.registerStyleAttribute({name:"shape",type:Ld.Attribute,descriptor:{name:"a_Shape",buffer:{usage:Gi.DYNAMIC_DRAW,data:[],type:Gi.FLOAT},size:1,update:function(T){var B=T.shape,Z=B===void 0?2:B,ee=l.indexOf(Z);return[ee]}}})}}]),u}(Su);function I1(a){var p=RD();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function RD(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var L4=`uniform sampler2D u_texture; uniform vec2 u_textSize; uniform float u_opacity : 1; @@ -5784,7 +5837,7 @@ void main() { gl_FragColor = filterColor(gl_FragColor); } -`,JM=`attribute vec4 a_Color; +`,XM=`attribute vec4 a_Color; attribute vec3 a_Position; attribute vec3 a_Extrude; attribute float a_Size; @@ -5843,7 +5896,7 @@ void main() { setPickingColor(a_PickingColor); } -`,U3=function(a){(0,ht.Z)(u,a);var p=Ay(u);function u(){var c;(0,bt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(te){throw te},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var te=u.next();return g=te.done,te},e:function(te){T=!0,B=te},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function xE(a,p){if(a){if(typeof a=="string")return CE(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return CE(a,p)}}function CE(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);uthis.width||g<0||c>this.height)return T?!1:[];var G=[];if(u<=0&&c<=0&&this.width<=l&&this.height<=g){if(T)return!0;for(var te=0;te0:G}},{key:"queryCell",value:function(u,c,l,g,T,B,G,te){var Me=G.seenUids,Ge=this.boxCells[T];if(Ge!==null){var St=this.bboxes,Mt=OD(Ge),In;try{for(Mt.s();!(In=Mt.n()).done;){var kn=In.value;if(!Me.box[kn]){Me.box[kn]=!0;var Sr=kn*4;if(u<=St[Sr+2]&&c<=St[Sr+3]&&l>=St[Sr+0]&&g>=St[Sr+1]&&(!te||te(this.boxKeys[kn]))){if(G.hitTest)return B.push(!0),!0;B.push({key:this.boxKeys[kn],x1:St[Sr],y1:St[Sr+1],x2:St[Sr+2],y2:St[Sr+3]})}}}}catch(_i){Mt.e(_i)}finally{Mt.f()}}return!1}},{key:"forEachCell",value:function(u,c,l,g,T,B,G,te){for(var Me=this.convertToXCellCoord(u),Ge=this.convertToYCellCoord(c),St=this.convertToXCellCoord(l),Mt=this.convertToYCellCoord(g),In=Me;In<=St;In++)for(var kn=Ge;kn<=Mt;kn++){var Sr=this.xCellCount*kn+In;if(T.call(this,u,c,l,g,Sr,B,G,te))return}}},{key:"convertToXCellCoord",value:function(u){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(u*this.xScale)))}},{key:"convertToYCellCoord",value:function(u){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(u*this.yScale)))}}]),a}(),eO=Eh,B6=function(){function a(p,u){(0,bt.Z)(this,a),(0,bn.Z)(this,"viewportPadding",100),this.width=p,this.height=u,this.viewportPadding=Math.max(p,u),this.grid=new eO(p+this.viewportPadding,u+this.viewportPadding,25),this.screenRightBoundary=p+this.viewportPadding,this.screenBottomBoundary=u+this.viewportPadding,this.gridRightBoundary=p+2*this.viewportPadding,this.gridBottomBoundary=u+2*this.viewportPadding}return(0,Ue.Z)(a,[{key:"placeCollisionBox",value:function(u){var c=u.x1+u.anchorPointX+this.viewportPadding,l=u.y1+u.anchorPointY+this.viewportPadding,g=u.x2+u.anchorPointX+this.viewportPadding,T=u.y2+u.anchorPointY+this.viewportPadding;return!this.isInsideGrid(c,l,g,T)||this.grid.hitTest(c,l,g,T)?{box:[]}:{box:[c,l,g,T]}}},{key:"insertCollisionBox",value:function(u,c){var l={featureIndex:c};this.grid.insert(l,u[0],u[1],u[2],u[3])}},{key:"project",value:function(u,c,l){var g=Sp(c,l,0,1),T=Tg(),B=Mi.apply(b,(0,kr.Z)(u));return q0(T,g,B),{x:(T[0]/T[3]+1)/2*this.width+this.viewportPadding,y:(-T[1]/T[3]+1)/2*this.height+this.viewportPadding}}},{key:"isInsideGrid",value:function(u,c,l,g){return l>=0&&u=0&&c=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(te){throw te},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var te=u.next();return g=te.done,te},e:function(te){T=!0,B=te},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function Z3(a,p){if(a){if(typeof a=="string")return R2(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return R2(a,p)}}function R2(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);u6&&arguments[6]!==void 0?arguments[6]:[0,0],B=arguments.length>7?arguments[7]:void 0,G=a.split(` -`),te=[],Me={positionedGlyphs:te,top:T[1],bottom:T[1],left:T[0],right:T[0],lineCount:G.length,text:a};return B?N2(Me,p,G,u,c,l,g):wE(Me,p,G,u,c,l,g),te.length?Me:!1}function r1(a){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0,0],u=arguments.length>2?arguments[2]:void 0,c=a.positionedGlyphs,l=c===void 0?[]:c,g=[],T=z6(l),B;try{for(T.s();!(B=T.n()).done;){var G=B.value,te=G.metrics,Me=4,Ge=te.advance*G.scale/2,St=u?[G.x+Ge,G.y]:[0,0],Mt=u?[0,0]:[G.x+Ge+p[0],G.y+p[1]],In=(0-Me)*G.scale-Ge+Mt[0],kn=(0-Me)*G.scale+Mt[1],Sr=In+te.width*G.scale,_i=kn+te.height*G.scale,Vo={x:In,y:kn},zo={x:Sr,y:kn},Ks={x:In,y:_i},ca={x:Sr,y:_i};g.push({tl:Vo,tr:zo,bl:Ks,br:ca,tex:te,glyphOffset:St})}}catch(Ia){T.e(Ia)}finally{T.f()}return g}function E$(a,p){var u=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!u){if(Array.isArray(a)||(u=T$(a))||p&&a&&typeof a.length=="number"){u&&(a=u);var c=0,l=function(){};return{s:l,n:function(){return c>=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(te){throw te},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var te=u.next();return g=te.done,te},e:function(te){T=!0,B=te},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function T$(a,p){if(a){if(typeof a=="string")return nO(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return nO(a,p)}}function nO(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);u=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(ee){throw ee},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var ee=u.next();return g=ee.done,ee},e:function(ee){T=!0,B=ee},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function ME(a,p){if(a){if(typeof a=="string")return OE(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return OE(a,p)}}function OE(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);uthis.width||g<0||c>this.height)return T?!1:[];var Z=[];if(u<=0&&c<=0&&this.width<=l&&this.height<=g){if(T)return!0;for(var ee=0;ee0:Z}},{key:"queryCell",value:function(u,c,l,g,T,B,Z,ee){var Pe=Z.seenUids,Ze=this.boxCells[T];if(Ze!==null){var St=this.bboxes,Mt=ND(Ze),Tn;try{for(Mt.s();!(Tn=Mt.n()).done;){var kn=Tn.value;if(!Pe.box[kn]){Pe.box[kn]=!0;var vr=kn*4;if(u<=St[vr+2]&&c<=St[vr+3]&&l>=St[vr+0]&&g>=St[vr+1]&&(!ee||ee(this.boxKeys[kn]))){if(Z.hitTest)return B.push(!0),!0;B.push({key:this.boxKeys[kn],x1:St[vr],y1:St[vr+1],x2:St[vr+2],y2:St[vr+3]})}}}}catch(wi){Mt.e(wi)}finally{Mt.f()}}return!1}},{key:"forEachCell",value:function(u,c,l,g,T,B,Z,ee){for(var Pe=this.convertToXCellCoord(u),Ze=this.convertToYCellCoord(c),St=this.convertToXCellCoord(l),Mt=this.convertToYCellCoord(g),Tn=Pe;Tn<=St;Tn++)for(var kn=Ze;kn<=Mt;kn++){var vr=this.xCellCount*kn+Tn;if(T.call(this,u,c,l,g,vr,B,Z,ee))return}}},{key:"convertToXCellCoord",value:function(u){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(u*this.xScale)))}},{key:"convertToYCellCoord",value:function(u){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(u*this.yScale)))}}]),a}(),qM=Eh,L6=function(){function a(p,u){(0,wt.Z)(this,a),(0,bn.Z)(this,"viewportPadding",100),this.width=p,this.height=u,this.viewportPadding=Math.max(p,u),this.grid=new qM(p+this.viewportPadding,u+this.viewportPadding,25),this.screenRightBoundary=p+this.viewportPadding,this.screenBottomBoundary=u+this.viewportPadding,this.gridRightBoundary=p+2*this.viewportPadding,this.gridBottomBoundary=u+2*this.viewportPadding}return(0,He.Z)(a,[{key:"placeCollisionBox",value:function(u){var c=u.x1+u.anchorPointX+this.viewportPadding,l=u.y1+u.anchorPointY+this.viewportPadding,g=u.x2+u.anchorPointX+this.viewportPadding,T=u.y2+u.anchorPointY+this.viewportPadding;return!this.isInsideGrid(c,l,g,T)||this.grid.hitTest(c,l,g,T)?{box:[]}:{box:[c,l,g,T]}}},{key:"insertCollisionBox",value:function(u,c){var l={featureIndex:c};this.grid.insert(l,u[0],u[1],u[2],u[3])}},{key:"project",value:function(u,c,l){var g=Ep(c,l,0,1),T=Tg(),B=Mi.apply(b,(0,kr.Z)(u));return X0(T,g,B),{x:(T[0]/T[3]+1)/2*this.width+this.viewportPadding,y:(-T[1]/T[3]+1)/2*this.height+this.viewportPadding}}},{key:"isInsideGrid",value:function(u,c,l,g){return l>=0&&u=0&&c=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(ee){throw ee},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var ee=u.next();return g=ee.done,ee},e:function(ee){T=!0,B=ee},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function H3(a,p){if(a){if(typeof a=="string")return G2(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return G2(a,p)}}function G2(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);u6&&arguments[6]!==void 0?arguments[6]:[0,0],B=arguments.length>7?arguments[7]:void 0,Z=a.split(` +`),ee=[],Pe={positionedGlyphs:ee,top:T[1],bottom:T[1],left:T[0],right:T[0],lineCount:Z.length,text:a};return B?K2(Pe,p,Z,u,c,l,g):RE(Pe,p,Z,u,c,l,g),ee.length?Pe:!1}function ny(a){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0,0],u=arguments.length>2?arguments[2]:void 0,c=a.positionedGlyphs,l=c===void 0?[]:c,g=[],T=P6(l),B;try{for(T.s();!(B=T.n()).done;){var Z=B.value,ee=Z.metrics,Pe=4,Ze=ee.advance*Z.scale/2,St=u?[Z.x+Ze,Z.y]:[0,0],Mt=u?[0,0]:[Z.x+Ze+p[0],Z.y+p[1]],Tn=(0-Pe)*Z.scale-Ze+Mt[0],kn=(0-Pe)*Z.scale+Mt[1],vr=Tn+ee.width*Z.scale,wi=kn+ee.height*Z.scale,zo={x:Tn,y:kn},$o={x:vr,y:kn},Ks={x:Tn,y:wi},ra={x:vr,y:wi};g.push({tl:zo,tr:$o,bl:Ks,br:ra,tex:ee,glyphOffset:St})}}catch(La){T.e(La)}finally{T.f()}return g}function R$(a,p){var u=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!u){if(Array.isArray(a)||(u=N$(a))||p&&a&&typeof a.length=="number"){u&&(a=u);var c=0,l=function(){};return{s:l,n:function(){return c>=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(ee){throw ee},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var ee=u.next();return g=ee.done,ee},e:function(ee){T=!0,B=ee},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function N$(a,p){if(a){if(typeof a=="string")return QM(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return QM(a,p)}}function QM(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);u.5||!_i||G!==this.preTextStyle.textAllowOverlap)){zo.next=14;break}return zo.next=13,this.reBuildModel();case 13:return zo.abrupt("return",!0);case 14:return zo.abrupt("return",!1);case 15:case"end":return zo.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"clearModels",value:function(){var l;(l=this.texture)===null||l===void 0||l.destroy(),this.layer.off("remapping",this.mapping)}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"textOffsets",type:Ld.Attribute,descriptor:{name:"a_textOffsets",buffer:{usage:Gi.STATIC_DRAW,data:[],type:Gi.FLOAT},size:2,update:function(g,T,B){return[B[5],B[6]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:Ld.Attribute,descriptor:{name:"a_Size",buffer:{usage:Gi.DYNAMIC_DRAW,data:[],type:Gi.FLOAT},size:1,update:function(g){var T=g.size,B=T===void 0?12:T;return Array.isArray(B)?[B[0]]:[B]}}}),this.styleAttributeService.registerStyleAttribute({name:"textUv",type:Ld.Attribute,descriptor:{name:"a_tex",buffer:{usage:Gi.DYNAMIC_DRAW,data:[],type:Gi.FLOAT},size:2,update:function(g,T,B){return[B[3],B[4]]}}})}},{key:"bindEvent",value:function(){this.layer.isTileLayer||this.layer.on("remapping",this.mapping)}},{key:"textExtent",value:function(){var l=this.mapService.getBounds();return Wd(l,.5)}},{key:"initTextFont",value:function(){var l=this.getTextStyle(),g=l.fontWeight,T=l.fontFamily,B=this.rawEncodeData,G=[];B.forEach(function(te){var Me=te.shape,Ge=Me===void 0?"":Me;Ge=Ge.toString();var St=E$(Ge),Mt;try{for(St.s();!(Mt=St.n()).done;){var In=Mt.value;G.indexOf(In)===-1&&G.push(In)}}catch(kn){St.e(kn)}finally{St.f()}}),this.fontService.setFontOptions({characterSet:G,fontWeight:g,fontFamily:T,iconfont:!1})}},{key:"initIconFontTex",value:function(){var l=this.getTextStyle(),g=l.fontWeight,T=l.fontFamily,B=this.rawEncodeData,G=[];B.forEach(function(te){var Me=te.shape,Ge=Me===void 0?"":Me;Ge="".concat(Ge),G.indexOf(Ge)===-1&&G.push(Ge)}),this.fontService.setFontOptions({characterSet:G,fontWeight:g,fontFamily:T,iconfont:!0})}},{key:"getTextStyle",value:function(){var l=this.layer.getLayerConfig(),g=l.fontWeight,T=g===void 0?"400":g,B=l.fontFamily,G=B===void 0?"sans-serif":B,te=l.textAllowOverlap,Me=te===void 0?!1:te,Ge=l.padding,St=Ge===void 0?[0,0]:Ge,Mt=l.textAnchor,In=Mt===void 0?"center":Mt,kn=l.textOffset,Sr=kn===void 0?[0,0]:kn,_i=l.opacity,Vo=_i===void 0?1:_i,zo=l.strokeOpacity,Ks=zo===void 0?1:zo,ca=l.strokeWidth,Ia=ca===void 0?0:ca,al=l.stroke,jl=al===void 0?"#000":al;return{fontWeight:T,fontFamily:G,textAllowOverlap:Me,padding:St,textAnchor:In,textOffset:Sr,opacity:Vo,strokeOpacity:Ks,strokeWidth:Ia,stroke:jl}}},{key:"generateGlyphLayout",value:function(l){var g=this,T=this.getFontServiceMapping(),B=this.layer.getLayerConfig(),G=B.spacing,te=G===void 0?2:G,Me=B.textAnchor,Ge=Me===void 0?"center":Me,St=B.textOffset,Mt=this.rawEncodeData;this.glyphInfo=Mt.map(function(In){var kn=In.shape,Sr=kn===void 0?"":kn,_i=In.id,Vo=In.size,zo=Vo===void 0?1:Vo,Ks=In.textOffset?In.textOffset:St||[0,0],ca=In.textAnchor?In.textAnchor:Ge||"center",Ia=Og(Sr.toString(),T,zo,ca,"left",te,Ks,l),al=r1(Ia,Ks,!1);return In.shaping=Ia,In.glyphQuads=al,In.centroid=Lh(In.coordinates),In.originCentroid=In.version==="GAODE2.x"?Lh(In.originCoordinates):In.originCentroid=In.centroid,g.glyphInfoMap[_i]={shaping:Ia,glyphQuads:al,centroid:Lh(In.coordinates)},In})}},{key:"getFontServiceMapping",value:function(){var l=this.layer.getLayerConfig(),g=l.fontWeight,T=g===void 0?"400":g,B=l.fontFamily,G=B===void 0?"sans-serif":B;return this.fontService.getMappingByKey("".concat(G,"_").concat(T))}},{key:"getFontServiceCanvas",value:function(){var l=this.layer.getLayerConfig(),g=l.fontWeight,T=g===void 0?"400":g,B=l.fontFamily,G=B===void 0?"sans-serif":B;return this.fontService.getCanvasByKey("".concat(G,"_").concat(T))}},{key:"filterGlyphs",value:function(){var l=this,g=this.layer.getLayerConfig(),T=g.padding,B=T===void 0?[0,0]:T,G=g.textAllowOverlap,te=G===void 0?!1:G;if(!te){this.glyphInfoMap={},this.currentZoom=this.mapService.getZoom(),this.extent=this.textExtent();var Me=this.rendererService.getViewportSize(),Ge=Me.width,St=Me.height,Mt=new B6(Ge,St),In=this.glyphInfo.filter(function(kn){var Sr=kn.shaping,_i=kn.id,Vo=_i===void 0?0:_i,zo=kn.version==="GAODE2.x"?kn.originCentroid:kn.centroid,Ks=kn.size,ca=Ks/16,Ia=l.mapService.lngLatToContainer(zo),al=Mt.placeCollisionBox({x1:Sr.left*ca-B[0],x2:Sr.right*ca+B[0],y1:Sr.top*ca-B[1],y2:Sr.bottom*ca+B[1],anchorPointX:Ia.x,anchorPointY:Ia.y}),jl=al.box;return jl&&jl.length?(Mt.insertCollisionBox(jl,Vo),!0):!1});In.forEach(function(kn){l.glyphInfoMap[kn.id]=kn})}}},{key:"initGlyph",value:function(){var l=this.layer.getLayerConfig(),g=l.iconfont,T=g===void 0?!1:g;T?this.initIconFontTex():this.initTextFont(),this.generateGlyphLayout(T)}},{key:"updateTexture",value:function(){var l=this.rendererService.createTexture2D,g=this.getFontServiceCanvas();this.textureHeight=g.height,this.texture&&this.texture.destroy(),this.texture=l({data:g,mag:Gi.LINEAR,min:Gi.LINEAR,width:g.width,height:g.height})}},{key:"reBuildModel",value:function(){var c=(0,ka.Z)(Qi().mark(function g(){var T;return Qi().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return this.filterGlyphs(),G.next=3,this.layer.buildLayerModel({moduleName:"pointText",vertexShader:oO,fragmentShader:iO,triangulation:sO.bind(this),inject:this.getInject(),depth:{enable:!1}});case 3:T=G.sent,this.layer.models=[T];case 5:case"end":return G.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()}]),u}(Su),aO={fillImage:U3,fill:j_,radar:H3,image:yC,normal:N6,simplePoint:f$,extrude:O2,text:B4,earthFill:p$,earthExtrude:tv},$6=aO;function lO(a,p){var u=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!u){if(Array.isArray(a)||(u=j6(a))||p&&a&&typeof a.length=="number"){u&&(a=u);var c=0,l=function(){};return{s:l,n:function(){return c>=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(te){throw te},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var te=u.next();return g=te.done,te},e:function(te){T=!0,B=te},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function j6(a,p){if(a){if(typeof a=="string")return z4(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return z4(a,p)}}function z4(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);u.5||!wi||Z!==this.preTextStyle.textAllowOverlap)){$o.next=14;break}return $o.next=13,this.reBuildModel();case 13:return $o.abrupt("return",!0);case 14:return $o.abrupt("return",!1);case 15:case"end":return $o.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"clearModels",value:function(){var l;(l=this.texture)===null||l===void 0||l.destroy(),this.layer.off("remapping",this.mapping)}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"textOffsets",type:Ld.Attribute,descriptor:{name:"a_textOffsets",buffer:{usage:Gi.STATIC_DRAW,data:[],type:Gi.FLOAT},size:2,update:function(g,T,B){return[B[5],B[6]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:Ld.Attribute,descriptor:{name:"a_Size",buffer:{usage:Gi.DYNAMIC_DRAW,data:[],type:Gi.FLOAT},size:1,update:function(g){var T=g.size,B=T===void 0?12:T;return Array.isArray(B)?[B[0]]:[B]}}}),this.styleAttributeService.registerStyleAttribute({name:"textUv",type:Ld.Attribute,descriptor:{name:"a_tex",buffer:{usage:Gi.DYNAMIC_DRAW,data:[],type:Gi.FLOAT},size:2,update:function(g,T,B){return[B[3],B[4]]}}})}},{key:"bindEvent",value:function(){this.layer.isTileLayer||this.layer.on("remapping",this.mapping)}},{key:"textExtent",value:function(){var l=this.mapService.getBounds();return jd(l,.5)}},{key:"initTextFont",value:function(){var l=this.getTextStyle(),g=l.fontWeight,T=l.fontFamily,B=this.rawEncodeData,Z=[];B.forEach(function(ee){var Pe=ee.shape,Ze=Pe===void 0?"":Pe;Ze=Ze.toString();var St=R$(Ze),Mt;try{for(St.s();!(Mt=St.n()).done;){var Tn=Mt.value;Z.indexOf(Tn)===-1&&Z.push(Tn)}}catch(kn){St.e(kn)}finally{St.f()}}),this.fontService.setFontOptions({characterSet:Z,fontWeight:g,fontFamily:T,iconfont:!1})}},{key:"initIconFontTex",value:function(){var l=this.getTextStyle(),g=l.fontWeight,T=l.fontFamily,B=this.rawEncodeData,Z=[];B.forEach(function(ee){var Pe=ee.shape,Ze=Pe===void 0?"":Pe;Ze="".concat(Ze),Z.indexOf(Ze)===-1&&Z.push(Ze)}),this.fontService.setFontOptions({characterSet:Z,fontWeight:g,fontFamily:T,iconfont:!0})}},{key:"getTextStyle",value:function(){var l=this.layer.getLayerConfig(),g=l.fontWeight,T=g===void 0?"400":g,B=l.fontFamily,Z=B===void 0?"sans-serif":B,ee=l.textAllowOverlap,Pe=ee===void 0?!1:ee,Ze=l.padding,St=Ze===void 0?[0,0]:Ze,Mt=l.textAnchor,Tn=Mt===void 0?"center":Mt,kn=l.textOffset,vr=kn===void 0?[0,0]:kn,wi=l.opacity,zo=wi===void 0?1:wi,$o=l.strokeOpacity,Ks=$o===void 0?1:$o,ra=l.strokeWidth,La=ra===void 0?0:ra,vl=l.stroke,Wl=vl===void 0?"#000":vl;return{fontWeight:T,fontFamily:Z,textAllowOverlap:Pe,padding:St,textAnchor:Tn,textOffset:vr,opacity:zo,strokeOpacity:Ks,strokeWidth:La,stroke:Wl}}},{key:"generateGlyphLayout",value:function(l){var g=this,T=this.getFontServiceMapping(),B=this.layer.getLayerConfig(),Z=B.spacing,ee=Z===void 0?2:Z,Pe=B.textAnchor,Ze=Pe===void 0?"center":Pe,St=B.textOffset,Mt=this.rawEncodeData;this.glyphInfo=Mt.map(function(Tn){var kn=Tn.shape,vr=kn===void 0?"":kn,wi=Tn.id,zo=Tn.size,$o=zo===void 0?1:zo,Ks=Tn.textOffset?Tn.textOffset:St||[0,0],ra=Tn.textAnchor?Tn.textAnchor:Ze||"center",La=Og(vr.toString(),T,$o,ra,"left",ee,Ks,l),vl=ny(La,Ks,!1);return Tn.shaping=La,Tn.glyphQuads=vl,Tn.centroid=Lh(Tn.coordinates),Tn.originCentroid=Tn.version==="GAODE2.x"?Lh(Tn.originCoordinates):Tn.originCentroid=Tn.centroid,g.glyphInfoMap[wi]={shaping:La,glyphQuads:vl,centroid:Lh(Tn.coordinates)},Tn})}},{key:"getFontServiceMapping",value:function(){var l=this.layer.getLayerConfig(),g=l.fontWeight,T=g===void 0?"400":g,B=l.fontFamily,Z=B===void 0?"sans-serif":B;return this.fontService.getMappingByKey("".concat(Z,"_").concat(T))}},{key:"getFontServiceCanvas",value:function(){var l=this.layer.getLayerConfig(),g=l.fontWeight,T=g===void 0?"400":g,B=l.fontFamily,Z=B===void 0?"sans-serif":B;return this.fontService.getCanvasByKey("".concat(Z,"_").concat(T))}},{key:"filterGlyphs",value:function(){var l=this,g=this.layer.getLayerConfig(),T=g.padding,B=T===void 0?[0,0]:T,Z=g.textAllowOverlap,ee=Z===void 0?!1:Z;if(!ee){this.glyphInfoMap={},this.currentZoom=this.mapService.getZoom(),this.extent=this.textExtent();var Pe=this.rendererService.getViewportSize(),Ze=Pe.width,St=Pe.height,Mt=new L6(Ze,St),Tn=this.glyphInfo.filter(function(kn){var vr=kn.shaping,wi=kn.id,zo=wi===void 0?0:wi,$o=kn.version==="GAODE2.x"?kn.originCentroid:kn.centroid,Ks=kn.size,ra=Ks/16,La=l.mapService.lngLatToContainer($o),vl=Mt.placeCollisionBox({x1:vr.left*ra-B[0],x2:vr.right*ra+B[0],y1:vr.top*ra-B[1],y2:vr.bottom*ra+B[1],anchorPointX:La.x,anchorPointY:La.y}),Wl=vl.box;return Wl&&Wl.length?(Mt.insertCollisionBox(Wl,zo),!0):!1});Tn.forEach(function(kn){l.glyphInfoMap[kn.id]=kn})}}},{key:"initGlyph",value:function(){var l=this.layer.getLayerConfig(),g=l.iconfont,T=g===void 0?!1:g;T?this.initIconFontTex():this.initTextFont(),this.generateGlyphLayout(T)}},{key:"updateTexture",value:function(){var l=this.rendererService.createTexture2D,g=this.getFontServiceCanvas();this.textureHeight=g.height,this.texture&&this.texture.destroy(),this.texture=l({data:g,mag:Gi.LINEAR,min:Gi.LINEAR,width:g.width,height:g.height})}},{key:"reBuildModel",value:function(){var c=(0,Pa.Z)(Qi().mark(function g(){var T;return Qi().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return this.filterGlyphs(),Z.next=3,this.layer.buildLayerModel({moduleName:"pointText",vertexShader:nO,fragmentShader:tO,triangulation:rO.bind(this),inject:this.getInject(),depth:{enable:!1}});case 3:T=Z.sent,this.layer.models=[T];case 5:case"end":return Z.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()}]),u}(Su),iO={fillImage:V3,fill:$_,radar:U3,image:AC,normal:A6,simplePoint:w$,extrude:Z2,text:M4,earthFill:S$,earthExtrude:Q0},k6=iO;function oO(a,p){var u=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!u){if(Array.isArray(a)||(u=M6(a))||p&&a&&typeof a.length=="number"){u&&(a=u);var c=0,l=function(){};return{s:l,n:function(){return c>=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(ee){throw ee},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var ee=u.next();return g=ee.done,ee},e:function(ee){T=!0,B=ee},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function M6(a,p){if(a){if(typeof a=="string")return O4(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return O4(a,p)}}function O4(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);u0&&arguments[0]!==void 0?arguments[0]:!0;l&&this.layerService.clear()}},{key:"registerBuiltinAttributes",value:function(){return""}}]),u}(Su),Dw={fill:i8},dj=Dw;function $D(a){var p=yO();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function yO(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var _O=function(a){(0,ht.Z)(u,a);var p=$D(u);function u(){var c;(0,bt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T0&&arguments[0]!==void 0?arguments[0]:!0;l&&this.layerService.clear()}},{key:"registerBuiltinAttributes",value:function(){return""}}]),u}(Su),Fw={fill:Y6},xW=Fw;function jD(a){var p=gO();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function gO(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var mO=function(a){(0,dt.Z)(u,a);var p=jD(u);function u(){var c;(0,wt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T0&&arguments[0]!==void 0?arguments[0]:{},T=this.layer.getLayerConfig(),B=T.opacity;this.layerService.beforeRenderData(this.layer),this.layer.hooks.beforeRender.call(),this.layerService.renderMask(this.layer.masks),(l=this.colorModel)===null||l===void 0||l.draw({uniforms:{u_opacity:B||1,u_texture:this.texture},blend:this.getBlend(),stencil:this.getStencil(g)}),this.layer.hooks.afterRender.call()}}]),u}(Su),a8={wind:jD},mj=a8;function LE(a){var p=vj();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function vj(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var yj=function(a){(0,ht.Z)(u,a);var p=LE(u);function u(){var c;(0,bt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T0&&arguments[0]!==void 0?arguments[0]:{};return this.layerModel&&this.layerModel.render(l),this}},{key:"getDefaultConfig",value:function(){var l=this.getModelType(),g={wind:{}};return g[l]}},{key:"getModelType",value:function(){return"wind"}}]),u}(Xa),l8,WD,TO,VD,tI,nI,Aw,DO=Ma.cloneDeep,_j=(l8=(0,ws.b2)(),WD=(0,ws.f3)(gr.IMapService),TO=(0,ws.f3)(gr.IFontService),l8(VD=(tI=function(){function a(){(0,bt.Z)(this,a),Fd(this,"mapService",nI,this),Fd(this,"fontService",Aw,this)}return(0,Ue.Z)(a,[{key:"apply",value:function(u,c){var l=this,g=c.styleAttributeService;u.hooks.init.tapPromise("DataMappingPlugin",(0,ka.Z)(Qi().mark(function T(){return Qi().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:u.log(fm.MappingStart,Rl.INIT),l.generateMaping(u,{styleAttributeService:g}),u.log(fm.MappingEnd,Rl.INIT);case 3:case"end":return G.stop()}},T)}))),u.hooks.beforeRenderData.tapPromise("DataMappingPlugin",function(){var T=(0,ka.Z)(Qi().mark(function B(G){var te;return Qi().wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:if(G){Ge.next=2;break}return Ge.abrupt("return",G);case 2:return u.dataState.dataMappingNeedUpdate=!1,u.log(fm.MappingStart,Rl.UPDATE),te=l.generateMaping(u,{styleAttributeService:g}),u.log(fm.MappingEnd,Rl.UPDATE),Ge.abrupt("return",te);case 7:case"end":return Ge.stop()}},B)}));return function(B){return T.apply(this,arguments)}}()),u.hooks.beforeRender.tap("DataMappingPlugin",function(){var T=u.getSource();if(!(u.layerModelNeedUpdate||!T||!T.inited)){var B=g.getLayerStyleAttributes()||[],G=g.getLayerStyleAttribute("filter"),te=T.data.dataArray;if(!(Array.isArray(te)&&te.length===0)){var Me=B.filter(function(Mt){return Mt.needRemapping}),Ge=te;if(G!=null&&G.needRemapping&&G!==null&&G!==void 0&&G.scale&&(Ge=te.filter(function(Mt){return l.applyAttributeMapping(G,Mt)[0]})),Me.length){var St=l.mapping(u,Me,Ge,u.getEncodedData());u.setEncodedData(St)}}}})}},{key:"generateMaping",value:function(u,c){var l=this,g=c.styleAttributeService,T=g.getLayerStyleAttributes()||[],B=g.getLayerStyleAttribute("filter"),G=u.getSource().data.dataArray,te=G;B!=null&&B.scale&&(te=G.filter(function(Ge){return l.applyAttributeMapping(B,Ge)[0]})),te=u.processData(te);var Me=this.mapping(u,T,te,void 0);return u.setEncodedData(Me),G.length===0&&u.encodeDataLength===0?!1:(u.emit("dataUpdate",null),!0)}},{key:"mapping",value:function(u,c,l,g){var T=this,B=u.getLayerConfig(),G=B.arrow,te=G===void 0?{enable:!1}:G,Me=c.filter(function(St){return St.scale!==void 0}).filter(function(St){return St.name!=="filter"}),Ge=l.map(function(St,Mt){var In=g?g[Mt]:{},kn=(0,Ce.Z)({id:St._id,coordinates:St.coordinates},In);if(Me.forEach(function(Vo){var zo=T.applyAttributeMapping(Vo,St);(Vo.name==="color"||Vo.name==="stroke")&&(zo=zo.map(function(Ks){return Kr(Ks)})),kn[Vo.name]=Array.isArray(zo)&&zo.length===1?zo[0]:zo,Vo.name==="shape"&&(kn.shape=T.fontService.getIconFontKey(kn[Vo.name]))}),te.enable&&kn.shape==="line"){var Sr=kn.coordinates;if(u.arrowInsertCount0&&this.mapService.version===d0["GAODE2.x"]){var g=c.coordCenter||c.getSource().center;u.filter(function(T){return!T.originCoordinates}).map(function(T){T.version=d0["GAODE2.x"],T.originCoordinates=DO(T.coordinates),T.coordinates=l.mapService.coordToAMap2RelativeCoordinates(T.coordinates,g)})}}},{key:"adjustData2SimpleCoordinates",value:function(u){var c=this;u.length>0&&this.mapService.version===d0.SIMPLE&&u.map(function(l){l.simpleCoordinate||(l.coordinates=c.unProjectCoordinates(l.coordinates),l.simpleCoordinate=!0)})}},{key:"unProjectCoordinates",value:function(u){var c=this;if(typeof u[0]=="number")return this.mapService.simpleMapCoord.unproject(u);if(u[0]&&u[0][0]instanceof Array){var l=[];return u.map(function(T){var B=[];T.map(function(G){B.push(c.mapService.simpleMapCoord.unproject(G))}),l.push(B)}),l}else{var g=[];return u.map(function(T){g.push(c.mapService.simpleMapCoord.unproject(T))}),g}}},{key:"applyAttributeMapping",value:function(u,c){var l;if(!u.scale)return[];var g=(u==null||(l=u.scale)===null||l===void 0?void 0:l.scalers)||[],T=[];g.forEach(function(G){var te,Me=G.field;(c.hasOwnProperty(Me)||((te=u.scale)===null||te===void 0?void 0:te.type)==="variable")&&T.push(c[Me])});var B=u.mapping?u.mapping(T):[];return B}},{key:"getArrowPoints",value:function(u,c){var l=[c[0]-u[0],c[1]-u[1]],g=nd(l),T=[u[0]+g[0]*1e-4,u[1]+g[1]*1e-4];return T}}]),a}(),nI=$h(tI.prototype,"mapService",[WD],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Aw=$h(tI.prototype,"fontService",[TO],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),tI))||VD),u8,z2,UD=(u8=(0,ws.b2)(),u8(z2=function(){function a(){(0,bt.Z)(this,a)}return(0,Ue.Z)(a,[{key:"apply",value:function(u){var c=this;this.mapService=u.getContainer().get(gr.IMapService),u.hooks.init.tapPromise("DataSourcePlugin",(0,ka.Z)(Qi().mark(function l(){var g,T,B,G;return Qi().wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:if(u.log(fm.SourceInitStart,Rl.INIT),g=u.getSource(),g||(T=u.sourceOption||u.defaultSourceConfig,B=T.data,G=T.options,g=new r0(B,G),u.setSource(g)),!g.inited){Me.next=8;break}c.updateClusterData(u),u.log(fm.SourceInitEnd,Rl.INIT),Me.next=10;break;case 8:return Me.next=10,new Promise(function(Ge){g.on("update",function(St){St.type==="inited"&&(c.updateClusterData(u),u.log(fm.SourceInitEnd,Rl.INIT)),Ge(null)})});case 10:case"end":return Me.stop()}},l)}))),u.hooks.beforeRenderData.tapPromise("DataSourcePlugin",(0,ka.Z)(Qi().mark(function l(){var g,T,B;return Qi().wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return g=c.updateClusterData(u),T=u.dataState.dataSourceNeedUpdate,u.dataState.dataSourceNeedUpdate=!1,B=g||T,te.abrupt("return",B);case 5:case"end":return te.stop()}},l)})))}},{key:"updateClusterData",value:function(u){if(u.isTileLayer||u.tileLayer||!u.getSource())return!1;var c=u.getSource(),l=c.cluster,g=c.clusterOptions.zoom,T=g===void 0?0:g,B=this.mapService.getZoom()-1,G=u.dataState.dataSourceNeedUpdate;return l&&G&&c.updateClusterData(Math.floor(B)),l&&Math.abs(u.clusterZoom-B)>=1?(T!==Math.floor(B)&&c.updateClusterData(Math.floor(B)),u.clusterZoom=B,!0):!1}}]),a}())||z2),w1=m(61272);function c8(a,p,u,c,l){var g=a*a,T=g*a;return((1-3*a+3*g-T)*p+(4-6*g+3*T)*u+(1+3*a+3*g-3*T)*c+T*l)/6}function bj(a){var p=a.length-1;return function(u){var c=u<=0?u=0:u>=1?(u=1,p-1):Math.floor(u*p),l=a[c],g=a[c+1],T=c>0?a[c-1]:2*l-g,B=c180||u<-180?u-360*Math.round(u/360):u):constant(isNaN(a)?p:a)}function iI(a){return(a=+a)==1?Iw:function(p,u){return u-p?rI(p,u,a):AO(isNaN(p)?u:p)}}function Iw(a,p){var u=p-a;return u?d8(a,u):AO(isNaN(a)?p:a)}var IO=function a(p){var u=iI(p);function c(l,g){var T=u((l=Jn(l)).r,(g=Jn(g)).r),B=u(l.g,g.g),G=u(l.b,g.b),te=Iw(l.opacity,g.opacity);return function(Me){return l.r=T(Me),l.g=B(Me),l.b=G(Me),l.opacity=te(Me),l+""}}return c.gamma=a,c}(1);function LO(a){return function(p){var u=p.length,c=new Array(u),l=new Array(u),g=new Array(u),T,B;for(T=0;T=a.length)return u!=null&&B.sort(u),c!=null?c(B):B;for(var Ge=-1,St=B.length,Mt=a[G++],In,kn,Sr=map(),_i,Vo=te();++Gea.length)return B;var te,Me=p[G-1];return c!=null&&G>=a.length?te=B.entries():(te=[],B.each(function(Ge,St){te.push({key:St,values:T(Ge,G)})})),Me!=null?te.sort(function(Ge,St){return Me(Ge.key,St.key)}):te}return l={object:function(B){return g(B,0,PO,f0)},map:function(B){return g(B,0,Rx,z1)},entries:function(B){return T(g(B,0,Rx,z1),0)},key:function(B){return a.push(B),l},sortKeys:function(B){return p[a.length-1]=B,l},sortValues:function(B){return u=B,l},rollup:function(B){return c=B,l}}}function PO(){return{}}function f0(a,p,u){a[p]=u}function Rx(){return map()}function z1(a,p,u){a.set(p,u)}function Nv(){}var N0=pf.prototype;Nv.prototype=oI.prototype={constructor:Nv,has:N0.has,add:function(a){return a+="",this[d_+a]=a,this},remove:N0.remove,clear:N0.clear,values:N0.keys,size:N0.size,empty:N0.empty,each:N0.each};function oI(a,p){var u=new Nv;if(a instanceof Nv)a.each(function(g){u.add(g)});else if(a){var c=-1,l=a.length;if(p==null)for(;++cu&&(g=p.slice(u,g),B[T]?B[T]+=g:B[++T]=g),(c=c[0])===(l=l[0])?B[T]?B[T]+=l:B[++T]=l:(B[++T]=null,G.push({i:T,x:J4(c,l)})),u=MO.lastIndex;return uu&&(c=p,p=u,u=c),function(l){return Math.max(p,Math.min(u,l))}}function W_(a,p,u){var c=a[0],l=a[1],g=p[0],T=p[1];return l2?j1:W_,G=te=null,Ge}function Ge(St){return isNaN(St=+St)?g:(G||(G=B(a.map(c),p,u)))(c(T(St)))}return Ge.invert=function(St){return T(l((te||(te=B(p,a.map(c),J4)))(St)))},Ge.domain=function(St){return arguments.length?(a=f8.call(St,Lj),T===$1||(T=v8(a)),Me()):a.slice()},Ge.range=function(St){return arguments.length?(p=PE.call(St),Me()):p.slice()},Ge.rangeRound=function(St){return p=PE.call(St),u=Aj,Me()},Ge.clamp=function(St){return arguments.length?(T=St?v8(a):$1,Ge):T!==$1},Ge.interpolate=function(St){return arguments.length?(u=St,Me()):u},Ge.unknown=function(St){return arguments.length?(g=St,Ge):g},function(St,Mt){return c=St,l=Mt,Me()}}function y8(a,p){return RO()(a,p)}var Pj=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Pw(a){if(!(p=Pj.exec(a)))throw new Error("invalid format: "+a);var p;return new NO({fill:p[1],align:p[2],sign:p[3],symbol:p[4],zero:p[5],width:p[6],comma:p[7],precision:p[8]&&p[8].slice(1),trim:p[9],type:p[10]})}Pw.prototype=NO.prototype;function NO(a){this.fill=a.fill===void 0?" ":a.fill+"",this.align=a.align===void 0?">":a.align+"",this.sign=a.sign===void 0?"-":a.sign+"",this.symbol=a.symbol===void 0?"":a.symbol+"",this.zero=!!a.zero,this.width=a.width===void 0?void 0:+a.width,this.comma=!!a.comma,this.precision=a.precision===void 0?void 0:+a.precision,this.trim=!!a.trim,this.type=a.type===void 0?"":a.type+""}NO.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function kj(a){return Math.abs(a=Math.round(a))>=1e21?a.toLocaleString("en").replace(/,/g,""):a.toString(10)}function tP(a,p){if((u=(a=p?a.toExponential(p-1):a.toExponential()).indexOf("e"))<0)return null;var u,c=a.slice(0,u);return[c.length>1?c[0]+c.slice(2):c,+a.slice(u+1)]}function ZD(a){return a=tP(Math.abs(a)),a?a[1]:NaN}function Mj(a,p){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ZD(p)/3)))*3-ZD(Math.abs(a)))}function Oj(a,p){return function(u,c){for(var l=u.length,g=[],T=0,B=a[0],G=0;l>0&&B>0&&(G+B+1>c&&(B=Math.max(1,c-G)),g.push(u.substring(l-=B,l+B)),!((G+=B+1)>c));)B=a[T=(T+1)%a.length];return g.reverse().join(p)}}function gX(a){return function(p){return p.replace(/[0-9]/g,function(u){return a[+u]})}}function mX(a){e:for(var p=a.length,u=1,c=-1,l;u0&&(c=0);break}return c>0?a.slice(0,c)+a.slice(l+1):a}var Rj;function f_(a,p){var u=tP(a,p);if(!u)return a+"";var c=u[0],l=u[1],g=l-(Rj=Math.max(-8,Math.min(8,Math.floor(l/3)))*3)+1,T=c.length;return g===T?c:g>T?c+new Array(g-T+1).join("0"):g>0?c.slice(0,g)+"."+c.slice(g):"0."+new Array(1-g).join("0")+tP(a,Math.max(0,p+g-1))[0]}function kE(a,p){var u=tP(a,p);if(!u)return a+"";var c=u[0],l=u[1];return l<0?"0."+new Array(-l).join("0")+c:c.length>l+1?c.slice(0,l+1)+"."+c.slice(l+1):c+new Array(l-c.length+2).join("0")}var Wc={"%":function(a,p){return(a*100).toFixed(p)},b:function(a){return Math.round(a).toString(2)},c:function(a){return a+""},d:kj,e:function(a,p){return a.toExponential(p)},f:function(a,p){return a.toFixed(p)},g:function(a,p){return a.toPrecision(p)},o:function(a){return Math.round(a).toString(8)},p:function(a,p){return kE(a*100,p)},r:kE,s:f_,X:function(a){return Math.round(a).toString(16).toUpperCase()},x:function(a){return Math.round(a).toString(16)}};function Zb(a){return a}var nP=Array.prototype.map,aI=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function Nj(a){var p=a.grouping===void 0||a.thousands===void 0?Zb:Oj(nP.call(a.grouping,Number),a.thousands+""),u=a.currency===void 0?"":a.currency[0]+"",c=a.currency===void 0?"":a.currency[1]+"",l=a.decimal===void 0?".":a.decimal+"",g=a.numerals===void 0?Zb:gX(nP.call(a.numerals,String)),T=a.percent===void 0?"%":a.percent+"",B=a.minus===void 0?"-":a.minus+"",G=a.nan===void 0?"NaN":a.nan+"";function te(Ge){Ge=Pw(Ge);var St=Ge.fill,Mt=Ge.align,In=Ge.sign,kn=Ge.symbol,Sr=Ge.zero,_i=Ge.width,Vo=Ge.comma,zo=Ge.precision,Ks=Ge.trim,ca=Ge.type;ca==="n"?(Vo=!0,ca="g"):Wc[ca]||(zo===void 0&&(zo=12),Ks=!0,ca="g"),(Sr||St==="0"&&Mt==="=")&&(Sr=!0,St="0",Mt="=");var Ia=kn==="$"?u:kn==="#"&&/[boxX]/.test(ca)?"0"+ca.toLowerCase():"",al=kn==="$"?c:/[%p]/.test(ca)?T:"",jl=Wc[ca],Wl=/[defgprs%]/.test(ca);zo=zo===void 0?6:/[gprs]/.test(ca)?Math.max(1,Math.min(21,zo)):Math.max(0,Math.min(20,zo));function Wu(Pu){var Vc=Ia,dd=al,Kd,Hp,gm;if(ca==="c")dd=jl(Pu)+dd,Pu="";else{Pu=+Pu;var Fg=Pu<0||1/Pu<0;if(Pu=isNaN(Pu)?G:jl(Math.abs(Pu),zo),Ks&&(Pu=mX(Pu)),Fg&&+Pu==0&&In!=="+"&&(Fg=!1),Vc=(Fg?In==="("?In:B:In==="-"||In==="("?"":In)+Vc,dd=(ca==="s"?aI[8+Rj/3]:"")+dd+(Fg&&In==="("?")":""),Wl){for(Kd=-1,Hp=Pu.length;++Kdgm||gm>57){dd=(gm===46?l+Pu.slice(Kd+1):Pu.slice(Kd))+dd,Pu=Pu.slice(0,Kd);break}}}Vo&&!Sr&&(Pu=p(Pu,1/0));var mm=Vc.length+Pu.length+dd.length,b0=mm<_i?new Array(_i-mm+1).join(St):"";switch(Vo&&Sr&&(Pu=p(b0+Pu,b0.length?_i-dd.length:1/0),b0=""),Mt){case"<":Pu=Vc+Pu+dd+b0;break;case"=":Pu=Vc+b0+Pu+dd;break;case"^":Pu=b0.slice(0,mm=b0.length>>1)+Vc+Pu+dd+b0.slice(mm);break;default:Pu=b0+Vc+Pu+dd;break}return g(Pu)}return Wu.toString=function(){return Ge+""},Wu}function Me(Ge,St){var Mt=te((Ge=Pw(Ge),Ge.type="f",Ge)),In=Math.max(-8,Math.min(8,Math.floor(ZD(St)/3)))*3,kn=Math.pow(10,-In),Sr=aI[8+In/3];return function(_i){return Mt(kn*_i)+Sr}}return{format:te,formatPrefix:Me}}var ME,rP,_8;Fj({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function Fj(a){return ME=Nj(a),rP=ME.format,_8=ME.formatPrefix,ME}function vX(a,p){return a=Math.abs(a),p=Math.abs(p)-a,Math.max(0,ZD(p)-ZD(a))+1}function FO(a){return Math.max(0,-ZD(Math.abs(a)))}function iP(a,p,u,c){var l=(0,w1.ly)(a,p,u),g;switch(c=Pw(c==null?",f":c),c.type){case"s":{var T=Math.max(Math.abs(a),Math.abs(p));return c.precision==null&&!isNaN(g=Mj(l,T))&&(c.precision=g),_8(c,T)}case"":case"e":case"g":case"p":case"r":{c.precision==null&&!isNaN(g=vX(l,Math.max(Math.abs(a),Math.abs(p))))&&(c.precision=g-(c.type==="e"));break}case"f":case"%":{c.precision==null&&!isNaN(g=FO(l))&&(c.precision=g-(c.type==="%")*2);break}}return rP(c)}function vb(a){var p=a.domain;return a.ticks=function(u){var c=p();return(0,w1.sd)(c[0],c[c.length-1],u==null?10:u)},a.tickFormat=function(u,c){var l=p();return iP(l[0],l[l.length-1],u==null?10:u,c)},a.nice=function(u){u==null&&(u=10);var c=p(),l=0,g=c.length-1,T=c[l],B=c[g],G;return B0?(T=Math.floor(T/G)*G,B=Math.ceil(B/G)*G,G=(0,w1.G9)(T,B,u)):G<0&&(T=Math.ceil(T*G)/G,B=Math.floor(B*G)/G,G=(0,w1.G9)(T,B,u)),G>0?(c[l]=Math.floor(T/G)*G,c[g]=Math.ceil(B/G)*G,p(c)):G<0&&(c[l]=Math.ceil(T*G)/G,c[g]=Math.floor(B*G)/G,p(c)),a},a}function b8(){var a=y8($1,$1);return a.copy=function(){return eP(a,b8())},K0.apply(a,arguments),vb(a)}function BO(a){var p;function u(c){return isNaN(c=+c)?p:c}return u.invert=u,u.domain=u.range=function(c){return arguments.length?(a=map.call(c,number),u):a.slice()},u.unknown=function(c){return arguments.length?(p=c,u):p},u.copy=function(){return BO(a).unknown(p)},a=arguments.length?map.call(a,number):[0,1],linearish(u)}function x8(a,p){a=a.slice();var u=0,c=a.length-1,l=a[u],g=a[c],T;return g0){for(;StMe)break;Vo.push(Sr)}}else for(;St=1;--kn)if(Sr=In*kn,!(SrMe)break;Vo.push(Sr)}}else Vo=(0,w1.sd)(St,Mt,Math.min(Mt-St,_i)).map(g);return Ge?Vo.reverse():Vo},p.tickFormat=function(B,G){if(G==null&&(G=c===10?".0e":","),typeof G!="function"&&(G=rP(G)),B===1/0)return G;B==null&&(B=10);var te=Math.max(1,c*B/p.ticks().length);return function(Me){var Ge=Me/g(Math.round(l(Me)));return Ge*c0?u[B-1]:a[0],B=u?[c[u-1],p]:[c[te-1],c[te]]},T.unknown=function(G){return arguments.length&&(g=G),T},T.thresholds=function(){return c.slice()},T.copy=function(){return UO().domain([a,p]).range(l).unknown(g)},K0.apply(vb(T),arguments)}function HO(){var a=[.5],p=[0,1],u,c=1;function l(g){return g<=g?p[(0,w1.b4)(a,g,0,c)]:u}return l.domain=function(g){return arguments.length?(a=PE.call(g),c=Math.min(a.length,p.length-1),l):a.slice()},l.range=function(g){return arguments.length?(p=PE.call(g),c=Math.min(a.length,p.length-1),l):p.slice()},l.invertExtent=function(g){var T=p.indexOf(g);return[a[T-1],a[T]]},l.unknown=function(g){return arguments.length?(u=g,l):u},l.copy=function(){return HO().domain(a).range(p).unknown(u)},K0.apply(l,arguments)}var cI=new Date,ZO=new Date;function fy(a,p,u,c){function l(g){return a(g=arguments.length===0?new Date:new Date(+g)),g}return l.floor=function(g){return a(g=new Date(+g)),g},l.ceil=function(g){return a(g=new Date(g-1)),p(g,1),a(g),g},l.round=function(g){var T=l(g),B=l.ceil(g);return g-T0))return G;do G.push(te=new Date(+g)),p(g,B),a(g);while(te=T)for(;a(T),!g(T);)T.setTime(T-1)},function(T,B){if(T>=T)if(B<0)for(;++B<=0;)for(;p(T,-1),!g(T););else for(;--B>=0;)for(;p(T,1),!g(T););})},u&&(l.count=function(g,T){return cI.setTime(+g),ZO.setTime(+T),a(cI),a(ZO),Math.floor(u(cI,ZO))},l.every=function(g){return g=Math.floor(g),!isFinite(g)||!(g>0)?null:g>1?l.filter(c?function(T){return c(T)%g===0}:function(T){return l.count(0,T)%g===0}):l}),l}var GO=fy(function(a){a.setMonth(0,1),a.setHours(0,0,0,0)},function(a,p){a.setFullYear(a.getFullYear()+p)},function(a,p){return p.getFullYear()-a.getFullYear()},function(a){return a.getFullYear()});GO.every=function(a){return!isFinite(a=Math.floor(a))||!(a>0)?null:fy(function(p){p.setFullYear(Math.floor(p.getFullYear()/a)*a),p.setMonth(0,1),p.setHours(0,0,0,0)},function(p,u){p.setFullYear(p.getFullYear()+u*a)})};var XD=GO,KO=GO.range,uP=fy(function(a){a.setDate(1),a.setHours(0,0,0,0)},function(a,p){a.setMonth(a.getMonth()+p)},function(a,p){return p.getMonth()-a.getMonth()+(p.getFullYear()-a.getFullYear())*12},function(a){return a.getMonth()}),E8=uP,_X=uP.range,W2=1e3,p_=6e4,T8=36e5,zj=864e5,CC=6048e5;function RE(a){return fy(function(p){p.setDate(p.getDate()-(p.getDay()+7-a)%7),p.setHours(0,0,0,0)},function(p,u){p.setDate(p.getDate()+u*7)},function(p,u){return(u-p-(u.getTimezoneOffset()-p.getTimezoneOffset())*p_)/CC})}var XO=RE(0),W1=RE(1),cP=RE(2),$j=RE(3),V2=RE(4),jj=RE(5),dI=RE(6),bX=XO.range,hI=W1.range,D8=cP.range,Wj=$j.range,xX=V2.range,CX=jj.range,Vj=dI.range,YO=fy(function(a){a.setHours(0,0,0,0)},function(a,p){a.setDate(a.getDate()+p)},function(a,p){return(p-a-(p.getTimezoneOffset()-a.getTimezoneOffset())*p_)/zj},function(a){return a.getDate()-1}),wC=YO,wX=YO.range,A8=fy(function(a){a.setTime(a-a.getMilliseconds()-a.getSeconds()*W2-a.getMinutes()*p_)},function(a,p){a.setTime(+a+p*T8)},function(a,p){return(p-a)/T8},function(a){return a.getHours()}),Uj=A8,dP=A8.range,I8=fy(function(a){a.setTime(a-a.getMilliseconds()-a.getSeconds()*W2)},function(a,p){a.setTime(+a+p*p_)},function(a,p){return(p-a)/p_},function(a){return a.getMinutes()}),Hj=I8,SX=I8.range,qO=fy(function(a){a.setTime(a-a.getMilliseconds())},function(a,p){a.setTime(+a+p*W2)},function(a,p){return(p-a)/W2},function(a){return a.getUTCSeconds()}),Zj=qO,L8=qO.range,hP=fy(function(){},function(a,p){a.setTime(+a+p)},function(a,p){return p-a});hP.every=function(a){return a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?fy(function(p){p.setTime(Math.floor(p/a)*a)},function(p,u){p.setTime(+p+u*a)},function(p,u){return(u-p)/a}):hP};var P8=hP,EX=hP.range;function yb(a){return fy(function(p){p.setUTCDate(p.getUTCDate()-(p.getUTCDay()+7-a)%7),p.setUTCHours(0,0,0,0)},function(p,u){p.setUTCDate(p.getUTCDate()+u*7)},function(p,u){return(u-p)/CC})}var k8=yb(0),V_=yb(1),Gj=yb(2),Kj=yb(3),YD=yb(4),M8=yb(5),Xj=yb(6),TX=k8.range,DX=V_.range,AX=Gj.range,IX=Kj.range,Yj=YD.range,LX=M8.range,O8=Xj.range,fP=fy(function(a){a.setUTCHours(0,0,0,0)},function(a,p){a.setUTCDate(a.getUTCDate()+p)},function(a,p){return(p-a)/zj},function(a){return a.getUTCDate()-1}),pP=fP,qj=fP.range,qD=fy(function(a){a.setUTCMonth(0,1),a.setUTCHours(0,0,0,0)},function(a,p){a.setUTCFullYear(a.getUTCFullYear()+p)},function(a,p){return p.getUTCFullYear()-a.getUTCFullYear()},function(a){return a.getUTCFullYear()});qD.every=function(a){return!isFinite(a=Math.floor(a))||!(a>0)?null:fy(function(p){p.setUTCFullYear(Math.floor(p.getUTCFullYear()/a)*a),p.setUTCMonth(0,1),p.setUTCHours(0,0,0,0)},function(p,u){p.setUTCFullYear(p.getUTCFullYear()+u*a)})};var JD=qD,R8=qD.range;function fI(a){if(0<=a.y&&a.y<100){var p=new Date(-1,a.m,a.d,a.H,a.M,a.S,a.L);return p.setFullYear(a.y),p}return new Date(a.y,a.m,a.d,a.H,a.M,a.S,a.L)}function JO(a){if(0<=a.y&&a.y<100){var p=new Date(Date.UTC(-1,a.m,a.d,a.H,a.M,a.S,a.L));return p.setUTCFullYear(a.y),p}return new Date(Date.UTC(a.y,a.m,a.d,a.H,a.M,a.S,a.L))}function pI(a,p,u){return{y:a,m:p,d:u,H:0,M:0,S:0,L:0}}function N8(a){var p=a.dateTime,u=a.date,c=a.time,l=a.periods,g=a.days,T=a.shortDays,B=a.months,G=a.shortMonths,te=gI(l),Me=kw(l),Ge=gI(g),St=kw(g),Mt=gI(T),In=kw(T),kn=gI(B),Sr=kw(B),_i=gI(G),Vo=kw(G),zo={a:Fg,A:mm,b:b0,B:py,c:null,d:eA,e:eA,f:lW,g:mP,G:pW,H:sW,I:aW,j:r5,L:z8,m:uW,M:cW,p:MA,q:jC,Q:H8,s:Z8,S:H2,u:$8,U:mI,V:TC,w:dW,W:hW,x:null,X:null,y:fW,Y:tA,Z:gW,"%":U8},Ks={a:iT,A:oT,b:V0,B:a1,c:null,d:vP,e:vP,f:Jv,g:bW,G:V8,H:m_,I:j8,j:yP,L:W8,m:mW,M:Z2,p:vL,q:yL,Q:H8,s:Z8,S:i5,u:DC,U:o5,V:vW,w:_P,W:yW,x:null,X:null,y:_W,Y:xW,Z:CW,"%":U8},ca={a:Wu,A:Pu,b:Vc,B:dd,c:Kd,d:gP,e:gP,f:Bx,g:B8,G:EC,H:t5,I:t5,j:rW,L:QD,m:nW,M:n5,p:Wl,q:NE,Q:oW,s:Mw,S:U2,u:jy,U:eW,V:QO,w:F8,W:tW,x:Hp,X:gm,y:B8,Y:EC,Z:e5,"%":iW};zo.x=Ia(u,zo),zo.X=Ia(c,zo),zo.c=Ia(p,zo),Ks.x=Ia(u,Ks),Ks.X=Ia(c,Ks),Ks.c=Ia(p,Ks);function Ia(op,Mm){return function(p0){var Rh=[],G1=-1,B0=0,Pp=op.length,ky,sT,OA;for(p0 instanceof Date||(p0=new Date(+p0));++G153)return null;"w"in Rh||(Rh.w=1),"Z"in Rh?(B0=JO(pI(Rh.y,0,1)),Pp=B0.getUTCDay(),B0=Pp>4||Pp===0?V_.ceil(B0):V_(B0),B0=pP.offset(B0,(Rh.V-1)*7),Rh.y=B0.getUTCFullYear(),Rh.m=B0.getUTCMonth(),Rh.d=B0.getUTCDate()+(Rh.w+6)%7):(B0=fI(pI(Rh.y,0,1)),Pp=B0.getDay(),B0=Pp>4||Pp===0?W1.ceil(B0):W1(B0),B0=wC.offset(B0,(Rh.V-1)*7),Rh.y=B0.getFullYear(),Rh.m=B0.getMonth(),Rh.d=B0.getDate()+(Rh.w+6)%7)}else("W"in Rh||"U"in Rh)&&("w"in Rh||(Rh.w="u"in Rh?Rh.u%7:"W"in Rh?1:0),Pp="Z"in Rh?JO(pI(Rh.y,0,1)).getUTCDay():fI(pI(Rh.y,0,1)).getDay(),Rh.m=0,Rh.d="W"in Rh?(Rh.w+6)%7+Rh.W*7-(Pp+5)%7:Rh.w+Rh.U*7-(Pp+6)%7);return"Z"in Rh?(Rh.H+=Rh.Z/100|0,Rh.M+=Rh.Z%100,JO(Rh)):fI(Rh)}}function jl(op,Mm,p0,Rh){for(var G1=0,B0=Mm.length,Pp=p0.length,ky,sT;G1=Pp)return-1;if(ky=Mm.charCodeAt(G1++),ky===37){if(ky=Mm.charAt(G1++),sT=ca[ky in Fx?Mm.charAt(G1++):ky],!sT||(Rh=sT(op,p0,Rh))<0)return-1}else if(ky!=p0.charCodeAt(Rh++))return-1}return Rh}function Wl(op,Mm,p0){var Rh=te.exec(Mm.slice(p0));return Rh?(op.p=Me[Rh[0].toLowerCase()],p0+Rh[0].length):-1}function Wu(op,Mm,p0){var Rh=Mt.exec(Mm.slice(p0));return Rh?(op.w=In[Rh[0].toLowerCase()],p0+Rh[0].length):-1}function Pu(op,Mm,p0){var Rh=Ge.exec(Mm.slice(p0));return Rh?(op.w=St[Rh[0].toLowerCase()],p0+Rh[0].length):-1}function Vc(op,Mm,p0){var Rh=_i.exec(Mm.slice(p0));return Rh?(op.m=Vo[Rh[0].toLowerCase()],p0+Rh[0].length):-1}function dd(op,Mm,p0){var Rh=kn.exec(Mm.slice(p0));return Rh?(op.m=Sr[Rh[0].toLowerCase()],p0+Rh[0].length):-1}function Kd(op,Mm,p0){return jl(op,p,Mm,p0)}function Hp(op,Mm,p0){return jl(op,u,Mm,p0)}function gm(op,Mm,p0){return jl(op,c,Mm,p0)}function Fg(op){return T[op.getDay()]}function mm(op){return g[op.getDay()]}function b0(op){return G[op.getMonth()]}function py(op){return B[op.getMonth()]}function MA(op){return l[+(op.getHours()>=12)]}function jC(op){return 1+~~(op.getMonth()/3)}function iT(op){return T[op.getUTCDay()]}function oT(op){return g[op.getUTCDay()]}function V0(op){return G[op.getUTCMonth()]}function a1(op){return B[op.getUTCMonth()]}function vL(op){return l[+(op.getUTCHours()>=12)]}function yL(op){return 1+~~(op.getUTCMonth()/3)}return{format:function(op){var Mm=Ia(op+="",zo);return Mm.toString=function(){return op},Mm},parse:function(op){var Mm=al(op+="",!1);return Mm.toString=function(){return op},Mm},utcFormat:function(op){var Mm=Ia(op+="",Ks);return Mm.toString=function(){return op},Mm},utcParse:function(op){var Mm=al(op+="",!0);return Mm.toString=function(){return op},Mm}}}var Fx={"-":"",_:" ",0:"0"},qv=/^\s*\d+/,Jj=/^%/,SC=/[\\^$*+?|[\]().{}]/g;function s0(a,p,u){var c=a<0?"-":"",l=(c?-a:a)+"",g=l.length;return c+(g68?1900:2e3),u+c[0].length):-1}function e5(a,p,u){var c=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(p.slice(u,u+6));return c?(a.Z=c[1]?0:-(c[2]+(c[3]||"00")),u+c[0].length):-1}function NE(a,p,u){var c=qv.exec(p.slice(u,u+1));return c?(a.q=c[0]*3-3,u+c[0].length):-1}function nW(a,p,u){var c=qv.exec(p.slice(u,u+2));return c?(a.m=c[0]-1,u+c[0].length):-1}function gP(a,p,u){var c=qv.exec(p.slice(u,u+2));return c?(a.d=+c[0],u+c[0].length):-1}function rW(a,p,u){var c=qv.exec(p.slice(u,u+3));return c?(a.m=0,a.d=+c[0],u+c[0].length):-1}function t5(a,p,u){var c=qv.exec(p.slice(u,u+2));return c?(a.H=+c[0],u+c[0].length):-1}function n5(a,p,u){var c=qv.exec(p.slice(u,u+2));return c?(a.M=+c[0],u+c[0].length):-1}function U2(a,p,u){var c=qv.exec(p.slice(u,u+2));return c?(a.S=+c[0],u+c[0].length):-1}function QD(a,p,u){var c=qv.exec(p.slice(u,u+3));return c?(a.L=+c[0],u+c[0].length):-1}function Bx(a,p,u){var c=qv.exec(p.slice(u,u+6));return c?(a.L=Math.floor(c[0]/1e3),u+c[0].length):-1}function iW(a,p,u){var c=Jj.exec(p.slice(u,u+1));return c?u+c[0].length:-1}function oW(a,p,u){var c=qv.exec(p.slice(u));return c?(a.Q=+c[0],u+c[0].length):-1}function Mw(a,p,u){var c=qv.exec(p.slice(u));return c?(a.s=+c[0],u+c[0].length):-1}function eA(a,p){return s0(a.getDate(),p,2)}function sW(a,p){return s0(a.getHours(),p,2)}function aW(a,p){return s0(a.getHours()%12||12,p,2)}function r5(a,p){return s0(1+wC.count(XD(a),a),p,3)}function z8(a,p){return s0(a.getMilliseconds(),p,3)}function lW(a,p){return z8(a,p)+"000"}function uW(a,p){return s0(a.getMonth()+1,p,2)}function cW(a,p){return s0(a.getMinutes(),p,2)}function H2(a,p){return s0(a.getSeconds(),p,2)}function $8(a){var p=a.getDay();return p===0?7:p}function mI(a,p){return s0(XO.count(XD(a)-1,a),p,2)}function g_(a){var p=a.getDay();return p>=4||p===0?V2(a):V2.ceil(a)}function TC(a,p){return a=g_(a),s0(V2.count(XD(a),a)+(XD(a).getDay()===4),p,2)}function dW(a){return a.getDay()}function hW(a,p){return s0(W1.count(XD(a)-1,a),p,2)}function fW(a,p){return s0(a.getFullYear()%100,p,2)}function mP(a,p){return a=g_(a),s0(a.getFullYear()%100,p,2)}function tA(a,p){return s0(a.getFullYear()%1e4,p,4)}function pW(a,p){var u=a.getDay();return a=u>=4||u===0?V2(a):V2.ceil(a),s0(a.getFullYear()%1e4,p,4)}function gW(a){var p=a.getTimezoneOffset();return(p>0?"-":(p*=-1,"+"))+s0(p/60|0,"0",2)+s0(p%60,"0",2)}function vP(a,p){return s0(a.getUTCDate(),p,2)}function m_(a,p){return s0(a.getUTCHours(),p,2)}function j8(a,p){return s0(a.getUTCHours()%12||12,p,2)}function yP(a,p){return s0(1+pP.count(JD(a),a),p,3)}function W8(a,p){return s0(a.getUTCMilliseconds(),p,3)}function Jv(a,p){return W8(a,p)+"000"}function mW(a,p){return s0(a.getUTCMonth()+1,p,2)}function Z2(a,p){return s0(a.getUTCMinutes(),p,2)}function i5(a,p){return s0(a.getUTCSeconds(),p,2)}function DC(a){var p=a.getUTCDay();return p===0?7:p}function o5(a,p){return s0(k8.count(JD(a)-1,a),p,2)}function nA(a){var p=a.getUTCDay();return p>=4||p===0?YD(a):YD.ceil(a)}function vW(a,p){return a=nA(a),s0(YD.count(JD(a),a)+(JD(a).getUTCDay()===4),p,2)}function _P(a){return a.getUTCDay()}function yW(a,p){return s0(V_.count(JD(a)-1,a),p,2)}function _W(a,p){return s0(a.getUTCFullYear()%100,p,2)}function bW(a,p){return a=nA(a),s0(a.getUTCFullYear()%100,p,2)}function xW(a,p){return s0(a.getUTCFullYear()%1e4,p,4)}function V8(a,p){var u=a.getUTCDay();return a=u>=4||u===0?YD(a):YD.ceil(a),s0(a.getUTCFullYear()%1e4,p,4)}function CW(){return"+0000"}function U8(){return"%"}function H8(a){return+a}function Z8(a){return Math.floor(+a/1e3)}var rA,G8,iA,K8,X8;AC({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function AC(a){return rA=N8(a),G8=rA.format,iA=rA.parse,K8=rA.utcFormat,X8=rA.utcParse,rA}var G2=1e3,oA=G2*60,vI=oA*60,sA=vI*24,wW=sA*7,Y8=sA*30,IC=sA*365;function s5(a){return new Date(a)}function FE(a){return a instanceof Date?+a:+new Date(+a)}function q8(a,p,u,c,l,g,T,B,G){var te=y8($1,$1),Me=te.invert,Ge=te.domain,St=G(".%L"),Mt=G(":%S"),In=G("%I:%M"),kn=G("%I %p"),Sr=G("%a %d"),_i=G("%b %d"),Vo=G("%B"),zo=G("%Y"),Ks=[[T,1,G2],[T,5,5*G2],[T,15,15*G2],[T,30,30*G2],[g,1,oA],[g,5,5*oA],[g,15,15*oA],[g,30,30*oA],[l,1,vI],[l,3,3*vI],[l,6,6*vI],[l,12,12*vI],[c,1,sA],[c,2,2*sA],[u,1,wW],[p,1,Y8],[p,3,3*Y8],[a,1,IC]];function ca(al){return(T(al)2){var Ge=te.scale.ticks(T.values.length);te.scale.domain(Ge)}T.values?te.scale.range(T.values):te.scale.range(te.option.domain);break;case n0.QUANTILE:case n0.QUANTIZE:case n0.THRESHOLD:te.scale.range(T.values);break;case n0.IDENTITY:break;case n0.CAT:T.values?te.scale.range(T.values):te.scale.range(te.option.domain);break;case n0.DIVERGING:case n0.SEQUENTIAL:te.scale.interpolator(fv(T.values));break}}if(T.values==="text"){var St;te.scale.range((St=te.option)===null||St===void 0?void 0:St.domain)}})):(T.type=Bb.CONSTANT,T.defaultValues=G.map(function(te,Me){return te.scale(T.names[Me])})),T.scalers=G.map(function(te){return{field:te.field,func:te.scale,option:te.option}}),g.needRescale=!1}})}},{key:"parseFields",value:function(u){return Array.isArray(u)?u:_I(u)?u.split("*"):[u]}},{key:"createScale",value:function(u,c,l,g){var T,B,G=this.scaleOptions[c]&&((T=this.scaleOptions[c])===null||T===void 0?void 0:T.field)===u?this.scaleOptions[c]:this.scaleOptions[u],te={field:u,scale:void 0,type:Bb.VARIABLE,option:G};if(!g||!g.length)return G&&G.type?te.scale=this.createDefaultScale(G):(te.scale=q4([u]),te.type=Bb.CONSTANT),te;var Me=(B=g.find(function(Mt){return!l5(Mt[u])}))===null||B===void 0?void 0:B[u];if(this.isNumber(u)||l5(Me)&&!G)te.scale=q4([u]),te.type=Bb.CONSTANT;else{var Ge=G&&G.type||this.getDefaultType(Me);l==="text"&&(Ge=n0.CAT),l===void 0&&(Ge=n0.IDENTITY);var St=this.createScaleConfig(Ge,u,G,g);te.scale=this.createDefaultScale(St),te.option=St}return te}},{key:"getDefaultType",value:function(u){var c=n0.LINEAR;return typeof u=="string"&&(c=TW.test(u)?n0.TIME:n0.CAT),c}},{key:"createScaleConfig",value:function(u,c,l,g){var T={type:u},B=(g==null?void 0:g.map(function(Me){return Me[c]}))||[];if(l!=null&&l.domain)T.domain=l==null?void 0:l.domain;else if(u===n0.CAT||u===n0.IDENTITY)T.domain=EW(B);else if(u===n0.QUANTILE)T.domain=B;else if(u===n0.DIVERGING){var G=(0,w1.We)(B),te=(l==null?void 0:l.neutral)!==void 0?l==null?void 0:l.neutral:(G[0]+G[1])/2;T.domain=[G[0],te,G[1]]}else T.domain=(0,w1.We)(B);return(0,Ce.Z)((0,Ce.Z)({},T),l)}},{key:"createDefaultScale",value:function(u){var c=u.type,l=u.domain,g=u.unknown,T=u.clamp,B=u.nice,G=DW[c]();return l&&G.domain&&G.domain(l),g&&G.unknown(g),T!==void 0&&G.clamp&&G.clamp(T),B!==void 0&&G.nice&&G.nice(B),G}}]),a}())||X2),wP,u5,tF=(wP=(0,ws.b2)(),wP(u5=function(){function a(){(0,bt.Z)(this,a)}return(0,Ue.Z)(a,[{key:"apply",value:function(u){u.hooks.beforeRender.tap("LayerAnimateStylePlugin",function(){var c=u.animateStatus;c&&u.models.forEach(function(l){l.addUniforms((0,Ce.Z)({},u.layerModel.getAnimateUniforms()))})})}}]),a}())||u5),LC,c5,AW=(LC=(0,ws.b2)(),LC(c5=function(){function a(){(0,bt.Z)(this,a)}return(0,Ue.Z)(a,[{key:"apply",value:function(u){u.hooks.afterInit.tap("LayerMaskPlugin",function(){var c=u.getLayerConfig(),l=c.maskLayers,g=c.enableMask;if(!u.tileLayer&&l&&l.length>0){var T;(T=u.masks).push.apply(T,(0,kr.Z)(l)),u.updateLayerConfig({mask:g})}})}}]),a}())||c5),IW=function(){function a(p){var u=p.rendererService,c=p.layerService,l=p.parent;(0,bt.Z)(this,a),(0,bn.Z)(this,"tileResource",new Map),(0,bn.Z)(this,"layerTiles",[]),this.rendererService=u,this.layerService=c,this.parent=l}return(0,Ue.Z)(a,[{key:"tiles",get:function(){return this.layerTiles}},{key:"hasTile",value:function(u){return this.layerTiles.some(function(c){return c.key===u})}},{key:"addTile",value:function(u){this.layerTiles.push(u)}},{key:"getTile",value:function(u){return this.layerTiles.find(function(c){return c.key===u})}},{key:"getVisibleTileBylngLat",value:function(u){return this.layerTiles.find(function(c){return c.isLoaded&&c.visible&&c.lnglatInBounds(u)})}},{key:"removeTile",value:function(u){var c=this.layerTiles.findIndex(function(g){return g.key===u}),l=this.layerTiles.splice(c,1);l[0]&&l[0].destroy()}},{key:"updateTileVisible",value:function(u){var c=this.getTile(u.key);c==null||c.updateVisible(u.isVisible)}},{key:"isParentLoaded",value:function(u){var c=u.parent;if(!c)return!0;var l=this.getTile(c==null?void 0:c.key);return!!(l!=null&&l.isLoaded)}},{key:"isChildrenLoaded",value:function(u){var c=this,l=u==null?void 0:u.children;return l.length===0?!0:l.some(function(g){var T=c.getTile(g==null?void 0:g.key);return(T==null?void 0:T.isLoaded)===!1})}},{key:"render",value:function(){var p=(0,ka.Z)(Qi().mark(function c(){var l=this,g,T;return Qi().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return g=this.getRenderLayers(),T=g.map(function(){var te=(0,ka.Z)(Qi().mark(function Me(Ge){return Qi().wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return Mt.next=2,l.layerService.renderTileLayer(Ge);case 2:case"end":return Mt.stop()}},Me)}));return function(Me){return te.apply(this,arguments)}}()),G.next=4,Promise.all(T);case 4:case"end":return G.stop()}},c,this)}));function u(){return p.apply(this,arguments)}return u}()},{key:"getRenderLayers",value:function(){var u=this.layerTiles.filter(function(l){return l.visible&&l.isLoaded}),c=[];return u.map(function(l){return c.push.apply(c,(0,kr.Z)(l.getLayers()))}),c}},{key:"getLayers",value:function(){var u=this.layerTiles.filter(function(l){return l.isLoaded}),c=[];return u.map(function(l){return c.push.apply(c,(0,kr.Z)(l.getLayers()))}),c}},{key:"getTiles",value:function(){return this.layerTiles}},{key:"destroy",value:function(){this.layerTiles.forEach(function(u){return u.destroy()}),this.tileResource.clear()}}]),a}(),LW=m(51287),bI=function(){function a(){(0,bt.Z)(this,a)}return(0,Ue.Z)(a,[{key:"getCombineFeature",value:function(u){var c=null,l=u[0];return u.map(function(g){var T=ma.polygon(g.coordinates);c===null?c=T:c=(0,LW.Z)(c,T)}),l&&(c.properties=(0,Ce.Z)({},l)),c}}]),a}(),xI="select",CI="active",d5=function(){function a(p){var u=p.layerService,c=p.tileLayerService,l=p.parent;(0,bt.Z)(this,a),(0,bn.Z)(this,"tilePickID",new Map),this.layerService=u,this.tileLayerService=c,this.parent=l,this.tileSourceService=new bI}return(0,Ue.Z)(a,[{key:"pickRender",value:function(u){var c=this.tileLayerService.getVisibleTileBylngLat(u.lngLat);if(c){var l=c.getMainLayer();l==null||l.layerPickService.pickRender(u)}}},{key:"pick",value:function(u,c){var l=this.parent.getContainer(),g=l.get(gr.IPickingService);if(u.type==="RasterLayer"){var T=this.tileLayerService.getVisibleTileBylngLat(c.lngLat);if(T&&T.getMainLayer()!==void 0){var B=T.getMainLayer();return B.layerPickService.pickRasterLayer(B,c,this.parent)}return!1}return this.pickRender(c),g.pickFromPickingFBO(u,c)}},{key:"selectFeature",value:function(u){var c=(0,Qn.Z)(u,3),l=c[0],g=c[1],T=c[2],B=this.color2PickId(l,g,T);this.tilePickID.set(xI,B),this.updateHighLight(l,g,T,xI)}},{key:"highlightPickedFeature",value:function(u){var c=(0,Qn.Z)(u,3),l=c[0],g=c[1],T=c[2],B=this.color2PickId(l,g,T);this.tilePickID.set(CI,B),this.updateHighLight(l,g,T,CI)}},{key:"updateHighLight",value:function(u,c,l,g){this.tileLayerService.tiles.map(function(T){var B=T.getMainLayer();switch(g){case xI:B==null||B.hooks.beforeSelect.call([u,c,l]);break;case CI:B==null||B.hooks.beforeHighlight.call([u,c,l]);break}})}},{key:"setPickState",value:function(){var u=this.tilePickID.get(xI),c=this.tilePickID.get(CI);if(u){var l=this.pickId2Color(u),g=(0,Qn.Z)(l,3),T=g[0],B=g[1],G=g[2];this.updateHighLight(T,B,G,xI);return}if(c){var te=this.pickId2Color(c),Me=(0,Qn.Z)(te,3),Ge=Me[0],St=Me[1],Mt=Me[2];this.updateHighLight(Ge,St,Mt,CI);return}}},{key:"color2PickId",value:function(u,c,l){return ti(new Uint8Array([u,c,l]))}},{key:"pickId2Color",value:function(u){return Wi(u)}},{key:"getFeatureById",value:function(u){var c=this.tileLayerService.getTiles().filter(function(g){return g.visible}),l=[];return c.forEach(function(g){l.push.apply(l,(0,kr.Z)(g.getFeatureById(u)))}),l}},{key:"pickRasterLayer",value:function(u,c,l){return!1}}]),a}(),nF=["shape","color","size","style","animate","filter","rotate","scale","setBlend","setSelect","setActive","disableMask","enableMask"];function PW(a){return a==="PolygonLayer"?W4:a==="LineLayer"?_E:$4}function kW(a){return["PolygonLayer","LineLayer"].indexOf(a)!==-1}var $E=function(){function a(p,u){(0,bt.Z)(this,a),(0,bn.Z)(this,"visible",!0),(0,bn.Z)(this,"layers",[]),(0,bn.Z)(this,"isLoaded",!1),(0,bn.Z)(this,"tileMaskLayers",[]),this.parent=u,this.sourceTile=p,this.x=p.x,this.y=p.y,this.z=p.z,this.key="".concat(this.x,"_").concat(this.y,"_").concat(this.z)}return(0,Ue.Z)(a,[{key:"getLayers",value:function(){return this.layers}},{key:"styleUpdate",value:function(){}},{key:"lnglatInBounds",value:function(u){var c=(0,Qn.Z)(this.sourceTile.bounds,4),l=c[0],g=c[1],T=c[2],B=c[3],G=u.lng,te=u.lat;return G>=l&&G<=T&&te>=g&&te<=B}},{key:"getLayerOptions",value:function(){var u,c=this.parent.getLayerConfig();return(0,Ce.Z)((0,Ce.Z)({},c),{},{textAllowOverlap:!0,autoFit:!1,maskLayers:this.getMaskLayer(),tileMask:kW(this.parent.type),mask:c.mask||((u=c.maskLayers)===null||u===void 0?void 0:u.length)!==0&&c.enableMask})}},{key:"getMaskLayer",value:function(){var u=this,c=this.parent.getLayerConfig(),l=c.maskLayers,g=[];return l==null||l.forEach(function(T){if(!T.tileLayer)return g.push(T),T;var B=T.tileLayer,G=B.getTile(u.sourceTile.key),te=G==null?void 0:G.getLayers()[0];te&&g.push(te)}),g}},{key:"addTileMask",value:function(){var p=(0,ka.Z)(Qi().mark(function c(){var l,g,T;return Qi().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return l=new W4({visible:!1,enablePicking:!1}).source({type:"FeatureCollection",features:[this.sourceTile.bboxPolygon]},{parser:{type:"geojson",featureId:"id"}}).shape("fill"),g=Rb(this.parent.sceneContainer),l.setContainer(g,this.parent.sceneContainer),G.next=5,l.init();case 5:return this.tileMask=l,T=this.getMainLayer(),T!==void 0&&(T.tileMask=l),G.abrupt("return",l);case 9:case"end":return G.stop()}},c,this)}));function u(){return p.apply(this,arguments)}return u}()},{key:"addMask",value:function(){var p=(0,ka.Z)(Qi().mark(function c(l,g){var T;return Qi().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return T=Rb(this.parent.sceneContainer),g.setContainer(T,this.parent.sceneContainer),G.next=4,g.init();case 4:l.addMask(g),this.tileMaskLayers.push(g);case 6:case"end":return G.stop()}},c,this)}));function u(c,l){return p.apply(this,arguments)}return u}()},{key:"addLayer",value:function(){var p=(0,ka.Z)(Qi().mark(function c(l){var g;return Qi().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return l.isTileLayer=!0,g=Rb(this.parent.sceneContainer),l.setContainer(g,this.parent.sceneContainer),this.layers.push(l),B.next=6,l.init();case 6:case"end":return B.stop()}},c,this)}));function u(c){return p.apply(this,arguments)}return u}()},{key:"updateVisible",value:function(u){this.visible=u,this.updateOptions("visible",u)}},{key:"updateOptions",value:function(u,c){this.layers.forEach(function(l){l.updateLayerConfig((0,bn.Z)({},u,c))})}},{key:"getMainLayer",value:function(){return this.layers[0]}},{key:"getFeatures",value:function(u){return[]}},{key:"getFeatureById",value:function(u){return[]}},{key:"destroy",value:function(){var u;(u=this.tileMask)===null||u===void 0||u.destroy(),this.layers.forEach(function(c){return c.destroy()})}}]),a}();function MW(a){var p=SP();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function SP(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var h5=function(a){(0,ht.Z)(u,a);var p=MW(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,Ue.Z)(u,[{key:"initTileLayer",value:function(){var c=(0,ka.Z)(Qi().mark(function g(){var T,B,G,te;return Qi().wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:return T=this.getSourceOption(),B=T.data.features[0].properties,G=new _E().source(T.data,T.options).size(1).shape("line").color("red"),te=new $4({minZoom:this.z-1,maxZoom:this.z+1,textAllowOverlap:!0}).source([B],{parser:{type:"json",x:"x",y:"y"}}).size(20).color("red").shape(this.key).style({stroke:"#fff",strokeWidth:2}),Ge.next=6,this.addLayer(G);case 6:return Ge.next=8,this.addLayer(te);case 8:this.isLoaded=!0;case 9:case"end":return Ge.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"getSourceOption",value:function(){var l=this.parent.getSource(),g=this.sourceTile.data.layers.testTile.features;return{data:{type:"FeatureCollection",features:g},options:{parser:{type:"geojson"},transforms:l.transforms}}}}]),u}($E);function OW(a){var p=RW();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function RW(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var EP=function(a){(0,ht.Z)(u,a);var p=OW(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,Ue.Z)(u,[{key:"initTileLayer",value:function(){var c=(0,ka.Z)(Qi().mark(function g(){var T,B,G,te;return Qi().wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:return T=this.parent.getLayerAttributeConfig(),B=this.getLayerOptions(),G=this.getSourceOption(),te=new jM((0,Ce.Z)({},B)).source(G.data,G.options),T&&Object.keys(T).forEach(function(St){var Mt,In,kn=St;te[kn]((Mt=T[kn])===null||Mt===void 0?void 0:Mt.field,(In=T[kn])===null||In===void 0?void 0:In.values)}),Ge.next=7,this.addLayer(te);case 7:this.isLoaded=!0;case 8:case"end":return Ge.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"getSourceOption",value:function(){var l=this.parent.getSource();return{data:this.sourceTile.data,options:{parser:{type:"image",extent:this.sourceTile.bounds},transforms:l.transforms}}}}]),u}($E);function NW(a){var p=FW();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function FW(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var BW=function(a){(0,ht.Z)(u,a);var p=NW(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,Ue.Z)(u,[{key:"initTileLayer",value:function(){var c=(0,ka.Z)(Qi().mark(function g(){var T,B,G,te;return Qi().wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:return T=this.parent.getLayerAttributeConfig(),B=this.getLayerOptions(),G=this.getSourceOption(),te=new _O((0,Ce.Z)({},B)).source(G.data,G.options),T&&Object.keys(T).forEach(function(St){var Mt,In,kn=St;te[kn]((Mt=T[kn])===null||Mt===void 0?void 0:Mt.field,(In=T[kn])===null||In===void 0?void 0:In.values)}),Ge.next=7,this.addLayer(te);case 7:this.isLoaded=!0;case 8:case"end":return Ge.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"getFeatures",value:function(l){if(!l)return[];var g=this.sourceTile.data;return g.getTileData(l)}},{key:"getSourceOption",value:function(){var l=this.parent.getSource(),g=this.parent.getLayerConfig(),T=g.sourceLayer,B=g.featureId,G=this.getFeatures(T);return{data:{type:"FeatureCollection",features:G},options:{parser:{type:"geojson",featureId:B},transforms:l.transforms}}}}]),u}($E),TP=["rasterData"];function zW(a){var p=$W();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function $W(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var _b=function(a){(0,ht.Z)(u,a);var p=zW(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,Ue.Z)(u,[{key:"initTileLayer",value:function(){var c=(0,ka.Z)(Qi().mark(function g(){var T,B,G,te;return Qi().wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:return T=this.parent.getLayerAttributeConfig(),B=this.getLayerOptions(),G=this.getSourceOption(),te=new V4((0,Ce.Z)({},B)).source(G.data,G.options),T&&Object.keys(T).forEach(function(St){var Mt,In,kn=St;te[kn]((Mt=T[kn])===null||Mt===void 0?void 0:Mt.field,(In=T[kn])===null||In===void 0?void 0:In.values)}),Ge.next=7,this.addLayer(te);case 7:this.isLoaded=!0;case 8:case"end":return Ge.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"getSourceOption",value:function(){var l=this.parent.getSource(),g=this.sourceTile.data.data,T=g.rasterData,B=(0,Vg.Z)(g,TP);return{data:T,options:{parser:(0,Ce.Z)({type:"rasterRgb",extent:this.sourceTile.bounds},B),transforms:l.transforms}}}}]),u}($E);function wI(a){var p=rF();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function rF(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var jW=function(a){(0,ht.Z)(u,a);var p=wI(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,Ue.Z)(u,[{key:"initTileLayer",value:function(){var c=(0,ka.Z)(Qi().mark(function g(){var T,B,G,te;return Qi().wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:return T=this.parent.getLayerAttributeConfig(),B=this.getLayerOptions(),G=this.getSourceOption(),te=new V4((0,Ce.Z)({},B)).source(G.data,G.options),T&&Object.keys(T).forEach(function(St){var Mt,In,kn=St;te[kn]((Mt=T[kn])===null||Mt===void 0?void 0:Mt.field,(In=T[kn])===null||In===void 0?void 0:In.values)}),Ge.next=7,this.addLayer(te);case 7:this.isLoaded=!0;case 8:case"end":return Ge.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"getSourceOption",value:function(){var l=this.parent.getSource();return{data:this.sourceTile.data,options:{parser:{type:"image",extent:this.sourceTile.bounds},transforms:l.transforms}}}}]),u}($E),f5=["rasterData"];function U_(a){var p=SI();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function SI(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var WW={positions:[0,1],colors:["#000","#fff"]},iF=function(a){(0,ht.Z)(u,a);var p=U_(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,Ue.Z)(u,[{key:"initTileLayer",value:function(){var c=(0,ka.Z)(Qi().mark(function g(){var T,B,G,te,Me,Ge,St;return Qi().wrap(function(In){for(;;)switch(In.prev=In.next){case 0:return T=this.parent.getLayerAttributeConfig(),B=this.getLayerOptions(),G=this.getSourceOption(),te=this.getLayerOptions(),Me=te.rampColors,Ge=te.domain,this.colorTexture=this.parent.textureService.getColorTexture(Me,Ge),St=new V4((0,Ce.Z)((0,Ce.Z)({},B),{},{colorTexture:this.colorTexture})).source(G.data,G.options),T&&Object.keys(T).forEach(function(kn){var Sr,_i,Vo=kn;St[Vo]((Sr=T[Vo])===null||Sr===void 0?void 0:Sr.field,(_i=T[Vo])===null||_i===void 0?void 0:_i.values)}),In.next=9,this.addLayer(St);case 9:this.isLoaded=!0;case 10:case"end":return In.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"getSourceOption",value:function(){var l=this.parent.getSource(),g=this.sourceTile.data.data,T=g.rasterData,B=(0,Vg.Z)(g,f5);return{data:T,options:{parser:(0,Ce.Z)({type:"raster",extent:this.sourceTile.bounds},B),transforms:l.transforms}}}},{key:"styleUpdate",value:function(){for(var l=this,g=arguments.length,T=new Array(g),B=0;B=2&&!te&&(u.parent.updateLayerConfig({visible:!0}),u.layerService.reRender())}u.lastViewStates&&u.lastViewStates.zoom===B&&u.lastViewStates.latLonBounds.toString()===T.toString()||(u.lastViewStates={zoom:B,latLonBounds:T},(l=u.tilesetManager)===null||l===void 0||l.throttleUpdate(B,T))}}),(0,bn.Z)(this,"viewchange",sF(this.mapchange,24)),this.parent=p;var c=this.parent.getContainer();this.rendererService=c.get(gr.IRendererService),this.layerService=c.get(gr.ILayerService),this.mapService=c.get(gr.IMapService),this.pickingService=c.get(gr.IPickingService),this.tileLayerService=new IW({rendererService:this.rendererService,layerService:this.layerService,parent:p}),this.tilePickService=new d5({tileLayerService:this.tileLayerService,layerService:this.layerService,parent:p}),this.parent.setLayerPickService(this.tilePickService),this.proxy(p),this.initTileSetManager()}return(0,Ue.Z)(a,[{key:"initTileSetManager",value:function(){var u,c=this.parent.getSource();if(this.tilesetManager=c.tileset,this.initedTileset||(this.bindTilesetEvent(),this.initedTileset=!0),this.parent.isVisible()!==!1){var l=this.getCurrentView(),g=l.latLonBounds,T=l.zoom;(u=this.tilesetManager)===null||u===void 0||u.update(T,g)}}},{key:"getCurrentView",value:function(){var u=this.mapService.getBounds(),c=[u[0][0],u[0][1],u[1][0],u[1][1]],l=this.mapService.getZoom();return{latLonBounds:c,zoom:l}}},{key:"bindTilesetEvent",value:function(){var u=this;this.tilesetManager.on("tile-loaded",function(c){}),this.tilesetManager.on("tile-unload",function(c){u.tileUnLoad(c)}),this.tilesetManager.on("tile-error",function(c,l){u.tileError(c)}),this.tilesetManager.on("tile-update",function(){u.tileUpdate()}),this.mapService.on("zoomend",this.mapchange),this.mapService.on("moveend",this.viewchange)}},{key:"render",value:function(){this.tileLayerService.render()}},{key:"getLayers",value:function(){return this.tileLayerService.getLayers()}},{key:"getTiles",value:function(){return this.tileLayerService.getTiles()}},{key:"getTile",value:function(u){return this.tileLayerService.getTile(u)}},{key:"tileLoaded",value:function(u){}},{key:"tileError",value:function(u){console.warn("error:",u)}},{key:"destroy",value:function(){var u;this.mapService.off("zoomend",this.mapchange),this.mapService.off("moveend",this.viewchange),(u=this.tilesetManager)===null||u===void 0||u.destroy(),this.tileLayerService.destroy()}},{key:"reload",value:function(){var u;this.tilesetManager.clear();var c=this.getCurrentView(),l=c.latLonBounds,g=c.zoom;(u=this.tilesetManager)===null||u===void 0||u.update(g,l)}},{key:"tileUnLoad",value:function(u){this.tileLayerService.removeTile(u.key)}},{key:"tileUpdate",value:function(){var p=(0,ka.Z)(Qi().mark(function c(){var l=this,g,T;return Qi().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:if(this.tilesetManager){G.next=2;break}return G.abrupt("return");case 2:return g=this.parent.getMinZoom(),T=this.parent.getMaxZoom(),G.next=6,Promise.all(this.tilesetManager.tiles.filter(function(te){return te.isLoaded}).filter(function(te){return te.isVisibleChange}).filter(function(te){return te.data}).filter(function(te){return te.z>=g&&te.z0&&arguments[0]!==void 0?arguments[0]:{},p={top:0,right:0,bottom:0,left:0};if(typeof a=="number")return{top:a,right:a,bottom:a,left:a};if(Array.isArray(a)){if(a.length===4)return{top:a[0],right:a[1],bottom:a[2],left:a[3]};if(a.length===2)return{top:a[0],right:a[1],bottom:a[0],left:a[1]}}return(0,Ce.Z)((0,Ce.Z)({},p),a)}function jE(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function WE(a,p){var u=q0([],p,a);return Em(u,u,1/u[3]),u}function OX(a,p){var u=a%p;return u<0?p+u:u}function RX(a,p,u){return u*p+(1-u)*a}function VE(a,p){if(!a)throw new Error(p||"viewport-mercator-project: assertion failed.")}var $x=Math.PI,wF=$x/4,Rw=$x/180,SF=180/$x,kI=512,MI=4003e4,w5=1.5;function EF(a){return Math.pow(2,a)}function eV(a){return Math.log2(a)}function UE(a,p){var u=(0,Qn.Z)(a,2),c=u[0],l=u[1];VE(Number.isFinite(c)&&Number.isFinite(p)),VE(Number.isFinite(l)&&l>=-90&&l<=90,"invalid latitude"),p*=kI;var g=c*Rw,T=l*Rw,B=p*(g+$x)/(2*$x),G=p*($x-Math.log(Math.tan(wF+T*.5)))/(2*$x);return[B,G]}function S5(a,p){var u=(0,Qn.Z)(a,2),c=u[0],l=u[1];p*=kI;var g=c/p*(2*$x)-$x,T=2*(Math.atan(Math.exp($x-l/p*(2*$x)))-wF);return[g*SF,T*SF]}function NX(a){var p=a.latitude;assert(Number.isFinite(p));var u=Math.cos(p*Rw);return eV(MI*u)-9}function TF(a){var p=a.latitude,u=a.longitude,c=a.zoom,l=a.scale,g=a.highPrecision,T=g===void 0?!1:g;l=l!==void 0?l:EF(c),VE(Number.isFinite(p)&&Number.isFinite(u)&&Number.isFinite(l));var B={},G=kI*l,te=Math.cos(p*Rw),Me=G/360,Ge=Me/te,St=G/MI/te;if(B.pixelsPerMeter=[St,-St,St],B.metersPerPixel=[1/St,-1/St,1/St],B.pixelsPerDegree=[Me,-Ge,St],B.degreesPerPixel=[1/Me,-1/Ge,1/St],T){var Mt=Rw*Math.tan(p*Rw)/te,In=Me*Mt/2,kn=G/MI*Mt,Sr=kn/Ge*St;B.pixelsPerDegree2=[0,-In,kn],B.pixelsPerMeter2=[Sr,0,Sr]}return B}function FX(a,p){var u=_slicedToArray(a,3),c=u[0],l=u[1],g=u[2],T=_slicedToArray(p,3),B=T[0],G=T[1],te=T[2],Me=1,Ge=TF({longitude:c,latitude:l,scale:Me,highPrecision:!0}),St=Ge.pixelsPerMeter,Mt=Ge.pixelsPerMeter2,In=UE(a,Me);In[0]+=B*(St[0]+Mt[0]*G),In[1]+=G*(St[1]+Mt[1]*G);var kn=S5(In,Me),Sr=(g||0)+(te||0);return Number.isFinite(g)||Number.isFinite(te)?[kn[0],kn[1],Sr]:kn}function tV(a){var p=a.height,u=a.pitch,c=a.bearing,l=a.altitude,g=a.center,T=g===void 0?null:g,B=a.flipY,G=B===void 0?!1:B,te=jE();return ql(te,te,[0,0,-l]),il(te,te,[1,1,1/p]),pu(te,te,-u*Rw),cd(te,te,c*Rw),G&&il(te,te,[1,-1,1]),T&&ql(te,te,s4([],T)),te}function nV(a){var p=a.width,u=a.height,c=a.altitude,l=c===void 0?w5:c,g=a.pitch,T=g===void 0?0:g,B=a.nearZMultiplier,G=B===void 0?1:B,te=a.farZMultiplier,Me=te===void 0?1:te,Ge=T*Rw,St=Math.atan(.5/l),Mt=Math.sin(St)*l/Math.sin(Math.PI/2-Ge-St),In=Math.cos(Math.PI/2-Ge)*Mt+l;return{fov:2*Math.atan(u/2/l),aspect:p/u,focalDistance:l,near:G,far:In*Me}}function rV(a){var p=a.width,u=a.height,c=a.pitch,l=a.altitude,g=a.nearZMultiplier,T=a.farZMultiplier,B=nV({width:p,height:u,altitude:l,pitch:c,nearZMultiplier:g,farZMultiplier:T}),G=B.fov,te=B.aspect,Me=B.near,Ge=B.far,St=hi([],G,te,Me,Ge);return St}function pA(a,p){var u=(0,Qn.Z)(a,3),c=u[0],l=u[1],g=u[2],T=g===void 0?0:g;return VE(Number.isFinite(c)&&Number.isFinite(l)&&Number.isFinite(T)),WE(p,[c,l,T,1])}function gA(a,p){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,c=(0,Qn.Z)(a,3),l=c[0],g=c[1],T=c[2];if(VE(Number.isFinite(l)&&Number.isFinite(g),"invalid pixel coordinate"),Number.isFinite(T)){var B=WE(p,[l,g,T,1]);return B}var G=WE(p,[l,g,0,1]),te=WE(p,[l,g,1,1]),Me=G[2],Ge=te[2],St=Me===Ge?0:((u||0)-Me)/(Ge-Me);return Sg([],G,te,St)}var E5=jE(),iV=function(){function a(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=p.width,c=p.height,l=p.viewMatrix,g=l===void 0?E5:l,T=p.projectionMatrix,B=T===void 0?E5:T;(0,bt.Z)(this,a),this.width=u||1,this.height=c||1,this.scale=1,this.pixelsPerMeter=1,this.viewMatrix=g,this.projectionMatrix=B;var G=jE();Sl(G,G,this.projectionMatrix),Sl(G,G,this.viewMatrix),this.viewProjectionMatrix=G;var te=jE();il(te,te,[this.width/2,-this.height/2,1]),ql(te,te,[1,-1,0]),Sl(te,te,this.viewProjectionMatrix);var Me=$u(jE(),te);if(!Me)throw new Error("Pixel project matrix not invertible");this.pixelProjectionMatrix=te,this.pixelUnprojectionMatrix=Me,this.equals=this.equals.bind(this),this.project=this.project.bind(this),this.unproject=this.unproject.bind(this),this.projectPosition=this.projectPosition.bind(this),this.unprojectPosition=this.unprojectPosition.bind(this),this.projectFlat=this.projectFlat.bind(this),this.unprojectFlat=this.unprojectFlat.bind(this)}return(0,Ue.Z)(a,[{key:"equals",value:function(u){return u instanceof a?u.width===this.width&&u.height===this.height&&Xu(u.projectionMatrix,this.projectionMatrix)&&Xu(u.viewMatrix,this.viewMatrix):!1}},{key:"project",value:function(u){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=c.topLeft,g=l===void 0?!0:l,T=this.projectPosition(u),B=pA(T,this.pixelProjectionMatrix),G=(0,Qn.Z)(B,2),te=G[0],Me=G[1],Ge=g?Me:this.height-Me;return u.length===2?[te,Ge]:[te,Ge,B[2]]}},{key:"unproject",value:function(u){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=c.topLeft,g=l===void 0?!0:l,T=c.targetZ,B=(0,Qn.Z)(u,3),G=B[0],te=B[1],Me=B[2],Ge=g?te:this.height-te,St=T&&T*this.pixelsPerMeter,Mt=gA([G,Ge,Me],this.pixelUnprojectionMatrix,St),In=this.unprojectPosition(Mt),kn=(0,Qn.Z)(In,3),Sr=kn[0],_i=kn[1],Vo=kn[2];return Number.isFinite(Me)?[Sr,_i,Vo]:Number.isFinite(T)?[Sr,_i,T]:[Sr,_i]}},{key:"projectPosition",value:function(u){var c=this.projectFlat(u),l=(0,Qn.Z)(c,2),g=l[0],T=l[1],B=(u[2]||0)*this.pixelsPerMeter;return[g,T,B]}},{key:"unprojectPosition",value:function(u){var c=this.unprojectFlat(u),l=(0,Qn.Z)(c,2),g=l[0],T=l[1],B=(u[2]||0)/this.pixelsPerMeter;return[g,T,B]}},{key:"projectFlat",value:function(u){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return u}},{key:"unprojectFlat",value:function(u){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return u}}]),a}();function oV(a){var p=a.width,u=a.height,c=a.bounds,l=a.minExtent,g=l===void 0?0:l,T=a.maxZoom,B=T===void 0?24:T,G=a.padding,te=G===void 0?0:G,Me=a.offset,Ge=Me===void 0?[0,0]:Me,St=(0,Qn.Z)(c,2),Mt=(0,Qn.Z)(St[0],2),In=Mt[0],kn=Mt[1],Sr=(0,Qn.Z)(St[1],2),_i=Sr[0],Vo=Sr[1];if(Number.isFinite(te)){var zo=te;te={top:zo,bottom:zo,left:zo,right:zo}}else VE(Number.isFinite(te.top)&&Number.isFinite(te.bottom)&&Number.isFinite(te.left)&&Number.isFinite(te.right));var Ks=new HE({width:p,height:u,longitude:0,latitude:0,zoom:0}),ca=Ks.project([In,Vo]),Ia=Ks.project([_i,kn]),al=[Math.max(Math.abs(Ia[0]-ca[0]),g),Math.max(Math.abs(Ia[1]-ca[1]),g)],jl=[p-te.left-te.right-Math.abs(Ge[0])*2,u-te.top-te.bottom-Math.abs(Ge[1])*2];VE(jl[0]>0&&jl[1]>0);var Wl=jl[0]/al[0],Wu=jl[1]/al[1],Pu=(te.right-te.left)/2/Wl,Vc=(te.bottom-te.top)/2/Wu,dd=[(Ia[0]+ca[0])/2+Pu,(Ia[1]+ca[1])/2+Vc],Kd=Ks.unproject(dd),Hp=Ks.zoom+Math.log2(Math.abs(Math.min(Wl,Wu)));return{longitude:Kd[0],latitude:Kd[1],zoom:Math.min(Hp,B)}}var HE=function(a){(0,ht.Z)(p,a);function p(){var u,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=c.width,g=c.height,T=c.latitude,B=T===void 0?0:T,G=c.longitude,te=G===void 0?0:G,Me=c.zoom,Ge=Me===void 0?0:Me,St=c.pitch,Mt=St===void 0?0:St,In=c.bearing,kn=In===void 0?0:In,Sr=c.altitude,_i=Sr===void 0?1.5:Sr,Vo=c.nearZMultiplier,zo=c.farZMultiplier;(0,bt.Z)(this,p),l=l||1,g=g||1;var Ks=EF(Ge);_i=Math.max(.75,_i);var ca=UE([te,B],Ks);ca[2]=0;var Ia=rV({width:l,height:g,pitch:Mt,bearing:kn,altitude:_i,nearZMultiplier:Vo||1/g,farZMultiplier:zo||1.01}),al=tV({height:g,center:ca,pitch:Mt,bearing:kn,altitude:_i,flipY:!0});return u=(0,Bt.Z)(this,(0,mt.Z)(p).call(this,{width:l,height:g,viewMatrix:al,projectionMatrix:Ia})),u.latitude=B,u.longitude=te,u.zoom=Ge,u.pitch=Mt,u.bearing=kn,u.altitude=_i,u.scale=Ks,u.center=ca,u.pixelsPerMeter=TF((0,as.Z)((0,as.Z)(u))).pixelsPerMeter[2],Object.freeze((0,as.Z)((0,as.Z)(u))),u}return(0,Ue.Z)(p,[{key:"projectFlat",value:function(c){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return UE(c,l)}},{key:"unprojectFlat",value:function(c){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return S5(c,l)}},{key:"getMapCenterByLngLatPosition",value:function(c){var l=c.lngLat,g=c.pos,T=gA(g,this.pixelUnprojectionMatrix),B=UE(l,this.scale),G=Bp([],B,ug([],T)),te=Bp([],this.center,G);return S5(te,this.scale)}},{key:"getLocationAtPoint",value:function(c){var l=c.lngLat,g=c.pos;return this.getMapCenterByLngLatPosition({lngLat:l,pos:g})}},{key:"fitBounds",value:function(c){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},g=this.width,T=this.height,B=oV(Object.assign({width:g,height:T,bounds:c},l)),G=B.longitude,te=B.latitude,Me=B.zoom;return new p({width:g,height:T,longitude:G,latitude:te,zoom:Me})}}]),p}(iV),OI=function(){function a(){(0,bt.Z)(this,a)}return(0,Ue.Z)(a,[{key:"syncWithMapCamera",value:function(u){var c=u.center,l=u.zoom,g=u.pitch,T=u.bearing,B=u.viewportHeight,G=u.viewportWidth,te=this.viewport?{width:this.viewport.width,height:this.viewport.height,longitude:this.viewport.center[0],latitude:this.viewport.center[1],zoom:this.viewport.zoom,pitch:this.viewport.pitch,bearing:this.viewport.bearing}:{};this.viewport=new HE((0,Ce.Z)((0,Ce.Z)({},te),{},{width:G,height:B,longitude:c&&c[0],latitude:c&&c[1],zoom:l,pitch:g,bearing:T}))}},{key:"getZoom",value:function(){return this.viewport.zoom}},{key:"getZoomScale",value:function(){return Math.pow(2,this.getZoom())}},{key:"getCenter",value:function(){return[this.viewport.longitude,this.viewport.latitude]}},{key:"getProjectionMatrix",value:function(){return this.viewport.projectionMatrix}},{key:"getModelMatrix",value:function(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}},{key:"getViewMatrix",value:function(){return this.viewport.viewMatrix}},{key:"getViewMatrixUncentered",value:function(){return this.viewport.viewMatrixUncentered}},{key:"getViewProjectionMatrix",value:function(){return this.viewport.viewProjectionMatrix}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.viewport.viewProjectionMatrix}},{key:"getFocalDistance",value:function(){return 1}},{key:"projectFlat",value:function(u,c){return this.viewport.projectFlat(u,c)}}]),a}(),RI={normal:"amap://styles/normal",light:"amap://styles/c422f5c0cfced5be9fe3a83f05f28a68?isPublic=true",dark:"amap://styles/c9f1d10cae34f8ab05e425462c5a58d7?isPublic=true",blank:"amap://styles/07c17002b38775b32a7a76c66cf90e99?isPublic=true",fresh:"amap://styles/fresh",grey:"amap://styles/grey",graffiti:"amap://styles/graffiti",macaron:"amap://styles/macaron",darkblue:"amap://styles/darkblue",wine:"amap://styles/wine"},sV=["id","style","minZoom","maxZoom","token","mapInstance","plugin"],T5,DF,AF,D5,IF,LF,PC,PF,mA,kF,MF;function aV(a,p){var u=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,c=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(u||c)&&(p||(p=document),!!p)){var l=p.head||p.getElementsByTagName("head")[0];if(!l){l=p.createElement("head");var g=p.body||p.getElementsByTagName("body")[0];g?g.parentNode.insertBefore(l,g):p.documentElement.appendChild(l)}var T=p.createElement("style");return T.type="text/css",T.styleSheet?T.styleSheet.cssText=a:T.appendChild(p.createTextNode(a)),l.appendChild(T),T}}aV(`.amap-logo{ +`,J6={0:"#3288bd",.1:"#66c2a5",.2:"#abdda4",.3:"#e6f598",.4:"#fee08b",.5:"#fdae61",.6:"#f46d43",1:"#d53e4f"},VD=function(a){(0,dt.Z)(u,a);var p=q6(u);function u(){var c;(0,wt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T0&&arguments[0]!==void 0?arguments[0]:{},T=this.layer.getLayerConfig(),B=T.opacity;this.layerService.beforeRenderData(this.layer),this.layer.hooks.beforeRender.call(),this.layerService.renderMask(this.layer.masks),(l=this.colorModel)===null||l===void 0||l.draw({uniforms:{u_opacity:B||1,u_texture:this.texture},blend:this.getBlend(),stencil:this.getStencil(g)}),this.layer.hooks.afterRender.call()}}]),u}(Su),Q6={wind:VD},TW=Q6;function jE(a){var p=DW();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function DW(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var AW=function(a){(0,dt.Z)(u,a);var p=jE(u);function u(){var c;(0,wt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T0&&arguments[0]!==void 0?arguments[0]:{};return this.layerModel&&this.layerModel.render(l),this}},{key:"getDefaultConfig",value:function(){var l=this.getModelType(),g={wind:{}};return g[l]}},{key:"getModelType",value:function(){return"wind"}}]),u}(Xa),e8,UD,wO,HD,eI,tI,Bw,SO=Ma.cloneDeep,IW=(e8=(0,ws.b2)(),UD=(0,ws.f3)(gr.IMapService),wO=(0,ws.f3)(gr.IFontService),e8(HD=(eI=function(){function a(){(0,wt.Z)(this,a),Fd(this,"mapService",tI,this),Fd(this,"fontService",Bw,this)}return(0,He.Z)(a,[{key:"apply",value:function(u,c){var l=this,g=c.styleAttributeService;u.hooks.init.tapPromise("DataMappingPlugin",(0,Pa.Z)(Qi().mark(function T(){return Qi().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:u.log(pm.MappingStart,Rl.INIT),l.generateMaping(u,{styleAttributeService:g}),u.log(pm.MappingEnd,Rl.INIT);case 3:case"end":return Z.stop()}},T)}))),u.hooks.beforeRenderData.tapPromise("DataMappingPlugin",function(){var T=(0,Pa.Z)(Qi().mark(function B(Z){var ee;return Qi().wrap(function(Ze){for(;;)switch(Ze.prev=Ze.next){case 0:if(Z){Ze.next=2;break}return Ze.abrupt("return",Z);case 2:return u.dataState.dataMappingNeedUpdate=!1,u.log(pm.MappingStart,Rl.UPDATE),ee=l.generateMaping(u,{styleAttributeService:g}),u.log(pm.MappingEnd,Rl.UPDATE),Ze.abrupt("return",ee);case 7:case"end":return Ze.stop()}},B)}));return function(B){return T.apply(this,arguments)}}()),u.hooks.beforeRender.tap("DataMappingPlugin",function(){var T=u.getSource();if(!(u.layerModelNeedUpdate||!T||!T.inited)){var B=g.getLayerStyleAttributes()||[],Z=g.getLayerStyleAttribute("filter"),ee=T.data.dataArray;if(!(Array.isArray(ee)&&ee.length===0)){var Pe=B.filter(function(Mt){return Mt.needRemapping}),Ze=ee;if(Z!=null&&Z.needRemapping&&Z!==null&&Z!==void 0&&Z.scale&&(Ze=ee.filter(function(Mt){return l.applyAttributeMapping(Z,Mt)[0]})),Pe.length){var St=l.mapping(u,Pe,Ze,u.getEncodedData());u.setEncodedData(St)}}}})}},{key:"generateMaping",value:function(u,c){var l=this,g=c.styleAttributeService,T=g.getLayerStyleAttributes()||[],B=g.getLayerStyleAttribute("filter"),Z=u.getSource().data.dataArray,ee=Z;B!=null&&B.scale&&(ee=Z.filter(function(Ze){return l.applyAttributeMapping(B,Ze)[0]})),ee=u.processData(ee);var Pe=this.mapping(u,T,ee,void 0);return u.setEncodedData(Pe),Z.length===0&&u.encodeDataLength===0?!1:(u.emit("dataUpdate",null),!0)}},{key:"mapping",value:function(u,c,l,g){var T=this,B=u.getLayerConfig(),Z=B.arrow,ee=Z===void 0?{enable:!1}:Z,Pe=c.filter(function(St){return St.scale!==void 0}).filter(function(St){return St.name!=="filter"}),Ze=l.map(function(St,Mt){var Tn=g?g[Mt]:{},kn=(0,xe.Z)({id:St._id,coordinates:St.coordinates},Tn);if(Pe.forEach(function(zo){var $o=T.applyAttributeMapping(zo,St);(zo.name==="color"||zo.name==="stroke")&&($o=$o.map(function(Ks){return Kr(Ks)})),kn[zo.name]=Array.isArray($o)&&$o.length===1?$o[0]:$o,zo.name==="shape"&&(kn.shape=T.fontService.getIconFontKey(kn[zo.name]))}),ee.enable&&kn.shape==="line"){var vr=kn.coordinates;if(u.arrowInsertCount0&&this.mapService.version===d0["GAODE2.x"]){var g=c.coordCenter||c.getSource().center;u.filter(function(T){return!T.originCoordinates}).map(function(T){T.version=d0["GAODE2.x"],T.originCoordinates=SO(T.coordinates),T.coordinates=l.mapService.coordToAMap2RelativeCoordinates(T.coordinates,g)})}}},{key:"adjustData2SimpleCoordinates",value:function(u){var c=this;u.length>0&&this.mapService.version===d0.SIMPLE&&u.map(function(l){l.simpleCoordinate||(l.coordinates=c.unProjectCoordinates(l.coordinates),l.simpleCoordinate=!0)})}},{key:"unProjectCoordinates",value:function(u){var c=this;if(typeof u[0]=="number")return this.mapService.simpleMapCoord.unproject(u);if(u[0]&&u[0][0]instanceof Array){var l=[];return u.map(function(T){var B=[];T.map(function(Z){B.push(c.mapService.simpleMapCoord.unproject(Z))}),l.push(B)}),l}else{var g=[];return u.map(function(T){g.push(c.mapService.simpleMapCoord.unproject(T))}),g}}},{key:"applyAttributeMapping",value:function(u,c){var l;if(!u.scale)return[];var g=(u==null||(l=u.scale)===null||l===void 0?void 0:l.scalers)||[],T=[];g.forEach(function(Z){var ee,Pe=Z.field;(c.hasOwnProperty(Pe)||((ee=u.scale)===null||ee===void 0?void 0:ee.type)==="variable")&&T.push(c[Pe])});var B=u.mapping?u.mapping(T):[];return B}},{key:"getArrowPoints",value:function(u,c){var l=[c[0]-u[0],c[1]-u[1]],g=nd(l),T=[u[0]+g[0]*1e-4,u[1]+g[1]*1e-4];return T}}]),a}(),tI=$h(eI.prototype,"mapService",[UD],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Bw=$h(eI.prototype,"fontService",[wO],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),eI))||HD),t8,q2,ZD=(t8=(0,ws.b2)(),t8(q2=function(){function a(){(0,wt.Z)(this,a)}return(0,He.Z)(a,[{key:"apply",value:function(u){var c=this;this.mapService=u.getContainer().get(gr.IMapService),u.hooks.init.tapPromise("DataSourcePlugin",(0,Pa.Z)(Qi().mark(function l(){var g,T,B,Z;return Qi().wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:if(u.log(pm.SourceInitStart,Rl.INIT),g=u.getSource(),g||(T=u.sourceOption||u.defaultSourceConfig,B=T.data,Z=T.options,g=new r0(B,Z),u.setSource(g)),!g.inited){Pe.next=8;break}c.updateClusterData(u),u.log(pm.SourceInitEnd,Rl.INIT),Pe.next=10;break;case 8:return Pe.next=10,new Promise(function(Ze){g.on("update",function(St){St.type==="inited"&&(c.updateClusterData(u),u.log(pm.SourceInitEnd,Rl.INIT)),Ze(null)})});case 10:case"end":return Pe.stop()}},l)}))),u.hooks.beforeRenderData.tapPromise("DataSourcePlugin",(0,Pa.Z)(Qi().mark(function l(){var g,T,B;return Qi().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return g=c.updateClusterData(u),T=u.dataState.dataSourceNeedUpdate,u.dataState.dataSourceNeedUpdate=!1,B=g||T,ee.abrupt("return",B);case 5:case"end":return ee.stop()}},l)})))}},{key:"updateClusterData",value:function(u){if(u.isTileLayer||u.tileLayer||!u.getSource())return!1;var c=u.getSource(),l=c.cluster,g=c.clusterOptions.zoom,T=g===void 0?0:g,B=this.mapService.getZoom()-1,Z=u.dataState.dataSourceNeedUpdate;return l&&Z&&c.updateClusterData(Math.floor(B)),l&&Math.abs(u.clusterZoom-B)>=1?(T!==Math.floor(B)&&c.updateClusterData(Math.floor(B)),u.clusterZoom=B,!0):!1}}]),a}())||q2),by=m(57965);function n8(a,p,u,c,l){var g=a*a,T=g*a;return((1-3*a+3*g-T)*p+(4-6*g+3*T)*u+(1+3*a+3*g-3*T)*c+T*l)/6}function LW(a){var p=a.length-1;return function(u){var c=u<=0?u=0:u>=1?(u=1,p-1):Math.floor(u*p),l=a[c],g=a[c+1],T=c>0?a[c-1]:2*l-g,B=c180||u<-180?u-360*Math.round(u/360):u):constant(isNaN(a)?p:a)}function rI(a){return(a=+a)==1?zw:function(p,u){return u-p?nI(p,u,a):EO(isNaN(p)?u:p)}}function zw(a,p){var u=p-a;return u?r8(a,u):EO(isNaN(a)?p:a)}var TO=function a(p){var u=rI(p);function c(l,g){var T=u((l=Qn(l)).r,(g=Qn(g)).r),B=u(l.g,g.g),Z=u(l.b,g.b),ee=zw(l.opacity,g.opacity);return function(Pe){return l.r=T(Pe),l.g=B(Pe),l.b=Z(Pe),l.opacity=ee(Pe),l+""}}return c.gamma=a,c}(1);function DO(a){return function(p){var u=p.length,c=new Array(u),l=new Array(u),g=new Array(u),T,B;for(T=0;T=a.length)return u!=null&&B.sort(u),c!=null?c(B):B;for(var Ze=-1,St=B.length,Mt=a[Z++],Tn,kn,vr=map(),wi,zo=ee();++Zea.length)return B;var ee,Pe=p[Z-1];return c!=null&&Z>=a.length?ee=B.entries():(ee=[],B.each(function(Ze,St){ee.push({key:St,values:T(Ze,Z)})})),Pe!=null?ee.sort(function(Ze,St){return Pe(Ze.key,St.key)}):ee}return l={object:function(B){return g(B,0,AO,f0)},map:function(B){return g(B,0,zx,By)},entries:function(B){return T(g(B,0,zx,By),0)},key:function(B){return a.push(B),l},sortKeys:function(B){return p[a.length-1]=B,l},sortValues:function(B){return u=B,l},rollup:function(B){return c=B,l}}}function AO(){return{}}function f0(a,p,u){a[p]=u}function zx(){return map()}function By(a,p,u){a.set(p,u)}function Fv(){}var F0=pf.prototype;Fv.prototype=iI.prototype={constructor:Fv,has:F0.has,add:function(a){return a+="",this[l_+a]=a,this},remove:F0.remove,clear:F0.clear,values:F0.keys,size:F0.size,empty:F0.empty,each:F0.each};function iI(a,p){var u=new Fv;if(a instanceof Fv)a.each(function(g){u.add(g)});else if(a){var c=-1,l=a.length;if(p==null)for(;++cu&&(g=p.slice(u,g),B[T]?B[T]+=g:B[++T]=g),(c=c[0])===(l=l[0])?B[T]?B[T]+=l:B[++T]=l:(B[++T]=null,Z.push({i:T,x:G4(c,l)})),u=LO.lastIndex;return uu&&(c=p,p=u,u=c),function(l){return Math.max(p,Math.min(u,l))}}function W_(a,p,u){var c=a[0],l=a[1],g=p[0],T=p[1];return l2?$y:W_,Z=ee=null,Ze}function Ze(St){return isNaN(St=+St)?g:(Z||(Z=B(a.map(c),p,u)))(c(T(St)))}return Ze.invert=function(St){return T(l((ee||(ee=B(p,a.map(c),G4)))(St)))},Ze.domain=function(St){return arguments.length?(a=o8.call(St,$W),T===zy||(T=u8(a)),Pe()):a.slice()},Ze.range=function(St){return arguments.length?(p=VE.call(St),Pe()):p.slice()},Ze.rangeRound=function(St){return p=VE.call(St),u=BW,Pe()},Ze.clamp=function(St){return arguments.length?(T=St?u8(a):zy,Ze):T!==zy},Ze.interpolate=function(St){return arguments.length?(u=St,Pe()):u},Ze.unknown=function(St){return arguments.length?(g=St,Ze):g},function(St,Mt){return c=St,l=Mt,Pe()}}function c8(a,p){return kO()(a,p)}var WW=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ww(a){if(!(p=WW.exec(a)))throw new Error("invalid format: "+a);var p;return new MO({fill:p[1],align:p[2],sign:p[3],symbol:p[4],zero:p[5],width:p[6],comma:p[7],precision:p[8]&&p[8].slice(1),trim:p[9],type:p[10]})}Ww.prototype=MO.prototype;function MO(a){this.fill=a.fill===void 0?" ":a.fill+"",this.align=a.align===void 0?">":a.align+"",this.sign=a.sign===void 0?"-":a.sign+"",this.symbol=a.symbol===void 0?"":a.symbol+"",this.zero=!!a.zero,this.width=a.width===void 0?void 0:+a.width,this.comma=!!a.comma,this.precision=a.precision===void 0?void 0:+a.precision,this.trim=!!a.trim,this.type=a.type===void 0?"":a.type+""}MO.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function jW(a){return Math.abs(a=Math.round(a))>=1e21?a.toLocaleString("en").replace(/,/g,""):a.toString(10)}function Y4(a,p){if((u=(a=p?a.toExponential(p-1):a.toExponential()).indexOf("e"))<0)return null;var u,c=a.slice(0,u);return[c.length>1?c[0]+c.slice(2):c,+a.slice(u+1)]}function KD(a){return a=Y4(Math.abs(a)),a?a[1]:NaN}function VW(a,p){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(KD(p)/3)))*3-KD(Math.abs(a)))}function UW(a,p){return function(u,c){for(var l=u.length,g=[],T=0,B=a[0],Z=0;l>0&&B>0&&(Z+B+1>c&&(B=Math.max(1,c-Z)),g.push(u.substring(l-=B,l+B)),!((Z+=B+1)>c));)B=a[T=(T+1)%a.length];return g.reverse().join(p)}}function vX(a){return function(p){return p.replace(/[0-9]/g,function(u){return a[+u]})}}function yX(a){e:for(var p=a.length,u=1,c=-1,l;u0&&(c=0);break}return c>0?a.slice(0,c)+a.slice(l+1):a}var HW;function c_(a,p){var u=Y4(a,p);if(!u)return a+"";var c=u[0],l=u[1],g=l-(HW=Math.max(-8,Math.min(8,Math.floor(l/3)))*3)+1,T=c.length;return g===T?c:g>T?c+new Array(g-T+1).join("0"):g>0?c.slice(0,g)+"."+c.slice(g):"0."+new Array(1-g).join("0")+Y4(a,Math.max(0,p+g-1))[0]}function UE(a,p){var u=Y4(a,p);if(!u)return a+"";var c=u[0],l=u[1];return l<0?"0."+new Array(-l).join("0")+c:c.length>l+1?c.slice(0,l+1)+"."+c.slice(l+1):c+new Array(l-c.length+2).join("0")}var jc={"%":function(a,p){return(a*100).toFixed(p)},b:function(a){return Math.round(a).toString(2)},c:function(a){return a+""},d:jW,e:function(a,p){return a.toExponential(p)},f:function(a,p){return a.toFixed(p)},g:function(a,p){return a.toPrecision(p)},o:function(a){return Math.round(a).toString(8)},p:function(a,p){return UE(a*100,p)},r:UE,s:c_,X:function(a){return Math.round(a).toString(16).toUpperCase()},x:function(a){return Math.round(a).toString(16)}};function Xb(a){return a}var q4=Array.prototype.map,sI=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function ZW(a){var p=a.grouping===void 0||a.thousands===void 0?Xb:UW(q4.call(a.grouping,Number),a.thousands+""),u=a.currency===void 0?"":a.currency[0]+"",c=a.currency===void 0?"":a.currency[1]+"",l=a.decimal===void 0?".":a.decimal+"",g=a.numerals===void 0?Xb:vX(q4.call(a.numerals,String)),T=a.percent===void 0?"%":a.percent+"",B=a.minus===void 0?"-":a.minus+"",Z=a.nan===void 0?"NaN":a.nan+"";function ee(Ze){Ze=Ww(Ze);var St=Ze.fill,Mt=Ze.align,Tn=Ze.sign,kn=Ze.symbol,vr=Ze.zero,wi=Ze.width,zo=Ze.comma,$o=Ze.precision,Ks=Ze.trim,ra=Ze.type;ra==="n"?(zo=!0,ra="g"):jc[ra]||($o===void 0&&($o=12),Ks=!0,ra="g"),(vr||St==="0"&&Mt==="=")&&(vr=!0,St="0",Mt="=");var La=kn==="$"?u:kn==="#"&&/[boxX]/.test(ra)?"0"+ra.toLowerCase():"",vl=kn==="$"?c:/[%p]/.test(ra)?T:"",Wl=jc[ra],Jl=/[defgprs%]/.test(ra);$o=$o===void 0?6:/[gprs]/.test(ra)?Math.max(1,Math.min(21,$o)):Math.max(0,Math.min(20,$o));function ju(Ku){var Jc=La,gd=vl,Ch,og,um;if(ra==="c")gd=Wl(Ku)+gd,Ku="";else{Ku=+Ku;var Zg=Ku<0||1/Ku<0;if(Ku=isNaN(Ku)?Z:Wl(Math.abs(Ku),$o),Ks&&(Ku=yX(Ku)),Zg&&+Ku==0&&Tn!=="+"&&(Zg=!1),Jc=(Zg?Tn==="("?Tn:B:Tn==="-"||Tn==="("?"":Tn)+Jc,gd=(ra==="s"?sI[8+HW/3]:"")+gd+(Zg&&Tn==="("?")":""),Jl){for(Ch=-1,og=Ku.length;++Chum||um>57){gd=(um===46?l+Ku.slice(Ch+1):Ku.slice(Ch))+gd,Ku=Ku.slice(0,Ch);break}}}zo&&!vr&&(Ku=p(Ku,1/0));var Zm=Jc.length+Ku.length+gd.length,p0=Zm>1)+Jc+Ku+gd+p0.slice(Zm);break;default:Ku=p0+Jc+Ku+gd;break}return g(Ku)}return ju.toString=function(){return Ze+""},ju}function Pe(Ze,St){var Mt=ee((Ze=Ww(Ze),Ze.type="f",Ze)),Tn=Math.max(-8,Math.min(8,Math.floor(KD(St)/3)))*3,kn=Math.pow(10,-Tn),vr=sI[8+Tn/3];return function(wi){return Mt(kn*wi)+vr}}return{format:ee,formatPrefix:Pe}}var HE,J4,d8;GW({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function GW(a){return HE=ZW(a),J4=HE.format,d8=HE.formatPrefix,HE}function _X(a,p){return a=Math.abs(a),p=Math.abs(p)-a,Math.max(0,KD(p)-KD(a))+1}function OO(a){return Math.max(0,-KD(Math.abs(a)))}function Q4(a,p,u,c){var l=(0,by.ly)(a,p,u),g;switch(c=Ww(c==null?",f":c),c.type){case"s":{var T=Math.max(Math.abs(a),Math.abs(p));return c.precision==null&&!isNaN(g=VW(l,T))&&(c.precision=g),d8(c,T)}case"":case"e":case"g":case"p":case"r":{c.precision==null&&!isNaN(g=_X(l,Math.max(Math.abs(a),Math.abs(p))))&&(c.precision=g-(c.type==="e"));break}case"f":case"%":{c.precision==null&&!isNaN(g=OO(l))&&(c.precision=g-(c.type==="%")*2);break}}return J4(c)}function vb(a){var p=a.domain;return a.ticks=function(u){var c=p();return(0,by.sd)(c[0],c[c.length-1],u==null?10:u)},a.tickFormat=function(u,c){var l=p();return Q4(l[0],l[l.length-1],u==null?10:u,c)},a.nice=function(u){u==null&&(u=10);var c=p(),l=0,g=c.length-1,T=c[l],B=c[g],Z;return B0?(T=Math.floor(T/Z)*Z,B=Math.ceil(B/Z)*Z,Z=(0,by.G9)(T,B,u)):Z<0&&(T=Math.ceil(T*Z)/Z,B=Math.floor(B*Z)/Z,Z=(0,by.G9)(T,B,u)),Z>0?(c[l]=Math.floor(T/Z)*Z,c[g]=Math.ceil(B/Z)*Z,p(c)):Z<0&&(c[l]=Math.ceil(T*Z)/Z,c[g]=Math.floor(B*Z)/Z,p(c)),a},a}function h8(){var a=c8(zy,zy);return a.copy=function(){return X4(a,h8())},H0.apply(a,arguments),vb(a)}function RO(a){var p;function u(c){return isNaN(c=+c)?p:c}return u.invert=u,u.domain=u.range=function(c){return arguments.length?(a=map.call(c,number),u):a.slice()},u.unknown=function(c){return arguments.length?(p=c,u):p},u.copy=function(){return RO(a).unknown(p)},a=arguments.length?map.call(a,number):[0,1],linearish(u)}function f8(a,p){a=a.slice();var u=0,c=a.length-1,l=a[u],g=a[c],T;return g0){for(;StPe)break;zo.push(vr)}}else for(;St=1;--kn)if(vr=Tn*kn,!(vrPe)break;zo.push(vr)}}else zo=(0,by.sd)(St,Mt,Math.min(Mt-St,wi)).map(g);return Ze?zo.reverse():zo},p.tickFormat=function(B,Z){if(Z==null&&(Z=c===10?".0e":","),typeof Z!="function"&&(Z=J4(Z)),B===1/0)return Z;B==null&&(B=10);var ee=Math.max(1,c*B/p.ticks().length);return function(Pe){var Ze=Pe/g(Math.round(l(Pe)));return Ze*c0?u[B-1]:a[0],B=u?[c[u-1],p]:[c[ee-1],c[ee]]},T.unknown=function(Z){return arguments.length&&(g=Z),T},T.thresholds=function(){return c.slice()},T.copy=function(){return WO().domain([a,p]).range(l).unknown(g)},H0.apply(vb(T),arguments)}function jO(){var a=[.5],p=[0,1],u,c=1;function l(g){return g<=g?p[(0,by.b4)(a,g,0,c)]:u}return l.domain=function(g){return arguments.length?(a=VE.call(g),c=Math.min(a.length,p.length-1),l):a.slice()},l.range=function(g){return arguments.length?(p=VE.call(g),c=Math.min(a.length,p.length-1),l):p.slice()},l.invertExtent=function(g){var T=p.indexOf(g);return[a[T-1],a[T]]},l.unknown=function(g){return arguments.length?(u=g,l):u},l.copy=function(){return jO().domain(a).range(p).unknown(u)},H0.apply(l,arguments)}var uI=new Date,VO=new Date;function g1(a,p,u,c){function l(g){return a(g=arguments.length===0?new Date:new Date(+g)),g}return l.floor=function(g){return a(g=new Date(+g)),g},l.ceil=function(g){return a(g=new Date(g-1)),p(g,1),a(g),g},l.round=function(g){var T=l(g),B=l.ceil(g);return g-T0))return Z;do Z.push(ee=new Date(+g)),p(g,B),a(g);while(ee=T)for(;a(T),!g(T);)T.setTime(T-1)},function(T,B){if(T>=T)if(B<0)for(;++B<=0;)for(;p(T,-1),!g(T););else for(;--B>=0;)for(;p(T,1),!g(T););})},u&&(l.count=function(g,T){return uI.setTime(+g),VO.setTime(+T),a(uI),a(VO),Math.floor(u(uI,VO))},l.every=function(g){return g=Math.floor(g),!isFinite(g)||!(g>0)?null:g>1?l.filter(c?function(T){return c(T)%g===0}:function(T){return l.count(0,T)%g===0}):l}),l}var UO=g1(function(a){a.setMonth(0,1),a.setHours(0,0,0,0)},function(a,p){a.setFullYear(a.getFullYear()+p)},function(a,p){return p.getFullYear()-a.getFullYear()},function(a){return a.getFullYear()});UO.every=function(a){return!isFinite(a=Math.floor(a))||!(a>0)?null:g1(function(p){p.setFullYear(Math.floor(p.getFullYear()/a)*a),p.setMonth(0,1),p.setHours(0,0,0,0)},function(p,u){p.setFullYear(p.getFullYear()+u*a)})};var qD=UO,HO=UO.range,iP=g1(function(a){a.setDate(1),a.setHours(0,0,0,0)},function(a,p){a.setMonth(a.getMonth()+p)},function(a,p){return p.getMonth()-a.getMonth()+(p.getFullYear()-a.getFullYear())*12},function(a){return a.getMonth()}),v8=iP,xX=iP.range,eS=1e3,d_=6e4,y8=36e5,XW=864e5,kC=6048e5;function GE(a){return g1(function(p){p.setDate(p.getDate()-(p.getDay()+7-a)%7),p.setHours(0,0,0,0)},function(p,u){p.setDate(p.getDate()+u*7)},function(p,u){return(u-p-(u.getTimezoneOffset()-p.getTimezoneOffset())*d_)/kC})}var ZO=GE(0),Wy=GE(1),oP=GE(2),YW=GE(3),tS=GE(4),qW=GE(5),cI=GE(6),CX=ZO.range,dI=Wy.range,_8=oP.range,JW=YW.range,wX=tS.range,SX=qW.range,QW=cI.range,GO=g1(function(a){a.setHours(0,0,0,0)},function(a,p){a.setDate(a.getDate()+p)},function(a,p){return(p-a-(p.getTimezoneOffset()-a.getTimezoneOffset())*d_)/XW},function(a){return a.getDate()-1}),MC=GO,EX=GO.range,b8=g1(function(a){a.setTime(a-a.getMilliseconds()-a.getSeconds()*eS-a.getMinutes()*d_)},function(a,p){a.setTime(+a+p*y8)},function(a,p){return(p-a)/y8},function(a){return a.getHours()}),ej=b8,sP=b8.range,x8=g1(function(a){a.setTime(a-a.getMilliseconds()-a.getSeconds()*eS)},function(a,p){a.setTime(+a+p*d_)},function(a,p){return(p-a)/d_},function(a){return a.getMinutes()}),tj=x8,TX=x8.range,KO=g1(function(a){a.setTime(a-a.getMilliseconds())},function(a,p){a.setTime(+a+p*eS)},function(a,p){return(p-a)/eS},function(a){return a.getUTCSeconds()}),nj=KO,C8=KO.range,aP=g1(function(){},function(a,p){a.setTime(+a+p)},function(a,p){return p-a});aP.every=function(a){return a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?g1(function(p){p.setTime(Math.floor(p/a)*a)},function(p,u){p.setTime(+p+u*a)},function(p,u){return(u-p)/a}):aP};var w8=aP,DX=aP.range;function yb(a){return g1(function(p){p.setUTCDate(p.getUTCDate()-(p.getUTCDay()+7-a)%7),p.setUTCHours(0,0,0,0)},function(p,u){p.setUTCDate(p.getUTCDate()+u*7)},function(p,u){return(u-p)/kC})}var S8=yb(0),j_=yb(1),rj=yb(2),ij=yb(3),JD=yb(4),E8=yb(5),oj=yb(6),AX=S8.range,IX=j_.range,LX=rj.range,PX=ij.range,sj=JD.range,kX=E8.range,T8=oj.range,lP=g1(function(a){a.setUTCHours(0,0,0,0)},function(a,p){a.setUTCDate(a.getUTCDate()+p)},function(a,p){return(p-a)/XW},function(a){return a.getUTCDate()-1}),uP=lP,aj=lP.range,QD=g1(function(a){a.setUTCMonth(0,1),a.setUTCHours(0,0,0,0)},function(a,p){a.setUTCFullYear(a.getUTCFullYear()+p)},function(a,p){return p.getUTCFullYear()-a.getUTCFullYear()},function(a){return a.getUTCFullYear()});QD.every=function(a){return!isFinite(a=Math.floor(a))||!(a>0)?null:g1(function(p){p.setUTCFullYear(Math.floor(p.getUTCFullYear()/a)*a),p.setUTCMonth(0,1),p.setUTCHours(0,0,0,0)},function(p,u){p.setUTCFullYear(p.getUTCFullYear()+u*a)})};var eA=QD,D8=QD.range;function hI(a){if(0<=a.y&&a.y<100){var p=new Date(-1,a.m,a.d,a.H,a.M,a.S,a.L);return p.setFullYear(a.y),p}return new Date(a.y,a.m,a.d,a.H,a.M,a.S,a.L)}function XO(a){if(0<=a.y&&a.y<100){var p=new Date(Date.UTC(-1,a.m,a.d,a.H,a.M,a.S,a.L));return p.setUTCFullYear(a.y),p}return new Date(Date.UTC(a.y,a.m,a.d,a.H,a.M,a.S,a.L))}function fI(a,p,u){return{y:a,m:p,d:u,H:0,M:0,S:0,L:0}}function A8(a){var p=a.dateTime,u=a.date,c=a.time,l=a.periods,g=a.days,T=a.shortDays,B=a.months,Z=a.shortMonths,ee=pI(l),Pe=jw(l),Ze=pI(g),St=jw(g),Mt=pI(T),Tn=jw(T),kn=pI(B),vr=jw(B),wi=pI(Z),zo=jw(Z),$o={a:Zg,A:Zm,b:p0,B:nv,c:null,d:nA,e:nA,f:yj,g:dP,G:Sj,H:mj,I:vj,j:e5,L:P8,m:_j,M:bj,p:e2,q:Qx,Q:F8,s:B8,S:rS,u:k8,U:gI,V:NC,w:xj,W:Cj,x:null,X:null,y:wj,Y:rA,Z:Ej,"%":N8},Ks={a:yS,A:_S,b:I0,B:bp,c:null,d:hP,e:hP,f:e1,g:Lj,G:R8,H:f_,I:M8,j:fP,L:O8,m:Tj,M:iS,p:eC,q:hk,Q:F8,s:B8,S:t5,u:FC,U:n5,V:Dj,w:pP,W:Aj,x:null,X:null,y:Ij,Y:Pj,Z:kj,"%":N8},ra={a:ju,A:Ku,b:Jc,B:gd,c:Ch,d:cP,e:cP,f:jx,g:L8,G:RC,H:JO,I:JO,j:fj,L:tA,m:hj,M:QO,p:Jl,q:KE,Q:gj,s:Vw,S:nS,u:$1,U:cj,V:YO,w:I8,W:dj,x:og,X:um,y:L8,Y:RC,Z:qO,"%":pj};$o.x=La(u,$o),$o.X=La(c,$o),$o.c=La(p,$o),Ks.x=La(u,Ks),Ks.X=La(c,Ks),Ks.c=La(p,Ks);function La(gp,Am){return function(b0){var Fh=[],Uy=-1,Z0=0,Sb=gp.length,Eb,JC,DR;for(b0 instanceof Date||(b0=new Date(+b0));++Uy53)return null;"w"in Fh||(Fh.w=1),"Z"in Fh?(Z0=XO(fI(Fh.y,0,1)),Sb=Z0.getUTCDay(),Z0=Sb>4||Sb===0?j_.ceil(Z0):j_(Z0),Z0=uP.offset(Z0,(Fh.V-1)*7),Fh.y=Z0.getUTCFullYear(),Fh.m=Z0.getUTCMonth(),Fh.d=Z0.getUTCDate()+(Fh.w+6)%7):(Z0=hI(fI(Fh.y,0,1)),Sb=Z0.getDay(),Z0=Sb>4||Sb===0?Wy.ceil(Z0):Wy(Z0),Z0=MC.offset(Z0,(Fh.V-1)*7),Fh.y=Z0.getFullYear(),Fh.m=Z0.getMonth(),Fh.d=Z0.getDate()+(Fh.w+6)%7)}else("W"in Fh||"U"in Fh)&&("w"in Fh||(Fh.w="u"in Fh?Fh.u%7:"W"in Fh?1:0),Sb="Z"in Fh?XO(fI(Fh.y,0,1)).getUTCDay():hI(fI(Fh.y,0,1)).getDay(),Fh.m=0,Fh.d="W"in Fh?(Fh.w+6)%7+Fh.W*7-(Sb+5)%7:Fh.w+Fh.U*7-(Sb+6)%7);return"Z"in Fh?(Fh.H+=Fh.Z/100|0,Fh.M+=Fh.Z%100,XO(Fh)):hI(Fh)}}function Wl(gp,Am,b0,Fh){for(var Uy=0,Z0=Am.length,Sb=b0.length,Eb,JC;Uy=Sb)return-1;if(Eb=Am.charCodeAt(Uy++),Eb===37){if(Eb=Am.charAt(Uy++),JC=ra[Eb in Wx?Am.charAt(Uy++):Eb],!JC||(Fh=JC(gp,b0,Fh))<0)return-1}else if(Eb!=b0.charCodeAt(Fh++))return-1}return Fh}function Jl(gp,Am,b0){var Fh=ee.exec(Am.slice(b0));return Fh?(gp.p=Pe[Fh[0].toLowerCase()],b0+Fh[0].length):-1}function ju(gp,Am,b0){var Fh=Mt.exec(Am.slice(b0));return Fh?(gp.w=Tn[Fh[0].toLowerCase()],b0+Fh[0].length):-1}function Ku(gp,Am,b0){var Fh=Ze.exec(Am.slice(b0));return Fh?(gp.w=St[Fh[0].toLowerCase()],b0+Fh[0].length):-1}function Jc(gp,Am,b0){var Fh=wi.exec(Am.slice(b0));return Fh?(gp.m=zo[Fh[0].toLowerCase()],b0+Fh[0].length):-1}function gd(gp,Am,b0){var Fh=kn.exec(Am.slice(b0));return Fh?(gp.m=vr[Fh[0].toLowerCase()],b0+Fh[0].length):-1}function Ch(gp,Am,b0){return Wl(gp,p,Am,b0)}function og(gp,Am,b0){return Wl(gp,u,Am,b0)}function um(gp,Am,b0){return Wl(gp,c,Am,b0)}function Zg(gp){return T[gp.getDay()]}function Zm(gp){return g[gp.getDay()]}function p0(gp){return Z[gp.getMonth()]}function nv(gp){return B[gp.getMonth()]}function e2(gp){return l[+(gp.getHours()>=12)]}function Qx(gp){return 1+~~(gp.getMonth()/3)}function yS(gp){return T[gp.getUTCDay()]}function _S(gp){return g[gp.getUTCDay()]}function I0(gp){return Z[gp.getUTCMonth()]}function bp(gp){return B[gp.getUTCMonth()]}function eC(gp){return l[+(gp.getUTCHours()>=12)]}function hk(gp){return 1+~~(gp.getUTCMonth()/3)}return{format:function(gp){var Am=La(gp+="",$o);return Am.toString=function(){return gp},Am},parse:function(gp){var Am=vl(gp+="",!1);return Am.toString=function(){return gp},Am},utcFormat:function(gp){var Am=La(gp+="",Ks);return Am.toString=function(){return gp},Am},utcParse:function(gp){var Am=vl(gp+="",!0);return Am.toString=function(){return gp},Am}}}var Wx={"-":"",_:" ",0:"0"},Qv=/^\s*\d+/,lj=/^%/,OC=/[\\^$*+?|[\]().{}]/g;function s0(a,p,u){var c=a<0?"-":"",l=(c?-a:a)+"",g=l.length;return c+(g68?1900:2e3),u+c[0].length):-1}function qO(a,p,u){var c=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(p.slice(u,u+6));return c?(a.Z=c[1]?0:-(c[2]+(c[3]||"00")),u+c[0].length):-1}function KE(a,p,u){var c=Qv.exec(p.slice(u,u+1));return c?(a.q=c[0]*3-3,u+c[0].length):-1}function hj(a,p,u){var c=Qv.exec(p.slice(u,u+2));return c?(a.m=c[0]-1,u+c[0].length):-1}function cP(a,p,u){var c=Qv.exec(p.slice(u,u+2));return c?(a.d=+c[0],u+c[0].length):-1}function fj(a,p,u){var c=Qv.exec(p.slice(u,u+3));return c?(a.m=0,a.d=+c[0],u+c[0].length):-1}function JO(a,p,u){var c=Qv.exec(p.slice(u,u+2));return c?(a.H=+c[0],u+c[0].length):-1}function QO(a,p,u){var c=Qv.exec(p.slice(u,u+2));return c?(a.M=+c[0],u+c[0].length):-1}function nS(a,p,u){var c=Qv.exec(p.slice(u,u+2));return c?(a.S=+c[0],u+c[0].length):-1}function tA(a,p,u){var c=Qv.exec(p.slice(u,u+3));return c?(a.L=+c[0],u+c[0].length):-1}function jx(a,p,u){var c=Qv.exec(p.slice(u,u+6));return c?(a.L=Math.floor(c[0]/1e3),u+c[0].length):-1}function pj(a,p,u){var c=lj.exec(p.slice(u,u+1));return c?u+c[0].length:-1}function gj(a,p,u){var c=Qv.exec(p.slice(u));return c?(a.Q=+c[0],u+c[0].length):-1}function Vw(a,p,u){var c=Qv.exec(p.slice(u));return c?(a.s=+c[0],u+c[0].length):-1}function nA(a,p){return s0(a.getDate(),p,2)}function mj(a,p){return s0(a.getHours(),p,2)}function vj(a,p){return s0(a.getHours()%12||12,p,2)}function e5(a,p){return s0(1+MC.count(qD(a),a),p,3)}function P8(a,p){return s0(a.getMilliseconds(),p,3)}function yj(a,p){return P8(a,p)+"000"}function _j(a,p){return s0(a.getMonth()+1,p,2)}function bj(a,p){return s0(a.getMinutes(),p,2)}function rS(a,p){return s0(a.getSeconds(),p,2)}function k8(a){var p=a.getDay();return p===0?7:p}function gI(a,p){return s0(ZO.count(qD(a)-1,a),p,2)}function h_(a){var p=a.getDay();return p>=4||p===0?tS(a):tS.ceil(a)}function NC(a,p){return a=h_(a),s0(tS.count(qD(a),a)+(qD(a).getDay()===4),p,2)}function xj(a){return a.getDay()}function Cj(a,p){return s0(Wy.count(qD(a)-1,a),p,2)}function wj(a,p){return s0(a.getFullYear()%100,p,2)}function dP(a,p){return a=h_(a),s0(a.getFullYear()%100,p,2)}function rA(a,p){return s0(a.getFullYear()%1e4,p,4)}function Sj(a,p){var u=a.getDay();return a=u>=4||u===0?tS(a):tS.ceil(a),s0(a.getFullYear()%1e4,p,4)}function Ej(a){var p=a.getTimezoneOffset();return(p>0?"-":(p*=-1,"+"))+s0(p/60|0,"0",2)+s0(p%60,"0",2)}function hP(a,p){return s0(a.getUTCDate(),p,2)}function f_(a,p){return s0(a.getUTCHours(),p,2)}function M8(a,p){return s0(a.getUTCHours()%12||12,p,2)}function fP(a,p){return s0(1+uP.count(eA(a),a),p,3)}function O8(a,p){return s0(a.getUTCMilliseconds(),p,3)}function e1(a,p){return O8(a,p)+"000"}function Tj(a,p){return s0(a.getUTCMonth()+1,p,2)}function iS(a,p){return s0(a.getUTCMinutes(),p,2)}function t5(a,p){return s0(a.getUTCSeconds(),p,2)}function FC(a){var p=a.getUTCDay();return p===0?7:p}function n5(a,p){return s0(S8.count(eA(a)-1,a),p,2)}function iA(a){var p=a.getUTCDay();return p>=4||p===0?JD(a):JD.ceil(a)}function Dj(a,p){return a=iA(a),s0(JD.count(eA(a),a)+(eA(a).getUTCDay()===4),p,2)}function pP(a){return a.getUTCDay()}function Aj(a,p){return s0(j_.count(eA(a)-1,a),p,2)}function Ij(a,p){return s0(a.getUTCFullYear()%100,p,2)}function Lj(a,p){return a=iA(a),s0(a.getUTCFullYear()%100,p,2)}function Pj(a,p){return s0(a.getUTCFullYear()%1e4,p,4)}function R8(a,p){var u=a.getUTCDay();return a=u>=4||u===0?JD(a):JD.ceil(a),s0(a.getUTCFullYear()%1e4,p,4)}function kj(){return"+0000"}function N8(){return"%"}function F8(a){return+a}function B8(a){return Math.floor(+a/1e3)}var oA,z8,sA,$8,W8;BC({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function BC(a){return oA=A8(a),z8=oA.format,sA=oA.parse,$8=oA.utcFormat,W8=oA.utcParse,oA}var oS=1e3,aA=oS*60,mI=aA*60,lA=mI*24,Mj=lA*7,j8=lA*30,zC=lA*365;function r5(a){return new Date(a)}function XE(a){return a instanceof Date?+a:+new Date(+a)}function V8(a,p,u,c,l,g,T,B,Z){var ee=c8(zy,zy),Pe=ee.invert,Ze=ee.domain,St=Z(".%L"),Mt=Z(":%S"),Tn=Z("%I:%M"),kn=Z("%I %p"),vr=Z("%a %d"),wi=Z("%b %d"),zo=Z("%B"),$o=Z("%Y"),Ks=[[T,1,oS],[T,5,5*oS],[T,15,15*oS],[T,30,30*oS],[g,1,aA],[g,5,5*aA],[g,15,15*aA],[g,30,30*aA],[l,1,mI],[l,3,3*mI],[l,6,6*mI],[l,12,12*mI],[c,1,lA],[c,2,2*lA],[u,1,Mj],[p,1,j8],[p,3,3*j8],[a,1,zC]];function ra(vl){return(T(vl)2){var Ze=ee.scale.ticks(T.values.length);ee.scale.domain(Ze)}T.values?ee.scale.range(T.values):ee.scale.range(ee.option.domain);break;case n0.QUANTILE:case n0.QUANTIZE:case n0.THRESHOLD:ee.scale.range(T.values);break;case n0.IDENTITY:break;case n0.CAT:T.values?ee.scale.range(T.values):ee.scale.range(ee.option.domain);break;case n0.DIVERGING:case n0.SEQUENTIAL:ee.scale.interpolator(pv(T.values));break}}if(T.values==="text"){var St;ee.scale.range((St=ee.option)===null||St===void 0?void 0:St.domain)}})):(T.type=Wb.CONSTANT,T.defaultValues=Z.map(function(ee,Pe){return ee.scale(T.names[Pe])})),T.scalers=Z.map(function(ee){return{field:ee.field,func:ee.scale,option:ee.option}}),g.needRescale=!1}})}},{key:"parseFields",value:function(u){return Array.isArray(u)?u:yI(u)?u.split("*"):[u]}},{key:"createScale",value:function(u,c,l,g){var T,B,Z=this.scaleOptions[c]&&((T=this.scaleOptions[c])===null||T===void 0?void 0:T.field)===u?this.scaleOptions[c]:this.scaleOptions[u],ee={field:u,scale:void 0,type:Wb.VARIABLE,option:Z};if(!g||!g.length)return Z&&Z.type?ee.scale=this.createDefaultScale(Z):(ee.scale=Z4([u]),ee.type=Wb.CONSTANT),ee;var Pe=(B=g.find(function(Mt){return!o5(Mt[u])}))===null||B===void 0?void 0:B[u];if(this.isNumber(u)||o5(Pe)&&!Z)ee.scale=Z4([u]),ee.type=Wb.CONSTANT;else{var Ze=Z&&Z.type||this.getDefaultType(Pe);l==="text"&&(Ze=n0.CAT),l===void 0&&(Ze=n0.IDENTITY);var St=this.createScaleConfig(Ze,u,Z,g);ee.scale=this.createDefaultScale(St),ee.option=St}return ee}},{key:"getDefaultType",value:function(u){var c=n0.LINEAR;return typeof u=="string"&&(c=Nj.test(u)?n0.TIME:n0.CAT),c}},{key:"createScaleConfig",value:function(u,c,l,g){var T={type:u},B=(g==null?void 0:g.map(function(Pe){return Pe[c]}))||[];if(l!=null&&l.domain)T.domain=l==null?void 0:l.domain;else if(u===n0.CAT||u===n0.IDENTITY)T.domain=Rj(B);else if(u===n0.QUANTILE)T.domain=B;else if(u===n0.DIVERGING){var Z=(0,by.We)(B),ee=(l==null?void 0:l.neutral)!==void 0?l==null?void 0:l.neutral:(Z[0]+Z[1])/2;T.domain=[Z[0],ee,Z[1]]}else T.domain=(0,by.We)(B);return(0,xe.Z)((0,xe.Z)({},T),l)}},{key:"createDefaultScale",value:function(u){var c=u.type,l=u.domain,g=u.unknown,T=u.clamp,B=u.nice,Z=Fj[c]();return l&&Z.domain&&Z.domain(l),g&&Z.unknown(g),T!==void 0&&Z.clamp&&Z.clamp(T),B!==void 0&&Z.nice&&Z.nice(B),Z}}]),a}())||aS),yP,s5,G8=(yP=(0,ws.b2)(),yP(s5=function(){function a(){(0,wt.Z)(this,a)}return(0,He.Z)(a,[{key:"apply",value:function(u){u.hooks.beforeRender.tap("LayerAnimateStylePlugin",function(){var c=u.animateStatus;c&&u.models.forEach(function(l){l.addUniforms((0,xe.Z)({},u.layerModel.getAnimateUniforms()))})})}}]),a}())||s5),$C,a5,Bj=($C=(0,ws.b2)(),$C(a5=function(){function a(){(0,wt.Z)(this,a)}return(0,He.Z)(a,[{key:"apply",value:function(u){u.hooks.afterInit.tap("LayerMaskPlugin",function(){var c=u.getLayerConfig(),l=c.maskLayers,g=c.enableMask;if(!u.tileLayer&&l&&l.length>0){var T;(T=u.masks).push.apply(T,(0,kr.Z)(l)),u.updateLayerConfig({mask:g})}})}}]),a}())||a5),zj=function(){function a(p){var u=p.rendererService,c=p.layerService,l=p.parent;(0,wt.Z)(this,a),(0,bn.Z)(this,"tileResource",new Map),(0,bn.Z)(this,"layerTiles",[]),this.rendererService=u,this.layerService=c,this.parent=l}return(0,He.Z)(a,[{key:"tiles",get:function(){return this.layerTiles}},{key:"hasTile",value:function(u){return this.layerTiles.some(function(c){return c.key===u})}},{key:"addTile",value:function(u){this.layerTiles.push(u)}},{key:"getTile",value:function(u){return this.layerTiles.find(function(c){return c.key===u})}},{key:"getVisibleTileBylngLat",value:function(u){return this.layerTiles.find(function(c){return c.isLoaded&&c.visible&&c.lnglatInBounds(u)})}},{key:"removeTile",value:function(u){var c=this.layerTiles.findIndex(function(g){return g.key===u}),l=this.layerTiles.splice(c,1);l[0]&&l[0].destroy()}},{key:"updateTileVisible",value:function(u){var c=this.getTile(u.key);if(u.isVisible)if(u.parent){var l=this.isChildrenLoaded(u.parent);c==null||c.updateVisible(l)}else c==null||c.updateVisible(!0);else if(u.parent){var g=this.isChildrenLoaded(u.parent);c==null||c.updateVisible(!g)}else c==null||c.updateVisible(!1)}},{key:"isParentLoaded",value:function(u){var c=u.parent;if(!c)return!0;var l=this.getTile(c==null?void 0:c.key);return!!(l!=null&&l.isLoaded)}},{key:"isChildrenLoaded",value:function(u){var c=this,l=u==null?void 0:u.children;return l.length===0?!0:l.every(function(g){var T=c.getTile(g==null?void 0:g.key);return T?(T==null?void 0:T.isLoaded)===!0:!0})}},{key:"render",value:function(){var p=(0,Pa.Z)(Qi().mark(function c(){var l=this,g,T;return Qi().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return g=this.getRenderLayers(),T=g.map(function(){var ee=(0,Pa.Z)(Qi().mark(function Pe(Ze){return Qi().wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return Mt.next=2,l.layerService.renderTileLayer(Ze);case 2:case"end":return Mt.stop()}},Pe)}));return function(Pe){return ee.apply(this,arguments)}}()),Z.next=4,Promise.all(T);case 4:case"end":return Z.stop()}},c,this)}));function u(){return p.apply(this,arguments)}return u}()},{key:"getRenderLayers",value:function(){var u=this.layerTiles.filter(function(l){return l.visible&&l.isLoaded}),c=[];return u.map(function(l){return c.push.apply(c,(0,kr.Z)(l.getLayers()))}),c}},{key:"getLayers",value:function(){var u=this.layerTiles.filter(function(l){return l.isLoaded}),c=[];return u.map(function(l){return c.push.apply(c,(0,kr.Z)(l.getLayers()))}),c}},{key:"getTiles",value:function(){return this.layerTiles}},{key:"destroy",value:function(){this.layerTiles.forEach(function(u){return u.destroy()}),this.tileResource.clear()}}]),a}(),$j=m(35486),_I=function(){function a(){(0,wt.Z)(this,a)}return(0,He.Z)(a,[{key:"getCombineFeature",value:function(u){var c=null,l=u[0];return u.map(function(g){var T=ma.polygon(g.coordinates);c===null?c=T:c=(0,$j.Z)(c,T)}),l&&(c.properties=(0,xe.Z)({},l)),c}}]),a}(),bI="select",xI="active",l5=function(){function a(p){var u=p.layerService,c=p.tileLayerService,l=p.parent;(0,wt.Z)(this,a),(0,bn.Z)(this,"tilePickID",new Map),this.layerService=u,this.tileLayerService=c,this.parent=l,this.tileSourceService=new _I}return(0,He.Z)(a,[{key:"pickRender",value:function(u){var c=this.tileLayerService.getVisibleTileBylngLat(u.lngLat);if(c){var l=c.getMainLayer();l==null||l.layerPickService.pickRender(u)}}},{key:"pick",value:function(u,c){var l=this.parent.getContainer(),g=l.get(gr.IPickingService);if(u.type==="RasterLayer"){var T=this.tileLayerService.getVisibleTileBylngLat(c.lngLat);if(T&&T.getMainLayer()!==void 0){var B=T.getMainLayer();return B.layerPickService.pickRasterLayer(B,c,this.parent)}return!1}return this.pickRender(c),g.pickFromPickingFBO(u,c)}},{key:"selectFeature",value:function(u){var c=(0,qn.Z)(u,3),l=c[0],g=c[1],T=c[2],B=this.color2PickId(l,g,T);this.tilePickID.set(bI,B),this.updateHighLight(l,g,T,bI)}},{key:"highlightPickedFeature",value:function(u){var c=(0,qn.Z)(u,3),l=c[0],g=c[1],T=c[2],B=this.color2PickId(l,g,T);this.tilePickID.set(xI,B),this.updateHighLight(l,g,T,xI)}},{key:"updateHighLight",value:function(u,c,l,g){this.tileLayerService.tiles.map(function(T){var B=T.getMainLayer();switch(g){case bI:B==null||B.hooks.beforeSelect.call([u,c,l]);break;case xI:B==null||B.hooks.beforeHighlight.call([u,c,l]);break}})}},{key:"setPickState",value:function(){var u=this.tilePickID.get(bI),c=this.tilePickID.get(xI);if(u){var l=this.pickId2Color(u),g=(0,qn.Z)(l,3),T=g[0],B=g[1],Z=g[2];this.updateHighLight(T,B,Z,bI);return}if(c){var ee=this.pickId2Color(c),Pe=(0,qn.Z)(ee,3),Ze=Pe[0],St=Pe[1],Mt=Pe[2];this.updateHighLight(Ze,St,Mt,xI);return}}},{key:"color2PickId",value:function(u,c,l){return ti(new Uint8Array([u,c,l]))}},{key:"pickId2Color",value:function(u){return ji(u)}},{key:"getFeatureById",value:function(u){var c=this.tileLayerService.getTiles().filter(function(g){return g.visible}),l=[];return c.forEach(function(g){l.push.apply(l,(0,kr.Z)(g.getFeatureById(u)))}),l}},{key:"pickRasterLayer",value:function(u,c,l){return!1}}]),a}();function K8(a){return a==="PolygonLayer"?F4:a==="LineLayer"?PE:R4}function Wj(a){return["PolygonLayer","LineLayer"].indexOf(a)!==-1}function jj(a){var p=Vj();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function Vj(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var JE=function(a){(0,dt.Z)(u,a);var p=jj(u);function u(c,l){var g;return(0,wt.Z)(this,u),g=p.call(this),(0,bn.Z)((0,is.Z)(g),"visible",!0),(0,bn.Z)((0,is.Z)(g),"layers",[]),(0,bn.Z)((0,is.Z)(g),"isLoaded",!1),(0,bn.Z)((0,is.Z)(g),"tileMaskLayers",[]),g.parent=l,g.sourceTile=c,g.x=c.x,g.y=c.y,g.z=c.z,g.key="".concat(g.x,"_").concat(g.y,"_").concat(g.z),g}return(0,He.Z)(u,[{key:"getLayers",value:function(){return this.layers}},{key:"styleUpdate",value:function(){}},{key:"lnglatInBounds",value:function(l){var g=(0,qn.Z)(this.sourceTile.bounds,4),T=g[0],B=g[1],Z=g[2],ee=g[3],Pe=l.lng,Ze=l.lat;return Pe>=T&&Pe<=Z&&Ze>=B&&Ze<=ee}},{key:"getLayerOptions",value:function(){var l,g=this.parent.getLayerConfig();return(0,xe.Z)((0,xe.Z)({},g),{},{textAllowOverlap:!0,autoFit:!1,maskLayers:this.getMaskLayer(),tileMask:Wj(this.parent.type),mask:g.mask||((l=g.maskLayers)===null||l===void 0?void 0:l.length)!==0&&g.enableMask})}},{key:"getMaskLayer",value:function(){var l=this,g=this.parent.getLayerConfig(),T=g.maskLayers,B=[];return T==null||T.forEach(function(Z){if(!Z.tileLayer)return B.push(Z),Z;var ee=Z.tileLayer,Pe=ee.getTile(l.sourceTile.key),Ze=Pe==null?void 0:Pe.getLayers()[0];Ze&&B.push(Ze)}),B}},{key:"addTileMask",value:function(){var c=(0,Pa.Z)(Qi().mark(function g(){var T,B,Z;return Qi().wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return T=new F4({visible:!1,enablePicking:!1}).source({type:"FeatureCollection",features:[this.sourceTile.bboxPolygon]},{parser:{type:"geojson",featureId:"id"}}).shape("fill").style({opacity:.5}),B=Bb(this.parent.sceneContainer),T.setContainer(B,this.parent.sceneContainer),Pe.next=5,T.init();case 5:return this.tileMask=T,Z=this.getMainLayer(),Z!==void 0&&(Z.tileMask=T),Pe.abrupt("return",T);case 9:case"end":return Pe.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"addMask",value:function(){var c=(0,Pa.Z)(Qi().mark(function g(T,B){var Z;return Qi().wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return Z=Bb(this.parent.sceneContainer),B.setContainer(Z,this.parent.sceneContainer),Pe.next=4,B.init();case 4:T.addMask(B),this.tileMaskLayers.push(B);case 6:case"end":return Pe.stop()}},g,this)}));function l(g,T){return c.apply(this,arguments)}return l}()},{key:"addLayer",value:function(){var c=(0,Pa.Z)(Qi().mark(function g(T){var B;return Qi().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return T.isTileLayer=!0,B=Bb(this.parent.sceneContainer),T.setContainer(B,this.parent.sceneContainer),this.layers.push(T),ee.next=6,T.init();case 6:case"end":return ee.stop()}},g,this)}));function l(g){return c.apply(this,arguments)}return l}()},{key:"updateVisible",value:function(l){this.visible=l,this.updateOptions("visible",l)}},{key:"updateOptions",value:function(l,g){this.layers.forEach(function(T){T.updateLayerConfig((0,bn.Z)({},l,g))})}},{key:"getMainLayer",value:function(){return this.layers[0]}},{key:"getFeatures",value:function(l){return[]}},{key:"getFeatureById",value:function(l){return[]}},{key:"destroy",value:function(){var l;(l=this.tileMask)===null||l===void 0||l.destroy(),this.layers.forEach(function(g){return g.destroy()})}}]),u}(gf.EventEmitter);function _P(a){var p=u5();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function u5(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var Uj=function(a){(0,dt.Z)(u,a);var p=_P(u);function u(){return(0,wt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"initTileLayer",value:function(){var c=(0,Pa.Z)(Qi().mark(function g(){var T,B,Z,ee;return Qi().wrap(function(Ze){for(;;)switch(Ze.prev=Ze.next){case 0:return T=this.getSourceOption(),B=T.data.features[0].properties,Z=new PE().source(T.data,T.options).size(1).shape("line").color("red"),ee=new R4({minZoom:this.z-1,maxZoom:this.z+1,textAllowOverlap:!0}).source([B],{parser:{type:"json",x:"x",y:"y"}}).size(20).color("red").shape(this.key).style({stroke:"#fff",strokeWidth:2}),Ze.next=6,this.addLayer(Z);case 6:return Ze.next=8,this.addLayer(ee);case 8:this.isLoaded=!0;case 9:case"end":return Ze.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"getSourceOption",value:function(){var l=this.parent.getSource(),g=this.sourceTile.data.layers.testTile.features;return{data:{type:"FeatureCollection",features:g},options:{parser:{type:"geojson"},transforms:l.transforms}}}}]),u}(JE);function Hj(a){var p=bP();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function bP(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var Zj=function(a){(0,dt.Z)(u,a);var p=Hj(u);function u(){return(0,wt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"initTileLayer",value:function(){var c=(0,Pa.Z)(Qi().mark(function g(){var T,B,Z,ee;return Qi().wrap(function(Ze){for(;;)switch(Ze.prev=Ze.next){case 0:return T=this.parent.getLayerAttributeConfig(),B=this.getLayerOptions(),Z=this.getSourceOption(),ee=new BM((0,xe.Z)({},B)).source(Z.data,Z.options),T&&Object.keys(T).forEach(function(St){var Mt,Tn,kn=St;ee[kn]((Mt=T[kn])===null||Mt===void 0?void 0:Mt.field,(Tn=T[kn])===null||Tn===void 0?void 0:Tn.values)}),Ze.next=7,this.addLayer(ee);case 7:this.isLoaded=!0;case 8:case"end":return Ze.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"getSourceOption",value:function(){var l=this.parent.getSource();return{data:this.sourceTile.data,options:{parser:{type:"image",extent:this.sourceTile.bounds},transforms:l.transforms}}}}]),u}(JE);function Gj(a){var p=Kj();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function Kj(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var xP=function(a){(0,dt.Z)(u,a);var p=Gj(u);function u(){return(0,wt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"initTileLayer",value:function(){var c=(0,Pa.Z)(Qi().mark(function g(){var T,B,Z,ee;return Qi().wrap(function(Ze){for(;;)switch(Ze.prev=Ze.next){case 0:return T=this.parent.getLayerAttributeConfig(),B=this.getLayerOptions(),Z=this.getSourceOption(),ee=new mO((0,xe.Z)({},B)).source(Z.data,Z.options),T&&Object.keys(T).forEach(function(St){var Mt,Tn,kn=St;ee[kn]((Mt=T[kn])===null||Mt===void 0?void 0:Mt.field,(Tn=T[kn])===null||Tn===void 0?void 0:Tn.values)}),Ze.next=7,this.addLayer(ee);case 7:this.isLoaded=!0;case 8:case"end":return Ze.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"getFeatures",value:function(l){if(!l)return[];var g=this.sourceTile.data;return g.getTileData(l)}},{key:"getSourceOption",value:function(){var l=this.parent.getSource(),g=this.parent.getLayerConfig(),T=g.sourceLayer,B=g.featureId,Z=this.getFeatures(T);return{data:{type:"FeatureCollection",features:Z},options:{parser:{type:"geojson",featureId:B},transforms:l.transforms}}}}]),u}(JE),Xj=["rasterData"];function Yj(a){var p=_b();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function _b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var CI=function(a){(0,dt.Z)(u,a);var p=Yj(u);function u(){return(0,wt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"initTileLayer",value:function(){var c=(0,Pa.Z)(Qi().mark(function g(){var T,B,Z,ee;return Qi().wrap(function(Ze){for(;;)switch(Ze.prev=Ze.next){case 0:return T=this.parent.getLayerAttributeConfig(),B=this.getLayerOptions(),Z=this.getSourceOption(),ee=new B4((0,xe.Z)({},B)).source(Z.data,Z.options),T&&Object.keys(T).forEach(function(St){var Mt,Tn,kn=St;ee[kn]((Mt=T[kn])===null||Mt===void 0?void 0:Mt.field,(Tn=T[kn])===null||Tn===void 0?void 0:Tn.values)}),Ze.next=7,this.addLayer(ee);case 7:this.isLoaded=!0;case 8:case"end":return Ze.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"getSourceOption",value:function(){var l=this.parent.getSource(),g=this.sourceTile.data.data,T=g.rasterData,B=(0,Ug.Z)(g,Xj);return{data:T,options:{parser:(0,xe.Z)({type:"rasterRgb",extent:this.sourceTile.bounds},B),transforms:l.transforms}}}}]),u}(JE);function X8(a){var p=qj();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function qj(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var c5=function(a){(0,dt.Z)(u,a);var p=X8(u);function u(){return(0,wt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"initTileLayer",value:function(){var c=(0,Pa.Z)(Qi().mark(function g(){var T,B,Z,ee;return Qi().wrap(function(Ze){for(;;)switch(Ze.prev=Ze.next){case 0:return T=this.parent.getLayerAttributeConfig(),B=this.getLayerOptions(),Z=this.getSourceOption(),ee=new B4((0,xe.Z)({},B)).source(Z.data,Z.options),T&&Object.keys(T).forEach(function(St){var Mt,Tn,kn=St;ee[kn]((Mt=T[kn])===null||Mt===void 0?void 0:Mt.field,(Tn=T[kn])===null||Tn===void 0?void 0:Tn.values)}),Ze.next=7,this.addLayer(ee);case 7:this.isLoaded=!0;case 8:case"end":return Ze.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"getSourceOption",value:function(){var l=this.parent.getSource();return{data:this.sourceTile.data,options:{parser:{type:"image",extent:this.sourceTile.bounds},transforms:l.transforms}}}}]),u}(JE),V_=["rasterData"];function wI(a){var p=Jj();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function Jj(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var Y8={positions:[0,1],colors:["#000","#fff"]},q8=function(a){(0,dt.Z)(u,a);var p=wI(u);function u(){return(0,wt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"initTileLayer",value:function(){var c=(0,Pa.Z)(Qi().mark(function g(){var T,B,Z,ee,Pe,Ze,St;return Qi().wrap(function(Tn){for(;;)switch(Tn.prev=Tn.next){case 0:return T=this.parent.getLayerAttributeConfig(),B=this.getLayerOptions(),Z=this.getSourceOption(),ee=this.getLayerOptions(),Pe=ee.rampColors,Ze=ee.domain,this.colorTexture=this.parent.textureService.getColorTexture(Pe,Ze),St=new B4((0,xe.Z)((0,xe.Z)({},B),{},{colorTexture:this.colorTexture})).source(Z.data,Z.options),T&&Object.keys(T).forEach(function(kn){var vr,wi,zo=kn;St[zo]((vr=T[zo])===null||vr===void 0?void 0:vr.field,(wi=T[zo])===null||wi===void 0?void 0:wi.values)}),Tn.next=9,this.addLayer(St);case 9:this.isLoaded=!0;case 10:case"end":return Tn.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"getSourceOption",value:function(){var l=this.parent.getSource(),g=this.sourceTile.data.data,T=g.rasterData,B=(0,Ug.Z)(g,V_);return{data:T,options:{parser:(0,xe.Z)({type:"raster",extent:this.sourceTile.bounds},B),transforms:l.transforms}}}},{key:"styleUpdate",value:function(){for(var l=this,g=arguments.length,T=new Array(g),B=0;B=2&&!ee&&(u.parent.updateLayerConfig({visible:!0}),u.layerService.reRender())}u.lastViewStates&&u.lastViewStates.zoom===B&&u.lastViewStates.latLonBounds.toString()===T.toString()||(u.lastViewStates={zoom:B,latLonBounds:T},(l=u.tilesetManager)===null||l===void 0||l.throttleUpdate(B,T))}}),(0,bn.Z)(this,"viewchange",eF(this.mapchange,24)),this.parent=p;var c=this.parent.getContainer();this.rendererService=c.get(gr.IRendererService),this.layerService=c.get(gr.ILayerService),this.mapService=c.get(gr.IMapService),this.pickingService=c.get(gr.IPickingService),this.tileLayerService=new zj({rendererService:this.rendererService,layerService:this.layerService,parent:p}),this.tilePickService=new l5({tileLayerService:this.tileLayerService,layerService:this.layerService,parent:p}),this.parent.setLayerPickService(this.tilePickService),this.proxy(p),this.initTileSetManager()}return(0,He.Z)(a,[{key:"initTileSetManager",value:function(){var u,c=this.parent.getSource();if(this.tilesetManager=c.tileset,this.initedTileset||(this.bindTilesetEvent(),this.initedTileset=!0),this.parent.isVisible()!==!1){var l=this.getCurrentView(),g=l.latLonBounds,T=l.zoom;(u=this.tilesetManager)===null||u===void 0||u.update(T,g)}}},{key:"getCurrentView",value:function(){var u=this.mapService.getBounds(),c=[u[0][0],u[0][1],u[1][0],u[1][1]],l=this.mapService.getZoom();return{latLonBounds:c,zoom:l}}},{key:"bindTilesetEvent",value:function(){var u=this;this.tilesetManager.on("tile-loaded",function(c){}),this.tilesetManager.on("tile-unload",function(c){u.tileUnLoad(c)}),this.tilesetManager.on("tile-error",function(c,l){u.tileError(c)}),this.tilesetManager.on("tile-update",function(){u.tileUpdate()}),this.mapService.on("zoomend",this.mapchange),this.mapService.on("moveend",this.viewchange)}},{key:"render",value:function(){this.tileLayerService.render()}},{key:"getLayers",value:function(){return this.tileLayerService.getLayers()}},{key:"getTiles",value:function(){return this.tileLayerService.getTiles()}},{key:"getTile",value:function(u){return this.tileLayerService.getTile(u)}},{key:"tileLoaded",value:function(u){}},{key:"tileError",value:function(u){console.warn("error:",u)}},{key:"destroy",value:function(){var u;this.mapService.off("zoomend",this.mapchange),this.mapService.off("moveend",this.viewchange),(u=this.tilesetManager)===null||u===void 0||u.destroy(),this.tileLayerService.destroy()}},{key:"reload",value:function(){var u;this.tilesetManager.clear();var c=this.getCurrentView(),l=c.latLonBounds,g=c.zoom;(u=this.tilesetManager)===null||u===void 0||u.update(g,l)}},{key:"tileUnLoad",value:function(u){this.tileLayerService.removeTile(u.key)}},{key:"tileUpdate",value:function(){var p=(0,Pa.Z)(Qi().mark(function c(){var l=this,g,T;return Qi().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:if(this.tilesetManager){Z.next=2;break}return Z.abrupt("return");case 2:return g=this.parent.getMinZoom(),T=this.parent.getMaxZoom(),Z.next=6,Promise.all(this.tilesetManager.tiles.filter(function(ee){return ee.isLoaded}).filter(function(ee){return ee.isVisibleChange}).filter(function(ee){return ee.data}).filter(function(ee){return ee.z>=g&&ee.z0&&arguments[0]!==void 0?arguments[0]:{},p={top:0,right:0,bottom:0,left:0};if(typeof a=="number")return{top:a,right:a,bottom:a,left:a};if(Array.isArray(a)){if(a.length===4)return{top:a[0],right:a[1],bottom:a[2],left:a[3]};if(a.length===2)return{top:a[0],right:a[1],bottom:a[0],left:a[1]}}return(0,xe.Z)((0,xe.Z)({},p),a)}function PI(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function DP(a,p){var u=X0([],p,a);return Sm(u,u,1/u[3]),u}function RX(a,p){var u=a%p;return u<0?p+u:u}function NX(a,p,u){return u*p+(1-u)*a}function QE(a,p){if(!a)throw new Error(p||"viewport-mercator-project: assertion failed.")}var Ux=Math.PI,wF=Ux/4,Hx=Ux/180,AP=180/Ux,kI=512,p5=4003e4,cV=1.5;function MI(a){return Math.pow(2,a)}function dV(a){return Math.log2(a)}function IP(a,p){var u=(0,qn.Z)(a,2),c=u[0],l=u[1];QE(Number.isFinite(c)&&Number.isFinite(p)),QE(Number.isFinite(l)&&l>=-90&&l<=90,"invalid latitude"),p*=kI;var g=c*Hx,T=l*Hx,B=p*(g+Ux)/(2*Ux),Z=p*(Ux-Math.log(Math.tan(wF+T*.5)))/(2*Ux);return[B,Z]}function g5(a,p){var u=(0,qn.Z)(a,2),c=u[0],l=u[1];p*=kI;var g=c/p*(2*Ux)-Ux,T=2*(Math.atan(Math.exp(Ux-l/p*(2*Ux)))-wF);return[g*AP,T*AP]}function FX(a){var p=a.latitude;assert(Number.isFinite(p));var u=Math.cos(p*Hx);return dV(p5*u)-9}function SF(a){var p=a.latitude,u=a.longitude,c=a.zoom,l=a.scale,g=a.highPrecision,T=g===void 0?!1:g;l=l!==void 0?l:MI(c),QE(Number.isFinite(p)&&Number.isFinite(u)&&Number.isFinite(l));var B={},Z=kI*l,ee=Math.cos(p*Hx),Pe=Z/360,Ze=Pe/ee,St=Z/p5/ee;if(B.pixelsPerMeter=[St,-St,St],B.metersPerPixel=[1/St,-1/St,1/St],B.pixelsPerDegree=[Pe,-Ze,St],B.degreesPerPixel=[1/Pe,-1/Ze,1/St],T){var Mt=Hx*Math.tan(p*Hx)/ee,Tn=Pe*Mt/2,kn=Z/p5*Mt,vr=kn/Ze*St;B.pixelsPerDegree2=[0,-Tn,kn],B.pixelsPerMeter2=[vr,0,vr]}return B}function BX(a,p){var u=_slicedToArray(a,3),c=u[0],l=u[1],g=u[2],T=_slicedToArray(p,3),B=T[0],Z=T[1],ee=T[2],Pe=1,Ze=SF({longitude:c,latitude:l,scale:Pe,highPrecision:!0}),St=Ze.pixelsPerMeter,Mt=Ze.pixelsPerMeter2,Tn=IP(a,Pe);Tn[0]+=B*(St[0]+Mt[0]*Z),Tn[1]+=Z*(St[1]+Mt[1]*Z);var kn=g5(Tn,Pe),vr=(g||0)+(ee||0);return Number.isFinite(g)||Number.isFinite(ee)?[kn[0],kn[1],vr]:kn}function hV(a){var p=a.height,u=a.pitch,c=a.bearing,l=a.altitude,g=a.center,T=g===void 0?null:g,B=a.flipY,Z=B===void 0?!1:B,ee=PI();return Kl(ee,ee,[0,0,-l]),rl(ee,ee,[1,1,1/p]),pu(ee,ee,-u*Hx),od(ee,ee,c*Hx),Z&&rl(ee,ee,[1,-1,1]),T&&Kl(ee,ee,t4([],T)),ee}function vA(a){var p=a.width,u=a.height,c=a.altitude,l=c===void 0?cV:c,g=a.pitch,T=g===void 0?0:g,B=a.nearZMultiplier,Z=B===void 0?1:B,ee=a.farZMultiplier,Pe=ee===void 0?1:ee,Ze=T*Hx,St=Math.atan(.5/l),Mt=Math.sin(St)*l/Math.sin(Math.PI/2-Ze-St),Tn=Math.cos(Math.PI/2-Ze)*Mt+l;return{fov:2*Math.atan(u/2/l),aspect:p/u,focalDistance:l,near:Z,far:Tn*Pe}}function OI(a){var p=a.width,u=a.height,c=a.pitch,l=a.altitude,g=a.nearZMultiplier,T=a.farZMultiplier,B=vA({width:p,height:u,altitude:l,pitch:c,nearZMultiplier:g,farZMultiplier:T}),Z=B.fov,ee=B.aspect,Pe=B.near,Ze=B.far,St=hi([],Z,ee,Pe,Ze);return St}function EF(a,p){var u=(0,qn.Z)(a,3),c=u[0],l=u[1],g=u[2],T=g===void 0?0:g;return QE(Number.isFinite(c)&&Number.isFinite(l)&&Number.isFinite(T)),DP(p,[c,l,T,1])}function TF(a,p){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,c=(0,qn.Z)(a,3),l=c[0],g=c[1],T=c[2];if(QE(Number.isFinite(l)&&Number.isFinite(g),"invalid pixel coordinate"),Number.isFinite(T)){var B=DP(p,[l,g,T,1]);return B}var Z=DP(p,[l,g,0,1]),ee=DP(p,[l,g,1,1]),Pe=Z[2],Ze=ee[2],St=Pe===Ze?0:((u||0)-Pe)/(Ze-Pe);return Sg([],Z,ee,St)}var DF=PI(),RI=function(){function a(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=p.width,c=p.height,l=p.viewMatrix,g=l===void 0?DF:l,T=p.projectionMatrix,B=T===void 0?DF:T;(0,wt.Z)(this,a),this.width=u||1,this.height=c||1,this.scale=1,this.pixelsPerMeter=1,this.viewMatrix=g,this.projectionMatrix=B;var Z=PI();Sl(Z,Z,this.projectionMatrix),Sl(Z,Z,this.viewMatrix),this.viewProjectionMatrix=Z;var ee=PI();rl(ee,ee,[this.width/2,-this.height/2,1]),Kl(ee,ee,[1,-1,0]),Sl(ee,ee,this.viewProjectionMatrix);var Pe=zu(PI(),ee);if(!Pe)throw new Error("Pixel project matrix not invertible");this.pixelProjectionMatrix=ee,this.pixelUnprojectionMatrix=Pe,this.equals=this.equals.bind(this),this.project=this.project.bind(this),this.unproject=this.unproject.bind(this),this.projectPosition=this.projectPosition.bind(this),this.unprojectPosition=this.unprojectPosition.bind(this),this.projectFlat=this.projectFlat.bind(this),this.unprojectFlat=this.unprojectFlat.bind(this)}return(0,He.Z)(a,[{key:"equals",value:function(u){return u instanceof a?u.width===this.width&&u.height===this.height&&Xu(u.projectionMatrix,this.projectionMatrix)&&Xu(u.viewMatrix,this.viewMatrix):!1}},{key:"project",value:function(u){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=c.topLeft,g=l===void 0?!0:l,T=this.projectPosition(u),B=EF(T,this.pixelProjectionMatrix),Z=(0,qn.Z)(B,2),ee=Z[0],Pe=Z[1],Ze=g?Pe:this.height-Pe;return u.length===2?[ee,Ze]:[ee,Ze,B[2]]}},{key:"unproject",value:function(u){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=c.topLeft,g=l===void 0?!0:l,T=c.targetZ,B=(0,qn.Z)(u,3),Z=B[0],ee=B[1],Pe=B[2],Ze=g?ee:this.height-ee,St=T&&T*this.pixelsPerMeter,Mt=TF([Z,Ze,Pe],this.pixelUnprojectionMatrix,St),Tn=this.unprojectPosition(Mt),kn=(0,qn.Z)(Tn,3),vr=kn[0],wi=kn[1],zo=kn[2];return Number.isFinite(Pe)?[vr,wi,zo]:Number.isFinite(T)?[vr,wi,T]:[vr,wi]}},{key:"projectPosition",value:function(u){var c=this.projectFlat(u),l=(0,qn.Z)(c,2),g=l[0],T=l[1],B=(u[2]||0)*this.pixelsPerMeter;return[g,T,B]}},{key:"unprojectPosition",value:function(u){var c=this.unprojectFlat(u),l=(0,qn.Z)(c,2),g=l[0],T=l[1],B=(u[2]||0)/this.pixelsPerMeter;return[g,T,B]}},{key:"projectFlat",value:function(u){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return u}},{key:"unprojectFlat",value:function(u){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return u}}]),a}();function AF(a){var p=a.width,u=a.height,c=a.bounds,l=a.minExtent,g=l===void 0?0:l,T=a.maxZoom,B=T===void 0?24:T,Z=a.padding,ee=Z===void 0?0:Z,Pe=a.offset,Ze=Pe===void 0?[0,0]:Pe,St=(0,qn.Z)(c,2),Mt=(0,qn.Z)(St[0],2),Tn=Mt[0],kn=Mt[1],vr=(0,qn.Z)(St[1],2),wi=vr[0],zo=vr[1];if(Number.isFinite(ee)){var $o=ee;ee={top:$o,bottom:$o,left:$o,right:$o}}else QE(Number.isFinite(ee.top)&&Number.isFinite(ee.bottom)&&Number.isFinite(ee.left)&&Number.isFinite(ee.right));var Ks=new eT({width:p,height:u,longitude:0,latitude:0,zoom:0}),ra=Ks.project([Tn,zo]),La=Ks.project([wi,kn]),vl=[Math.max(Math.abs(La[0]-ra[0]),g),Math.max(Math.abs(La[1]-ra[1]),g)],Wl=[p-ee.left-ee.right-Math.abs(Ze[0])*2,u-ee.top-ee.bottom-Math.abs(Ze[1])*2];QE(Wl[0]>0&&Wl[1]>0);var Jl=Wl[0]/vl[0],ju=Wl[1]/vl[1],Ku=(ee.right-ee.left)/2/Jl,Jc=(ee.bottom-ee.top)/2/ju,gd=[(La[0]+ra[0])/2+Ku,(La[1]+ra[1])/2+Jc],Ch=Ks.unproject(gd),og=Ks.zoom+Math.log2(Math.abs(Math.min(Jl,ju)));return{longitude:Ch[0],latitude:Ch[1],zoom:Math.min(og,B)}}var eT=function(a){(0,dt.Z)(p,a);function p(){var u,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=c.width,g=c.height,T=c.latitude,B=T===void 0?0:T,Z=c.longitude,ee=Z===void 0?0:Z,Pe=c.zoom,Ze=Pe===void 0?0:Pe,St=c.pitch,Mt=St===void 0?0:St,Tn=c.bearing,kn=Tn===void 0?0:Tn,vr=c.altitude,wi=vr===void 0?1.5:vr,zo=c.nearZMultiplier,$o=c.farZMultiplier;(0,wt.Z)(this,p),l=l||1,g=g||1;var Ks=MI(Ze);wi=Math.max(.75,wi);var ra=IP([ee,B],Ks);ra[2]=0;var La=OI({width:l,height:g,pitch:Mt,bearing:kn,altitude:wi,nearZMultiplier:zo||1/g,farZMultiplier:$o||1.01}),vl=hV({height:g,center:ra,pitch:Mt,bearing:kn,altitude:wi,flipY:!0});return u=(0,Bt.Z)(this,(0,gt.Z)(p).call(this,{width:l,height:g,viewMatrix:vl,projectionMatrix:La})),u.latitude=B,u.longitude=ee,u.zoom=Ze,u.pitch=Mt,u.bearing=kn,u.altitude=wi,u.scale=Ks,u.center=ra,u.pixelsPerMeter=SF((0,is.Z)((0,is.Z)(u))).pixelsPerMeter[2],Object.freeze((0,is.Z)((0,is.Z)(u))),u}return(0,He.Z)(p,[{key:"projectFlat",value:function(c){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return IP(c,l)}},{key:"unprojectFlat",value:function(c){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return g5(c,l)}},{key:"getMapCenterByLngLatPosition",value:function(c){var l=c.lngLat,g=c.pos,T=TF(g,this.pixelUnprojectionMatrix),B=IP(l,this.scale),Z=Bp([],B,ug([],T)),ee=Bp([],this.center,Z);return g5(ee,this.scale)}},{key:"getLocationAtPoint",value:function(c){var l=c.lngLat,g=c.pos;return this.getMapCenterByLngLatPosition({lngLat:l,pos:g})}},{key:"fitBounds",value:function(c){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},g=this.width,T=this.height,B=AF(Object.assign({width:g,height:T,bounds:c},l)),Z=B.longitude,ee=B.latitude,Pe=B.zoom;return new p({width:g,height:T,longitude:Z,latitude:ee,zoom:Pe})}}]),p}(RI),NI=function(){function a(){(0,wt.Z)(this,a)}return(0,He.Z)(a,[{key:"syncWithMapCamera",value:function(u){var c=u.center,l=u.zoom,g=u.pitch,T=u.bearing,B=u.viewportHeight,Z=u.viewportWidth,ee=this.viewport?{width:this.viewport.width,height:this.viewport.height,longitude:this.viewport.center[0],latitude:this.viewport.center[1],zoom:this.viewport.zoom,pitch:this.viewport.pitch,bearing:this.viewport.bearing}:{};this.viewport=new eT((0,xe.Z)((0,xe.Z)({},ee),{},{width:Z,height:B,longitude:c&&c[0],latitude:c&&c[1],zoom:l,pitch:g,bearing:T}))}},{key:"getZoom",value:function(){return this.viewport.zoom}},{key:"getZoomScale",value:function(){return Math.pow(2,this.getZoom())}},{key:"getCenter",value:function(){return[this.viewport.longitude,this.viewport.latitude]}},{key:"getProjectionMatrix",value:function(){return this.viewport.projectionMatrix}},{key:"getModelMatrix",value:function(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}},{key:"getViewMatrix",value:function(){return this.viewport.viewMatrix}},{key:"getViewMatrixUncentered",value:function(){return this.viewport.viewMatrixUncentered}},{key:"getViewProjectionMatrix",value:function(){return this.viewport.viewProjectionMatrix}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.viewport.viewProjectionMatrix}},{key:"getFocalDistance",value:function(){return 1}},{key:"projectFlat",value:function(u,c){return this.viewport.projectFlat(u,c)}}]),a}(),IF={normal:"amap://styles/normal",light:"amap://styles/c422f5c0cfced5be9fe3a83f05f28a68?isPublic=true",dark:"amap://styles/c9f1d10cae34f8ab05e425462c5a58d7?isPublic=true",blank:"amap://styles/07c17002b38775b32a7a76c66cf90e99?isPublic=true",fresh:"amap://styles/fresh",grey:"amap://styles/grey",graffiti:"amap://styles/graffiti",macaron:"amap://styles/macaron",darkblue:"amap://styles/darkblue",wine:"amap://styles/wine"},fV=["id","style","minZoom","maxZoom","token","mapInstance","plugin"],LF,m5,PF,kF,yA,MF,jC,OF,RF,NF,LP;function v5(a,p){var u=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,c=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(u||c)&&(p||(p=document),!!p)){var l=p.head||p.getElementsByTagName("head")[0];if(!l){l=p.createElement("head");var g=p.body||p.getElementsByTagName("body")[0];g?g.parentNode.insertBefore(l,g):p.documentElement.appendChild(l)}var T=p.createElement("style");return T.type="text/css",T.styleSheet?T.styleSheet.cssText=a:T.appendChild(p.createTextNode(a)),l.appendChild(T),T}}v5(`.amap-logo{ display: none !important; } -`);var A5={contextmenu:"rightclick"},I5={contextmenu:"rightclick",camerachange:"viewchange"},MP={"GAODE1.x":A5,"GAODE2.x":I5},OF=0;window.forceWebGL=!0;var OP="15cd8a57710d40c9b7c0e3cc120f1200",lV="1.4.15",RP="amap-script",vA=!1,yA=[],RF=12,NF=(T5=(0,ws.b2)(),DF=(0,ws.f3)(gr.IGlobalConfigService),AF=(0,ws.f3)(gr.MapConfig),D5=(0,ws.f3)(gr.ICoordinateSystemService),IF=(0,ws.f3)(gr.IEventEmitter),T5(LF=(PC=function(){function a(){var p=this;(0,bt.Z)(this,a),(0,bn.Z)(this,"version",d0["GAODE1.x"]),(0,bn.Z)(this,"simpleMapCoord",new C5),(0,bn.Z)(this,"bgColor","rgba(0, 0, 0, 0)"),Fd(this,"configService",PF,this),Fd(this,"config",mA,this),Fd(this,"coordinateSystemService",kF,this),Fd(this,"eventEmitter",MF,this),(0,bn.Z)(this,"handleCameraChanged",function(u){var c=u.camera,l=c.fov,g=c.near,T=c.far,B=c.height,G=c.pitch,te=c.rotation,Me=c.aspect,Ge=c.position,St=p.getCenter(),Mt=St.lng,In=St.lat;if(p.emit("mapchange"),p.cameraChangedCallback){p.viewport.syncWithMapCamera({aspect:Me,bearing:360-te,far:T,fov:l,cameraHeight:B,near:g,pitch:G,zoom:p.map.getZoom()-1,center:[Mt,In],offsetOrigin:[Ge.x,Ge.y]});var kn=p.config.offsetZoom,Sr=kn===void 0?RF:kn;p.viewport.getZoom()>Sr?p.coordinateSystemService.setCoordinateSystem(eh.P20_OFFSET):p.coordinateSystemService.setCoordinateSystem(eh.P20),p.cameraChangedCallback(p.viewport)}})}return(0,Ue.Z)(a,[{key:"setBgColor",value:function(u){this.bgColor=u}},{key:"addMarkerContainer",value:function(){var u=this.map.getContainer();if(u!==null){var c=u.getElementsByClassName("amap-maps")[0];this.markerContainer=Ji("div","l7-marker-container",c)}}},{key:"getMarkerContainer",value:function(){return this.markerContainer}},{key:"on",value:function(u,c){pw.indexOf(u)!==-1?this.eventEmitter.on(u,c):this.map.on(MP[this.version][u]||u,c)}},{key:"off",value:function(u,c){pw.indexOf(u)!==-1?this.eventEmitter.off(u,c):this.map.off(MP[this.version][u]||u,c)}},{key:"getContainer",value:function(){return this.map.getContainer()}},{key:"getMapCanvasContainer",value:function(){var u;return(u=this.map.getContainer())===null||u===void 0?void 0:u.getElementsByClassName("amap-maps")[0]}},{key:"getSize",value:function(){var u=this.map.getSize();return[u.getWidth(),u.getHeight()]}},{key:"getType",value:function(){return"amap"}},{key:"getZoom",value:function(){return this.map.getZoom()-1}},{key:"setZoom",value:function(u){return this.map.setZoom(u+1)}},{key:"getCenter",value:function(u){if(u!=null&&u.padding){var c=this.getCenter(),l=kP(u.padding),g=this.lngLatToPixel([c.lng,c.lat]),T=[(l.right-l.left)/2,(l.bottom-l.top)/2],B=this.pixelToLngLat([g.x-T[0],g.y-T[1]]);return B}var G=this.map.getCenter();return{lng:G.getLng(),lat:G.getLat()}}},{key:"setCenter",value:function(u,c){if(c!=null&&c.padding){var l=kP(c.padding),g=this.lngLatToPixel(u),T=[(l.right-l.left)/2,(l.bottom-l.top)/2],B=this.pixelToLngLat([g.x+T[0],g.y+T[1]]);this.map.setCenter([B.lng,B.lat])}else this.map.setCenter(u)}},{key:"getPitch",value:function(){return this.map.getPitch()}},{key:"getRotation",value:function(){return 360-this.map.getRotation()}},{key:"getBounds",value:function(){var u=this.map.getBounds().toBounds(),c=u.getNorthEast(),l=u.getSouthWest(),g=this.getCenter(),T=g.lng>c.getLng()||g.lng0&&arguments[0]!==void 0?arguments[0]:0,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.map.panBy(u,c)}},{key:"fitBounds",value:function(u){this.map.setBounds(new AMap.Bounds([u[0][0],u[0][1],u[1][0],u[1][1]]))}},{key:"setZoomAndCenter",value:function(u,c){this.map.setZoomAndCenter(u+1,c)}},{key:"setMapStyle",value:function(u){this.map.setMapStyle(this.getMapStyleValue(u))}},{key:"setMapStatus",value:function(u){this.map.setStatus(u)}},{key:"getMapStyleConfig",value:function(){return RI}},{key:"getMapStyleValue",value:function(u){return this.getMapStyleConfig()[u]||u}},{key:"getMapStyle",value:function(){return this.map.getMapStyle()}},{key:"pixelToLngLat",value:function(u){var c=this.map.pixelToLngLat(new AMap.Pixel(u[0],u[1]));return{lng:c.getLng(),lat:c.getLat()}}},{key:"lngLatToPixel",value:function(u){var c=this.map.lnglatToPixel(new AMap.LngLat(u[0],u[1]));return{x:c.getX(),y:c.getY()}}},{key:"containerToLngLat",value:function(u){var c=new AMap.Pixel(u[0],u[1]),l=this.map.containerToLngLat(c);return{lng:l==null?void 0:l.getLng(),lat:l==null?void 0:l.getLat()}}},{key:"lngLatToContainer",value:function(u){var c=new AMap.LngLat(u[0],u[1]),l=this.map.lngLatToContainer(c);return{x:l.getX(),y:l.getY()}}},{key:"lngLatToCoord",value:function(u){var c=this.map.lngLatToGeodeticCoord(u),l=c.x,g=c.y;return[l,-g]}},{key:"lngLatToMercator",value:function(u,c){return{x:0,y:0,z:0}}},{key:"getModelMatrix",value:function(u,c,l){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],T=this.viewport.projectFlat(u),B=nn();return ql(B,B,Yg(T[0],T[1],c)),il(B,B,Yg(g[0],g[1],g[2])),pu(B,B,l[0]),oc(B,B,l[1]),cd(B,B,l[2]),B}},{key:"init",value:function(){var p=(0,ka.Z)(Qi().mark(function c(){var l=this,g,T,B,G,te,Me,Ge,St,Mt,In,kn,Sr,_i,Vo;return Qi().wrap(function(Ks){for(;;)switch(Ks.prev=Ks.next){case 0:return g=this.config,T=g.id,B=g.style,G=B===void 0?"light":B,te=g.minZoom,Me=te===void 0?0:te,Ge=g.maxZoom,St=Ge===void 0?18:Ge,Mt=g.token,In=Mt===void 0?OP:Mt,kn=g.mapInstance,Sr=g.plugin,_i=Sr===void 0?[]:Sr,Vo=(0,Vg.Z)(g,sV),Ks.next=3,new Promise(function(ca){var Ia=function(){if(kn)l.map=kn,l.$mapContainer=l.map.getContainer(),setTimeout(function(){l.map.on("camerachange",l.handleCameraChanged),ca()},30);else{l.$mapContainer=l.creatMapContainer(T);var jl=(0,Ce.Z)({mapStyle:l.getMapStyleValue(G),zooms:[Me,St],viewMode:"3D"},Vo);jl.zoom&&(jl.zoom+=1);var Wl=new AMap.Map(l.$mapContainer,jl);Wl.on("camerachange",l.handleCameraChanged),Wl.on("camerachange",function(){setTimeout(function(){return l.handleAfterMapChange()})}),l.map=Wl,setTimeout(function(){ca()},10)}};!vA&&!kn?(In===OP&&console.warn("%c".concat(l.configService.getSceneWarninfo("MapToken"),"!"),"color: #873bf4;font-weigh:900;font-size: 16px;"),vA=!0,_i.push("Map3D"),PI().load({key:In,version:lV,plugins:_i}).then(function(){Ia(),yA.length&&(yA.forEach(function(al){return al()}),yA=[])}).catch(function(al){throw new Error(al)})):vA&&window.AMap||kn?Ia():yA.push(Ia)});case 3:this.viewport=new OI;case 4:case"end":return Ks.stop()}},c,this)}));function u(){return p.apply(this,arguments)}return u}()},{key:"meterToCoord",value:function(u,c){var l=AMap.GeometryUtil.distance(Yr(AMap.LngLat,(0,kr.Z)(u)),Yr(AMap.LngLat,(0,kr.Z)(c))),g=this.lngLatToCoord(u),T=(0,Qn.Z)(g,2),B=T[0],G=T[1],te=this.lngLatToCoord(c),Me=(0,Qn.Z)(te,2),Ge=Me[0],St=Me[1],Mt=Math.sqrt(Math.pow(B-Ge,2)+Math.pow(G-St,2));return Mt/l}},{key:"updateView",value:function(u){}},{key:"getOverlayContainer",value:function(){}},{key:"exportMap",value:function(u){var c,l=(c=this.getContainer())===null||c===void 0?void 0:c.getElementsByClassName("amap-layer")[0],g=u==="jpg"?l==null?void 0:l.toDataURL("image/jpeg"):l==null?void 0:l.toDataURL("image/png");return g}},{key:"emit",value:function(u){for(var c,l=arguments.length,g=new Array(l>1?l-1:0),T=1;T1?l-1:0),T=1;Tvr?p.coordinateSystemService.setCoordinateSystem(Qd.P20_OFFSET):p.coordinateSystemService.setCoordinateSystem(Qd.P20),p.cameraChangedCallback(p.viewport)}})}return(0,He.Z)(a,[{key:"setBgColor",value:function(u){this.bgColor=u}},{key:"addMarkerContainer",value:function(){var u=this.map.getContainer();if(u!==null){var c=u.getElementsByClassName("amap-maps")[0];this.markerContainer=qi("div","l7-marker-container",c)}}},{key:"getMarkerContainer",value:function(){return this.markerContainer}},{key:"on",value:function(u,c){yC.indexOf(u)!==-1?this.eventEmitter.on(u,c):this.map.on(PP[this.version][u]||u,c)}},{key:"off",value:function(u,c){yC.indexOf(u)!==-1?this.eventEmitter.off(u,c):this.map.off(PP[this.version][u]||u,c)}},{key:"getContainer",value:function(){return this.map.getContainer()}},{key:"getMapCanvasContainer",value:function(){var u;return(u=this.map.getContainer())===null||u===void 0?void 0:u.getElementsByClassName("amap-maps")[0]}},{key:"getSize",value:function(){var u=this.map.getSize();return[u.getWidth(),u.getHeight()]}},{key:"getType",value:function(){return"amap"}},{key:"getZoom",value:function(){return this.map.getZoom()-1}},{key:"setZoom",value:function(u){return this.map.setZoom(u+1)}},{key:"getCenter",value:function(u){if(u!=null&&u.padding){var c=this.getCenter(),l=LI(u.padding),g=this.lngLatToPixel([c.lng,c.lat]),T=[(l.right-l.left)/2,(l.bottom-l.top)/2],B=this.pixelToLngLat([g.x-T[0],g.y-T[1]]);return B}var Z=this.map.getCenter();return{lng:Z.getLng(),lat:Z.getLat()}}},{key:"setCenter",value:function(u,c){if(c!=null&&c.padding){var l=LI(c.padding),g=this.lngLatToPixel(u),T=[(l.right-l.left)/2,(l.bottom-l.top)/2],B=this.pixelToLngLat([g.x+T[0],g.y+T[1]]);this.map.setCenter([B.lng,B.lat])}else this.map.setCenter(u)}},{key:"getPitch",value:function(){return this.map.getPitch()}},{key:"getRotation",value:function(){return 360-this.map.getRotation()}},{key:"getBounds",value:function(){var u=this.map.getBounds().toBounds(),c=u.getNorthEast(),l=u.getSouthWest(),g=this.getCenter(),T=g.lng>c.getLng()||g.lng0&&arguments[0]!==void 0?arguments[0]:0,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.map.panBy(u,c)}},{key:"fitBounds",value:function(u){this.map.setBounds(new AMap.Bounds([u[0][0],u[0][1],u[1][0],u[1][1]]))}},{key:"setZoomAndCenter",value:function(u,c){this.map.setZoomAndCenter(u+1,c)}},{key:"setMapStyle",value:function(u){this.map.setMapStyle(this.getMapStyleValue(u))}},{key:"setMapStatus",value:function(u){this.map.setStatus(u)}},{key:"getMapStyleConfig",value:function(){return IF}},{key:"getMapStyleValue",value:function(u){return this.getMapStyleConfig()[u]||u}},{key:"getMapStyle",value:function(){return this.map.getMapStyle()}},{key:"pixelToLngLat",value:function(u){var c=this.map.pixelToLngLat(new AMap.Pixel(u[0],u[1]));return{lng:c.getLng(),lat:c.getLat()}}},{key:"lngLatToPixel",value:function(u){var c=this.map.lnglatToPixel(new AMap.LngLat(u[0],u[1]));return{x:c.getX(),y:c.getY()}}},{key:"containerToLngLat",value:function(u){var c=new AMap.Pixel(u[0],u[1]),l=this.map.containerToLngLat(c);return{lng:l==null?void 0:l.getLng(),lat:l==null?void 0:l.getLat()}}},{key:"lngLatToContainer",value:function(u){var c=new AMap.LngLat(u[0],u[1]),l=this.map.lngLatToContainer(c);return{x:l.getX(),y:l.getY()}}},{key:"lngLatToCoord",value:function(u){var c=this.map.lngLatToGeodeticCoord(u),l=c.x,g=c.y;return[l,-g]}},{key:"lngLatToMercator",value:function(u,c){return{x:0,y:0,z:0}}},{key:"getModelMatrix",value:function(u,c,l){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],T=this.viewport.projectFlat(u),B=nn();return Kl(B,B,$g(T[0],T[1],c)),rl(B,B,$g(g[0],g[1],g[2])),pu(B,B,l[0]),ic(B,B,l[1]),od(B,B,l[2]),B}},{key:"init",value:function(){var p=(0,Pa.Z)(Qi().mark(function c(){var l=this,g,T,B,Z,ee,Pe,Ze,St,Mt,Tn,kn,vr,wi,zo;return Qi().wrap(function(Ks){for(;;)switch(Ks.prev=Ks.next){case 0:return g=this.config,T=g.id,B=g.style,Z=B===void 0?"light":B,ee=g.minZoom,Pe=ee===void 0?0:ee,Ze=g.maxZoom,St=Ze===void 0?18:Ze,Mt=g.token,Tn=Mt===void 0?FI:Mt,kn=g.mapInstance,vr=g.plugin,wi=vr===void 0?[]:vr,zo=(0,Ug.Z)(g,fV),Ks.next=3,new Promise(function(ra){var La=function(){if(kn)l.map=kn,l.$mapContainer=l.map.getContainer(),setTimeout(function(){l.map.on("camerachange",l.handleCameraChanged),ra()},30);else{l.$mapContainer=l.creatMapContainer(T);var Wl=(0,xe.Z)({mapStyle:l.getMapStyleValue(Z),zooms:[Pe,St],viewMode:"3D"},zo);Wl.zoom&&(Wl.zoom+=1);var Jl=new AMap.Map(l.$mapContainer,Wl);Jl.on("camerachange",l.handleCameraChanged),Jl.on("camerachange",function(){setTimeout(function(){return l.handleAfterMapChange()})}),l.map=Jl,setTimeout(function(){ra()},10)}};!MP&&!kn?(Tn===FI&&console.warn("%c".concat(l.configService.getSceneWarninfo("MapToken"),"!"),"color: #873bf4;font-weigh:900;font-size: 16px;"),MP=!0,wi.push("Map3D"),EP().load({key:Tn,version:kP,plugins:wi}).then(function(){La(),OP.length&&(OP.forEach(function(vl){return vl()}),OP=[])}).catch(function(vl){throw new Error(vl)})):MP&&window.AMap||kn?La():OP.push(La)});case 3:this.viewport=new NI;case 4:case"end":return Ks.stop()}},c,this)}));function u(){return p.apply(this,arguments)}return u}()},{key:"meterToCoord",value:function(u,c){var l=AMap.GeometryUtil.distance(Yr(AMap.LngLat,(0,kr.Z)(u)),Yr(AMap.LngLat,(0,kr.Z)(c))),g=this.lngLatToCoord(u),T=(0,qn.Z)(g,2),B=T[0],Z=T[1],ee=this.lngLatToCoord(c),Pe=(0,qn.Z)(ee,2),Ze=Pe[0],St=Pe[1],Mt=Math.sqrt(Math.pow(B-Ze,2)+Math.pow(Z-St,2));return Mt/l}},{key:"updateView",value:function(u){}},{key:"getOverlayContainer",value:function(){}},{key:"exportMap",value:function(u){var c,l=(c=this.getContainer())===null||c===void 0?void 0:c.getElementsByClassName("amap-layer")[0],g=u==="jpg"?l==null?void 0:l.toDataURL("image/jpeg"):l==null?void 0:l.toDataURL("image/png");return g}},{key:"emit",value:function(u){for(var c,l=arguments.length,g=new Array(l>1?l-1:0),T=1;T1?l-1:0),T=1;Tca?c.coordinateSystemService.setCoordinateSystem(eh.P20_OFFSET):c.coordinateSystemService.setCoordinateSystem(eh.P20),c.cameraChangedCallback(c.viewport)}}),c}return(0,Ue.Z)(u,[{key:"getModelMatrix",value:function(l,g,T){var B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],G=this.viewport.projectFlat(l),te=nn();return ql(te,te,Yg(G[0],G[1],g)),il(te,te,Yg(B[0],B[1],B[2])),pu(te,te,T[0]),oc(te,te,T[1]),cd(te,te,T[2]),te}},{key:"init",value:function(){var c=(0,ka.Z)(Qi().mark(function g(){var T=this,B,G,te,Me,Ge,St,Mt,In,kn,Sr,_i,Vo,zo,Ks;return Qi().wrap(function(Ia){for(;;)switch(Ia.prev=Ia.next){case 0:return B=this.config,G=B.id,te=B.style,Me=te===void 0?"light":te,Ge=B.minZoom,St=Ge===void 0?0:Ge,Mt=B.maxZoom,In=Mt===void 0?18:Mt,kn=B.token,Sr=kn===void 0?L5:kn,_i=B.mapInstance,Vo=B.plugin,zo=Vo===void 0?[]:Vo,Ks=(0,Vg.Z)(B,pV),Ia.next=3,new Promise(function(al){var jl=function(){if(_i)T.map=_i,T.$mapContainer=T.map.getContainer(),setTimeout(function(){T.map.on("camerachange",T.handleCameraChanged),al()},30);else{T.$mapContainer=T.creatMapContainer(G);var Wu=(0,Ce.Z)({mapStyle:T.getMapStyleValue(Me),zooms:[St,In],viewMode:"3D"},Ks);Wu.zoom&&(Wu.zoom+=1);var Pu=new AMap.Map(T.$mapContainer,Wu);Pu.on("camerachange",T.handleCameraChanged),Pu.on("camerachange",function(){setTimeout(function(){return T.handleAfterMapChange()})}),T.map=Pu,setTimeout(function(){al()},10)}};!WF&&!_i?(Sr===L5&&console.warn(T.configService.getSceneWarninfo("MapToken")),WF=!0,zo.push("Map3D"),hV.load({key:Sr,version:jF,plugins:zo}).then(function(Wl){jl(),ZE.length&&(ZE.forEach(function(Wu){return Wu()}),ZE=[])}).catch(function(Wl){throw new Error(Wl)})):WF&&window.AMap||_i?jl():ZE.push(jl)});case 3:this.viewport=new fV;case 4:case"end":return Ia.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"meterToCoord",value:function(l,g){var T=AMap.GeometryUtil.distance(Yr(AMap.LngLat,(0,kr.Z)(l)),Yr(AMap.LngLat,(0,kr.Z)(g))),B=this.lngLatToCoord(l),G=(0,Qn.Z)(B,2),te=G[0],Me=G[1],Ge=this.lngLatToCoord(g),St=(0,Qn.Z)(Ge,2),Mt=St[0],In=St[1],kn=Math.sqrt(Math.pow(te-Mt,2)+Math.pow(Me-In,2));return kn/T}},{key:"updateView",value:function(l){}},{key:"getOverlayContainer",value:function(){}},{key:"exportMap",value:function(l){var g,T=(g=this.getContainer())===null||g===void 0?void 0:g.getElementsByClassName("amap-layer")[0],B=l==="jpg"?T==null?void 0:T.toDataURL("image/jpeg"):T==null?void 0:T.toDataURL("image/png");return B}},{key:"onCameraChanged",value:function(l){this.cameraChangedCallback=l}}]),u}(NF))||$F);function k5(a){var p=M5();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function M5(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var mV=function(a){(0,ht.Z)(u,a);var p=k5(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,Ue.Z)(u,[{key:"getServiceConstructor",value:function(){return gV}}]),u}(fA),vV=function(){function a(){(0,bt.Z)(this,a),(0,bn.Z)(this,"projectionMatrix",nn()),(0,bn.Z)(this,"viewMatrix",nn()),(0,bn.Z)(this,"viewProjectionMatrix",nn()),(0,bn.Z)(this,"ViewProjectionMatrixUncentered",nn()),(0,bn.Z)(this,"viewUncenteredMatrix",nn())}return(0,Ue.Z)(a,[{key:"syncWithMapCamera",value:function(u){var c=u.zoom,l=c===void 0?1:c,g=u.center,T=g===void 0?[0,0]:g,B=u.offsetOrigin,G=B===void 0?[0,0]:B,te=u.cameraPosition,Me=te===void 0?[0,0,0]:te,Ge=u.up,St=Ge===void 0?[0,1,0]:Ge,Mt=u.lookAt,In=Mt===void 0?[0,0,0]:Mt,kn=u.aspect,Sr=kn===void 0?1:kn,_i=u.near,Vo=_i===void 0?.1:_i,zo=u.far,Ks=zo===void 0?1e3:zo,ca=u.fov,Ia=ca===void 0?45:ca;this.zoom=l,this.center=T,hi(this.projectionMatrix,Ia/180*Math.PI,Sr,Vo,Ks);var al=Yg.apply(z,(0,kr.Z)(Me)),jl=Yg.apply(z,(0,kr.Z)(In)),Wl=Yg.apply(z,(0,kr.Z)(St));Da(this.viewMatrix,al,jl,Wl),this.viewUncenteredMatrix=Fn(this.viewMatrix),ql(this.viewMatrix,this.viewMatrix,Yg(-G[0],G[1],0)),Sl(this.viewProjectionMatrix,this.projectionMatrix,this.viewMatrix),Sl(this.ViewProjectionMatrixUncentered,this.projectionMatrix,this.viewMatrix)}},{key:"getZoom",value:function(){return this.zoom}},{key:"getZoomScale",value:function(){return 1048576}},{key:"getCenter",value:function(){var u=(0,Qn.Z)(this.center,2),c=u[0],l=u[1];return[c,l]}},{key:"getProjectionMatrix",value:function(){return this.projectionMatrix}},{key:"getModelMatrix",value:function(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}},{key:"getViewMatrix",value:function(){return this.viewMatrix}},{key:"getViewMatrixUncentered",value:function(){return this.viewUncenteredMatrix}},{key:"getViewProjectionMatrix",value:function(){return this.viewProjectionMatrix}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.ViewProjectionMatrixUncentered}},{key:"getFocalDistance",value:function(){return 1.2}},{key:"projectFlat",value:function(u){var c=85.0511287798,l=Math.max(Math.min(c,u[1]),-c),g=256<<20,T=Math.PI/180,B=u[0]*T,G=l*T;G=Math.log(Math.tan(Math.PI/4+G/2));var te=.5/Math.PI,Me=.5,Ge=-.5/Math.PI;return T=.5,B=g*(te*B+Me)-215440491,G=-(g*(Ge*G+T)-106744817),[B,G]}}]),a}(),FI=["id","style","minZoom","maxZoom","token","mapInstance","plugin","version"],O5,BP;function VF(a){var p=R5();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function R5(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}function N5(a,p){var u=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,c=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(u||c)&&(p||(p=document),!!p)){var l=p.head||p.getElementsByTagName("head")[0];if(!l){l=p.createElement("head");var g=p.body||p.getElementsByTagName("body")[0];g?g.parentNode.insertBefore(l,g):p.documentElement.appendChild(l)}var T=p.createElement("style");return T.type="text/css",T.styleSheet?T.styleSheet.cssText=a:T.appendChild(p.createTextNode(a)),l.appendChild(T),T}}N5(`.amap-logo{ + `,l.id="l7_amap_div"+pV++,c.appendChild(l),l}}]),a}(),OF=$h(jC.prototype,"configService",[m5],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),RF=$h(jC.prototype,"config",[PF],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),NF=$h(jC.prototype,"coordinateSystemService",[kF],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),LP=$h(jC.prototype,"eventEmitter",[yA],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),jC))||MF);if(!window)throw Error("AMap JSAPI can only be used in Browser.");var qb=function(a){return a.notload="notload",a.loading="loading",a.loaded="loaded",a.failed="failed",a}(qb||{}),U_={key:"",AMap:{version:"2.0",plugins:[]}},Hw={AMap:qb.notload},zF={AMap:[]},$F=[],mV=function(p){if(typeof p=="function"){if(Hw.AMap===qb.loaded){p(window.AMap);return}$F.push(p)}},vV=function(){var a=(0,Pa.Z)(Qi().mark(function p(u){return Qi().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",new Promise(function(g,T){if(Hw.AMap===qb.failed)T("");else if(Hw.AMap===qb.notload){var B=u.key,Z=u.version,ee=u.plugins;if(!B){T("\u8BF7\u586B\u5199key");return}window.AMap&&location.host!=="lbs.amap.com"&&T("\u7981\u6B62\u591A\u79CDAPI\u52A0\u8F7D\u65B9\u5F0F\u6DF7\u7528"),U_.key=B,U_.AMap.version=Z||U_.AMap.version,U_.AMap.plugins=ee||U_.AMap.plugins,Hw.AMap=qb.loading;var Pe=document.body||document.head;window._onAPILoaded=function(Tn){Tn?(Hw.AMap=qb.failed,T(Tn)):(Hw.AMap=qb.loaded,g(null))};var Ze=document.createElement("script");Ze.type="text/javascript",Ze.async=!1,Ze.src="https://webapi.amap.com/maps?callback=_onAPILoaded&v="+U_.AMap.version+"&key="+B+"&plugin="+U_.AMap.plugins.join(","),Ze.onerror=function(Tn){Hw.AMap=qb.failed,T(Tn)},Pe.appendChild(Ze)}else if(Hw.AMap===qb.loaded){if(u.key&&u.key!==U_.key){T("\u591A\u4E2A\u4E0D\u4E00\u81F4\u7684 key");return}if(u.version&&u.version!==U_.AMap.version){T("\u4E0D\u5141\u8BB8\u591A\u4E2A\u7248\u672C JSAPI \u6DF7\u7528");return}var St=[];u.plugins&&u.plugins.forEach(function(Tn){U_.AMap.plugins.indexOf(Tn)===-1&&St.push(Tn)}),St.length&&window.AMap.plugin(St,function(){g(window.AMap)})}else{if(u.key&&u.key!==U_.key){T("\u591A\u4E2A\u4E0D\u4E00\u81F4\u7684 key");return}if(u.version&&u.version!==U_.AMap.version){T("\u4E0D\u5141\u8BB8\u591A\u4E2A\u7248\u672C JSAPI \u6DF7\u7528");return}var Mt=[];u.plugins&&u.plugins.forEach(function(Tn){U_.AMap.plugins.indexOf(Tn)===-1&&Mt.push(Tn)}),mV(function(){Mt.length&&window.AMap.plugin(Mt,function(){g(window.AMap)})})}}));case 1:case"end":return l.stop()}},p)}));return function(u){return a.apply(this,arguments)}}();function yV(){delete window.AMap,U_={key:"",AMap:{version:"1.4.15",plugins:[]}},Hw={AMap:qb.notload},zF={AMap:[]}}var _V={load:vV,reset:yV},WF=Math.PI/180,b5=function(){function a(){(0,wt.Z)(this,a),(0,bn.Z)(this,"projectionMatrix",nn()),(0,bn.Z)(this,"viewMatrix",nn()),(0,bn.Z)(this,"viewProjectionMatrix",nn()),(0,bn.Z)(this,"ViewProjectionMatrixUncentered",nn()),(0,bn.Z)(this,"viewUncenteredMatrix",nn())}return(0,He.Z)(a,[{key:"syncWithMapCamera",value:function(u){var c=u.zoom,l=c===void 0?1:c,g=u.pitch,T=g===void 0?0:g,B=u.bearing,Z=B===void 0?0:B,ee=u.center,Pe=ee===void 0?[0,0]:ee,Ze=u.offsetOrigin,St=Ze===void 0?[0,0]:Ze,Mt=u.cameraHeight,Tn=Mt===void 0?1:Mt,kn=u.aspect,vr=kn===void 0?1:kn,wi=u.near,zo=wi===void 0?.1:wi,$o=u.far,Ks=$o===void 0?1e3:$o,ra=u.fov,La=ra===void 0?0:ra;this.zoom=l,this.center=Pe;var vl=T*WF,Wl=(360-Z)*WF;hi(this.projectionMatrix,La,vr,zo,Ks);var Jl=$g(Tn*Math.sin(vl)*Math.sin(Wl),-Tn*Math.sin(vl)*Math.cos(Wl),Tn*Math.cos(vl)),ju=$g(-Math.cos(vl)*Math.sin(Wl),Math.cos(vl)*Math.cos(Wl),Math.sin(vl));Da(this.viewMatrix,Jl,$g(0,0,0),ju),this.viewUncenteredMatrix=Fn(this.viewMatrix),Kl(this.viewMatrix,this.viewMatrix,$g(-St[0],St[1],0)),Sl(this.viewProjectionMatrix,this.projectionMatrix,this.viewMatrix),Sl(this.ViewProjectionMatrixUncentered,this.projectionMatrix,this.viewMatrix)}},{key:"getZoom",value:function(){return this.zoom}},{key:"getZoomScale",value:function(){return 524288}},{key:"getCenter",value:function(){var u=(0,qn.Z)(this.center,2),c=u[0],l=u[1];return[c,l]}},{key:"getProjectionMatrix",value:function(){return this.projectionMatrix}},{key:"getModelMatrix",value:function(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}},{key:"getViewMatrix",value:function(){return this.viewMatrix}},{key:"getViewMatrixUncentered",value:function(){return this.viewUncenteredMatrix}},{key:"getViewProjectionMatrix",value:function(){return this.viewProjectionMatrix}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.ViewProjectionMatrixUncentered}},{key:"getFocalDistance",value:function(){return 1}},{key:"projectFlat",value:function(u){var c=85.0511287798,l=Math.max(Math.min(c,u[1]),-c),g=256<<20,T=Math.PI/180,B=u[0]*T,Z=l*T;Z=Math.log(Math.tan(Math.PI/4+Z/2));var ee=.5/Math.PI,Pe=.5,Ze=-.5/Math.PI;return T=.5,B=g*(ee*B+Pe)-215440491,Z=-(g*(Ze*Z+T)-106744817),[B,Z]}}]),a}(),bV=["id","style","minZoom","maxZoom","token","mapInstance","plugin"],BI,_A;function jF(a){var p=VF();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function VF(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}window.forceWebGL=!0;var xV="15cd8a57710d40c9b7c0e3cc120f1200",RP="1.4.15",zI=!1,NP=[],x5=12,C5=(BI=(0,ws.b2)(),BI(_A=function(a){(0,dt.Z)(u,a);var p=jF(u);function u(){var c;(0,wt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;Tra?c.coordinateSystemService.setCoordinateSystem(Qd.P20_OFFSET):c.coordinateSystemService.setCoordinateSystem(Qd.P20),c.cameraChangedCallback(c.viewport)}}),c}return(0,He.Z)(u,[{key:"getModelMatrix",value:function(l,g,T){var B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],Z=this.viewport.projectFlat(l),ee=nn();return Kl(ee,ee,$g(Z[0],Z[1],g)),rl(ee,ee,$g(B[0],B[1],B[2])),pu(ee,ee,T[0]),ic(ee,ee,T[1]),od(ee,ee,T[2]),ee}},{key:"init",value:function(){var c=(0,Pa.Z)(Qi().mark(function g(){var T=this,B,Z,ee,Pe,Ze,St,Mt,Tn,kn,vr,wi,zo,$o,Ks;return Qi().wrap(function(La){for(;;)switch(La.prev=La.next){case 0:return B=this.config,Z=B.id,ee=B.style,Pe=ee===void 0?"light":ee,Ze=B.minZoom,St=Ze===void 0?0:Ze,Mt=B.maxZoom,Tn=Mt===void 0?18:Mt,kn=B.token,vr=kn===void 0?xV:kn,wi=B.mapInstance,zo=B.plugin,$o=zo===void 0?[]:zo,Ks=(0,Ug.Z)(B,bV),La.next=3,new Promise(function(vl){var Wl=function(){if(wi)T.map=wi,T.$mapContainer=T.map.getContainer(),setTimeout(function(){T.map.on("camerachange",T.handleCameraChanged),vl()},30);else{T.$mapContainer=T.creatMapContainer(Z);var ju=(0,xe.Z)({mapStyle:T.getMapStyleValue(Pe),zooms:[St,Tn],viewMode:"3D"},Ks);ju.zoom&&(ju.zoom+=1);var Ku=new AMap.Map(T.$mapContainer,ju);Ku.on("camerachange",T.handleCameraChanged),Ku.on("camerachange",function(){setTimeout(function(){return T.handleAfterMapChange()})}),T.map=Ku,setTimeout(function(){vl()},10)}};!zI&&!wi?(vr===xV&&console.warn(T.configService.getSceneWarninfo("MapToken")),zI=!0,$o.push("Map3D"),_V.load({key:vr,version:RP,plugins:$o}).then(function(Jl){Wl(),NP.length&&(NP.forEach(function(ju){return ju()}),NP=[])}).catch(function(Jl){throw new Error(Jl)})):zI&&window.AMap||wi?Wl():NP.push(Wl)});case 3:this.viewport=new b5;case 4:case"end":return La.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"meterToCoord",value:function(l,g){var T=AMap.GeometryUtil.distance(Yr(AMap.LngLat,(0,kr.Z)(l)),Yr(AMap.LngLat,(0,kr.Z)(g))),B=this.lngLatToCoord(l),Z=(0,qn.Z)(B,2),ee=Z[0],Pe=Z[1],Ze=this.lngLatToCoord(g),St=(0,qn.Z)(Ze,2),Mt=St[0],Tn=St[1],kn=Math.sqrt(Math.pow(ee-Mt,2)+Math.pow(Pe-Tn,2));return kn/T}},{key:"updateView",value:function(l){}},{key:"getOverlayContainer",value:function(){}},{key:"exportMap",value:function(l){var g,T=(g=this.getContainer())===null||g===void 0?void 0:g.getElementsByClassName("amap-layer")[0],B=l==="jpg"?T==null?void 0:T.toDataURL("image/jpeg"):T==null?void 0:T.toDataURL("image/png");return B}},{key:"onCameraChanged",value:function(l){this.cameraChangedCallback=l}}]),u}(BF))||_A);function CV(a){var p=wV();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function wV(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var $I=function(a){(0,dt.Z)(u,a);var p=CV(u);function u(){return(0,wt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"getServiceConstructor",value:function(){return C5}}]),u}(WC),UF=function(){function a(){(0,wt.Z)(this,a),(0,bn.Z)(this,"projectionMatrix",nn()),(0,bn.Z)(this,"viewMatrix",nn()),(0,bn.Z)(this,"viewProjectionMatrix",nn()),(0,bn.Z)(this,"ViewProjectionMatrixUncentered",nn()),(0,bn.Z)(this,"viewUncenteredMatrix",nn())}return(0,He.Z)(a,[{key:"syncWithMapCamera",value:function(u){var c=u.zoom,l=c===void 0?1:c,g=u.center,T=g===void 0?[0,0]:g,B=u.offsetOrigin,Z=B===void 0?[0,0]:B,ee=u.cameraPosition,Pe=ee===void 0?[0,0,0]:ee,Ze=u.up,St=Ze===void 0?[0,1,0]:Ze,Mt=u.lookAt,Tn=Mt===void 0?[0,0,0]:Mt,kn=u.aspect,vr=kn===void 0?1:kn,wi=u.near,zo=wi===void 0?.1:wi,$o=u.far,Ks=$o===void 0?1e3:$o,ra=u.fov,La=ra===void 0?45:ra;this.zoom=l,this.center=T,hi(this.projectionMatrix,La/180*Math.PI,vr,zo,Ks);var vl=$g.apply(z,(0,kr.Z)(Pe)),Wl=$g.apply(z,(0,kr.Z)(Tn)),Jl=$g.apply(z,(0,kr.Z)(St));Da(this.viewMatrix,vl,Wl,Jl),this.viewUncenteredMatrix=Fn(this.viewMatrix),Kl(this.viewMatrix,this.viewMatrix,$g(-Z[0],Z[1],0)),Sl(this.viewProjectionMatrix,this.projectionMatrix,this.viewMatrix),Sl(this.ViewProjectionMatrixUncentered,this.projectionMatrix,this.viewMatrix)}},{key:"getZoom",value:function(){return this.zoom}},{key:"getZoomScale",value:function(){return 1048576}},{key:"getCenter",value:function(){var u=(0,qn.Z)(this.center,2),c=u[0],l=u[1];return[c,l]}},{key:"getProjectionMatrix",value:function(){return this.projectionMatrix}},{key:"getModelMatrix",value:function(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}},{key:"getViewMatrix",value:function(){return this.viewMatrix}},{key:"getViewMatrixUncentered",value:function(){return this.viewUncenteredMatrix}},{key:"getViewProjectionMatrix",value:function(){return this.viewProjectionMatrix}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.ViewProjectionMatrixUncentered}},{key:"getFocalDistance",value:function(){return 1.2}},{key:"projectFlat",value:function(u){var c=85.0511287798,l=Math.max(Math.min(c,u[1]),-c),g=256<<20,T=Math.PI/180,B=u[0]*T,Z=l*T;Z=Math.log(Math.tan(Math.PI/4+Z/2));var ee=.5/Math.PI,Pe=.5,Ze=-.5/Math.PI;return T=.5,B=g*(ee*B+Pe)-215440491,Z=-(g*(Ze*Z+T)-106744817),[B,Z]}}]),a}(),w5=["id","style","minZoom","maxZoom","token","mapInstance","plugin","version"],S5,FP;function E5(a){var p=T5();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function T5(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}function SV(a,p){var u=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,c=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(u||c)&&(p||(p=document),!!p)){var l=p.head||p.getElementsByTagName("head")[0];if(!l){l=p.createElement("head");var g=p.body||p.getElementsByTagName("body")[0];g?g.parentNode.insertBefore(l,g):p.documentElement.appendChild(l)}var T=p.createElement("style");return T.type="text/css",T.styleSheet?T.styleSheet.cssText=a:T.appendChild(p.createTextNode(a)),l.appendChild(T),T}}SV(`.amap-logo{ display: none !important; } -`);var zP=[108.92361,34.54083];window.forceWebGL=!0;var UF="ff533602d57df6f8ab3b0fea226ae52f",HF="2.0",BX=!1,ZF=null,F5=(O5=(0,ws.b2)(),O5(BP=function(a){(0,ht.Z)(u,a);var p=VF(u);function u(){var c;(0,bt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;Tg.getLng()||B.lng3&&arguments[3]!==void 0?arguments[3]:[1,1,1],G=this.map.customCoords.lngLatToCoord(l),te=nn();return ql(te,te,Yg(G[0],G[1],g)),il(te,te,Yg(B[0],B[1],B[2])),pu(te,te,T[0]),oc(te,te,T[1]),cd(te,te,T[2]),te}},{key:"init",value:function(){var c=(0,ka.Z)(Qi().mark(function g(){var T,B,G,te,Me,Ge,St,Mt,In,kn,Sr,_i,Vo,zo,Ks,ca,Ia,al,jl,Wl,Wu,Pu;return Qi().wrap(function(dd){for(;;)switch(dd.prev=dd.next){case 0:if(T=this.config,B=T.id,G=T.style,te=G===void 0?"light":G,Me=T.minZoom,Ge=Me===void 0?0:Me,St=T.maxZoom,Mt=St===void 0?18:St,In=T.token,kn=In===void 0?UF:In,Sr=T.mapInstance,_i=T.plugin,Vo=_i===void 0?[]:_i,zo=T.version,Ks=zo===void 0?HF:zo,ca=(0,Vg.Z)(T,FI),this.viewport=new vV,window.AMap||Sr){dd.next=6;break}return Vo.push("Map3D"),dd.next=6,PI().load({key:kn,version:HF,plugins:Vo});case 6:Sr?(this.map=Sr,this.$mapContainer=this.map.getContainer(),al=this.map.getCenter(),(Ia=this.map.customCoords)===null||Ia===void 0||Ia.setCenter([al.lng,al.lat]),this.setCustomCoordCenter([al.lng,al.lat]),this.map.on("viewchange",this.handleViewChanged)):(this.$mapContainer=this.creatMapContainer(B),Wl=(0,Ce.Z)({mapStyle:this.getMapStyleValue(te),zooms:[Ge,Mt],viewMode:"3D"},ca),Wl.zoom&&(Wl.zoom+=1),kn===UF&&console.warn("%c".concat(this.configService.getSceneWarninfo("MapToken"),"!"),"color: #873bf4;font-weigh:900;font-size: 16px;"),Wu=new AMap.Map(this.$mapContainer,Wl),this.map=Wu,Pu=Wu.getCenter(),(jl=this.map.customCoords)===null||jl===void 0||jl.setCenter([Pu.lng,Pu.lat]),this.setCustomCoordCenter([Pu.lng,Pu.lat]),Wu.on("viewchange",this.handleViewChanged)),this.initViewPort();case 8:case"end":return dd.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"getMapContainer",value:function(){return this.$mapContainer}},{key:"onCameraChanged",value:function(l){this.cameraChangedCallback=l}},{key:"initViewPort",value:function(){var l,g=(l=this.map.customCoords)===null||l===void 0?void 0:l.getCameraParams(),T=g.fov,B=g.near,G=g.far,te=g.aspect,Me=g.position,Ge=g.lookAt,St=g.up;this.emit("mapchange");var Mt=this.map.customCoords.getCenter(),In=this.map.getZoom();this.cameraChangedCallback&&(this.viewport.syncWithMapCamera({aspect:te,far:G,fov:T,cameraPosition:Me,lookAt:Ge,near:B,up:St,zoom:In-1,center:Mt,offsetOrigin:[Me[0],Me[1]]}),this.coordinateSystemService.setCoordinateSystem(eh.P20_2),this.cameraChangedCallback(this.viewport))}},{key:"_sub",value:function(l,g){var T=[0,0];return T[0]=l[0]-g[0],T[1]=l[1]-g[1],T}}]),u}(NF))||BP);function yV(a){var p=Nw();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function Nw(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var GF=function(a){(0,ht.Z)(u,a);var p=yV(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,Ue.Z)(u,[{key:"getServiceConstructor",value:function(){return F5}}]),u}(fA),_V=m(99874),bV=m.n(_V);function _A(a,p){var u=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!u){if(Array.isArray(a)||(u=KF(a))||p&&a&&typeof a.length=="number"){u&&(a=u);var c=0,l=function(){};return{s:l,n:function(){return c>=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(te){throw te},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var te=u.next();return g=te.done,te},e:function(te){T=!0,B=te},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function KF(a,p){if(a){if(typeof a=="string")return XF(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return XF(a,p)}}function XF(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);u1?p-1:0),c=1;c90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}return(0,Ue.Z)(a,[{key:"wrap",value:function(){return new a(z5(this.lng,-180,180),this.lat)}},{key:"toArray",value:function(){return[this.lng,this.lat]}},{key:"toString",value:function(){return"LngLat(".concat(this.lng,", ").concat(this.lat,")")}},{key:"distanceTo",value:function(u){var c=Math.PI/180,l=this.lat*c,g=u.lat*c,T=Math.sin(l)*Math.sin(g)+Math.cos(l)*Math.cos(g)*Math.cos((u.lng-this.lng)*c),B=qF*Math.acos(Math.min(T,1));return B}}],[{key:"convert",value:function(u){if(u instanceof a)return u;if(Array.isArray(u)&&(u.length===2||u.length===3))return new a(Number(u[0]),Number(u[1]));if(!Array.isArray(u)&&(0,Ro.Z)(u)==="object"&&u!==null){var c="lng"in u?u.lng:u.lon;return new a(Number(c),Number(u.lat))}throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}}]),a}(),zI=function(){function a(p,u){(0,bt.Z)(this,a),p&&(u?this.setSouthWest(p).setNorthEast(u):p.length===4?this.setSouthWest([p[0],p[1]]).setNorthEast([p[2],p[3]]):this.setSouthWest(p[0]).setNorthEast(p[1]))}return(0,Ue.Z)(a,[{key:"setNorthEast",value:function(u){return this.ne=u instanceof F0?new F0(u.lng,u.lat):F0.convert(u),this}},{key:"setSouthWest",value:function(u){return this.sw=u instanceof F0?new F0(u.lng,u.lat):F0.convert(u),this}},{key:"extend",value:function(u){var c=this.sw,l=this.ne,g,T;if(u instanceof F0)g=u,T=u;else if(u instanceof a){if(g=u.sw,T=u.ne,!g||!T)return this}else{if(Array.isArray(u))if(u.length===4||u.every(Array.isArray)){var B=u;return this.extend(a.convert(B))}else{var G=u;return this.extend(F0.convert(G))}return this}return!c&&!l?(this.sw=new F0(g.lng,g.lat),this.ne=new F0(T.lng,T.lat)):(c.lng=Math.min(g.lng,c.lng),c.lat=Math.min(g.lat,c.lat),l.lng=Math.max(T.lng,l.lng),l.lat=Math.max(T.lat,l.lat)),this}},{key:"getCenter",value:function(){return new F0((this.sw.lng+this.ne.lng)/2,(this.sw.lat+this.ne.lat)/2)}},{key:"getSouthWest",value:function(){return this.sw}},{key:"getNorthEast",value:function(){return this.ne}},{key:"getNorthWest",value:function(){return new F0(this.getWest(),this.getNorth())}},{key:"getSouthEast",value:function(){return new F0(this.getEast(),this.getSouth())}},{key:"getWest",value:function(){return this.sw.lng}},{key:"getSouth",value:function(){return this.sw.lat}},{key:"getEast",value:function(){return this.ne.lng}},{key:"getNorth",value:function(){return this.ne.lat}},{key:"toArray",value:function(){return[this.sw.toArray(),this.ne.toArray()]}},{key:"toString",value:function(){return"LngLatBounds(".concat(this.sw.toString(),", ").concat(this.ne.toString(),")")}},{key:"isEmpty",value:function(){return!(this.sw&&this.ne)}},{key:"contains",value:function(u){var c=F0.convert(u),l=c.lng,g=c.lat,T=this.sw.lat<=g&&g<=this.ne.lat,B=this.sw.lng<=l&&l<=this.ne.lng;return this.sw.lng>this.ne.lng&&(B=this.sw.lng>=l&&l>=this.ne.lng),T&&B}}],[{key:"convert",value:function(u){return u instanceof a?u:new a(u)}}]),a}(),$m=function(){function a(p,u){(0,bt.Z)(this,a),this.x=p,this.y=u}return(0,Ue.Z)(a,[{key:"clone",value:function(){return new a(this.x,this.y)}},{key:"_add",value:function(u){return this.x+=u.x,this.y+=u.y,this}},{key:"add",value:function(u){return this.clone()._add(u)}},{key:"_sub",value:function(u){return this.x-=u.x,this.y-=u.y,this}},{key:"sub",value:function(u){return this.clone()._sub(u)}},{key:"_multByPoint",value:function(u){return this.x*=u.x,this.y*=u.y,this}},{key:"multByPoint",value:function(u){return this.clone()._multByPoint(u)}},{key:"_divByPoint",value:function(u){return this.x/=u.x,this.y/=u.y,this}},{key:"divByPoint",value:function(u){return this.clone()._divByPoint(u)}},{key:"_mult",value:function(u){return this.x*=u,this.y*=u,this}},{key:"mult",value:function(u){return this.clone()._mult(u)}},{key:"_div",value:function(u){return this.x/=u,this.y/=u,this}},{key:"div",value:function(u){return this.clone()._div(u)}},{key:"_rotate",value:function(u){var c=Math.cos(u),l=Math.sin(u),g=c*this.x-l*this.y,T=l*this.x+c*this.y;return this.x=g,this.y=T,this}},{key:"rotate",value:function(u){return this.clone()._rotate(u)}},{key:"_rotateAround",value:function(u,c){var l=Math.cos(u),g=Math.sin(u),T=c.x+l*(this.x-c.x)-g*(this.y-c.y),B=c.y+g*(this.x-c.x)+l*(this.y-c.y);return this.x=T,this.y=B,this}},{key:"roateAround",value:function(u,c){return this.clone()._rotateAround(u,c)}},{key:"_matMult",value:function(u){var c=u[0]*this.x+u[1]*this.y,l=u[2]*this.x+u[3]*this.y;return this.x=c,this.y=l,this}},{key:"matMult",value:function(u){return this.clone()._matMult(u)}},{key:"_unit",value:function(){return this.div(this.mag()),this}},{key:"unit",value:function(){return this.clone()._unit()}},{key:"_perp",value:function(){var u=this.y;return this.y=this.x,this.x=-u,this}},{key:"perp",value:function(){return this.clone()._perp()}},{key:"_round",value:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},{key:"round",value:function(){return this.clone()._round()}},{key:"mag",value:function(){return Math.sqrt(this.x*this.x+this.y*this.y)}},{key:"equals",value:function(u){return this.x===u.x&&this.y===u.y}},{key:"dist",value:function(u){return Math.sqrt(this.distSqr(u))}},{key:"distSqr",value:function(u){var c=u.x-this.x,l=u.y-this.y;return c*c+l*l}},{key:"angle",value:function(){return Math.atan2(this.y,this.x)}},{key:"angleTo",value:function(u){return Math.atan2(this.y-u.y,this.x-u.x)}},{key:"angleWith",value:function(u){return this.angleWithSep(u.x,u.y)}},{key:"angleWithSep",value:function(u,c){return Math.atan2(this.x*c-this.y*u,this.x*u+this.y*c)}}],[{key:"convert",value:function(u){return u instanceof a?u:Array.isArray(u)?new a(u[0],u[1]):u}}]),a}();function wV(){var a=new Sc(4);return Sc!=Float32Array&&(a[1]=0,a[2]=0),a[0]=1,a[3]=1,a}function zX(a){var p=new glMatrix.ARRAY_TYPE(4);return p[0]=a[0],p[1]=a[1],p[2]=a[2],p[3]=a[3],p}function JF(a,p){return a[0]=p[0],a[1]=p[1],a[2]=p[2],a[3]=p[3],a}function QF(a){return a[0]=1,a[1]=0,a[2]=0,a[3]=1,a}function j5(a,p,u,c){var l=new glMatrix.ARRAY_TYPE(4);return l[0]=a,l[1]=p,l[2]=u,l[3]=c,l}function SV(a,p,u,c,l){return a[0]=p,a[1]=u,a[2]=c,a[3]=l,a}function o1(a,p){if(a===p){var u=p[1];a[1]=p[2],a[2]=u}else a[0]=p[0],a[1]=p[2],a[2]=p[1],a[3]=p[3];return a}function e7(a,p){var u=p[0],c=p[1],l=p[2],g=p[3],T=u*g-l*c;return T?(T=1/T,a[0]=g*T,a[1]=-c*T,a[2]=-l*T,a[3]=u*T,a):null}function EV(a,p){var u=p[0];return a[0]=p[3],a[1]=-p[1],a[2]=-p[2],a[3]=u,a}function TV(a){return a[0]*a[3]-a[2]*a[1]}function $X(a,p,u){var c=p[0],l=p[1],g=p[2],T=p[3],B=u[0],G=u[1],te=u[2],Me=u[3];return a[0]=c*B+g*G,a[1]=l*B+T*G,a[2]=c*te+g*Me,a[3]=l*te+T*Me,a}function DV(a,p,u){var c=p[0],l=p[1],g=p[2],T=p[3],B=Math.sin(u),G=Math.cos(u);return a[0]=c*G+g*B,a[1]=l*G+T*B,a[2]=c*-B+g*G,a[3]=l*-B+T*G,a}function jX(a,p,u){var c=p[0],l=p[1],g=p[2],T=p[3],B=u[0],G=u[1];return a[0]=c*B,a[1]=l*B,a[2]=g*G,a[3]=T*G,a}function WX(a,p){var u=Math.sin(p),c=Math.cos(p);return a[0]=c,a[1]=u,a[2]=-u,a[3]=c,a}function W5(a,p){return a[0]=p[0],a[1]=0,a[2]=0,a[3]=p[1],a}function VX(a){return"mat2("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+")"}function UX(a){return Math.hypot(a[0],a[1],a[2],a[3])}function HX(a,p,u,c){return a[2]=c[2]/c[0],u[0]=c[0],u[1]=c[1],u[3]=c[3]-a[2]*u[1],[a,p,u]}function AV(a,p,u){return a[0]=p[0]+u[0],a[1]=p[1]+u[1],a[2]=p[2]+u[2],a[3]=p[3]+u[3],a}function V5(a,p,u){return a[0]=p[0]-u[0],a[1]=p[1]-u[1],a[2]=p[2]-u[2],a[3]=p[3]-u[3],a}function t7(a,p){return a[0]===p[0]&&a[1]===p[1]&&a[2]===p[2]&&a[3]===p[3]}function ZX(a,p){var u=a[0],c=a[1],l=a[2],g=a[3],T=p[0],B=p[1],G=p[2],te=p[3];return Math.abs(u-T)<=glMatrix.EPSILON*Math.max(1,Math.abs(u),Math.abs(T))&&Math.abs(c-B)<=glMatrix.EPSILON*Math.max(1,Math.abs(c),Math.abs(B))&&Math.abs(l-G)<=glMatrix.EPSILON*Math.max(1,Math.abs(l),Math.abs(G))&&Math.abs(g-te)<=glMatrix.EPSILON*Math.max(1,Math.abs(g),Math.abs(te))}function GX(a,p,u){return a[0]=p[0]*u,a[1]=p[1]*u,a[2]=p[2]*u,a[3]=p[3]*u,a}function _te(a,p,u,c){return a[0]=p[0]+u[0]*c,a[1]=p[1]+u[1]*c,a[2]=p[2]+u[2]*c,a[3]=p[3]+u[3]*c,a}var KX=null,n7=null,bb=function(){function a(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;if((0,bt.Z)(this,a),isNaN(p)||p<0||isNaN(u)||u<0||isNaN(c)||c<0||isNaN(l)||l<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=p,this.bottom=u,this.left=c,this.right=l}return(0,Ue.Z)(a,[{key:"interpolate",value:function(u,c,l){return c.top!=null&&u.top!=null&&(this.top=Kb(u.top,c.top,l)),c.bottom!=null&&u.bottom!=null&&(this.bottom=Kb(u.bottom,c.bottom,l)),c.left!=null&&u.left!=null&&(this.left=Kb(u.left,c.left,l)),c.right!=null&&u.right!=null&&(this.right=Kb(u.right,c.right,l)),this}},{key:"getCenter",value:function(u,c){var l=Fw((this.left+u-this.right)/2,0,u),g=Fw((this.top+c-this.bottom)/2,0,c);return new $m(l,g)}},{key:"equals",value:function(u){return this.top===u.top&&this.bottom===u.bottom&&this.left===u.left&&this.right===u.right}},{key:"clone",value:function(){return new a(this.top,this.bottom,this.left,this.right)}},{key:"toJSON",value:function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}]),a}(),U5=2*Math.PI*qF;function r7(a){return U5*Math.cos(a*Math.PI/180)}function $P(a){return(180+a)/360}function jP(a){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+a*Math.PI/360)))/360}function GE(a,p){return a/r7(p)}function H5(a){return a*360-180}function $I(a){var p=180-a*360;return 360/Math.PI*Math.atan(Math.exp(p*Math.PI/180))-90}function IV(a,p){return a*r7($I(p))}function i7(a){return 1/Math.cos(a*Math.PI/180)}var KE=function(){function a(p,u){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;(0,bt.Z)(this,a),this.x=+p,this.y=+u,this.z=+c}return(0,Ue.Z)(a,[{key:"toLngLat",value:function(){return new F0(H5(this.x),$I(this.y))}},{key:"toAltitude",value:function(){return IV(this.z,this.y)}},{key:"meterInMercatorCoordinateUnits",value:function(){return 1/U5*i7($I(this.y))}}],[{key:"fromLngLat",value:function(u){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,l=F0.convert(u);return new a($P(l.lng),jP(l.lat),GE(c,l.lat))}}]),a}();function o7(a,p){var u=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!u){if(Array.isArray(a)||(u=U1(a))||p&&a&&typeof a.length=="number"){u&&(a=u);var c=0,l=function(){};return{s:l,n:function(){return c>=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(te){throw te},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var te=u.next();return g=te.done,te},e:function(te){T=!0,B=te},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function U1(a,p){if(a){if(typeof a=="string")return xA(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return xA(a,p)}}function xA(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);uc&&(te=c-_i)}if(this.lngRange){var Vo=In.x,zo=Me.x/2;Vo-zog&&(G=g-zo)}(G!==void 0||te!==void 0)&&(this.center=this.unproject(new $m(G!==void 0?G:In.x,te!==void 0?te:In.y))),this.unmodified=Ge,this.constraining=!1}}},{key:"calcMatrices",value:function(){if(this.height){var u=this._fov/2,c=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(u)*this.height;var l=Math.PI/2+this._pitch,g=this._fov*(.5+c.y/this.height),T=Math.sin(g)*this.cameraToCenterDistance/Math.sin(Fw(Math.PI-l-g,.01,Math.PI-.01)),B=this.point,G=B.x,te=B.y,Me=Math.cos(Math.PI/2-this._pitch)*T+this.cameraToCenterDistance,Ge=Me*1.01,St=this.height/50,Mt=new Float64Array(16);hi(Mt,this._fov,this.width/this.height,St,Ge),Mt[8]=-c.x*2/this.width,Mt[9]=c.y*2/this.height,il(Mt,Mt,[1,-1,1]),ql(Mt,Mt,[0,0,-this.cameraToCenterDistance]),pu(Mt,Mt,this._pitch),cd(Mt,Mt,this.angle),ql(Mt,Mt,[-G,-te,0]),this.mercatorMatrix=il([],Mt,[this.worldSize,this.worldSize,this.worldSize]),il(Mt,Mt,[1,1,GE(1,this.center.lat)*this.worldSize,1]),this.projMatrix=Mt,this.invProjMatrix=$u([],this.projMatrix);var In=this.width%2/2,kn=this.height%2/2,Sr=Math.cos(this.angle),_i=Math.sin(this.angle),Vo=G-Math.round(G)+Sr*In+_i*kn,zo=te-Math.round(te)+Sr*kn+_i*In,Ks=new Float64Array(Mt);if(ql(Ks,Ks,[Vo>.5?Vo-1:Vo,zo>.5?zo-1:zo,0]),this.alignedProjMatrix=Ks,Mt=nn(),il(Mt,Mt,[this.width/2,-this.height/2,1]),ql(Mt,Mt,[1,-1,0]),this.labelPlaneMatrix=Mt,Mt=nn(),il(Mt,Mt,[1,-1,1]),ql(Mt,Mt,[-1,-1,0]),il(Mt,Mt,[2/this.width,2/this.height,1]),this.glCoordMatrix=Mt,this.pixelMatrix=Sl(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),Mt=$u(new Float64Array(16),this.pixelMatrix),!Mt)throw new Error("failed to invert matrix");this.pixelMatrixInverse=Mt,this.posMatrixCache={},this.alignedPosMatrixCache={}}}}]),a}(),WP=Ma.merge,_0=(0,Ue.Z)(function a(p){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,bt.Z)(this,a),WP(this,u),this.type=p});function s7(a){var p=a7();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function a7(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var OC=Ma.merge,l7=function(a){(0,ht.Z)(u,a);var p=s7(u);function u(c){var l;(0,bt.Z)(this,u),l=p.call(this),(0,bn.Z)((0,as.Z)(l),"renderFrameCallback",function(){var Me=Math.min((q2()-l.easeStart)/l.easeOptions.duration,1);l.onEaseFrame(l.easeOptions.easing(Me)),Me<1?l.easeFrameId=l.requestRenderFrame(l.renderFrameCallback):l.stop()}),l.options=c;var g=c.minZoom,T=c.maxZoom,B=c.minPitch,G=c.maxPitch,te=c.renderWorldCopies;return l.moving=!1,l.zooming=!1,l.bearingSnap=c.bearingSnap,l.pitchEnabled=c.pitchEnabled,l.rotateEnabled=c.rotateEnabled,l.transform=new LV(g,T,B,G,te),l}return(0,Ue.Z)(u,[{key:"requestRenderFrame",value:function(l){return 0}},{key:"cancelRenderFrame",value:function(l){}},{key:"getCenter",value:function(){var l=this.transform.center,g=l.lng,T=l.lat;return new F0(g,T)}},{key:"getZoom",value:function(){return this.transform.zoom}},{key:"getPitch",value:function(){return this.transform.pitch}},{key:"setCenter",value:function(l,g){return this.jumpTo({center:l},g)}},{key:"setPitch",value:function(l,g){return this.jumpTo({pitch:l},g),this}},{key:"getBearing",value:function(){return this.transform.bearing}},{key:"panTo",value:function(l,g,T){return this.easeTo(OC({center:l},g),T)}},{key:"panBy",value:function(l,g,T){return l=$m.convert(l).mult(-1),this.panTo(this.transform.center,bA({offset:l},g||{}),T)}},{key:"zoomOut",value:function(l,g){return this.zoomTo(this.getZoom()-1,l,g),this}},{key:"setBearing",value:function(l,g){return this.jumpTo({bearing:l},g),this}},{key:"setZoom",value:function(l,g){return this.jumpTo({zoom:l},g),this}},{key:"zoomIn",value:function(l,g){return this.zoomTo(this.getZoom()+1,l,g),this}},{key:"zoomTo",value:function(l,g,T){return this.easeTo(OC({zoom:l},g),T)}},{key:"getPadding",value:function(){return this.transform.padding}},{key:"setPadding",value:function(l,g){return this.jumpTo({padding:l},g),this}},{key:"rotateTo",value:function(l,g,T){return this.easeTo(OC({bearing:l},g),T)}},{key:"resetNorth",value:function(l,g){return this.rotateTo(0,OC({duration:1e3},l),g),this}},{key:"resetNorthPitch",value:function(l,g){return this.easeTo(OC({bearing:0,pitch:0,duration:1e3},l),g),this}},{key:"fitBounds",value:function(l,g,T){return this.fitInternal(this.cameraForBounds(l,g),g,T)}},{key:"cameraForBounds",value:function(l,g){return l=zI.convert(l),this.cameraForBoxAndBearing(l.getNorthWest(),l.getSouthEast(),0,g)}},{key:"snapToNorth",value:function(l,g){return Math.abs(this.getBearing())0&&arguments[0]!==void 0?arguments[0]:{},g=arguments.length>1?arguments[1]:void 0;this.stop();var T=this.transform,B=!1,G=!1,te=!1;return l.zoom!==void 0&&T.zoom!==+l.zoom&&(B=!0,T.zoom=+l.zoom),l.center!==void 0&&(T.center=F0.convert(l.center)),l.bearing!==void 0&&T.bearing!==+l.bearing&&(G=!0,T.bearing=+l.bearing),l.pitch!==void 0&&T.pitch!==+l.pitch&&(te=!0,T.pitch=+l.pitch),l.padding!==void 0&&!T.isPaddingEqual(l.padding)&&(T.padding=l.padding),this.emit("movestart",new _0("movestart",g)),this.emit("move",new _0("move",g)),B&&(this.emit("zoomstart",new _0("zoomstart",g)),this.emit("zoom",new _0("zoom",g)),this.emit("zoomend",new _0("zoomend",g))),G&&(this.emit("rotatestart",new _0("rotatestart",g)),this.emit("rotate",new _0("rotate",g)),this.emit("rotateend",new _0("rotateend",g))),te&&(this.emit("pitchstart",new _0("pitchstart",g)),this.emit("pitch",new _0("pitch",g)),this.emit("pitchend",new _0("pitchend",g))),this.emit("moveend",new _0("moveend",g))}},{key:"easeTo",value:function(){var l=this,g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},T=arguments.length>1?arguments[1]:void 0;g=OC({offset:[0,0],duration:500,easing:BI},g),(g.animate===!1||!g.essential&&YF())&&(g.duration=0);var B=this.transform,G=this.getZoom(),te=this.getBearing(),Me=this.getPitch(),Ge=this.getPadding(),St=g.zoom?+g.zoom:G,Mt=g.bearing?this.normalizeBearing(g.bearing,te):te,In=g.pitch?+g.pitch:Me,kn=g.padding?g.padding:B.padding,Sr=$m.convert(g.offset),_i=B.centerPoint.add(Sr),Vo=B.pointLocation(_i),zo=F0.convert(g.center||Vo);this.normalizeCenter(zo);var Ks=B.project(Vo),ca=B.project(zo).sub(Ks),Ia=B.zoomScale(St-G),al,jl;g.around&&(al=F0.convert(g.around),jl=B.locationPoint(al));var Wl={moving:this.moving,zooming:this.zooming,rotating:this.rotating,pitching:this.pitching};return this.zooming=this.zooming||St!==G,this.rotating=this.rotating||te!==Mt,this.pitching=this.pitching||In!==Me,this.padding=!B.isPaddingEqual(kn),this.easeId=g.easeId,this.prepareEase(T,g.noMoveStart,Wl),clearTimeout(this.easeEndTimeoutID),this.ease(function(Wu){if(l.zooming&&(B.zoom=Kb(G,St,Wu)),l.rotating&&l.rotateEnabled&&(B.bearing=Kb(te,Mt,Wu)),l.pitching&&l.pitchEnabled&&(B.pitch=Kb(Me,In,Wu)),l.padding&&(B.interpolatePadding(Ge,kn,Wu),_i=B.centerPoint.add(Sr)),al)B.setLocationAtPoint(al,jl);else{var Pu=B.zoomScale(B.zoom-G),Vc=St>G?Math.min(2,Ia):Math.max(.5,Ia),dd=Math.pow(Vc,1-Wu),Kd=B.unproject(Ks.add(ca.mult(Wu*dd)).mult(Pu));B.setLocationAtPoint(B.renderWorldCopies?Kd.wrap():Kd,_i)}l.fireMoveEvents(T)},function(Wu){l.afterEase(T,Wu)},g),this}},{key:"flyTo",value:function(){var l=this,g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},T=arguments.length>1?arguments[1]:void 0;if(!g.essential&&YF()){var B=xV(g,["center","zoom","bearing","pitch","around"]);return this.jumpTo(B,T)}this.stop(),g=OC({offset:[0,0],speed:1.2,curve:1.42,easing:BI},g);var G=this.transform,te=this.getZoom(),Me=this.getBearing(),Ge=this.getPitch(),St=this.getPadding(),Mt=g.zoom?Fw(+g.zoom,G.minZoom,G.maxZoom):te,In=g.bearing?this.normalizeBearing(g.bearing,Me):Me,kn=g.pitch?+g.pitch:Ge,Sr="padding"in g?g.padding:G.padding,_i=G.zoomScale(Mt-te),Vo=$m.convert(g.offset),zo=G.centerPoint.add(Vo),Ks=G.pointLocation(zo),ca=F0.convert(g.center||Ks);this.normalizeCenter(ca);var Ia=G.project(Ks),al=G.project(ca).sub(Ia),jl=g.curve,Wl=Math.max(G.width,G.height),Wu=Wl/_i,Pu=al.mag();if("minZoom"in g){var Vc=Fw(Math.min(g.minZoom,te,Mt),G.minZoom,G.maxZoom),dd=Wl/G.zoomScale(Vc-te);jl=Math.sqrt(dd/Pu*2)}var Kd=jl*jl;function Hp(V0){var a1=(Wu*Wu-Wl*Wl+(V0?-1:1)*Kd*Kd*Pu*Pu)/(2*(V0?Wu:Wl)*Kd*Pu);return Math.log(Math.sqrt(a1*a1+1)-a1)}function gm(V0){return(Math.exp(V0)-Math.exp(-V0))/2}function Fg(V0){return(Math.exp(V0)+Math.exp(-V0))/2}function mm(V0){return gm(V0)/Fg(V0)}var b0=Hp(0),py=function(a1){return Fg(b0)/Fg(b0+jl*a1)},MA=function(a1){return Wl*((Fg(b0)*mm(b0+jl*a1)-gm(b0))/Kd)/Pu},jC=(Hp(1)-b0)/jl;if(Math.abs(Pu)<1e-6||!isFinite(jC)){if(Math.abs(Wl-Wu)<1e-6)return this.easeTo(g,T);var iT=Wug.maxDuration&&(g.duration=0),this.zooming=!0,this.rotating=Me!==In,this.pitching=kn!==Ge,this.padding=!G.isPaddingEqual(Sr),this.prepareEase(T,!1),this.ease(function(V0){var a1=V0*jC,vL=1/py(a1);G.zoom=V0===1?Mt:te+G.scaleZoom(vL),l.rotating&&(G.bearing=Kb(Me,In,V0)),l.pitching&&(G.pitch=Kb(Ge,kn,V0)),l.padding&&(G.interpolatePadding(St,Sr,V0),zo=G.centerPoint.add(Vo));var yL=V0===1?ca:G.unproject(Ia.add(al.mult(MA(a1))).mult(vL));G.setLocationAtPoint(G.renderWorldCopies?yL.wrap():yL,zo),l.fireMoveEvents(T)},function(){return l.afterEase(T)},g),this}},{key:"fitScreenCoordinates",value:function(l,g,T,B,G){return this.fitInternal(this.cameraForBoxAndBearing(this.transform.pointLocation($m.convert(l)),this.transform.pointLocation($m.convert(g)),T,B),B,G)}},{key:"stop",value:function(l,g){if(this.easeFrameId&&(this.cancelRenderFrame(this.easeFrameId),delete this.easeFrameId,delete this.onEaseFrame),this.onEaseEnd){var T=this.onEaseEnd;delete this.onEaseEnd,T.call(this,g)}return this}},{key:"normalizeBearing",value:function(l,g){l=z5(l,-180,180);var T=Math.abs(l-g);return Math.abs(l-360-g)180?-360:T<-180?360:0}}},{key:"fireMoveEvents",value:function(l){this.emit("move",new _0("move",l)),this.zooming&&this.emit("zoom",new _0("zoom",l)),this.rotating&&this.emit("rotate",new _0("rotate",l)),this.pitching&&this.emit("rotate",new _0("pitch",l))}},{key:"prepareEase",value:function(l){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.moving=!0,!g&&!T.moving&&this.emit("movestart",new _0("movestart",l)),this.zooming&&!T.zooming&&this.emit("zoomstart",new _0("zoomstart",l)),this.rotating&&!T.rotating&&this.emit("rotatestart",new _0("rotatestart",l)),this.pitching&&!T.pitching&&this.emit("pitchstart",new _0("pitchstart",l))}},{key:"afterEase",value:function(l,g){if(!(this.easeId&&g&&this.easeId===g)){delete this.easeId;var T=this.zooming,B=this.rotating,G=this.pitching;this.moving=!1,this.zooming=!1,this.rotating=!1,this.pitching=!1,this.padding=!1,T&&this.emit("zoomend",new _0("zoomend",l)),B&&this.emit("rotateend",new _0("rotateend",l)),G&&this.emit("pitchend",new _0("pitchend",l)),this.emit("moveend",new _0("moveend",l))}}},{key:"ease",value:function(l,g,T){T.animate===!1||T.duration===0?(l(1),g()):(this.easeStart=q2(),this.easeOptions=T,this.onEaseFrame=l,this.onEaseEnd=g,this.easeFrameId=this.requestRenderFrame(this.renderFrameCallback))}},{key:"cameraForBoxAndBearing",value:function(l,g,T,B){var G={top:0,bottom:0,right:0,left:0};if(B=OC({padding:G,offset:[0,0],maxZoom:this.transform.maxZoom},B),typeof B.padding=="number"){var te=B.padding;B.padding={top:te,bottom:te,right:te,left:te}}B.padding=OC(G,B.padding);var Me=this.transform,Ge=Me.padding,St=Me.project(F0.convert(l)),Mt=Me.project(F0.convert(g)),In=St.rotate(-T*Math.PI/180),kn=Mt.rotate(-T*Math.PI/180),Sr=new $m(Math.max(In.x,kn.x),Math.max(In.y,kn.y)),_i=new $m(Math.min(In.x,kn.x),Math.min(In.y,kn.y)),Vo=Sr.sub(_i),zo=(Me.width-(Ge.left+Ge.right+B.padding.left+B.padding.right))/Vo.x,Ks=(Me.height-(Ge.top+Ge.bottom+B.padding.top+B.padding.bottom))/Vo.y;if(!(Ks<0||zo<0)){var ca=Math.min(Me.scaleZoom(Me.scale*Math.min(zo,Ks)),B.maxZoom),Ia=$m.convert(B.offset),al=(B.padding.left-B.padding.right)/2,jl=(B.padding.top-B.padding.bottom)/2,Wl=new $m(Ia.x+al,Ia.y+jl),Wu=Wl.mult(Me.scale/Me.zoomScale(ca)),Pu=Me.unproject(St.add(Mt).div(2).sub(Wu));return{center:Pu,zoom:ca,bearing:T}}}},{key:"fitInternal",value:function(l,g,T){return l?(g=OC(l,g),delete g.padding,g.linear?this.easeTo(g,T):this.flyTo(g,T)):this}}]),u}(yf.EventEmitter);function PV(a,p){var u=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!u){if(Array.isArray(a)||(u=YX(a))||p&&a&&typeof a.length=="number"){u&&(a=u);var c=0,l=function(){};return{s:l,n:function(){return c>=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(te){throw te},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var te=u.next();return g=te.done,te},e:function(te){T=!0,B=te},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function YX(a,p){if(a){if(typeof a=="string")return kV(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return kV(a,p)}}function kV(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);u3&&arguments[3]!==void 0?arguments[3]:{};"passive"in c&&jI?a.addEventListener(p,u,c):a.addEventListener(p,u,c.capture)},Xb.removeEventListener=function(a,p,u){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};"passive"in c&&jI?a.removeEventListener(p,u,c):a.removeEventListener(p,u,c.capture)};var u7=function a(p){p.preventDefault(),p.stopPropagation(),window.removeEventListener("click",a,!0)};Xb.suppressClick=function(){window.addEventListener("click",u7,!0),setTimeout(function(){window.removeEventListener("click",u7,!0)},0)},Xb.mousePos=function(a,p){var u=a.getBoundingClientRect();return new $m(p.clientX-u.left-a.clientLeft,p.clientY-u.top-a.clientTop)},Xb.touchPos=function(a,p){var u=a.getBoundingClientRect(),c=[],l=PV(p),g;try{for(l.s();!(g=l.n()).done;){var T=g.value;c.push(new $m(T.clientX-u.left-a.clientLeft,T.clientY-u.top-a.clientTop))}}catch(B){l.e(B)}finally{l.f()}return c},Xb.mouseButton=function(a){return a.button},Xb.remove=function(a){a.parentNode&&a.parentNode.removeChild(a)};function RV(a){var p=NV();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function NV(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var FV=Ma.merge,$w=function(a){(0,ht.Z)(u,a);var p=RV(u);function u(c,l,g){var T,B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};(0,bt.Z)(this,u);var G=Ly.mousePos(l.getCanvasContainer(),g),te=l.unproject(G);return T=p.call(this,c,FV({point:G,lngLat:te,originalEvent:g},B)),T.defaultPrevented=!1,T.target=l,T}return(0,Ue.Z)(u,[{key:"preventDefault",value:function(){this.defaultPrevented=!0}}]),u}(_0);function c7(a){var p=BV();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function BV(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var UP=function(a){(0,ht.Z)(u,a);var p=c7(u);function u(c,l,g){var T;(0,bt.Z)(this,u);var B=c==="touchend"?g.changedTouches:g.touches,G=Ly.touchPos(l.getCanvasContainer(),B),te=G.map(function(St){return l.unproject(St)}),Me=G.reduce(function(St,Mt,In,kn){return St.add(Mt.div(kn.length))},new $m(0,0)),Ge=l.unproject(Me);return T=p.call(this,c,{points:G,point:Me,lngLats:te,lngLat:Ge,originalEvent:g}),T.defaultPrevented=!1,T}return(0,Ue.Z)(u,[{key:"preventDefault",value:function(){this.defaultPrevented=!0}}]),u}(_0);function jw(a){var p=HP();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function HP(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var d7=function(a){(0,ht.Z)(u,a);var p=jw(u);function u(c,l,g){var T;return(0,bt.Z)(this,u),T=p.call(this,c,{originalEvent:g}),T.defaultPrevented=!1,T}return(0,Ue.Z)(u,[{key:"preventDefault",value:function(){this.defaultPrevented=!0}}]),u}(_0),VI=function(){function a(p){(0,bt.Z)(this,a),this.map=p}return(0,Ue.Z)(a,[{key:"reset",value:function(){this.delayContextMenu=!1,delete this.contextMenuEvent}},{key:"mousemove",value:function(u){this.map.emit(u.type,new $w(u.type,this.map,u))}},{key:"mousedown",value:function(){this.delayContextMenu=!0}},{key:"mouseup",value:function(){this.delayContextMenu=!1,this.contextMenuEvent&&(this.map.emit("contextmenu",new $w("contextmenu",this.map,this.contextMenuEvent)),delete this.contextMenuEvent)}},{key:"contextmenu",value:function(u){this.delayContextMenu?this.contextMenuEvent=u:this.map.emit(u.type,new $w(u.type,this.map,u)),this.map.listeners("contextmenu")&&u.preventDefault()}},{key:"isEnabled",value:function(){return!0}},{key:"isActive",value:function(){return!1}},{key:"enable",value:function(){return!0}},{key:"disable",value:function(){return!1}}]),a}(),zV=function(){function a(p,u){(0,bt.Z)(this,a),this.map=p,this.el=p.getCanvasContainer(),this.container=p.getContainer(),this.clickTolerance=u.clickTolerance||1}return(0,Ue.Z)(a,[{key:"isEnabled",value:function(){return!!this.enabled}},{key:"isActive",value:function(){return!!this.active}},{key:"enable",value:function(){this.isEnabled()||(this.enabled=!0)}},{key:"disable",value:function(){this.isEnabled()&&(this.enabled=!1)}},{key:"mousedown",value:function(u,c){this.isEnabled()&&u.shiftKey&&u.button===0&&(Ly.disableDrag(),this.startPos=this.lastPos=c,this.active=!0)}},{key:"mousemoveWindow",value:function(u,c){if(this.active){var l=c;if(!(this.lastPos.equals(l)||!this.box&&l.dist(this.startPos)=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(te){throw te},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var te=u.next();return g=te.done,te},e:function(te){T=!0,B=te},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function UV(a,p){if(a){if(typeof a=="string")return Z5(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return Z5(a,p)}}function Z5(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);u0&&c-u[0].time>l;)u.shift()}},{key:"onMoveEnd",value:function(u){if(this.drainInertiaBuffer(),!(this.inertiaBuffer.length<2)){var c={zoom:0,bearing:0,pitch:0,pan:new $m(0,0),pinchAround:void 0,around:void 0},l=VV(this.inertiaBuffer),g;try{for(l.s();!(g=l.n()).done;){var T=g.value.settings;c.zoom+=T.zoomDelta||0,c.bearing+=T.bearingDelta||0,c.pitch+=T.pitchDelta||0,T.panDelta&&c.pan._add(T.panDelta),T.around&&(c.around=T.around),T.pinchAround&&(c.pinchAround=T.pinchAround)}}catch(kn){l.e(kn)}finally{l.f()}var B=this.inertiaBuffer[this.inertiaBuffer.length-1],G=B.time-this.inertiaBuffer[0].time,te={};if(c.pan.mag()){var Me=GP(c.pan.mag(),G,XE({},HV,u||{}));te.offset=c.pan.mult(Me.amount/c.pan.mag()),te.center=this.map.transform.center,GI(te,Me)}if(c.zoom){var Ge=GP(c.zoom,G,ZV);te.zoom=this.map.transform.zoom+Ge.amount,GI(te,Ge)}if(c.bearing){var St=GP(c.bearing,G,ZI);te.bearing=this.map.transform.bearing+Fw(St.amount,-179,179),GI(te,St)}if(c.pitch){var Mt=GP(c.pitch,G,GV);te.pitch=this.map.transform.pitch+Mt.amount,GI(te,Mt)}if(te.zoom||te.bearing){var In=c.pinchAround===void 0?c.around:c.pinchAround;te.around=In?this.map.unproject(In):this.map.getCenter()}return this.clear(),XE(te,{noMoveStart:!0})}}}]),a}();function GI(a,p){(!a.duration||a.duration=this.clickTolerance||this.map.emit(u.type,new $w(u.type,this.map,u))}},{key:"dblclick",value:function(u){return this.firePreventable(new $w(u.type,this.map,u))}},{key:"mouseover",value:function(u){this.map.emit(u.type,new $w(u.type,this.map,u))}},{key:"mouseout",value:function(u){this.map.emit(u.type,new $w(u.type,this.map,u))}},{key:"touchstart",value:function(u){return this.firePreventable(new UP(u.type,this.map,u))}},{key:"touchmove",value:function(u){this.map.emit(u.type,new UP(u.type,this.map,u))}},{key:"touchend",value:function(u){this.map.emit(u.type,new UP(u.type,this.map,u))}},{key:"touchcancel",value:function(u){this.map.emit(u.type,new UP(u.type,this.map,u))}},{key:"firePreventable",value:function(u){if(this.map.emit(u.type,u),u.defaultPrevented)return{}}},{key:"isEnabled",value:function(){return!0}},{key:"isActive",value:function(){return!1}},{key:"enable",value:function(){return!1}},{key:"disable",value:function(){return!1}}]),a}(),KI,KP=0,Q2=2,wA=(KI={},(0,bn.Z)(KI,KP,1),(0,bn.Z)(KI,Q2,2),KI);function f7(a,p){var u=wA[p];return a.buttons===void 0||(a.buttons&u)!==u}var Yb=function(){function a(p){(0,bt.Z)(this,a),this.reset(),this.clickTolerance=p.clickTolerance||1}return(0,Ue.Z)(a,[{key:"reset",value:function(){this.active=!1,this.moved=!1,delete this.lastPoint,delete this.eventButton}},{key:"mousedown",value:function(u,c){if(!this.lastPoint){var l=Ly.mouseButton(u);this.correctButton(u,l)&&(this.lastPoint=c,this.eventButton=l)}}},{key:"mousemoveWindow",value:function(u,c){var l=this.lastPoint;if(l){if(u.preventDefault(),f7(u,this.eventButton)){this.reset();return}if(!(!this.moved&&c.dist(l)p7?c.wheelZoomRate:c.defaultZoomRate,T=eU/(1+Math.exp(-Math.abs(c.delta*g)));c.delta<0&&T!==0&&(T=1/T);var B=typeof c.targetZoom=="number"?l.zoomScale(c.targetZoom):l.scale;c.targetZoom=Math.min(l.maxZoom,Math.max(l.minZoom,l.scaleZoom(B*T))),c.type==="wheel"&&(c.startZoom=l.zoom,c.easing=c.smoothOutEasing(200)),c.delta=0}var G=typeof c.targetZoom=="number"?c.targetZoom:l.zoom,te=c.startZoom,Me=c.easing,Ge=!1,St;if(c.type==="wheel"&&te&&Me){var Mt=Math.min((q2()-c.lastWheelEventTime)/200,1),In=Me(Mt);St=Kb(te,G,In),Mt<1?c.frameId||(c.frameId=!0):Ge=!0}else St=G,Ge=!0;return c.active=!0,Ge&&(c.active=!1,c.finishTimeout=setTimeout(function(){c.zooming=!1,c.handler.triggerRenderFrame(),delete c.targetZoom,delete c.finishTimeout},200)),{noInertia:!0,needsRenderFrame:!Ge,zoomDelta:St-l.zoom,around:c.aroundPoint,originalEvent:c.lastWheelEvent}}}),this.map=p,this.el=p.getCanvasContainer(),this.handler=u,this.delta=0,this.defaultZoomRate=q5,this.wheelZoomRate=YI}return(0,Ue.Z)(a,[{key:"setZoomRate",value:function(u){this.defaultZoomRate=u}},{key:"setWheelZoomRate",value:function(u){this.wheelZoomRate=u}},{key:"isEnabled",value:function(){return!!this.enabled}},{key:"isActive",value:function(){return!!this.active||this.finishTimeout!==void 0}},{key:"isZooming",value:function(){return!!this.zooming}},{key:"enable",value:function(u){this.isEnabled()||(this.enabled=!0,this.aroundCenter=u&&u.around==="center")}},{key:"disable",value:function(){this.isEnabled()&&(this.enabled=!1)}},{key:"wheel",value:function(u){if(this.isEnabled()){var c=u.deltaMode===window.WheelEvent.DOM_DELTA_LINE?u.deltaY*40:u.deltaY,l=q2(),g=l-(this.lastWheelEventTime||0);this.lastWheelEventTime=l,c!==0&&c%p7===0?this.type="wheel":c!==0&&Math.abs(c)<4?this.type="trackpad":g>400?(this.type=null,this.lastValue=c,this.timeout=setTimeout(this.onTimeout,40,u)):this.type||(this.type=Math.abs(g*c)<200?"trackpad":"wheel",this.timeout&&(clearTimeout(this.timeout),this.timeout=null,c+=this.lastValue)),u.shiftKey&&c&&(c=c/4),this.type&&(this.lastWheelEvent=u,this.delta-=c,this.active||this.start(u)),u.preventDefault()}}},{key:"renderFrame",value:function(){return this.onScrollFrame()}},{key:"reset",value:function(){this.active=!1}},{key:"onTimeout",value:function(u){this.type="wheel",this.delta-=this.lastValue,!this.active&&this.start&&this.start(u)}},{key:"start",value:function(u){if(this.delta){this.frameId&&(this.frameId=null),this.active=!0,this.isZooming()||(this.zooming=!0),this.finishTimeout&&(clearTimeout(this.finishTimeout),delete this.finishTimeout);var c=Ly.mousePos(this.el,u);this.around=F0.convert(this.aroundCenter?this.map.getCenter():this.map.unproject(c)),this.aroundPoint=this.map.transform.locationPoint(this.around),this.frameId||(this.frameId=!0,this.handler.triggerRenderFrame())}}},{key:"smoothOutEasing",value:function(u){var c=BI;if(this.prevEase){var l=this.prevEase,g=(q2()-l.start)/l.duration,T=l.easing(g+.01)-l.easing(g),B=.27/Math.sqrt(T*T+1e-4)*.01,G=Math.sqrt(.27*.27-B*B);c=$5(B,G,.25,1)}return this.prevEase={start:q2(),duration:u,easing:c},c}}]),a}(),tU=qI,nU=function(){function a(p,u){(0,bt.Z)(this,a),this.clickZoom=p,this.tapZoom=u}return(0,Ue.Z)(a,[{key:"enable",value:function(){this.clickZoom.enable(),this.tapZoom.enable()}},{key:"disable",value:function(){this.clickZoom.disable(),this.tapZoom.disable()}},{key:"isEnabled",value:function(){return this.clickZoom.isEnabled()&&this.tapZoom.isEnabled()}},{key:"isActive",value:function(){return this.clickZoom.isActive()||this.tapZoom.isActive()}}]),a}(),v_=function(){function a(p,u,c){(0,bt.Z)(this,a),this.el=p,this.mousePan=u,this.touchPan=c}return(0,Ue.Z)(a,[{key:"enable",value:function(u){this.inertiaOptions=u||{},this.mousePan.enable(),this.touchPan.enable(),this.el.classList.add("l7-touch-drag-pan")}},{key:"disable",value:function(){this.mousePan.disable(),this.touchPan.disable(),this.el.classList.remove("l7-touch-drag-pan")}},{key:"isEnabled",value:function(){return this.mousePan.isEnabled()&&this.touchPan.isEnabled()}},{key:"isActive",value:function(){return this.mousePan.isActive()||this.touchPan.isActive()}}]),a}(),qX=function(){function a(p,u,c){(0,bt.Z)(this,a),this.pitchWithRotate=p.pitchWithRotate,this.mouseRotate=u,this.mousePitch=c}return(0,Ue.Z)(a,[{key:"enable",value:function(){this.mouseRotate.enable(),this.pitchWithRotate&&this.mousePitch.enable()}},{key:"disable",value:function(){this.mouseRotate.disable(),this.mousePitch.disable()}},{key:"isEnabled",value:function(){return this.mouseRotate.isEnabled()&&(!this.pitchWithRotate||this.mousePitch.isEnabled())}},{key:"isActive",value:function(){return this.mouseRotate.isActive()||this.mousePitch.isActive()}}]),a}(),rU=function(){function a(p,u,c,l){(0,bt.Z)(this,a),this.el=p,this.touchZoom=u,this.touchRotate=c,this.tapDragZoom=l,this.rotationDisabled=!1,this.enabled=!0}return(0,Ue.Z)(a,[{key:"enable",value:function(u){this.touchZoom.enable(u),this.rotationDisabled||this.touchRotate.enable(u),this.tapDragZoom.enable(),this.el.classList.add("l7-touch-zoom-rotate")}},{key:"disable",value:function(){this.touchZoom.disable(),this.touchRotate.disable(),this.tapDragZoom.disable(),this.el.classList.remove("l7-touch-zoom-rotate")}},{key:"isEnabled",value:function(){return this.touchZoom.isEnabled()&&(this.rotationDisabled||this.touchRotate.isEnabled())&&this.tapDragZoom.isEnabled()}},{key:"isActive",value:function(){return this.touchZoom.isActive()||this.touchRotate.isActive()||this.tapDragZoom.isActive()}},{key:"disableRotation",value:function(){this.rotationDisabled=!0,this.touchRotate.disable()}},{key:"enableRotation",value:function(){this.rotationDisabled=!1,this.touchZoom.isEnabled()&&this.touchRotate.enable()}}]),a}();function XP(a,p){for(var u={},c=0;c=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(te){throw te},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var te=u.next();return g=te.done,te},e:function(te){T=!0,B=te},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function J5(a,p){if(a){if(typeof a=="string")return g7(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return g7(a,p)}}function g7(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);uthis.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=u.timeStamp),l.length===this.numTouches&&(this.centroid=iU(c),this.touches=XP(l,c)))}},{key:"touchmove",value:function(u,c,l){if(!(this.aborted||!this.centroid)){var g=XP(l,c);for(var T in this.touches)if(this.touches[T]){var B=this.touches[T],G=g[T];(!G||G.dist(B)>JI)&&(this.aborted=!0)}}}},{key:"touchend",value:function(u,c,l){if((!this.centroid||u.timeStamp-this.startTime>eR)&&(this.aborted=!0),l.length===0){var g=!this.aborted&&this.centroid;if(this.reset(),g)return g}}}]),a}(),QI=function(){function a(p){(0,bt.Z)(this,a),this.singleTap=new qP(p),this.numTaps=p.numTaps,this.reset()}return(0,Ue.Z)(a,[{key:"reset",value:function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}},{key:"touchstart",value:function(u,c,l){this.singleTap.touchstart(u,c,l)}},{key:"touchmove",value:function(u,c,l){this.singleTap.touchmove(u,c,l)}},{key:"touchend",value:function(u,c,l){var g=this.singleTap.touchend(u,c,l);if(g){var T=u.timeStamp-this.lastTimeQ5&&this.reset(),this.tapTime?l.length>0&&(this.swipePoint=c[0],this.swipeTouch=l[0].identifier):this.tap.touchstart(u,c,l))}},{key:"touchmove",value:function(u,c,l){if(!this.tapTime)this.tap.touchmove(u,c,l);else if(this.swipePoint){if(l[0].identifier!==this.swipeTouch)return;var g=c[0],T=g.y-this.swipePoint.y;return this.swipePoint=g,u.preventDefault(),this.active=!0,{zoomDelta:T/128}}}},{key:"touchend",value:function(u,c,l){if(this.tapTime)this.swipePoint&&l.length===0&&this.reset();else{var g=this.tap.touchend(u,c,l);g&&(this.tapTime=u.timeStamp)}}},{key:"touchcancel",value:function(){this.reset()}},{key:"enable",value:function(){this.enabled=!0}},{key:"disable",value:function(){this.enabled=!1,this.reset()}},{key:"isEnabled",value:function(){return this.enabled}},{key:"isActive",value:function(){return this.active}}]),a}(),v7=function(){function a(){(0,bt.Z)(this,a),this.zoomIn=new QI({numTouches:1,numTaps:2}),this.zoomOut=new QI({numTouches:2,numTaps:1}),this.reset()}return(0,Ue.Z)(a,[{key:"reset",value:function(){this.active=!1,this.zoomIn.reset(),this.zoomOut.reset()}},{key:"touchstart",value:function(u,c,l){this.zoomIn.touchstart(u,c,l),this.zoomOut.touchstart(u,c,l)}},{key:"touchmove",value:function(u,c,l){this.zoomIn.touchmove(u,c,l),this.zoomOut.touchmove(u,c,l)}},{key:"touchend",value:function(u,c,l){var g=this,T=this.zoomIn.touchend(u,c,l),B=this.zoomOut.touchend(u,c,l);if(T)return this.active=!0,u.preventDefault(),setTimeout(function(){return g.reset()},0),{cameraAnimation:function(te){return te.easeTo({duration:300,zoom:te.getZoom()+1,around:te.unproject(T)},{originalEvent:u})}};if(B)return this.active=!0,u.preventDefault(),setTimeout(function(){return g.reset()},0),{cameraAnimation:function(te){return te.easeTo({duration:300,zoom:te.getZoom()-1,around:te.unproject(B)},{originalEvent:u})}}}},{key:"touchcancel",value:function(){this.reset()}},{key:"enable",value:function(){this.enabled=!0}},{key:"disable",value:function(){this.enabled=!1,this.reset()}},{key:"isEnabled",value:function(){return this.enabled}},{key:"isActive",value:function(){return this.active}}]),a}(),oU=function(){function a(p){(0,bt.Z)(this,a),this.minTouches=1,this.clickTolerance=p.clickTolerance||1,this.reset()}return(0,Ue.Z)(a,[{key:"reset",value:function(){this.active=!1,this.touches={},this.sum=new $m(0,0)}},{key:"touchstart",value:function(u,c,l){return this.calculateTransform(u,c,l)}},{key:"touchmove",value:function(u,c,l){if(this.active)return u.preventDefault(),this.calculateTransform(u,c,l)}},{key:"touchend",value:function(u,c,l){this.calculateTransform(u,c,l),this.active&&l.length0&&(this.active=!0);var g=XP(l,c),T=new $m(0,0),B=new $m(0,0),G=0;for(var te in g)if(g[te]){var Me=g[te],Ge=this.touches[te];Ge&&(T._add(Me),B._add(Me.sub(Ge)),G++,g[te]=Me)}if(this.touches=g,!(GMath.abs(a.x)}var aU=100,lU=function(a){(0,ht.Z)(u,a);var p=nR(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,Ue.Z)(u,[{key:"reset",value:function(){La((0,mt.Z)(u.prototype),"reset",this).call(this),this.valid=void 0,delete this.firstMove,delete this.lastPoints}},{key:"start",value:function(l){this.lastPoints=l,rR(l[0].sub(l[1]))&&(this.valid=!1)}},{key:"move",value:function(l,g,T){var B=l[0].sub(this.lastPoints[0]),G=l[1].sub(this.lastPoints[1]);if(this.valid=this.gestureBeginsVertically(B,G,T.timeStamp),!!this.valid){this.lastPoints=l,this.active=!0;var te=(B.y+G.y)/2,Me=-.5;return{pitchDelta:te*Me}}}},{key:"gestureBeginsVertically",value:function(l,g,T){if(this.valid!==void 0)return this.valid;var B=2,G=l.mag()>=B,te=g.mag()>=B;if(!(!G&&!te)){if(!G||!te)return this.firstMove===void 0&&(this.firstMove=T),T-this.firstMove0==g.y>0;return rR(l)&&rR(g)&&Me}}}]),u}(tR);function iR(a){var p=y7();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function y7(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var uU=25;function oR(a,p){return a.angleWith(p)*180/Math.PI}var eS=function(a){(0,ht.Z)(u,a);var p=iR(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,Ue.Z)(u,[{key:"reset",value:function(){La((0,mt.Z)(u.prototype),"reset",this).call(this),delete this.minDiameter,delete this.startVector,delete this.vector}},{key:"start",value:function(l){this.startVector=this.vector=l[0].sub(l[1]),this.minDiameter=l[0].dist(l[1])}},{key:"move",value:function(l,g){var T=this.vector;if(this.vector=l[0].sub(l[1]),!(!this.active&&this.isBelowThreshold(this.vector)))return this.active=!0,{bearingDelta:oR(this.vector,T),pinchAround:g}}},{key:"isBelowThreshold",value:function(l){this.minDiameter=Math.min(this.minDiameter,l.mag());var g=Math.PI*this.minDiameter,T=uU/g*360,B=oR(l,this.startVector);return Math.abs(B)=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(te){throw te},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var te=u.next();return g=te.done,te},e:function(te){T=!0,B=te},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function _7(a,p){if(a){if(typeof a=="string")return b7(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return b7(a,p)}}function b7(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);ucR}).reduce(function(G,te){return G+(te-cR)/cR},0),B=T/(c+T)*100;return{loadTime:p,fullLoadTime:u,fps:g,percentDroppedFrames:B}}};function fU(a,p){var u=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!u){if(Array.isArray(a)||(u=nk(a))||p&&a&&typeof a.length=="number"){u&&(a=u);var c=0,l=function(){};return{s:l,n:function(){return c>=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(te){throw te},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var te=u.next();return g=te.done,te},e:function(te){T=!0,B=te},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function nk(a,p){if(a){if(typeof a=="string")return pU(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return pU(a,p)}}function pU(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);u0&&arguments[0]!==void 0?arguments[0]:0,c=this.currentlyRunning=this.queue;this.queue=[];var l=fU(c),g;try{for(l.s();!(g=l.n()).done;){var T=g.value;if(!T.cancelled&&(T.callback(u),this.cleared))break}}catch(B){l.e(B)}finally{l.f()}this.cleared=!1,this.currentlyRunning=!1}},{key:"clear",value:function(){this.currentlyRunning&&(this.cleared=!0),this.queue=[]}}]),a}(),gU=JX;function QX(a){var p=eY();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function eY(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}function x7(a,p){var u=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,c=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(u||c)&&(p||(p=document),!!p)){var l=p.head||p.getElementsByTagName("head")[0];if(!l){l=p.createElement("head");var g=p.body||p.getElementsByTagName("body")[0];g?g.parentNode.insertBefore(l,g):p.documentElement.appendChild(l)}var T=p.createElement("style");return T.type="text/css",T.styleSheet?T.styleSheet.cssText=a:T.appendChild(p.createTextNode(a)),l.appendChild(T),T}}x7(`.l7-map { +`);var HF=[108.92361,34.54083];window.forceWebGL=!0;var ZF="f59bcf249433f8b05caaee19f349b3d7",BP="2.0",GF=!1,zX=null,Zw=(S5=(0,ws.b2)(),S5(FP=function(a){(0,dt.Z)(u,a);var p=E5(u);function u(){var c;(0,wt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;Tg.getLng()||B.lng3&&arguments[3]!==void 0?arguments[3]:[1,1,1],Z=this.map.customCoords.lngLatToCoord(l),ee=nn();return Kl(ee,ee,$g(Z[0],Z[1],g)),rl(ee,ee,$g(B[0],B[1],B[2])),pu(ee,ee,T[0]),ic(ee,ee,T[1]),od(ee,ee,T[2]),ee}},{key:"init",value:function(){var c=(0,Pa.Z)(Qi().mark(function g(){var T,B,Z,ee,Pe,Ze,St,Mt,Tn,kn,vr,wi,zo,$o,Ks,ra,La,vl,Wl,Jl,ju,Ku;return Qi().wrap(function(gd){for(;;)switch(gd.prev=gd.next){case 0:if(T=this.config,B=T.id,Z=T.style,ee=Z===void 0?"light":Z,Pe=T.minZoom,Ze=Pe===void 0?0:Pe,St=T.maxZoom,Mt=St===void 0?18:St,Tn=T.token,kn=Tn===void 0?ZF:Tn,vr=T.mapInstance,wi=T.plugin,zo=wi===void 0?[]:wi,$o=T.version,Ks=$o===void 0?BP:$o,ra=(0,Ug.Z)(T,w5),this.viewport=new UF,window.AMap||vr){gd.next=6;break}return zo.push("Map3D"),gd.next=6,EP().load({key:kn,version:BP,plugins:zo});case 6:vr?(this.map=vr,this.$mapContainer=this.map.getContainer(),vl=this.map.getCenter(),(La=this.map.customCoords)===null||La===void 0||La.setCenter([vl.lng,vl.lat]),this.setCustomCoordCenter([vl.lng,vl.lat]),this.map.on("viewchange",this.handleViewChanged)):(this.$mapContainer=this.creatMapContainer(B),Jl=(0,xe.Z)({mapStyle:this.getMapStyleValue(ee),zooms:[Ze,Mt],viewMode:"3D"},ra),Jl.zoom&&(Jl.zoom+=1),kn===ZF&&console.warn("%c".concat(this.configService.getSceneWarninfo("MapToken"),"!"),"color: #873bf4;font-weigh:900;font-size: 16px;"),ju=new AMap.Map(this.$mapContainer,Jl),this.map=ju,Ku=ju.getCenter(),(Wl=this.map.customCoords)===null||Wl===void 0||Wl.setCenter([Ku.lng,Ku.lat]),this.setCustomCoordCenter([Ku.lng,Ku.lat]),ju.on("viewchange",this.handleViewChanged)),this.initViewPort();case 8:case"end":return gd.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"getMapContainer",value:function(){return this.$mapContainer}},{key:"onCameraChanged",value:function(l){this.cameraChangedCallback=l}},{key:"initViewPort",value:function(){var l,g=(l=this.map.customCoords)===null||l===void 0?void 0:l.getCameraParams(),T=g.fov,B=g.near,Z=g.far,ee=g.aspect,Pe=g.position,Ze=g.lookAt,St=g.up;this.emit("mapchange");var Mt=this.map.customCoords.getCenter(),Tn=this.map.getZoom();this.cameraChangedCallback&&(this.viewport.syncWithMapCamera({aspect:ee,far:Z,fov:T,cameraPosition:Pe,lookAt:Ze,near:B,up:St,zoom:Tn-1,center:Mt,offsetOrigin:[Pe[0],Pe[1]]}),this.coordinateSystemService.setCoordinateSystem(Qd.P20_2),this.cameraChangedCallback(this.viewport))}},{key:"_sub",value:function(l,g){var T=[0,0];return T[0]=l[0]-g[0],T[1]=l[1]-g[1],T}}]),u}(BF))||FP);function EV(a){var p=TV();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function TV(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var KF=function(a){(0,dt.Z)(u,a);var p=EV(u);function u(){return(0,wt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"getServiceConstructor",value:function(){return Zw}}]),u}(WC),bA={light:"mapbox://styles/zcxduo/ck2ypyb1r3q9o1co1766dex29",dark:"mapbox://styles/zcxduo/ck241p6413s0b1cpayzldv7x7",normal:"mapbox://styles/mapbox/streets-v11",blank:{version:8,sources:{},layers:[{id:"background",type:"background",layout:{visibility:"none"}}]}},D5,XF,YF,qF,JF,QF,xA,zP,e7,t7,n7,r7={mapmove:"move",camerachange:"move",zoomchange:"zoom",dragging:"drag"},Gw=12,Zx=(D5=(0,ws.b2)(),XF=(0,ws.f3)(gr.MapConfig),YF=(0,ws.f3)(gr.IGlobalConfigService),qF=(0,ws.f3)(gr.ICoordinateSystemService),JF=(0,ws.f3)(gr.IEventEmitter),D5(QF=(xA=function(){function a(){var p=this;(0,wt.Z)(this,a),(0,bn.Z)(this,"version",d0.DEFUALT),(0,bn.Z)(this,"simpleMapCoord",new TP),(0,bn.Z)(this,"bgColor","rgba(0.0, 0.0, 0.0, 0.0)"),Fd(this,"config",zP,this),Fd(this,"configService",e7,this),Fd(this,"coordinateSystemService",t7,this),Fd(this,"eventEmitter",n7,this),(0,bn.Z)(this,"handleCameraChanged",function(u){var c=p.map.getCenter(),l=c.lat,g=c.lng;p.emit("mapchange"),p.viewport.syncWithMapCamera({bearing:p.map.getBearing(),center:[g,l],viewportHeight:p.map.transform.height,pitch:p.map.getPitch(),viewportWidth:p.map.transform.width,zoom:p.map.getZoom(),cameraHeight:0}),p.updateCoordinateSystemService(),p.cameraChangedCallback(p.viewport)})}return(0,He.Z)(a,[{key:"setBgColor",value:function(u){this.bgColor=u}},{key:"addMarkerContainer",value:function(){var u=this.map.getCanvasContainer();this.markerContainer=qi("div","l7-marker-container",u),this.markerContainer.setAttribute("tabindex","-1")}},{key:"getMarkerContainer",value:function(){return this.markerContainer}},{key:"getOverlayContainer",value:function(){}},{key:"on",value:function(u,c){yC.indexOf(u)!==-1?this.eventEmitter.on(u,c):this.map.on(r7[u]||u,c)}},{key:"off",value:function(u,c){this.map.off(r7[u]||u,c),this.eventEmitter.off(u,c)}},{key:"getContainer",value:function(){return this.map.getContainer()}},{key:"getMapCanvasContainer",value:function(){return this.map.getCanvasContainer()}},{key:"getSize",value:function(){if(this.version===d0.SIMPLE)return this.simpleMapCoord.getSize();var u=this.map.transform;return[u.width,u.height]}},{key:"getType",value:function(){return"default"}},{key:"getZoom",value:function(){return this.map.getZoom()}},{key:"setZoom",value:function(u){return this.map.setZoom(u)}},{key:"getCenter",value:function(){return this.map.getCenter()}},{key:"setCenter",value:function(u){this.map.setCenter(u)}},{key:"getPitch",value:function(){return this.map.getPitch()}},{key:"getRotation",value:function(){return this.map.getBearing()}},{key:"getBounds",value:function(){return this.map.getBounds().toArray()}},{key:"getMinZoom",value:function(){return this.map.getMinZoom()}},{key:"getMaxZoom",value:function(){return this.map.getMaxZoom()}},{key:"setRotation",value:function(u){this.map.setBearing(u)}},{key:"zoomIn",value:function(u,c){this.map.zoomIn(u,c)}},{key:"zoomOut",value:function(u,c){this.map.zoomOut(u,c)}},{key:"setPitch",value:function(u){return this.map.setPitch(u)}},{key:"panTo",value:function(u){this.map.panTo(u)}},{key:"panBy",value:function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.map.panBy([u,c])}},{key:"fitBounds",value:function(u,c){this.map.fitBounds(u,c)}},{key:"setMaxZoom",value:function(u){this.map.setMaxZoom(u)}},{key:"setMinZoom",value:function(u){this.map.setMinZoom(u)}},{key:"setMapStatus",value:function(u){u.doubleClickZoom===!0&&this.map.doubleClickZoom.enable(),u.doubleClickZoom===!1&&this.map.doubleClickZoom.disable(),u.dragEnable===!1&&this.map.dragPan.disable(),u.dragEnable===!0&&this.map.dragPan.enable(),u.rotateEnable===!1&&this.map.dragRotate.disable(),u.dragEnable===!0&&this.map.dragRotate.enable(),u.keyboardEnable===!1&&this.map.keyboard.disable(),u.keyboardEnable===!0&&this.map.keyboard.enable(),u.zoomEnable===!1&&this.map.scrollZoom.disable(),u.zoomEnable===!0&&this.map.scrollZoom.enable()}},{key:"setZoomAndCenter",value:function(u,c){this.map.flyTo({zoom:u,center:c})}},{key:"setMapStyle",value:function(u){this.map.setStyle(this.getMapStyleValue(u))}},{key:"meterToCoord",value:function(u,c){return 1}},{key:"pixelToLngLat",value:function(u){return this.map.unproject(u)}},{key:"lngLatToPixel",value:function(u){return this.map.project(u)}},{key:"containerToLngLat",value:function(u){return this.map.unproject(u)}},{key:"lngLatToContainer",value:function(u){return this.map.project(u)}},{key:"getMapStyle",value:function(){try{var u,c=(u=this.map.getStyle().sprite)!==null&&u!==void 0?u:"";return/^mapbox:\/\/sprites\/zcxduo\/\w+\/\w+$/.test(c)?c==null?void 0:c.replace(/\/\w+$/,"").replace(/sprites/,"styles"):c}catch(l){return""}}},{key:"getMapStyleConfig",value:function(){return bA}},{key:"getMapStyleValue",value:function(u){var c;return(c=this.getMapStyleConfig()[u])!==null&&c!==void 0?c:u}},{key:"destroy",value:function(){this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(u){for(var c,l=arguments.length,g=new Array(l>1?l-1:0),T=1;T1?l-1:0),T=1;TGw&&c?this.coordinateSystemService.setCoordinateSystem(Qd.LNGLAT_OFFSET):this.coordinateSystemService.setCoordinateSystem(Qd.LNGLAT)}}]),a}(),zP=$h(xA.prototype,"config",[XF],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),e7=$h(xA.prototype,"configService",[YF],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),t7=$h(xA.prototype,"coordinateSystemService",[qF],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n7=$h(xA.prototype,"eventEmitter",[JF],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),xA))||QF);function CA(a){var p=DV();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function DV(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var WI={mapmove:"moving",camerachange:"resize",zoomchange:"zoomend",dragging:"dragging"},AV=function(a){(0,dt.Z)(u,a);var p=CA(u);function u(){var c;(0,wt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T3&&arguments[3]!==void 0?arguments[3]:[1,1,1],Z=this.viewport.projectFlat(l),ee=nn();return Kl(ee,ee,$g(Z[0],Z[1],g)),rl(ee,ee,$g(B[0],B[1],B[2])),pu(ee,ee,T[0]),ic(ee,ee,T[1]),od(ee,ee,T[2]),ee}},{key:"getCustomCoordCenter",value:function(){throw new Error("Method not implemented.")}},{key:"exportMap",value:function(l){throw new Error("Method not implemented.")}},{key:"rotateY",value:function(l){throw new Error("Method not implemented.")}}]),u}(Zx);function IV(a){var p=LV();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function LV(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var PV=function(a){(0,dt.Z)(u,a);var p=IV(u);function u(){return(0,wt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"getServiceConstructor",value:function(){return AV}}]),u}(WC),A5=m(58240),I5=m.n(A5);function $P(a,p){var u=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!u){if(Array.isArray(a)||(u=i7(a))||p&&a&&typeof a.length=="number"){u&&(a=u);var c=0,l=function(){};return{s:l,n:function(){return c>=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(ee){throw ee},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var ee=u.next();return g=ee.done,ee},e:function(ee){T=!0,B=ee},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function i7(a,p){if(a){if(typeof a=="string")return P1(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return P1(a,p)}}function P1(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);u1?p-1:0),c=1;c90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}return(0,He.Z)(a,[{key:"wrap",value:function(){return new a(WP(this.lng,-180,180),this.lat)}},{key:"toArray",value:function(){return[this.lng,this.lat]}},{key:"toString",value:function(){return"LngLat(".concat(this.lng,", ").concat(this.lat,")")}},{key:"distanceTo",value:function(u){var c=Math.PI/180,l=this.lat*c,g=u.lat*c,T=Math.sin(l)*Math.sin(g)+Math.cos(l)*Math.cos(g)*Math.cos((u.lng-this.lng)*c),B=UP*Math.acos(Math.min(T,1));return B}}],[{key:"convert",value:function(u){if(u instanceof a)return u;if(Array.isArray(u)&&(u.length===2||u.length===3))return new a(Number(u[0]),Number(u[1]));if(!Array.isArray(u)&&(0,Ro.Z)(u)==="object"&&u!==null){var c="lng"in u?u.lng:u.lon;return new a(Number(c),Number(u.lat))}throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}}]),a}(),UI=function(){function a(p,u){(0,wt.Z)(this,a),p&&(u?this.setSouthWest(p).setNorthEast(u):p.length===4?this.setSouthWest([p[0],p[1]]).setNorthEast([p[2],p[3]]):this.setSouthWest(p[0]).setNorthEast(p[1]))}return(0,He.Z)(a,[{key:"setNorthEast",value:function(u){return this.ne=u instanceof tv?new tv(u.lng,u.lat):tv.convert(u),this}},{key:"setSouthWest",value:function(u){return this.sw=u instanceof tv?new tv(u.lng,u.lat):tv.convert(u),this}},{key:"extend",value:function(u){var c=this.sw,l=this.ne,g,T;if(u instanceof tv)g=u,T=u;else if(u instanceof a){if(g=u.sw,T=u.ne,!g||!T)return this}else{if(Array.isArray(u))if(u.length===4||u.every(Array.isArray)){var B=u;return this.extend(a.convert(B))}else{var Z=u;return this.extend(tv.convert(Z))}return this}return!c&&!l?(this.sw=new tv(g.lng,g.lat),this.ne=new tv(T.lng,T.lat)):(c.lng=Math.min(g.lng,c.lng),c.lat=Math.min(g.lat,c.lat),l.lng=Math.max(T.lng,l.lng),l.lat=Math.max(T.lat,l.lat)),this}},{key:"getCenter",value:function(){return new tv((this.sw.lng+this.ne.lng)/2,(this.sw.lat+this.ne.lat)/2)}},{key:"getSouthWest",value:function(){return this.sw}},{key:"getNorthEast",value:function(){return this.ne}},{key:"getNorthWest",value:function(){return new tv(this.getWest(),this.getNorth())}},{key:"getSouthEast",value:function(){return new tv(this.getEast(),this.getSouth())}},{key:"getWest",value:function(){return this.sw.lng}},{key:"getSouth",value:function(){return this.sw.lat}},{key:"getEast",value:function(){return this.ne.lng}},{key:"getNorth",value:function(){return this.ne.lat}},{key:"toArray",value:function(){return[this.sw.toArray(),this.ne.toArray()]}},{key:"toString",value:function(){return"LngLatBounds(".concat(this.sw.toString(),", ").concat(this.ne.toString(),")")}},{key:"isEmpty",value:function(){return!(this.sw&&this.ne)}},{key:"contains",value:function(u){var c=tv.convert(u),l=c.lng,g=c.lat,T=this.sw.lat<=g&&g<=this.ne.lat,B=this.sw.lng<=l&&l<=this.ne.lng;return this.sw.lng>this.ne.lng&&(B=this.sw.lng>=l&&l>=this.ne.lng),T&&B}}],[{key:"convert",value:function(u){return u instanceof a?u:new a(u)}}]),a}(),Hm=function(){function a(p,u){(0,wt.Z)(this,a),this.x=p,this.y=u}return(0,He.Z)(a,[{key:"clone",value:function(){return new a(this.x,this.y)}},{key:"_add",value:function(u){return this.x+=u.x,this.y+=u.y,this}},{key:"add",value:function(u){return this.clone()._add(u)}},{key:"_sub",value:function(u){return this.x-=u.x,this.y-=u.y,this}},{key:"sub",value:function(u){return this.clone()._sub(u)}},{key:"_multByPoint",value:function(u){return this.x*=u.x,this.y*=u.y,this}},{key:"multByPoint",value:function(u){return this.clone()._multByPoint(u)}},{key:"_divByPoint",value:function(u){return this.x/=u.x,this.y/=u.y,this}},{key:"divByPoint",value:function(u){return this.clone()._divByPoint(u)}},{key:"_mult",value:function(u){return this.x*=u,this.y*=u,this}},{key:"mult",value:function(u){return this.clone()._mult(u)}},{key:"_div",value:function(u){return this.x/=u,this.y/=u,this}},{key:"div",value:function(u){return this.clone()._div(u)}},{key:"_rotate",value:function(u){var c=Math.cos(u),l=Math.sin(u),g=c*this.x-l*this.y,T=l*this.x+c*this.y;return this.x=g,this.y=T,this}},{key:"rotate",value:function(u){return this.clone()._rotate(u)}},{key:"_rotateAround",value:function(u,c){var l=Math.cos(u),g=Math.sin(u),T=c.x+l*(this.x-c.x)-g*(this.y-c.y),B=c.y+g*(this.x-c.x)+l*(this.y-c.y);return this.x=T,this.y=B,this}},{key:"roateAround",value:function(u,c){return this.clone()._rotateAround(u,c)}},{key:"_matMult",value:function(u){var c=u[0]*this.x+u[1]*this.y,l=u[2]*this.x+u[3]*this.y;return this.x=c,this.y=l,this}},{key:"matMult",value:function(u){return this.clone()._matMult(u)}},{key:"_unit",value:function(){return this.div(this.mag()),this}},{key:"unit",value:function(){return this.clone()._unit()}},{key:"_perp",value:function(){var u=this.y;return this.y=this.x,this.x=-u,this}},{key:"perp",value:function(){return this.clone()._perp()}},{key:"_round",value:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},{key:"round",value:function(){return this.clone()._round()}},{key:"mag",value:function(){return Math.sqrt(this.x*this.x+this.y*this.y)}},{key:"equals",value:function(u){return this.x===u.x&&this.y===u.y}},{key:"dist",value:function(u){return Math.sqrt(this.distSqr(u))}},{key:"distSqr",value:function(u){var c=u.x-this.x,l=u.y-this.y;return c*c+l*l}},{key:"angle",value:function(){return Math.atan2(this.y,this.x)}},{key:"angleTo",value:function(u){return Math.atan2(this.y-u.y,this.x-u.x)}},{key:"angleWith",value:function(u){return this.angleWithSep(u.x,u.y)}},{key:"angleWithSep",value:function(u,c){return Math.atan2(this.x*c-this.y*u,this.x*u+this.y*c)}}],[{key:"convert",value:function(u){return u instanceof a?u:Array.isArray(u)?new a(u[0],u[1]):u}}]),a}();function OV(){var a=new Sc(4);return Sc!=Float32Array&&(a[1]=0,a[2]=0),a[0]=1,a[3]=1,a}function s7(a){var p=new glMatrix.ARRAY_TYPE(4);return p[0]=a[0],p[1]=a[1],p[2]=a[2],p[3]=a[3],p}function Qb(a,p){return a[0]=p[0],a[1]=p[1],a[2]=p[2],a[3]=p[3],a}function RV(a){return a[0]=1,a[1]=0,a[2]=0,a[3]=1,a}function $X(a,p,u,c){var l=new glMatrix.ARRAY_TYPE(4);return l[0]=a,l[1]=p,l[2]=u,l[3]=c,l}function WX(a,p,u,c,l){return a[0]=p,a[1]=u,a[2]=c,a[3]=l,a}function jX(a,p){if(a===p){var u=p[1];a[1]=p[2],a[2]=u}else a[0]=p[0],a[1]=p[2],a[2]=p[1],a[3]=p[3];return a}function HI(a,p){var u=p[0],c=p[1],l=p[2],g=p[3],T=u*g-l*c;return T?(T=1/T,a[0]=g*T,a[1]=-c*T,a[2]=-l*T,a[3]=u*T,a):null}function a7(a,p){var u=p[0];return a[0]=p[3],a[1]=-p[1],a[2]=-p[2],a[3]=u,a}function l7(a){return a[0]*a[3]-a[2]*a[1]}function VX(a,p,u){var c=p[0],l=p[1],g=p[2],T=p[3],B=u[0],Z=u[1],ee=u[2],Pe=u[3];return a[0]=c*B+g*Z,a[1]=l*B+T*Z,a[2]=c*ee+g*Pe,a[3]=l*ee+T*Pe,a}function u7(a,p,u){var c=p[0],l=p[1],g=p[2],T=p[3],B=Math.sin(u),Z=Math.cos(u);return a[0]=c*Z+g*B,a[1]=l*Z+T*B,a[2]=c*-B+g*Z,a[3]=l*-B+T*Z,a}function NV(a,p,u){var c=p[0],l=p[1],g=p[2],T=p[3],B=u[0],Z=u[1];return a[0]=c*B,a[1]=l*B,a[2]=g*Z,a[3]=T*Z,a}function FV(a,p){var u=Math.sin(p),c=Math.cos(p);return a[0]=c,a[1]=u,a[2]=-u,a[3]=c,a}function p_(a,p){return a[0]=p[0],a[1]=0,a[2]=0,a[3]=p[1],a}function HP(a){return"mat2("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+")"}function UX(a){return Math.hypot(a[0],a[1],a[2],a[3])}function HX(a,p,u,c){return a[2]=c[2]/c[0],u[0]=c[0],u[1]=c[1],u[3]=c[3]-a[2]*u[1],[a,p,u]}function k5(a,p,u){return a[0]=p[0]+u[0],a[1]=p[1]+u[1],a[2]=p[2]+u[2],a[3]=p[3]+u[3],a}function ZX(a,p,u){return a[0]=p[0]-u[0],a[1]=p[1]-u[1],a[2]=p[2]-u[2],a[3]=p[3]-u[3],a}function BV(a,p){return a[0]===p[0]&&a[1]===p[1]&&a[2]===p[2]&&a[3]===p[3]}function zV(a,p){var u=a[0],c=a[1],l=a[2],g=a[3],T=p[0],B=p[1],Z=p[2],ee=p[3];return Math.abs(u-T)<=glMatrix.EPSILON*Math.max(1,Math.abs(u),Math.abs(T))&&Math.abs(c-B)<=glMatrix.EPSILON*Math.max(1,Math.abs(c),Math.abs(B))&&Math.abs(l-Z)<=glMatrix.EPSILON*Math.max(1,Math.abs(l),Math.abs(Z))&&Math.abs(g-ee)<=glMatrix.EPSILON*Math.max(1,Math.abs(g),Math.abs(ee))}function GX(a,p,u){return a[0]=p[0]*u,a[1]=p[1]*u,a[2]=p[2]*u,a[3]=p[3]*u,a}function KX(a,p,u,c){return a[0]=p[0]+u[0]*c,a[1]=p[1]+u[1]*c,a[2]=p[2]+u[2]*c,a[3]=p[3]+u[3]*c,a}var Cte=null,wte=null,XX=function(){function a(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;if((0,wt.Z)(this,a),isNaN(p)||p<0||isNaN(u)||u<0||isNaN(c)||c<0||isNaN(l)||l<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=p,this.bottom=u,this.left=c,this.right=l}return(0,He.Z)(a,[{key:"interpolate",value:function(u,c,l){return c.top!=null&&u.top!=null&&(this.top=Jb(u.top,c.top,l)),c.bottom!=null&&u.bottom!=null&&(this.bottom=Jb(u.bottom,c.bottom,l)),c.left!=null&&u.left!=null&&(this.left=Jb(u.left,c.left,l)),c.right!=null&&u.right!=null&&(this.right=Jb(u.right,c.right,l)),this}},{key:"getCenter",value:function(u,c){var l=VC((this.left+u-this.right)/2,0,u),g=VC((this.top+c-this.bottom)/2,0,c);return new Hm(l,g)}},{key:"equals",value:function(u){return this.top===u.top&&this.bottom===u.bottom&&this.left===u.left&&this.right===u.right}},{key:"clone",value:function(){return new a(this.top,this.bottom,this.left,this.right)}},{key:"toJSON",value:function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}]),a}(),$V=2*Math.PI*UP;function ZI(a){return $V*Math.cos(a*Math.PI/180)}function M5(a){return(180+a)/360}function O5(a){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+a*Math.PI/360)))/360}function WV(a,p){return a/ZI(p)}function YX(a){return a*360-180}function Gx(a){var p=180-a*360;return 360/Math.PI*Math.atan(Math.exp(p*Math.PI/180))-90}function c7(a,p){return a*ZI(Gx(p))}function d7(a){return 1/Math.cos(a*Math.PI/180)}var wA=function(){function a(p,u){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;(0,wt.Z)(this,a),this.x=+p,this.y=+u,this.z=+c}return(0,He.Z)(a,[{key:"toLngLat",value:function(){return new tv(YX(this.x),Gx(this.y))}},{key:"toAltitude",value:function(){return c7(this.z,this.y)}},{key:"meterInMercatorCoordinateUnits",value:function(){return 1/$V*d7(Gx(this.y))}}],[{key:"fromLngLat",value:function(u){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,l=tv.convert(u);return new a(M5(l.lng),O5(l.lat),WV(c,l.lat))}}]),a}();function jV(a,p){var u=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!u){if(Array.isArray(a)||(u=VV(a))||p&&a&&typeof a.length=="number"){u&&(a=u);var c=0,l=function(){};return{s:l,n:function(){return c>=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(ee){throw ee},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var ee=u.next();return g=ee.done,ee},e:function(ee){T=!0,B=ee},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function VV(a,p){if(a){if(typeof a=="string")return h7(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return h7(a,p)}}function h7(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);uc&&(ee=c-wi)}if(this.lngRange){var zo=Tn.x,$o=Pe.x/2;zo-$og&&(Z=g-$o)}(Z!==void 0||ee!==void 0)&&(this.center=this.unproject(new Hm(Z!==void 0?Z:Tn.x,ee!==void 0?ee:Tn.y))),this.unmodified=Ze,this.constraining=!1}}},{key:"calcMatrices",value:function(){if(this.height){var u=this._fov/2,c=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(u)*this.height;var l=Math.PI/2+this._pitch,g=this._fov*(.5+c.y/this.height),T=Math.sin(g)*this.cameraToCenterDistance/Math.sin(VC(Math.PI-l-g,.01,Math.PI-.01)),B=this.point,Z=B.x,ee=B.y,Pe=Math.cos(Math.PI/2-this._pitch)*T+this.cameraToCenterDistance,Ze=Pe*1.01,St=this.height/50,Mt=new Float64Array(16);hi(Mt,this._fov,this.width/this.height,St,Ze),Mt[8]=-c.x*2/this.width,Mt[9]=c.y*2/this.height,rl(Mt,Mt,[1,-1,1]),Kl(Mt,Mt,[0,0,-this.cameraToCenterDistance]),pu(Mt,Mt,this._pitch),od(Mt,Mt,this.angle),Kl(Mt,Mt,[-Z,-ee,0]),this.mercatorMatrix=rl([],Mt,[this.worldSize,this.worldSize,this.worldSize]),rl(Mt,Mt,[1,1,WV(1,this.center.lat)*this.worldSize,1]),this.projMatrix=Mt,this.invProjMatrix=zu([],this.projMatrix);var Tn=this.width%2/2,kn=this.height%2/2,vr=Math.cos(this.angle),wi=Math.sin(this.angle),zo=Z-Math.round(Z)+vr*Tn+wi*kn,$o=ee-Math.round(ee)+vr*kn+wi*Tn,Ks=new Float64Array(Mt);if(Kl(Ks,Ks,[zo>.5?zo-1:zo,$o>.5?$o-1:$o,0]),this.alignedProjMatrix=Ks,Mt=nn(),rl(Mt,Mt,[this.width/2,-this.height/2,1]),Kl(Mt,Mt,[1,-1,0]),this.labelPlaneMatrix=Mt,Mt=nn(),rl(Mt,Mt,[1,-1,1]),Kl(Mt,Mt,[-1,-1,0]),rl(Mt,Mt,[2/this.width,2/this.height,1]),this.glCoordMatrix=Mt,this.pixelMatrix=Sl(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),Mt=zu(new Float64Array(16),this.pixelMatrix),!Mt)throw new Error("failed to invert matrix");this.pixelMatrixInverse=Mt,this.posMatrixCache={},this.alignedPosMatrixCache={}}}}]),a}(),UV=Ma.merge,_0=(0,He.Z)(function a(p){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,wt.Z)(this,a),UV(this,u),this.type=p});function Kw(a){var p=ZP();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function ZP(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var Kx=Ma.merge,SA=function(a){(0,dt.Z)(u,a);var p=Kw(u);function u(c){var l;(0,wt.Z)(this,u),l=p.call(this),(0,bn.Z)((0,is.Z)(l),"renderFrameCallback",function(){var Pe=Math.min((uS()-l.easeStart)/l.easeOptions.duration,1);l.onEaseFrame(l.easeOptions.easing(Pe)),Pe<1?l.easeFrameId=l.requestRenderFrame(l.renderFrameCallback):l.stop()}),l.options=c;var g=c.minZoom,T=c.maxZoom,B=c.minPitch,Z=c.maxPitch,ee=c.renderWorldCopies;return l.moving=!1,l.zooming=!1,l.bearingSnap=c.bearingSnap,l.pitchEnabled=c.pitchEnabled,l.rotateEnabled=c.rotateEnabled,l.transform=new f7(g,T,B,Z,ee),l}return(0,He.Z)(u,[{key:"requestRenderFrame",value:function(l){return 0}},{key:"cancelRenderFrame",value:function(l){}},{key:"getCenter",value:function(){var l=this.transform.center,g=l.lng,T=l.lat;return new tv(g,T)}},{key:"getZoom",value:function(){return this.transform.zoom}},{key:"getPitch",value:function(){return this.transform.pitch}},{key:"setCenter",value:function(l,g){return this.jumpTo({center:l},g)}},{key:"setPitch",value:function(l,g){return this.jumpTo({pitch:l},g),this}},{key:"getBearing",value:function(){return this.transform.bearing}},{key:"panTo",value:function(l,g,T){return this.easeTo(Kx({center:l},g),T)}},{key:"panBy",value:function(l,g,T){return l=Hm.convert(l).mult(-1),this.panTo(this.transform.center,VP({offset:l},g||{}),T)}},{key:"zoomOut",value:function(l,g){return this.zoomTo(this.getZoom()-1,l,g),this}},{key:"setBearing",value:function(l,g){return this.jumpTo({bearing:l},g),this}},{key:"setZoom",value:function(l,g){return this.jumpTo({zoom:l},g),this}},{key:"zoomIn",value:function(l,g){return this.zoomTo(this.getZoom()+1,l,g),this}},{key:"zoomTo",value:function(l,g,T){return this.easeTo(Kx({zoom:l},g),T)}},{key:"getPadding",value:function(){return this.transform.padding}},{key:"setPadding",value:function(l,g){return this.jumpTo({padding:l},g),this}},{key:"rotateTo",value:function(l,g,T){return this.easeTo(Kx({bearing:l},g),T)}},{key:"resetNorth",value:function(l,g){return this.rotateTo(0,Kx({duration:1e3},l),g),this}},{key:"resetNorthPitch",value:function(l,g){return this.easeTo(Kx({bearing:0,pitch:0,duration:1e3},l),g),this}},{key:"fitBounds",value:function(l,g,T){return this.fitInternal(this.cameraForBounds(l,g),g,T)}},{key:"cameraForBounds",value:function(l,g){return l=UI.convert(l),this.cameraForBoxAndBearing(l.getNorthWest(),l.getSouthEast(),0,g)}},{key:"snapToNorth",value:function(l,g){return Math.abs(this.getBearing())0&&arguments[0]!==void 0?arguments[0]:{},g=arguments.length>1?arguments[1]:void 0;this.stop();var T=this.transform,B=!1,Z=!1,ee=!1;return l.zoom!==void 0&&T.zoom!==+l.zoom&&(B=!0,T.zoom=+l.zoom),l.center!==void 0&&(T.center=tv.convert(l.center)),l.bearing!==void 0&&T.bearing!==+l.bearing&&(Z=!0,T.bearing=+l.bearing),l.pitch!==void 0&&T.pitch!==+l.pitch&&(ee=!0,T.pitch=+l.pitch),l.padding!==void 0&&!T.isPaddingEqual(l.padding)&&(T.padding=l.padding),this.emit("movestart",new _0("movestart",g)),this.emit("move",new _0("move",g)),B&&(this.emit("zoomstart",new _0("zoomstart",g)),this.emit("zoom",new _0("zoom",g)),this.emit("zoomend",new _0("zoomend",g))),Z&&(this.emit("rotatestart",new _0("rotatestart",g)),this.emit("rotate",new _0("rotate",g)),this.emit("rotateend",new _0("rotateend",g))),ee&&(this.emit("pitchstart",new _0("pitchstart",g)),this.emit("pitch",new _0("pitch",g)),this.emit("pitchend",new _0("pitchend",g))),this.emit("moveend",new _0("moveend",g))}},{key:"easeTo",value:function(){var l=this,g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},T=arguments.length>1?arguments[1]:void 0;g=Kx({offset:[0,0],duration:500,easing:P5},g),(g.animate===!1||!g.essential&&o7())&&(g.duration=0);var B=this.transform,Z=this.getZoom(),ee=this.getBearing(),Pe=this.getPitch(),Ze=this.getPadding(),St=g.zoom?+g.zoom:Z,Mt=g.bearing?this.normalizeBearing(g.bearing,ee):ee,Tn=g.pitch?+g.pitch:Pe,kn=g.padding?g.padding:B.padding,vr=Hm.convert(g.offset),wi=B.centerPoint.add(vr),zo=B.pointLocation(wi),$o=tv.convert(g.center||zo);this.normalizeCenter($o);var Ks=B.project(zo),ra=B.project($o).sub(Ks),La=B.zoomScale(St-Z),vl,Wl;g.around&&(vl=tv.convert(g.around),Wl=B.locationPoint(vl));var Jl={moving:this.moving,zooming:this.zooming,rotating:this.rotating,pitching:this.pitching};return this.zooming=this.zooming||St!==Z,this.rotating=this.rotating||ee!==Mt,this.pitching=this.pitching||Tn!==Pe,this.padding=!B.isPaddingEqual(kn),this.easeId=g.easeId,this.prepareEase(T,g.noMoveStart,Jl),clearTimeout(this.easeEndTimeoutID),this.ease(function(ju){if(l.zooming&&(B.zoom=Jb(Z,St,ju)),l.rotating&&l.rotateEnabled&&(B.bearing=Jb(ee,Mt,ju)),l.pitching&&l.pitchEnabled&&(B.pitch=Jb(Pe,Tn,ju)),l.padding&&(B.interpolatePadding(Ze,kn,ju),wi=B.centerPoint.add(vr)),vl)B.setLocationAtPoint(vl,Wl);else{var Ku=B.zoomScale(B.zoom-Z),Jc=St>Z?Math.min(2,La):Math.max(.5,La),gd=Math.pow(Jc,1-ju),Ch=B.unproject(Ks.add(ra.mult(ju*gd)).mult(Ku));B.setLocationAtPoint(B.renderWorldCopies?Ch.wrap():Ch,wi)}l.fireMoveEvents(T)},function(ju){l.afterEase(T,ju)},g),this}},{key:"flyTo",value:function(){var l=this,g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},T=arguments.length>1?arguments[1]:void 0;if(!g.essential&&o7()){var B=jP(g,["center","zoom","bearing","pitch","around"]);return this.jumpTo(B,T)}this.stop(),g=Kx({offset:[0,0],speed:1.2,curve:1.42,easing:P5},g);var Z=this.transform,ee=this.getZoom(),Pe=this.getBearing(),Ze=this.getPitch(),St=this.getPadding(),Mt=g.zoom?VC(+g.zoom,Z.minZoom,Z.maxZoom):ee,Tn=g.bearing?this.normalizeBearing(g.bearing,Pe):Pe,kn=g.pitch?+g.pitch:Ze,vr="padding"in g?g.padding:Z.padding,wi=Z.zoomScale(Mt-ee),zo=Hm.convert(g.offset),$o=Z.centerPoint.add(zo),Ks=Z.pointLocation($o),ra=tv.convert(g.center||Ks);this.normalizeCenter(ra);var La=Z.project(Ks),vl=Z.project(ra).sub(La),Wl=g.curve,Jl=Math.max(Z.width,Z.height),ju=Jl/wi,Ku=vl.mag();if("minZoom"in g){var Jc=VC(Math.min(g.minZoom,ee,Mt),Z.minZoom,Z.maxZoom),gd=Jl/Z.zoomScale(Jc-ee);Wl=Math.sqrt(gd/Ku*2)}var Ch=Wl*Wl;function og(I0){var bp=(ju*ju-Jl*Jl+(I0?-1:1)*Ch*Ch*Ku*Ku)/(2*(I0?ju:Jl)*Ch*Ku);return Math.log(Math.sqrt(bp*bp+1)-bp)}function um(I0){return(Math.exp(I0)-Math.exp(-I0))/2}function Zg(I0){return(Math.exp(I0)+Math.exp(-I0))/2}function Zm(I0){return um(I0)/Zg(I0)}var p0=og(0),nv=function(bp){return Zg(p0)/Zg(p0+Wl*bp)},e2=function(bp){return Jl*((Zg(p0)*Zm(p0+Wl*bp)-um(p0))/Ch)/Ku},Qx=(og(1)-p0)/Wl;if(Math.abs(Ku)<1e-6||!isFinite(Qx)){if(Math.abs(Jl-ju)<1e-6)return this.easeTo(g,T);var yS=jug.maxDuration&&(g.duration=0),this.zooming=!0,this.rotating=Pe!==Tn,this.pitching=kn!==Ze,this.padding=!Z.isPaddingEqual(vr),this.prepareEase(T,!1),this.ease(function(I0){var bp=I0*Qx,eC=1/nv(bp);Z.zoom=I0===1?Mt:ee+Z.scaleZoom(eC),l.rotating&&(Z.bearing=Jb(Pe,Tn,I0)),l.pitching&&(Z.pitch=Jb(Ze,kn,I0)),l.padding&&(Z.interpolatePadding(St,vr,I0),$o=Z.centerPoint.add(zo));var hk=I0===1?ra:Z.unproject(La.add(vl.mult(e2(bp))).mult(eC));Z.setLocationAtPoint(Z.renderWorldCopies?hk.wrap():hk,$o),l.fireMoveEvents(T)},function(){return l.afterEase(T)},g),this}},{key:"fitScreenCoordinates",value:function(l,g,T,B,Z){return this.fitInternal(this.cameraForBoxAndBearing(this.transform.pointLocation(Hm.convert(l)),this.transform.pointLocation(Hm.convert(g)),T,B),B,Z)}},{key:"stop",value:function(l,g){if(this.easeFrameId&&(this.cancelRenderFrame(this.easeFrameId),delete this.easeFrameId,delete this.onEaseFrame),this.onEaseEnd){var T=this.onEaseEnd;delete this.onEaseEnd,T.call(this,g)}return this}},{key:"normalizeBearing",value:function(l,g){l=WP(l,-180,180);var T=Math.abs(l-g);return Math.abs(l-360-g)180?-360:T<-180?360:0}}},{key:"fireMoveEvents",value:function(l){this.emit("move",new _0("move",l)),this.zooming&&this.emit("zoom",new _0("zoom",l)),this.rotating&&this.emit("rotate",new _0("rotate",l)),this.pitching&&this.emit("rotate",new _0("pitch",l))}},{key:"prepareEase",value:function(l){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.moving=!0,!g&&!T.moving&&this.emit("movestart",new _0("movestart",l)),this.zooming&&!T.zooming&&this.emit("zoomstart",new _0("zoomstart",l)),this.rotating&&!T.rotating&&this.emit("rotatestart",new _0("rotatestart",l)),this.pitching&&!T.pitching&&this.emit("pitchstart",new _0("pitchstart",l))}},{key:"afterEase",value:function(l,g){if(!(this.easeId&&g&&this.easeId===g)){delete this.easeId;var T=this.zooming,B=this.rotating,Z=this.pitching;this.moving=!1,this.zooming=!1,this.rotating=!1,this.pitching=!1,this.padding=!1,T&&this.emit("zoomend",new _0("zoomend",l)),B&&this.emit("rotateend",new _0("rotateend",l)),Z&&this.emit("pitchend",new _0("pitchend",l)),this.emit("moveend",new _0("moveend",l))}}},{key:"ease",value:function(l,g,T){T.animate===!1||T.duration===0?(l(1),g()):(this.easeStart=uS(),this.easeOptions=T,this.onEaseFrame=l,this.onEaseEnd=g,this.easeFrameId=this.requestRenderFrame(this.renderFrameCallback))}},{key:"cameraForBoxAndBearing",value:function(l,g,T,B){var Z={top:0,bottom:0,right:0,left:0};if(B=Kx({padding:Z,offset:[0,0],maxZoom:this.transform.maxZoom},B),typeof B.padding=="number"){var ee=B.padding;B.padding={top:ee,bottom:ee,right:ee,left:ee}}B.padding=Kx(Z,B.padding);var Pe=this.transform,Ze=Pe.padding,St=Pe.project(tv.convert(l)),Mt=Pe.project(tv.convert(g)),Tn=St.rotate(-T*Math.PI/180),kn=Mt.rotate(-T*Math.PI/180),vr=new Hm(Math.max(Tn.x,kn.x),Math.max(Tn.y,kn.y)),wi=new Hm(Math.min(Tn.x,kn.x),Math.min(Tn.y,kn.y)),zo=vr.sub(wi),$o=(Pe.width-(Ze.left+Ze.right+B.padding.left+B.padding.right))/zo.x,Ks=(Pe.height-(Ze.top+Ze.bottom+B.padding.top+B.padding.bottom))/zo.y;if(!(Ks<0||$o<0)){var ra=Math.min(Pe.scaleZoom(Pe.scale*Math.min($o,Ks)),B.maxZoom),La=Hm.convert(B.offset),vl=(B.padding.left-B.padding.right)/2,Wl=(B.padding.top-B.padding.bottom)/2,Jl=new Hm(La.x+vl,La.y+Wl),ju=Jl.mult(Pe.scale/Pe.zoomScale(ra)),Ku=Pe.unproject(St.add(Mt).div(2).sub(ju));return{center:Ku,zoom:ra,bearing:T}}}},{key:"fitInternal",value:function(l,g,T){return l?(g=Kx(l,g),delete g.padding,g.linear?this.easeTo(g,T):this.flyTo(g,T)):this}}]),u}(gf.EventEmitter);function p7(a,p){var u=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!u){if(Array.isArray(a)||(u=HV(a))||p&&a&&typeof a.length=="number"){u&&(a=u);var c=0,l=function(){};return{s:l,n:function(){return c>=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(ee){throw ee},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var ee=u.next();return g=ee.done,ee},e:function(ee){T=!0,B=ee},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function HV(a,p){if(a){if(typeof a=="string")return GI(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return GI(a,p)}}function GI(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);u3&&arguments[3]!==void 0?arguments[3]:{};"passive"in c&&XI?a.addEventListener(p,u,c):a.addEventListener(p,u,c.capture)},bb.removeEventListener=function(a,p,u){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};"passive"in c&&XI?a.removeEventListener(p,u,c):a.removeEventListener(p,u,c.capture)};var v7=function a(p){p.preventDefault(),p.stopPropagation(),window.removeEventListener("click",a,!0)};bb.suppressClick=function(){window.addEventListener("click",v7,!0),setTimeout(function(){window.removeEventListener("click",v7,!0)},0)},bb.mousePos=function(a,p){var u=a.getBoundingClientRect();return new Hm(p.clientX-u.left-a.clientLeft,p.clientY-u.top-a.clientTop)},bb.touchPos=function(a,p){var u=a.getBoundingClientRect(),c=[],l=p7(p),g;try{for(l.s();!(g=l.n()).done;){var T=g.value;c.push(new Hm(T.clientX-u.left-a.clientLeft,T.clientY-u.top-a.clientTop))}}catch(B){l.e(B)}finally{l.f()}return c},bb.mouseButton=function(a){return a.button},bb.remove=function(a){a.parentNode&&a.parentNode.removeChild(a)};function YI(a){var p=ZV();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function ZV(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var y7=Ma.merge,UC=function(a){(0,dt.Z)(u,a);var p=YI(u);function u(c,l,g){var T,B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};(0,wt.Z)(this,u);var Z=m1.mousePos(l.getCanvasContainer(),g),ee=l.unproject(Z);return T=p.call(this,c,y7({point:Z,lngLat:ee,originalEvent:g},B)),T.defaultPrevented=!1,T.target=l,T}return(0,He.Z)(u,[{key:"preventDefault",value:function(){this.defaultPrevented=!0}}]),u}(_0);function GV(a){var p=KV();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function KV(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var HC=function(a){(0,dt.Z)(u,a);var p=GV(u);function u(c,l,g){var T;(0,wt.Z)(this,u);var B=c==="touchend"?g.changedTouches:g.touches,Z=m1.touchPos(l.getCanvasContainer(),B),ee=Z.map(function(St){return l.unproject(St)}),Pe=Z.reduce(function(St,Mt,Tn,kn){return St.add(Mt.div(kn.length))},new Hm(0,0)),Ze=l.unproject(Pe);return T=p.call(this,c,{points:Z,point:Pe,lngLats:ee,lngLat:Ze,originalEvent:g}),T.defaultPrevented=!1,T}return(0,He.Z)(u,[{key:"preventDefault",value:function(){this.defaultPrevented=!0}}]),u}(_0);function xb(a){var p=N5();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function N5(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var cS=function(a){(0,dt.Z)(u,a);var p=xb(u);function u(c,l,g){var T;return(0,wt.Z)(this,u),T=p.call(this,c,{originalEvent:g}),T.defaultPrevented=!1,T}return(0,He.Z)(u,[{key:"preventDefault",value:function(){this.defaultPrevented=!0}}]),u}(_0),_7=function(){function a(p){(0,wt.Z)(this,a),this.map=p}return(0,He.Z)(a,[{key:"reset",value:function(){this.delayContextMenu=!1,delete this.contextMenuEvent}},{key:"mousemove",value:function(u){this.map.emit(u.type,new UC(u.type,this.map,u))}},{key:"mousedown",value:function(){this.delayContextMenu=!0}},{key:"mouseup",value:function(){this.delayContextMenu=!1,this.contextMenuEvent&&(this.map.emit("contextmenu",new UC("contextmenu",this.map,this.contextMenuEvent)),delete this.contextMenuEvent)}},{key:"contextmenu",value:function(u){this.delayContextMenu?this.contextMenuEvent=u:this.map.emit(u.type,new UC(u.type,this.map,u)),this.map.listeners("contextmenu")&&u.preventDefault()}},{key:"isEnabled",value:function(){return!0}},{key:"isActive",value:function(){return!1}},{key:"enable",value:function(){return!0}},{key:"disable",value:function(){return!1}}]),a}(),XV=function(){function a(p,u){(0,wt.Z)(this,a),this.map=p,this.el=p.getCanvasContainer(),this.container=p.getContainer(),this.clickTolerance=u.clickTolerance||1}return(0,He.Z)(a,[{key:"isEnabled",value:function(){return!!this.enabled}},{key:"isActive",value:function(){return!!this.active}},{key:"enable",value:function(){this.isEnabled()||(this.enabled=!0)}},{key:"disable",value:function(){this.isEnabled()&&(this.enabled=!1)}},{key:"mousedown",value:function(u,c){this.isEnabled()&&u.shiftKey&&u.button===0&&(m1.disableDrag(),this.startPos=this.lastPos=c,this.active=!0)}},{key:"mousemoveWindow",value:function(u,c){if(this.active){var l=c;if(!(this.lastPos.equals(l)||!this.box&&l.dist(this.startPos)=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(ee){throw ee},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var ee=u.next();return g=ee.done,ee},e:function(ee){T=!0,B=ee},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function B5(a,p){if(a){if(typeof a=="string")return x7(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return x7(a,p)}}function x7(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);u0&&c-u[0].time>l;)u.shift()}},{key:"onMoveEnd",value:function(u){if(this.drainInertiaBuffer(),!(this.inertiaBuffer.length<2)){var c={zoom:0,bearing:0,pitch:0,pan:new Hm(0,0),pinchAround:void 0,around:void 0},l=qI(this.inertiaBuffer),g;try{for(l.s();!(g=l.n()).done;){var T=g.value.settings;c.zoom+=T.zoomDelta||0,c.bearing+=T.bearingDelta||0,c.pitch+=T.pitchDelta||0,T.panDelta&&c.pan._add(T.panDelta),T.around&&(c.around=T.around),T.pinchAround&&(c.pinchAround=T.pinchAround)}}catch(kn){l.e(kn)}finally{l.f()}var B=this.inertiaBuffer[this.inertiaBuffer.length-1],Z=B.time-this.inertiaBuffer[0].time,ee={};if(c.pan.mag()){var Pe=XP(c.pan.mag(),Z,DA({},YV,u||{}));ee.offset=c.pan.mult(Pe.amount/c.pan.mag()),ee.center=this.map.transform.center,dS(ee,Pe)}if(c.zoom){var Ze=XP(c.zoom,Z,z5);ee.zoom=this.map.transform.zoom+Ze.amount,dS(ee,Ze)}if(c.bearing){var St=XP(c.bearing,Z,qV);ee.bearing=this.map.transform.bearing+VC(St.amount,-179,179),dS(ee,St)}if(c.pitch){var Mt=XP(c.pitch,Z,JV);ee.pitch=this.map.transform.pitch+Mt.amount,dS(ee,Mt)}if(ee.zoom||ee.bearing){var Tn=c.pinchAround===void 0?c.around:c.pinchAround;ee.around=Tn?this.map.unproject(Tn):this.map.getCenter()}return this.clear(),DA(ee,{noMoveStart:!0})}}}]),a}();function dS(a,p){(!a.duration||a.duration=this.clickTolerance||this.map.emit(u.type,new UC(u.type,this.map,u))}},{key:"dblclick",value:function(u){return this.firePreventable(new UC(u.type,this.map,u))}},{key:"mouseover",value:function(u){this.map.emit(u.type,new UC(u.type,this.map,u))}},{key:"mouseout",value:function(u){this.map.emit(u.type,new UC(u.type,this.map,u))}},{key:"touchstart",value:function(u){return this.firePreventable(new HC(u.type,this.map,u))}},{key:"touchmove",value:function(u){this.map.emit(u.type,new HC(u.type,this.map,u))}},{key:"touchend",value:function(u){this.map.emit(u.type,new HC(u.type,this.map,u))}},{key:"touchcancel",value:function(u){this.map.emit(u.type,new HC(u.type,this.map,u))}},{key:"firePreventable",value:function(u){if(this.map.emit(u.type,u),u.defaultPrevented)return{}}},{key:"isEnabled",value:function(){return!0}},{key:"isActive",value:function(){return!1}},{key:"enable",value:function(){return!1}},{key:"disable",value:function(){return!1}}]),a}(),YP,QI=0,AA=2,W5=(YP={},(0,bn.Z)(YP,QI,1),(0,bn.Z)(YP,AA,2),YP);function tU(a,p){var u=W5[p];return a.buttons===void 0||(a.buttons&u)!==u}var j5=function(){function a(p){(0,wt.Z)(this,a),this.reset(),this.clickTolerance=p.clickTolerance||1}return(0,He.Z)(a,[{key:"reset",value:function(){this.active=!1,this.moved=!1,delete this.lastPoint,delete this.eventButton}},{key:"mousedown",value:function(u,c){if(!this.lastPoint){var l=m1.mouseButton(u);this.correctButton(u,l)&&(this.lastPoint=c,this.eventButton=l)}}},{key:"mousemoveWindow",value:function(u,c){var l=this.lastPoint;if(l){if(u.preventDefault(),tU(u,this.eventButton)){this.reset();return}if(!(!this.moved&&c.dist(l)E7?c.wheelZoomRate:c.defaultZoomRate,T=oU/(1+Math.exp(-Math.abs(c.delta*g)));c.delta<0&&T!==0&&(T=1/T);var B=typeof c.targetZoom=="number"?l.zoomScale(c.targetZoom):l.scale;c.targetZoom=Math.min(l.maxZoom,Math.max(l.minZoom,l.scaleZoom(B*T))),c.type==="wheel"&&(c.startZoom=l.zoom,c.easing=c.smoothOutEasing(200)),c.delta=0}var Z=typeof c.targetZoom=="number"?c.targetZoom:l.zoom,ee=c.startZoom,Pe=c.easing,Ze=!1,St;if(c.type==="wheel"&&ee&&Pe){var Mt=Math.min((uS()-c.lastWheelEventTime)/200,1),Tn=Pe(Mt);St=Jb(ee,Z,Tn),Mt<1?c.frameId||(c.frameId=!0):Ze=!0}else St=Z,Ze=!0;return c.active=!0,Ze&&(c.active=!1,c.finishTimeout=setTimeout(function(){c.zooming=!1,c.handler.triggerRenderFrame(),delete c.targetZoom,delete c.finishTimeout},200)),{noInertia:!0,needsRenderFrame:!Ze,zoomDelta:St-l.zoom,around:c.aroundPoint,originalEvent:c.lastWheelEvent}}}),this.map=p,this.el=p.getCanvasContainer(),this.handler=u,this.delta=0,this.defaultZoomRate=H5,this.wheelZoomRate=iU}return(0,He.Z)(a,[{key:"setZoomRate",value:function(u){this.defaultZoomRate=u}},{key:"setWheelZoomRate",value:function(u){this.wheelZoomRate=u}},{key:"isEnabled",value:function(){return!!this.enabled}},{key:"isActive",value:function(){return!!this.active||this.finishTimeout!==void 0}},{key:"isZooming",value:function(){return!!this.zooming}},{key:"enable",value:function(u){this.isEnabled()||(this.enabled=!0,this.aroundCenter=u&&u.around==="center")}},{key:"disable",value:function(){this.isEnabled()&&(this.enabled=!1)}},{key:"wheel",value:function(u){if(this.isEnabled()){var c=u.deltaMode===window.WheelEvent.DOM_DELTA_LINE?u.deltaY*40:u.deltaY,l=uS(),g=l-(this.lastWheelEventTime||0);this.lastWheelEventTime=l,c!==0&&c%E7===0?this.type="wheel":c!==0&&Math.abs(c)<4?this.type="trackpad":g>400?(this.type=null,this.lastValue=c,this.timeout=setTimeout(this.onTimeout,40,u)):this.type||(this.type=Math.abs(g*c)<200?"trackpad":"wheel",this.timeout&&(clearTimeout(this.timeout),this.timeout=null,c+=this.lastValue)),u.shiftKey&&c&&(c=c/4),this.type&&(this.lastWheelEvent=u,this.delta-=c,this.active||this.start(u)),u.preventDefault()}}},{key:"renderFrame",value:function(){return this.onScrollFrame()}},{key:"reset",value:function(){this.active=!1}},{key:"onTimeout",value:function(u){this.type="wheel",this.delta-=this.lastValue,!this.active&&this.start&&this.start(u)}},{key:"start",value:function(u){if(this.delta){this.frameId&&(this.frameId=null),this.active=!0,this.isZooming()||(this.zooming=!0),this.finishTimeout&&(clearTimeout(this.finishTimeout),delete this.finishTimeout);var c=m1.mousePos(this.el,u);this.around=tv.convert(this.aroundCenter?this.map.getCenter():this.map.unproject(c)),this.aroundPoint=this.map.transform.locationPoint(this.around),this.frameId||(this.frameId=!0,this.handler.triggerRenderFrame())}}},{key:"smoothOutEasing",value:function(u){var c=P5;if(this.prevEase){var l=this.prevEase,g=(uS()-l.start)/l.duration,T=l.easing(g+.01)-l.easing(g),B=.27/Math.sqrt(T*T+1e-4)*.01,Z=Math.sqrt(.27*.27-B*B);c=L5(B,Z,.25,1)}return this.prevEase={start:uS(),duration:u,easing:c},c}}]),a}(),aU=sU,Z5=function(){function a(p,u){(0,wt.Z)(this,a),this.clickZoom=p,this.tapZoom=u}return(0,He.Z)(a,[{key:"enable",value:function(){this.clickZoom.enable(),this.tapZoom.enable()}},{key:"disable",value:function(){this.clickZoom.disable(),this.tapZoom.disable()}},{key:"isEnabled",value:function(){return this.clickZoom.isEnabled()&&this.tapZoom.isEnabled()}},{key:"isActive",value:function(){return this.clickZoom.isActive()||this.tapZoom.isActive()}}]),a}(),T7=function(){function a(p,u,c){(0,wt.Z)(this,a),this.el=p,this.mousePan=u,this.touchPan=c}return(0,He.Z)(a,[{key:"enable",value:function(u){this.inertiaOptions=u||{},this.mousePan.enable(),this.touchPan.enable(),this.el.classList.add("l7-touch-drag-pan")}},{key:"disable",value:function(){this.mousePan.disable(),this.touchPan.disable(),this.el.classList.remove("l7-touch-drag-pan")}},{key:"isEnabled",value:function(){return this.mousePan.isEnabled()&&this.touchPan.isEnabled()}},{key:"isActive",value:function(){return this.mousePan.isActive()||this.touchPan.isActive()}}]),a}(),lU=function(){function a(p,u,c){(0,wt.Z)(this,a),this.pitchWithRotate=p.pitchWithRotate,this.mouseRotate=u,this.mousePitch=c}return(0,He.Z)(a,[{key:"enable",value:function(){this.mouseRotate.enable(),this.pitchWithRotate&&this.mousePitch.enable()}},{key:"disable",value:function(){this.mouseRotate.disable(),this.mousePitch.disable()}},{key:"isEnabled",value:function(){return this.mouseRotate.isEnabled()&&(!this.pitchWithRotate||this.mousePitch.isEnabled())}},{key:"isActive",value:function(){return this.mouseRotate.isActive()||this.mousePitch.isActive()}}]),a}(),D7=function(){function a(p,u,c,l){(0,wt.Z)(this,a),this.el=p,this.touchZoom=u,this.touchRotate=c,this.tapDragZoom=l,this.rotationDisabled=!1,this.enabled=!0}return(0,He.Z)(a,[{key:"enable",value:function(u){this.touchZoom.enable(u),this.rotationDisabled||this.touchRotate.enable(u),this.tapDragZoom.enable(),this.el.classList.add("l7-touch-zoom-rotate")}},{key:"disable",value:function(){this.touchZoom.disable(),this.touchRotate.disable(),this.tapDragZoom.disable(),this.el.classList.remove("l7-touch-zoom-rotate")}},{key:"isEnabled",value:function(){return this.touchZoom.isEnabled()&&(this.rotationDisabled||this.touchRotate.isEnabled())&&this.tapDragZoom.isEnabled()}},{key:"isActive",value:function(){return this.touchZoom.isActive()||this.touchRotate.isActive()||this.tapDragZoom.isActive()}},{key:"disableRotation",value:function(){this.rotationDisabled=!0,this.touchRotate.disable()}},{key:"enableRotation",value:function(){this.rotationDisabled=!1,this.touchZoom.isEnabled()&&this.touchRotate.enable()}}]),a}();function GC(a,p){for(var u={},c=0;c=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(ee){throw ee},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var ee=u.next();return g=ee.done,ee},e:function(ee){T=!0,B=ee},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function K5(a,p){if(a){if(typeof a=="string")return A7(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return A7(a,p)}}function A7(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);uthis.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=u.timeStamp),l.length===this.numTouches&&(this.centroid=X5(c),this.touches=GC(l,c)))}},{key:"touchmove",value:function(u,c,l){if(!(this.aborted||!this.centroid)){var g=GC(l,c);for(var T in this.touches)if(this.touches[T]){var B=this.touches[T],Z=g[T];(!Z||Z.dist(B)>Y5)&&(this.aborted=!0)}}}},{key:"touchend",value:function(u,c,l){if((!this.centroid||u.timeStamp-this.startTime>L7)&&(this.aborted=!0),l.length===0){var g=!this.aborted&&this.centroid;if(this.reset(),g)return g}}}]),a}(),eL=function(){function a(p){(0,wt.Z)(this,a),this.singleTap=new uU(p),this.numTaps=p.numTaps,this.reset()}return(0,He.Z)(a,[{key:"reset",value:function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}},{key:"touchstart",value:function(u,c,l){this.singleTap.touchstart(u,c,l)}},{key:"touchmove",value:function(u,c,l){this.singleTap.touchmove(u,c,l)}},{key:"touchend",value:function(u,c,l){var g=this.singleTap.touchend(u,c,l);if(g){var T=u.timeStamp-this.lastTimeI7&&this.reset(),this.tapTime?l.length>0&&(this.swipePoint=c[0],this.swipeTouch=l[0].identifier):this.tap.touchstart(u,c,l))}},{key:"touchmove",value:function(u,c,l){if(!this.tapTime)this.tap.touchmove(u,c,l);else if(this.swipePoint){if(l[0].identifier!==this.swipeTouch)return;var g=c[0],T=g.y-this.swipePoint.y;return this.swipePoint=g,u.preventDefault(),this.active=!0,{zoomDelta:T/128}}}},{key:"touchend",value:function(u,c,l){if(this.tapTime)this.swipePoint&&l.length===0&&this.reset();else{var g=this.tap.touchend(u,c,l);g&&(this.tapTime=u.timeStamp)}}},{key:"touchcancel",value:function(){this.reset()}},{key:"enable",value:function(){this.enabled=!0}},{key:"disable",value:function(){this.enabled=!1,this.reset()}},{key:"isEnabled",value:function(){return this.enabled}},{key:"isActive",value:function(){return this.active}}]),a}(),P7=function(){function a(){(0,wt.Z)(this,a),this.zoomIn=new eL({numTouches:1,numTaps:2}),this.zoomOut=new eL({numTouches:2,numTaps:1}),this.reset()}return(0,He.Z)(a,[{key:"reset",value:function(){this.active=!1,this.zoomIn.reset(),this.zoomOut.reset()}},{key:"touchstart",value:function(u,c,l){this.zoomIn.touchstart(u,c,l),this.zoomOut.touchstart(u,c,l)}},{key:"touchmove",value:function(u,c,l){this.zoomIn.touchmove(u,c,l),this.zoomOut.touchmove(u,c,l)}},{key:"touchend",value:function(u,c,l){var g=this,T=this.zoomIn.touchend(u,c,l),B=this.zoomOut.touchend(u,c,l);if(T)return this.active=!0,u.preventDefault(),setTimeout(function(){return g.reset()},0),{cameraAnimation:function(ee){return ee.easeTo({duration:300,zoom:ee.getZoom()+1,around:ee.unproject(T)},{originalEvent:u})}};if(B)return this.active=!0,u.preventDefault(),setTimeout(function(){return g.reset()},0),{cameraAnimation:function(ee){return ee.easeTo({duration:300,zoom:ee.getZoom()-1,around:ee.unproject(B)},{originalEvent:u})}}}},{key:"touchcancel",value:function(){this.reset()}},{key:"enable",value:function(){this.enabled=!0}},{key:"disable",value:function(){this.enabled=!1,this.reset()}},{key:"isEnabled",value:function(){return this.enabled}},{key:"isActive",value:function(){return this.active}}]),a}(),q5=function(){function a(p){(0,wt.Z)(this,a),this.minTouches=1,this.clickTolerance=p.clickTolerance||1,this.reset()}return(0,He.Z)(a,[{key:"reset",value:function(){this.active=!1,this.touches={},this.sum=new Hm(0,0)}},{key:"touchstart",value:function(u,c,l){return this.calculateTransform(u,c,l)}},{key:"touchmove",value:function(u,c,l){if(this.active)return u.preventDefault(),this.calculateTransform(u,c,l)}},{key:"touchend",value:function(u,c,l){this.calculateTransform(u,c,l),this.active&&l.length0&&(this.active=!0);var g=GC(l,c),T=new Hm(0,0),B=new Hm(0,0),Z=0;for(var ee in g)if(g[ee]){var Pe=g[ee],Ze=this.touches[ee];Ze&&(T._add(Pe),B._add(Pe.sub(Ze)),Z++,g[ee]=Pe)}if(this.touches=g,!(ZMath.abs(a.x)}var fU=100,pU=function(a){(0,dt.Z)(u,a);var p=dU(u);function u(){return(0,wt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"reset",value:function(){Ia((0,gt.Z)(u.prototype),"reset",this).call(this),this.valid=void 0,delete this.firstMove,delete this.lastPoints}},{key:"start",value:function(l){this.lastPoints=l,J5(l[0].sub(l[1]))&&(this.valid=!1)}},{key:"move",value:function(l,g,T){var B=l[0].sub(this.lastPoints[0]),Z=l[1].sub(this.lastPoints[1]);if(this.valid=this.gestureBeginsVertically(B,Z,T.timeStamp),!!this.valid){this.lastPoints=l,this.active=!0;var ee=(B.y+Z.y)/2,Pe=-.5;return{pitchDelta:ee*Pe}}}},{key:"gestureBeginsVertically",value:function(l,g,T){if(this.valid!==void 0)return this.valid;var B=2,Z=l.mag()>=B,ee=g.mag()>=B;if(!(!Z&&!ee)){if(!Z||!ee)return this.firstMove===void 0&&(this.firstMove=T),T-this.firstMove0==g.y>0;return J5(l)&&J5(g)&&Pe}}}]),u}(QP);function QX(a){var p=eY();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function eY(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var ek=25;function gU(a,p){return a.angleWith(p)*180/Math.PI}var tY=function(a){(0,dt.Z)(u,a);var p=QX(u);function u(){return(0,wt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"reset",value:function(){Ia((0,gt.Z)(u.prototype),"reset",this).call(this),delete this.minDiameter,delete this.startVector,delete this.vector}},{key:"start",value:function(l){this.startVector=this.vector=l[0].sub(l[1]),this.minDiameter=l[0].dist(l[1])}},{key:"move",value:function(l,g){var T=this.vector;if(this.vector=l[0].sub(l[1]),!(!this.active&&this.isBelowThreshold(this.vector)))return this.active=!0,{bearingDelta:gU(this.vector,T),pinchAround:g}}},{key:"isBelowThreshold",value:function(l){this.minDiameter=Math.min(this.minDiameter,l.mag());var g=Math.PI*this.minDiameter,T=ek/g*360,B=gU(l,this.startVector);return Math.abs(B)=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(ee){throw ee},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var ee=u.next();return g=ee.done,ee},e:function(ee){T=!0,B=ee},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function eR(a,p){if(a){if(typeof a=="string")return k7(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return k7(a,p)}}function k7(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);utk}).reduce(function(Z,ee){return Z+(ee-tk)/tk},0),B=T/(c+T)*100;return{loadTime:p,fullLoadTime:u,fps:g,percentDroppedFrames:B}}};function nk(a,p){var u=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!u){if(Array.isArray(a)||(u=rR(a))||p&&a&&typeof a.length=="number"){u&&(a=u);var c=0,l=function(){};return{s:l,n:function(){return c>=a.length?{done:!0}:{done:!1,value:a[c++]}},e:function(ee){throw ee},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,T=!1,B;return{s:function(){u=u.call(a)},n:function(){var ee=u.next();return g=ee.done,ee},e:function(ee){T=!0,B=ee},f:function(){try{!g&&u.return!=null&&u.return()}finally{if(T)throw B}}}}function rR(a,p){if(a){if(typeof a=="string")return tL(a,p);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return tL(a,p)}}function tL(a,p){(p==null||p>a.length)&&(p=a.length);for(var u=0,c=new Array(p);u0&&arguments[0]!==void 0?arguments[0]:0,c=this.currentlyRunning=this.queue;this.queue=[];var l=nk(c),g;try{for(l.s();!(g=l.n()).done;){var T=g.value;if(!T.cancelled&&(T.callback(u),this.cleared))break}}catch(B){l.e(B)}finally{l.f()}this.cleared=!1,this.currentlyRunning=!1}},{key:"clear",value:function(){this.currentlyRunning&&(this.cleared=!0),this.queue=[]}}]),a}(),rk=vU;function yU(a){var p=iR();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function iR(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}function _U(a,p){var u=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,c=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(u||c)&&(p||(p=document),!!p)){var l=p.head||p.getElementsByTagName("head")[0];if(!l){l=p.createElement("head");var g=p.body||p.getElementsByTagName("body")[0];g?g.parentNode.insertBefore(l,g):p.documentElement.appendChild(l)}var T=p.createElement("style");return T.type="text/css",T.styleSheet?T.styleSheet.cssText=a:T.appendChild(p.createTextNode(a)),l.appendChild(T),T}}_U(`.l7-map { font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif; overflow: hidden; position: relative; @@ -7545,7 +7598,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho opacity: 0.5; z-index: 10; } -`);var hR=-2,qb=22,fR=Ma.merge,DA=0,RC=60,rk={hash:!1,zoom:-1,center:[112,32],pitch:0,bearing:0,interactive:!0,minZoom:hR,maxZoom:qb,minPitch:DA,maxPitch:RC,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,trackResize:!0,renderWorldCopies:!0,pitchEnabled:!0,rotateEnabled:!0},mU=function(a){(0,ht.Z)(u,a);var p=QX(u);function u(c){var l;return(0,bt.Z)(this,u),l=p.call(this,fR({},rk,c)),(0,bn.Z)((0,as.Z)(l),"renderTaskQueue",new gU),(0,bn.Z)((0,as.Z)(l),"trackResize",!0),(0,bn.Z)((0,as.Z)(l),"onWindowOnline",function(){l.update()}),(0,bn.Z)((0,as.Z)(l),"onWindowResize",function(g){l.trackResize&&l.resize({originalEvent:g}).update()}),l.initContainer(),l.resize(),l.handlers=new uR((0,as.Z)(l),l.options),typeof window!="undefined"&&(window.addEventListener("online",l.onWindowOnline,!1),window.addEventListener("resize",l.onWindowResize,!1),window.addEventListener("orientationchange",l.onWindowResize,!1)),l}return(0,Ue.Z)(u,[{key:"resize",value:function(l){var g=this.containerDimensions(),T=g[0],B=g[1];this.transform.resize(T,B);var G=!this.moving;return G&&(this.stop(),this.emit("movestart",new Event("movestart",l)),this.emit("move",new Event("move",l))),this.emit("resize",new Event("resize",l)),G&&this.emit("moveend",new Event("moveend",l)),this}},{key:"getContainer",value:function(){return this.container}},{key:"getCanvas",value:function(){return this.canvas}},{key:"getCanvasContainer",value:function(){return this.canvasContainer}},{key:"project",value:function(l){return this.transform.locationPoint(F0.convert(l))}},{key:"unproject",value:function(l){return this.transform.pointLocation($m.convert(l))}},{key:"getBounds",value:function(){return this.transform.getBounds()}},{key:"getMaxBounds",value:function(){return this.transform.getMaxBounds()}},{key:"setMaxBounds",value:function(l){this.transform.setMaxBounds(zI.convert(l))}},{key:"setStyle",value:function(l){}},{key:"setMinZoom",value:function(l){if(l=l==null?hR:l,l>=hR&&l<=this.transform.maxZoom)return this.transform.minZoom=l,this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=l,this.getZoom()>l&&this.setZoom(l),this;throw new Error("maxZoom must be greater than the current minZoom")}},{key:"getMaxZoom",value:function(){return this.transform.maxZoom}},{key:"setMinPitch",value:function(l){if(l=l==null?DA:l,l=DA&&l<=this.transform.maxPitch)return this.transform.minPitch=l,this.getPitch()RC)throw new Error("maxPitch must be less than or equal to ".concat(RC));if(l>=this.transform.minPitch)return this.transform.maxPitch=l,this.getPitch()>l&&this.setPitch(l),this;throw new Error("maxPitch must be greater than the current minPitch")}},{key:"getMaxPitch",value:function(){return this.transform.maxPitch}},{key:"getRenderWorldCopies",value:function(){return this.transform.renderWorldCopies}},{key:"setRenderWorldCopies",value:function(l){this.transform.renderWorldCopies=!!l}},{key:"remove",value:function(){this.frame&&(this.frame.cancel(),this.frame=null),this.renderTaskQueue.clear()}},{key:"requestRenderFrame",value:function(l){return this.update(),this.renderTaskQueue.add(l)}},{key:"cancelRenderFrame",value:function(l){return this.renderTaskQueue.remove(l)}},{key:"triggerRepaint",value:function(){var l=this;this.frame||(this.frame=MC(function(g){dR.frame(g),l.frame=null,l.update(g)}))}},{key:"update",value:function(l){var g=this;this.frame||(this.frame=MC(function(T){dR.frame(T),g.frame=null,g.renderTaskQueue.run(l)}))}},{key:"initContainer",value:function(){if(typeof this.options.container=="string"){if(this.container=window.document.getElementById(this.options.container),!this.container)throw new Error("Container '".concat(this.options.container,"' not found."))}else if(this.options.container instanceof HTMLElement)this.container=this.options.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");var l=this.container;l.classList.add("l7-map");var g=this.canvasContainer=Ji("div","l7-canvas-container",l);this.options.interactive&&g.classList.add("l7-interactive")}},{key:"containerDimensions",value:function(){var l=0,g=0;return this.container&&(l=this.container.clientWidth||400,g=this.container.clientHeight||300),[l,g]}},{key:"resizeCanvas",value:function(l,g){var T=ni||1;this.canvas.width=T*l,this.canvas.height=T*g,this.canvas.style.width="".concat(l,"px"),this.canvas.style.height="".concat(g,"px")}}]),u}(l7),vU=Ma.throttle,NC=function(){function a(p){var u=this;(0,bt.Z)(this,a),(0,bn.Z)(this,"onHashChange",function(){var c=u.getCurrentHash();if(c.length>=3&&!c.some(function(g){return isNaN(+g)})){var l=u.map.dragRotate.isEnabled()&&u.map.touchZoomRotate.isEnabled()?+(c[3]||0):u.map.getBearing();return u.map.jumpTo({center:[+c[2],+c[1]],zoom:+c[0],bearing:l,pitch:+(c[4]||0)}),!0}return!1}),(0,bn.Z)(this,"getCurrentHash",function(){var c=window.location.hash.replace("#","");if(u.hashName){var l;return c.split("&").map(function(g){return g.split("=")}).forEach(function(g){g[0]===u.hashName&&(l=g)}),(l&&l[1]||"").split("/")}return c.split("/")}),(0,bn.Z)(this,"updateHashUnthrottled",function(){var c=u.getHashString();try{window.history.replaceState(window.history.state,"",c)}catch(l){}}),this.hashName=p&&encodeURIComponent(p),this.updateHash=vU(this.updateHashUnthrottled,30*1e3/100)}return(0,Ue.Z)(a,[{key:"addTo",value:function(u){return this.map=u,window.addEventListener("hashchange",this.onHashChange,!1),this.map.on("moveend",this.updateHash),this}},{key:"remove",value:function(){return window.removeEventListener("hashchange",this.onHashChange,!1),this.map.off("moveend",this.updateHash),delete this.map,this}},{key:"getHashString",value:function(u){var c=this.map.getCenter(),l=Math.round(this.map.getZoom()*100)/100,g=Math.ceil((l*Math.LN2+Math.log(512/360/.5))/Math.LN10),T=Math.pow(10,g),B=Math.round(c.lng*T)/T,G=Math.round(c.lat*T)/T,te=this.map.getBearing(),Me=this.map.getPitch(),Ge="";if(u?Ge+="/".concat(B,"/").concat(G,"/").concat(l):Ge+="".concat(l,"/").concat(G,"/").concat(B),(te||Me)&&(Ge+="/".concat(Math.round(te*10)/10)),Me&&(Ge+="/".concat(Math.round(Me))),this.hashName){var St=this.hashName,Mt=!1,In=window.location.hash.slice(1).split("&").map(function(kn){var Sr=kn.split("=")[0];return Sr===St?(Mt=!0,"".concat(Sr,"=").concat(Ge)):kn}).filter(function(kn){return kn});return Mt||In.push("".concat(St,"=").concat(Ge)),"#".concat(In.join("&"))}return"#".concat(Ge)}}]),a}(),Jg=NC;function Cb(a){var p=pR();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function pR(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}function C7(a,p){var u=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,c=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(u||c)&&(p||(p=document),!!p)){var l=p.head||p.getElementsByTagName("head")[0];if(!l){l=p.createElement("head");var g=p.body||p.getElementsByTagName("body")[0];g?g.parentNode.insertBefore(l,g):p.documentElement.appendChild(l)}var T=p.createElement("style");return T.type="text/css",T.styleSheet?T.styleSheet.cssText=a:T.appendChild(p.createTextNode(a)),l.appendChild(T),T}}C7(`.l7-map { +`);var ik=-2,oR=22,M7=Ma.merge,qw=0,KC=60,sR={hash:!1,zoom:-1,center:[112,32],pitch:0,bearing:0,interactive:!0,minZoom:ik,maxZoom:oR,minPitch:qw,maxPitch:KC,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,trackResize:!0,renderWorldCopies:!0,pitchEnabled:!0,rotateEnabled:!0},Cb=function(a){(0,dt.Z)(u,a);var p=yU(u);function u(c){var l;return(0,wt.Z)(this,u),l=p.call(this,M7({},sR,c)),(0,bn.Z)((0,is.Z)(l),"renderTaskQueue",new rk),(0,bn.Z)((0,is.Z)(l),"trackResize",!0),(0,bn.Z)((0,is.Z)(l),"onWindowOnline",function(){l.update()}),(0,bn.Z)((0,is.Z)(l),"onWindowResize",function(g){l.trackResize&&l.resize({originalEvent:g}).update()}),l.initContainer(),l.resize(),l.handlers=new Xx((0,is.Z)(l),l.options),typeof window!="undefined"&&(window.addEventListener("online",l.onWindowOnline,!1),window.addEventListener("resize",l.onWindowResize,!1),window.addEventListener("orientationchange",l.onWindowResize,!1)),l}return(0,He.Z)(u,[{key:"resize",value:function(l){var g=this.containerDimensions(),T=g[0],B=g[1];this.transform.resize(T,B);var Z=!this.moving;return Z&&(this.stop(),this.emit("movestart",new Event("movestart",l)),this.emit("move",new Event("move",l))),this.emit("resize",new Event("resize",l)),Z&&this.emit("moveend",new Event("moveend",l)),this}},{key:"getContainer",value:function(){return this.container}},{key:"getCanvas",value:function(){return this.canvas}},{key:"getCanvasContainer",value:function(){return this.canvasContainer}},{key:"project",value:function(l){return this.transform.locationPoint(tv.convert(l))}},{key:"unproject",value:function(l){return this.transform.pointLocation(Hm.convert(l))}},{key:"getBounds",value:function(){return this.transform.getBounds()}},{key:"getMaxBounds",value:function(){return this.transform.getMaxBounds()}},{key:"setMaxBounds",value:function(l){this.transform.setMaxBounds(UI.convert(l))}},{key:"setStyle",value:function(l){}},{key:"setMinZoom",value:function(l){if(l=l==null?ik:l,l>=ik&&l<=this.transform.maxZoom)return this.transform.minZoom=l,this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=l,this.getZoom()>l&&this.setZoom(l),this;throw new Error("maxZoom must be greater than the current minZoom")}},{key:"getMaxZoom",value:function(){return this.transform.maxZoom}},{key:"setMinPitch",value:function(l){if(l=l==null?qw:l,l=qw&&l<=this.transform.maxPitch)return this.transform.minPitch=l,this.getPitch()KC)throw new Error("maxPitch must be less than or equal to ".concat(KC));if(l>=this.transform.minPitch)return this.transform.maxPitch=l,this.getPitch()>l&&this.setPitch(l),this;throw new Error("maxPitch must be greater than the current minPitch")}},{key:"getMaxPitch",value:function(){return this.transform.maxPitch}},{key:"getRenderWorldCopies",value:function(){return this.transform.renderWorldCopies}},{key:"setRenderWorldCopies",value:function(l){this.transform.renderWorldCopies=!!l}},{key:"remove",value:function(){this.frame&&(this.frame.cancel(),this.frame=null),this.renderTaskQueue.clear()}},{key:"requestRenderFrame",value:function(l){return this.update(),this.renderTaskQueue.add(l)}},{key:"cancelRenderFrame",value:function(l){return this.renderTaskQueue.remove(l)}},{key:"triggerRepaint",value:function(){var l=this;this.frame||(this.frame=VI(function(g){LA.frame(g),l.frame=null,l.update(g)}))}},{key:"update",value:function(l){var g=this;this.frame||(this.frame=VI(function(T){LA.frame(T),g.frame=null,g.renderTaskQueue.run(l)}))}},{key:"initContainer",value:function(){if(typeof this.options.container=="string"){if(this.container=window.document.getElementById(this.options.container),!this.container)throw new Error("Container '".concat(this.options.container,"' not found."))}else if(this.options.container instanceof HTMLElement)this.container=this.options.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");var l=this.container;l.classList.add("l7-map");var g=this.canvasContainer=qi("div","l7-canvas-container",l);this.options.interactive&&g.classList.add("l7-interactive")}},{key:"containerDimensions",value:function(){var l=0,g=0;return this.container&&(l=this.container.clientWidth||400,g=this.container.clientHeight||300),[l,g]}},{key:"resizeCanvas",value:function(l,g){var T=ni||1;this.canvas.width=T*l,this.canvas.height=T*g,this.canvas.style.width="".concat(l,"px"),this.canvas.style.height="".concat(g,"px")}}]),u}(SA),aR=Ma.throttle,lR=function(){function a(p){var u=this;(0,wt.Z)(this,a),(0,bn.Z)(this,"onHashChange",function(){var c=u.getCurrentHash();if(c.length>=3&&!c.some(function(g){return isNaN(+g)})){var l=u.map.dragRotate.isEnabled()&&u.map.touchZoomRotate.isEnabled()?+(c[3]||0):u.map.getBearing();return u.map.jumpTo({center:[+c[2],+c[1]],zoom:+c[0],bearing:l,pitch:+(c[4]||0)}),!0}return!1}),(0,bn.Z)(this,"getCurrentHash",function(){var c=window.location.hash.replace("#","");if(u.hashName){var l;return c.split("&").map(function(g){return g.split("=")}).forEach(function(g){g[0]===u.hashName&&(l=g)}),(l&&l[1]||"").split("/")}return c.split("/")}),(0,bn.Z)(this,"updateHashUnthrottled",function(){var c=u.getHashString();try{window.history.replaceState(window.history.state,"",c)}catch(l){}}),this.hashName=p&&encodeURIComponent(p),this.updateHash=aR(this.updateHashUnthrottled,30*1e3/100)}return(0,He.Z)(a,[{key:"addTo",value:function(u){return this.map=u,window.addEventListener("hashchange",this.onHashChange,!1),this.map.on("moveend",this.updateHash),this}},{key:"remove",value:function(){return window.removeEventListener("hashchange",this.onHashChange,!1),this.map.off("moveend",this.updateHash),delete this.map,this}},{key:"getHashString",value:function(u){var c=this.map.getCenter(),l=Math.round(this.map.getZoom()*100)/100,g=Math.ceil((l*Math.LN2+Math.log(512/360/.5))/Math.LN10),T=Math.pow(10,g),B=Math.round(c.lng*T)/T,Z=Math.round(c.lat*T)/T,ee=this.map.getBearing(),Pe=this.map.getPitch(),Ze="";if(u?Ze+="/".concat(B,"/").concat(Z,"/").concat(l):Ze+="".concat(l,"/").concat(Z,"/").concat(B),(ee||Pe)&&(Ze+="/".concat(Math.round(ee*10)/10)),Pe&&(Ze+="/".concat(Math.round(Pe))),this.hashName){var St=this.hashName,Mt=!1,Tn=window.location.hash.slice(1).split("&").map(function(kn){var vr=kn.split("=")[0];return vr===St?(Mt=!0,"".concat(vr,"=").concat(Ze)):kn}).filter(function(kn){return kn});return Mt||Tn.push("".concat(St,"=").concat(Ze)),"#".concat(Tn.join("&"))}return"#".concat(Ze)}}]),a}(),nL=lR;function ok(a){var p=Yx();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function Yx(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}function XC(a,p){var u=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,c=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(u||c)&&(p||(p=document),!!p)){var l=p.head||p.getElementsByTagName("head")[0];if(!l){l=p.createElement("head");var g=p.body||p.getElementsByTagName("body")[0];g?g.parentNode.insertBefore(l,g):p.documentElement.appendChild(l)}var T=p.createElement("style");return T.type="text/css",T.styleSheet?T.styleSheet.cssText=a:T.appendChild(p.createTextNode(a)),l.appendChild(T),T}}XC(`.l7-map { font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif; overflow: hidden; position: relative; @@ -7645,118 +7698,118 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho opacity: 0.5; z-index: 10; } -`);var qE=-2,gR=22,ik=Ma.merge,nS=0,AA=60,ok={hash:!1,zoom:-1,center:[112,32],pitch:0,bearing:0,interactive:!0,minZoom:qE,maxZoom:gR,minPitch:nS,maxPitch:AA,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,trackResize:!0,renderWorldCopies:!0,pitchEnabled:!0,rotateEnabled:!0},w7=function(a){(0,ht.Z)(u,a);var p=Cb(u);function u(c){var l;(0,bt.Z)(this,u),l=p.call(this,ik({},ok,c)),(0,bn.Z)((0,as.Z)(l),"renderTaskQueue",new gU),(0,bn.Z)((0,as.Z)(l),"trackResize",!0),(0,bn.Z)((0,as.Z)(l),"onWindowOnline",function(){l.update()}),(0,bn.Z)((0,as.Z)(l),"onWindowResize",function(T){l.trackResize&&l.resize({originalEvent:T}).update()}),l.initContainer(),l.resize(),l.handlers=new uR((0,as.Z)(l),l.options),typeof window!="undefined"&&(window.addEventListener("online",l.onWindowOnline,!1),window.addEventListener("resize",l.onWindowResize,!1),window.addEventListener("orientationchange",l.onWindowResize,!1));var g=typeof c.hash=="string"&&c.hash||void 0;return c.hash&&(l.hash=new Jg(g).addTo((0,as.Z)(l))),(!l.hash||!l.hash.onHashChange())&&(l.jumpTo({center:c.center,zoom:c.zoom,bearing:c.bearing,pitch:c.pitch}),c.bounds&&(l.resize(),l.fitBounds(c.bounds,ik({},c.fitBoundsOptions,{duration:0})))),l}return(0,Ue.Z)(u,[{key:"resize",value:function(l){var g=this.containerDimensions(),T=(0,Qn.Z)(g,2),B=T[0],G=T[1];this.transform.resize(B,G);var te=!this.moving;return te&&(this.stop(),this.emit("movestart",new window.Event("movestart",l)),this.emit("move",new window.Event("move",l))),this.emit("resize",new window.Event("resize",l)),te&&this.emit("moveend",new window.Event("moveend",l)),this}},{key:"getContainer",value:function(){return this.container}},{key:"getCanvas",value:function(){return this.canvas}},{key:"getCanvasContainer",value:function(){return this.canvasContainer}},{key:"project",value:function(l){return this.transform.locationPoint(F0.convert(l))}},{key:"unproject",value:function(l){return this.transform.pointLocation($m.convert(l))}},{key:"getBounds",value:function(){return this.transform.getBounds()}},{key:"getMaxBounds",value:function(){return this.transform.getMaxBounds()}},{key:"setMaxBounds",value:function(l){this.transform.setMaxBounds(zI.convert(l))}},{key:"setStyle",value:function(l){}},{key:"setMinZoom",value:function(l){if(l=l==null?qE:l,l>=qE&&l<=this.transform.maxZoom)return this.transform.minZoom=l,this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=l,this.getZoom()>l&&this.setZoom(l),this;throw new Error("maxZoom must be greater than the current minZoom")}},{key:"getMaxZoom",value:function(){return this.transform.maxZoom}},{key:"setMinPitch",value:function(l){if(l=l==null?nS:l,l=nS&&l<=this.transform.maxPitch)return this.transform.minPitch=l,this.getPitch()AA)throw new Error("maxPitch must be less than or equal to ".concat(AA));if(l>=this.transform.minPitch)return this.transform.maxPitch=l,this.getPitch()>l&&this.setPitch(l),this;throw new Error("maxPitch must be greater than the current minPitch")}},{key:"getMaxPitch",value:function(){return this.transform.maxPitch}},{key:"getRenderWorldCopies",value:function(){return this.transform.renderWorldCopies}},{key:"setRenderWorldCopies",value:function(l){this.transform.renderWorldCopies=!!l}},{key:"remove",value:function(){this.container.removeChild(this.canvasContainer),this.canvasContainer=null,this.frame&&(this.frame.cancel(),this.frame=null),this.renderTaskQueue.clear()}},{key:"requestRenderFrame",value:function(l){return this.update(),this.renderTaskQueue.add(l)}},{key:"cancelRenderFrame",value:function(l){return this.renderTaskQueue.remove(l)}},{key:"triggerRepaint",value:function(){var l=this;this.frame||(this.frame=MC(function(g){dR.frame(g),l.frame=null,l.update(g)}))}},{key:"update",value:function(l){var g=this;this.frame||(this.frame=MC(function(T){dR.frame(T),g.frame=null,g.renderTaskQueue.run(l)}))}},{key:"initContainer",value:function(){if(typeof this.options.container=="string"){if(this.container=window.document.getElementById(this.options.container),!this.container)throw new Error("Container '".concat(this.options.container,"' not found."))}else if(this.options.container instanceof HTMLElement)this.container=this.options.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");var l=this.container;l.classList.add("l7-map");var g=this.canvasContainer=Ji("div","l7-canvas-container",l);this.options.interactive&&g.classList.add("l7-interactive")}},{key:"initMiniContainer",value:function(){this.container=this.options.canvas,this.canvasContainer=this.container}},{key:"containerDimensions",value:function(){var l=0,g=0;return this.container&&(l=this.container.clientWidth,g=this.container.clientHeight,l=l===0?400:l,g=g===0?300:g),[l,g]}}]),u}(l7),mR={light:"mapbox://styles/zcxduo/ck2ypyb1r3q9o1co1766dex29",dark:"mapbox://styles/zcxduo/ck241p6413s0b1cpayzldv7x7",normal:"mapbox://styles/mapbox/streets-v11",blank:{version:8,sources:{},layers:[{id:"background",type:"background",layout:{visibility:"none"}}]}},S7,sk,E7,T7,vR,yR,Ww,rS,ak,Z_,lk,uk={mapmove:"move",camerachange:"move",zoomchange:"zoom",dragging:"drag"},nL=12,JE=(S7=(0,ws.b2)(),sk=(0,ws.f3)(gr.MapConfig),E7=(0,ws.f3)(gr.IGlobalConfigService),T7=(0,ws.f3)(gr.ICoordinateSystemService),vR=(0,ws.f3)(gr.IEventEmitter),S7(yR=(Ww=function(){function a(){var p=this;(0,bt.Z)(this,a),(0,bn.Z)(this,"version",d0.DEFUALT),(0,bn.Z)(this,"simpleMapCoord",new C5),(0,bn.Z)(this,"bgColor","rgba(0.0, 0.0, 0.0, 0.0)"),Fd(this,"config",rS,this),Fd(this,"configService",ak,this),Fd(this,"coordinateSystemService",Z_,this),Fd(this,"eventEmitter",lk,this),(0,bn.Z)(this,"handleCameraChanged",function(u){var c=p.map.getCenter(),l=c.lat,g=c.lng;p.emit("mapchange"),p.viewport.syncWithMapCamera({bearing:p.map.getBearing(),center:[g,l],viewportHeight:p.map.transform.height,pitch:p.map.getPitch(),viewportWidth:p.map.transform.width,zoom:p.map.getZoom(),cameraHeight:0}),p.updateCoordinateSystemService(),p.cameraChangedCallback(p.viewport)})}return(0,Ue.Z)(a,[{key:"setBgColor",value:function(u){this.bgColor=u}},{key:"addMarkerContainer",value:function(){var u=this.map.getCanvasContainer();this.markerContainer=Ji("div","l7-marker-container",u),this.markerContainer.setAttribute("tabindex","-1")}},{key:"getMarkerContainer",value:function(){return this.markerContainer}},{key:"getOverlayContainer",value:function(){}},{key:"on",value:function(u,c){pw.indexOf(u)!==-1?this.eventEmitter.on(u,c):this.map.on(uk[u]||u,c)}},{key:"off",value:function(u,c){this.map.off(uk[u]||u,c),this.eventEmitter.off(u,c)}},{key:"getContainer",value:function(){return this.map.getContainer()}},{key:"getMapCanvasContainer",value:function(){return this.map.getCanvasContainer()}},{key:"getSize",value:function(){if(this.version===d0.SIMPLE)return this.simpleMapCoord.getSize();var u=this.map.transform;return[u.width,u.height]}},{key:"getType",value:function(){return"default"}},{key:"getZoom",value:function(){return this.map.getZoom()}},{key:"setZoom",value:function(u){return this.map.setZoom(u)}},{key:"getCenter",value:function(){return this.map.getCenter()}},{key:"setCenter",value:function(u){this.map.setCenter(u)}},{key:"getPitch",value:function(){return this.map.getPitch()}},{key:"getRotation",value:function(){return this.map.getBearing()}},{key:"getBounds",value:function(){return this.map.getBounds().toArray()}},{key:"getMinZoom",value:function(){return this.map.getMinZoom()}},{key:"getMaxZoom",value:function(){return this.map.getMaxZoom()}},{key:"setRotation",value:function(u){this.map.setBearing(u)}},{key:"zoomIn",value:function(u,c){this.map.zoomIn(u,c)}},{key:"zoomOut",value:function(u,c){this.map.zoomOut(u,c)}},{key:"setPitch",value:function(u){return this.map.setPitch(u)}},{key:"panTo",value:function(u){this.map.panTo(u)}},{key:"panBy",value:function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.map.panBy([u,c])}},{key:"fitBounds",value:function(u,c){this.map.fitBounds(u,c)}},{key:"setMaxZoom",value:function(u){this.map.setMaxZoom(u)}},{key:"setMinZoom",value:function(u){this.map.setMinZoom(u)}},{key:"setMapStatus",value:function(u){u.doubleClickZoom===!0&&this.map.doubleClickZoom.enable(),u.doubleClickZoom===!1&&this.map.doubleClickZoom.disable(),u.dragEnable===!1&&this.map.dragPan.disable(),u.dragEnable===!0&&this.map.dragPan.enable(),u.rotateEnable===!1&&this.map.dragRotate.disable(),u.dragEnable===!0&&this.map.dragRotate.enable(),u.keyboardEnable===!1&&this.map.keyboard.disable(),u.keyboardEnable===!0&&this.map.keyboard.enable(),u.zoomEnable===!1&&this.map.scrollZoom.disable(),u.zoomEnable===!0&&this.map.scrollZoom.enable()}},{key:"setZoomAndCenter",value:function(u,c){this.map.flyTo({zoom:u,center:c})}},{key:"setMapStyle",value:function(u){this.map.setStyle(this.getMapStyleValue(u))}},{key:"meterToCoord",value:function(u,c){return 1}},{key:"pixelToLngLat",value:function(u){return this.map.unproject(u)}},{key:"lngLatToPixel",value:function(u){return this.map.project(u)}},{key:"containerToLngLat",value:function(u){return this.map.unproject(u)}},{key:"lngLatToContainer",value:function(u){return this.map.project(u)}},{key:"getMapStyle",value:function(){try{var u,c=(u=this.map.getStyle().sprite)!==null&&u!==void 0?u:"";return/^mapbox:\/\/sprites\/zcxduo\/\w+\/\w+$/.test(c)?c==null?void 0:c.replace(/\/\w+$/,"").replace(/sprites/,"styles"):c}catch(l){return""}}},{key:"getMapStyleConfig",value:function(){return mR}},{key:"getMapStyleValue",value:function(u){var c;return(c=this.getMapStyleConfig()[u])!==null&&c!==void 0?c:u}},{key:"destroy",value:function(){this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(u){for(var c,l=arguments.length,g=new Array(l>1?l-1:0),T=1;T1?l-1:0),T=1;TnL&&c?this.coordinateSystemService.setCoordinateSystem(eh.LNGLAT_OFFSET):this.coordinateSystemService.setCoordinateSystem(eh.LNGLAT)}}]),a}(),rS=$h(Ww.prototype,"config",[sk],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ak=$h(Ww.prototype,"configService",[E7],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Z_=$h(Ww.prototype,"coordinateSystemService",[T7],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),lk=$h(Ww.prototype,"eventEmitter",[vR],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ww))||yR),Wx=function(){function a(){(0,bt.Z)(this,a),(0,bn.Z)(this,"xzReg",-Math.PI*.6),(0,bn.Z)(this,"yReg",Math.PI*.2),(0,bn.Z)(this,"earthCameraRadius",200),(0,bn.Z)(this,"earthCameraZoom",1),(0,bn.Z)(this,"cameraPosition",$_()),(0,bn.Z)(this,"projectionMatrix",nn()),(0,bn.Z)(this,"modelMatrix",nn()),(0,bn.Z)(this,"viewMatrix",nn()),(0,bn.Z)(this,"viewProjectionMatrix",nn()),(0,bn.Z)(this,"ViewProjectionMatrixUncentered",nn()),(0,bn.Z)(this,"viewUncenteredMatrix",nn())}return(0,Ue.Z)(a,[{key:"syncWithMapCamera",value:function(u){var c=u.viewportHeight,l=c===void 0?1:c,g=u.viewportWidth,T=g===void 0?1:g,B=T/l,G=.1,te=1e4,Me=20;hi(this.projectionMatrix,Me,B,G,te);var Ge=this.earthCameraRadius*Math.cos(this.xzReg),St=this.earthCameraRadius*Math.sin(this.xzReg),Mt=this.earthCameraRadius*Math.sin(this.yReg);this.cameraPosition=Yg(Ge,Mt,St),A2(this.cameraPosition,this.cameraPosition),QN(this.cameraPosition,this.cameraPosition,Yg(this.earthCameraRadius,this.earthCameraRadius,this.earthCameraRadius)),jb(this.cameraPosition,this.cameraPosition,this.earthCameraZoom);var In=$_();lD(In,this.cameraPosition,Yg(0,1,0));var kn=Yg(0,1,0);lD(kn,In,this.cameraPosition);var Sr=Yg(0,0,0);Da(this.viewMatrix,this.cameraPosition,Sr,kn),this.viewUncenteredMatrix=Fn(this.viewMatrix),Sl(this.viewProjectionMatrix,this.projectionMatrix,this.viewMatrix),Sl(this.ViewProjectionMatrixUncentered,this.projectionMatrix,this.viewMatrix)}},{key:"rotateY",value:function(u){this.xzReg+=u*Math.min(this.earthCameraZoom*this.earthCameraZoom,1)}},{key:"rotateX",value:function(u){this.yReg+=u*Math.min(this.earthCameraZoom*this.earthCameraZoom,1)}},{key:"scaleZoom",value:function(u){this.earthCameraZoom+=u,this.earthCameraZoom=Math.max(this.earthCameraZoom,.6)}},{key:"getZoom",value:function(){return 4}},{key:"getZoomScale",value:function(){return Math.pow(2,this.getZoom())}},{key:"getCenter",value:function(){return[0,0]}},{key:"getProjectionMatrix",value:function(){return this.projectionMatrix}},{key:"getModelMatrix",value:function(){return this.modelMatrix}},{key:"getViewMatrix",value:function(){return this.viewMatrix}},{key:"getViewMatrixUncentered",value:function(){return this.viewMatrix}},{key:"getViewProjectionMatrix",value:function(){return this.viewProjectionMatrix}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.viewProjectionMatrix}},{key:"getFocalDistance",value:function(){return 1}},{key:"projectFlat",value:function(u,c){return this.viewport.projectFlat(u,c)}}]),a}(),FC=["id","style","rotation"],Vx,rL;function BC(a){var p=yU();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function yU(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var iL={mapmove:"move",camerachange:"move",zoomchange:"zoom",dragging:"drag"},_R=12,D7=(Vx=(0,ws.b2)(),Vx(rL=function(a){(0,ht.Z)(u,a);var p=BC(u);function u(){var c;(0,bt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;TMath.abs(B.originalEvent.movementY)?B.originalEvent.movementX>0?c.viewport.rotateY(te):B.originalEvent.movementX<0&&c.viewport.rotateY(-te):B.originalEvent.movementY>0?c.viewport.rotateX(te):B.originalEvent.movementY<0&&c.viewport.rotateX(-te));var Me=c.config.offsetCoordinate,Ge=Me===void 0?!0:Me;c.viewport.syncWithMapCamera({viewportHeight:c.map.transform.height,viewportWidth:c.map.transform.width}),c.viewport.getZoom()>_R&&Ge?c.coordinateSystemService.setCoordinateSystem(eh.LNGLAT_OFFSET):c.coordinateSystemService.setCoordinateSystem(eh.LNGLAT),c.cameraChangedCallback(c.viewport)}),c}return(0,Ue.Z)(u,[{key:"lngLatToMercator",value:function(l,g){throw new Error("Method not implemented.")}},{key:"getModelMatrix",value:function(l,g,T,B,G){throw new Error("Method not implemented.")}},{key:"on",value:function(l,g){pw.indexOf(l)!==-1?this.eventEmitter.on(l,g):this.map.on(iL[l]||l,g)}},{key:"off",value:function(l,g){this.map.off(iL[l]||l,g),this.eventEmitter.off(l,g)}},{key:"getMapCanvasContainer",value:function(){return this.map.getCanvasContainer()}},{key:"getSize",value:function(){var l=this.map.transform;return[l.width,l.height]}},{key:"getType",value:function(){return"earth"}},{key:"init",value:function(){var c=(0,ka.Z)(Qi().mark(function g(){var T,B,G,te,Me,Ge,St,Mt;return Qi().wrap(function(kn){for(;;)switch(kn.prev=kn.next){case 0:T=this.config,B=T.id,G=B===void 0?"map":B,te=T.style,Me=te===void 0?"light":te,Ge=T.rotation,St=Ge===void 0?0:Ge,Mt=(0,Vg.Z)(T,FC),this.viewport=new Wx,this.$mapContainer=this.creatMapContainer(G),this.map=new mU((0,Ce.Z)({container:this.$mapContainer,style:this.getMapStyleValue(Me),bearing:St},Mt)),this.map.on("load",this.handleCameraChanged),this.map.on("move",this.handleCameraChanged),this.handleCameraChanged({});case 7:case"end":return kn.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"destroy",value:function(){var l,g;(l=this.$mapContainer)===null||l===void 0||(g=l.parentNode)===null||g===void 0||g.removeChild(this.$mapContainer),this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(l){for(var g,T=arguments.length,B=new Array(T>1?T-1:0),G=1;G1?T-1:0),G=1;GCR&&Mt?c.coordinateSystemService.setCoordinateSystem(eh.LNGLAT_OFFSET):c.coordinateSystemService.setCoordinateSystem(eh.LNGLAT),c.cameraChangedCallback(c.viewport)}),c}return(0,Ue.Z)(u,[{key:"lngLatToCoord",value:function(l){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{x:0,y:0,z:0},T=this.lngLatToMercator(l,0),B=T.x,G=T.y;return[B-g.x,G-g.y]}},{key:"lngLatToMercator",value:function(l,g){var T=KE.fromLngLat(l,g),B=T.x,G=B===void 0?0:B,te=T.y,Me=te===void 0?0:te,Ge=T.z,St=Ge===void 0?0:Ge;return{x:G,y:Me,z:St}}},{key:"getModelMatrix",value:function(l,g,T){var B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],G=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{x:0,y:0,z:0},te=KE.fromLngLat(l,g),Me=te.meterInMercatorCoordinateUnits(),Ge=nn();return ql(Ge,Ge,Yg(te.x-G.x,te.y-G.y,te.z||0-G.z)),il(Ge,Ge,Yg(Me*B[0],-Me*B[1],Me*B[2])),pu(Ge,Ge,T[0]),oc(Ge,Ge,T[1]),cd(Ge,Ge,T[2]),Ge}},{key:"init",value:function(){var c=(0,ka.Z)(Qi().mark(function g(){var T=this,B,G,te,Me,Ge,St,Mt,In,kn,Sr,_i,Vo,zo,Ks,ca;return Qi().wrap(function(al){for(;;)switch(al.prev=al.next){case 0:B=this.config,G=B.id,te=G===void 0?"map":G,Me=B.style,Ge=Me===void 0?"light":Me,St=B.rotation,Mt=St===void 0?0:St,In=B.mapInstance,kn=B.version,Sr=kn===void 0?"DEFAULTMAP":kn,_i=B.mapSize,Vo=_i===void 0?1e4:_i,zo=B.interactive,Ks=zo===void 0?!0:zo,ca=(0,Vg.Z)(B,_U),this.viewport=new OI,this.version=Sr,this.simpleMapCoord.setSize(Vo),Sr===d0.SIMPLE&&ca.center&&(ca.center=this.simpleMapCoord.unproject(ca.center)),In?(this.map=In,this.$mapContainer=this.map.getContainer()):(this.$mapContainer=this.creatMapContainer(te),this.map=new w7((0,Ce.Z)({container:this.$mapContainer,style:this.getMapStyleValue(Ge),bearing:Mt},ca))),this.map.on("load",function(){T.handleCameraChanged()}),Ks&&this.map.on("move",this.handleCameraChanged),setTimeout(function(){T.handleCameraChanged()},100),this.handleCameraChanged();case 10:case"end":return al.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"initMiniMap",value:function(){var c=(0,ka.Z)(Qi().mark(function g(){var T=this,B,G,te,Me,Ge,St,Mt,In,kn,Sr,_i,Vo,zo,Ks;return Qi().wrap(function(Ia){for(;;)switch(Ia.prev=Ia.next){case 0:B=this.config,G=B.id,te=G===void 0?"map":G,Me=B.style,Ge=Me===void 0?"light":Me,St=B.rotation,Mt=St===void 0?0:St,In=B.mapInstance,kn=B.canvas,Sr=kn===void 0?null:kn,_i=B.hasBaseMap,Vo=_i===void 0?!1:_i,zo=(0,Vg.Z)(B,bU),this.viewport=new OI,this.$mapContainer=Sr,this.map=new w7((0,Ce.Z)({container:this.$mapContainer,style:this.getMapStyleValue(Ge),bearing:Mt,canvas:Sr},zo)),Vo?(Ks=this.map.getCenter(),this.handleMiniCameraChanged(Ks.lng,Ks.lat,this.map.getZoom(),this.map.getBearing(),this.map.getPitch()),window.document.addEventListener("mapCameaParams",function(al){var jl=al.e,Wl=jl.longitude,Wu=jl.latitude,Pu=jl.scale,Vc=jl.bearing,dd=jl.pitch;T.handleMiniCameraChanged(Wl,Wu,Pu-1.25,Vc,dd)})):(this.map.on("load",this.handleCameraChanged),this.map.on("move",this.handleCameraChanged),this.handleCameraChanged());case 5:case"end":return Ia.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"exportMap",value:function(l){var g=this.map.getCanvas(),T=l==="jpg"?g==null?void 0:g.toDataURL("image/jpeg"):g==null?void 0:g.toDataURL("image/png");return T}}]),u}(JE))||xR);function O7(a){var p=oL();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function oL(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var QE=function(a){(0,ht.Z)(u,a);var p=O7(u);function u(){return(0,bt.Z)(this,u),p.apply(this,arguments)}return(0,Ue.Z)(u,[{key:"getServiceConstructor",value:function(){return M7}}]),u}(fA),tY=m(6158),sL=m.n(tY),iS=function(){function a(){(0,bt.Z)(this,a)}return(0,Ue.Z)(a,[{key:"syncWithMapCamera",value:function(u){var c=u.center,l=u.zoom,g=u.pitch,T=u.bearing,B=u.viewportHeight,G=u.viewportWidth;this.viewport=new HE({width:G,height:B,longitude:c&&c[0],latitude:c&&c[1],zoom:l,pitch:g,bearing:T})}},{key:"getZoom",value:function(){return this.viewport.zoom}},{key:"getZoomScale",value:function(){return Math.pow(2,this.getZoom())}},{key:"getCenter",value:function(){return[this.viewport.longitude,this.viewport.latitude]}},{key:"getProjectionMatrix",value:function(){return this.viewport.projectionMatrix}},{key:"getModelMatrix",value:function(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}},{key:"getViewMatrix",value:function(){return this.viewport.viewMatrix}},{key:"getViewMatrixUncentered",value:function(){return this.viewport.viewMatrixUncentered}},{key:"getViewProjectionMatrix",value:function(){return this.viewport.viewProjectionMatrix}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.viewport.viewProjectionMatrix}},{key:"getFocalDistance",value:function(){return 1}},{key:"projectFlat",value:function(u,c){return this.viewport.projectFlat(u,c)}}]),a}(),xU=["id","attributionControl","style","token","rotation","mapInstance"],IA,H1;function CU(a){var p=wR();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function wR(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}function eT(a,p){var u=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,c=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(u||c)&&(p||(p=document),!!p)){var l=p.head||p.getElementsByTagName("head")[0];if(!l){l=p.createElement("head");var g=p.body||p.getElementsByTagName("body")[0];g?g.parentNode.insertBefore(l,g):p.documentElement.appendChild(l)}var T=p.createElement("style");return T.type="text/css",T.styleSheet?T.styleSheet.cssText=a:T.appendChild(p.createTextNode(a)),l.appendChild(T),T}}eT(`.mapboxgl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mapboxgl-canvas{position:absolute;left:0;top:0}.mapboxgl-map:-webkit-full-screen{width:100%;height:100%}.mapboxgl-canary{background-color:salmon}.mapboxgl-canvas-container.mapboxgl-interactive,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass{cursor:-webkit-grab;cursor:grab;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.mapboxgl-canvas-container.mapboxgl-interactive.mapboxgl-track-pointer{cursor:pointer}.mapboxgl-canvas-container.mapboxgl-interactive:active,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass:active{cursor:-webkit-grabbing;cursor:grabbing}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate .mapboxgl-canvas{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.mapboxgl-canvas-container.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-drag-pan .mapboxgl-canvas{-ms-touch-action:pinch-zoom;touch-action:pinch-zoom}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan .mapboxgl-canvas{-ms-touch-action:none;touch-action:none}.mapboxgl-ctrl-bottom-left,.mapboxgl-ctrl-bottom-right,.mapboxgl-ctrl-top-left,.mapboxgl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.mapboxgl-ctrl-top-left{top:0;left:0}.mapboxgl-ctrl-top-right{top:0;right:0}.mapboxgl-ctrl-bottom-left{bottom:0;left:0}.mapboxgl-ctrl-bottom-right{right:0;bottom:0}.mapboxgl-ctrl{clear:both;pointer-events:auto;-webkit-transform:translate(0);transform:translate(0)}.mapboxgl-ctrl-top-left .mapboxgl-ctrl{margin:10px 0 0 10px;float:left}.mapboxgl-ctrl-top-right .mapboxgl-ctrl{margin:10px 10px 0 0;float:right}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl{margin:0 0 10px 10px;float:left}.mapboxgl-ctrl-bottom-right .mapboxgl-ctrl{margin:0 10px 10px 0;float:right}.mapboxgl-ctrl-group{border-radius:4px;background:#fff}.mapboxgl-ctrl-group:not(:empty){-webkit-box-shadow:0 0 2px rgba(0,0,0,.1);box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (-ms-high-contrast:active){.mapboxgl-ctrl-group:not(:empty){-webkit-box-shadow:0 0 0 2px ButtonText;box-shadow:0 0 0 2px ButtonText}}.mapboxgl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:transparent;cursor:pointer}.mapboxgl-ctrl-group button+button{border-top:1px solid #ddd}.mapboxgl-ctrl button .mapboxgl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (-ms-high-contrast:active){.mapboxgl-ctrl-icon{background-color:transparent}.mapboxgl-ctrl-group button+button{border-top:1px solid ButtonText}}.mapboxgl-ctrl button::-moz-focus-inner{border:0;padding:0}.mapboxgl-ctrl-attrib-button:focus,.mapboxgl-ctrl-group button:focus{-webkit-box-shadow:0 0 2px 2px #0096ff;box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl button:disabled{cursor:not-allowed}.mapboxgl-ctrl button:disabled .mapboxgl-ctrl-icon{opacity:.25}.mapboxgl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}.mapboxgl-ctrl-group button:focus:focus-visible{-webkit-box-shadow:0 0 2px 2px #0096ff;box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl-group button:focus:not(:focus-visible){-webkit-box-shadow:none;box-shadow:none}.mapboxgl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.mapboxgl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.mapboxgl-ctrl-group button:focus:only-child{border-radius:inherit}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23999'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23aaa'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='M14 5l1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-waiting .mapboxgl-ctrl-icon{-webkit-animation:mapboxgl-spin 2s linear infinite;animation:mapboxgl-spin 2s linear infinite}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23999'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='M14 5l1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23666'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='M14 5l1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E")}}@-webkit-keyframes mapboxgl-spin{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(1turn)}}@keyframes mapboxgl-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}a.mapboxgl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='88' height='23' viewBox='0 0 88 23' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg opacity='.3' stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cg opacity='.9' fill='%23fff'%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/g%3E%3C/svg%3E")}a.mapboxgl-ctrl-logo.mapboxgl-compact{width:23px}@media (-ms-high-contrast:active){a.mapboxgl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='88' height='23' viewBox='0 0 88 23' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cg fill='%23fff'%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/g%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){a.mapboxgl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='88' height='23' viewBox='0 0 88 23' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg stroke='%23fff' stroke-width='3' fill='%23fff'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/svg%3E")}}.mapboxgl-ctrl.mapboxgl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.mapboxgl-ctrl-attrib.mapboxgl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;border-radius:12px}.mapboxgl-ctrl-attrib.mapboxgl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show,.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner{display:none}.mapboxgl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl-attrib-button,.mapboxgl-ctrl-top-left .mapboxgl-ctrl-attrib-button{left:0}.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-inner,.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-button{display:block}.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.mapboxgl-ctrl-bottom-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;right:0}.mapboxgl-ctrl-top-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{top:0;right:0}.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{top:0;left:0}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;left:0}}@media screen and (-ms-high-contrast:active){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' fill='%23fff'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E")}}@media screen and (-ms-high-contrast:black-on-white){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E")}}.mapboxgl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.mapboxgl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.mapboxgl-ctrl-attrib .mapbox-improve-map{font-weight:700;margin-left:2px}.mapboxgl-attrib-empty{display:none}.mapboxgl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;border:2px solid #333;border-top:#333;padding:0 5px;color:#333;-webkit-box-sizing:border-box;box-sizing:border-box}.mapboxgl-popup{position:absolute;top:0;left:0;display:-webkit-box;display:-ms-flexbox;display:flex;will-change:transform;pointer-events:none}.mapboxgl-popup-anchor-top,.mapboxgl-popup-anchor-top-left,.mapboxgl-popup-anchor-top-right{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.mapboxgl-popup-anchor-bottom,.mapboxgl-popup-anchor-bottom-left,.mapboxgl-popup-anchor-bottom-right{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.mapboxgl-popup-anchor-left{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.mapboxgl-popup-anchor-right{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.mapboxgl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.mapboxgl-popup-anchor-top .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-top:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip{-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip{-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-bottom:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip{-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip{-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.mapboxgl-popup-anchor-left .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-left:none;border-right-color:#fff}.mapboxgl-popup-anchor-right .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-right:none;border-left-color:#fff}.mapboxgl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.mapboxgl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.mapboxgl-popup-content{position:relative;background:#fff;border-radius:3px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.1);box-shadow:0 1px 2px rgba(0,0,0,.1);padding:10px 10px 15px;pointer-events:auto}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-content{border-top-left-radius:0}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-content{border-top-right-radius:0}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-content{border-bottom-left-radius:0}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-content{border-bottom-right-radius:0}.mapboxgl-popup-track-pointer{display:none}.mapboxgl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mapboxgl-map:hover .mapboxgl-popup-track-pointer{display:-webkit-box;display:-ms-flexbox;display:flex}.mapboxgl-map:active .mapboxgl-popup-track-pointer{display:none}.mapboxgl-marker{position:absolute;top:0;left:0;will-change:transform}.mapboxgl-user-location-dot,.mapboxgl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.mapboxgl-user-location-dot:before{content:"";position:absolute;-webkit-animation:mapboxgl-user-location-dot-pulse 2s infinite;animation:mapboxgl-user-location-dot-pulse 2s infinite}.mapboxgl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-shadow:0 0 3px rgba(0,0,0,.35);box-shadow:0 0 3px rgba(0,0,0,.35)}@-webkit-keyframes mapboxgl-user-location-dot-pulse{0%{-webkit-transform:scale(1);opacity:1}70%{-webkit-transform:scale(3);opacity:0}to{-webkit-transform:scale(1);opacity:0}}@keyframes mapboxgl-user-location-dot-pulse{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}70%{-webkit-transform:scale(3);transform:scale(3);opacity:0}to{-webkit-transform:scale(1);transform:scale(1);opacity:0}}.mapboxgl-user-location-dot-stale{background-color:#aaa}.mapboxgl-user-location-dot-stale:after{display:none}.mapboxgl-user-location-accuracy-circle{background-color:rgba(29,161,242,.2);width:1px;height:1px;border-radius:100%}.mapboxgl-crosshair,.mapboxgl-crosshair .mapboxgl-interactive,.mapboxgl-crosshair .mapboxgl-interactive:active{cursor:crosshair}.mapboxgl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}@media print{.mapbox-improve-map{display:none}}`),window.mapboxgl=sL();var SR=0,aL="101MlGsZ2AmmA&access_token=pk.eyJ1IjoiZXhhbXBsZXMiLCJhIjoiY2p0MG01MXRqMW45cjQzb2R6b2ptc3J4MSJ9.zA2W0IkI0c6KaAhJfk9bWg",wU=(IA=(0,ws.b2)(),IA(H1=function(a){(0,ht.Z)(u,a);var p=CU(u);function u(){var c;(0,bt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T1&&arguments[1]!==void 0?arguments[1]:{x:0,y:0,z:0},T=this.lngLatToMercator(l,0),B=T.x,G=T.y;return[B-g.x,G-g.y]}},{key:"lngLatToMercator",value:function(l,g){var T=window.mapboxgl.MercatorCoordinate.fromLngLat(l,g),B=T.x,G=B===void 0?0:B,te=T.y,Me=te===void 0?0:te,Ge=T.z,St=Ge===void 0?0:Ge;return{x:G,y:Me,z:St}}},{key:"getModelMatrix",value:function(l,g,T){var B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],G=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{x:0,y:0,z:0},te=window.mapboxgl.MercatorCoordinate.fromLngLat(l,g),Me=te.meterInMercatorCoordinateUnits(),Ge=nn();return ql(Ge,Ge,Yg(te.x-G.x,te.y-G.y,te.z||0-G.z)),il(Ge,Ge,Yg(Me*B[0],-Me*B[1],Me*B[2])),pu(Ge,Ge,T[0]),oc(Ge,Ge,T[1]),cd(Ge,Ge,T[2]),Ge}},{key:"init",value:function(){var c=(0,ka.Z)(Qi().mark(function g(){var T=this,B,G,te,Me,Ge,St,Mt,In,kn,Sr,_i,Vo,zo;return Qi().wrap(function(ca){for(;;)switch(ca.prev=ca.next){case 0:B=this.config,G=B.id,te=G===void 0?"map":G,Me=B.attributionControl,Ge=Me===void 0?!1:Me,St=B.style,Mt=St===void 0?"light":St,In=B.token,kn=In===void 0?aL:In,Sr=B.rotation,_i=Sr===void 0?0:Sr,Vo=B.mapInstance,zo=(0,Vg.Z)(B,xU),this.viewport=new iS,!Vo&&!window.mapboxgl&&console.error(this.configService.getSceneWarninfo("SDK")),kn===aL&&Mt!=="blank"&&!window.mapboxgl.accessToken&&!Vo&&console.warn(this.configService.getSceneWarninfo("MapToken")),!Vo&&!window.mapboxgl.accessToken&&(window.mapboxgl.accessToken=kn),Vo?(this.map=Vo,this.$mapContainer=this.map.getContainer()):(this.$mapContainer=this.creatMapContainer(te),this.map=new window.mapboxgl.Map((0,Ce.Z)({container:this.$mapContainer,style:this.getMapStyleValue(Mt),attributionControl:Ge,bearing:_i},zo))),this.map.on("load",function(){T.handleCameraChanged()}),this.map.on("move",this.handleCameraChanged),this.handleCameraChanged();case 9:case"end":return ca.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"destroy",value:function(){var l,g;(l=this.$mapContainer)===null||l===void 0||(g=l.parentNode)===null||g===void 0||g.removeChild(this.$mapContainer),this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(l){for(var g,T=arguments.length,B=new Array(T>1?T-1:0),G=1;G1?T-1:0),G=1;G=wb&&l<=this.transform.maxZoom)return this.transform.minZoom=l,this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=l,this.getZoom()>l&&this.setZoom(l),this;throw new Error("maxZoom must be greater than the current minZoom")}},{key:"getMaxZoom",value:function(){return this.transform.maxZoom}},{key:"setMinPitch",value:function(l){if(l=l==null?PA:l,l=PA&&l<=this.transform.maxPitch)return this.transform.minPitch=l,this.getPitch()iT)throw new Error("maxPitch must be less than or equal to ".concat(iT));if(l>=this.transform.minPitch)return this.transform.maxPitch=l,this.getPitch()>l&&this.setPitch(l),this;throw new Error("maxPitch must be greater than the current minPitch")}},{key:"getMaxPitch",value:function(){return this.transform.maxPitch}},{key:"getRenderWorldCopies",value:function(){return this.transform.renderWorldCopies}},{key:"setRenderWorldCopies",value:function(l){this.transform.renderWorldCopies=!!l}},{key:"remove",value:function(){this.container.removeChild(this.canvasContainer),this.canvasContainer=null,this.frame&&(this.frame.cancel(),this.frame=null),this.renderTaskQueue.clear()}},{key:"requestRenderFrame",value:function(l){return this.update(),this.renderTaskQueue.add(l)}},{key:"cancelRenderFrame",value:function(l){return this.renderTaskQueue.remove(l)}},{key:"triggerRepaint",value:function(){var l=this;this.frame||(this.frame=VI(function(g){LA.frame(g),l.frame=null,l.update(g)}))}},{key:"update",value:function(l){var g=this;this.frame||(this.frame=VI(function(T){LA.frame(T),g.frame=null,g.renderTaskQueue.run(l)}))}},{key:"initContainer",value:function(){if(typeof this.options.container=="string"){if(this.container=window.document.getElementById(this.options.container),!this.container)throw new Error("Container '".concat(this.options.container,"' not found."))}else if(this.options.container instanceof HTMLElement)this.container=this.options.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");var l=this.container;l.classList.add("l7-map");var g=this.canvasContainer=qi("div","l7-canvas-container",l);this.options.interactive&&g.classList.add("l7-interactive")}},{key:"initMiniContainer",value:function(){this.container=this.options.canvas,this.canvasContainer=this.container}},{key:"containerDimensions",value:function(){var l=0,g=0;return this.container&&(l=this.container.clientWidth,g=this.container.clientHeight,l=l===0?400:l,g=g===0?300:g),[l,g]}}]),u}(SA),O7=function(){function a(){(0,wt.Z)(this,a),(0,bn.Z)(this,"xzReg",-Math.PI*.6),(0,bn.Z)(this,"yReg",Math.PI*.2),(0,bn.Z)(this,"earthCameraRadius",200),(0,bn.Z)(this,"earthCameraZoom",1),(0,bn.Z)(this,"cameraPosition",z_()),(0,bn.Z)(this,"projectionMatrix",nn()),(0,bn.Z)(this,"modelMatrix",nn()),(0,bn.Z)(this,"viewMatrix",nn()),(0,bn.Z)(this,"viewProjectionMatrix",nn()),(0,bn.Z)(this,"ViewProjectionMatrixUncentered",nn()),(0,bn.Z)(this,"viewUncenteredMatrix",nn())}return(0,He.Z)(a,[{key:"syncWithMapCamera",value:function(u){var c=u.viewportHeight,l=c===void 0?1:c,g=u.viewportWidth,T=g===void 0?1:g,B=T/l,Z=.1,ee=1e4,Pe=20;hi(this.projectionMatrix,Pe,B,Z,ee);var Ze=this.earthCameraRadius*Math.cos(this.xzReg),St=this.earthCameraRadius*Math.sin(this.xzReg),Mt=this.earthCameraRadius*Math.sin(this.yReg);this.cameraPosition=$g(Ze,Mt,St),$2(this.cameraPosition,this.cameraPosition),HN(this.cameraPosition,this.cameraPosition,$g(this.earthCameraRadius,this.earthCameraRadius,this.earthCameraRadius)),Ub(this.cameraPosition,this.cameraPosition,this.earthCameraZoom);var Tn=z_();cD(Tn,this.cameraPosition,$g(0,1,0));var kn=$g(0,1,0);cD(kn,Tn,this.cameraPosition);var vr=$g(0,0,0);Da(this.viewMatrix,this.cameraPosition,vr,kn),this.viewUncenteredMatrix=Fn(this.viewMatrix),Sl(this.viewProjectionMatrix,this.projectionMatrix,this.viewMatrix),Sl(this.ViewProjectionMatrixUncentered,this.projectionMatrix,this.viewMatrix)}},{key:"rotateY",value:function(u){this.xzReg+=u*Math.min(this.earthCameraZoom*this.earthCameraZoom,1)}},{key:"rotateX",value:function(u){this.yReg+=u*Math.min(this.earthCameraZoom*this.earthCameraZoom,1)}},{key:"scaleZoom",value:function(u){this.earthCameraZoom+=u,this.earthCameraZoom=Math.max(this.earthCameraZoom,.6)}},{key:"getZoom",value:function(){return 4}},{key:"getZoomScale",value:function(){return Math.pow(2,this.getZoom())}},{key:"getCenter",value:function(){return[0,0]}},{key:"getProjectionMatrix",value:function(){return this.projectionMatrix}},{key:"getModelMatrix",value:function(){return this.modelMatrix}},{key:"getViewMatrix",value:function(){return this.viewMatrix}},{key:"getViewMatrixUncentered",value:function(){return this.viewMatrix}},{key:"getViewProjectionMatrix",value:function(){return this.viewProjectionMatrix}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.viewProjectionMatrix}},{key:"getFocalDistance",value:function(){return 1}},{key:"projectFlat",value:function(u,c){return this.viewport.projectFlat(u,c)}}]),a}(),dR=["id","style","rotation"],hR,R7;function bU(a){var p=xU();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function xU(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var fR={mapmove:"move",camerachange:"move",zoomchange:"zoom",dragging:"drag"},N7=12,F7=(hR=(0,ws.b2)(),hR(R7=function(a){(0,dt.Z)(u,a);var p=bU(u);function u(){var c;(0,wt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;TMath.abs(B.originalEvent.movementY)?B.originalEvent.movementX>0?c.viewport.rotateY(ee):B.originalEvent.movementX<0&&c.viewport.rotateY(-ee):B.originalEvent.movementY>0?c.viewport.rotateX(ee):B.originalEvent.movementY<0&&c.viewport.rotateX(-ee));var Pe=c.config.offsetCoordinate,Ze=Pe===void 0?!0:Pe;c.viewport.syncWithMapCamera({viewportHeight:c.map.transform.height,viewportWidth:c.map.transform.width}),c.viewport.getZoom()>N7&&Ze?c.coordinateSystemService.setCoordinateSystem(Qd.LNGLAT_OFFSET):c.coordinateSystemService.setCoordinateSystem(Qd.LNGLAT),c.cameraChangedCallback(c.viewport)}),c}return(0,He.Z)(u,[{key:"lngLatToMercator",value:function(l,g){throw new Error("Method not implemented.")}},{key:"getModelMatrix",value:function(l,g,T,B,Z){throw new Error("Method not implemented.")}},{key:"on",value:function(l,g){yC.indexOf(l)!==-1?this.eventEmitter.on(l,g):this.map.on(fR[l]||l,g)}},{key:"off",value:function(l,g){this.map.off(fR[l]||l,g),this.eventEmitter.off(l,g)}},{key:"getMapCanvasContainer",value:function(){return this.map.getCanvasContainer()}},{key:"getSize",value:function(){var l=this.map.transform;return[l.width,l.height]}},{key:"getType",value:function(){return"earth"}},{key:"init",value:function(){var c=(0,Pa.Z)(Qi().mark(function g(){var T,B,Z,ee,Pe,Ze,St,Mt;return Qi().wrap(function(kn){for(;;)switch(kn.prev=kn.next){case 0:T=this.config,B=T.id,Z=B===void 0?"map":B,ee=T.style,Pe=ee===void 0?"light":ee,Ze=T.rotation,St=Ze===void 0?0:Ze,Mt=(0,Ug.Z)(T,dR),this.viewport=new O7,this.$mapContainer=this.creatMapContainer(Z),this.map=new Cb((0,xe.Z)({container:this.$mapContainer,style:this.getMapStyleValue(Pe),bearing:St},Mt)),this.map.on("load",this.handleCameraChanged),this.map.on("move",this.handleCameraChanged),this.handleCameraChanged({});case 7:case"end":return kn.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"destroy",value:function(){var l,g;(l=this.$mapContainer)===null||l===void 0||(g=l.parentNode)===null||g===void 0||g.removeChild(this.$mapContainer),this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(l){for(var g,T=arguments.length,B=new Array(T>1?T-1:0),Z=1;Z1?T-1:0),Z=1;ZoL&&Mt?c.coordinateSystemService.setCoordinateSystem(Qd.LNGLAT_OFFSET):c.coordinateSystemService.setCoordinateSystem(Qd.LNGLAT),c.cameraChangedCallback(c.viewport)}),c}return(0,He.Z)(u,[{key:"lngLatToCoord",value:function(l){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{x:0,y:0,z:0},T=this.lngLatToMercator(l,0),B=T.x,Z=T.y;return[B-g.x,Z-g.y]}},{key:"lngLatToMercator",value:function(l,g){var T=wA.fromLngLat(l,g),B=T.x,Z=B===void 0?0:B,ee=T.y,Pe=ee===void 0?0:ee,Ze=T.z,St=Ze===void 0?0:Ze;return{x:Z,y:Pe,z:St}}},{key:"getModelMatrix",value:function(l,g,T){var B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],Z=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{x:0,y:0,z:0},ee=wA.fromLngLat(l,g),Pe=ee.meterInMercatorCoordinateUnits(),Ze=nn();return Kl(Ze,Ze,$g(ee.x-Z.x,ee.y-Z.y,ee.z||0-Z.z)),rl(Ze,Ze,$g(Pe*B[0],-Pe*B[1],Pe*B[2])),pu(Ze,Ze,T[0]),ic(Ze,Ze,T[1]),od(Ze,Ze,T[2]),Ze}},{key:"init",value:function(){var c=(0,Pa.Z)(Qi().mark(function g(){var T=this,B,Z,ee,Pe,Ze,St,Mt,Tn,kn,vr,wi,zo,$o,Ks,ra;return Qi().wrap(function(vl){for(;;)switch(vl.prev=vl.next){case 0:B=this.config,Z=B.id,ee=Z===void 0?"map":Z,Pe=B.style,Ze=Pe===void 0?"light":Pe,St=B.rotation,Mt=St===void 0?0:St,Tn=B.mapInstance,kn=B.version,vr=kn===void 0?"DEFAULTMAP":kn,wi=B.mapSize,zo=wi===void 0?1e4:wi,$o=B.interactive,Ks=$o===void 0?!0:$o,ra=(0,Ug.Z)(B,iL),this.viewport=new NI,this.version=vr,this.simpleMapCoord.setSize(zo),vr===d0.SIMPLE&&ra.center&&(ra.center=this.simpleMapCoord.unproject(ra.center)),Tn?(this.map=Tn,this.$mapContainer=this.map.getContainer()):(this.$mapContainer=this.creatMapContainer(ee),this.map=new cR((0,xe.Z)({container:this.$mapContainer,style:this.getMapStyleValue(Ze),bearing:Mt},ra))),this.map.on("load",function(){T.handleCameraChanged()}),Ks&&this.map.on("move",this.handleCameraChanged),setTimeout(function(){T.handleCameraChanged()},100),this.handleCameraChanged();case 10:case"end":return vl.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"initMiniMap",value:function(){var c=(0,Pa.Z)(Qi().mark(function g(){var T=this,B,Z,ee,Pe,Ze,St,Mt,Tn,kn,vr,wi,zo,$o,Ks;return Qi().wrap(function(La){for(;;)switch(La.prev=La.next){case 0:B=this.config,Z=B.id,ee=Z===void 0?"map":Z,Pe=B.style,Ze=Pe===void 0?"light":Pe,St=B.rotation,Mt=St===void 0?0:St,Tn=B.mapInstance,kn=B.canvas,vr=kn===void 0?null:kn,wi=B.hasBaseMap,zo=wi===void 0?!1:wi,$o=(0,Ug.Z)(B,oT),this.viewport=new NI,this.$mapContainer=vr,this.map=new cR((0,xe.Z)({container:this.$mapContainer,style:this.getMapStyleValue(Ze),bearing:Mt,canvas:vr},$o)),zo?(Ks=this.map.getCenter(),this.handleMiniCameraChanged(Ks.lng,Ks.lat,this.map.getZoom(),this.map.getBearing(),this.map.getPitch()),window.document.addEventListener("mapCameaParams",function(vl){var Wl=vl.e,Jl=Wl.longitude,ju=Wl.latitude,Ku=Wl.scale,Jc=Wl.bearing,gd=Wl.pitch;T.handleMiniCameraChanged(Jl,ju,Ku-1.25,Jc,gd)})):(this.map.on("load",this.handleCameraChanged),this.map.on("move",this.handleCameraChanged),this.handleCameraChanged());case 5:case"end":return La.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"exportMap",value:function(l){var g=this.map.getCanvas(),T=l==="jpg"?g==null?void 0:g.toDataURL("image/jpeg"):g==null?void 0:g.toDataURL("image/png");return T}}]),u}(Zx))||$7);function SU(a){var p=gR();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function gR(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var sT=function(a){(0,dt.Z)(u,a);var p=SU(u);function u(){return(0,wt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"getServiceConstructor",value:function(){return m_}}]),u}(WC),mR=m(17369),fS=m.n(mR),EU=function(){function a(){(0,wt.Z)(this,a)}return(0,He.Z)(a,[{key:"syncWithMapCamera",value:function(u){var c=u.center,l=u.zoom,g=u.pitch,T=u.bearing,B=u.viewportHeight,Z=u.viewportWidth;this.viewport=new eT({width:Z,height:B,longitude:c&&c[0],latitude:c&&c[1],zoom:l,pitch:g,bearing:T})}},{key:"getZoom",value:function(){return this.viewport.zoom}},{key:"getZoomScale",value:function(){return Math.pow(2,this.getZoom())}},{key:"getCenter",value:function(){return[this.viewport.longitude,this.viewport.latitude]}},{key:"getProjectionMatrix",value:function(){return this.viewport.projectionMatrix}},{key:"getModelMatrix",value:function(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}},{key:"getViewMatrix",value:function(){return this.viewport.viewMatrix}},{key:"getViewMatrixUncentered",value:function(){return this.viewport.viewMatrixUncentered}},{key:"getViewProjectionMatrix",value:function(){return this.viewport.viewProjectionMatrix}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.viewport.viewProjectionMatrix}},{key:"getFocalDistance",value:function(){return 1}},{key:"projectFlat",value:function(u,c){return this.viewport.projectFlat(u,c)}}]),a}(),TU=["id","attributionControl","style","token","rotation","mapInstance"],W7,aT;function sk(a){var p=sL();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function sL(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}function vR(a,p){var u=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,c=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(u||c)&&(p||(p=document),!!p)){var l=p.head||p.getElementsByTagName("head")[0];if(!l){l=p.createElement("head");var g=p.body||p.getElementsByTagName("body")[0];g?g.parentNode.insertBefore(l,g):p.documentElement.appendChild(l)}var T=p.createElement("style");return T.type="text/css",T.styleSheet?T.styleSheet.cssText=a:T.appendChild(p.createTextNode(a)),l.appendChild(T),T}}vR(`.mapboxgl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mapboxgl-canvas{position:absolute;left:0;top:0}.mapboxgl-map:-webkit-full-screen{width:100%;height:100%}.mapboxgl-canary{background-color:salmon}.mapboxgl-canvas-container.mapboxgl-interactive,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass{cursor:-webkit-grab;cursor:grab;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.mapboxgl-canvas-container.mapboxgl-interactive.mapboxgl-track-pointer{cursor:pointer}.mapboxgl-canvas-container.mapboxgl-interactive:active,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass:active{cursor:-webkit-grabbing;cursor:grabbing}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate .mapboxgl-canvas{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.mapboxgl-canvas-container.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-drag-pan .mapboxgl-canvas{-ms-touch-action:pinch-zoom;touch-action:pinch-zoom}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan .mapboxgl-canvas{-ms-touch-action:none;touch-action:none}.mapboxgl-ctrl-bottom-left,.mapboxgl-ctrl-bottom-right,.mapboxgl-ctrl-top-left,.mapboxgl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.mapboxgl-ctrl-top-left{top:0;left:0}.mapboxgl-ctrl-top-right{top:0;right:0}.mapboxgl-ctrl-bottom-left{bottom:0;left:0}.mapboxgl-ctrl-bottom-right{right:0;bottom:0}.mapboxgl-ctrl{clear:both;pointer-events:auto;-webkit-transform:translate(0);transform:translate(0)}.mapboxgl-ctrl-top-left .mapboxgl-ctrl{margin:10px 0 0 10px;float:left}.mapboxgl-ctrl-top-right .mapboxgl-ctrl{margin:10px 10px 0 0;float:right}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl{margin:0 0 10px 10px;float:left}.mapboxgl-ctrl-bottom-right .mapboxgl-ctrl{margin:0 10px 10px 0;float:right}.mapboxgl-ctrl-group{border-radius:4px;background:#fff}.mapboxgl-ctrl-group:not(:empty){-webkit-box-shadow:0 0 2px rgba(0,0,0,.1);box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (-ms-high-contrast:active){.mapboxgl-ctrl-group:not(:empty){-webkit-box-shadow:0 0 0 2px ButtonText;box-shadow:0 0 0 2px ButtonText}}.mapboxgl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:transparent;cursor:pointer}.mapboxgl-ctrl-group button+button{border-top:1px solid #ddd}.mapboxgl-ctrl button .mapboxgl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (-ms-high-contrast:active){.mapboxgl-ctrl-icon{background-color:transparent}.mapboxgl-ctrl-group button+button{border-top:1px solid ButtonText}}.mapboxgl-ctrl button::-moz-focus-inner{border:0;padding:0}.mapboxgl-ctrl-attrib-button:focus,.mapboxgl-ctrl-group button:focus{-webkit-box-shadow:0 0 2px 2px #0096ff;box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl button:disabled{cursor:not-allowed}.mapboxgl-ctrl button:disabled .mapboxgl-ctrl-icon{opacity:.25}.mapboxgl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}.mapboxgl-ctrl-group button:focus:focus-visible{-webkit-box-shadow:0 0 2px 2px #0096ff;box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl-group button:focus:not(:focus-visible){-webkit-box-shadow:none;box-shadow:none}.mapboxgl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.mapboxgl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.mapboxgl-ctrl-group button:focus:only-child{border-radius:inherit}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23999'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23aaa'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='M14 5l1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-waiting .mapboxgl-ctrl-icon{-webkit-animation:mapboxgl-spin 2s linear infinite;animation:mapboxgl-spin 2s linear infinite}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23999'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='M14 5l1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23666'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='M14 5l1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E")}}@-webkit-keyframes mapboxgl-spin{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(1turn)}}@keyframes mapboxgl-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}a.mapboxgl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='88' height='23' viewBox='0 0 88 23' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg opacity='.3' stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cg opacity='.9' fill='%23fff'%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/g%3E%3C/svg%3E")}a.mapboxgl-ctrl-logo.mapboxgl-compact{width:23px}@media (-ms-high-contrast:active){a.mapboxgl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='88' height='23' viewBox='0 0 88 23' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cg fill='%23fff'%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/g%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){a.mapboxgl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='88' height='23' viewBox='0 0 88 23' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg stroke='%23fff' stroke-width='3' fill='%23fff'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/svg%3E")}}.mapboxgl-ctrl.mapboxgl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.mapboxgl-ctrl-attrib.mapboxgl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;border-radius:12px}.mapboxgl-ctrl-attrib.mapboxgl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show,.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner{display:none}.mapboxgl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl-attrib-button,.mapboxgl-ctrl-top-left .mapboxgl-ctrl-attrib-button{left:0}.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-inner,.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-button{display:block}.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.mapboxgl-ctrl-bottom-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;right:0}.mapboxgl-ctrl-top-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{top:0;right:0}.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{top:0;left:0}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;left:0}}@media screen and (-ms-high-contrast:active){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' fill='%23fff'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E")}}@media screen and (-ms-high-contrast:black-on-white){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E")}}.mapboxgl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.mapboxgl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.mapboxgl-ctrl-attrib .mapbox-improve-map{font-weight:700;margin-left:2px}.mapboxgl-attrib-empty{display:none}.mapboxgl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;border:2px solid #333;border-top:#333;padding:0 5px;color:#333;-webkit-box-sizing:border-box;box-sizing:border-box}.mapboxgl-popup{position:absolute;top:0;left:0;display:-webkit-box;display:-ms-flexbox;display:flex;will-change:transform;pointer-events:none}.mapboxgl-popup-anchor-top,.mapboxgl-popup-anchor-top-left,.mapboxgl-popup-anchor-top-right{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.mapboxgl-popup-anchor-bottom,.mapboxgl-popup-anchor-bottom-left,.mapboxgl-popup-anchor-bottom-right{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.mapboxgl-popup-anchor-left{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.mapboxgl-popup-anchor-right{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.mapboxgl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.mapboxgl-popup-anchor-top .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-top:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip{-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip{-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-bottom:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip{-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip{-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.mapboxgl-popup-anchor-left .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-left:none;border-right-color:#fff}.mapboxgl-popup-anchor-right .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-right:none;border-left-color:#fff}.mapboxgl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.mapboxgl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.mapboxgl-popup-content{position:relative;background:#fff;border-radius:3px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.1);box-shadow:0 1px 2px rgba(0,0,0,.1);padding:10px 10px 15px;pointer-events:auto}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-content{border-top-left-radius:0}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-content{border-top-right-radius:0}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-content{border-bottom-left-radius:0}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-content{border-bottom-right-radius:0}.mapboxgl-popup-track-pointer{display:none}.mapboxgl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mapboxgl-map:hover .mapboxgl-popup-track-pointer{display:-webkit-box;display:-ms-flexbox;display:flex}.mapboxgl-map:active .mapboxgl-popup-track-pointer{display:none}.mapboxgl-marker{position:absolute;top:0;left:0;will-change:transform}.mapboxgl-user-location-dot,.mapboxgl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.mapboxgl-user-location-dot:before{content:"";position:absolute;-webkit-animation:mapboxgl-user-location-dot-pulse 2s infinite;animation:mapboxgl-user-location-dot-pulse 2s infinite}.mapboxgl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-shadow:0 0 3px rgba(0,0,0,.35);box-shadow:0 0 3px rgba(0,0,0,.35)}@-webkit-keyframes mapboxgl-user-location-dot-pulse{0%{-webkit-transform:scale(1);opacity:1}70%{-webkit-transform:scale(3);opacity:0}to{-webkit-transform:scale(1);opacity:0}}@keyframes mapboxgl-user-location-dot-pulse{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}70%{-webkit-transform:scale(3);transform:scale(3);opacity:0}to{-webkit-transform:scale(1);transform:scale(1);opacity:0}}.mapboxgl-user-location-dot-stale{background-color:#aaa}.mapboxgl-user-location-dot-stale:after{display:none}.mapboxgl-user-location-accuracy-circle{background-color:rgba(29,161,242,.2);width:1px;height:1px;border-radius:100%}.mapboxgl-crosshair,.mapboxgl-crosshair .mapboxgl-interactive,.mapboxgl-crosshair .mapboxgl-interactive:active{cursor:crosshair}.mapboxgl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}@media print{.mapbox-improve-map{display:none}}`),window.mapboxgl=fS();var DU=0,ak="101MlGsZ2AmmA&access_token=pk.eyJ1IjoiZXhhbXBsZXMiLCJhIjoiY2p0MG01MXRqMW45cjQzb2R6b2ptc3J4MSJ9.zA2W0IkI0c6KaAhJfk9bWg",AU=(W7=(0,ws.b2)(),W7(aT=function(a){(0,dt.Z)(u,a);var p=sk(u);function u(){var c;(0,wt.Z)(this,u);for(var l=arguments.length,g=new Array(l),T=0;T1&&arguments[1]!==void 0?arguments[1]:{x:0,y:0,z:0},T=this.lngLatToMercator(l,0),B=T.x,Z=T.y;return[B-g.x,Z-g.y]}},{key:"lngLatToMercator",value:function(l,g){var T=window.mapboxgl.MercatorCoordinate.fromLngLat(l,g),B=T.x,Z=B===void 0?0:B,ee=T.y,Pe=ee===void 0?0:ee,Ze=T.z,St=Ze===void 0?0:Ze;return{x:Z,y:Pe,z:St}}},{key:"getModelMatrix",value:function(l,g,T){var B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],Z=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{x:0,y:0,z:0},ee=window.mapboxgl.MercatorCoordinate.fromLngLat(l,g),Pe=ee.meterInMercatorCoordinateUnits(),Ze=nn();return Kl(Ze,Ze,$g(ee.x-Z.x,ee.y-Z.y,ee.z||0-Z.z)),rl(Ze,Ze,$g(Pe*B[0],-Pe*B[1],Pe*B[2])),pu(Ze,Ze,T[0]),ic(Ze,Ze,T[1]),od(Ze,Ze,T[2]),Ze}},{key:"init",value:function(){var c=(0,Pa.Z)(Qi().mark(function g(){var T=this,B,Z,ee,Pe,Ze,St,Mt,Tn,kn,vr,wi,zo,$o;return Qi().wrap(function(ra){for(;;)switch(ra.prev=ra.next){case 0:B=this.config,Z=B.id,ee=Z===void 0?"map":Z,Pe=B.attributionControl,Ze=Pe===void 0?!1:Pe,St=B.style,Mt=St===void 0?"light":St,Tn=B.token,kn=Tn===void 0?ak:Tn,vr=B.rotation,wi=vr===void 0?0:vr,zo=B.mapInstance,$o=(0,Ug.Z)(B,TU),this.viewport=new EU,!zo&&!window.mapboxgl&&console.error(this.configService.getSceneWarninfo("SDK")),kn===ak&&Mt!=="blank"&&!window.mapboxgl.accessToken&&!zo&&console.warn(this.configService.getSceneWarninfo("MapToken")),!zo&&!window.mapboxgl.accessToken&&(window.mapboxgl.accessToken=kn),zo?(this.map=zo,this.$mapContainer=this.map.getContainer()):(this.$mapContainer=this.creatMapContainer(ee),this.map=new window.mapboxgl.Map((0,xe.Z)({container:this.$mapContainer,style:this.getMapStyleValue(Mt),attributionControl:Ze,bearing:wi},$o))),this.map.on("load",function(){T.handleCameraChanged()}),this.map.on("move",this.handleCameraChanged),this.handleCameraChanged();case 9:case"end":return ra.stop()}},g,this)}));function l(){return c.apply(this,arguments)}return l}()},{key:"destroy",value:function(){var l,g;(l=this.$mapContainer)===null||l===void 0||(g=l.parentNode)===null||g===void 0||g.removeChild(this.$mapContainer),this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(l){for(var g,T=arguments.length,B=new Array(T>1?T-1:0),Z=1;Z1?T-1:0),Z=1;Z0&&arguments[0]!==void 0?arguments[0]:{};this.texture(u)}},{key:"bind",value:function(){this.texture._texture.bind()}},{key:"resize",value:function(u){var c=u.width,l=u.height;this.texture.resize(c,l),this.width=c,this.height=l}},{key:"getSize",value:function(){return[this.width,this.height]}},{key:"destroy",value:function(){if(!this.isDestroy){var u;(u=this.texture)===null||u===void 0||u.destroy()}this.isDestroy=!0}}]),a}(),pk,gk,LR=(pk=(0,ws.b2)(),pk(gk=function(){function a(){var p=this;(0,bt.Z)(this,a),(0,bn.Z)(this,"createModel",function(u){return new gL(p.gl,u)}),(0,bn.Z)(this,"createAttribute",function(u){return new TU(p.gl,u)}),(0,bn.Z)(this,"createBuffer",function(u){return new IR(p.gl,u)}),(0,bn.Z)(this,"createElements",function(u){return new R7(p.gl,u)}),(0,bn.Z)(this,"createTexture2D",function(u){return new Qb(p.gl,u)}),(0,bn.Z)(this,"createFramebuffer",function(u){return new N7(p.gl,u)}),(0,bn.Z)(this,"useFramebuffer",function(u,c){p.gl({framebuffer:u?u.get():null})(c)}),(0,bn.Z)(this,"clear",function(u){var c,l=u.color,g=u.depth,T=u.stencil,B=u.framebuffer,G=B===void 0?null:B,te={color:l,depth:g,stencil:T};te.framebuffer=G===null?G:G.get(),(c=p.gl)===null||c===void 0||c.clear(te)}),(0,bn.Z)(this,"viewport",function(u){var c=u.x,l=u.y,g=u.width,T=u.height;p.gl._gl.viewport(c,l,g,T),p.width=g,p.height=T,p.gl._refresh()}),(0,bn.Z)(this,"readPixels",function(u){var c=u.framebuffer,l=u.x,g=u.y,T=u.width,B=u.height,G={x:l,y:g,width:T,height:B};return c&&(G.framebuffer=c.get()),p.gl.read(G)}),(0,bn.Z)(this,"getViewportSize",function(){return{width:p.gl._gl.drawingBufferWidth,height:p.gl._gl.drawingBufferHeight}}),(0,bn.Z)(this,"getContainer",function(){var u;return(u=p.canvas)===null||u===void 0?void 0:u.parentElement}),(0,bn.Z)(this,"getCanvas",function(){return p.canvas}),(0,bn.Z)(this,"getGLContext",function(){return p.gl._gl}),(0,bn.Z)(this,"destroy",function(){var u,c,l;p.canvas=null,(u=p.gl)===null||u===void 0||(c=u._gl)===null||c===void 0||(l=c.getExtension("WEBGL_lose_context"))===null||l===void 0||l.loseContext(),p.gl.destroy(),p.gl=null})}return(0,Ue.Z)(a,[{key:"init",value:function(){var p=(0,ka.Z)(Qi().mark(function c(l,g,T){var B=this;return Qi().wrap(function(te){for(;;)switch(te.prev=te.next){case 0:if(this.canvas=l,!T){te.next=5;break}this.gl=T,te.next=8;break;case 5:return te.next=7,new Promise(function(Me,Ge){ER()({canvas:B.canvas,attributes:{alpha:!0,antialias:g.antialias,premultipliedAlpha:!0,preserveDrawingBuffer:g.preserveDrawingBuffer,stencil:g.stencil},extensions:["OES_element_index_uint","OES_standard_derivatives","ANGLE_instanced_arrays"],optionalExtensions:["oes_texture_float_linear","OES_texture_float","EXT_texture_filter_anisotropic","EXT_blend_minmax","WEBGL_depth_texture","WEBGL_lose_context"],profile:!0,onDone:function(Mt,In){(Mt||!In)&&Ge(Mt),Me(In)}})});case 7:this.gl=te.sent;case 8:this.extensionObject={OES_texture_float:this.testExtension("OES_texture_float")};case 9:case"end":return te.stop()}},c,this)}));function u(c,l,g){return p.apply(this,arguments)}return u}()},{key:"getPointSizeRange",value:function(){return this.gl._gl.getParameter(this.gl._gl.ALIASED_POINT_SIZE_RANGE)}},{key:"testExtension",value:function(u){return!!this.getGLContext().getExtension(u)}},{key:"setState",value:function(){this.gl({cull:{enable:!1,face:"back"},viewport:{x:0,y:0,height:this.width,width:this.height},blend:{enable:!0,equation:"add"},framebuffer:null}),this.gl._refresh()}},{key:"setBaseState",value:function(){this.gl({cull:{enable:!1,face:"back"},viewport:{x:0,y:0,height:this.width,width:this.height},blend:{enable:!1,equation:"add"},framebuffer:null}),this.gl._refresh()}},{key:"setCustomLayerDefaults",value:function(){var u=this.getGLContext();u.disable(u.CULL_FACE)}},{key:"setDirty",value:function(u){this.isDirty=u}},{key:"getDirty",value:function(){return this.isDirty}}]),a}())||gk);function PR(a){var p=kR();return function(){var c=(0,mt.Z)(a),l;if(p){var g=(0,mt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function kR(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var mL=["selectstart","selecting","selectend"],MR=function(a){(0,ht.Z)(u,a);var p=PR(u);function u(c){var l,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,bt.Z)(this,u),l=p.call(this),(0,bn.Z)((0,as.Z)(l),"isEnable",!1),(0,bn.Z)((0,as.Z)(l),"onDragStart",function(T){l.box.style.display="block",l.startEvent=l.endEvent=T,l.syncBoxBound(),l.emit("selectstart",l.getLngLatBox(),l.startEvent,l.endEvent)}),(0,bn.Z)((0,as.Z)(l),"onDragging",function(T){l.endEvent=T,l.syncBoxBound(),l.emit("selecting",l.getLngLatBox(),l.startEvent,l.endEvent)}),(0,bn.Z)((0,as.Z)(l),"onDragEnd",function(T){l.endEvent=T,l.box.style.display="none",l.emit("selectend",l.getLngLatBox(),l.startEvent,l.endEvent)}),l.scene=c,l.options=g,l}return(0,Ue.Z)(u,[{key:"container",get:function(){return this.scene.getMapService().getMarkerContainer()}},{key:"enable",value:function(){if(!this.isEnable){var l=this.options.className;if(this.scene.setMapStatus({dragEnable:!1}),this.container.style.cursor="crosshair",!this.box){var g=Ji("div",void 0,this.container);g.classList.add("l7-select-box"),l&&g.classList.add(l),g.style.display="none",this.box=g}this.scene.on("dragstart",this.onDragStart),this.scene.on("dragging",this.onDragging),this.scene.on("dragend",this.onDragEnd),this.isEnable=!0}}},{key:"disable",value:function(){this.isEnable&&(this.scene.setMapStatus({dragEnable:!0}),this.container.style.cursor="auto",this.scene.off("dragstart",this.onDragStart),this.scene.off("dragging",this.onDragging),this.scene.off("dragend",this.onDragEnd),this.isEnable=!1)}},{key:"syncBoxBound",value:function(){var l=this.startEvent,g=l.x,T=l.y,B=this.endEvent,G=B.x,te=B.y,Me=Math.min(g,G),Ge=Math.min(T,te),St=Math.abs(g-G),Mt=Math.abs(T-te);this.box.style.top="".concat(Ge,"px"),this.box.style.left="".concat(Me,"px"),this.box.style.width="".concat(St,"px"),this.box.style.height="".concat(Mt,"px")}},{key:"getLngLatBox",value:function(){var l=this.startEvent.lngLat,g=l.lng,T=l.lat,B=this.endEvent.lngLat,G=B.lng,te=B.lat;return xp([[g,T],[G,te]])}}]),u}(yf.EventEmitter),OR=function(){function a(p){(0,bt.Z)(this,a);var u=p.id,c=p.map,l=p.canvas,g=p.hasBaseMap,T=qm();this.container=T,c.setContainer(T,u,l,g),T.bind(gr.IRendererService).to(LR).inSingletonScope(),this.sceneService=T.get(gr.ISceneService),this.mapService=T.get(gr.IMapService),this.iconService=T.get(gr.IIconService),this.fontService=T.get(gr.IFontService),this.controlService=T.get(gr.IControlService),this.layerService=T.get(gr.ILayerService),this.debugService=T.get(gr.IDebugService),this.debugService.setEnable(p.debug),this.markerService=T.get(gr.IMarkerService),this.interactionService=T.get(gr.IInteractionService),this.popupService=T.get(gr.IPopupService),this.boxSelect=new MR(this,{}),this.initComponent(u),this.sceneService.init(p),this.initControl()}return(0,Ue.Z)(a,[{key:"map",get:function(){return this.mapService.map}},{key:"loaded",get:function(){return this.sceneService.loaded}},{key:"getServiceContainer",value:function(){return this.container}},{key:"getSize",value:function(){return this.mapService.getSize()}},{key:"getMinZoom",value:function(){return this.mapService.getMinZoom()}},{key:"getMaxZoom",value:function(){return this.mapService.getMaxZoom()}},{key:"getType",value:function(){return this.mapService.getType()}},{key:"getMapContainer",value:function(){return this.mapService.getMapContainer()}},{key:"getMapCanvasContainer",value:function(){return this.mapService.getMapCanvasContainer()}},{key:"getMapService",value:function(){return this.mapService}},{key:"getDebugService",value:function(){return this.debugService}},{key:"exportPng",value:function(){var p=(0,ka.Z)(Qi().mark(function c(l){return Qi().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return T.abrupt("return",this.sceneService.exportPng(l));case 1:case"end":return T.stop()}},c,this)}));function u(c){return p.apply(this,arguments)}return u}()},{key:"exportMap",value:function(){var p=(0,ka.Z)(Qi().mark(function c(l){return Qi().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return T.abrupt("return",this.sceneService.exportPng(l));case 1:case"end":return T.stop()}},c,this)}));function u(c){return p.apply(this,arguments)}return u}()},{key:"registerRenderService",value:function(u){var c=this;if(this.sceneService.loaded){var l=new u(this);l.init()}else this.on("loaded",function(){var g=new u(c);g.init()})}},{key:"setBgColor",value:function(u){this.mapService.setBgColor(u)}},{key:"addLayer",value:function(u){var c=this,l=Rb(this.container);if(u.setContainer(l,this.container),this.sceneService.addLayer(u),u.inited){var g=this.initMask(u);this.addMask(g,u.id)}else u.on("inited",function(){var T=c.initMask(u);c.addMask(T,u.id)})}},{key:"initMask",value:function(u){var c=u.getLayerConfig(),l=c.mask,g=c.maskfence,T=c.maskColor,B=T===void 0?"#000":T,G=c.maskOpacity,te=G===void 0?0:G;if(!(!l||!g)){var Me=new _O().source(g).shape("fill").style({color:B,opacity:te});return Me}}},{key:"addMask",value:function(u,c){if(u){var l=this.getLayer(c);if(l){var g=Rb(this.container);u.setContainer(g,this.container),l.addMaskLayer(u),this.sceneService.addMask(u)}else console.warn("parent layer not find!")}}},{key:"getPickedLayer",value:function(){return this.layerService.pickedLayerId}},{key:"getLayers",value:function(){return this.layerService.getLayers()}},{key:"getLayer",value:function(u){return this.layerService.getLayer(u)}},{key:"getLayerByName",value:function(u){return this.layerService.getLayerByName(u)}},{key:"removeLayer",value:function(){var p=(0,ka.Z)(Qi().mark(function c(l,g){return Qi().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.next=2,this.layerService.remove(l,g);case 2:case"end":return B.stop()}},c,this)}));function u(c,l){return p.apply(this,arguments)}return u}()},{key:"removeAllLayer",value:function(){var p=(0,ka.Z)(Qi().mark(function c(){return Qi().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,this.layerService.removeAllLayers();case 2:case"end":return g.stop()}},c,this)}));function u(){return p.apply(this,arguments)}return u}()},{key:"render",value:function(){this.sceneService.render()}},{key:"setEnableRender",value:function(u){this.layerService.setEnableRender(u)}},{key:"addIconFont",value:function(u,c){this.fontService.addIconFont(u,c)}},{key:"addIconFonts",value:function(u){var c=this;u.forEach(function(l){var g=(0,Qn.Z)(l,2),T=g[0],B=g[1];c.fontService.addIconFont(T,B)})}},{key:"addFontFace",value:function(u,c){var l=this;this.fontService.once("fontloaded",function(g){l.emit("fontloaded",g)}),this.fontService.addFontFace(u,c)}},{key:"addImage",value:function(){var p=(0,ka.Z)(Qi().mark(function c(l,g){return Qi().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.next=2,this.iconService.addImage(l,g);case 2:case"end":return B.stop()}},c,this)}));function u(c,l){return p.apply(this,arguments)}return u}()},{key:"hasImage",value:function(u){return this.iconService.hasImage(u)}},{key:"removeImage",value:function(u){this.iconService.removeImage(u)}},{key:"addIconFontGlyphs",value:function(u,c){this.fontService.addIconGlyphs(c)}},{key:"addControl",value:function(u){this.controlService.addControl(u,this.container)}},{key:"removeControl",value:function(u){this.controlService.removeControl(u)}},{key:"getControlByName",value:function(u){return this.controlService.getControlByName(u)}},{key:"addMarker",value:function(u){this.markerService.addMarker(u)}},{key:"addMarkerLayer",value:function(u){this.markerService.addMarkerLayer(u)}},{key:"removeMarkerLayer",value:function(u){this.markerService.removeMarkerLayer(u)}},{key:"removeAllMarkers",value:function(){this.markerService.removeAllMarkers()}},{key:"removeAllMakers",value:function(){console.warn("removeAllMakers \u5DF2\u5E9F\u5F03\uFF0C\u8BF7\u4F7F\u7528 removeAllMarkers"),this.markerService.removeAllMarkers()}},{key:"addPopup",value:function(u){this.popupService.addPopup(u)}},{key:"removePopup",value:function(u){this.popupService.removePopup(u)}},{key:"on",value:function(u,c){if(mL.includes(u)){var l;(l=this.boxSelect)===null||l===void 0||l.on(u,c)}else gw.includes(u)?this.sceneService.on(u,c):this.mapService.on(u,c)}},{key:"once",value:function(u,c){if(mL.includes(u)){var l;(l=this.boxSelect)===null||l===void 0||l.once(u,c)}else gw.includes(u)?this.sceneService.once(u,c):this.mapService.once(u,c)}},{key:"emit",value:function(u,c){gw.indexOf(u)===-1?this.mapService.on(u,c):this.sceneService.emit(u,c)}},{key:"off",value:function(u,c){if(mL.includes(u)){var l;(l=this.boxSelect)===null||l===void 0||l.off(u,c)}else gw.includes(u)?this.sceneService.off(u,c):this.mapService.off(u,c)}},{key:"getZoom",value:function(){return this.mapService.getZoom()}},{key:"getCenter",value:function(u){return this.mapService.getCenter(u)}},{key:"setCenter",value:function(u,c){return this.mapService.setCenter(u,c)}},{key:"getPitch",value:function(){return this.mapService.getPitch()}},{key:"setPitch",value:function(u){return this.mapService.setPitch(u)}},{key:"getRotation",value:function(){return this.mapService.getRotation()}},{key:"getBounds",value:function(){return this.mapService.getBounds()}},{key:"setRotation",value:function(u){this.mapService.setRotation(u)}},{key:"zoomIn",value:function(){this.mapService.zoomIn()}},{key:"zoomOut",value:function(){this.mapService.zoomOut()}},{key:"panTo",value:function(u){this.mapService.panTo(u)}},{key:"panBy",value:function(u,c){this.mapService.panBy(u,c)}},{key:"getContainer",value:function(){return this.mapService.getContainer()}},{key:"setZoom",value:function(u){this.mapService.setZoom(u)}},{key:"fitBounds",value:function(u,c){var l=this.sceneService.getSceneConfig(),g=l.fitBoundsOptions,T=l.animate;this.mapService.fitBounds(u,c||(0,Ce.Z)((0,Ce.Z)({},g),{},{animate:T}))}},{key:"setZoomAndCenter",value:function(u,c){this.mapService.setZoomAndCenter(u,c)}},{key:"setMapStyle",value:function(u){this.mapService.setMapStyle(u)}},{key:"setMapStatus",value:function(u){this.mapService.setMapStatus(u)}},{key:"pixelToLngLat",value:function(u){return this.mapService.pixelToLngLat(u)}},{key:"lngLatToPixel",value:function(u){return this.mapService.lngLatToPixel(u)}},{key:"containerToLngLat",value:function(u){return this.mapService.containerToLngLat(u)}},{key:"lngLatToContainer",value:function(u){return this.mapService.lngLatToContainer(u)}},{key:"destroy",value:function(){this.sceneService.destroy()}},{key:"registerPostProcessingPass",value:function(u,c){this.container.bind(gr.IPostProcessingPass).to(u).whenTargetNamed(c)}},{key:"enableShaderPick",value:function(){this.layerService.enableShaderPick()}},{key:"diasbleShaderPick",value:function(){this.layerService.disableShaderPick()}},{key:"enableBoxSelect",value:function(){var u=this,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.boxSelect.enable(),c&&this.boxSelect.once("selectend",function(){u.disableBoxSelect()})}},{key:"disableBoxSelect",value:function(){this.boxSelect.disable()}},{key:"getProtocol",value:function(u){return to.REGISTERED_PROTOCOLS[u]}},{key:"getPointSizeRange",value:function(){return this.sceneService.getPointSizeRange()}},{key:"initComponent",value:function(u){this.controlService.init({container:ia(u)},this.container),this.markerService.init(this.container),this.popupService.init(this.container)}},{key:"initControl",value:function(){var u=this.sceneService.getSceneConfig(),c=u.logoVisible,l=u.logoPosition;c&&this.addControl(new Fl({position:l}))}}],[{key:"addProtocol",value:function(u,c){to.REGISTERED_PROTOCOLS[u]=c}},{key:"removeProtocol",value:function(u){delete to.REGISTERED_PROTOCOLS[u]}}]),a}(),B7="2.17.11"},19752:function(nt,V,m){"use strict";m.d(V,{br:function(){return Ff},ot:function(){return q},l_:function(){return la},$2:function(){return li},Ie:function(){return Df},OB:function(){return hh},w3:function(){return en},Jx:function(){return Gc},CB:function(){return oa},ns:function(){return sg},dW:function(){return ap},GI:function(){return ld},YY:function(){return tp},kp:function(){return Un},jf:function(){return xu},AB:function(){return Cp},Ly:function(){return Td},dN:function(){return Wi},$r:function(){return qr}});var y=m(61329),A=m(67294),b=m(70202),z=function(Le){return function(Oe,et){var hn=(0,A.useRef)(),Lr=(0,A.useRef)(0);(et===void 0||!(0,b.k)(et,hn.current))&&(hn.current=et,Lr.current+=1),Le(Oe,[Lr.current])}},k=z(A.useEffect),N=m(94184),w=m.n(N),I=m(49360),C=m(58146),f=m(290),S="*",P=function(){function Le(){this._events={}}return Le.prototype.on=function(Oe,et,hn){return this._events[Oe]||(this._events[Oe]=[]),this._events[Oe].push({callback:et,once:!!hn}),this},Le.prototype.once=function(Oe,et){return this.on(Oe,et,!0)},Le.prototype.emit=function(Oe){for(var et=this,hn=[],Lr=1;Lr=Le.length?{done:!0}:{done:!1,value:Le[hn++]}},e:function(xa){throw xa},f:Lr}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Cn=!0,ei=!1,Li;return{s:function(){et=et.call(Le)},n:function(){var xa=et.next();return Cn=xa.done,xa},e:function(xa){ei=!0,Li=xa},f:function(){try{!Cn&&et.return!=null&&et.return()}finally{if(ei)throw Li}}}}function ie(Le,Oe){if(Le){if(typeof Le=="string")return de(Le,Oe);var et=Object.prototype.toString.call(Le).slice(8,-1);if(et==="Object"&&Le.constructor&&(et=Le.constructor.name),et==="Map"||et==="Set")return Array.from(Le);if(et==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(et))return de(Le,Oe)}}function de(Le,Oe){(Oe==null||Oe>Le.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);etLe.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);et0&&arguments[0]!==void 0?arguments[0]:{};return Object.entries(Oe!=null?Oe:{}).map(function(et){var hn=Ue(et,2),Lr=hn[0],Cn=hn[1],ei=(0,ct.Z)(Lr),Li=Cn;return typeof Li=="number"?Li="".concat(Li,"px"):typeof Li=="string"&&(Li=Li.replace("'","")),"".concat(ei," :").concat(Li)}).join("; ")};function Er(Le,Oe){return vr(Le)||yo(Le,Oe)||oi(Le,Oe)||Yr()}function Yr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oi(Le,Oe){if(Le){if(typeof Le=="string")return to(Le,Oe);var et=Object.prototype.toString.call(Le).slice(8,-1);if(et==="Object"&&Le.constructor&&(et=Le.constructor.name),et==="Map"||et==="Set")return Array.from(Le);if(et==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(et))return to(Le,Oe)}}function to(Le,Oe){(Oe==null||Oe>Le.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);et=0;--ls){var bs=this.tryEntries[ls],Pl=bs.completion;if(bs.tryLoc==="root")return gi("end");if(bs.tryLoc<=this.prev){var Ys=et.call(bs,"catchLoc"),vl=et.call(bs,"finallyLoc");if(Ys&&vl){if(this.prev=0;--gi){var ls=this.tryEntries[gi];if(ls.tryLoc<=this.prev&&et.call(ls,"finallyLoc")&&this.prev=0;--Rr){var gi=this.tryEntries[Rr];if(gi.finallyLoc===sr)return this.complete(gi.completion,gi.afterLoc),wa(gi),_l}},catch:function(sr){for(var Rr=this.tryEntries.length-1;Rr>=0;--Rr){var gi=this.tryEntries[Rr];if(gi.tryLoc===sr){var ls=gi.completion;if(ls.type==="throw"){var bs=ls.arg;wa(gi)}return bs}}throw new Error("illegal catch attempt")},delegateYield:function(sr,Rr,gi){return this.delegate={iterator:Fs(sr),resultName:Rr,nextLoc:gi},this.method==="next"&&(this.arg=void 0),_l}},Le}function _o(Le,Oe,et,hn,Lr,Cn,ei){try{var Li=Le[Cn](ei),ps=Li.value}catch(xa){et(xa);return}Li.done?Oe(ps):Promise.resolve(ps).then(hn,Lr)}function ci(Le){return function(){var Oe=this,et=arguments;return new Promise(function(hn,Lr){var Cn=Le.apply(Oe,et);function ei(ps){_o(Cn,hn,Lr,ei,Li,"next",ps)}function Li(ps){_o(Cn,hn,Lr,ei,Li,"throw",ps)}ei(void 0)})}}var Bi=function(){var Le=ci(ve().mark(function Oe(et,hn){return ve().wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:if(et!=="Map"){Cn.next=2;break}return Cn.abrupt("return",new y.Map(hn));case 2:if(et!=="Gaode"){Cn.next=6;break}return Cn.abrupt("return",new y.GaodeMap(hn));case 6:if(et!=="GaodeV1"){Cn.next=10;break}return Cn.abrupt("return",new y.GaodeMapV1(hn));case 10:if(et!=="GaodeV2"){Cn.next=12;break}return Cn.abrupt("return",new y.GaodeMapV2(hn));case 12:return Cn.abrupt("return",Promise.resolve(Promise.resolve().then(m.bind(m,61329))).then(function(ei){var Li=ei.Mapbox;return new Li(hn)}));case 13:case"end":return Cn.stop()}},Oe)}));return function(et,hn){return Le.apply(this,arguments)}}(),wi=function(Le,Oe){return Le?Le.map(function(et,hn){return Object.is(Le[hn],Oe==null?void 0:Oe[hn])?-1:hn}).filter(function(et){return et>=0}):Oe?Oe.map(function(et,hn){return hn}):[]},io=function(Le,Oe){var et=(0,A.useRef)();(0,A.useEffect)(function(){var hn=wi(et.current,Oe),Lr=et.current;return et.current=Oe,Le(hn,Lr,Oe)},Oe)},ln=io,Ve=m(45210),_t={onLoaded:"loaded",onDestroy:"destroy",onResize:"resize",onMapMove:"mapmove",onMoveStart:"movestart",onMoveEnd:"moveend",onZoomChange:"zoomchange",onZoomStart:"zoomstart",onZoomEnd:"zoomend",onClick:"click",onDblclick:"dblclick",onContextMenu:"contextmenu",onMouseMove:"mousemove",onMouseWheel:"mousewheel",onMouseDown:"mousedown",onMouseOver:"mouseover",onMouseOut:"mouseout",onMouseUp:"mouseup",onDragStart:"dragstart",onDragging:"dragging",onDragEnd:"dragend"},Ct=Object.keys(_t);function jt(Le){return xt(Le)||Tt(Le)||Ot(Le)||on()}function on(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ot(Le,Oe){if(Le){if(typeof Le=="string")return Ht(Le,Oe);var et=Object.prototype.toString.call(Le).slice(8,-1);if(et==="Object"&&Le.constructor&&(et=Le.constructor.name),et==="Map"||et==="Set")return Array.from(Le);if(et==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(et))return Ht(Le,Oe)}}function Tt(Le){if(typeof Symbol!="undefined"&&Le[Symbol.iterator]!=null||Le["@@iterator"]!=null)return Array.from(Le)}function xt(Le){if(Array.isArray(Le))return Ht(Le)}function Ht(Le,Oe){(Oe==null||Oe>Le.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);etLe.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);et=0)&&Object.prototype.propertyIsEnumerable.call(Le,hn)&&(et[hn]=Le[hn])}return et}function Xn(Le,Oe){if(Le==null)return{};var et={},hn=Object.keys(Le),Lr,Cn;for(Cn=0;Cn=0)&&(et[Lr]=Le[Lr]);return et}var Mr=A.createContext(null),li=(0,A.memo)((0,A.forwardRef)(function(Oe,et){var hn=Oe.id,Lr=Oe.style,Cn=Oe.className,ei=Oe.map,Li=Oe.mapType,ps=Li===void 0?"Gaode":Li,xa=Oe.mapOptions,Sa=xa===void 0?{}:xa,_l=Oe.onLayerManagerCreated,Ql=Oe.onSceneLoaded,Ju=Oe.children,ws=Vn(Oe,hr),Ha=(0,A.useRef)(),gr=(0,A.useState)(null),Ka=xn(gr,2),Ca=Ka[0],Du=Ka[1],jc=(0,A.useRef)({scene:null,layerManager:null}),Qo=jc.current;(0,A.useEffect)(function(){var As,wa=!0,Pa=(0,I.Z)(ei)?Bi(ps,Sa):typeof ei=="function"?ei():ei;return Promise.resolve(Pa).then(function(Fs){if(wa){As=new y.Scene(Ri(Ri({},ws),{},{id:Ha.current,map:Fs}));var gs=new Pt({scene:As});Qo.scene=As,Qo.layerManager=gs,As.once("loaded",function(){Ql&&Ql(As),_l&&_l(gs),Du(As)})}}).catch(function(Fs){console.error(Fs)}),function(){wa=!1,As&&(Qo.scene=null,Qo.layerManager=null,As.destroy())}},[]),Zn(Ca,Oe),(0,A.useImperativeHandle)(et,function(){return{getScene:function(){return Ca},getMap:function(){return Ca.map}}},[Ca]),(0,A.useEffect)(function(){Ca&&Sa.style&&Ca.setMapStyle(Sa.style)},[Sa.style]),k(function(){(0,C.Z)(Ca)||(Sa.center&&(0,f.Z)(Sa.zoom)?Ca.setZoomAndCenter(Sa.zoom,Sa.center):(0,f.Z)(Sa.zoom)?Ca.setZoom(Sa.zoom):Sa.center&&Ca.setCenter(Sa.center))},[Sa.zoom,Sa.center]),(0,A.useEffect)(function(){Ca&&(0,f.Z)(Sa.pitch)&&Ca.setPitch(Sa.pitch)},[Sa.pitch]),(0,A.useEffect)(function(){Ca&&(0,f.Z)(Sa.rotation)&&Ca.setRotation(Sa.rotation)},[Sa.rotation]);var Do=(0,A.useMemo)(function(){return Ri({position:"relative"},Lr)},[Lr]);return A.createElement("div",{id:hn,ref:Ha,style:Do,className:w()("larkmap",Cn)},Ca&&A.createElement(Mr.Provider,{value:Qo},Ju))})),Cr=m(77598),qr=function(){var Oe=(0,A.useContext)(Mr);if(!Oe)throw new Error("The useScene must be used in the LarkMap container");var et=Oe.scene;return et},ii=function(Oe,et,hn){var Lr=qr(),Cn=(0,A.useRef)();(0,A.useEffect)(function(){var ei=new y.Control(hn);return ei.onAdd=function(){return Oe(Lr)},ei.onRemove=function(){},Cn.current=ei,Lr.addControl(ei),function(){typeof et=="function"&&et(Lr),Cn.current=null,Lr.removeControl(ei)}},[]),(0,Cr.Z)(function(){var ei;(ei=Cn.current)===null||ei===void 0||ei.setOptions(hn)},[hn])},rn=function(){var Oe=(0,A.useContext)(Mr);if(!Oe)throw new Error("The useLayerManager must be used in the LarkMap container");var et=Oe.layerManager;return et};function Jn(Le,Oe){return pn(Le)||zt(Le,Oe)||so(Le,Oe)||Vr()}function Vr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function so(Le,Oe){if(Le){if(typeof Le=="string")return rs(Le,Oe);var et=Object.prototype.toString.call(Le).slice(8,-1);if(et==="Object"&&Le.constructor&&(et=Le.constructor.name),et==="Map"||et==="Set")return Array.from(Le);if(et==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(et))return rs(Le,Oe)}}function rs(Le,Oe){(Oe==null||Oe>Le.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);etLe.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);et=0)&&Object.prototype.propertyIsEnumerable.call(Le,hn)&&(et[hn]=Le[hn])}return et}function _a(Le,Oe){if(Le==null)return{};var et={},hn=Object.keys(Le),Lr,Cn;for(Cn=0;Cn=0)&&(et[Lr]=Le[Lr]);return et}var da=function(Oe,et){var hn=et.onCreated,Lr=et.source,Cn=ds(et,yi),ei=rn(),Li=(0,A.useRef)(),ps=(0,A.useRef)(Cn),xa=(0,A.useRef)(Lr);return Li.current||(Li.current=new Oe(et),hn&&Li.current.once("inited",function(){return hn(Li.current)}),ei.addLayer(Li.current)),(0,Cr.Z)(function(){if(Li.current){var Sa=!(0,Tr.Z)(ps.current,Cn);Sa&&(Li.current.update(Cn),ps.current=(0,Qt.Z)(Cn))}},[Cn]),(0,Cr.Z)(function(){if(Li.current){var Sa=Lr.data,_l=ds(Lr,Ln),Ql=xa.current,Ju=Ql.data,ws=ds(Ql,Si),Ha=Sa!==Ju||!(0,Tr.Z)(_l,ws);Ha&&(Li.current.changeData(Lr),xa.current=vi({},Lr))}},[Lr]),(0,A.useEffect)(function(){return function(){Li.current&&(ei.removeLayer(Li.current),Li.current=null)}},[]),Li},zs={onRemove:"remove",onShow:"show",onHide:"hide",onDataUpdate:"dataUpdate",onLegend:"legend",onLegendColor:"legend:color",onLegendSize:"legend:size",onClick:"click",onUnClick:"unclick",onDblClick:"dblclick",onUndblclick:"undblclick",onContextMenu:"contextmenu",onUnContextMenu:"uncontextmenu",onMouseEnter:"mouseenter",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseUp:"mouseup",onMouseDown:"mousedown",onUnMousemove:"unmousemove",onUnMouseup:"unmouseup",onUnMousedown:"unmousedown",onUnPick:"unpick"},ja=function(Oe,et){var hn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:zs,Lr=(0,A.useMemo)(function(){return Object.keys(hn)},[hn]),Cn=function(Sa){Lr.forEach(function(_l){var Ql=hn[_l],Ju=et[_l];_l&&Ju&&Oe[Sa](Ql,Ju)})},ei=function(){return Cn("on")},Li=function(){return Cn("off")},ps=(0,A.useRef)(!0);ps.current&&ei(),(0,A.useEffect)(function(){return ps.current?ps.current=!1:ei(),function(){Li()}},Lr.map(function(xa){return et[xa]})),(0,Ve.Z)(function(){Li()})},Co=null,dl=null,Fr=m(97582),fs={}.toString,jo=function(Le,Oe){return fs.call(Le)==="[object "+Oe+"]"},Es=jo,xs=function(Le){return Es(Le,"Function")},Za=function(Le){return Array.isArray?Array.isArray(Le):Es(Le,"Array")},tl=function(Le){var Oe=typeof Le;return Le!==null&&Oe==="object"||Oe==="function"};function xl(Le,Oe){if(Le){var et;if(Za(Le))for(var hn=0,Lr=Le.length;hn-1;)no.call(Le,Cn,1);return Le},fa=null,Bl=Array.prototype.splice,Ma=function(Oe,et){if(!isArrayLike(Oe))return[];for(var hn=Oe?et.length:0,Lr=hn-1;hn--;){var Cn=void 0,ei=et[hn];(hn===Lr||ei!==Cn)&&(Cn=ei,Bl.call(Oe,ei,1))}return Oe},gl=null,ia=function(Le,Oe,et){if(!Za(Le)&&!vt(Le))return Le;var hn=et;return Qa(Le,function(Lr,Cn){hn=Oe(hn,Lr,Cn)}),hn},Nl=ia,cs=function(Le,Oe){var et=[];if(!isArrayLike(Le))return et;for(var hn=-1,Lr=[],Cn=Le.length;++hnCn[Li])return 1;if(Lr[Li]0},au=null,bn=function(Le,Oe){if(isArray(Le)){for(var et,hn=-1/0,Lr=0;Lrhn&&(et=Cn,hn=ei)}return et}},Eu=function(Le,Oe){if(isArray(Le)){for(var et,hn=1/0,Lr=0;LrLi&&Sa>Li);)if(ps.push(xa),Li-=Sa,ei=ei.substr(Lr),!ei)return ps.join("");for(;xa=ei.substr(0,1),Sa=measureTextWidth(xa,et),!(Sa+Cn>Li);)if(ps.push(xa),Li-=Sa,ei=ei.substr(1),!ei)return ps.join("");return""+ps.join("")+hn},ed=function(){function Le(){this.map={}}return Le.prototype.has=function(Oe){return this.map[Oe]!==void 0},Le.prototype.get=function(Oe,et){var hn=this.map[Oe];return hn===void 0?et:hn},Le.prototype.set=function(Oe,et){this.map[Oe]=et},Le.prototype.clear=function(){this.map={}},Le.prototype.delete=function(Oe){delete this.map[Oe]},Le.prototype.size=function(){return Object.keys(this.map).length},Le}(),Vh=null;function Kh(Le,Oe){return function(){for(var et=[],hn=0;hnLe.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);etLe.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);etLe.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);etLe.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);etLe.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);etLe.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);etLe.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);etLe.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);etLe.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);etLe.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);etLe.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);etLe.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);etLe.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);et=0)&&Object.prototype.propertyIsEnumerable.call(Le,hn)&&(et[hn]=Le[hn])}return et}function P0(Le,Oe){if(Le==null)return{};var et={},hn=Object.keys(Le),Lr,Cn;for(Cn=0;Cn=0)&&(et[Lr]=Le[Lr]);return et}var wp="SECRET_COMBOBOX_MODE_DO_NOT_USE",Xf="larkmap-select",Zh=function(Oe,et){var hn=Oe.prefixCls,Lr=Oe.bordered,Cn=Lr===void 0?!0:Lr,ei=Oe.className,Li=Oe.getPopupContainer,ps=Oe.dropdownClassName,xa=Oe.popupClassName,Sa=Oe.listHeight,_l=Sa===void 0?256:Sa,Ql=Oe.placement,Ju=Oe.listItemHeight,ws=Ju===void 0?24:Ju,Ha=Oe.disabled,gr=Oe.notFoundContent,Ka=Gp(Oe,Qg),Ca=A.useMemo(function(){var Qo=Ka,Do=Qo.mode;if(Do!=="combobox")return Do===wp?"combobox":Do},[Ka]),Du=(0,Lg.Z)(Ka,"suffixIcon","itemIcon"),jc=w()(Rm({},"".concat(Xf,"-borderless"),!Cn),ei);return A.createElement(ug.ZP,Lm({ref:et},Du,{listHeight:_l,listItemHeight:ws,mode:Ca,prefixCls:Xf,placement:Ql,notFoundContent:gr!=null?gr:"\u5F53\u524D\u65E0\u6570\u636E",className:jc,getPopupContainer:Li,dropdownClassName:xa,disabled:Ha}))},a0=A.forwardRef(Zh);a0.SECRET_COMBOBOX_MODE_DO_NOT_USE=wp,a0.Option=ug.Wx,a0.OptGroup=ug.Xo;var k0=a0;function Zg(Le){"@babel/helpers - typeof";return Zg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Oe){return typeof Oe}:function(Oe){return Oe&&typeof Symbol=="function"&&Oe.constructor===Symbol&&Oe!==Symbol.prototype?"symbol":typeof Oe},Zg(Le)}var Vm=["searchParams","showDistrict","showAddress","onSearchFinish","onChange"];function m0(){return m0=Object.assign?Object.assign.bind():function(Le){for(var Oe=1;Oe=0;--ls){var bs=this.tryEntries[ls],Pl=bs.completion;if(bs.tryLoc==="root")return gi("end");if(bs.tryLoc<=this.prev){var Ys=et.call(bs,"catchLoc"),vl=et.call(bs,"finallyLoc");if(Ys&&vl){if(this.prev=0;--gi){var ls=this.tryEntries[gi];if(ls.tryLoc<=this.prev&&et.call(ls,"finallyLoc")&&this.prev=0;--Rr){var gi=this.tryEntries[Rr];if(gi.finallyLoc===sr)return this.complete(gi.completion,gi.afterLoc),wa(gi),_l}},catch:function(sr){for(var Rr=this.tryEntries.length-1;Rr>=0;--Rr){var gi=this.tryEntries[Rr];if(gi.tryLoc===sr){var ls=gi.completion;if(ls.type==="throw"){var bs=ls.arg;wa(gi)}return bs}}throw new Error("illegal catch attempt")},delegateYield:function(sr,Rr,gi){return this.delegate={iterator:Fs(sr),resultName:Rr,nextLoc:gi},this.method==="next"&&(this.arg=void 0),_l}},Le}function $d(Le){return e0(Le)||Wg(Le)||_e(Le)||Y0()}function Y0(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wg(Le){if(typeof Symbol!="undefined"&&Le[Symbol.iterator]!=null||Le["@@iterator"]!=null)return Array.from(Le)}function e0(Le){if(Array.isArray(Le))return at(Le)}function _m(Le,Oe){var et=Object.keys(Le);if(Object.getOwnPropertySymbols){var hn=Object.getOwnPropertySymbols(Le);Oe&&(hn=hn.filter(function(Lr){return Object.getOwnPropertyDescriptor(Le,Lr).enumerable})),et.push.apply(et,hn)}return et}function Um(Le){for(var Oe=1;OeLe.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);et=0)&&Object.prototype.propertyIsEnumerable.call(Le,hn)&&(et[hn]=Le[hn])}return et}function It(Le,Oe){if(Le==null)return{};var et={},hn=Object.keys(Le),Lr,Cn;for(Cn=0;Cn=0)&&(et[Lr]=Le[Lr]);return et}var Ut=k0.Option,Vt=function(Oe){var et=Oe.searchParams,hn=Oe.showDistrict,Lr=Oe.showAddress,Cn=Oe.onSearchFinish,ei=Oe.onChange,Li=Xe(Oe,Vm),ps=(0,A.useState)([]),xa=pe(ps,2),Sa=xa[0],_l=xa[1];(0,A.useEffect)(function(){Cn==null||Cn(Sa)},[Cn,Sa]);var Ql=(0,im.Z)(function(){var Ha=Pg(Gm().mark(function gr(Ka){var Ca,Du,jc,Qo;return Gm().wrap(function(As){for(;;)switch(As.prev=As.next){case 0:if(Ka){As.next=3;break}return _l([]),As.abrupt("return");case 3:return jc=Po(ym,Um(Um({},et),{},{keywords:[].concat($d(((Ca=et.keywords)!==null&&Ca!==void 0?Ca:"").split("|")),[Ka]).filter(function(wa){return!!wa}).join("|")})),As.next=6,fetch(jc);case 6:return As.next=8,As.sent.json();case 8:Qo=As.sent,_l(((Du=Qo==null?void 0:Qo.tips)!==null&&Du!==void 0?Du:[]).filter(function(wa){return wa.location&&wa.location.length}).map(function(wa){var Pa=wa.location.split(","),Fs=pe(Pa,2),gs=Fs[0],Xi=Fs[1];return wa.longitude=+gs,wa.latitude=+Xi,wa}));case 10:case"end":return As.stop()}},gr)}));return function(gr){return Ha.apply(this,arguments)}}(),{wait:1e3}),Ju=Ql.run,ws=(0,A.useCallback)(function(Ha){var gr=Ha&&Sa.find(function(Ka){return Ka.name===Ha});ei==null||ei(Ha||void 0,gr||void 0)},[ei,Sa]);return A.createElement(k0,m0({className:"".concat(wm),onSearch:Ju,onChange:ws,clearIcon:function(){return null}},Li),Sa.map(function(Ha){var gr="".concat(hn?Ha.district:"").concat(Lr?Ha.address:"");return A.createElement(Ut,{key:Ha.id,value:Ha.name},A.createElement("div",{title:Ha.name,className:"".concat(wm,"__option-name")},Ha.name),gr&&A.createElement("div",{title:gr,className:"".concat(wm,"__option-tip")},gr))}))};Vt.defaultProps={placeholder:"\u8BF7\u8F93\u5165\u8981\u641C\u7D22\u5730\u540D",showSearch:!0,allowClear:!0,filterOption:!1,defaultActiveFirstOption:!1,showAddress:!0,showDistrict:!0};var Xt=m(8961),sn=m(53434),mn="larkmap-administrative-location",On="https://restapi.amap.com/v3/geocode/regeo";function lr(Le){"@babel/helpers - typeof";return lr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Oe){return typeof Oe}:function(Oe){return Oe&&typeof Symbol=="function"&&Oe.constructor===Symbol&&Oe!==Symbol.prototype?"symbol":typeof Oe},lr(Le)}function wr(){"use strict";wr=function(){return Le};var Le={},Oe=Object.prototype,et=Oe.hasOwnProperty,hn=Object.defineProperty||function(Xi,sr,Rr){Xi[sr]=Rr.value},Lr=typeof Symbol=="function"?Symbol:{},Cn=Lr.iterator||"@@iterator",ei=Lr.asyncIterator||"@@asyncIterator",Li=Lr.toStringTag||"@@toStringTag";function ps(Xi,sr,Rr){return Object.defineProperty(Xi,sr,{value:Rr,enumerable:!0,configurable:!0,writable:!0}),Xi[sr]}try{ps({},"")}catch(Xi){ps=function(Rr,gi,ls){return Rr[gi]=ls}}function xa(Xi,sr,Rr,gi){var ls=sr&&sr.prototype instanceof Ql?sr:Ql,bs=Object.create(ls.prototype),Pl=new Pa(gi||[]);return hn(bs,"_invoke",{value:Qo(Xi,Rr,Pl)}),bs}function Sa(Xi,sr,Rr){try{return{type:"normal",arg:Xi.call(sr,Rr)}}catch(gi){return{type:"throw",arg:gi}}}Le.wrap=xa;var _l={};function Ql(){}function Ju(){}function ws(){}var Ha={};ps(Ha,Cn,function(){return this});var gr=Object.getPrototypeOf,Ka=gr&&gr(gr(Fs([])));Ka&&Ka!==Oe&&et.call(Ka,Cn)&&(Ha=Ka);var Ca=ws.prototype=Ql.prototype=Object.create(Ha);function Du(Xi){["next","throw","return"].forEach(function(sr){ps(Xi,sr,function(Rr){return this._invoke(sr,Rr)})})}function jc(Xi,sr){function Rr(ls,bs,Pl,Ys){var vl=Sa(Xi[ls],Xi,bs);if(vl.type!=="throw"){var mu=vl.arg,hc=mu.value;return hc&&lr(hc)=="object"&&et.call(hc,"__await")?sr.resolve(hc.__await).then(function(ud){Rr("next",ud,Pl,Ys)},function(ud){Rr("throw",ud,Pl,Ys)}):sr.resolve(hc).then(function(ud){mu.value=ud,Pl(mu)},function(ud){return Rr("throw",ud,Pl,Ys)})}Ys(vl.arg)}var gi;hn(this,"_invoke",{value:function(bs,Pl){function Ys(){return new sr(function(vl,mu){Rr(bs,Pl,vl,mu)})}return gi=gi?gi.then(Ys,Ys):Ys()}})}function Qo(Xi,sr,Rr){var gi="suspendedStart";return function(ls,bs){if(gi==="executing")throw new Error("Generator is already running");if(gi==="completed"){if(ls==="throw")throw bs;return gs()}for(Rr.method=ls,Rr.arg=bs;;){var Pl=Rr.delegate;if(Pl){var Ys=Do(Pl,Rr);if(Ys){if(Ys===_l)continue;return Ys}}if(Rr.method==="next")Rr.sent=Rr._sent=Rr.arg;else if(Rr.method==="throw"){if(gi==="suspendedStart")throw gi="completed",Rr.arg;Rr.dispatchException(Rr.arg)}else Rr.method==="return"&&Rr.abrupt("return",Rr.arg);gi="executing";var vl=Sa(Xi,sr,Rr);if(vl.type==="normal"){if(gi=Rr.done?"completed":"suspendedYield",vl.arg===_l)continue;return{value:vl.arg,done:Rr.done}}vl.type==="throw"&&(gi="completed",Rr.method="throw",Rr.arg=vl.arg)}}}function Do(Xi,sr){var Rr=sr.method,gi=Xi.iterator[Rr];if(gi===void 0)return sr.delegate=null,Rr==="throw"&&Xi.iterator.return&&(sr.method="return",sr.arg=void 0,Do(Xi,sr),sr.method==="throw")||Rr!=="return"&&(sr.method="throw",sr.arg=new TypeError("The iterator does not provide a '"+Rr+"' method")),_l;var ls=Sa(gi,Xi.iterator,sr.arg);if(ls.type==="throw")return sr.method="throw",sr.arg=ls.arg,sr.delegate=null,_l;var bs=ls.arg;return bs?bs.done?(sr[Xi.resultName]=bs.value,sr.next=Xi.nextLoc,sr.method!=="return"&&(sr.method="next",sr.arg=void 0),sr.delegate=null,_l):bs:(sr.method="throw",sr.arg=new TypeError("iterator result is not an object"),sr.delegate=null,_l)}function As(Xi){var sr={tryLoc:Xi[0]};1 in Xi&&(sr.catchLoc=Xi[1]),2 in Xi&&(sr.finallyLoc=Xi[2],sr.afterLoc=Xi[3]),this.tryEntries.push(sr)}function wa(Xi){var sr=Xi.completion||{};sr.type="normal",delete sr.arg,Xi.completion=sr}function Pa(Xi){this.tryEntries=[{tryLoc:"root"}],Xi.forEach(As,this),this.reset(!0)}function Fs(Xi){if(Xi){var sr=Xi[Cn];if(sr)return sr.call(Xi);if(typeof Xi.next=="function")return Xi;if(!isNaN(Xi.length)){var Rr=-1,gi=function ls(){for(;++Rr=0;--ls){var bs=this.tryEntries[ls],Pl=bs.completion;if(bs.tryLoc==="root")return gi("end");if(bs.tryLoc<=this.prev){var Ys=et.call(bs,"catchLoc"),vl=et.call(bs,"finallyLoc");if(Ys&&vl){if(this.prev=0;--gi){var ls=this.tryEntries[gi];if(ls.tryLoc<=this.prev&&et.call(ls,"finallyLoc")&&this.prev=0;--Rr){var gi=this.tryEntries[Rr];if(gi.finallyLoc===sr)return this.complete(gi.completion,gi.afterLoc),wa(gi),_l}},catch:function(sr){for(var Rr=this.tryEntries.length-1;Rr>=0;--Rr){var gi=this.tryEntries[Rr];if(gi.tryLoc===sr){var ls=gi.completion;if(ls.type==="throw"){var bs=ls.arg;wa(gi)}return bs}}throw new Error("illegal catch attempt")},delegateYield:function(sr,Rr,gi){return this.delegate={iterator:Fs(sr),resultName:Rr,nextLoc:gi},this.method==="next"&&(this.arg=void 0),_l}},Le}function $r(Le){return pr(Le)||nr(Le)||Dr(Le)||Or()}function Or(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nr(Le){if(typeof Symbol!="undefined"&&Le[Symbol.iterator]!=null||Le["@@iterator"]!=null)return Array.from(Le)}function pr(Le){if(Array.isArray(Le))return Ii(Le)}function Xr(Le,Oe){var et=Object.keys(Le);if(Object.getOwnPropertySymbols){var hn=Object.getOwnPropertySymbols(Le);Oe&&(hn=hn.filter(function(Lr){return Object.getOwnPropertyDescriptor(Le,Lr).enumerable})),et.push.apply(et,hn)}return et}function fo(Le){for(var Oe=1;OeLe.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);etLe.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);et2&&arguments[2]!==void 0?arguments[2]:5,Lr=[Oe],Cn=cn()(Oe).object(),ei=cn()(et).object();if(hn<2)return hn<1?[]:Lr;var Li={r:(Cn.r-ei.r)/(hn-1),g:(Cn.g-ei.g)/(hn-1),b:(Cn.b-ei.b)/(hn-1)};return(0,qn.Z)(new Array(hn-2),function(ps,xa){return Lr.push(cn()({r:(0,br.Z)(Cn.r-Li.r*(xa+1),0),g:(0,br.Z)(Cn.g-Li.g*(xa+1),0),b:(0,br.Z)(Cn.b-Li.b*(xa+1),0)}).hex())}),Lr.push(et),Lr};function kt(Le){"@babel/helpers - typeof";return kt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Oe){return typeof Oe}:function(Oe){return Oe&&typeof Symbol=="function"&&Oe.constructor===Symbol&&Oe!==Symbol.prototype?"symbol":typeof Oe},kt(Le)}function er(Le,Oe,et){return Oe=An(Oe),Oe in Le?Object.defineProperty(Le,Oe,{value:et,enumerable:!0,configurable:!0,writable:!0}):Le[Oe]=et,Le}function An(Le){var Oe=rr(Le,"string");return kt(Oe)==="symbol"?Oe:String(Oe)}function rr(Le,Oe){if(kt(Le)!=="object"||Le===null)return Le;var et=Le[Symbol.toPrimitive];if(et!==void 0){var hn=et.call(Le,Oe||"default");if(kt(hn)!=="object")return hn;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Oe==="string"?String:Number)(Le)}var cr="larkmap-legend-category";function Br(Le){var Oe=Le.labels,et=Le.colors,hn=Le.geometryType,Lr=hn===void 0?"circle":hn,Cn=Le.isStrokeColor,ei=Le.style,Li=Le.className;function ps(_l){return Cn?{border:"2px solid ".concat(_l)}:{background:_l}}function xa(_l){return A.createElement("div",{className:w()(cr,Li),style:ei},Oe.map(function(Ql,Ju){return A.createElement("div",{className:"".concat(cr,"__content"),key:Ql},A.createElement("div",{className:w()("".concat(cr,"__content__shape"),er({},"".concat(cr,"__content__").concat(Lr),Lr)),style:ps(_l[Ju])}),A.createElement("div",{className:"".concat(cr,"labels")},Ql))}))}function Sa(){if(Array.isArray(et))return xa(et);var _l=So(et.startColor,et.endColor,Oe.length);return xa(_l)}return A.createElement(Sa,null)}Br.defaultProps={geometryType:"circle",isStrokeColor:!1};var Ai=m(36306),De="larkmap-legend-ramp",Zo=function(Oe){var et=Oe[Oe.length-1],hn=Oe[0];return Number.isFinite(hn)||(hn=parseInt(hn,10)),Number.isFinite(et)||(et=parseInt(et,10)),[hn,et]};function js(Le){var Oe=Le.labels,et=Le.labelUnit,hn=et===void 0?"":et,Lr=Le.colors,Cn=Oe[0]+hn,ei=Oe[Oe.length-1]+hn;return A.createElement(A.Fragment,null,A.createElement("div",{className:"".concat(De,"__continuous"),style:{background:"linear-gradient(to right,".concat(Lr,")")}}),A.createElement("div",{className:"".concat(De,"__continuous-labelbar")},A.createElement("span",null,Cn),A.createElement("span",null,ei)))}function ba(Le){var Oe=Le.labels,et=Le.labelUnit,hn=et===void 0?"":et,Lr=Le.colors,Cn=(0,A.useRef)(null),ei=(0,Ai.Z)(Cn),Li=(ei==null?void 0:ei.width)/(Lr.length+1),ps=Oe;if(Oe.length+1===Lr.length){var xa="< "+Oe[0],Sa="\u2265 "+Oe[Oe.length-1];ps.unshift(xa),ps.push(Sa)}var _l=function(Ju){var ws="".concat(Oe[Ju]).concat(hn," - ").concat(Oe[Ju+1]).concat(hn);return ws};return A.createElement("div",{className:"".concat(De,"__dis-continuous"),ref:Cn},Number.isNaN(Li)?null:A.createElement(A.Fragment,null,A.createElement("div",{className:"".concat(De,"__dis-continuous__colors"),style:{paddingLeft:Li/2}},Lr==null?void 0:Lr.map(function(Ql,Ju){return A.createElement("div",{key:Ql,title:_l(Ju),className:"".concat(De,"__dis-continuous__color"),style:{background:Ql,width:Li}})})),A.createElement("div",{className:"".concat(De,"__dis-continuous__labels")},Oe==null?void 0:Oe.map(function(Ql){var Ju=Ql+hn;return A.createElement("span",{key:Ql,className:"".concat(De,"__dis-continuous__label")},Ju)}))))}function sa(Le){var Oe=Le.isContinuous,et=Le.labels,hn=Le.colors,Lr=Le.labelUnit,Cn=Le.className,ei=Le.style;return A.createElement("div",{className:w()("".concat(De),Cn),style:ei},Oe?A.createElement(js,{labels:et,labelUnit:Lr,colors:hn}):A.createElement(ba,{labels:et,labelUnit:Lr,colors:hn}))}sa.defaultProps={isContinuous:!1,labelUnit:""};var Ps=m(67135),ha={point:Ps.DrawPoint,line:Ps.DrawLine,polygon:Ps.DrawPolygon,rect:Ps.DrawRect,circle:Ps.DrawCircle};function To(Le){"@babel/helpers - typeof";return To=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Oe){return typeof Oe}:function(Oe){return Oe&&typeof Symbol=="function"&&Oe.constructor===Symbol&&Oe!==Symbol.prototype?"symbol":typeof Oe},To(Le)}function ir(Le,Oe){var et=Object.keys(Le);if(Object.getOwnPropertySymbols){var hn=Object.getOwnPropertySymbols(Le);Oe&&(hn=hn.filter(function(Lr){return Object.getOwnPropertyDescriptor(Le,Lr).enumerable})),et.push.apply(et,hn)}return et}function xi(Le){for(var Oe=1;OeLe.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);etLe.length)&&(Oe=Le.length);for(var et=0,hn=new Array(Oe);et=tt&&++Nn;else{let tt=-1;for(let dt of dn)(dt=Dn(dt,++tt,dn))!=null&&(dt=+dt)>=dt&&++Nn}return Nn}function I(dn){return Math.max(1,Math.ceil(Math.log(w(dn))/Math.LN2)+1)}function C(dn,Dn){let Nn,tt;if(Dn===void 0)for(const dt of dn)dt!=null&&(Nn===void 0?dt>=dt&&(Nn=tt=dt):(Nn>dt&&(Nn=dt),tt=vt&&(Nn=tt=vt):(Nn>vt&&(Nn=vt),tt=f?10:vt>=S?5:vt>=P?2:1;let lt,Et,an;return dt<0?(an=Math.pow(10,-dt)/ze,lt=Math.round(dn*an),Et=Math.round(Dn*an),lt/anDn&&--Et,an=-an):(an=Math.pow(10,dt)*ze,lt=Math.round(dn/an),Et=Math.round(Dn/an),lt*anDn&&--Et),Et0))return[];if(dn===Dn)return[dn];const tt=Dn=dt))return[];const lt=vt-dt+1,Et=new Array(lt);if(tt)if(ze<0)for(let an=0;an0?(dn=Math.floor(dn/dt)*dt,Dn=Math.ceil(Dn/dt)*dt):dt<0&&(dn=Math.ceil(dn*dt)/dt,Dn=Math.floor(Dn*dt)/dt),tt=dt}}var he=Array.prototype,fe=he.slice;function ke(dn,Dn){return dn-Dn}function we(dn){for(var Dn=0,Nn=dn.length,tt=dn[Nn-1][1]*dn[0][0]-dn[Nn-1][0]*dn[0][1];++Dn()=>dn;function Ee(dn,Dn){for(var Nn=-1,tt=Dn.length,dt;++Nntt!=$i>tt&&Nn<(Ti-an)*(tt-jn)/($i-jn)+an&&(dt=-dt)}return dt}function ye(dn,Dn,Nn){var tt;return xe(dn,Dn,Nn)&&be(dn[tt=+(dn[0]===Dn[0])],Nn[tt],Dn[tt])}function xe(dn,Dn,Nn){return(Dn[0]-dn[0])*(Nn[1]-dn[1])===(Nn[0]-dn[0])*(Dn[1]-dn[1])}function be(dn,Dn,Nn){return dn<=Dn&&Dn<=Nn||Nn<=Dn&&Dn<=dn}function Ie(){}var me=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function We(){var dn=1,Dn=1,Nn=I,tt=Et;function dt(an){var jn=Nn(an);if(Array.isArray(jn))jn=jn.slice().sort(ke);else{const xr=C(an,Ce);for(jn=re(...de(xr[0],xr[1],jn),jn);jn[jn.length-1]>=xr[1];)jn.pop();for(;jn[1]vt(an,xr))}function vt(an,jn){const xr=jn==null?NaN:+jn;if(isNaN(xr))throw new Error(`invalid value: ${jn}`);var Ti=[],$i=[];return ze(an,xr,function(Vi){tt(Vi,an,xr),we(Vi)>0?Ti.push([Vi]):$i.push(Vi)}),$i.forEach(function(Vi){for(var us=0,ks=Ti.length,Os;us=jn,me[pa<<2].forEach(Cs);++Vi0&&$i0&&Vi=0&&xr>=0))throw new Error("invalid size");return dn=jn,Dn=xr,dt},dt.thresholds=function(an){return arguments.length?(Nn=typeof an=="function"?an:Array.isArray(an)?Ne(fe.call(an)):Ne(an),dt):Nn},dt.smooth=function(an){return arguments.length?(tt=an?Et:Ie,dt):tt===Et},dt}function Ce(dn){return isFinite(dn)?dn:NaN}function Pt(dn,Dn){return dn==null?!1:+dn>=Dn}function ct(dn){return dn==null||isNaN(dn=+dn)?-1/0:dn}function Ue(dn,Dn,Nn,tt){const dt=tt-Dn,vt=Nn-Dn,ze=isFinite(dt)||isFinite(vt)?dt/vt:Math.sign(dt)/Math.sign(vt);return isNaN(ze)?dn:dn+ze-.5}var bt=m(16479),ht=m.n(bt);function Bt(dn,Dn){return Yr(dn)||Er(dn,Dn)||_n(dn,Dn)||mt()}function mt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _n(dn,Dn){if(dn){if(typeof dn=="string")return Bn(dn,Dn);var Nn=Object.prototype.toString.call(dn).slice(8,-1);if(Nn==="Object"&&dn.constructor&&(Nn=dn.constructor.name),Nn==="Map"||Nn==="Set")return Array.from(dn);if(Nn==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Nn))return Bn(dn,Dn)}}function Bn(dn,Dn){(Dn==null||Dn>dn.length)&&(Dn=dn.length);for(var Nn=0,tt=new Array(Dn);Nn1&&arguments[1]!==void 0?arguments[1]:"image/png",Nn=document.createElement("canvas"),tt=Nn.getContext("2d");return Nn.width=dn.width,Nn.height=dn.height,tt.drawImage(dn,0,0,dn.width,dn.height),Nn.toDataURL(Dn)}function yo(dn){var Dn=oi(dn),Nn=new Image;return Nn.src=Dn.toDataURL(),Nn}function vr(dn,Dn,Nn,tt){for(var dt=new Uint8ClampedArray(dn.data),vt=new Uint8ClampedArray(4*Nn*tt),ze=0;ze0){var lt=4*ze;vt[lt+0]=dt[lt+0],vt[lt+1]=dt[lt+1],vt[lt+2]=Math.max(dt[lt+2],200),vt[lt+3]=dt[lt+3]}return yo(new ImageData(vt,Nn,tt))}function Po(dn,Dn,Nn){for(var tt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:15,dt=Dn,vt=0,ze=Nn,lt=0,Et=0;Et0){var an=Et%Dn,jn=Math.floor(Et/Dn);dt=Math.min(dt,an),vt=Math.max(vt,an),ze=Math.min(ze,jn),lt=Math.max(lt,jn)}return[dt-tt,vt+tt,ze-tt,lt+tt]}function ss(dn,Dn,Nn,tt,dt,vt){for(var ze=[],lt=0,Et=Dn;Et0?1:-1}return ze}function ve(dn,Dn,Nn){var tt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5,dt=dn.map(function(ze){return{x:ze[0]+Dn,y:ze[1]+Nn}});if(tt===0)return dt;var vt=ht()(dt,tt,!0);return vt}var _o=function(Dn){return new Promise(function(Nn,tt){var dt=new FileReader;dt.readAsDataURL(Dn),dt.onload=function(){return Nn(dt.result)},dt.onerror=function(vt){return tt(vt)}})};function ci(dn,Dn,Nn){var tt=Po(dn,Dn,Nn),dt=Bt(tt,4),vt=dt[0],ze=dt[1],lt=dt[2],Et=dt[3],an=ss(vt,lt,ze,Et,dn,Dn),jn=vr(an,ze-vt,Et-lt);return yo(jn)}function Bi(dn,Dn,Nn){var tt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5,dt=Po(dn,Dn,Nn),vt=Bt(dt,4),ze=vt[0],lt=vt[1],Et=vt[2],an=vt[3],jn=ss(ze,Et,lt,an,dn,Dn),xr=lt-ze,Ti=an-Et,$i=We().size([xr,Ti]).smooth(!1).thresholds(2),Vi=$i(jn);return ve(Vi[1].coordinates[0][0],ze,Et,tt)}function wi(dn,Dn){for(var Nn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,tt=0;tt0)&&(dn.data[4*tt+0]=0,dn.data[4*tt+1]=0,dn.data[4*tt+2]=0,dn.data[4*tt+3]=0);return yo(dn)}function io(dn,Dn,Nn,tt){for(var dt=Po(Dn,Nn,tt),vt=Bt(dt,4),ze=vt[0],lt=vt[1],Et=vt[2],an=vt[3],jn=new Uint8ClampedArray(4*(lt-ze)*(an-Et)).fill(0),xr=0,Ti=Et;Ti0&&(jn[xr*4]=dn.data[Vi*4],jn[xr*4+1]=dn.data[Vi*4+1],jn[xr*4+2]=dn.data[Vi*4+2],jn[xr*4+3]=dn.data[Vi*4+3]),xr++}var us=new ImageData(jn,lt-ze,an-Et);return yo(us)}function ln(dn){var Dn=document.createElement("a");Dn.href=dn.src,Dn.download="image",Dn.click()}function Ve(dn){var Dn=document.createElement("a");Dn.href=dn.toDataURL("image/png"),Dn.download="image",Dn.click()}function _t(dn){var Dn=document.createElement("canvas"),Nn=Dn.getContext("2d");return Dn.width=dn.width,Dn.height=dn.height,Nn==null||Nn.drawImage(dn,0,0),Nn==null?void 0:Nn.getImageData(0,0,dn.width,dn.height)}var Ct=function(Dn){var Nn=1024,tt=Dn.naturalWidth,dt=Dn.naturalHeight,vt=Nn/Math.max(dt,tt);return{height:dt,width:tt,samScale:vt}},jt=function(Dn,Nn){var tt=1024,dt=tt/Math.max(Nn,Dn);return{height:Nn,width:Dn,samScale:dt}};function on(dn){"@babel/helpers - typeof";return on=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Dn){return typeof Dn}:function(Dn){return Dn&&typeof Symbol=="function"&&Dn.constructor===Symbol&&Dn!==Symbol.prototype?"symbol":typeof Dn},on(dn)}function Ot(){"use strict";Ot=function(){return dn};var dn={},Dn=Object.prototype,Nn=Dn.hasOwnProperty,tt=Object.defineProperty||function(cs,zi,Ji){cs[zi]=Ji.value},dt=typeof Symbol=="function"?Symbol:{},vt=dt.iterator||"@@iterator",ze=dt.asyncIterator||"@@asyncIterator",lt=dt.toStringTag||"@@toStringTag";function Et(cs,zi,Ji){return Object.defineProperty(cs,zi,{value:Ji,enumerable:!0,configurable:!0,writable:!0}),cs[zi]}try{Et({},"")}catch(cs){Et=function(Ji,ta,ms){return Ji[ta]=ms}}function an(cs,zi,Ji,ta){var ms=zi&&zi.prototype instanceof Ti?zi:Ti,Ua=Object.create(ms.prototype),ju=new gl(ta||[]);return tt(Ua,"_invoke",{value:ea(cs,Ji,ju)}),Ua}function jn(cs,zi,Ji){try{return{type:"normal",arg:cs.call(zi,Ji)}}catch(ta){return{type:"throw",arg:ta}}}dn.wrap=an;var xr={};function Ti(){}function $i(){}function Vi(){}var us={};Et(us,vt,function(){return this});var ks=Object.getPrototypeOf,Os=ks&&ks(ks(ia([])));Os&&Os!==Dn&&Nn.call(Os,vt)&&(us=Os);var pa=Vi.prototype=Ti.prototype=Object.create(us);function no(cs){["next","throw","return"].forEach(function(zi){Et(cs,zi,function(Ji){return this._invoke(zi,Ji)})})}function Cs(cs,zi){function Ji(ms,Ua,ju,rc){var Pc=jn(cs[ms],cs,Ua);if(Pc.type!=="throw"){var ho=Pc.arg,qi=ho.value;return qi&&on(qi)=="object"&&Nn.call(qi,"__await")?zi.resolve(qi.__await).then(function(os){Ji("next",os,ju,rc)},function(os){Ji("throw",os,ju,rc)}):zi.resolve(qi).then(function(os){ho.value=os,ju(ho)},function(os){return Ji("throw",os,ju,rc)})}rc(Pc.arg)}var ta;tt(this,"_invoke",{value:function(Ua,ju){function rc(){return new zi(function(Pc,ho){Ji(Ua,ju,Pc,ho)})}return ta=ta?ta.then(rc,rc):rc()}})}function ea(cs,zi,Ji){var ta="suspendedStart";return function(ms,Ua){if(ta==="executing")throw new Error("Generator is already running");if(ta==="completed"){if(ms==="throw")throw Ua;return Nl()}for(Ji.method=ms,Ji.arg=Ua;;){var ju=Ji.delegate;if(ju){var rc=fa(ju,Ji);if(rc){if(rc===xr)continue;return rc}}if(Ji.method==="next")Ji.sent=Ji._sent=Ji.arg;else if(Ji.method==="throw"){if(ta==="suspendedStart")throw ta="completed",Ji.arg;Ji.dispatchException(Ji.arg)}else Ji.method==="return"&&Ji.abrupt("return",Ji.arg);ta="executing";var Pc=jn(cs,zi,Ji);if(Pc.type==="normal"){if(ta=Ji.done?"completed":"suspendedYield",Pc.arg===xr)continue;return{value:Pc.arg,done:Ji.done}}Pc.type==="throw"&&(ta="completed",Ji.method="throw",Ji.arg=Pc.arg)}}}function fa(cs,zi){var Ji=zi.method,ta=cs.iterator[Ji];if(ta===void 0)return zi.delegate=null,Ji==="throw"&&cs.iterator.return&&(zi.method="return",zi.arg=void 0,fa(cs,zi),zi.method==="throw")||Ji!=="return"&&(zi.method="throw",zi.arg=new TypeError("The iterator does not provide a '"+Ji+"' method")),xr;var ms=jn(ta,cs.iterator,zi.arg);if(ms.type==="throw")return zi.method="throw",zi.arg=ms.arg,zi.delegate=null,xr;var Ua=ms.arg;return Ua?Ua.done?(zi[cs.resultName]=Ua.value,zi.next=cs.nextLoc,zi.method!=="return"&&(zi.method="next",zi.arg=void 0),zi.delegate=null,xr):Ua:(zi.method="throw",zi.arg=new TypeError("iterator result is not an object"),zi.delegate=null,xr)}function Bl(cs){var zi={tryLoc:cs[0]};1 in cs&&(zi.catchLoc=cs[1]),2 in cs&&(zi.finallyLoc=cs[2],zi.afterLoc=cs[3]),this.tryEntries.push(zi)}function Ma(cs){var zi=cs.completion||{};zi.type="normal",delete zi.arg,cs.completion=zi}function gl(cs){this.tryEntries=[{tryLoc:"root"}],cs.forEach(Bl,this),this.reset(!0)}function ia(cs){if(cs){var zi=cs[vt];if(zi)return zi.call(cs);if(typeof cs.next=="function")return cs;if(!isNaN(cs.length)){var Ji=-1,ta=function ms(){for(;++Ji=0;--ms){var Ua=this.tryEntries[ms],ju=Ua.completion;if(Ua.tryLoc==="root")return ta("end");if(Ua.tryLoc<=this.prev){var rc=Nn.call(Ua,"catchLoc"),Pc=Nn.call(Ua,"finallyLoc");if(rc&&Pc){if(this.prev=0;--ta){var ms=this.tryEntries[ta];if(ms.tryLoc<=this.prev&&Nn.call(ms,"finallyLoc")&&this.prev=0;--Ji){var ta=this.tryEntries[Ji];if(ta.finallyLoc===zi)return this.complete(ta.completion,ta.afterLoc),Ma(ta),xr}},catch:function(zi){for(var Ji=this.tryEntries.length-1;Ji>=0;--Ji){var ta=this.tryEntries[Ji];if(ta.tryLoc===zi){var ms=ta.completion;if(ms.type==="throw"){var Ua=ms.arg;Ma(ta)}return Ua}}throw new Error("illegal catch attempt")},delegateYield:function(zi,Ji,ta){return this.delegate={iterator:ia(zi),resultName:Ji,nextLoc:ta},this.method==="next"&&(this.arg=void 0),xr}},dn}function Tt(dn,Dn,Nn,tt,dt,vt,ze){try{var lt=dn[vt](ze),Et=lt.value}catch(an){Nn(an);return}lt.done?Dn(Et):Promise.resolve(Et).then(tt,dt)}function xt(dn){return function(){var Dn=this,Nn=arguments;return new Promise(function(tt,dt){var vt=dn.apply(Dn,Nn);function ze(Et){Tt(vt,tt,dt,ze,lt,"next",Et)}function lt(Et){Tt(vt,tt,dt,ze,lt,"throw",Et)}ze(void 0)})}}function Ht(dn,Dn){if(!(dn instanceof Dn))throw new TypeError("Cannot call a class as a function")}function Zn(dn,Dn){for(var Nn=0;Nn1&&an[1]!==void 0?an[1]:"float32",ze=new N,typeof dt!="string"){xr.next=6;break}xr.t0=ze.load(dt),xr.next=9;break;case 6:return xr.next=8,ze.parse(dt);case 8:xr.t0=xr.sent;case 9:lt=xr.t0,Et=new Pi.Tensor(vt,lt.data,lt.shape),this.tensor=Et;case 12:case"end":return xr.stop()}},tt,this)}));function Nn(tt){return Dn.apply(this,arguments)}return Nn}()},{key:"predict",value:function(){var Dn=xt(Ot().mark(function tt(dt){var vt,ze,lt;return Ot().wrap(function(an){for(;;)switch(an.prev=an.next){case 0:if(an.prev=0,!(this.model===null||dt===null||this.tensor===null||this.modelScale===null)){an.next=6;break}return console.log("model not loaded"),an.abrupt("return");case 6:if(vt=b({clicks:dt,tensor:this.tensor,modelScale:this.modelScale}),vt!==void 0){an.next=9;break}return an.abrupt("return");case 9:return an.next=11,this.model.run(vt);case 11:return ze=an.sent,lt=ze[this.model.outputNames[0]],an.abrupt("return",lt);case 14:an.next=20;break;case 16:return an.prev=16,an.t0=an.catch(0),console.log(an.t0),an.abrupt("return");case 20:case"end":return an.stop()}},tt,this,[[0,16]])}));function Nn(tt){return Dn.apply(this,arguments)}return Nn}()},{key:"predictByBox",value:function(){var Dn=xt(Ot().mark(function tt(dt){return Ot().wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:return ze.abrupt("return",dt);case 1:case"end":return ze.stop()}},tt)}));function Nn(tt){return Dn.apply(this,arguments)}return Nn}()},{key:"exportMaskImage",value:function(Nn){if(this.imageData!==void 0)return vr(this.imageData,Nn.data,Nn.dims[3],Nn.dims[2])}},{key:"exportMaskClip",value:function(Nn){return ci(Nn.data,Nn.dims[3],Nn.dims[2])}},{key:"exportImage",value:function(Nn){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.imageData!==void 0)return wi(this.imageData,Nn.data,tt)}},{key:"exportImageClip",value:function(Nn){if(this.imageData!==void 0)return io(this.imageData,Nn.data,Nn.dims[3],Nn.dims[2])}},{key:"exportVector",value:function(Nn){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5;return Bi(Nn.data,Nn.dims[3],Nn.dims[2],tt)}},{key:"setWasmUrl",value:function(Nn){A.env.wasm.wasmPaths=Nn}},{key:"getImageScale",value:function(Nn){var tt=Nn.width,dt=Nn.height;this.modelScale=jt(tt,dt)}}]),dn}();function ys(dn){"@babel/helpers - typeof";return ys=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Dn){return typeof Dn}:function(Dn){return Dn&&typeof Symbol=="function"&&Dn.constructor===Symbol&&Dn!==Symbol.prototype?"symbol":typeof Dn},ys(dn)}function xn(dn,Dn){return na(dn)||xo(dn,Dn)||Jr(dn,Dn)||Hr()}function Hr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jr(dn,Dn){if(dn){if(typeof dn=="string")return Yi(dn,Dn);var Nn=Object.prototype.toString.call(dn).slice(8,-1);if(Nn==="Object"&&dn.constructor&&(Nn=dn.constructor.name),Nn==="Map"||Nn==="Set")return Array.from(dn);if(Nn==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Nn))return Yi(dn,Dn)}}function Yi(dn,Dn){(Dn==null||Dn>dn.length)&&(Dn=dn.length);for(var Nn=0,tt=new Array(Dn);Nn0&&arguments[0]!==void 0?arguments[0]:256,Nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"tms";Vn(this,dn),li(this,"tileSize",void 0),li(this,"type",void 0),li(this,"initialResolution",void 0),li(this,"originShift",void 0),this.tileSize=Dn,this.type=Nn,this.initialResolution=2*Math.PI*6378137/this.tileSize,this.originShift=2*Math.PI*6378137/2}return Mr(dn,[{key:"lngLatToMeters",value:function(Nn,tt){var dt=Nn*this.originShift/180,vt=Math.log(Math.tan((90+tt)*Math.PI/360))/(Math.PI/180);return vt=vt*this.originShift/180,[dt,vt]}},{key:"metersToLngLat",value:function(Nn,tt){var dt=Nn/this.originShift*180,vt=tt/this.originShift*180;return vt=180/Math.PI*(2*Math.atan(Math.exp(vt*Math.PI/180))-Math.PI/2),[dt,vt]}},{key:"pixelsToMeters",value:function(Nn,tt,dt){var vt=this.resolution(dt),ze=Nn*vt-this.originShift,lt=(this.type==="tms"?tt:Math.pow(2,dt)*256-tt)*vt-this.originShift;return[ze,lt]}},{key:"metersToPixels",value:function(Nn,tt,dt){var vt=this.resolution(dt),ze=(Nn+this.originShift)/vt,lt=(tt+this.originShift)/vt;return lt=this.type==="tms"?lt:Math.pow(2,dt)*256-lt,[ze,lt]}},{key:"metersToTile",value:function(Nn,tt,dt){var vt=this.metersToPixels(Nn,tt,dt),ze=xn(vt,2),lt=ze[0],Et=ze[1];return this.pixelsToTile(lt,Et)}},{key:"tileToMeters",value:function(Nn,tt,dt){return this.pixelsToMeters(Nn*this.tileSize,tt*this.tileSize,dt)}},{key:"tileToLngLat",value:function(Nn,tt,dt){var vt=this.tileToMeters(Nn,tt,dt),ze=xn(vt,2),lt=ze[0],Et=ze[1];return this.metersToLngLat(lt,Et)}},{key:"pixelsToTile",value:function(Nn,tt){var dt=Math.floor(Math.ceil(Nn/this.tileSize)-1),vt=Math.floor(Math.ceil(tt/this.tileSize)-1);return[dt,vt]}},{key:"pixelsToRaster",value:function(Nn,tt,dt){var vt=this.tileSize<dn.length)&&(Dn=dn.length);for(var Nn=0,tt=new Array(Dn);Nn=0;--ms){var Ua=this.tryEntries[ms],ju=Ua.completion;if(Ua.tryLoc==="root")return ta("end");if(Ua.tryLoc<=this.prev){var rc=Nn.call(Ua,"catchLoc"),Pc=Nn.call(Ua,"finallyLoc");if(rc&&Pc){if(this.prev=0;--ta){var ms=this.tryEntries[ta];if(ms.tryLoc<=this.prev&&Nn.call(ms,"finallyLoc")&&this.prev=0;--Ji){var ta=this.tryEntries[Ji];if(ta.finallyLoc===zi)return this.complete(ta.completion,ta.afterLoc),Ma(ta),xr}},catch:function(zi){for(var Ji=this.tryEntries.length-1;Ji>=0;--Ji){var ta=this.tryEntries[Ji];if(ta.tryLoc===zi){var ms=ta.completion;if(ms.type==="throw"){var Ua=ms.arg;Ma(ta)}return Ua}}throw new Error("illegal catch attempt")},delegateYield:function(zi,Ji,ta){return this.delegate={iterator:ia(zi),resultName:Ji,nextLoc:ta},this.method==="next"&&(this.arg=void 0),xr}},dn}function Gr(dn,Dn,Nn,tt,dt,vt,ze){try{var lt=dn[vt](ze),Et=lt.value}catch(an){Nn(an);return}lt.done?Dn(Et):Promise.resolve(Et).then(tt,dt)}function ui(dn){return function(){var Dn=this,Nn=arguments;return new Promise(function(tt,dt){var vt=dn.apply(Dn,Nn);function ze(Et){Gr(vt,tt,dt,ze,lt,"next",Et)}function lt(Et){Gr(vt,tt,dt,ze,lt,"throw",Et)}ze(void 0)})}}var Ci=null,lo=function(Dn){var Nn=Jn(Dn,4),tt=Nn[0],dt=Nn[1],vt=Nn[2],ze=Nn[3];return{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:{type:"Polygon",coordinates:[[[tt,dt],[tt,ze],[vt,ze],[vt,dt],[tt,dt]]]}}]}},Kr=function(Dn){return{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:{type:"Polygon",coordinates:[Dn]}}]}},ti=function(){return{type:"FeatureCollection",features:[]}};function Wi(dn){"@babel/helpers - typeof";return Wi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Dn){return typeof Dn}:function(Dn){return Dn&&typeof Symbol=="function"&&Dn.constructor===Symbol&&Dn!==Symbol.prototype?"symbol":typeof Dn},Wi(dn)}function Tr(dn,Dn){return yi(dn)||Gn(dn,Dn)||vi(dn,Dn)||Qt()}function Qt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gn(dn,Dn){var Nn=dn==null?null:typeof Symbol!="undefined"&&dn[Symbol.iterator]||dn["@@iterator"];if(Nn!=null){var tt,dt,vt,ze,lt=[],Et=!0,an=!1;try{if(vt=(Nn=Nn.call(dn)).next,Dn===0){if(Object(Nn)!==Nn)return;Et=!1}else for(;!(Et=(tt=vt.call(Nn)).done)&&(lt.push(tt.value),lt.length!==Dn);Et=!0);}catch(jn){an=!0,dt=jn}finally{try{if(!Et&&Nn.return!=null&&(ze=Nn.return(),Object(ze)!==ze))return}finally{if(an)throw dt}}return lt}}function yi(dn){if(Array.isArray(dn))return dn}function Ln(){"use strict";Ln=function(){return dn};var dn={},Dn=Object.prototype,Nn=Dn.hasOwnProperty,tt=Object.defineProperty||function(cs,zi,Ji){cs[zi]=Ji.value},dt=typeof Symbol=="function"?Symbol:{},vt=dt.iterator||"@@iterator",ze=dt.asyncIterator||"@@asyncIterator",lt=dt.toStringTag||"@@toStringTag";function Et(cs,zi,Ji){return Object.defineProperty(cs,zi,{value:Ji,enumerable:!0,configurable:!0,writable:!0}),cs[zi]}try{Et({},"")}catch(cs){Et=function(Ji,ta,ms){return Ji[ta]=ms}}function an(cs,zi,Ji,ta){var ms=zi&&zi.prototype instanceof Ti?zi:Ti,Ua=Object.create(ms.prototype),ju=new gl(ta||[]);return tt(Ua,"_invoke",{value:ea(cs,Ji,ju)}),Ua}function jn(cs,zi,Ji){try{return{type:"normal",arg:cs.call(zi,Ji)}}catch(ta){return{type:"throw",arg:ta}}}dn.wrap=an;var xr={};function Ti(){}function $i(){}function Vi(){}var us={};Et(us,vt,function(){return this});var ks=Object.getPrototypeOf,Os=ks&&ks(ks(ia([])));Os&&Os!==Dn&&Nn.call(Os,vt)&&(us=Os);var pa=Vi.prototype=Ti.prototype=Object.create(us);function no(cs){["next","throw","return"].forEach(function(zi){Et(cs,zi,function(Ji){return this._invoke(zi,Ji)})})}function Cs(cs,zi){function Ji(ms,Ua,ju,rc){var Pc=jn(cs[ms],cs,Ua);if(Pc.type!=="throw"){var ho=Pc.arg,qi=ho.value;return qi&&Wi(qi)=="object"&&Nn.call(qi,"__await")?zi.resolve(qi.__await).then(function(os){Ji("next",os,ju,rc)},function(os){Ji("throw",os,ju,rc)}):zi.resolve(qi).then(function(os){ho.value=os,ju(ho)},function(os){return Ji("throw",os,ju,rc)})}rc(Pc.arg)}var ta;tt(this,"_invoke",{value:function(Ua,ju){function rc(){return new zi(function(Pc,ho){Ji(Ua,ju,Pc,ho)})}return ta=ta?ta.then(rc,rc):rc()}})}function ea(cs,zi,Ji){var ta="suspendedStart";return function(ms,Ua){if(ta==="executing")throw new Error("Generator is already running");if(ta==="completed"){if(ms==="throw")throw Ua;return Nl()}for(Ji.method=ms,Ji.arg=Ua;;){var ju=Ji.delegate;if(ju){var rc=fa(ju,Ji);if(rc){if(rc===xr)continue;return rc}}if(Ji.method==="next")Ji.sent=Ji._sent=Ji.arg;else if(Ji.method==="throw"){if(ta==="suspendedStart")throw ta="completed",Ji.arg;Ji.dispatchException(Ji.arg)}else Ji.method==="return"&&Ji.abrupt("return",Ji.arg);ta="executing";var Pc=jn(cs,zi,Ji);if(Pc.type==="normal"){if(ta=Ji.done?"completed":"suspendedYield",Pc.arg===xr)continue;return{value:Pc.arg,done:Ji.done}}Pc.type==="throw"&&(ta="completed",Ji.method="throw",Ji.arg=Pc.arg)}}}function fa(cs,zi){var Ji=zi.method,ta=cs.iterator[Ji];if(ta===void 0)return zi.delegate=null,Ji==="throw"&&cs.iterator.return&&(zi.method="return",zi.arg=void 0,fa(cs,zi),zi.method==="throw")||Ji!=="return"&&(zi.method="throw",zi.arg=new TypeError("The iterator does not provide a '"+Ji+"' method")),xr;var ms=jn(ta,cs.iterator,zi.arg);if(ms.type==="throw")return zi.method="throw",zi.arg=ms.arg,zi.delegate=null,xr;var Ua=ms.arg;return Ua?Ua.done?(zi[cs.resultName]=Ua.value,zi.next=cs.nextLoc,zi.method!=="return"&&(zi.method="next",zi.arg=void 0),zi.delegate=null,xr):Ua:(zi.method="throw",zi.arg=new TypeError("iterator result is not an object"),zi.delegate=null,xr)}function Bl(cs){var zi={tryLoc:cs[0]};1 in cs&&(zi.catchLoc=cs[1]),2 in cs&&(zi.finallyLoc=cs[2],zi.afterLoc=cs[3]),this.tryEntries.push(zi)}function Ma(cs){var zi=cs.completion||{};zi.type="normal",delete zi.arg,cs.completion=zi}function gl(cs){this.tryEntries=[{tryLoc:"root"}],cs.forEach(Bl,this),this.reset(!0)}function ia(cs){if(cs){var zi=cs[vt];if(zi)return zi.call(cs);if(typeof cs.next=="function")return cs;if(!isNaN(cs.length)){var Ji=-1,ta=function ms(){for(;++Ji=0;--ms){var Ua=this.tryEntries[ms],ju=Ua.completion;if(Ua.tryLoc==="root")return ta("end");if(Ua.tryLoc<=this.prev){var rc=Nn.call(Ua,"catchLoc"),Pc=Nn.call(Ua,"finallyLoc");if(rc&&Pc){if(this.prev=0;--ta){var ms=this.tryEntries[ta];if(ms.tryLoc<=this.prev&&Nn.call(ms,"finallyLoc")&&this.prev=0;--Ji){var ta=this.tryEntries[Ji];if(ta.finallyLoc===zi)return this.complete(ta.completion,ta.afterLoc),Ma(ta),xr}},catch:function(zi){for(var Ji=this.tryEntries.length-1;Ji>=0;--Ji){var ta=this.tryEntries[Ji];if(ta.tryLoc===zi){var ms=ta.completion;if(ms.type==="throw"){var Ua=ms.arg;Ma(ta)}return Ua}}throw new Error("illegal catch attempt")},delegateYield:function(zi,Ji,ta){return this.delegate={iterator:ia(zi),resultName:Ji,nextLoc:ta},this.method==="next"&&(this.arg=void 0),xr}},dn}function Si(dn){return kr(dn)||Ni(dn)||vi(dn)||tr()}function tr(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vi(dn,Dn){if(dn){if(typeof dn=="string")return Qn(dn,Dn);var Nn=Object.prototype.toString.call(dn).slice(8,-1);if(Nn==="Object"&&dn.constructor&&(Nn=dn.constructor.name),Nn==="Map"||Nn==="Set")return Array.from(dn);if(Nn==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Nn))return Qn(dn,Dn)}}function Ni(dn){if(typeof Symbol!="undefined"&&dn[Symbol.iterator]!=null||dn["@@iterator"]!=null)return Array.from(dn)}function kr(dn){if(Array.isArray(dn))return Qn(dn)}function Qn(dn,Dn){(Dn==null||Dn>dn.length)&&(Dn=dn.length);for(var Nn=0,tt=new Array(Dn);Nn1&&$i[1]!==void 0?$i[1]:5,us.next=3,this.exportVector(ze,Et);case 3:return an=us.sent,jn=this.imageBounds,xr=an.map(function(ks){var Os=[ks.x*lt.metersPerpixelsX+jn[0],(lt.imageOption.height-ks.y)*lt.metersPerpixelsY+jn[1]],pa=lt.mapHelper.metersToLngLat(Os[0],Os[1]);return pa}),Ti=Kr(xr),us.abrupt("return",Ti);case 8:case"end":return us.stop()}},vt,this)}));function dt(vt){return tt.apply(this,arguments)}return dt}()},{key:"lngLat2ImagePixel",value:function(dt){if(this.imageBounds){var vt=this.mapHelper.lngLatToMeters(dt[0],dt[1]),ze=Tr(vt,2),lt=ze[0],Et=ze[1],an=(lt-this.imageBounds[0])/this.metersPerpixelsX,jn=(Et-this.imageBounds[1])/this.metersPerpixelsY;return jn=this.imageOption.height-jn,[an,jn]}}}]),Nn}($o)},86500:function(nt,V,m){"use strict";m.d(V,{T6:function(){return P},VD:function(){return j},WE:function(){return w},Yt:function(){return re},lC:function(){return b},py:function(){return N},rW:function(){return A},s:function(){return C},ve:function(){return k},vq:function(){return I}});var y=m(90279);function A(J,ie,de){return{r:(0,y.sh)(J,255)*255,g:(0,y.sh)(ie,255)*255,b:(0,y.sh)(de,255)*255}}function b(J,ie,de){J=(0,y.sh)(J,255),ie=(0,y.sh)(ie,255),de=(0,y.sh)(de,255);var he=Math.max(J,ie,de),fe=Math.min(J,ie,de),ke=0,we=0,Ne=(he+fe)/2;if(he===fe)we=0,ke=0;else{var Ee=he-fe;switch(we=Ne>.5?Ee/(2-he-fe):Ee/(he+fe),he){case J:ke=(ie-de)/Ee+(ie1&&(de-=1),de<1/6?J+(ie-J)*(6*de):de<1/2?ie:de<2/3?J+(ie-J)*(2/3-de)*6:J}function k(J,ie,de){var he,fe,ke;if(J=(0,y.sh)(J,360),ie=(0,y.sh)(ie,100),de=(0,y.sh)(de,100),ie===0)fe=de,ke=de,he=de;else{var we=de<.5?de*(1+ie):de+ie-de*ie,Ne=2*de-we;he=z(Ne,we,J+1/3),fe=z(Ne,we,J),ke=z(Ne,we,J-1/3)}return{r:he*255,g:fe*255,b:ke*255}}function N(J,ie,de){J=(0,y.sh)(J,255),ie=(0,y.sh)(ie,255),de=(0,y.sh)(de,255);var he=Math.max(J,ie,de),fe=Math.min(J,ie,de),ke=0,we=he,Ne=he-fe,Ee=he===0?0:Ne/he;if(he===fe)ke=0;else{switch(he){case J:ke=(ie-de)/Ne+(ie>16,g:(J&65280)>>8,b:J&255}}},48701:function(nt,V,m){"use strict";m.d(V,{R:function(){return y}});var y={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",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",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:"#db7093",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",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},1350:function(nt,V,m){"use strict";m.d(V,{uA:function(){return z}});var y=m(86500),A=m(48701),b=m(90279);function z(j){var re={r:0,g:0,b:0},J=1,ie=null,de=null,he=null,fe=!1,ke=!1;return typeof j=="string"&&(j=S(j)),typeof j=="object"&&(P(j.r)&&P(j.g)&&P(j.b)?(re=(0,y.rW)(j.r,j.g,j.b),fe=!0,ke=String(j.r).substr(-1)==="%"?"prgb":"rgb"):P(j.h)&&P(j.s)&&P(j.v)?(ie=(0,b.JX)(j.s),de=(0,b.JX)(j.v),re=(0,y.WE)(j.h,ie,de),fe=!0,ke="hsv"):P(j.h)&&P(j.s)&&P(j.l)&&(ie=(0,b.JX)(j.s),he=(0,b.JX)(j.l),re=(0,y.ve)(j.h,ie,he),fe=!0,ke="hsl"),Object.prototype.hasOwnProperty.call(j,"a")&&(J=j.a)),J=(0,b.Yq)(J),{ok:fe,format:j.format||ke,r:Math.min(255,Math.max(re.r,0)),g:Math.min(255,Math.max(re.g,0)),b:Math.min(255,Math.max(re.b,0)),a:J}}var k="[-\\+]?\\d+%?",N="[-\\+]?\\d*\\.\\d+%?",w="(?:".concat(N,")|(?:").concat(k,")"),I="[\\s|\\(]+(".concat(w,")[,|\\s]+(").concat(w,")[,|\\s]+(").concat(w,")\\s*\\)?"),C="[\\s|\\(]+(".concat(w,")[,|\\s]+(").concat(w,")[,|\\s]+(").concat(w,")[,|\\s]+(").concat(w,")\\s*\\)?"),f={CSS_UNIT:new RegExp(w),rgb:new RegExp("rgb"+I),rgba:new RegExp("rgba"+C),hsl:new RegExp("hsl"+I),hsla:new RegExp("hsla"+C),hsv:new RegExp("hsv"+I),hsva:new RegExp("hsva"+C),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function S(j){if(j=j.trim().toLowerCase(),j.length===0)return!1;var re=!1;if(A.R[j])j=A.R[j],re=!0;else if(j==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var J=f.rgb.exec(j);return J?{r:J[1],g:J[2],b:J[3]}:(J=f.rgba.exec(j),J?{r:J[1],g:J[2],b:J[3],a:J[4]}:(J=f.hsl.exec(j),J?{h:J[1],s:J[2],l:J[3]}:(J=f.hsla.exec(j),J?{h:J[1],s:J[2],l:J[3],a:J[4]}:(J=f.hsv.exec(j),J?{h:J[1],s:J[2],v:J[3]}:(J=f.hsva.exec(j),J?{h:J[1],s:J[2],v:J[3],a:J[4]}:(J=f.hex8.exec(j),J?{r:(0,y.VD)(J[1]),g:(0,y.VD)(J[2]),b:(0,y.VD)(J[3]),a:(0,y.T6)(J[4]),format:re?"name":"hex8"}:(J=f.hex6.exec(j),J?{r:(0,y.VD)(J[1]),g:(0,y.VD)(J[2]),b:(0,y.VD)(J[3]),format:re?"name":"hex"}:(J=f.hex4.exec(j),J?{r:(0,y.VD)(J[1]+J[1]),g:(0,y.VD)(J[2]+J[2]),b:(0,y.VD)(J[3]+J[3]),a:(0,y.T6)(J[4]+J[4]),format:re?"name":"hex8"}:(J=f.hex3.exec(j),J?{r:(0,y.VD)(J[1]+J[1]),g:(0,y.VD)(J[2]+J[2]),b:(0,y.VD)(J[3]+J[3]),format:re?"name":"hex"}:!1)))))))))}function P(j){return!!f.CSS_UNIT.exec(String(j))}},10274:function(nt,V,m){"use strict";m.d(V,{C:function(){return k}});var y=m(86500),A=m(48701),b=m(1350),z=m(90279),k=function(){function w(I,C){I===void 0&&(I=""),C===void 0&&(C={});var f;if(I instanceof w)return I;typeof I=="number"&&(I=(0,y.Yt)(I)),this.originalInput=I;var S=(0,b.uA)(I);this.originalInput=I,this.r=S.r,this.g=S.g,this.b=S.b,this.a=S.a,this.roundA=Math.round(100*this.a)/100,this.format=(f=C.format)!==null&&f!==void 0?f:S.format,this.gradientType=C.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=S.ok}return w.prototype.isDark=function(){return this.getBrightness()<128},w.prototype.isLight=function(){return!this.isDark()},w.prototype.getBrightness=function(){var I=this.toRgb();return(I.r*299+I.g*587+I.b*114)/1e3},w.prototype.getLuminance=function(){var I=this.toRgb(),C,f,S,P=I.r/255,j=I.g/255,re=I.b/255;return P<=.03928?C=P/12.92:C=Math.pow((P+.055)/1.055,2.4),j<=.03928?f=j/12.92:f=Math.pow((j+.055)/1.055,2.4),re<=.03928?S=re/12.92:S=Math.pow((re+.055)/1.055,2.4),.2126*C+.7152*f+.0722*S},w.prototype.getAlpha=function(){return this.a},w.prototype.setAlpha=function(I){return this.a=(0,z.Yq)(I),this.roundA=Math.round(100*this.a)/100,this},w.prototype.isMonochrome=function(){var I=this.toHsl().s;return I===0},w.prototype.toHsv=function(){var I=(0,y.py)(this.r,this.g,this.b);return{h:I.h*360,s:I.s,v:I.v,a:this.a}},w.prototype.toHsvString=function(){var I=(0,y.py)(this.r,this.g,this.b),C=Math.round(I.h*360),f=Math.round(I.s*100),S=Math.round(I.v*100);return this.a===1?"hsv(".concat(C,", ").concat(f,"%, ").concat(S,"%)"):"hsva(".concat(C,", ").concat(f,"%, ").concat(S,"%, ").concat(this.roundA,")")},w.prototype.toHsl=function(){var I=(0,y.lC)(this.r,this.g,this.b);return{h:I.h*360,s:I.s,l:I.l,a:this.a}},w.prototype.toHslString=function(){var I=(0,y.lC)(this.r,this.g,this.b),C=Math.round(I.h*360),f=Math.round(I.s*100),S=Math.round(I.l*100);return this.a===1?"hsl(".concat(C,", ").concat(f,"%, ").concat(S,"%)"):"hsla(".concat(C,", ").concat(f,"%, ").concat(S,"%, ").concat(this.roundA,")")},w.prototype.toHex=function(I){return I===void 0&&(I=!1),(0,y.vq)(this.r,this.g,this.b,I)},w.prototype.toHexString=function(I){return I===void 0&&(I=!1),"#"+this.toHex(I)},w.prototype.toHex8=function(I){return I===void 0&&(I=!1),(0,y.s)(this.r,this.g,this.b,this.a,I)},w.prototype.toHex8String=function(I){return I===void 0&&(I=!1),"#"+this.toHex8(I)},w.prototype.toHexShortString=function(I){return I===void 0&&(I=!1),this.a===1?this.toHexString(I):this.toHex8String(I)},w.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},w.prototype.toRgbString=function(){var I=Math.round(this.r),C=Math.round(this.g),f=Math.round(this.b);return this.a===1?"rgb(".concat(I,", ").concat(C,", ").concat(f,")"):"rgba(".concat(I,", ").concat(C,", ").concat(f,", ").concat(this.roundA,")")},w.prototype.toPercentageRgb=function(){var I=function(C){return"".concat(Math.round((0,z.sh)(C,255)*100),"%")};return{r:I(this.r),g:I(this.g),b:I(this.b),a:this.a}},w.prototype.toPercentageRgbString=function(){var I=function(C){return Math.round((0,z.sh)(C,255)*100)};return this.a===1?"rgb(".concat(I(this.r),"%, ").concat(I(this.g),"%, ").concat(I(this.b),"%)"):"rgba(".concat(I(this.r),"%, ").concat(I(this.g),"%, ").concat(I(this.b),"%, ").concat(this.roundA,")")},w.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var I="#"+(0,y.vq)(this.r,this.g,this.b,!1),C=0,f=Object.entries(A.R);C=0,P=!C&&S&&(I.startsWith("hex")||I==="name");return P?I==="name"&&this.a===0?this.toName():this.toRgbString():(I==="rgb"&&(f=this.toRgbString()),I==="prgb"&&(f=this.toPercentageRgbString()),(I==="hex"||I==="hex6")&&(f=this.toHexString()),I==="hex3"&&(f=this.toHexString(!0)),I==="hex4"&&(f=this.toHex8String(!0)),I==="hex8"&&(f=this.toHex8String()),I==="name"&&(f=this.toName()),I==="hsl"&&(f=this.toHslString()),I==="hsv"&&(f=this.toHsvString()),f||this.toHexString())},w.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},w.prototype.clone=function(){return new w(this.toString())},w.prototype.lighten=function(I){I===void 0&&(I=10);var C=this.toHsl();return C.l+=I/100,C.l=(0,z.V2)(C.l),new w(C)},w.prototype.brighten=function(I){I===void 0&&(I=10);var C=this.toRgb();return C.r=Math.max(0,Math.min(255,C.r-Math.round(255*-(I/100)))),C.g=Math.max(0,Math.min(255,C.g-Math.round(255*-(I/100)))),C.b=Math.max(0,Math.min(255,C.b-Math.round(255*-(I/100)))),new w(C)},w.prototype.darken=function(I){I===void 0&&(I=10);var C=this.toHsl();return C.l-=I/100,C.l=(0,z.V2)(C.l),new w(C)},w.prototype.tint=function(I){return I===void 0&&(I=10),this.mix("white",I)},w.prototype.shade=function(I){return I===void 0&&(I=10),this.mix("black",I)},w.prototype.desaturate=function(I){I===void 0&&(I=10);var C=this.toHsl();return C.s-=I/100,C.s=(0,z.V2)(C.s),new w(C)},w.prototype.saturate=function(I){I===void 0&&(I=10);var C=this.toHsl();return C.s+=I/100,C.s=(0,z.V2)(C.s),new w(C)},w.prototype.greyscale=function(){return this.desaturate(100)},w.prototype.spin=function(I){var C=this.toHsl(),f=(C.h+I)%360;return C.h=f<0?360+f:f,new w(C)},w.prototype.mix=function(I,C){C===void 0&&(C=50);var f=this.toRgb(),S=new w(I).toRgb(),P=C/100,j={r:(S.r-f.r)*P+f.r,g:(S.g-f.g)*P+f.g,b:(S.b-f.b)*P+f.b,a:(S.a-f.a)*P+f.a};return new w(j)},w.prototype.analogous=function(I,C){I===void 0&&(I=6),C===void 0&&(C=30);var f=this.toHsl(),S=360/C,P=[this];for(f.h=(f.h-(S*I>>1)+720)%360;--I;)f.h=(f.h+S)%360,P.push(new w(f));return P},w.prototype.complement=function(){var I=this.toHsl();return I.h=(I.h+180)%360,new w(I)},w.prototype.monochromatic=function(I){I===void 0&&(I=6);for(var C=this.toHsv(),f=C.h,S=C.s,P=C.v,j=[],re=1/I;I--;)j.push(new w({h:f,s:S,v:P})),P=(P+re)%1;return j},w.prototype.splitcomplement=function(){var I=this.toHsl(),C=I.h;return[this,new w({h:(C+72)%360,s:I.s,l:I.l}),new w({h:(C+216)%360,s:I.s,l:I.l})]},w.prototype.onBackground=function(I){var C=this.toRgb(),f=new w(I).toRgb(),S=C.a+f.a*(1-C.a);return new w({r:(C.r*C.a+f.r*f.a*(1-C.a))/S,g:(C.g*C.a+f.g*f.a*(1-C.a))/S,b:(C.b*C.a+f.b*f.a*(1-C.a))/S,a:S})},w.prototype.triad=function(){return this.polyad(3)},w.prototype.tetrad=function(){return this.polyad(4)},w.prototype.polyad=function(I){for(var C=this.toHsl(),f=C.h,S=[this],P=360/I,j=1;j1)&&(I=1),I}function N(I){return I<=1?"".concat(Number(I)*100,"%"):I}function w(I){return I.length===1?"0"+I:String(I)}},68479:function(nt,V,m){"use strict";m.d(V,{iv:function(){return dn}});function y(tt){if(tt.sheet)return tt.sheet;for(var dt=0;dt0?P(Ee,--we):0,fe--,Ne===10&&(fe=1,he--),Ne}function Ie(){return Ne=we2||Pt(Ne)>3?"":" "}function mt(tt){for(;Ie();)switch(Pt(Ne)){case 0:append(Yr(we-1),tt);break;case 2:append(bt(Ne),tt);break;default:append(from(Ne),tt)}return tt}function _n(tt,dt){for(;--dt&&Ie()&&!(Ne<48||Ne>102||Ne>57&&Ne<65||Ne>70&&Ne<97););return Ce(tt,We()+(dt<6&&me()==32&&Ie()==32))}function Bn(tt){for(;Ie();)switch(Ne){case tt:return we;case 34:case 39:tt!==34&&tt!==39&&Bn(Ne);break;case 40:tt===41&&Bn(tt);break;case 92:Ie();break}return we}function Er(tt,dt){for(;Ie()&&tt+Ne!==47+10;)if(tt+Ne===42+42&&me()===47)break;return"/*"+Ce(dt,we-1)+"*"+k(tt===47?tt:Ie())}function Yr(tt){for(;!Pt(me());)Ie();return Ce(tt,we)}var oi="-ms-",to="-moz-",yo="-webkit-",vr="comm",Po="rule",ss="decl",ve="@page",_o="@media",ci="@import",Bi="@charset",wi="@viewport",io="@supports",ln="@document",Ve="@namespace",_t="@keyframes",Ct="@font-face",jt="@counter-style",on="@font-feature-values",Ot="@layer";function Tt(tt,dt){for(var vt="",ze=J(tt),lt=0;lt-1&&!tt.return)switch(tt.type){case DECLARATION:tt.return=prefix(tt.value,tt.length,vt);return;case KEYFRAMES:return serialize([copy(tt,{value:replace(tt.value,"@","@"+WEBKIT)})],ze);case RULESET:if(tt.length)return combine(tt.props,function(lt){switch(match(lt,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(tt,{props:[replace(lt,/:(read-\w+)/,":"+MOZ+"$1")]})],ze);case"::placeholder":return serialize([copy(tt,{props:[replace(lt,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(tt,{props:[replace(lt,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(tt,{props:[replace(lt,/:(plac\w+)/,MS+"input-$1")]})],ze)}return""})}}function hr(tt){switch(tt.type){case RULESET:tt.props=tt.props.map(function(dt){return combine(tokenize(dt),function(vt,ze,lt){switch(charat(vt,0)){case 12:return substr(vt,1,strlen(vt));case 0:case 40:case 43:case 62:case 126:return vt;case 58:lt[++ze]==="global"&&(lt[ze]="",lt[++ze]="\f"+substr(lt[ze],ze=1,-1));case 32:return ze===1?"":vt;default:switch(ze){case 0:return tt=vt,sizeof(lt)>1?"":vt;case(ze=sizeof(lt)-1):case 2:return ze===2?vt+tt+tt:vt+tt;default:return vt}}})})}}function Zi(tt){return Ue(Ri("",null,null,null,[""],tt=ct(tt),0,[0],tt))}function Ri(tt,dt,vt,ze,lt,Et,an,jn,xr){for(var Ti=0,$i=0,Vi=an,us=0,ks=0,Os=0,pa=1,no=1,Cs=1,ea=0,fa="",Bl=lt,Ma=Et,gl=ze,ia=fa;no;)switch(Os=ea,ea=Ie()){case 40:if(Os!=108&&P(ia,Vi-1)==58){S(ia+=f(bt(ea),"&","&\f"),"&\f")!=-1&&(Cs=-1);break}case 34:case 39:case 91:ia+=bt(ea);break;case 9:case 10:case 13:case 32:ia+=Bt(Os);break;case 92:ia+=_n(We()-1,7);continue;case 47:switch(me()){case 42:case 47:ie($o(Er(Ie(),We()),dt,vt),xr);break;default:ia+="/"}break;case 123*pa:jn[Ti++]=re(ia)*Cs;case 125*pa:case 59:case 0:switch(ea){case 0:case 125:no=0;case 59+$i:Cs==-1&&(ia=f(ia,/\f/g,"")),ks>0&&re(ia)-Vi&&ie(ks>32?ys(ia+";",ze,vt,Vi-1):ys(f(ia," ","")+";",ze,vt,Vi-2),xr);break;case 59:ia+=";";default:if(ie(gl=Pi(ia,dt,vt,Ti,$i,lt,jn,fa,Bl=[],Ma=[],Vi),Et),ea===123)if($i===0)Ri(ia,dt,gl,gl,Bl,Et,Vi,jn,Ma);else switch(us===99&&P(ia,3)===110?100:us){case 100:case 108:case 109:case 115:Ri(tt,gl,gl,ze&&ie(Pi(tt,gl,gl,0,0,lt,jn,fa,lt,Bl=[],Vi),Ma),lt,Ma,Vi,jn,ze?Bl:Ma);break;default:Ri(ia,gl,gl,gl,[""],Ma,0,jn,Ma)}}Ti=$i=ks=0,pa=Cs=1,fa=ia="",Vi=an;break;case 58:Vi=1+re(ia),ks=Os;default:if(pa<1){if(ea==123)--pa;else if(ea==125&&pa++==0&&be()==125)continue}switch(ia+=k(ea),ea*pa){case 38:Cs=$i>0?1:(ia+="\f",-1);break;case 44:jn[Ti++]=(re(ia)-1)*Cs,Cs=1;break;case 64:me()===45&&(ia+=bt(Ie())),us=me(),$i=Vi=re(fa=ia+=Yr(We())),ea++;break;case 45:Os===45&&re(ia)==2&&(pa=0)}}return Et}function Pi(tt,dt,vt,ze,lt,Et,an,jn,xr,Ti,$i){for(var Vi=lt-1,us=lt===0?Et:[""],ks=J(us),Os=0,pa=0,no=0;Os0?us[Cs]+" "+ea:f(ea,/&\f/g,us[Cs])))&&(xr[no++]=fa);return ge(tt,dt,vt,lt===0?Po:jn,xr,Ti,$i)}function $o(tt,dt,vt){return ge(tt,dt,vt,vr,k(xe()),j(tt,2,-2),0)}function ys(tt,dt,vt,ze){return ge(tt,dt,vt,ss,j(tt,0,ze),j(tt,ze+1,-1),ze)}var xn=function(dt,vt,ze){for(var lt=0,Et=0;lt=Et,Et=me(),lt===38&&Et===12&&(vt[ze]=1),!Pt(Et);)Ie();return Ce(dt,we)},Hr=function(dt,vt){var ze=-1,lt=44;do switch(Pt(lt)){case 0:lt===38&&me()===12&&(vt[ze]=1),dt[ze]+=xn(we-1,vt,ze);break;case 2:dt[ze]+=bt(lt);break;case 4:if(lt===44){dt[++ze]=me()===58?"&\f":"",vt[ze]=dt[ze].length;break}default:dt[ze]+=k(lt)}while(lt=Ie());return dt},Jr=function(dt,vt){return Ue(Hr(ct(dt),vt))},Yi=new WeakMap,xo=function(dt){if(!(dt.type!=="rule"||!dt.parent||dt.length<1)){for(var vt=dt.value,ze=dt.parent,lt=dt.column===ze.column&&dt.line===ze.line;ze.type!=="rule";)if(ze=ze.parent,!ze)return;if(!(dt.props.length===1&&vt.charCodeAt(0)!==58&&!Yi.get(ze))&&!lt){Yi.set(dt,!0);for(var Et=[],an=Jr(vt,Et),jn=ze.props,xr=0,Ti=0;xr-1},Mr=function(dt){return function(vt,ze,lt){if(!(vt.type!=="rule"||dt.compat)){var Et=vt.value.match(/(:first|:nth|:nth-last)-child/g);if(Et){for(var an=!!vt.parent,jn=an?vt.parent.children:lt,xr=jn.length-1;xr>=0;xr--){var Ti=jn[xr];if(Ti.line=0;ze--)if(!li(vt[ze]))return!0;return!1},qr=function(dt){dt.type="",dt.value="",dt.return="",dt.children="",dt.props=""},ii=function(dt,vt,ze){li(dt)&&(dt.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),qr(dt)):Cr(vt,ze)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),qr(dt)))};function rn(tt,dt){switch(w(tt,dt)){case 5103:return yo+"print-"+tt+tt;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return yo+tt+tt;case 5349:case 4246:case 4810:case 6968:case 2756:return yo+tt+to+tt+oi+tt+tt;case 6828:case 4268:return yo+tt+oi+tt+tt;case 6165:return yo+tt+oi+"flex-"+tt+tt;case 5187:return yo+tt+f(tt,/(\w+).+(:[^]+)/,yo+"box-$1$2"+oi+"flex-$1$2")+tt;case 5443:return yo+tt+oi+"flex-item-"+f(tt,/flex-|-self/,"")+tt;case 4675:return yo+tt+oi+"flex-line-pack"+f(tt,/align-content|flex-|-self/,"")+tt;case 5548:return yo+tt+oi+f(tt,"shrink","negative")+tt;case 5292:return yo+tt+oi+f(tt,"basis","preferred-size")+tt;case 6060:return yo+"box-"+f(tt,"-grow","")+yo+tt+oi+f(tt,"grow","positive")+tt;case 4554:return yo+f(tt,/([^-])(transform)/g,"$1"+yo+"$2")+tt;case 6187:return f(f(f(tt,/(zoom-|grab)/,yo+"$1"),/(image-set)/,yo+"$1"),tt,"")+tt;case 5495:case 3959:return f(tt,/(image-set\([^]*)/,yo+"$1$`$1");case 4968:return f(f(tt,/(.+:)(flex-)?(.*)/,yo+"box-pack:$3"+oi+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+yo+tt+tt;case 4095:case 3583:case 4068:case 2532:return f(tt,/(.+)-inline(.+)/,yo+"$1$2")+tt;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(re(tt)-1-dt>6)switch(P(tt,dt+1)){case 109:if(P(tt,dt+4)!==45)break;case 102:return f(tt,/(.+:)(.+)-([^]+)/,"$1"+yo+"$2-$3$1"+to+(P(tt,dt+3)==108?"$3":"$2-$3"))+tt;case 115:return~S(tt,"stretch")?rn(f(tt,"stretch","fill-available"),dt)+tt:tt}break;case 4949:if(P(tt,dt+1)!==115)break;case 6444:switch(P(tt,re(tt)-3-(~S(tt,"!important")&&10))){case 107:return f(tt,":",":"+yo)+tt;case 101:return f(tt,/(.+:)([^;!]+)(;|!.+)?/,"$1"+yo+(P(tt,14)===45?"inline-":"")+"box$3$1"+yo+"$2$3$1"+oi+"$2box$3")+tt}break;case 5936:switch(P(tt,dt+11)){case 114:return yo+tt+oi+f(tt,/[svh]\w+-[tblr]{2}/,"tb")+tt;case 108:return yo+tt+oi+f(tt,/[svh]\w+-[tblr]{2}/,"tb-rl")+tt;case 45:return yo+tt+oi+f(tt,/[svh]\w+-[tblr]{2}/,"lr")+tt}return yo+tt+oi+tt+tt}return tt}var Jn=function(dt,vt,ze,lt){if(dt.length>-1&&!dt.return)switch(dt.type){case ss:dt.return=rn(dt.value,dt.length);break;case _t:return Tt([ye(dt,{value:f(dt.value,"@","@"+yo)})],lt);case Po:if(dt.length)return de(dt.props,function(Et){switch(C(Et,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Tt([ye(dt,{props:[f(Et,/:(read-\w+)/,":"+to+"$1")]})],lt);case"::placeholder":return Tt([ye(dt,{props:[f(Et,/:(plac\w+)/,":"+yo+"input-$1")]}),ye(dt,{props:[f(Et,/:(plac\w+)/,":"+to+"$1")]}),ye(dt,{props:[f(Et,/:(plac\w+)/,oi+"input-$1")]})],lt)}return""})}},Vr=[Jn],so=function(dt){var vt=dt.key;if(vt==="css"){var ze=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(ze,function(pa){var no=pa.getAttribute("data-emotion");no.indexOf(" ")!==-1&&(document.head.appendChild(pa),pa.setAttribute("data-s",""))})}var lt=dt.stylisPlugins||Vr,Et={},an,jn=[];an=dt.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+vt+' "]'),function(pa){for(var no=pa.getAttribute("data-emotion").split(" "),Cs=1;Cs=4;++ze,lt-=4)vt=tt.charCodeAt(ze)&255|(tt.charCodeAt(++ze)&255)<<8|(tt.charCodeAt(++ze)&255)<<16|(tt.charCodeAt(++ze)&255)<<24,vt=(vt&65535)*1540483477+((vt>>>16)*59797<<16),vt^=vt>>>24,dt=(vt&65535)*1540483477+((vt>>>16)*59797<<16)^(dt&65535)*1540483477+((dt>>>16)*59797<<16);switch(lt){case 3:dt^=(tt.charCodeAt(ze+2)&255)<<16;case 2:dt^=(tt.charCodeAt(ze+1)&255)<<8;case 1:dt^=tt.charCodeAt(ze)&255,dt=(dt&65535)*1540483477+((dt>>>16)*59797<<16)}return dt^=dt>>>13,dt=(dt&65535)*1540483477+((dt>>>16)*59797<<16),((dt^dt>>>15)>>>0).toString(36)}var zt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function pn(tt){var dt=Object.create(null);return function(vt){return dt[vt]===void 0&&(dt[vt]=tt(vt)),dt[vt]}}var _r=`You have illegal escape sequence in your template literal, most likely inside content's property value. +`);var lL=function(a){(0,dt.Z)(u,a);var p=yR(u);function u(){return(0,wt.Z)(this,u),p.apply(this,arguments)}return(0,He.Z)(u,[{key:"getServiceConstructor",value:function(){return AU}}]),u}(WC),LU=m(96377),PU=m.n(LU),Jw=function(){function a(p,u){(0,wt.Z)(this,a);var c=u.buffer,l=u.offset,g=u.stride,T=u.normalized,B=u.size,Z=u.divisor;this.buffer=c,this.attribute={buffer:c.get(),offset:l||0,stride:g||0,normalized:T||!1,divisor:Z||0},B&&(this.attribute.size=B)}return(0,He.Z)(a,[{key:"get",value:function(){return this.attribute}},{key:"updateBuffer",value:function(u){this.buffer.subData(u)}},{key:"destroy",value:function(){this.buffer.destroy()}}]),a}(),YC,pS,Qw,ex,lT,gS,qC,uL,Vy,H_,Bv,Jx,Z_,kA,lk=(YC={},(0,bn.Z)(YC,Gi.POINTS,"points"),(0,bn.Z)(YC,Gi.LINES,"lines"),(0,bn.Z)(YC,Gi.LINE_LOOP,"line loop"),(0,bn.Z)(YC,Gi.LINE_STRIP,"line strip"),(0,bn.Z)(YC,Gi.TRIANGLES,"triangles"),(0,bn.Z)(YC,Gi.TRIANGLE_FAN,"triangle fan"),(0,bn.Z)(YC,Gi.TRIANGLE_STRIP,"triangle strip"),YC),uk=(pS={},(0,bn.Z)(pS,Gi.STATIC_DRAW,"static"),(0,bn.Z)(pS,Gi.DYNAMIC_DRAW,"dynamic"),(0,bn.Z)(pS,Gi.STREAM_DRAW,"stream"),pS),cL=(Qw={},(0,bn.Z)(Qw,Gi.BYTE,"int8"),(0,bn.Z)(Qw,Gi.UNSIGNED_INT,"int16"),(0,bn.Z)(Qw,Gi.INT,"int32"),(0,bn.Z)(Qw,Gi.UNSIGNED_BYTE,"uint8"),(0,bn.Z)(Qw,Gi.UNSIGNED_SHORT,"uint16"),(0,bn.Z)(Qw,Gi.UNSIGNED_INT,"uint32"),(0,bn.Z)(Qw,Gi.FLOAT,"float"),Qw),j7=(ex={},(0,bn.Z)(ex,Gi.ALPHA,"alpha"),(0,bn.Z)(ex,Gi.LUMINANCE,"luminance"),(0,bn.Z)(ex,Gi.LUMINANCE_ALPHA,"luminance alpha"),(0,bn.Z)(ex,Gi.RGB,"rgb"),(0,bn.Z)(ex,Gi.RGBA,"rgba"),(0,bn.Z)(ex,Gi.RGBA4,"rgba4"),(0,bn.Z)(ex,Gi.RGB5_A1,"rgb5 a1"),(0,bn.Z)(ex,Gi.RGB565,"rgb565"),(0,bn.Z)(ex,Gi.DEPTH_COMPONENT,"depth"),(0,bn.Z)(ex,Gi.DEPTH_STENCIL,"depth stencil"),ex),dL=(lT={},(0,bn.Z)(lT,Gi.DONT_CARE,"dont care"),(0,bn.Z)(lT,Gi.NICEST,"nice"),(0,bn.Z)(lT,Gi.FASTEST,"fast"),lT),ck=(gS={},(0,bn.Z)(gS,Gi.NEAREST,"nearest"),(0,bn.Z)(gS,Gi.LINEAR,"linear"),(0,bn.Z)(gS,Gi.LINEAR_MIPMAP_LINEAR,"mipmap"),(0,bn.Z)(gS,Gi.NEAREST_MIPMAP_LINEAR,"nearest mipmap linear"),(0,bn.Z)(gS,Gi.LINEAR_MIPMAP_NEAREST,"linear mipmap nearest"),(0,bn.Z)(gS,Gi.NEAREST_MIPMAP_NEAREST,"nearest mipmap nearest"),gS),_R=(qC={},(0,bn.Z)(qC,Gi.REPEAT,"repeat"),(0,bn.Z)(qC,Gi.CLAMP_TO_EDGE,"clamp"),(0,bn.Z)(qC,Gi.MIRRORED_REPEAT,"mirror"),qC),V7=(uL={},(0,bn.Z)(uL,Gi.NONE,"none"),(0,bn.Z)(uL,Gi.BROWSER_DEFAULT_WEBGL,"browser"),uL),U7=(Vy={},(0,bn.Z)(Vy,Gi.NEVER,"never"),(0,bn.Z)(Vy,Gi.ALWAYS,"always"),(0,bn.Z)(Vy,Gi.LESS,"less"),(0,bn.Z)(Vy,Gi.LEQUAL,"lequal"),(0,bn.Z)(Vy,Gi.GREATER,"greater"),(0,bn.Z)(Vy,Gi.GEQUAL,"gequal"),(0,bn.Z)(Vy,Gi.EQUAL,"equal"),(0,bn.Z)(Vy,Gi.NOTEQUAL,"notequal"),Vy),hL=(H_={},(0,bn.Z)(H_,Gi.FUNC_ADD,"add"),(0,bn.Z)(H_,Gi.MIN_EXT,"min"),(0,bn.Z)(H_,Gi.MAX_EXT,"max"),(0,bn.Z)(H_,Gi.FUNC_SUBTRACT,"subtract"),(0,bn.Z)(H_,Gi.FUNC_REVERSE_SUBTRACT,"reverse subtract"),H_),mS=(Bv={},(0,bn.Z)(Bv,Gi.ZERO,"zero"),(0,bn.Z)(Bv,Gi.ONE,"one"),(0,bn.Z)(Bv,Gi.SRC_COLOR,"src color"),(0,bn.Z)(Bv,Gi.ONE_MINUS_SRC_COLOR,"one minus src color"),(0,bn.Z)(Bv,Gi.SRC_ALPHA,"src alpha"),(0,bn.Z)(Bv,Gi.ONE_MINUS_SRC_ALPHA,"one minus src alpha"),(0,bn.Z)(Bv,Gi.DST_COLOR,"dst color"),(0,bn.Z)(Bv,Gi.ONE_MINUS_DST_COLOR,"one minus dst color"),(0,bn.Z)(Bv,Gi.DST_ALPHA,"dst alpha"),(0,bn.Z)(Bv,Gi.ONE_MINUS_DST_ALPHA,"one minus dst alpha"),(0,bn.Z)(Bv,Gi.CONSTANT_COLOR,"constant color"),(0,bn.Z)(Bv,Gi.ONE_MINUS_CONSTANT_COLOR,"one minus constant color"),(0,bn.Z)(Bv,Gi.CONSTANT_ALPHA,"constant alpha"),(0,bn.Z)(Bv,Gi.ONE_MINUS_CONSTANT_ALPHA,"one minus constant alpha"),(0,bn.Z)(Bv,Gi.SRC_ALPHA_SATURATE,"src alpha saturate"),Bv),tx=(Jx={},(0,bn.Z)(Jx,Gi.NEVER,"never"),(0,bn.Z)(Jx,Gi.ALWAYS,"always"),(0,bn.Z)(Jx,Gi.LESS,"less"),(0,bn.Z)(Jx,Gi.LEQUAL,"lequal"),(0,bn.Z)(Jx,Gi.GREATER,"greater"),(0,bn.Z)(Jx,Gi.GEQUAL,"gequal"),(0,bn.Z)(Jx,Gi.EQUAL,"equal"),(0,bn.Z)(Jx,Gi.NOTEQUAL,"notequal"),Jx),vS=(Z_={},(0,bn.Z)(Z_,Gi.ZERO,"zero"),(0,bn.Z)(Z_,Gi.KEEP,"keep"),(0,bn.Z)(Z_,Gi.REPLACE,"replace"),(0,bn.Z)(Z_,Gi.INVERT,"invert"),(0,bn.Z)(Z_,Gi.INCR,"increment"),(0,bn.Z)(Z_,Gi.DECR,"decrement"),(0,bn.Z)(Z_,Gi.INCR_WRAP,"increment wrap"),(0,bn.Z)(Z_,Gi.DECR_WRAP,"decrement wrap"),Z_),bR=(kA={},(0,bn.Z)(kA,Gi.FRONT,"front"),(0,bn.Z)(kA,Gi.BACK,"back"),kA),xR=function(){function a(p,u){(0,wt.Z)(this,a),(0,bn.Z)(this,"isDestroyed",!1);var c=u.data,l=u.usage,g=u.type;this.buffer=p.buffer({data:c,usage:uk[l||Gi.STATIC_DRAW],type:cL[g||Gi.UNSIGNED_BYTE]})}return(0,He.Z)(a,[{key:"get",value:function(){return this.buffer}},{key:"destroy",value:function(){this.isDestroyed||this.buffer.destroy(),this.isDestroyed=!0}},{key:"subData",value:function(u){var c=u.data,l=u.offset;this.buffer.subdata(c,l)}}]),a}(),CR=function(){function a(p,u){(0,wt.Z)(this,a);var c=u.data,l=u.usage,g=u.type,T=u.count;this.elements=p.elements({data:c,usage:uk[l||Gi.STATIC_DRAW],type:cL[g||Gi.UNSIGNED_BYTE],count:T})}return(0,He.Z)(a,[{key:"get",value:function(){return this.elements}},{key:"subData",value:function(u){var c=u.data;this.elements.subdata(c)}},{key:"destroy",value:function(){}}]),a}(),wR=function(){function a(p,u){(0,wt.Z)(this,a);var c=u.width,l=u.height,g=u.color,T=u.colors,B={width:c,height:l};Array.isArray(T)&&(B.colors=T.map(function(Z){return Z.get()})),g&&typeof g!="boolean"&&(B.color=g.get()),this.framebuffer=p.framebuffer(B)}return(0,He.Z)(a,[{key:"get",value:function(){return this.framebuffer}},{key:"destroy",value:function(){this.framebuffer.destroy()}},{key:"resize",value:function(u){var c=u.width,l=u.height;this.framebuffer.resize(c,l)}}]),a}(),SR=Ma.isPlainObject,ER=Ma.isTypedArray,TR=function(){function a(p,u){(0,wt.Z)(this,a),(0,bn.Z)(this,"destroyed",!1),(0,bn.Z)(this,"uniforms",{}),this.reGl=p;var c=u.vs,l=u.fs,g=u.attributes,T=u.uniforms,B=u.primitive,Z=u.count,ee=u.elements,Pe=u.depth,Ze=u.cull,St=u.instances,Mt={};this.options=u,T&&(this.uniforms=this.extractUniforms(T),Object.keys(T).forEach(function(vr){Mt[vr]=p.prop(vr)}));var Tn={};Object.keys(g).forEach(function(vr){Tn[vr]=g[vr].get()});var kn={attributes:Tn,frag:l,uniforms:Mt,vert:c,colorMask:p.prop("colorMask"),lineWidth:1,blend:{enable:p.prop("blend.enable"),func:p.prop("blend.func"),equation:p.prop("blend.equation"),color:p.prop("blend.color")},stencil:{enable:p.prop("stencil.enable"),mask:p.prop("stencil.mask"),func:p.prop("stencil.func"),opFront:p.prop("stencil.opFront"),opBack:p.prop("stencil.opBack")},primitive:lk[B===void 0?Gi.TRIANGLES:B]};St&&(kn.instances=St),Z?kn.count=Z:ee&&(kn.elements=ee.get()),this.initDepthDrawParams({depth:Pe},kn),this.initCullDrawParams({cull:Ze},kn),this.drawCommand=p(kn),this.drawParams=kn}return(0,He.Z)(a,[{key:"updateAttributesAndElements",value:function(u,c){var l={};Object.keys(u).forEach(function(g){l[g]=u[g].get()}),this.drawParams.attributes=l,this.drawParams.elements=c.get(),this.drawCommand=this.reGl(this.drawParams)}},{key:"updateAttributes",value:function(u){var c={};Object.keys(u).forEach(function(l){c[l]=u[l].get()}),this.drawParams.attributes=c,this.drawCommand=this.reGl(this.drawParams)}},{key:"addUniforms",value:function(u){this.uniforms=(0,xe.Z)((0,xe.Z)({},this.uniforms),this.extractUniforms(u))}},{key:"draw",value:function(u,c){if(!(this.drawParams.attributes&&Object.keys(this.drawParams.attributes).length===0)){var l=(0,xe.Z)((0,xe.Z)({},this.uniforms),this.extractUniforms(u.uniforms||{})),g={};Object.keys(l).forEach(function(T){var B=(0,Ro.Z)(l[T]);B==="boolean"||B==="number"||Array.isArray(l[T])||l[T].BYTES_PER_ELEMENT?g[T]=l[T]:g[T]=l[T].get()}),g.blend=c?this.getBlendDrawParams({blend:{enable:!1}}):this.getBlendDrawParams(u),g.stencil=this.getStencilDrawParams(u),g.colorMask=this.getColorMaskDrawParams(u,c),this.drawCommand(g)}}},{key:"destroy",value:function(){var u,c;(u=this.drawParams)===null||u===void 0||(c=u.elements)===null||c===void 0||c.destroy(),this.options.attributes&&Object.values(this.options.attributes).forEach(function(l){l==null||l.destroy()}),this.destroyed=!0}},{key:"initDepthDrawParams",value:function(u,c){var l=u.depth;l&&(c.depth={enable:l.enable===void 0?!0:!!l.enable,mask:l.mask===void 0?!0:!!l.mask,func:U7[l.func||Gi.LESS],range:l.range||[0,1]})}},{key:"getBlendDrawParams",value:function(u){var c=u.blend,l=c||{},g=l.enable,T=l.func,B=l.equation,Z=l.color,ee=Z===void 0?[0,0,0,0]:Z;return{enable:!!g,func:{srcRGB:mS[T&&T.srcRGB||Gi.SRC_ALPHA],srcAlpha:mS[T&&T.srcAlpha||Gi.SRC_ALPHA],dstRGB:mS[T&&T.dstRGB||Gi.ONE_MINUS_SRC_ALPHA],dstAlpha:mS[T&&T.dstAlpha||Gi.ONE_MINUS_SRC_ALPHA]},equation:{rgb:hL[B&&B.rgb||Gi.FUNC_ADD],alpha:hL[B&&B.alpha||Gi.FUNC_ADD]},color:ee}}},{key:"getStencilDrawParams",value:function(u){var c=u.stencil,l=c||{},g=l.enable,T=l.mask,B=T===void 0?-1:T,Z=l.func,ee=Z===void 0?{cmp:Gi.ALWAYS,ref:0,mask:-1}:Z,Pe=l.opFront,Ze=Pe===void 0?{fail:Gi.KEEP,zfail:Gi.KEEP,zpass:Gi.KEEP}:Pe,St=l.opBack,Mt=St===void 0?{fail:Gi.KEEP,zfail:Gi.KEEP,zpass:Gi.KEEP}:St;return{enable:!!g,mask:B,func:(0,xe.Z)((0,xe.Z)({},ee),{},{cmp:tx[ee.cmp]}),opFront:{fail:vS[Ze.fail],zfail:vS[Ze.zfail],zpass:vS[Ze.zpass]},opBack:{fail:vS[Mt.fail],zfail:vS[Mt.zfail],zpass:vS[Mt.zpass]}}}},{key:"getColorMaskDrawParams",value:function(u,c){var l=u.stencil,g=l!=null&&l.enable&&l.opFront&&!c?[!1,!1,!1,!1]:[!0,!0,!0,!0];return g}},{key:"initCullDrawParams",value:function(u,c){var l=u.cull;if(l){var g=l.enable,T=l.face,B=T===void 0?Gi.BACK:T;c.cull={enable:!!g,face:bR[B]}}}},{key:"extractUniforms",value:function(u){var c=this,l={};return Object.keys(u).forEach(function(g){c.extractUniformsRecursively(g,u[g],l,"")}),l}},{key:"extractUniformsRecursively",value:function(u,c,l,g){var T=this;if(c===null||typeof c=="number"||typeof c=="boolean"||Array.isArray(c)&&typeof c[0]=="number"||ER(c)||c===""||"resize"in c){l["".concat(g&&g+".").concat(u)]=c;return}SR(c)&&Object.keys(c).forEach(function(B){T.extractUniformsRecursively(B,c[B],l,"".concat(g&&g+".").concat(u))}),Array.isArray(c)&&c.forEach(function(B,Z){Object.keys(B).forEach(function(ee){T.extractUniformsRecursively(ee,B[ee],l,"".concat(g&&g+".").concat(u,"[").concat(Z,"]"))})})}}]),a}(),H7=function(){function a(p,u){(0,wt.Z)(this,a),(0,bn.Z)(this,"isDestroy",!1);var c=u.data,l=u.type,g=l===void 0?Gi.UNSIGNED_BYTE:l,T=u.width,B=u.height,Z=u.flipY,ee=Z===void 0?!1:Z,Pe=u.format,Ze=Pe===void 0?Gi.RGBA:Pe,St=u.mipmap,Mt=St===void 0?!1:St,Tn=u.wrapS,kn=Tn===void 0?Gi.CLAMP_TO_EDGE:Tn,vr=u.wrapT,wi=vr===void 0?Gi.CLAMP_TO_EDGE:vr,zo=u.aniso,$o=zo===void 0?0:zo,Ks=u.alignment,ra=Ks===void 0?1:Ks,La=u.premultiplyAlpha,vl=La===void 0?!1:La,Wl=u.mag,Jl=Wl===void 0?Gi.NEAREST:Wl,ju=u.min,Ku=ju===void 0?Gi.NEAREST:ju,Jc=u.colorSpace,gd=Jc===void 0?Gi.BROWSER_DEFAULT_WEBGL:Jc,Ch=u.x,og=Ch===void 0?0:Ch,um=u.y,Zg=um===void 0?0:um,Zm=u.copy,p0=Zm===void 0?!1:Zm;this.width=T,this.height=B;var nv={width:T,height:B,type:cL[g],format:j7[Ze],wrapS:_R[kn],wrapT:_R[wi],mag:ck[Jl],min:ck[Ku],alignment:ra,flipY:ee,colorSpace:V7[gd],premultiplyAlpha:vl,aniso:$o,x:og,y:Zg,copy:p0};c&&(nv.data=c),typeof Mt=="number"?nv.mipmap=dL[Mt]:typeof Mt=="boolean"&&(nv.mipmap=Mt),this.texture=p.texture(nv)}return(0,He.Z)(a,[{key:"get",value:function(){return this.texture}},{key:"update",value:function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.texture(u)}},{key:"bind",value:function(){this.texture._texture.bind()}},{key:"resize",value:function(u){var c=u.width,l=u.height;this.texture.resize(c,l),this.width=c,this.height=l}},{key:"getSize",value:function(){return[this.width,this.height]}},{key:"destroy",value:function(){if(!this.isDestroy){var u;(u=this.texture)===null||u===void 0||u.destroy()}this.isDestroy=!0}}]),a}(),nx,MA,rx=(nx=(0,ws.b2)(),nx(MA=function(){function a(){var p=this;(0,wt.Z)(this,a),(0,bn.Z)(this,"createModel",function(u){return new TR(p.gl,u)}),(0,bn.Z)(this,"createAttribute",function(u){return new Jw(p.gl,u)}),(0,bn.Z)(this,"createBuffer",function(u){return new xR(p.gl,u)}),(0,bn.Z)(this,"createElements",function(u){return new CR(p.gl,u)}),(0,bn.Z)(this,"createTexture2D",function(u){return new H7(p.gl,u)}),(0,bn.Z)(this,"createFramebuffer",function(u){return new wR(p.gl,u)}),(0,bn.Z)(this,"useFramebuffer",function(u,c){p.gl({framebuffer:u?u.get():null})(c)}),(0,bn.Z)(this,"clear",function(u){var c,l=u.color,g=u.depth,T=u.stencil,B=u.framebuffer,Z=B===void 0?null:B,ee={color:l,depth:g,stencil:T};ee.framebuffer=Z===null?Z:Z.get(),(c=p.gl)===null||c===void 0||c.clear(ee)}),(0,bn.Z)(this,"viewport",function(u){var c=u.x,l=u.y,g=u.width,T=u.height;p.gl._gl.viewport(c,l,g,T),p.width=g,p.height=T,p.gl._refresh()}),(0,bn.Z)(this,"readPixels",function(u){var c=u.framebuffer,l=u.x,g=u.y,T=u.width,B=u.height,Z={x:l,y:g,width:T,height:B};return c&&(Z.framebuffer=c.get()),p.gl.read(Z)}),(0,bn.Z)(this,"getViewportSize",function(){return{width:p.gl._gl.drawingBufferWidth,height:p.gl._gl.drawingBufferHeight}}),(0,bn.Z)(this,"getContainer",function(){var u;return(u=p.canvas)===null||u===void 0?void 0:u.parentElement}),(0,bn.Z)(this,"getCanvas",function(){return p.canvas}),(0,bn.Z)(this,"getGLContext",function(){return p.gl._gl}),(0,bn.Z)(this,"destroy",function(){var u,c,l;p.canvas=null,(u=p.gl)===null||u===void 0||(c=u._gl)===null||c===void 0||(l=c.getExtension("WEBGL_lose_context"))===null||l===void 0||l.loseContext(),p.gl.destroy(),p.gl=null})}return(0,He.Z)(a,[{key:"init",value:function(){var p=(0,Pa.Z)(Qi().mark(function c(l,g,T){var B=this;return Qi().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:if(this.canvas=l,!T){ee.next=5;break}this.gl=T,ee.next=8;break;case 5:return ee.next=7,new Promise(function(Pe,Ze){PU()({canvas:B.canvas,attributes:{alpha:!0,antialias:g.antialias,premultipliedAlpha:!0,preserveDrawingBuffer:g.preserveDrawingBuffer,stencil:g.stencil},extensions:["OES_element_index_uint","OES_standard_derivatives","ANGLE_instanced_arrays"],optionalExtensions:["oes_texture_float_linear","OES_texture_float","EXT_texture_filter_anisotropic","EXT_blend_minmax","WEBGL_depth_texture","WEBGL_lose_context"],profile:!0,onDone:function(Mt,Tn){(Mt||!Tn)&&Ze(Mt),Pe(Tn)}})});case 7:this.gl=ee.sent;case 8:this.extensionObject={OES_texture_float:this.testExtension("OES_texture_float")};case 9:case"end":return ee.stop()}},c,this)}));function u(c,l,g){return p.apply(this,arguments)}return u}()},{key:"getPointSizeRange",value:function(){return this.gl._gl.getParameter(this.gl._gl.ALIASED_POINT_SIZE_RANGE)}},{key:"testExtension",value:function(u){return!!this.getGLContext().getExtension(u)}},{key:"setState",value:function(){this.gl({cull:{enable:!1,face:"back"},viewport:{x:0,y:0,height:this.width,width:this.height},blend:{enable:!0,equation:"add"},framebuffer:null}),this.gl._refresh()}},{key:"setBaseState",value:function(){this.gl({cull:{enable:!1,face:"back"},viewport:{x:0,y:0,height:this.width,width:this.height},blend:{enable:!1,equation:"add"},framebuffer:null}),this.gl._refresh()}},{key:"setCustomLayerDefaults",value:function(){var u=this.getGLContext();u.disable(u.CULL_FACE)}},{key:"setDirty",value:function(u){this.isDirty=u}},{key:"getDirty",value:function(){return this.isDirty}}]),a}())||MA);function fL(a){var p=Z7();return function(){var c=(0,gt.Z)(a),l;if(p){var g=(0,gt.Z)(this).constructor;l=Reflect.construct(c,arguments,g)}else l=c.apply(this,arguments);return(0,Bt.Z)(this,l)}}function Z7(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}var dk=["selectstart","selecting","selectend"],G7=function(a){(0,dt.Z)(u,a);var p=fL(u);function u(c){var l,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,wt.Z)(this,u),l=p.call(this),(0,bn.Z)((0,is.Z)(l),"isEnable",!1),(0,bn.Z)((0,is.Z)(l),"onDragStart",function(T){l.box.style.display="block",l.startEvent=l.endEvent=T,l.syncBoxBound(),l.emit("selectstart",l.getLngLatBox(),l.startEvent,l.endEvent)}),(0,bn.Z)((0,is.Z)(l),"onDragging",function(T){l.endEvent=T,l.syncBoxBound(),l.emit("selecting",l.getLngLatBox(),l.startEvent,l.endEvent)}),(0,bn.Z)((0,is.Z)(l),"onDragEnd",function(T){l.endEvent=T,l.box.style.display="none",l.emit("selectend",l.getLngLatBox(),l.startEvent,l.endEvent)}),l.scene=c,l.options=g,l}return(0,He.Z)(u,[{key:"container",get:function(){return this.scene.getMapService().getMarkerContainer()}},{key:"enable",value:function(){if(!this.isEnable){var l=this.options.className;if(this.scene.setMapStatus({dragEnable:!1}),this.container.style.cursor="crosshair",!this.box){var g=qi("div",void 0,this.container);g.classList.add("l7-select-box"),l&&g.classList.add(l),g.style.display="none",this.box=g}this.scene.on("dragstart",this.onDragStart),this.scene.on("dragging",this.onDragging),this.scene.on("dragend",this.onDragEnd),this.isEnable=!0}}},{key:"disable",value:function(){this.isEnable&&(this.scene.setMapStatus({dragEnable:!0}),this.container.style.cursor="auto",this.scene.off("dragstart",this.onDragStart),this.scene.off("dragging",this.onDragging),this.scene.off("dragend",this.onDragEnd),this.isEnable=!1)}},{key:"syncBoxBound",value:function(){var l=this.startEvent,g=l.x,T=l.y,B=this.endEvent,Z=B.x,ee=B.y,Pe=Math.min(g,Z),Ze=Math.min(T,ee),St=Math.abs(g-Z),Mt=Math.abs(T-ee);this.box.style.top="".concat(Ze,"px"),this.box.style.left="".concat(Pe,"px"),this.box.style.width="".concat(St,"px"),this.box.style.height="".concat(Mt,"px")}},{key:"getLngLatBox",value:function(){var l=this.startEvent.lngLat,g=l.lng,T=l.lat,B=this.endEvent.lngLat,Z=B.lng,ee=B.lat;return Cp([[g,T],[Z,ee]])}}]),u}(gf.EventEmitter),K7=function(){function a(p){(0,wt.Z)(this,a);var u=p.id,c=p.map,l=p.canvas,g=p.hasBaseMap,T=qm();this.container=T,c.setContainer(T,u,l,g),T.bind(gr.IRendererService).to(rx).inSingletonScope(),this.sceneService=T.get(gr.ISceneService),this.mapService=T.get(gr.IMapService),this.iconService=T.get(gr.IIconService),this.fontService=T.get(gr.IFontService),this.controlService=T.get(gr.IControlService),this.layerService=T.get(gr.ILayerService),this.debugService=T.get(gr.IDebugService),this.debugService.setEnable(p.debug),this.markerService=T.get(gr.IMarkerService),this.interactionService=T.get(gr.IInteractionService),this.popupService=T.get(gr.IPopupService),this.boxSelect=new G7(this,{}),this.initComponent(u),this.sceneService.init(p),this.initControl()}return(0,He.Z)(a,[{key:"map",get:function(){return this.mapService.map}},{key:"loaded",get:function(){return this.sceneService.loaded}},{key:"getServiceContainer",value:function(){return this.container}},{key:"getSize",value:function(){return this.mapService.getSize()}},{key:"getMinZoom",value:function(){return this.mapService.getMinZoom()}},{key:"getMaxZoom",value:function(){return this.mapService.getMaxZoom()}},{key:"getType",value:function(){return this.mapService.getType()}},{key:"getMapContainer",value:function(){return this.mapService.getMapContainer()}},{key:"getMapCanvasContainer",value:function(){return this.mapService.getMapCanvasContainer()}},{key:"getMapService",value:function(){return this.mapService}},{key:"getDebugService",value:function(){return this.debugService}},{key:"exportPng",value:function(){var p=(0,Pa.Z)(Qi().mark(function c(l){return Qi().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return T.abrupt("return",this.sceneService.exportPng(l));case 1:case"end":return T.stop()}},c,this)}));function u(c){return p.apply(this,arguments)}return u}()},{key:"exportMap",value:function(){var p=(0,Pa.Z)(Qi().mark(function c(l){return Qi().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return T.abrupt("return",this.sceneService.exportPng(l));case 1:case"end":return T.stop()}},c,this)}));function u(c){return p.apply(this,arguments)}return u}()},{key:"registerRenderService",value:function(u){var c=this;if(this.sceneService.loaded){var l=new u(this);l.init()}else this.on("loaded",function(){var g=new u(c);g.init()})}},{key:"setBgColor",value:function(u){this.mapService.setBgColor(u)}},{key:"addLayer",value:function(u){var c=this,l=Bb(this.container);if(u.setContainer(l,this.container),this.sceneService.addLayer(u),u.inited){var g=this.initMask(u);this.addMask(g,u.id)}else u.on("inited",function(){var T=c.initMask(u);c.addMask(T,u.id)})}},{key:"initMask",value:function(u){var c=u.getLayerConfig(),l=c.mask,g=c.maskfence,T=c.maskColor,B=T===void 0?"#000":T,Z=c.maskOpacity,ee=Z===void 0?0:Z;if(!(!l||!g)){var Pe=new mO().source(g).shape("fill").style({color:B,opacity:ee});return Pe}}},{key:"addMask",value:function(u,c){if(u){var l=this.getLayer(c);if(l){var g=Bb(this.container);u.setContainer(g,this.container),l.addMaskLayer(u),this.sceneService.addMask(u)}else console.warn("parent layer not find!")}}},{key:"getPickedLayer",value:function(){return this.layerService.pickedLayerId}},{key:"getLayers",value:function(){return this.layerService.getLayers()}},{key:"getLayer",value:function(u){return this.layerService.getLayer(u)}},{key:"getLayerByName",value:function(u){return this.layerService.getLayerByName(u)}},{key:"removeLayer",value:function(){var p=(0,Pa.Z)(Qi().mark(function c(l,g){return Qi().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.next=2,this.layerService.remove(l,g);case 2:case"end":return B.stop()}},c,this)}));function u(c,l){return p.apply(this,arguments)}return u}()},{key:"removeAllLayer",value:function(){var p=(0,Pa.Z)(Qi().mark(function c(){return Qi().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,this.layerService.removeAllLayers();case 2:case"end":return g.stop()}},c,this)}));function u(){return p.apply(this,arguments)}return u}()},{key:"render",value:function(){this.sceneService.render()}},{key:"setEnableRender",value:function(u){this.layerService.setEnableRender(u)}},{key:"addIconFont",value:function(u,c){this.fontService.addIconFont(u,c)}},{key:"addIconFonts",value:function(u){var c=this;u.forEach(function(l){var g=(0,qn.Z)(l,2),T=g[0],B=g[1];c.fontService.addIconFont(T,B)})}},{key:"addFontFace",value:function(u,c){var l=this;this.fontService.once("fontloaded",function(g){l.emit("fontloaded",g)}),this.fontService.addFontFace(u,c)}},{key:"addImage",value:function(){var p=(0,Pa.Z)(Qi().mark(function c(l,g){return Qi().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.next=2,this.iconService.addImage(l,g);case 2:case"end":return B.stop()}},c,this)}));function u(c,l){return p.apply(this,arguments)}return u}()},{key:"hasImage",value:function(u){return this.iconService.hasImage(u)}},{key:"removeImage",value:function(u){this.iconService.removeImage(u)}},{key:"addIconFontGlyphs",value:function(u,c){this.fontService.addIconGlyphs(c)}},{key:"addControl",value:function(u){this.controlService.addControl(u,this.container)}},{key:"removeControl",value:function(u){this.controlService.removeControl(u)}},{key:"getControlByName",value:function(u){return this.controlService.getControlByName(u)}},{key:"addMarker",value:function(u){this.markerService.addMarker(u)}},{key:"addMarkerLayer",value:function(u){this.markerService.addMarkerLayer(u)}},{key:"removeMarkerLayer",value:function(u){this.markerService.removeMarkerLayer(u)}},{key:"removeAllMarkers",value:function(){this.markerService.removeAllMarkers()}},{key:"removeAllMakers",value:function(){console.warn("removeAllMakers \u5DF2\u5E9F\u5F03\uFF0C\u8BF7\u4F7F\u7528 removeAllMarkers"),this.markerService.removeAllMarkers()}},{key:"addPopup",value:function(u){this.popupService.addPopup(u)}},{key:"removePopup",value:function(u){this.popupService.removePopup(u)}},{key:"on",value:function(u,c){if(dk.includes(u)){var l;(l=this.boxSelect)===null||l===void 0||l.on(u,c)}else Ew.includes(u)?this.sceneService.on(u,c):this.mapService.on(u,c)}},{key:"once",value:function(u,c){if(dk.includes(u)){var l;(l=this.boxSelect)===null||l===void 0||l.once(u,c)}else Ew.includes(u)?this.sceneService.once(u,c):this.mapService.once(u,c)}},{key:"emit",value:function(u,c){Ew.indexOf(u)===-1?this.mapService.on(u,c):this.sceneService.emit(u,c)}},{key:"off",value:function(u,c){if(dk.includes(u)){var l;(l=this.boxSelect)===null||l===void 0||l.off(u,c)}else Ew.includes(u)?this.sceneService.off(u,c):this.mapService.off(u,c)}},{key:"getZoom",value:function(){return this.mapService.getZoom()}},{key:"getCenter",value:function(u){return this.mapService.getCenter(u)}},{key:"setCenter",value:function(u,c){return this.mapService.setCenter(u,c)}},{key:"getPitch",value:function(){return this.mapService.getPitch()}},{key:"setPitch",value:function(u){return this.mapService.setPitch(u)}},{key:"getRotation",value:function(){return this.mapService.getRotation()}},{key:"getBounds",value:function(){return this.mapService.getBounds()}},{key:"setRotation",value:function(u){this.mapService.setRotation(u)}},{key:"zoomIn",value:function(){this.mapService.zoomIn()}},{key:"zoomOut",value:function(){this.mapService.zoomOut()}},{key:"panTo",value:function(u){this.mapService.panTo(u)}},{key:"panBy",value:function(u,c){this.mapService.panBy(u,c)}},{key:"getContainer",value:function(){return this.mapService.getContainer()}},{key:"setZoom",value:function(u){this.mapService.setZoom(u)}},{key:"fitBounds",value:function(u,c){var l=this.sceneService.getSceneConfig(),g=l.fitBoundsOptions,T=l.animate;this.mapService.fitBounds(u,c||(0,xe.Z)((0,xe.Z)({},g),{},{animate:T}))}},{key:"setZoomAndCenter",value:function(u,c){this.mapService.setZoomAndCenter(u,c)}},{key:"setMapStyle",value:function(u){this.mapService.setMapStyle(u)}},{key:"setMapStatus",value:function(u){this.mapService.setMapStatus(u)}},{key:"pixelToLngLat",value:function(u){return this.mapService.pixelToLngLat(u)}},{key:"lngLatToPixel",value:function(u){return this.mapService.lngLatToPixel(u)}},{key:"containerToLngLat",value:function(u){return this.mapService.containerToLngLat(u)}},{key:"lngLatToContainer",value:function(u){return this.mapService.lngLatToContainer(u)}},{key:"destroy",value:function(){this.sceneService.destroy()}},{key:"registerPostProcessingPass",value:function(u,c){this.container.bind(gr.IPostProcessingPass).to(u).whenTargetNamed(c)}},{key:"enableShaderPick",value:function(){this.layerService.enableShaderPick()}},{key:"diasbleShaderPick",value:function(){this.layerService.disableShaderPick()}},{key:"enableBoxSelect",value:function(){var u=this,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.boxSelect.enable(),c&&this.boxSelect.once("selectend",function(){u.disableBoxSelect()})}},{key:"disableBoxSelect",value:function(){this.boxSelect.disable()}},{key:"getProtocol",value:function(u){return to.REGISTERED_PROTOCOLS[u]}},{key:"getPointSizeRange",value:function(){return this.sceneService.getPointSizeRange()}},{key:"initComponent",value:function(u){this.controlService.init({container:oa(u)},this.container),this.markerService.init(this.container),this.popupService.init(this.container)}},{key:"initControl",value:function(){var u=this.sceneService.getSceneConfig(),c=u.logoVisible,l=u.logoPosition;c&&this.addControl(new Fl({position:l}))}}],[{key:"addProtocol",value:function(u,c){to.REGISTERED_PROTOCOLS[u]=c}},{key:"removeProtocol",value:function(u){delete to.REGISTERED_PROTOCOLS[u]}}]),a}(),X7="2.17.11"},60590:function(nt,V,m){"use strict";m.d(V,{br:function(){return Ff},ot:function(){return q},l_:function(){return ua},$2:function(){return li},Ie:function(){return Df},OB:function(){return dh},w3:function(){return en},Jx:function(){return Zc},CB:function(){return sa},ns:function(){return sg},dW:function(){return sp},GI:function(){return ud},YY:function(){return tp},kp:function(){return Hn},jf:function(){return xu},AB:function(){return wp},Ly:function(){return Td},dN:function(){return ji},$r:function(){return qr}});var y=m(5552),I=m(77617),b=m(1948),z=function(Le){return function(Me,et){var hn=(0,I.useRef)(),Lr=(0,I.useRef)(0);(et===void 0||!(0,b.k)(et,hn.current))&&(hn.current=et,Lr.current+=1),Le(Me,[Lr.current])}},k=z(I.useEffect),N=m(12124),w=m.n(N),A=m(63364),C=m(40984),f=m(92378),S="*",P=function(){function Le(){this._events={}}return Le.prototype.on=function(Me,et,hn){return this._events[Me]||(this._events[Me]=[]),this._events[Me].push({callback:et,once:!!hn}),this},Le.prototype.once=function(Me,et){return this.on(Me,et,!0)},Le.prototype.emit=function(Me){for(var et=this,hn=[],Lr=1;Lr=Le.length?{done:!0}:{done:!1,value:Le[hn++]}},e:function(xa){throw xa},f:Lr}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Cn=!0,ei=!1,Li;return{s:function(){et=et.call(Le)},n:function(){var xa=et.next();return Cn=xa.done,xa},e:function(xa){ei=!0,Li=xa},f:function(){try{!Cn&&et.return!=null&&et.return()}finally{if(ei)throw Li}}}}function ce(Le,Me){if(Le){if(typeof Le=="string")return pe(Le,Me);var et=Object.prototype.toString.call(Le).slice(8,-1);if(et==="Object"&&Le.constructor&&(et=Le.constructor.name),et==="Map"||et==="Set")return Array.from(Le);if(et==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(et))return pe(Le,Me)}}function pe(Le,Me){(Me==null||Me>Le.length)&&(Me=Le.length);for(var et=0,hn=new Array(Me);etLe.length)&&(Me=Le.length);for(var et=0,hn=new Array(Me);et0&&arguments[0]!==void 0?arguments[0]:{};return Object.entries(Me!=null?Me:{}).map(function(et){var hn=He(et,2),Lr=hn[0],Cn=hn[1],ei=(0,ct.Z)(Lr),Li=Cn;return typeof Li=="number"?Li="".concat(Li,"px"):typeof Li=="string"&&(Li=Li.replace("'","")),"".concat(ei," :").concat(Li)}).join("; ")};function Er(Le,Me){return yr(Le)||yo(Le,Me)||oi(Le,Me)||Yr()}function Yr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oi(Le,Me){if(Le){if(typeof Le=="string")return to(Le,Me);var et=Object.prototype.toString.call(Le).slice(8,-1);if(et==="Object"&&Le.constructor&&(et=Le.constructor.name),et==="Map"||et==="Set")return Array.from(Le);if(et==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(et))return to(Le,Me)}}function to(Le,Me){(Me==null||Me>Le.length)&&(Me=Le.length);for(var et=0,hn=new Array(Me);et=0;--ls){var bs=this.tryEntries[ls],Pl=bs.completion;if(bs.tryLoc==="root")return gi("end");if(bs.tryLoc<=this.prev){var Ys=et.call(bs,"catchLoc"),ml=et.call(bs,"finallyLoc");if(Ys&&ml){if(this.prev=0;--gi){var ls=this.tryEntries[gi];if(ls.tryLoc<=this.prev&&et.call(ls,"finallyLoc")&&this.prev=0;--Rr){var gi=this.tryEntries[Rr];if(gi.finallyLoc===sr)return this.complete(gi.completion,gi.afterLoc),wa(gi),_l}},catch:function(sr){for(var Rr=this.tryEntries.length-1;Rr>=0;--Rr){var gi=this.tryEntries[Rr];if(gi.tryLoc===sr){var ls=gi.completion;if(ls.type==="throw"){var bs=ls.arg;wa(gi)}return bs}}throw new Error("illegal catch attempt")},delegateYield:function(sr,Rr,gi){return this.delegate={iterator:Fs(sr),resultName:Rr,nextLoc:gi},this.method==="next"&&(this.arg=void 0),_l}},Le}function _o(Le,Me,et,hn,Lr,Cn,ei){try{var Li=Le[Cn](ei),ps=Li.value}catch(xa){et(xa);return}Li.done?Me(ps):Promise.resolve(ps).then(hn,Lr)}function ci(Le){return function(){var Me=this,et=arguments;return new Promise(function(hn,Lr){var Cn=Le.apply(Me,et);function ei(ps){_o(Cn,hn,Lr,ei,Li,"next",ps)}function Li(ps){_o(Cn,hn,Lr,ei,Li,"throw",ps)}ei(void 0)})}}var Bi=function(){var Le=ci(ge().mark(function Me(et,hn){return ge().wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:if(et!=="Map"){Cn.next=2;break}return Cn.abrupt("return",new y.Map(hn));case 2:if(et!=="Gaode"){Cn.next=6;break}return Cn.abrupt("return",new y.GaodeMap(hn));case 6:if(et!=="GaodeV1"){Cn.next=10;break}return Cn.abrupt("return",new y.GaodeMapV1(hn));case 10:if(et!=="GaodeV2"){Cn.next=12;break}return Cn.abrupt("return",new y.GaodeMapV2(hn));case 12:return Cn.abrupt("return",Promise.resolve(Promise.resolve().then(m.bind(m,5552))).then(function(ei){var Li=ei.Mapbox;return new Li(hn)}));case 13:case"end":return Cn.stop()}},Me)}));return function(et,hn){return Le.apply(this,arguments)}}(),Ci=function(Le,Me){return Le?Le.map(function(et,hn){return Object.is(Le[hn],Me==null?void 0:Me[hn])?-1:hn}).filter(function(et){return et>=0}):Me?Me.map(function(et,hn){return hn}):[]},io=function(Le,Me){var et=(0,I.useRef)();(0,I.useEffect)(function(){var hn=Ci(et.current,Me),Lr=et.current;return et.current=Me,Le(hn,Lr,Me)},Me)},ln=io,Ve=m(22633),_t={onLoaded:"loaded",onDestroy:"destroy",onResize:"resize",onMapMove:"mapmove",onMoveStart:"movestart",onMoveEnd:"moveend",onZoomChange:"zoomchange",onZoomStart:"zoomstart",onZoomEnd:"zoomend",onClick:"click",onDblclick:"dblclick",onContextMenu:"contextmenu",onMouseMove:"mousemove",onMouseWheel:"mousewheel",onMouseDown:"mousedown",onMouseOver:"mouseover",onMouseOut:"mouseout",onMouseUp:"mouseup",onDragStart:"dragstart",onDragging:"dragging",onDragEnd:"dragend"},xt=Object.keys(_t);function Wt(Le){return bt(Le)||Tt(Le)||Ot(Le)||on()}function on(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ot(Le,Me){if(Le){if(typeof Le=="string")return Ht(Le,Me);var et=Object.prototype.toString.call(Le).slice(8,-1);if(et==="Object"&&Le.constructor&&(et=Le.constructor.name),et==="Map"||et==="Set")return Array.from(Le);if(et==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(et))return Ht(Le,Me)}}function Tt(Le){if(typeof Symbol!="undefined"&&Le[Symbol.iterator]!=null||Le["@@iterator"]!=null)return Array.from(Le)}function bt(Le){if(Array.isArray(Le))return Ht(Le)}function Ht(Le,Me){(Me==null||Me>Le.length)&&(Me=Le.length);for(var et=0,hn=new Array(Me);etLe.length)&&(Me=Le.length);for(var et=0,hn=new Array(Me);et=0)&&Object.prototype.propertyIsEnumerable.call(Le,hn)&&(et[hn]=Le[hn])}return et}function Xn(Le,Me){if(Le==null)return{};var et={},hn=Object.keys(Le),Lr,Cn;for(Cn=0;Cn=0)&&(et[Lr]=Le[Lr]);return et}var Mr=I.createContext(null),li=(0,I.memo)((0,I.forwardRef)(function(Me,et){var hn=Me.id,Lr=Me.style,Cn=Me.className,ei=Me.map,Li=Me.mapType,ps=Li===void 0?"Gaode":Li,xa=Me.mapOptions,Sa=xa===void 0?{}:xa,_l=Me.onLayerManagerCreated,Ql=Me.onSceneLoaded,Ju=Me.children,ws=Un(Me,hr),Ha=(0,I.useRef)(),gr=(0,I.useState)(null),Ka=xn(gr,2),Ca=Ka[0],Du=Ka[1],Wc=(0,I.useRef)({scene:null,layerManager:null}),Qo=Wc.current;(0,I.useEffect)(function(){var As,wa=!0,ka=(0,A.Z)(ei)?Bi(ps,Sa):typeof ei=="function"?ei():ei;return Promise.resolve(ka).then(function(Fs){if(wa){As=new y.Scene(Ri(Ri({},ws),{},{id:Ha.current,map:Fs}));var gs=new Pt({scene:As});Qo.scene=As,Qo.layerManager=gs,As.once("loaded",function(){Ql&&Ql(As),_l&&_l(gs),Du(As)})}}).catch(function(Fs){console.error(Fs)}),function(){wa=!1,As&&(Qo.scene=null,Qo.layerManager=null,As.destroy())}},[]),Wn(Ca,Me),(0,I.useImperativeHandle)(et,function(){return{getScene:function(){return Ca},getMap:function(){return Ca.map}}},[Ca]),(0,I.useEffect)(function(){Ca&&Sa.style&&Ca.setMapStyle(Sa.style)},[Sa.style]),k(function(){(0,C.Z)(Ca)||(Sa.center&&(0,f.Z)(Sa.zoom)?Ca.setZoomAndCenter(Sa.zoom,Sa.center):(0,f.Z)(Sa.zoom)?Ca.setZoom(Sa.zoom):Sa.center&&Ca.setCenter(Sa.center))},[Sa.zoom,Sa.center]),(0,I.useEffect)(function(){Ca&&(0,f.Z)(Sa.pitch)&&Ca.setPitch(Sa.pitch)},[Sa.pitch]),(0,I.useEffect)(function(){Ca&&(0,f.Z)(Sa.rotation)&&Ca.setRotation(Sa.rotation)},[Sa.rotation]);var Do=(0,I.useMemo)(function(){return Ri({position:"relative"},Lr)},[Lr]);return I.createElement("div",{id:hn,ref:Ha,style:Do,className:w()("larkmap",Cn)},Ca&&I.createElement(Mr.Provider,{value:Qo},Ju))})),wr=m(35894),qr=function(){var Me=(0,I.useContext)(Mr);if(!Me)throw new Error("The useScene must be used in the LarkMap container");var et=Me.scene;return et},ii=function(Me,et,hn){var Lr=qr(),Cn=(0,I.useRef)();(0,I.useEffect)(function(){var ei=new y.Control(hn);return ei.onAdd=function(){return Me(Lr)},ei.onRemove=function(){},Cn.current=ei,Lr.addControl(ei),function(){typeof et=="function"&&et(Lr),Cn.current=null,Lr.removeControl(ei)}},[]),(0,wr.Z)(function(){var ei;(ei=Cn.current)===null||ei===void 0||ei.setOptions(hn)},[hn])},rn=function(){var Me=(0,I.useContext)(Mr);if(!Me)throw new Error("The useLayerManager must be used in the LarkMap container");var et=Me.layerManager;return et};function Qn(Le,Me){return pn(Le)||zt(Le,Me)||so(Le,Me)||Vr()}function Vr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function so(Le,Me){if(Le){if(typeof Le=="string")return rs(Le,Me);var et=Object.prototype.toString.call(Le).slice(8,-1);if(et==="Object"&&Le.constructor&&(et=Le.constructor.name),et==="Map"||et==="Set")return Array.from(Le);if(et==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(et))return rs(Le,Me)}}function rs(Le,Me){(Me==null||Me>Le.length)&&(Me=Le.length);for(var et=0,hn=new Array(Me);etLe.length)&&(Me=Le.length);for(var et=0,hn=new Array(Me);et=0)&&Object.prototype.propertyIsEnumerable.call(Le,hn)&&(et[hn]=Le[hn])}return et}function _a(Le,Me){if(Le==null)return{};var et={},hn=Object.keys(Le),Lr,Cn;for(Cn=0;Cn=0)&&(et[Lr]=Le[Lr]);return et}var da=function(Me,et){var hn=et.onCreated,Lr=et.source,Cn=ds(et,yi),ei=rn(),Li=(0,I.useRef)(),ps=(0,I.useRef)(Cn),xa=(0,I.useRef)(Lr);return Li.current||(Li.current=new Me(et),hn&&Li.current.once("inited",function(){return hn(Li.current)}),ei.addLayer(Li.current)),(0,wr.Z)(function(){if(Li.current){var Sa=!(0,Tr.Z)(ps.current,Cn);Sa&&(Li.current.update(Cn),ps.current=(0,Qt.Z)(Cn))}},[Cn]),(0,wr.Z)(function(){if(Li.current){var Sa=Lr.data,_l=ds(Lr,Ln),Ql=xa.current,Ju=Ql.data,ws=ds(Ql,Si),Ha=Sa!==Ju||!(0,Tr.Z)(_l,ws);Ha&&(Li.current.changeData(Lr),xa.current=vi({},Lr))}},[Lr]),(0,I.useEffect)(function(){return function(){Li.current&&(ei.removeLayer(Li.current),Li.current=null)}},[]),Li},zs={onRemove:"remove",onShow:"show",onHide:"hide",onDataUpdate:"dataUpdate",onLegend:"legend",onLegendColor:"legend:color",onLegendSize:"legend:size",onClick:"click",onUnClick:"unclick",onDblClick:"dblclick",onUndblclick:"undblclick",onContextMenu:"contextmenu",onUnContextMenu:"uncontextmenu",onMouseEnter:"mouseenter",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseUp:"mouseup",onMouseDown:"mousedown",onUnMousemove:"unmousemove",onUnMouseup:"unmouseup",onUnMousedown:"unmousedown",onUnPick:"unpick"},Wa=function(Me,et){var hn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:zs,Lr=(0,I.useMemo)(function(){return Object.keys(hn)},[hn]),Cn=function(Sa){Lr.forEach(function(_l){var Ql=hn[_l],Ju=et[_l];_l&&Ju&&Me[Sa](Ql,Ju)})},ei=function(){return Cn("on")},Li=function(){return Cn("off")},ps=(0,I.useRef)(!0);ps.current&&ei(),(0,I.useEffect)(function(){return ps.current?ps.current=!1:ei(),function(){Li()}},Lr.map(function(xa){return et[xa]})),(0,Ve.Z)(function(){Li()})},Co=null,cl=null,Fr=m(32290),fs={}.toString,jo=function(Le,Me){return fs.call(Le)==="[object "+Me+"]"},Es=jo,xs=function(Le){return Es(Le,"Function")},Za=function(Le){return Array.isArray?Array.isArray(Le):Es(Le,"Array")},tl=function(Le){var Me=typeof Le;return Le!==null&&Me==="object"||Me==="function"};function xl(Le,Me){if(Le){var et;if(Za(Le))for(var hn=0,Lr=Le.length;hn-1;)no.call(Le,Cn,1);return Le},fa=null,Bl=Array.prototype.splice,Ma=function(Me,et){if(!isArrayLike(Me))return[];for(var hn=Me?et.length:0,Lr=hn-1;hn--;){var Cn=void 0,ei=et[hn];(hn===Lr||ei!==Cn)&&(Cn=ei,Bl.call(Me,ei,1))}return Me},pl=null,oa=function(Le,Me,et){if(!Za(Le)&&!vt(Le))return Le;var hn=et;return Qa(Le,function(Lr,Cn){hn=Me(hn,Lr,Cn)}),hn},Nl=oa,cs=function(Le,Me){var et=[];if(!isArrayLike(Le))return et;for(var hn=-1,Lr=[],Cn=Le.length;++hnCn[Li])return 1;if(Lr[Li]0},au=null,bn=function(Le,Me){if(isArray(Le)){for(var et,hn=-1/0,Lr=0;Lrhn&&(et=Cn,hn=ei)}return et}},Eu=function(Le,Me){if(isArray(Le)){for(var et,hn=1/0,Lr=0;LrLi&&Sa>Li);)if(ps.push(xa),Li-=Sa,ei=ei.substr(Lr),!ei)return ps.join("");for(;xa=ei.substr(0,1),Sa=measureTextWidth(xa,et),!(Sa+Cn>Li);)if(ps.push(xa),Li-=Sa,ei=ei.substr(1),!ei)return ps.join("");return""+ps.join("")+hn},ed=function(){function Le(){this.map={}}return Le.prototype.has=function(Me){return this.map[Me]!==void 0},Le.prototype.get=function(Me,et){var hn=this.map[Me];return hn===void 0?et:hn},Le.prototype.set=function(Me,et){this.map[Me]=et},Le.prototype.clear=function(){this.map={}},Le.prototype.delete=function(Me){delete this.map[Me]},Le.prototype.size=function(){return Object.keys(this.map).length},Le}(),Vh=null;function Kh(Le,Me){return function(){for(var et=[],hn=0;hnLe.length)&&(Me=Le.length);for(var et=0,hn=new Array(Me);etLe.length)&&(Me=Le.length);for(var et=0,hn=new Array(Me);etLe.length)&&(Me=Le.length);for(var et=0,hn=new Array(Me);etLe.length)&&(Me=Le.length);for(var et=0,hn=new Array(Me);etLe.length)&&(Me=Le.length);for(var et=0,hn=new Array(Me);etLe.length)&&(Me=Le.length);for(var et=0,hn=new Array(Me);etLe.length)&&(Me=Le.length);for(var et=0,hn=new Array(Me);etLe.length)&&(Me=Le.length);for(var et=0,hn=new Array(Me);etLe.length)&&(Me=Le.length);for(var et=0,hn=new Array(Me);etLe.length)&&(Me=Le.length);for(var et=0,hn=new Array(Me);etLe.length)&&(Me=Le.length);for(var et=0,hn=new Array(Me);etLe.length)&&(Me=Le.length);for(var et=0,hn=new Array(Me);etLe.length)&&(Me=Le.length);for(var et=0,hn=new Array(Me);et=0)&&Object.prototype.propertyIsEnumerable.call(Le,hn)&&(et[hn]=Le[hn])}return et}function k0(Le,Me){if(Le==null)return{};var et={},hn=Object.keys(Le),Lr,Cn;for(Cn=0;Cn=0)&&(et[Lr]=Le[Lr]);return et}var Sp="SECRET_COMBOBOX_MODE_DO_NOT_USE",Xf="larkmap-select",Zh=function(Me,et){var hn=Me.prefixCls,Lr=Me.bordered,Cn=Lr===void 0?!0:Lr,ei=Me.className,Li=Me.getPopupContainer,ps=Me.dropdownClassName,xa=Me.popupClassName,Sa=Me.listHeight,_l=Sa===void 0?256:Sa,Ql=Me.placement,Ju=Me.listItemHeight,ws=Ju===void 0?24:Ju,Ha=Me.disabled,gr=Me.notFoundContent,Ka=Zp(Me,Qg),Ca=I.useMemo(function(){var Qo=Ka,Do=Qo.mode;if(Do!=="combobox")return Do===Sp?"combobox":Do},[Ka]),Du=(0,Lg.Z)(Ka,"suffixIcon","itemIcon"),Wc=w()(Om({},"".concat(Xf,"-borderless"),!Cn),ei);return I.createElement(ug.ZP,Lm({ref:et},Du,{listHeight:_l,listItemHeight:ws,mode:Ca,prefixCls:Xf,placement:Ql,notFoundContent:gr!=null?gr:"\u5F53\u524D\u65E0\u6570\u636E",className:Wc,getPopupContainer:Li,dropdownClassName:xa,disabled:Ha}))},a0=I.forwardRef(Zh);a0.SECRET_COMBOBOX_MODE_DO_NOT_USE=Sp,a0.Option=ug.Wx,a0.OptGroup=ug.Xo;var M0=a0;function Kg(Le){"@babel/helpers - typeof";return Kg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Me){return typeof Me}:function(Me){return Me&&typeof Symbol=="function"&&Me.constructor===Symbol&&Me!==Symbol.prototype?"symbol":typeof Me},Kg(Le)}var Wm=["searchParams","showDistrict","showAddress","onSearchFinish","onChange"];function m0(){return m0=Object.assign?Object.assign.bind():function(Le){for(var Me=1;Me=0;--ls){var bs=this.tryEntries[ls],Pl=bs.completion;if(bs.tryLoc==="root")return gi("end");if(bs.tryLoc<=this.prev){var Ys=et.call(bs,"catchLoc"),ml=et.call(bs,"finallyLoc");if(Ys&&ml){if(this.prev=0;--gi){var ls=this.tryEntries[gi];if(ls.tryLoc<=this.prev&&et.call(ls,"finallyLoc")&&this.prev=0;--Rr){var gi=this.tryEntries[Rr];if(gi.finallyLoc===sr)return this.complete(gi.completion,gi.afterLoc),wa(gi),_l}},catch:function(sr){for(var Rr=this.tryEntries.length-1;Rr>=0;--Rr){var gi=this.tryEntries[Rr];if(gi.tryLoc===sr){var ls=gi.completion;if(ls.type==="throw"){var bs=ls.arg;wa(gi)}return bs}}throw new Error("illegal catch attempt")},delegateYield:function(sr,Rr,gi){return this.delegate={iterator:Fs(sr),resultName:Rr,nextLoc:gi},this.method==="next"&&(this.arg=void 0),_l}},Le}function $d(Le){return e0(Le)||Vg(Le)||_e(Le)||K0()}function K0(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vg(Le){if(typeof Symbol!="undefined"&&Le[Symbol.iterator]!=null||Le["@@iterator"]!=null)return Array.from(Le)}function e0(Le){if(Array.isArray(Le))return at(Le)}function ym(Le,Me){var et=Object.keys(Le);if(Object.getOwnPropertySymbols){var hn=Object.getOwnPropertySymbols(Le);Me&&(hn=hn.filter(function(Lr){return Object.getOwnPropertyDescriptor(Le,Lr).enumerable})),et.push.apply(et,hn)}return et}function jm(Le){for(var Me=1;MeLe.length)&&(Me=Le.length);for(var et=0,hn=new Array(Me);et=0)&&Object.prototype.propertyIsEnumerable.call(Le,hn)&&(et[hn]=Le[hn])}return et}function It(Le,Me){if(Le==null)return{};var et={},hn=Object.keys(Le),Lr,Cn;for(Cn=0;Cn=0)&&(et[Lr]=Le[Lr]);return et}var Ut=M0.Option,Vt=function(Me){var et=Me.searchParams,hn=Me.showDistrict,Lr=Me.showAddress,Cn=Me.onSearchFinish,ei=Me.onChange,Li=Xe(Me,Wm),ps=(0,I.useState)([]),xa=de(ps,2),Sa=xa[0],_l=xa[1];(0,I.useEffect)(function(){Cn==null||Cn(Sa)},[Cn,Sa]);var Ql=(0,im.Z)(function(){var Ha=Pg(Gm().mark(function gr(Ka){var Ca,Du,Wc,Qo;return Gm().wrap(function(As){for(;;)switch(As.prev=As.next){case 0:if(Ka){As.next=3;break}return _l([]),As.abrupt("return");case 3:return Wc=Po(vm,jm(jm({},et),{},{keywords:[].concat($d(((Ca=et.keywords)!==null&&Ca!==void 0?Ca:"").split("|")),[Ka]).filter(function(wa){return!!wa}).join("|")})),As.next=6,fetch(Wc);case 6:return As.next=8,As.sent.json();case 8:Qo=As.sent,_l(((Du=Qo==null?void 0:Qo.tips)!==null&&Du!==void 0?Du:[]).filter(function(wa){return wa.location&&wa.location.length}).map(function(wa){var ka=wa.location.split(","),Fs=de(ka,2),gs=Fs[0],Xi=Fs[1];return wa.longitude=+gs,wa.latitude=+Xi,wa}));case 10:case"end":return As.stop()}},gr)}));return function(gr){return Ha.apply(this,arguments)}}(),{wait:1e3}),Ju=Ql.run,ws=(0,I.useCallback)(function(Ha){var gr=Ha&&Sa.find(function(Ka){return Ka.name===Ha});ei==null||ei(Ha||void 0,gr||void 0)},[ei,Sa]);return I.createElement(M0,m0({className:"".concat(Cm),onSearch:Ju,onChange:ws,clearIcon:function(){return null}},Li),Sa.map(function(Ha){var gr="".concat(hn?Ha.district:"").concat(Lr?Ha.address:"");return I.createElement(Ut,{key:Ha.id,value:Ha.name},I.createElement("div",{title:Ha.name,className:"".concat(Cm,"__option-name")},Ha.name),gr&&I.createElement("div",{title:gr,className:"".concat(Cm,"__option-tip")},gr))}))};Vt.defaultProps={placeholder:"\u8BF7\u8F93\u5165\u8981\u641C\u7D22\u5730\u540D",showSearch:!0,allowClear:!0,filterOption:!1,defaultActiveFirstOption:!1,showAddress:!0,showDistrict:!0};var Xt=m(88234),sn=m(4639),mn="larkmap-administrative-location",On="https://restapi.amap.com/v3/geocode/regeo";function lr(Le){"@babel/helpers - typeof";return lr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Me){return typeof Me}:function(Me){return Me&&typeof Symbol=="function"&&Me.constructor===Symbol&&Me!==Symbol.prototype?"symbol":typeof Me},lr(Le)}function Sr(){"use strict";Sr=function(){return Le};var Le={},Me=Object.prototype,et=Me.hasOwnProperty,hn=Object.defineProperty||function(Xi,sr,Rr){Xi[sr]=Rr.value},Lr=typeof Symbol=="function"?Symbol:{},Cn=Lr.iterator||"@@iterator",ei=Lr.asyncIterator||"@@asyncIterator",Li=Lr.toStringTag||"@@toStringTag";function ps(Xi,sr,Rr){return Object.defineProperty(Xi,sr,{value:Rr,enumerable:!0,configurable:!0,writable:!0}),Xi[sr]}try{ps({},"")}catch(Xi){ps=function(Rr,gi,ls){return Rr[gi]=ls}}function xa(Xi,sr,Rr,gi){var ls=sr&&sr.prototype instanceof Ql?sr:Ql,bs=Object.create(ls.prototype),Pl=new ka(gi||[]);return hn(bs,"_invoke",{value:Qo(Xi,Rr,Pl)}),bs}function Sa(Xi,sr,Rr){try{return{type:"normal",arg:Xi.call(sr,Rr)}}catch(gi){return{type:"throw",arg:gi}}}Le.wrap=xa;var _l={};function Ql(){}function Ju(){}function ws(){}var Ha={};ps(Ha,Cn,function(){return this});var gr=Object.getPrototypeOf,Ka=gr&&gr(gr(Fs([])));Ka&&Ka!==Me&&et.call(Ka,Cn)&&(Ha=Ka);var Ca=ws.prototype=Ql.prototype=Object.create(Ha);function Du(Xi){["next","throw","return"].forEach(function(sr){ps(Xi,sr,function(Rr){return this._invoke(sr,Rr)})})}function Wc(Xi,sr){function Rr(ls,bs,Pl,Ys){var ml=Sa(Xi[ls],Xi,bs);if(ml.type!=="throw"){var mu=ml.arg,hc=mu.value;return hc&&lr(hc)=="object"&&et.call(hc,"__await")?sr.resolve(hc.__await).then(function(cd){Rr("next",cd,Pl,Ys)},function(cd){Rr("throw",cd,Pl,Ys)}):sr.resolve(hc).then(function(cd){mu.value=cd,Pl(mu)},function(cd){return Rr("throw",cd,Pl,Ys)})}Ys(ml.arg)}var gi;hn(this,"_invoke",{value:function(bs,Pl){function Ys(){return new sr(function(ml,mu){Rr(bs,Pl,ml,mu)})}return gi=gi?gi.then(Ys,Ys):Ys()}})}function Qo(Xi,sr,Rr){var gi="suspendedStart";return function(ls,bs){if(gi==="executing")throw new Error("Generator is already running");if(gi==="completed"){if(ls==="throw")throw bs;return gs()}for(Rr.method=ls,Rr.arg=bs;;){var Pl=Rr.delegate;if(Pl){var Ys=Do(Pl,Rr);if(Ys){if(Ys===_l)continue;return Ys}}if(Rr.method==="next")Rr.sent=Rr._sent=Rr.arg;else if(Rr.method==="throw"){if(gi==="suspendedStart")throw gi="completed",Rr.arg;Rr.dispatchException(Rr.arg)}else Rr.method==="return"&&Rr.abrupt("return",Rr.arg);gi="executing";var ml=Sa(Xi,sr,Rr);if(ml.type==="normal"){if(gi=Rr.done?"completed":"suspendedYield",ml.arg===_l)continue;return{value:ml.arg,done:Rr.done}}ml.type==="throw"&&(gi="completed",Rr.method="throw",Rr.arg=ml.arg)}}}function Do(Xi,sr){var Rr=sr.method,gi=Xi.iterator[Rr];if(gi===void 0)return sr.delegate=null,Rr==="throw"&&Xi.iterator.return&&(sr.method="return",sr.arg=void 0,Do(Xi,sr),sr.method==="throw")||Rr!=="return"&&(sr.method="throw",sr.arg=new TypeError("The iterator does not provide a '"+Rr+"' method")),_l;var ls=Sa(gi,Xi.iterator,sr.arg);if(ls.type==="throw")return sr.method="throw",sr.arg=ls.arg,sr.delegate=null,_l;var bs=ls.arg;return bs?bs.done?(sr[Xi.resultName]=bs.value,sr.next=Xi.nextLoc,sr.method!=="return"&&(sr.method="next",sr.arg=void 0),sr.delegate=null,_l):bs:(sr.method="throw",sr.arg=new TypeError("iterator result is not an object"),sr.delegate=null,_l)}function As(Xi){var sr={tryLoc:Xi[0]};1 in Xi&&(sr.catchLoc=Xi[1]),2 in Xi&&(sr.finallyLoc=Xi[2],sr.afterLoc=Xi[3]),this.tryEntries.push(sr)}function wa(Xi){var sr=Xi.completion||{};sr.type="normal",delete sr.arg,Xi.completion=sr}function ka(Xi){this.tryEntries=[{tryLoc:"root"}],Xi.forEach(As,this),this.reset(!0)}function Fs(Xi){if(Xi){var sr=Xi[Cn];if(sr)return sr.call(Xi);if(typeof Xi.next=="function")return Xi;if(!isNaN(Xi.length)){var Rr=-1,gi=function ls(){for(;++Rr=0;--ls){var bs=this.tryEntries[ls],Pl=bs.completion;if(bs.tryLoc==="root")return gi("end");if(bs.tryLoc<=this.prev){var Ys=et.call(bs,"catchLoc"),ml=et.call(bs,"finallyLoc");if(Ys&&ml){if(this.prev=0;--gi){var ls=this.tryEntries[gi];if(ls.tryLoc<=this.prev&&et.call(ls,"finallyLoc")&&this.prev=0;--Rr){var gi=this.tryEntries[Rr];if(gi.finallyLoc===sr)return this.complete(gi.completion,gi.afterLoc),wa(gi),_l}},catch:function(sr){for(var Rr=this.tryEntries.length-1;Rr>=0;--Rr){var gi=this.tryEntries[Rr];if(gi.tryLoc===sr){var ls=gi.completion;if(ls.type==="throw"){var bs=ls.arg;wa(gi)}return bs}}throw new Error("illegal catch attempt")},delegateYield:function(sr,Rr,gi){return this.delegate={iterator:Fs(sr),resultName:Rr,nextLoc:gi},this.method==="next"&&(this.arg=void 0),_l}},Le}function $r(Le){return pr(Le)||nr(Le)||Dr(Le)||Or()}function Or(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nr(Le){if(typeof Symbol!="undefined"&&Le[Symbol.iterator]!=null||Le["@@iterator"]!=null)return Array.from(Le)}function pr(Le){if(Array.isArray(Le))return Ii(Le)}function Xr(Le,Me){var et=Object.keys(Le);if(Object.getOwnPropertySymbols){var hn=Object.getOwnPropertySymbols(Le);Me&&(hn=hn.filter(function(Lr){return Object.getOwnPropertyDescriptor(Le,Lr).enumerable})),et.push.apply(et,hn)}return et}function fo(Le){for(var Me=1;MeLe.length)&&(Me=Le.length);for(var et=0,hn=new Array(Me);etLe.length)&&(Me=Le.length);for(var et=0,hn=new Array(Me);et2&&arguments[2]!==void 0?arguments[2]:5,Lr=[Me],Cn=cn()(Me).object(),ei=cn()(et).object();if(hn<2)return hn<1?[]:Lr;var Li={r:(Cn.r-ei.r)/(hn-1),g:(Cn.g-ei.g)/(hn-1),b:(Cn.b-ei.b)/(hn-1)};return(0,Jn.Z)(new Array(hn-2),function(ps,xa){return Lr.push(cn()({r:(0,xr.Z)(Cn.r-Li.r*(xa+1),0),g:(0,xr.Z)(Cn.g-Li.g*(xa+1),0),b:(0,xr.Z)(Cn.b-Li.b*(xa+1),0)}).hex())}),Lr.push(et),Lr};function kt(Le){"@babel/helpers - typeof";return kt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Me){return typeof Me}:function(Me){return Me&&typeof Symbol=="function"&&Me.constructor===Symbol&&Me!==Symbol.prototype?"symbol":typeof Me},kt(Le)}function er(Le,Me,et){return Me=In(Me),Me in Le?Object.defineProperty(Le,Me,{value:et,enumerable:!0,configurable:!0,writable:!0}):Le[Me]=et,Le}function In(Le){var Me=rr(Le,"string");return kt(Me)==="symbol"?Me:String(Me)}function rr(Le,Me){if(kt(Le)!=="object"||Le===null)return Le;var et=Le[Symbol.toPrimitive];if(et!==void 0){var hn=et.call(Le,Me||"default");if(kt(hn)!=="object")return hn;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Me==="string"?String:Number)(Le)}var cr="larkmap-legend-category";function Br(Le){var Me=Le.labels,et=Le.colors,hn=Le.geometryType,Lr=hn===void 0?"circle":hn,Cn=Le.isStrokeColor,ei=Le.style,Li=Le.className;function ps(_l){return Cn?{border:"2px solid ".concat(_l)}:{background:_l}}function xa(_l){return I.createElement("div",{className:w()(cr,Li),style:ei},Me.map(function(Ql,Ju){return I.createElement("div",{className:"".concat(cr,"__content"),key:Ql},I.createElement("div",{className:w()("".concat(cr,"__content__shape"),er({},"".concat(cr,"__content__").concat(Lr),Lr)),style:ps(_l[Ju])}),I.createElement("div",{className:"".concat(cr,"labels")},Ql))}))}function Sa(){if(Array.isArray(et))return xa(et);var _l=So(et.startColor,et.endColor,Me.length);return xa(_l)}return I.createElement(Sa,null)}Br.defaultProps={geometryType:"circle",isStrokeColor:!1};var Ai=m(46266),Ee="larkmap-legend-ramp",Zo=function(Me){var et=Me[Me.length-1],hn=Me[0];return Number.isFinite(hn)||(hn=parseInt(hn,10)),Number.isFinite(et)||(et=parseInt(et,10)),[hn,et]};function Ws(Le){var Me=Le.labels,et=Le.labelUnit,hn=et===void 0?"":et,Lr=Le.colors,Cn=Me[0]+hn,ei=Me[Me.length-1]+hn;return I.createElement(I.Fragment,null,I.createElement("div",{className:"".concat(Ee,"__continuous"),style:{background:"linear-gradient(to right,".concat(Lr,")")}}),I.createElement("div",{className:"".concat(Ee,"__continuous-labelbar")},I.createElement("span",null,Cn),I.createElement("span",null,ei)))}function ba(Le){var Me=Le.labels,et=Le.labelUnit,hn=et===void 0?"":et,Lr=Le.colors,Cn=(0,I.useRef)(null),ei=(0,Ai.Z)(Cn),Li=(ei==null?void 0:ei.width)/(Lr.length+1),ps=Me;if(Me.length+1===Lr.length){var xa="< "+Me[0],Sa="\u2265 "+Me[Me.length-1];ps.unshift(xa),ps.push(Sa)}var _l=function(Ju){var ws="".concat(Me[Ju]).concat(hn," - ").concat(Me[Ju+1]).concat(hn);return ws};return I.createElement("div",{className:"".concat(Ee,"__dis-continuous"),ref:Cn},Number.isNaN(Li)?null:I.createElement(I.Fragment,null,I.createElement("div",{className:"".concat(Ee,"__dis-continuous__colors"),style:{paddingLeft:Li/2}},Lr==null?void 0:Lr.map(function(Ql,Ju){return I.createElement("div",{key:Ql,title:_l(Ju),className:"".concat(Ee,"__dis-continuous__color"),style:{background:Ql,width:Li}})})),I.createElement("div",{className:"".concat(Ee,"__dis-continuous__labels")},Me==null?void 0:Me.map(function(Ql){var Ju=Ql+hn;return I.createElement("span",{key:Ql,className:"".concat(Ee,"__dis-continuous__label")},Ju)}))))}function aa(Le){var Me=Le.isContinuous,et=Le.labels,hn=Le.colors,Lr=Le.labelUnit,Cn=Le.className,ei=Le.style;return I.createElement("div",{className:w()("".concat(Ee),Cn),style:ei},Me?I.createElement(Ws,{labels:et,labelUnit:Lr,colors:hn}):I.createElement(ba,{labels:et,labelUnit:Lr,colors:hn}))}aa.defaultProps={isContinuous:!1,labelUnit:""};var Ps=m(68503),ha={point:Ps.DrawPoint,line:Ps.DrawLine,polygon:Ps.DrawPolygon,rect:Ps.DrawRect,circle:Ps.DrawCircle};function To(Le){"@babel/helpers - typeof";return To=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Me){return typeof Me}:function(Me){return Me&&typeof Symbol=="function"&&Me.constructor===Symbol&&Me!==Symbol.prototype?"symbol":typeof Me},To(Le)}function ir(Le,Me){var et=Object.keys(Le);if(Object.getOwnPropertySymbols){var hn=Object.getOwnPropertySymbols(Le);Me&&(hn=hn.filter(function(Lr){return Object.getOwnPropertyDescriptor(Le,Lr).enumerable})),et.push.apply(et,hn)}return et}function bi(Le){for(var Me=1;MeLe.length)&&(Me=Le.length);for(var et=0,hn=new Array(Me);etLe.length)&&(Me=Le.length);for(var et=0,hn=new Array(Me);et=tt&&++Nn;else{let tt=-1;for(let ht of dn)(ht=An(ht,++tt,dn))!=null&&(ht=+ht)>=ht&&++Nn}return Nn}function A(dn){return Math.max(1,Math.ceil(Math.log(w(dn))/Math.LN2)+1)}function C(dn,An){let Nn,tt;if(An===void 0)for(const ht of dn)ht!=null&&(Nn===void 0?ht>=ht&&(Nn=tt=ht):(Nn>ht&&(Nn=ht),tt=vt&&(Nn=tt=vt):(Nn>vt&&(Nn=vt),tt=f?10:vt>=S?5:vt>=P?2:1;let lt,Et,an;return ht<0?(an=Math.pow(10,-ht)/Fe,lt=Math.round(dn*an),Et=Math.round(An*an),lt/anAn&&--Et,an=-an):(an=Math.pow(10,ht)*Fe,lt=Math.round(dn/an),Et=Math.round(An/an),lt*anAn&&--Et),Et0))return[];if(dn===An)return[dn];const tt=An=ht))return[];const lt=vt-ht+1,Et=new Array(lt);if(tt)if(Fe<0)for(let an=0;an0?(dn=Math.floor(dn/ht)*ht,An=Math.ceil(An/ht)*ht):ht<0&&(dn=Math.ceil(dn*ht)/ht,An=Math.floor(An*ht)/ht),tt=ht}}var he=Array.prototype,fe=he.slice;function Be(dn,An){return dn-An}function Ie(dn){for(var An=0,Nn=dn.length,tt=dn[Nn-1][1]*dn[0][0]-dn[Nn-1][0]*dn[0][1];++An()=>dn;function De(dn,An){for(var Nn=-1,tt=An.length,ht;++Nntt!=$i>tt&&Nn<(Ti-an)*(tt-jn)/($i-jn)+an&&(ht=-ht)}return ht}function ye(dn,An,Nn){var tt;return we(dn,An,Nn)&&Ce(dn[tt=+(dn[0]===An[0])],Nn[tt],An[tt])}function we(dn,An,Nn){return(An[0]-dn[0])*(Nn[1]-dn[1])===(Nn[0]-dn[0])*(An[1]-dn[1])}function Ce(dn,An,Nn){return dn<=An&&An<=Nn||Nn<=An&&An<=dn}function Ae(){}var me=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function je(){var dn=1,An=1,Nn=A,tt=Et;function ht(an){var jn=Nn(an);if(Array.isArray(jn))jn=jn.slice().sort(Be);else{const Cr=C(an,xe);for(jn=ne(...pe(Cr[0],Cr[1],jn),jn);jn[jn.length-1]>=Cr[1];)jn.pop();for(;jn[1]vt(an,Cr))}function vt(an,jn){const Cr=jn==null?NaN:+jn;if(isNaN(Cr))throw new Error(`invalid value: ${jn}`);var Ti=[],$i=[];return Fe(an,Cr,function(Vi){tt(Vi,an,Cr),Ie(Vi)>0?Ti.push([Vi]):$i.push(Vi)}),$i.forEach(function(Vi){for(var us=0,ks=Ti.length,Os;us=jn,me[pa<<2].forEach(Cs);++Vi0&&$i0&&Vi=0&&Cr>=0))throw new Error("invalid size");return dn=jn,An=Cr,ht},ht.thresholds=function(an){return arguments.length?(Nn=typeof an=="function"?an:Array.isArray(an)?We(fe.call(an)):We(an),ht):Nn},ht.smooth=function(an){return arguments.length?(tt=an?Et:Ae,ht):tt===Et},ht}function xe(dn){return isFinite(dn)?dn:NaN}function Pt(dn,An){return dn==null?!1:+dn>=An}function ct(dn){return dn==null||isNaN(dn=+dn)?-1/0:dn}function He(dn,An,Nn,tt){const ht=tt-An,vt=Nn-An,Fe=isFinite(ht)||isFinite(vt)?ht/vt:Math.sign(ht)/Math.sign(vt);return isNaN(Fe)?dn:dn+Fe-.5}var wt=m(91482),dt=m.n(wt);function Bt(dn,An){return Yr(dn)||Er(dn,An)||_n(dn,An)||gt()}function gt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _n(dn,An){if(dn){if(typeof dn=="string")return Bn(dn,An);var Nn=Object.prototype.toString.call(dn).slice(8,-1);if(Nn==="Object"&&dn.constructor&&(Nn=dn.constructor.name),Nn==="Map"||Nn==="Set")return Array.from(dn);if(Nn==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Nn))return Bn(dn,An)}}function Bn(dn,An){(An==null||An>dn.length)&&(An=dn.length);for(var Nn=0,tt=new Array(An);Nn1&&arguments[1]!==void 0?arguments[1]:"image/png",Nn=document.createElement("canvas"),tt=Nn.getContext("2d");return Nn.width=dn.width,Nn.height=dn.height,tt.drawImage(dn,0,0,dn.width,dn.height),Nn.toDataURL(An)}function yo(dn){var An=oi(dn),Nn=new Image;return Nn.src=An.toDataURL(),Nn}function yr(dn,An,Nn,tt){for(var ht=new Uint8ClampedArray(dn.data),vt=new Uint8ClampedArray(4*Nn*tt),Fe=0;Fe0){var lt=4*Fe;vt[lt+0]=ht[lt+0],vt[lt+1]=ht[lt+1],vt[lt+2]=Math.max(ht[lt+2],200),vt[lt+3]=ht[lt+3]}return yo(new ImageData(vt,Nn,tt))}function Po(dn,An,Nn){for(var tt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:15,ht=An,vt=0,Fe=Nn,lt=0,Et=0;Et0){var an=Et%An,jn=Math.floor(Et/An);ht=Math.min(ht,an),vt=Math.max(vt,an),Fe=Math.min(Fe,jn),lt=Math.max(lt,jn)}return[ht-tt,vt+tt,Fe-tt,lt+tt]}function as(dn,An,Nn,tt,ht,vt){for(var Fe=[],lt=0,Et=An;Et0?1:-1}return Fe}function ge(dn,An,Nn){var tt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5,ht=dn.map(function(Fe){return{x:Fe[0]+An,y:Fe[1]+Nn}});if(tt===0)return ht;var vt=dt()(ht,tt,!0);return vt}var _o=function(An){return new Promise(function(Nn,tt){var ht=new FileReader;ht.readAsDataURL(An),ht.onload=function(){return Nn(ht.result)},ht.onerror=function(vt){return tt(vt)}})};function ci(dn,An,Nn){var tt=Po(dn,An,Nn),ht=Bt(tt,4),vt=ht[0],Fe=ht[1],lt=ht[2],Et=ht[3],an=as(vt,lt,Fe,Et,dn,An),jn=yr(an,Fe-vt,Et-lt);return yo(jn)}function Bi(dn,An,Nn){var tt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5,ht=Po(dn,An,Nn),vt=Bt(ht,4),Fe=vt[0],lt=vt[1],Et=vt[2],an=vt[3],jn=as(Fe,Et,lt,an,dn,An),Cr=lt-Fe,Ti=an-Et,$i=je().size([Cr,Ti]).smooth(!1).thresholds(2),Vi=$i(jn);return ge(Vi[1].coordinates[0][0],Fe,Et,tt)}function Ci(dn,An){for(var Nn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,tt=0;tt0)&&(dn.data[4*tt+0]=0,dn.data[4*tt+1]=0,dn.data[4*tt+2]=0,dn.data[4*tt+3]=0);return yo(dn)}function io(dn,An,Nn,tt){for(var ht=Po(An,Nn,tt),vt=Bt(ht,4),Fe=vt[0],lt=vt[1],Et=vt[2],an=vt[3],jn=new Uint8ClampedArray(4*(lt-Fe)*(an-Et)).fill(0),Cr=0,Ti=Et;Ti0&&(jn[Cr*4]=dn.data[Vi*4],jn[Cr*4+1]=dn.data[Vi*4+1],jn[Cr*4+2]=dn.data[Vi*4+2],jn[Cr*4+3]=dn.data[Vi*4+3]),Cr++}var us=new ImageData(jn,lt-Fe,an-Et);return yo(us)}function ln(dn){var An=document.createElement("a");An.href=dn.src,An.download="image",An.click()}function Ve(dn){var An=document.createElement("a");An.href=dn.toDataURL("image/png"),An.download="image",An.click()}function _t(dn){var An=document.createElement("canvas"),Nn=An.getContext("2d");return An.width=dn.width,An.height=dn.height,Nn==null||Nn.drawImage(dn,0,0),Nn==null?void 0:Nn.getImageData(0,0,dn.width,dn.height)}var xt=function(An){var Nn=1024,tt=An.naturalWidth,ht=An.naturalHeight,vt=Nn/Math.max(ht,tt);return{height:ht,width:tt,samScale:vt}},Wt=function(An,Nn){var tt=1024,ht=tt/Math.max(Nn,An);return{height:Nn,width:An,samScale:ht}};function on(dn){"@babel/helpers - typeof";return on=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(An){return typeof An}:function(An){return An&&typeof Symbol=="function"&&An.constructor===Symbol&&An!==Symbol.prototype?"symbol":typeof An},on(dn)}function Ot(){"use strict";Ot=function(){return dn};var dn={},An=Object.prototype,Nn=An.hasOwnProperty,tt=Object.defineProperty||function(cs,zi,qi){cs[zi]=qi.value},ht=typeof Symbol=="function"?Symbol:{},vt=ht.iterator||"@@iterator",Fe=ht.asyncIterator||"@@asyncIterator",lt=ht.toStringTag||"@@toStringTag";function Et(cs,zi,qi){return Object.defineProperty(cs,zi,{value:qi,enumerable:!0,configurable:!0,writable:!0}),cs[zi]}try{Et({},"")}catch(cs){Et=function(qi,ta,ms){return qi[ta]=ms}}function an(cs,zi,qi,ta){var ms=zi&&zi.prototype instanceof Ti?zi:Ti,Ua=Object.create(ms.prototype),$u=new pl(ta||[]);return tt(Ua,"_invoke",{value:ea(cs,qi,$u)}),Ua}function jn(cs,zi,qi){try{return{type:"normal",arg:cs.call(zi,qi)}}catch(ta){return{type:"throw",arg:ta}}}dn.wrap=an;var Cr={};function Ti(){}function $i(){}function Vi(){}var us={};Et(us,vt,function(){return this});var ks=Object.getPrototypeOf,Os=ks&&ks(ks(oa([])));Os&&Os!==An&&Nn.call(Os,vt)&&(us=Os);var pa=Vi.prototype=Ti.prototype=Object.create(us);function no(cs){["next","throw","return"].forEach(function(zi){Et(cs,zi,function(qi){return this._invoke(zi,qi)})})}function Cs(cs,zi){function qi(ms,Ua,$u,rc){var Pc=jn(cs[ms],cs,Ua);if(Pc.type!=="throw"){var ho=Pc.arg,Ji=ho.value;return Ji&&on(Ji)=="object"&&Nn.call(Ji,"__await")?zi.resolve(Ji.__await).then(function(ss){qi("next",ss,$u,rc)},function(ss){qi("throw",ss,$u,rc)}):zi.resolve(Ji).then(function(ss){ho.value=ss,$u(ho)},function(ss){return qi("throw",ss,$u,rc)})}rc(Pc.arg)}var ta;tt(this,"_invoke",{value:function(Ua,$u){function rc(){return new zi(function(Pc,ho){qi(Ua,$u,Pc,ho)})}return ta=ta?ta.then(rc,rc):rc()}})}function ea(cs,zi,qi){var ta="suspendedStart";return function(ms,Ua){if(ta==="executing")throw new Error("Generator is already running");if(ta==="completed"){if(ms==="throw")throw Ua;return Nl()}for(qi.method=ms,qi.arg=Ua;;){var $u=qi.delegate;if($u){var rc=fa($u,qi);if(rc){if(rc===Cr)continue;return rc}}if(qi.method==="next")qi.sent=qi._sent=qi.arg;else if(qi.method==="throw"){if(ta==="suspendedStart")throw ta="completed",qi.arg;qi.dispatchException(qi.arg)}else qi.method==="return"&&qi.abrupt("return",qi.arg);ta="executing";var Pc=jn(cs,zi,qi);if(Pc.type==="normal"){if(ta=qi.done?"completed":"suspendedYield",Pc.arg===Cr)continue;return{value:Pc.arg,done:qi.done}}Pc.type==="throw"&&(ta="completed",qi.method="throw",qi.arg=Pc.arg)}}}function fa(cs,zi){var qi=zi.method,ta=cs.iterator[qi];if(ta===void 0)return zi.delegate=null,qi==="throw"&&cs.iterator.return&&(zi.method="return",zi.arg=void 0,fa(cs,zi),zi.method==="throw")||qi!=="return"&&(zi.method="throw",zi.arg=new TypeError("The iterator does not provide a '"+qi+"' method")),Cr;var ms=jn(ta,cs.iterator,zi.arg);if(ms.type==="throw")return zi.method="throw",zi.arg=ms.arg,zi.delegate=null,Cr;var Ua=ms.arg;return Ua?Ua.done?(zi[cs.resultName]=Ua.value,zi.next=cs.nextLoc,zi.method!=="return"&&(zi.method="next",zi.arg=void 0),zi.delegate=null,Cr):Ua:(zi.method="throw",zi.arg=new TypeError("iterator result is not an object"),zi.delegate=null,Cr)}function Bl(cs){var zi={tryLoc:cs[0]};1 in cs&&(zi.catchLoc=cs[1]),2 in cs&&(zi.finallyLoc=cs[2],zi.afterLoc=cs[3]),this.tryEntries.push(zi)}function Ma(cs){var zi=cs.completion||{};zi.type="normal",delete zi.arg,cs.completion=zi}function pl(cs){this.tryEntries=[{tryLoc:"root"}],cs.forEach(Bl,this),this.reset(!0)}function oa(cs){if(cs){var zi=cs[vt];if(zi)return zi.call(cs);if(typeof cs.next=="function")return cs;if(!isNaN(cs.length)){var qi=-1,ta=function ms(){for(;++qi=0;--ms){var Ua=this.tryEntries[ms],$u=Ua.completion;if(Ua.tryLoc==="root")return ta("end");if(Ua.tryLoc<=this.prev){var rc=Nn.call(Ua,"catchLoc"),Pc=Nn.call(Ua,"finallyLoc");if(rc&&Pc){if(this.prev=0;--ta){var ms=this.tryEntries[ta];if(ms.tryLoc<=this.prev&&Nn.call(ms,"finallyLoc")&&this.prev=0;--qi){var ta=this.tryEntries[qi];if(ta.finallyLoc===zi)return this.complete(ta.completion,ta.afterLoc),Ma(ta),Cr}},catch:function(zi){for(var qi=this.tryEntries.length-1;qi>=0;--qi){var ta=this.tryEntries[qi];if(ta.tryLoc===zi){var ms=ta.completion;if(ms.type==="throw"){var Ua=ms.arg;Ma(ta)}return Ua}}throw new Error("illegal catch attempt")},delegateYield:function(zi,qi,ta){return this.delegate={iterator:oa(zi),resultName:qi,nextLoc:ta},this.method==="next"&&(this.arg=void 0),Cr}},dn}function Tt(dn,An,Nn,tt,ht,vt,Fe){try{var lt=dn[vt](Fe),Et=lt.value}catch(an){Nn(an);return}lt.done?An(Et):Promise.resolve(Et).then(tt,ht)}function bt(dn){return function(){var An=this,Nn=arguments;return new Promise(function(tt,ht){var vt=dn.apply(An,Nn);function Fe(Et){Tt(vt,tt,ht,Fe,lt,"next",Et)}function lt(Et){Tt(vt,tt,ht,Fe,lt,"throw",Et)}Fe(void 0)})}}function Ht(dn,An){if(!(dn instanceof An))throw new TypeError("Cannot call a class as a function")}function Wn(dn,An){for(var Nn=0;Nn1&&an[1]!==void 0?an[1]:"float32",Fe=new N,typeof ht!="string"){Cr.next=6;break}Cr.t0=Fe.load(ht),Cr.next=9;break;case 6:return Cr.next=8,Fe.parse(ht);case 8:Cr.t0=Cr.sent;case 9:lt=Cr.t0,Et=new Pi.Tensor(vt,lt.data,lt.shape),this.tensor=Et;case 12:case"end":return Cr.stop()}},tt,this)}));function Nn(tt){return An.apply(this,arguments)}return Nn}()},{key:"predict",value:function(){var An=bt(Ot().mark(function tt(ht){var vt,Fe,lt;return Ot().wrap(function(an){for(;;)switch(an.prev=an.next){case 0:if(an.prev=0,!(this.model===null||ht===null||this.tensor===null||this.modelScale===null)){an.next=6;break}return console.log("model not loaded"),an.abrupt("return");case 6:if(vt=b({clicks:ht,tensor:this.tensor,modelScale:this.modelScale}),vt!==void 0){an.next=9;break}return an.abrupt("return");case 9:return an.next=11,this.model.run(vt);case 11:return Fe=an.sent,lt=Fe[this.model.outputNames[0]],an.abrupt("return",lt);case 14:an.next=20;break;case 16:return an.prev=16,an.t0=an.catch(0),console.log(an.t0),an.abrupt("return");case 20:case"end":return an.stop()}},tt,this,[[0,16]])}));function Nn(tt){return An.apply(this,arguments)}return Nn}()},{key:"predictByBox",value:function(){var An=bt(Ot().mark(function tt(ht){return Ot().wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return Fe.abrupt("return",ht);case 1:case"end":return Fe.stop()}},tt)}));function Nn(tt){return An.apply(this,arguments)}return Nn}()},{key:"exportMaskImage",value:function(Nn){if(this.imageData!==void 0)return yr(this.imageData,Nn.data,Nn.dims[3],Nn.dims[2])}},{key:"exportMaskClip",value:function(Nn){return ci(Nn.data,Nn.dims[3],Nn.dims[2])}},{key:"exportImage",value:function(Nn){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.imageData!==void 0)return Ci(this.imageData,Nn.data,tt)}},{key:"exportImageClip",value:function(Nn){if(this.imageData!==void 0)return io(this.imageData,Nn.data,Nn.dims[3],Nn.dims[2])}},{key:"exportVector",value:function(Nn){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5;return Bi(Nn.data,Nn.dims[3],Nn.dims[2],tt)}},{key:"setWasmUrl",value:function(Nn){I.env.wasm.wasmPaths=Nn}},{key:"getImageScale",value:function(Nn){var tt=Nn.width,ht=Nn.height;this.modelScale=Wt(tt,ht)}}]),dn}();function ys(dn){"@babel/helpers - typeof";return ys=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(An){return typeof An}:function(An){return An&&typeof Symbol=="function"&&An.constructor===Symbol&&An!==Symbol.prototype?"symbol":typeof An},ys(dn)}function xn(dn,An){return na(dn)||xo(dn,An)||Jr(dn,An)||Hr()}function Hr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jr(dn,An){if(dn){if(typeof dn=="string")return Yi(dn,An);var Nn=Object.prototype.toString.call(dn).slice(8,-1);if(Nn==="Object"&&dn.constructor&&(Nn=dn.constructor.name),Nn==="Map"||Nn==="Set")return Array.from(dn);if(Nn==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Nn))return Yi(dn,An)}}function Yi(dn,An){(An==null||An>dn.length)&&(An=dn.length);for(var Nn=0,tt=new Array(An);Nn0&&arguments[0]!==void 0?arguments[0]:256,Nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"tms";Un(this,dn),li(this,"tileSize",void 0),li(this,"type",void 0),li(this,"initialResolution",void 0),li(this,"originShift",void 0),this.tileSize=An,this.type=Nn,this.initialResolution=2*Math.PI*6378137/this.tileSize,this.originShift=2*Math.PI*6378137/2}return Mr(dn,[{key:"lngLatToMeters",value:function(Nn,tt){var ht=Nn*this.originShift/180,vt=Math.log(Math.tan((90+tt)*Math.PI/360))/(Math.PI/180);return vt=vt*this.originShift/180,[ht,vt]}},{key:"metersToLngLat",value:function(Nn,tt){var ht=Nn/this.originShift*180,vt=tt/this.originShift*180;return vt=180/Math.PI*(2*Math.atan(Math.exp(vt*Math.PI/180))-Math.PI/2),[ht,vt]}},{key:"pixelsToMeters",value:function(Nn,tt,ht){var vt=this.resolution(ht),Fe=Nn*vt-this.originShift,lt=(this.type==="tms"?tt:Math.pow(2,ht)*256-tt)*vt-this.originShift;return[Fe,lt]}},{key:"metersToPixels",value:function(Nn,tt,ht){var vt=this.resolution(ht),Fe=(Nn+this.originShift)/vt,lt=(tt+this.originShift)/vt;return lt=this.type==="tms"?lt:Math.pow(2,ht)*256-lt,[Fe,lt]}},{key:"metersToTile",value:function(Nn,tt,ht){var vt=this.metersToPixels(Nn,tt,ht),Fe=xn(vt,2),lt=Fe[0],Et=Fe[1];return this.pixelsToTile(lt,Et)}},{key:"tileToMeters",value:function(Nn,tt,ht){return this.pixelsToMeters(Nn*this.tileSize,tt*this.tileSize,ht)}},{key:"tileToLngLat",value:function(Nn,tt,ht){var vt=this.tileToMeters(Nn,tt,ht),Fe=xn(vt,2),lt=Fe[0],Et=Fe[1];return this.metersToLngLat(lt,Et)}},{key:"pixelsToTile",value:function(Nn,tt){var ht=Math.floor(Math.ceil(Nn/this.tileSize)-1),vt=Math.floor(Math.ceil(tt/this.tileSize)-1);return[ht,vt]}},{key:"pixelsToRaster",value:function(Nn,tt,ht){var vt=this.tileSize<dn.length)&&(An=dn.length);for(var Nn=0,tt=new Array(An);Nn=0;--ms){var Ua=this.tryEntries[ms],$u=Ua.completion;if(Ua.tryLoc==="root")return ta("end");if(Ua.tryLoc<=this.prev){var rc=Nn.call(Ua,"catchLoc"),Pc=Nn.call(Ua,"finallyLoc");if(rc&&Pc){if(this.prev=0;--ta){var ms=this.tryEntries[ta];if(ms.tryLoc<=this.prev&&Nn.call(ms,"finallyLoc")&&this.prev=0;--qi){var ta=this.tryEntries[qi];if(ta.finallyLoc===zi)return this.complete(ta.completion,ta.afterLoc),Ma(ta),Cr}},catch:function(zi){for(var qi=this.tryEntries.length-1;qi>=0;--qi){var ta=this.tryEntries[qi];if(ta.tryLoc===zi){var ms=ta.completion;if(ms.type==="throw"){var Ua=ms.arg;Ma(ta)}return Ua}}throw new Error("illegal catch attempt")},delegateYield:function(zi,qi,ta){return this.delegate={iterator:oa(zi),resultName:qi,nextLoc:ta},this.method==="next"&&(this.arg=void 0),Cr}},dn}function Gr(dn,An,Nn,tt,ht,vt,Fe){try{var lt=dn[vt](Fe),Et=lt.value}catch(an){Nn(an);return}lt.done?An(Et):Promise.resolve(Et).then(tt,ht)}function ui(dn){return function(){var An=this,Nn=arguments;return new Promise(function(tt,ht){var vt=dn.apply(An,Nn);function Fe(Et){Gr(vt,tt,ht,Fe,lt,"next",Et)}function lt(Et){Gr(vt,tt,ht,Fe,lt,"throw",Et)}Fe(void 0)})}}var xi=null,lo=function(An){var Nn=Qn(An,4),tt=Nn[0],ht=Nn[1],vt=Nn[2],Fe=Nn[3];return{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:{type:"Polygon",coordinates:[[[tt,ht],[tt,Fe],[vt,Fe],[vt,ht],[tt,ht]]]}}]}},Kr=function(An){return{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:{type:"Polygon",coordinates:[An]}}]}},ti=function(){return{type:"FeatureCollection",features:[]}};function ji(dn){"@babel/helpers - typeof";return ji=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(An){return typeof An}:function(An){return An&&typeof Symbol=="function"&&An.constructor===Symbol&&An!==Symbol.prototype?"symbol":typeof An},ji(dn)}function Tr(dn,An){return yi(dn)||Gn(dn,An)||vi(dn,An)||Qt()}function Qt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gn(dn,An){var Nn=dn==null?null:typeof Symbol!="undefined"&&dn[Symbol.iterator]||dn["@@iterator"];if(Nn!=null){var tt,ht,vt,Fe,lt=[],Et=!0,an=!1;try{if(vt=(Nn=Nn.call(dn)).next,An===0){if(Object(Nn)!==Nn)return;Et=!1}else for(;!(Et=(tt=vt.call(Nn)).done)&&(lt.push(tt.value),lt.length!==An);Et=!0);}catch(jn){an=!0,ht=jn}finally{try{if(!Et&&Nn.return!=null&&(Fe=Nn.return(),Object(Fe)!==Fe))return}finally{if(an)throw ht}}return lt}}function yi(dn){if(Array.isArray(dn))return dn}function Ln(){"use strict";Ln=function(){return dn};var dn={},An=Object.prototype,Nn=An.hasOwnProperty,tt=Object.defineProperty||function(cs,zi,qi){cs[zi]=qi.value},ht=typeof Symbol=="function"?Symbol:{},vt=ht.iterator||"@@iterator",Fe=ht.asyncIterator||"@@asyncIterator",lt=ht.toStringTag||"@@toStringTag";function Et(cs,zi,qi){return Object.defineProperty(cs,zi,{value:qi,enumerable:!0,configurable:!0,writable:!0}),cs[zi]}try{Et({},"")}catch(cs){Et=function(qi,ta,ms){return qi[ta]=ms}}function an(cs,zi,qi,ta){var ms=zi&&zi.prototype instanceof Ti?zi:Ti,Ua=Object.create(ms.prototype),$u=new pl(ta||[]);return tt(Ua,"_invoke",{value:ea(cs,qi,$u)}),Ua}function jn(cs,zi,qi){try{return{type:"normal",arg:cs.call(zi,qi)}}catch(ta){return{type:"throw",arg:ta}}}dn.wrap=an;var Cr={};function Ti(){}function $i(){}function Vi(){}var us={};Et(us,vt,function(){return this});var ks=Object.getPrototypeOf,Os=ks&&ks(ks(oa([])));Os&&Os!==An&&Nn.call(Os,vt)&&(us=Os);var pa=Vi.prototype=Ti.prototype=Object.create(us);function no(cs){["next","throw","return"].forEach(function(zi){Et(cs,zi,function(qi){return this._invoke(zi,qi)})})}function Cs(cs,zi){function qi(ms,Ua,$u,rc){var Pc=jn(cs[ms],cs,Ua);if(Pc.type!=="throw"){var ho=Pc.arg,Ji=ho.value;return Ji&&ji(Ji)=="object"&&Nn.call(Ji,"__await")?zi.resolve(Ji.__await).then(function(ss){qi("next",ss,$u,rc)},function(ss){qi("throw",ss,$u,rc)}):zi.resolve(Ji).then(function(ss){ho.value=ss,$u(ho)},function(ss){return qi("throw",ss,$u,rc)})}rc(Pc.arg)}var ta;tt(this,"_invoke",{value:function(Ua,$u){function rc(){return new zi(function(Pc,ho){qi(Ua,$u,Pc,ho)})}return ta=ta?ta.then(rc,rc):rc()}})}function ea(cs,zi,qi){var ta="suspendedStart";return function(ms,Ua){if(ta==="executing")throw new Error("Generator is already running");if(ta==="completed"){if(ms==="throw")throw Ua;return Nl()}for(qi.method=ms,qi.arg=Ua;;){var $u=qi.delegate;if($u){var rc=fa($u,qi);if(rc){if(rc===Cr)continue;return rc}}if(qi.method==="next")qi.sent=qi._sent=qi.arg;else if(qi.method==="throw"){if(ta==="suspendedStart")throw ta="completed",qi.arg;qi.dispatchException(qi.arg)}else qi.method==="return"&&qi.abrupt("return",qi.arg);ta="executing";var Pc=jn(cs,zi,qi);if(Pc.type==="normal"){if(ta=qi.done?"completed":"suspendedYield",Pc.arg===Cr)continue;return{value:Pc.arg,done:qi.done}}Pc.type==="throw"&&(ta="completed",qi.method="throw",qi.arg=Pc.arg)}}}function fa(cs,zi){var qi=zi.method,ta=cs.iterator[qi];if(ta===void 0)return zi.delegate=null,qi==="throw"&&cs.iterator.return&&(zi.method="return",zi.arg=void 0,fa(cs,zi),zi.method==="throw")||qi!=="return"&&(zi.method="throw",zi.arg=new TypeError("The iterator does not provide a '"+qi+"' method")),Cr;var ms=jn(ta,cs.iterator,zi.arg);if(ms.type==="throw")return zi.method="throw",zi.arg=ms.arg,zi.delegate=null,Cr;var Ua=ms.arg;return Ua?Ua.done?(zi[cs.resultName]=Ua.value,zi.next=cs.nextLoc,zi.method!=="return"&&(zi.method="next",zi.arg=void 0),zi.delegate=null,Cr):Ua:(zi.method="throw",zi.arg=new TypeError("iterator result is not an object"),zi.delegate=null,Cr)}function Bl(cs){var zi={tryLoc:cs[0]};1 in cs&&(zi.catchLoc=cs[1]),2 in cs&&(zi.finallyLoc=cs[2],zi.afterLoc=cs[3]),this.tryEntries.push(zi)}function Ma(cs){var zi=cs.completion||{};zi.type="normal",delete zi.arg,cs.completion=zi}function pl(cs){this.tryEntries=[{tryLoc:"root"}],cs.forEach(Bl,this),this.reset(!0)}function oa(cs){if(cs){var zi=cs[vt];if(zi)return zi.call(cs);if(typeof cs.next=="function")return cs;if(!isNaN(cs.length)){var qi=-1,ta=function ms(){for(;++qi=0;--ms){var Ua=this.tryEntries[ms],$u=Ua.completion;if(Ua.tryLoc==="root")return ta("end");if(Ua.tryLoc<=this.prev){var rc=Nn.call(Ua,"catchLoc"),Pc=Nn.call(Ua,"finallyLoc");if(rc&&Pc){if(this.prev=0;--ta){var ms=this.tryEntries[ta];if(ms.tryLoc<=this.prev&&Nn.call(ms,"finallyLoc")&&this.prev=0;--qi){var ta=this.tryEntries[qi];if(ta.finallyLoc===zi)return this.complete(ta.completion,ta.afterLoc),Ma(ta),Cr}},catch:function(zi){for(var qi=this.tryEntries.length-1;qi>=0;--qi){var ta=this.tryEntries[qi];if(ta.tryLoc===zi){var ms=ta.completion;if(ms.type==="throw"){var Ua=ms.arg;Ma(ta)}return Ua}}throw new Error("illegal catch attempt")},delegateYield:function(zi,qi,ta){return this.delegate={iterator:oa(zi),resultName:qi,nextLoc:ta},this.method==="next"&&(this.arg=void 0),Cr}},dn}function Si(dn){return kr(dn)||Ni(dn)||vi(dn)||tr()}function tr(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vi(dn,An){if(dn){if(typeof dn=="string")return qn(dn,An);var Nn=Object.prototype.toString.call(dn).slice(8,-1);if(Nn==="Object"&&dn.constructor&&(Nn=dn.constructor.name),Nn==="Map"||Nn==="Set")return Array.from(dn);if(Nn==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Nn))return qn(dn,An)}}function Ni(dn){if(typeof Symbol!="undefined"&&dn[Symbol.iterator]!=null||dn["@@iterator"]!=null)return Array.from(dn)}function kr(dn){if(Array.isArray(dn))return qn(dn)}function qn(dn,An){(An==null||An>dn.length)&&(An=dn.length);for(var Nn=0,tt=new Array(An);Nn1&&$i[1]!==void 0?$i[1]:5,us.next=3,this.exportVector(Fe,Et);case 3:return an=us.sent,jn=this.imageBounds,Cr=an.map(function(ks){var Os=[ks.x*lt.metersPerpixelsX+jn[0],(lt.imageOption.height-ks.y)*lt.metersPerpixelsY+jn[1]],pa=lt.mapHelper.metersToLngLat(Os[0],Os[1]);return pa}),Ti=Kr(Cr),us.abrupt("return",Ti);case 8:case"end":return us.stop()}},vt,this)}));function ht(vt){return tt.apply(this,arguments)}return ht}()},{key:"lngLat2ImagePixel",value:function(ht){if(this.imageBounds){var vt=this.mapHelper.lngLatToMeters(ht[0],ht[1]),Fe=Tr(vt,2),lt=Fe[0],Et=Fe[1],an=(lt-this.imageBounds[0])/this.metersPerpixelsX,jn=(Et-this.imageBounds[1])/this.metersPerpixelsY;return jn=this.imageOption.height-jn,[an,jn]}}}]),Nn}(Wo)},12722:function(nt,V,m){"use strict";m.d(V,{T6:function(){return P},VD:function(){return W},WE:function(){return w},Yt:function(){return ne},lC:function(){return b},py:function(){return N},rW:function(){return I},s:function(){return C},ve:function(){return k},vq:function(){return A}});var y=m(12187);function I(re,ce,pe){return{r:(0,y.sh)(re,255)*255,g:(0,y.sh)(ce,255)*255,b:(0,y.sh)(pe,255)*255}}function b(re,ce,pe){re=(0,y.sh)(re,255),ce=(0,y.sh)(ce,255),pe=(0,y.sh)(pe,255);var he=Math.max(re,ce,pe),fe=Math.min(re,ce,pe),Be=0,Ie=0,We=(he+fe)/2;if(he===fe)Ie=0,Be=0;else{var De=he-fe;switch(Ie=We>.5?De/(2-he-fe):De/(he+fe),he){case re:Be=(ce-pe)/De+(ce1&&(pe-=1),pe<1/6?re+(ce-re)*(6*pe):pe<1/2?ce:pe<2/3?re+(ce-re)*(2/3-pe)*6:re}function k(re,ce,pe){var he,fe,Be;if(re=(0,y.sh)(re,360),ce=(0,y.sh)(ce,100),pe=(0,y.sh)(pe,100),ce===0)fe=pe,Be=pe,he=pe;else{var Ie=pe<.5?pe*(1+ce):pe+ce-pe*ce,We=2*pe-Ie;he=z(We,Ie,re+1/3),fe=z(We,Ie,re),Be=z(We,Ie,re-1/3)}return{r:he*255,g:fe*255,b:Be*255}}function N(re,ce,pe){re=(0,y.sh)(re,255),ce=(0,y.sh)(ce,255),pe=(0,y.sh)(pe,255);var he=Math.max(re,ce,pe),fe=Math.min(re,ce,pe),Be=0,Ie=he,We=he-fe,De=he===0?0:We/he;if(he===fe)Be=0;else{switch(he){case re:Be=(ce-pe)/We+(ce>16,g:(re&65280)>>8,b:re&255}}},93796:function(nt,V,m){"use strict";m.d(V,{R:function(){return y}});var y={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",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",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:"#db7093",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",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},9915:function(nt,V,m){"use strict";m.d(V,{uA:function(){return z}});var y=m(12722),I=m(93796),b=m(12187);function z(W){var ne={r:0,g:0,b:0},re=1,ce=null,pe=null,he=null,fe=!1,Be=!1;return typeof W=="string"&&(W=S(W)),typeof W=="object"&&(P(W.r)&&P(W.g)&&P(W.b)?(ne=(0,y.rW)(W.r,W.g,W.b),fe=!0,Be=String(W.r).substr(-1)==="%"?"prgb":"rgb"):P(W.h)&&P(W.s)&&P(W.v)?(ce=(0,b.JX)(W.s),pe=(0,b.JX)(W.v),ne=(0,y.WE)(W.h,ce,pe),fe=!0,Be="hsv"):P(W.h)&&P(W.s)&&P(W.l)&&(ce=(0,b.JX)(W.s),he=(0,b.JX)(W.l),ne=(0,y.ve)(W.h,ce,he),fe=!0,Be="hsl"),Object.prototype.hasOwnProperty.call(W,"a")&&(re=W.a)),re=(0,b.Yq)(re),{ok:fe,format:W.format||Be,r:Math.min(255,Math.max(ne.r,0)),g:Math.min(255,Math.max(ne.g,0)),b:Math.min(255,Math.max(ne.b,0)),a:re}}var k="[-\\+]?\\d+%?",N="[-\\+]?\\d*\\.\\d+%?",w="(?:".concat(N,")|(?:").concat(k,")"),A="[\\s|\\(]+(".concat(w,")[,|\\s]+(").concat(w,")[,|\\s]+(").concat(w,")\\s*\\)?"),C="[\\s|\\(]+(".concat(w,")[,|\\s]+(").concat(w,")[,|\\s]+(").concat(w,")[,|\\s]+(").concat(w,")\\s*\\)?"),f={CSS_UNIT:new RegExp(w),rgb:new RegExp("rgb"+A),rgba:new RegExp("rgba"+C),hsl:new RegExp("hsl"+A),hsla:new RegExp("hsla"+C),hsv:new RegExp("hsv"+A),hsva:new RegExp("hsva"+C),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function S(W){if(W=W.trim().toLowerCase(),W.length===0)return!1;var ne=!1;if(I.R[W])W=I.R[W],ne=!0;else if(W==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var re=f.rgb.exec(W);return re?{r:re[1],g:re[2],b:re[3]}:(re=f.rgba.exec(W),re?{r:re[1],g:re[2],b:re[3],a:re[4]}:(re=f.hsl.exec(W),re?{h:re[1],s:re[2],l:re[3]}:(re=f.hsla.exec(W),re?{h:re[1],s:re[2],l:re[3],a:re[4]}:(re=f.hsv.exec(W),re?{h:re[1],s:re[2],v:re[3]}:(re=f.hsva.exec(W),re?{h:re[1],s:re[2],v:re[3],a:re[4]}:(re=f.hex8.exec(W),re?{r:(0,y.VD)(re[1]),g:(0,y.VD)(re[2]),b:(0,y.VD)(re[3]),a:(0,y.T6)(re[4]),format:ne?"name":"hex8"}:(re=f.hex6.exec(W),re?{r:(0,y.VD)(re[1]),g:(0,y.VD)(re[2]),b:(0,y.VD)(re[3]),format:ne?"name":"hex"}:(re=f.hex4.exec(W),re?{r:(0,y.VD)(re[1]+re[1]),g:(0,y.VD)(re[2]+re[2]),b:(0,y.VD)(re[3]+re[3]),a:(0,y.T6)(re[4]+re[4]),format:ne?"name":"hex8"}:(re=f.hex3.exec(W),re?{r:(0,y.VD)(re[1]+re[1]),g:(0,y.VD)(re[2]+re[2]),b:(0,y.VD)(re[3]+re[3]),format:ne?"name":"hex"}:!1)))))))))}function P(W){return!!f.CSS_UNIT.exec(String(W))}},64993:function(nt,V,m){"use strict";m.d(V,{C:function(){return k}});var y=m(12722),I=m(93796),b=m(9915),z=m(12187),k=function(){function w(A,C){A===void 0&&(A=""),C===void 0&&(C={});var f;if(A instanceof w)return A;typeof A=="number"&&(A=(0,y.Yt)(A)),this.originalInput=A;var S=(0,b.uA)(A);this.originalInput=A,this.r=S.r,this.g=S.g,this.b=S.b,this.a=S.a,this.roundA=Math.round(100*this.a)/100,this.format=(f=C.format)!==null&&f!==void 0?f:S.format,this.gradientType=C.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=S.ok}return w.prototype.isDark=function(){return this.getBrightness()<128},w.prototype.isLight=function(){return!this.isDark()},w.prototype.getBrightness=function(){var A=this.toRgb();return(A.r*299+A.g*587+A.b*114)/1e3},w.prototype.getLuminance=function(){var A=this.toRgb(),C,f,S,P=A.r/255,W=A.g/255,ne=A.b/255;return P<=.03928?C=P/12.92:C=Math.pow((P+.055)/1.055,2.4),W<=.03928?f=W/12.92:f=Math.pow((W+.055)/1.055,2.4),ne<=.03928?S=ne/12.92:S=Math.pow((ne+.055)/1.055,2.4),.2126*C+.7152*f+.0722*S},w.prototype.getAlpha=function(){return this.a},w.prototype.setAlpha=function(A){return this.a=(0,z.Yq)(A),this.roundA=Math.round(100*this.a)/100,this},w.prototype.isMonochrome=function(){var A=this.toHsl().s;return A===0},w.prototype.toHsv=function(){var A=(0,y.py)(this.r,this.g,this.b);return{h:A.h*360,s:A.s,v:A.v,a:this.a}},w.prototype.toHsvString=function(){var A=(0,y.py)(this.r,this.g,this.b),C=Math.round(A.h*360),f=Math.round(A.s*100),S=Math.round(A.v*100);return this.a===1?"hsv(".concat(C,", ").concat(f,"%, ").concat(S,"%)"):"hsva(".concat(C,", ").concat(f,"%, ").concat(S,"%, ").concat(this.roundA,")")},w.prototype.toHsl=function(){var A=(0,y.lC)(this.r,this.g,this.b);return{h:A.h*360,s:A.s,l:A.l,a:this.a}},w.prototype.toHslString=function(){var A=(0,y.lC)(this.r,this.g,this.b),C=Math.round(A.h*360),f=Math.round(A.s*100),S=Math.round(A.l*100);return this.a===1?"hsl(".concat(C,", ").concat(f,"%, ").concat(S,"%)"):"hsla(".concat(C,", ").concat(f,"%, ").concat(S,"%, ").concat(this.roundA,")")},w.prototype.toHex=function(A){return A===void 0&&(A=!1),(0,y.vq)(this.r,this.g,this.b,A)},w.prototype.toHexString=function(A){return A===void 0&&(A=!1),"#"+this.toHex(A)},w.prototype.toHex8=function(A){return A===void 0&&(A=!1),(0,y.s)(this.r,this.g,this.b,this.a,A)},w.prototype.toHex8String=function(A){return A===void 0&&(A=!1),"#"+this.toHex8(A)},w.prototype.toHexShortString=function(A){return A===void 0&&(A=!1),this.a===1?this.toHexString(A):this.toHex8String(A)},w.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},w.prototype.toRgbString=function(){var A=Math.round(this.r),C=Math.round(this.g),f=Math.round(this.b);return this.a===1?"rgb(".concat(A,", ").concat(C,", ").concat(f,")"):"rgba(".concat(A,", ").concat(C,", ").concat(f,", ").concat(this.roundA,")")},w.prototype.toPercentageRgb=function(){var A=function(C){return"".concat(Math.round((0,z.sh)(C,255)*100),"%")};return{r:A(this.r),g:A(this.g),b:A(this.b),a:this.a}},w.prototype.toPercentageRgbString=function(){var A=function(C){return Math.round((0,z.sh)(C,255)*100)};return this.a===1?"rgb(".concat(A(this.r),"%, ").concat(A(this.g),"%, ").concat(A(this.b),"%)"):"rgba(".concat(A(this.r),"%, ").concat(A(this.g),"%, ").concat(A(this.b),"%, ").concat(this.roundA,")")},w.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var A="#"+(0,y.vq)(this.r,this.g,this.b,!1),C=0,f=Object.entries(I.R);C=0,P=!C&&S&&(A.startsWith("hex")||A==="name");return P?A==="name"&&this.a===0?this.toName():this.toRgbString():(A==="rgb"&&(f=this.toRgbString()),A==="prgb"&&(f=this.toPercentageRgbString()),(A==="hex"||A==="hex6")&&(f=this.toHexString()),A==="hex3"&&(f=this.toHexString(!0)),A==="hex4"&&(f=this.toHex8String(!0)),A==="hex8"&&(f=this.toHex8String()),A==="name"&&(f=this.toName()),A==="hsl"&&(f=this.toHslString()),A==="hsv"&&(f=this.toHsvString()),f||this.toHexString())},w.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},w.prototype.clone=function(){return new w(this.toString())},w.prototype.lighten=function(A){A===void 0&&(A=10);var C=this.toHsl();return C.l+=A/100,C.l=(0,z.V2)(C.l),new w(C)},w.prototype.brighten=function(A){A===void 0&&(A=10);var C=this.toRgb();return C.r=Math.max(0,Math.min(255,C.r-Math.round(255*-(A/100)))),C.g=Math.max(0,Math.min(255,C.g-Math.round(255*-(A/100)))),C.b=Math.max(0,Math.min(255,C.b-Math.round(255*-(A/100)))),new w(C)},w.prototype.darken=function(A){A===void 0&&(A=10);var C=this.toHsl();return C.l-=A/100,C.l=(0,z.V2)(C.l),new w(C)},w.prototype.tint=function(A){return A===void 0&&(A=10),this.mix("white",A)},w.prototype.shade=function(A){return A===void 0&&(A=10),this.mix("black",A)},w.prototype.desaturate=function(A){A===void 0&&(A=10);var C=this.toHsl();return C.s-=A/100,C.s=(0,z.V2)(C.s),new w(C)},w.prototype.saturate=function(A){A===void 0&&(A=10);var C=this.toHsl();return C.s+=A/100,C.s=(0,z.V2)(C.s),new w(C)},w.prototype.greyscale=function(){return this.desaturate(100)},w.prototype.spin=function(A){var C=this.toHsl(),f=(C.h+A)%360;return C.h=f<0?360+f:f,new w(C)},w.prototype.mix=function(A,C){C===void 0&&(C=50);var f=this.toRgb(),S=new w(A).toRgb(),P=C/100,W={r:(S.r-f.r)*P+f.r,g:(S.g-f.g)*P+f.g,b:(S.b-f.b)*P+f.b,a:(S.a-f.a)*P+f.a};return new w(W)},w.prototype.analogous=function(A,C){A===void 0&&(A=6),C===void 0&&(C=30);var f=this.toHsl(),S=360/C,P=[this];for(f.h=(f.h-(S*A>>1)+720)%360;--A;)f.h=(f.h+S)%360,P.push(new w(f));return P},w.prototype.complement=function(){var A=this.toHsl();return A.h=(A.h+180)%360,new w(A)},w.prototype.monochromatic=function(A){A===void 0&&(A=6);for(var C=this.toHsv(),f=C.h,S=C.s,P=C.v,W=[],ne=1/A;A--;)W.push(new w({h:f,s:S,v:P})),P=(P+ne)%1;return W},w.prototype.splitcomplement=function(){var A=this.toHsl(),C=A.h;return[this,new w({h:(C+72)%360,s:A.s,l:A.l}),new w({h:(C+216)%360,s:A.s,l:A.l})]},w.prototype.onBackground=function(A){var C=this.toRgb(),f=new w(A).toRgb(),S=C.a+f.a*(1-C.a);return new w({r:(C.r*C.a+f.r*f.a*(1-C.a))/S,g:(C.g*C.a+f.g*f.a*(1-C.a))/S,b:(C.b*C.a+f.b*f.a*(1-C.a))/S,a:S})},w.prototype.triad=function(){return this.polyad(3)},w.prototype.tetrad=function(){return this.polyad(4)},w.prototype.polyad=function(A){for(var C=this.toHsl(),f=C.h,S=[this],P=360/A,W=1;W1)&&(A=1),A}function N(A){return A<=1?"".concat(Number(A)*100,"%"):A}function w(A){return A.length===1?"0"+A:String(A)}},78576:function(nt,V,m){"use strict";m.d(V,{iv:function(){return dn}});function y(tt){if(tt.sheet)return tt.sheet;for(var ht=0;ht0?P(De,--Ie):0,fe--,We===10&&(fe=1,he--),We}function Ae(){return We=Ie2||Pt(We)>3?"":" "}function gt(tt){for(;Ae();)switch(Pt(We)){case 0:append(Yr(Ie-1),tt);break;case 2:append(wt(We),tt);break;default:append(from(We),tt)}return tt}function _n(tt,ht){for(;--ht&&Ae()&&!(We<48||We>102||We>57&&We<65||We>70&&We<97););return xe(tt,je()+(ht<6&&me()==32&&Ae()==32))}function Bn(tt){for(;Ae();)switch(We){case tt:return Ie;case 34:case 39:tt!==34&&tt!==39&&Bn(We);break;case 40:tt===41&&Bn(tt);break;case 92:Ae();break}return Ie}function Er(tt,ht){for(;Ae()&&tt+We!==47+10;)if(tt+We===42+42&&me()===47)break;return"/*"+xe(ht,Ie-1)+"*"+k(tt===47?tt:Ae())}function Yr(tt){for(;!Pt(me());)Ae();return xe(tt,Ie)}var oi="-ms-",to="-moz-",yo="-webkit-",yr="comm",Po="rule",as="decl",ge="@page",_o="@media",ci="@import",Bi="@charset",Ci="@viewport",io="@supports",ln="@document",Ve="@namespace",_t="@keyframes",xt="@font-face",Wt="@counter-style",on="@font-feature-values",Ot="@layer";function Tt(tt,ht){for(var vt="",Fe=re(tt),lt=0;lt-1&&!tt.return)switch(tt.type){case DECLARATION:tt.return=prefix(tt.value,tt.length,vt);return;case KEYFRAMES:return serialize([copy(tt,{value:replace(tt.value,"@","@"+WEBKIT)})],Fe);case RULESET:if(tt.length)return combine(tt.props,function(lt){switch(match(lt,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(tt,{props:[replace(lt,/:(read-\w+)/,":"+MOZ+"$1")]})],Fe);case"::placeholder":return serialize([copy(tt,{props:[replace(lt,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(tt,{props:[replace(lt,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(tt,{props:[replace(lt,/:(plac\w+)/,MS+"input-$1")]})],Fe)}return""})}}function hr(tt){switch(tt.type){case RULESET:tt.props=tt.props.map(function(ht){return combine(tokenize(ht),function(vt,Fe,lt){switch(charat(vt,0)){case 12:return substr(vt,1,strlen(vt));case 0:case 40:case 43:case 62:case 126:return vt;case 58:lt[++Fe]==="global"&&(lt[Fe]="",lt[++Fe]="\f"+substr(lt[Fe],Fe=1,-1));case 32:return Fe===1?"":vt;default:switch(Fe){case 0:return tt=vt,sizeof(lt)>1?"":vt;case(Fe=sizeof(lt)-1):case 2:return Fe===2?vt+tt+tt:vt+tt;default:return vt}}})})}}function Zi(tt){return He(Ri("",null,null,null,[""],tt=ct(tt),0,[0],tt))}function Ri(tt,ht,vt,Fe,lt,Et,an,jn,Cr){for(var Ti=0,$i=0,Vi=an,us=0,ks=0,Os=0,pa=1,no=1,Cs=1,ea=0,fa="",Bl=lt,Ma=Et,pl=Fe,oa=fa;no;)switch(Os=ea,ea=Ae()){case 40:if(Os!=108&&P(oa,Vi-1)==58){S(oa+=f(wt(ea),"&","&\f"),"&\f")!=-1&&(Cs=-1);break}case 34:case 39:case 91:oa+=wt(ea);break;case 9:case 10:case 13:case 32:oa+=Bt(Os);break;case 92:oa+=_n(je()-1,7);continue;case 47:switch(me()){case 42:case 47:ce(Wo(Er(Ae(),je()),ht,vt),Cr);break;default:oa+="/"}break;case 123*pa:jn[Ti++]=ne(oa)*Cs;case 125*pa:case 59:case 0:switch(ea){case 0:case 125:no=0;case 59+$i:Cs==-1&&(oa=f(oa,/\f/g,"")),ks>0&&ne(oa)-Vi&&ce(ks>32?ys(oa+";",Fe,vt,Vi-1):ys(f(oa," ","")+";",Fe,vt,Vi-2),Cr);break;case 59:oa+=";";default:if(ce(pl=Pi(oa,ht,vt,Ti,$i,lt,jn,fa,Bl=[],Ma=[],Vi),Et),ea===123)if($i===0)Ri(oa,ht,pl,pl,Bl,Et,Vi,jn,Ma);else switch(us===99&&P(oa,3)===110?100:us){case 100:case 108:case 109:case 115:Ri(tt,pl,pl,Fe&&ce(Pi(tt,pl,pl,0,0,lt,jn,fa,lt,Bl=[],Vi),Ma),lt,Ma,Vi,jn,Fe?Bl:Ma);break;default:Ri(oa,pl,pl,pl,[""],Ma,0,jn,Ma)}}Ti=$i=ks=0,pa=Cs=1,fa=oa="",Vi=an;break;case 58:Vi=1+ne(oa),ks=Os;default:if(pa<1){if(ea==123)--pa;else if(ea==125&&pa++==0&&Ce()==125)continue}switch(oa+=k(ea),ea*pa){case 38:Cs=$i>0?1:(oa+="\f",-1);break;case 44:jn[Ti++]=(ne(oa)-1)*Cs,Cs=1;break;case 64:me()===45&&(oa+=wt(Ae())),us=me(),$i=Vi=ne(fa=oa+=Yr(je())),ea++;break;case 45:Os===45&&ne(oa)==2&&(pa=0)}}return Et}function Pi(tt,ht,vt,Fe,lt,Et,an,jn,Cr,Ti,$i){for(var Vi=lt-1,us=lt===0?Et:[""],ks=re(us),Os=0,pa=0,no=0;Os0?us[Cs]+" "+ea:f(ea,/&\f/g,us[Cs])))&&(Cr[no++]=fa);return ve(tt,ht,vt,lt===0?Po:jn,Cr,Ti,$i)}function Wo(tt,ht,vt){return ve(tt,ht,vt,yr,k(we()),W(tt,2,-2),0)}function ys(tt,ht,vt,Fe){return ve(tt,ht,vt,as,W(tt,0,Fe),W(tt,Fe+1,-1),Fe)}var xn=function(ht,vt,Fe){for(var lt=0,Et=0;lt=Et,Et=me(),lt===38&&Et===12&&(vt[Fe]=1),!Pt(Et);)Ae();return xe(ht,Ie)},Hr=function(ht,vt){var Fe=-1,lt=44;do switch(Pt(lt)){case 0:lt===38&&me()===12&&(vt[Fe]=1),ht[Fe]+=xn(Ie-1,vt,Fe);break;case 2:ht[Fe]+=wt(lt);break;case 4:if(lt===44){ht[++Fe]=me()===58?"&\f":"",vt[Fe]=ht[Fe].length;break}default:ht[Fe]+=k(lt)}while(lt=Ae());return ht},Jr=function(ht,vt){return He(Hr(ct(ht),vt))},Yi=new WeakMap,xo=function(ht){if(!(ht.type!=="rule"||!ht.parent||ht.length<1)){for(var vt=ht.value,Fe=ht.parent,lt=ht.column===Fe.column&&ht.line===Fe.line;Fe.type!=="rule";)if(Fe=Fe.parent,!Fe)return;if(!(ht.props.length===1&&vt.charCodeAt(0)!==58&&!Yi.get(Fe))&&!lt){Yi.set(ht,!0);for(var Et=[],an=Jr(vt,Et),jn=Fe.props,Cr=0,Ti=0;Cr-1},Mr=function(ht){return function(vt,Fe,lt){if(!(vt.type!=="rule"||ht.compat)){var Et=vt.value.match(/(:first|:nth|:nth-last)-child/g);if(Et){for(var an=!!vt.parent,jn=an?vt.parent.children:lt,Cr=jn.length-1;Cr>=0;Cr--){var Ti=jn[Cr];if(Ti.line=0;Fe--)if(!li(vt[Fe]))return!0;return!1},qr=function(ht){ht.type="",ht.value="",ht.return="",ht.children="",ht.props=""},ii=function(ht,vt,Fe){li(ht)&&(ht.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),qr(ht)):wr(vt,Fe)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),qr(ht)))};function rn(tt,ht){switch(w(tt,ht)){case 5103:return yo+"print-"+tt+tt;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return yo+tt+tt;case 5349:case 4246:case 4810:case 6968:case 2756:return yo+tt+to+tt+oi+tt+tt;case 6828:case 4268:return yo+tt+oi+tt+tt;case 6165:return yo+tt+oi+"flex-"+tt+tt;case 5187:return yo+tt+f(tt,/(\w+).+(:[^]+)/,yo+"box-$1$2"+oi+"flex-$1$2")+tt;case 5443:return yo+tt+oi+"flex-item-"+f(tt,/flex-|-self/,"")+tt;case 4675:return yo+tt+oi+"flex-line-pack"+f(tt,/align-content|flex-|-self/,"")+tt;case 5548:return yo+tt+oi+f(tt,"shrink","negative")+tt;case 5292:return yo+tt+oi+f(tt,"basis","preferred-size")+tt;case 6060:return yo+"box-"+f(tt,"-grow","")+yo+tt+oi+f(tt,"grow","positive")+tt;case 4554:return yo+f(tt,/([^-])(transform)/g,"$1"+yo+"$2")+tt;case 6187:return f(f(f(tt,/(zoom-|grab)/,yo+"$1"),/(image-set)/,yo+"$1"),tt,"")+tt;case 5495:case 3959:return f(tt,/(image-set\([^]*)/,yo+"$1$`$1");case 4968:return f(f(tt,/(.+:)(flex-)?(.*)/,yo+"box-pack:$3"+oi+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+yo+tt+tt;case 4095:case 3583:case 4068:case 2532:return f(tt,/(.+)-inline(.+)/,yo+"$1$2")+tt;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ne(tt)-1-ht>6)switch(P(tt,ht+1)){case 109:if(P(tt,ht+4)!==45)break;case 102:return f(tt,/(.+:)(.+)-([^]+)/,"$1"+yo+"$2-$3$1"+to+(P(tt,ht+3)==108?"$3":"$2-$3"))+tt;case 115:return~S(tt,"stretch")?rn(f(tt,"stretch","fill-available"),ht)+tt:tt}break;case 4949:if(P(tt,ht+1)!==115)break;case 6444:switch(P(tt,ne(tt)-3-(~S(tt,"!important")&&10))){case 107:return f(tt,":",":"+yo)+tt;case 101:return f(tt,/(.+:)([^;!]+)(;|!.+)?/,"$1"+yo+(P(tt,14)===45?"inline-":"")+"box$3$1"+yo+"$2$3$1"+oi+"$2box$3")+tt}break;case 5936:switch(P(tt,ht+11)){case 114:return yo+tt+oi+f(tt,/[svh]\w+-[tblr]{2}/,"tb")+tt;case 108:return yo+tt+oi+f(tt,/[svh]\w+-[tblr]{2}/,"tb-rl")+tt;case 45:return yo+tt+oi+f(tt,/[svh]\w+-[tblr]{2}/,"lr")+tt}return yo+tt+oi+tt+tt}return tt}var Qn=function(ht,vt,Fe,lt){if(ht.length>-1&&!ht.return)switch(ht.type){case as:ht.return=rn(ht.value,ht.length);break;case _t:return Tt([ye(ht,{value:f(ht.value,"@","@"+yo)})],lt);case Po:if(ht.length)return pe(ht.props,function(Et){switch(C(Et,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Tt([ye(ht,{props:[f(Et,/:(read-\w+)/,":"+to+"$1")]})],lt);case"::placeholder":return Tt([ye(ht,{props:[f(Et,/:(plac\w+)/,":"+yo+"input-$1")]}),ye(ht,{props:[f(Et,/:(plac\w+)/,":"+to+"$1")]}),ye(ht,{props:[f(Et,/:(plac\w+)/,oi+"input-$1")]})],lt)}return""})}},Vr=[Qn],so=function(ht){var vt=ht.key;if(vt==="css"){var Fe=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(Fe,function(pa){var no=pa.getAttribute("data-emotion");no.indexOf(" ")!==-1&&(document.head.appendChild(pa),pa.setAttribute("data-s",""))})}var lt=ht.stylisPlugins||Vr,Et={},an,jn=[];an=ht.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+vt+' "]'),function(pa){for(var no=pa.getAttribute("data-emotion").split(" "),Cs=1;Cs=4;++Fe,lt-=4)vt=tt.charCodeAt(Fe)&255|(tt.charCodeAt(++Fe)&255)<<8|(tt.charCodeAt(++Fe)&255)<<16|(tt.charCodeAt(++Fe)&255)<<24,vt=(vt&65535)*1540483477+((vt>>>16)*59797<<16),vt^=vt>>>24,ht=(vt&65535)*1540483477+((vt>>>16)*59797<<16)^(ht&65535)*1540483477+((ht>>>16)*59797<<16);switch(lt){case 3:ht^=(tt.charCodeAt(Fe+2)&255)<<16;case 2:ht^=(tt.charCodeAt(Fe+1)&255)<<8;case 1:ht^=tt.charCodeAt(Fe)&255,ht=(ht&65535)*1540483477+((ht>>>16)*59797<<16)}return ht^=ht>>>13,ht=(ht&65535)*1540483477+((ht>>>16)*59797<<16),((ht^ht>>>15)>>>0).toString(36)}var zt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function pn(tt){var ht=Object.create(null);return function(vt){return ht[vt]===void 0&&(ht[vt]=tt(vt)),ht[vt]}}var br=`You have illegal escape sequence in your template literal, most likely inside content's property value. Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". You can read more about this here: -https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,Gr="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",ui=/[A-Z]|^ms/g,Ci=/_EMO_([^_]+?)_([^]*?)_EMO_/g,lo=function(dt){return dt.charCodeAt(1)===45},Kr=function(dt){return dt!=null&&typeof dt!="boolean"},ti=pn(function(tt){return lo(tt)?tt:tt.replace(ui,"-$&").toLowerCase()}),Wi=function(dt,vt){switch(dt){case"animation":case"animationName":if(typeof vt=="string")return vt.replace(Ci,function(ze,lt,Et){return ds={name:lt,styles:Et,next:ds},lt})}return zt[dt]!==1&&!lo(dt)&&typeof vt=="number"&&vt!==0?vt+"px":vt};if(!1)var Tr,Qt,Gn,yi,Ln,Si;var tr=null;function vi(tt,dt,vt){if(vt==null)return"";if(vt.__emotion_styles!==void 0)return vt;switch(typeof vt){case"boolean":return"";case"object":{if(vt.anim===1)return ds={name:vt.name,styles:vt.styles,next:ds},vt.name;if(vt.styles!==void 0){var ze=vt.next;if(ze!==void 0)for(;ze!==void 0;)ds={name:ze.name,styles:ze.styles,next:ds},ze=ze.next;var lt=vt.styles+";";return lt}return Ni(tt,dt,vt)}case"function":{if(tt!==void 0){var Et=ds,an=vt(tt);return ds=Et,vi(tt,dt,an)}break}case"string":if(!1)var jn,xr;break}if(dt==null)return vt;var Ti=dt[vt];return Ti!==void 0?Ti:vt}function Ni(tt,dt,vt){var ze="";if(Array.isArray(vt))for(var lt=0;lt=Math.abs(C)?z-f+C:C-f+z,z=f}z+k>=0!=!!b&&A.reverse()}},75550:function(nt){"use strict";nt.exports=V;function V(m,y){this.x=m,this.y=y}V.prototype={clone:function(){return new V(this.x,this.y)},add:function(m){return this.clone()._add(m)},sub:function(m){return this.clone()._sub(m)},multByPoint:function(m){return this.clone()._multByPoint(m)},divByPoint:function(m){return this.clone()._divByPoint(m)},mult:function(m){return this.clone()._mult(m)},div:function(m){return this.clone()._div(m)},rotate:function(m){return this.clone()._rotate(m)},rotateAround:function(m,y){return this.clone()._rotateAround(m,y)},matMult:function(m){return this.clone()._matMult(m)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(m){return this.x===m.x&&this.y===m.y},dist:function(m){return Math.sqrt(this.distSqr(m))},distSqr:function(m){var y=m.x-this.x,A=m.y-this.y;return y*y+A*A},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(m){return Math.atan2(this.y-m.y,this.x-m.x)},angleWith:function(m){return this.angleWithSep(m.x,m.y)},angleWithSep:function(m,y){return Math.atan2(this.x*y-this.y*m,this.x*m+this.y*y)},_matMult:function(m){var y=m[0]*this.x+m[1]*this.y,A=m[2]*this.x+m[3]*this.y;return this.x=y,this.y=A,this},_add:function(m){return this.x+=m.x,this.y+=m.y,this},_sub:function(m){return this.x-=m.x,this.y-=m.y,this},_mult:function(m){return this.x*=m,this.y*=m,this},_div:function(m){return this.x/=m,this.y/=m,this},_multByPoint:function(m){return this.x*=m.x,this.y*=m.y,this},_divByPoint:function(m){return this.x/=m.x,this.y/=m.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var m=this.y;return this.y=this.x,this.x=-m,this},_rotate:function(m){var y=Math.cos(m),A=Math.sin(m),b=y*this.x-A*this.y,z=A*this.x+y*this.y;return this.x=b,this.y=z,this},_rotateAround:function(m,y){var A=Math.cos(m),b=Math.sin(m),z=y.x+A*(this.x-y.x)-b*(this.y-y.y),k=y.y+b*(this.x-y.x)+A*(this.y-y.y);return this.x=z,this.y=k,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},V.convert=function(m){return m instanceof V?m:Array.isArray(m)?new V(m[0],m[1]):m}},49296:function(nt){"use strict";nt.exports=m,nt.exports.default=m;var V=1e20;function m(k,N,w,I,C,f){this.fontSize=k||24,this.buffer=N===void 0?3:N,this.cutoff=I||.25,this.fontFamily=C||"sans-serif",this.fontWeight=f||"normal",this.radius=w||8;var S=this.size=this.fontSize+this.buffer*2,P=S+this.buffer*2;this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=S,this.ctx=this.canvas.getContext("2d"),this.ctx.font=this.fontWeight+" "+this.fontSize+"px "+this.fontFamily,this.ctx.textAlign="left",this.ctx.fillStyle="black",this.gridOuter=new Float64Array(P*P),this.gridInner=new Float64Array(P*P),this.f=new Float64Array(P),this.z=new Float64Array(P+1),this.v=new Uint16Array(P),this.useMetrics=this.ctx.measureText("A").actualBoundingBoxLeft!==void 0,this.middle=Math.round(S/2*(navigator.userAgent.indexOf("Gecko/")>=0?1.2:1))}function y(k,N,w,I,C,f,S){f.fill(V,0,N*w),S.fill(0,0,N*w);for(var P=(N-I)/2,j=0;j-1);j++,f[j]=P,S[j]=re,S[j+1]=V}for(P=0,j=0;Pb)return b;for(;Ak?A=z:b=z,z=(b-A)*.5+A}return z},V.prototype.solve=function(m,y){return this.sampleCurveY(this.solveCurveX(m,y))}},38929:function(nt,V,m){nt.exports.VectorTile=m(22779),m(66024),m(59701)},22779:function(nt,V,m){"use strict";var y=m(59701);nt.exports=A;function A(z,k){this.layers=z.readFields(b,{},k)}function b(z,k,N){if(z===3){var w=new y(N,N.readVarint()+N.pos);w.length&&(k[w.name]=w)}}},66024:function(nt,V,m){"use strict";var y=m(75550);nt.exports=A;function A(w,I,C,f,S){this.properties={},this.extent=C,this.type=0,this._pbf=w,this._geometry=-1,this._keys=f,this._values=S,w.readFields(b,this,I)}function b(w,I,C){w==1?I.id=C.readVarint():w==2?z(C,I):w==3?I.type=C.readVarint():w==4&&(I._geometry=C.pos)}function z(w,I){for(var C=w.readVarint()+w.pos;w.pos>3}if(f--,C===1||C===2)S+=w.readSVarint(),P+=w.readSVarint(),C===1&&(re&&j.push(re),re=[]),re.push(new y(S,P));else if(C===7)re&&re.push(re[0].clone());else throw new Error("unknown command "+C)}return re&&j.push(re),j},A.prototype.bbox=function(){var w=this._pbf;w.pos=this._geometry;for(var I=w.readVarint()+w.pos,C=1,f=0,S=0,P=0,j=1/0,re=-1/0,J=1/0,ie=-1/0;w.pos>3}if(f--,C===1||C===2)S+=w.readSVarint(),P+=w.readSVarint(),Sre&&(re=S),Pie&&(ie=P);else if(C!==7)throw new Error("unknown command "+C)}return[j,J,re,ie]},A.prototype.toGeoJSON=function(w,I,C){var f=this.extent*Math.pow(2,C),S=this.extent*w,P=this.extent*I,j=this.loadGeometry(),re=A.types[this.type],J,ie;function de(ke){for(var we=0;we>3;N=I===1?k.readString():I===2?k.readFloat():I===3?k.readDouble():I===4?k.readVarint64():I===5?k.readVarint():I===6?k.readSVarint():I===7?k.readBoolean():null}return N}A.prototype.feature=function(k){if(k<0||k>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[k];var N=this._pbf.readVarint()+this._pbf.pos;return new y(this._pbf,N,this.extent,this._keys,this._values)}},9705:function(nt,V,m){"use strict";var y;y={value:!0};var A=m(31540);function b(z){var k=[1/0,1/0,-1/0,-1/0];return A.coordEach(z,function(N){k[0]>N[0]&&(k[0]=N[0]),k[1]>N[1]&&(k[1]=N[1]),k[2]=0))throw new Error("precision must be a positive number");var Ie=Math.pow(10,be||0);return Math.round(xe*Ie)/Ie}V.round=j;function re(xe,be){be===void 0&&(be="kilometers");var Ie=V.factors[be];if(!Ie)throw new Error(be+" units is invalid");return xe*Ie}V.radiansToLength=re;function J(xe,be){be===void 0&&(be="kilometers");var Ie=V.factors[be];if(!Ie)throw new Error(be+" units is invalid");return xe/Ie}V.lengthToRadians=J;function ie(xe,be){return he(J(xe,be))}V.lengthToDegrees=ie;function de(xe){var be=xe%360;return be<0&&(be+=360),be}V.bearingToAzimuth=de;function he(xe){var be=xe%(2*Math.PI);return be*180/Math.PI}V.radiansToDegrees=he;function fe(xe){var be=xe%360;return be*Math.PI/180}V.degreesToRadians=fe;function ke(xe,be,Ie){if(be===void 0&&(be="kilometers"),Ie===void 0&&(Ie="kilometers"),!(xe>=0))throw new Error("length must be a positive number");return re(J(xe,be),Ie)}V.convertLength=ke;function we(xe,be,Ie){if(be===void 0&&(be="meters"),Ie===void 0&&(Ie="kilometers"),!(xe>=0))throw new Error("area must be a positive number");var me=V.areaFactors[be];if(!me)throw new Error("invalid original units");var We=V.areaFactors[Ie];if(!We)throw new Error("invalid final units");return xe/me*We}V.convertArea=we;function Ne(xe){return!isNaN(xe)&&xe!==null&&!Array.isArray(xe)}V.isNumber=Ne;function Ee(xe){return!!xe&&xe.constructor===Object}V.isObject=Ee;function ge(xe){if(!xe)throw new Error("bbox is required");if(!Array.isArray(xe))throw new Error("bbox must be an Array");if(xe.length!==4&&xe.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");xe.forEach(function(be){if(!Ne(be))throw new Error("bbox must only contain numbers")})}V.validateBBox=ge;function ye(xe){if(!xe)throw new Error("id is required");if(["string","number"].indexOf(typeof xe)===-1)throw new Error("id must be a number or a string")}V.validateId=ye},31540:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0});var y=m(84102);function A(fe,ke,we){if(fe!==null)for(var Ne,Ee,ge,ye,xe,be,Ie,me=0,We=0,Ce,Pt=fe.type,ct=Pt==="FeatureCollection",Ue=Pt==="Feature",bt=ct?fe.features.length:1,ht=0;htbe||ct>Ie||Ue>me){xe=We,be=Ne,Ie=ct,me=Ue,ge=0;return}var bt=y.lineString([xe,We],we.properties);if(ke(bt,Ne,Ee,Ue,ge)===!1)return!1;ge++,xe=We})===!1)return!1}}})}function re(fe,ke,we){var Ne=we,Ee=!1;return j(fe,function(ge,ye,xe,be,Ie){Ee===!1&&we===void 0?Ne=ge:Ne=ke(Ne,ge,ye,xe,be,Ie),Ee=!0}),Ne}function J(fe,ke){if(!fe)throw new Error("geojson is required");S(fe,function(we,Ne,Ee){if(we.geometry!==null){var ge=we.geometry.type,ye=we.geometry.coordinates;switch(ge){case"LineString":if(ke(we,Ne,Ee,0,0)===!1)return!1;break;case"Polygon":for(var xe=0;xe=Math.abs(C)?z-f+C:C-f+z,z=f}z+k>=0!=!!b&&I.reverse()}},59263:function(nt){"use strict";nt.exports=V;function V(m,y){this.x=m,this.y=y}V.prototype={clone:function(){return new V(this.x,this.y)},add:function(m){return this.clone()._add(m)},sub:function(m){return this.clone()._sub(m)},multByPoint:function(m){return this.clone()._multByPoint(m)},divByPoint:function(m){return this.clone()._divByPoint(m)},mult:function(m){return this.clone()._mult(m)},div:function(m){return this.clone()._div(m)},rotate:function(m){return this.clone()._rotate(m)},rotateAround:function(m,y){return this.clone()._rotateAround(m,y)},matMult:function(m){return this.clone()._matMult(m)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(m){return this.x===m.x&&this.y===m.y},dist:function(m){return Math.sqrt(this.distSqr(m))},distSqr:function(m){var y=m.x-this.x,I=m.y-this.y;return y*y+I*I},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(m){return Math.atan2(this.y-m.y,this.x-m.x)},angleWith:function(m){return this.angleWithSep(m.x,m.y)},angleWithSep:function(m,y){return Math.atan2(this.x*y-this.y*m,this.x*m+this.y*y)},_matMult:function(m){var y=m[0]*this.x+m[1]*this.y,I=m[2]*this.x+m[3]*this.y;return this.x=y,this.y=I,this},_add:function(m){return this.x+=m.x,this.y+=m.y,this},_sub:function(m){return this.x-=m.x,this.y-=m.y,this},_mult:function(m){return this.x*=m,this.y*=m,this},_div:function(m){return this.x/=m,this.y/=m,this},_multByPoint:function(m){return this.x*=m.x,this.y*=m.y,this},_divByPoint:function(m){return this.x/=m.x,this.y/=m.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var m=this.y;return this.y=this.x,this.x=-m,this},_rotate:function(m){var y=Math.cos(m),I=Math.sin(m),b=y*this.x-I*this.y,z=I*this.x+y*this.y;return this.x=b,this.y=z,this},_rotateAround:function(m,y){var I=Math.cos(m),b=Math.sin(m),z=y.x+I*(this.x-y.x)-b*(this.y-y.y),k=y.y+b*(this.x-y.x)+I*(this.y-y.y);return this.x=z,this.y=k,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},V.convert=function(m){return m instanceof V?m:Array.isArray(m)?new V(m[0],m[1]):m}},52155:function(nt){"use strict";nt.exports=m,nt.exports.default=m;var V=1e20;function m(k,N,w,A,C,f){this.fontSize=k||24,this.buffer=N===void 0?3:N,this.cutoff=A||.25,this.fontFamily=C||"sans-serif",this.fontWeight=f||"normal",this.radius=w||8;var S=this.size=this.fontSize+this.buffer*2,P=S+this.buffer*2;this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=S,this.ctx=this.canvas.getContext("2d"),this.ctx.font=this.fontWeight+" "+this.fontSize+"px "+this.fontFamily,this.ctx.textAlign="left",this.ctx.fillStyle="black",this.gridOuter=new Float64Array(P*P),this.gridInner=new Float64Array(P*P),this.f=new Float64Array(P),this.z=new Float64Array(P+1),this.v=new Uint16Array(P),this.useMetrics=this.ctx.measureText("A").actualBoundingBoxLeft!==void 0,this.middle=Math.round(S/2*(navigator.userAgent.indexOf("Gecko/")>=0?1.2:1))}function y(k,N,w,A,C,f,S){f.fill(V,0,N*w),S.fill(0,0,N*w);for(var P=(N-A)/2,W=0;W-1);W++,f[W]=P,S[W]=ne,S[W+1]=V}for(P=0,W=0;Pb)return b;for(;Ik?I=z:b=z,z=(b-I)*.5+I}return z},V.prototype.solve=function(m,y){return this.sampleCurveY(this.solveCurveX(m,y))}},8332:function(nt,V,m){nt.exports.VectorTile=m(29148),m(82442),m(37815)},29148:function(nt,V,m){"use strict";var y=m(37815);nt.exports=I;function I(z,k){this.layers=z.readFields(b,{},k)}function b(z,k,N){if(z===3){var w=new y(N,N.readVarint()+N.pos);w.length&&(k[w.name]=w)}}},82442:function(nt,V,m){"use strict";var y=m(59263);nt.exports=I;function I(w,A,C,f,S){this.properties={},this.extent=C,this.type=0,this._pbf=w,this._geometry=-1,this._keys=f,this._values=S,w.readFields(b,this,A)}function b(w,A,C){w==1?A.id=C.readVarint():w==2?z(C,A):w==3?A.type=C.readVarint():w==4&&(A._geometry=C.pos)}function z(w,A){for(var C=w.readVarint()+w.pos;w.pos>3}if(f--,C===1||C===2)S+=w.readSVarint(),P+=w.readSVarint(),C===1&&(ne&&W.push(ne),ne=[]),ne.push(new y(S,P));else if(C===7)ne&&ne.push(ne[0].clone());else throw new Error("unknown command "+C)}return ne&&W.push(ne),W},I.prototype.bbox=function(){var w=this._pbf;w.pos=this._geometry;for(var A=w.readVarint()+w.pos,C=1,f=0,S=0,P=0,W=1/0,ne=-1/0,re=1/0,ce=-1/0;w.pos>3}if(f--,C===1||C===2)S+=w.readSVarint(),P+=w.readSVarint(),Sne&&(ne=S),Pce&&(ce=P);else if(C!==7)throw new Error("unknown command "+C)}return[W,re,ne,ce]},I.prototype.toGeoJSON=function(w,A,C){var f=this.extent*Math.pow(2,C),S=this.extent*w,P=this.extent*A,W=this.loadGeometry(),ne=I.types[this.type],re,ce;function pe(Be){for(var Ie=0;Ie>3;N=A===1?k.readString():A===2?k.readFloat():A===3?k.readDouble():A===4?k.readVarint64():A===5?k.readVarint():A===6?k.readSVarint():A===7?k.readBoolean():null}return N}I.prototype.feature=function(k){if(k<0||k>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[k];var N=this._pbf.readVarint()+this._pbf.pos;return new y(this._pbf,N,this.extent,this._keys,this._values)}},76314:function(nt,V,m){"use strict";var y;y={value:!0};var I=m(9750);function b(z){var k=[1/0,1/0,-1/0,-1/0];return I.coordEach(z,function(N){k[0]>N[0]&&(k[0]=N[0]),k[1]>N[1]&&(k[1]=N[1]),k[2]=0))throw new Error("precision must be a positive number");var Ae=Math.pow(10,Ce||0);return Math.round(we*Ae)/Ae}V.round=W;function ne(we,Ce){Ce===void 0&&(Ce="kilometers");var Ae=V.factors[Ce];if(!Ae)throw new Error(Ce+" units is invalid");return we*Ae}V.radiansToLength=ne;function re(we,Ce){Ce===void 0&&(Ce="kilometers");var Ae=V.factors[Ce];if(!Ae)throw new Error(Ce+" units is invalid");return we/Ae}V.lengthToRadians=re;function ce(we,Ce){return he(re(we,Ce))}V.lengthToDegrees=ce;function pe(we){var Ce=we%360;return Ce<0&&(Ce+=360),Ce}V.bearingToAzimuth=pe;function he(we){var Ce=we%(2*Math.PI);return Ce*180/Math.PI}V.radiansToDegrees=he;function fe(we){var Ce=we%360;return Ce*Math.PI/180}V.degreesToRadians=fe;function Be(we,Ce,Ae){if(Ce===void 0&&(Ce="kilometers"),Ae===void 0&&(Ae="kilometers"),!(we>=0))throw new Error("length must be a positive number");return ne(re(we,Ce),Ae)}V.convertLength=Be;function Ie(we,Ce,Ae){if(Ce===void 0&&(Ce="meters"),Ae===void 0&&(Ae="kilometers"),!(we>=0))throw new Error("area must be a positive number");var me=V.areaFactors[Ce];if(!me)throw new Error("invalid original units");var je=V.areaFactors[Ae];if(!je)throw new Error("invalid final units");return we/me*je}V.convertArea=Ie;function We(we){return!isNaN(we)&&we!==null&&!Array.isArray(we)}V.isNumber=We;function De(we){return!!we&&we.constructor===Object}V.isObject=De;function ve(we){if(!we)throw new Error("bbox is required");if(!Array.isArray(we))throw new Error("bbox must be an Array");if(we.length!==4&&we.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");we.forEach(function(Ce){if(!We(Ce))throw new Error("bbox must only contain numbers")})}V.validateBBox=ve;function ye(we){if(!we)throw new Error("id is required");if(["string","number"].indexOf(typeof we)===-1)throw new Error("id must be a number or a string")}V.validateId=ye},9750:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0});var y=m(78161);function I(fe,Be,Ie){if(fe!==null)for(var We,De,ve,ye,we,Ce,Ae,me=0,je=0,xe,Pt=fe.type,ct=Pt==="FeatureCollection",He=Pt==="Feature",wt=ct?fe.features.length:1,dt=0;dtCe||ct>Ae||He>me){we=je,Ce=We,Ae=ct,me=He,ve=0;return}var wt=y.lineString([we,je],Ie.properties);if(Be(wt,We,De,He,ve)===!1)return!1;ve++,we=je})===!1)return!1}}})}function ne(fe,Be,Ie){var We=Ie,De=!1;return W(fe,function(ve,ye,we,Ce,Ae){De===!1&&Ie===void 0?We=ve:We=Be(We,ve,ye,we,Ce,Ae),De=!0}),We}function re(fe,Be){if(!fe)throw new Error("geojson is required");S(fe,function(Ie,We,De){if(Ie.geometry!==null){var ve=Ie.geometry.type,ye=Ie.geometry.coordinates;switch(ve){case"LineString":if(Be(Ie,We,De,0,0)===!1)return!1;break;case"Polygon":for(var we=0;we=fe+ke||fe?new java.lang.String(he,fe,ke)+"":he}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(he){j.prototype[he]=function(){return null}});function de(he,fe){he.currentElement?he.currentElement.appendChild(fe):he.doc.appendChild(fe)}y=j,y=f,y=S},41146:function(nt,V,m){var y=m(72167),A=y.find,b=y.NAMESPACE;function z(zt){return zt!==""}function k(zt){return zt?zt.split(/[\t\n\f\r ]+/).filter(z):[]}function N(zt,pn){return zt.hasOwnProperty(pn)||(zt[pn]=!0),zt}function w(zt){if(!zt)return[];var pn=k(zt);return Object.keys(pn.reduce(N,{}))}function I(zt){return function(pn){return zt&&zt.indexOf(pn)!==-1}}function C(zt,pn){for(var _r in zt)Object.prototype.hasOwnProperty.call(zt,_r)&&(pn[_r]=zt[_r])}function f(zt,pn){var _r=zt.prototype;if(!(_r instanceof pn)){let ui=function(){};var Gr=ui;ui.prototype=pn.prototype,ui=new ui,C(_r,ui),zt.prototype=_r=ui}_r.constructor!=zt&&(typeof zt!="function"&&console.error("unknown Class:"+zt),_r.constructor=zt)}var S={},P=S.ELEMENT_NODE=1,j=S.ATTRIBUTE_NODE=2,re=S.TEXT_NODE=3,J=S.CDATA_SECTION_NODE=4,ie=S.ENTITY_REFERENCE_NODE=5,de=S.ENTITY_NODE=6,he=S.PROCESSING_INSTRUCTION_NODE=7,fe=S.COMMENT_NODE=8,ke=S.DOCUMENT_NODE=9,we=S.DOCUMENT_TYPE_NODE=10,Ne=S.DOCUMENT_FRAGMENT_NODE=11,Ee=S.NOTATION_NODE=12,ge={},ye={},xe=ge.INDEX_SIZE_ERR=(ye[1]="Index size error",1),be=ge.DOMSTRING_SIZE_ERR=(ye[2]="DOMString size error",2),Ie=ge.HIERARCHY_REQUEST_ERR=(ye[3]="Hierarchy request error",3),me=ge.WRONG_DOCUMENT_ERR=(ye[4]="Wrong document",4),We=ge.INVALID_CHARACTER_ERR=(ye[5]="Invalid character",5),Ce=ge.NO_DATA_ALLOWED_ERR=(ye[6]="No data allowed",6),Pt=ge.NO_MODIFICATION_ALLOWED_ERR=(ye[7]="No modification allowed",7),ct=ge.NOT_FOUND_ERR=(ye[8]="Not found",8),Ue=ge.NOT_SUPPORTED_ERR=(ye[9]="Not supported",9),bt=ge.INUSE_ATTRIBUTE_ERR=(ye[10]="Attribute in use",10),ht=ge.INVALID_STATE_ERR=(ye[11]="Invalid state",11),Bt=ge.SYNTAX_ERR=(ye[12]="Syntax error",12),mt=ge.INVALID_MODIFICATION_ERR=(ye[13]="Invalid modification",13),_n=ge.NAMESPACE_ERR=(ye[14]="Invalid namespace",14),Bn=ge.INVALID_ACCESS_ERR=(ye[15]="Invalid access",15);function Er(zt,pn){if(pn instanceof Error)var _r=pn;else _r=this,Error.call(this,ye[zt]),this.message=ye[zt],Error.captureStackTrace&&Error.captureStackTrace(this,Er);return _r.code=zt,pn&&(this.message=this.message+": "+pn),_r}Er.prototype=Error.prototype,C(ge,Er);function Yr(){}Yr.prototype={length:0,item:function(zt){return zt>=0&&zt=0){for(var ui=pn.length-1;Gr0},lookupPrefix:function(zt){for(var pn=this;pn;){var _r=pn._nsMap;if(_r){for(var Gr in _r)if(Object.prototype.hasOwnProperty.call(_r,Gr)&&_r[Gr]===zt)return Gr}pn=pn.nodeType==j?pn.ownerDocument:pn.parentNode}return null},lookupNamespaceURI:function(zt){for(var pn=this;pn;){var _r=pn._nsMap;if(_r&&Object.prototype.hasOwnProperty.call(_r,zt))return _r[zt];pn=pn.nodeType==j?pn.ownerDocument:pn.parentNode}return null},isDefaultNamespace:function(zt){var pn=this.lookupPrefix(zt);return pn==null}};function ci(zt){return zt=="<"&&"<"||zt==">"&&">"||zt=="&"&&"&"||zt=='"'&&"""||"&#"+zt.charCodeAt()+";"}C(S,_o),C(S,_o.prototype);function Bi(zt,pn){if(pn(zt))return!0;if(zt=zt.firstChild)do if(Bi(zt,pn))return!0;while(zt=zt.nextSibling)}function wi(){this.ownerDocument=this}function io(zt,pn,_r){zt&&zt._inc++;var Gr=_r.namespaceURI;Gr===b.XMLNS&&(pn._nsMap[_r.prefix?_r.localName:""]=_r.value)}function ln(zt,pn,_r,Gr){zt&&zt._inc++;var ui=_r.namespaceURI;ui===b.XMLNS&&delete pn._nsMap[_r.prefix?_r.localName:""]}function Ve(zt,pn,_r){if(zt&&zt._inc){zt._inc++;var Gr=pn.childNodes;if(_r)Gr[Gr.length++]=_r;else{for(var ui=pn.firstChild,Ci=0;ui;)Gr[Ci++]=ui,ui=ui.nextSibling;Gr.length=Ci,delete Gr[Gr.length]}}}function _t(zt,pn){var _r=pn.previousSibling,Gr=pn.nextSibling;return _r?_r.nextSibling=Gr:zt.firstChild=Gr,Gr?Gr.previousSibling=_r:zt.lastChild=_r,pn.parentNode=null,pn.previousSibling=null,pn.nextSibling=null,Ve(zt.ownerDocument,zt),pn}function Ct(zt){return zt&&(zt.nodeType===_o.DOCUMENT_NODE||zt.nodeType===_o.DOCUMENT_FRAGMENT_NODE||zt.nodeType===_o.ELEMENT_NODE)}function jt(zt){return zt&&(Ot(zt)||Tt(zt)||on(zt)||zt.nodeType===_o.DOCUMENT_FRAGMENT_NODE||zt.nodeType===_o.COMMENT_NODE||zt.nodeType===_o.PROCESSING_INSTRUCTION_NODE)}function on(zt){return zt&&zt.nodeType===_o.DOCUMENT_TYPE_NODE}function Ot(zt){return zt&&zt.nodeType===_o.ELEMENT_NODE}function Tt(zt){return zt&&zt.nodeType===_o.TEXT_NODE}function xt(zt,pn){var _r=zt.childNodes||[];if(A(_r,Ot)||on(pn))return!1;var Gr=A(_r,on);return!(pn&&Gr&&_r.indexOf(Gr)>_r.indexOf(pn))}function Ht(zt,pn){var _r=zt.childNodes||[];function Gr(Ci){return Ot(Ci)&&Ci!==pn}if(A(_r,Gr))return!1;var ui=A(_r,on);return!(pn&&ui&&_r.indexOf(ui)>_r.indexOf(pn))}function Zn(zt,pn,_r){if(!Ct(zt))throw new Er(Ie,"Unexpected parent node type "+zt.nodeType);if(_r&&_r.parentNode!==zt)throw new Er(ct,"child not in parent");if(!jt(pn)||on(pn)&&zt.nodeType!==_o.DOCUMENT_NODE)throw new Er(Ie,"Unexpected node type "+pn.nodeType+" for parent node type "+zt.nodeType)}function tn(zt,pn,_r){var Gr=zt.childNodes||[],ui=pn.childNodes||[];if(pn.nodeType===_o.DOCUMENT_FRAGMENT_NODE){var Ci=ui.filter(Ot);if(Ci.length>1||A(ui,Tt))throw new Er(Ie,"More than one element or text in fragment");if(Ci.length===1&&!xt(zt,_r))throw new Er(Ie,"Element in fragment can not be inserted before doctype")}if(Ot(pn)&&!xt(zt,_r))throw new Er(Ie,"Only one element can be added and only after doctype");if(on(pn)){if(A(Gr,on))throw new Er(Ie,"Only one doctype is allowed");var lo=A(Gr,Ot);if(_r&&Gr.indexOf(lo)1||A(ui,Tt))throw new Er(Ie,"More than one element or text in fragment");if(Ci.length===1&&!Ht(zt,_r))throw new Er(Ie,"Element in fragment can not be inserted before doctype")}if(Ot(pn)&&!Ht(zt,_r))throw new Er(Ie,"Only one element can be added and only after doctype");if(on(pn)){let ti=function(Wi){return on(Wi)&&Wi!==_r};var Kr=ti;if(A(Gr,ti))throw new Er(Ie,"Only one doctype is allowed");var lo=A(Gr,Ot);if(_r&&Gr.indexOf(lo)0&&Bi(_r.documentElement,function(ui){if(ui!==_r&&ui.nodeType===P){var Ci=ui.getAttribute("class");if(Ci){var lo=zt===Ci;if(!lo){var Kr=w(Ci);lo=pn.every(I(Kr))}lo&&Gr.push(ui)}}}),Gr})},createElement:function(zt){var pn=new Pi;pn.ownerDocument=this,pn.nodeName=zt,pn.tagName=zt,pn.localName=zt,pn.childNodes=new Yr;var _r=pn.attributes=new yo;return _r._ownerElement=pn,pn},createDocumentFragment:function(){var zt=new Xn;return zt.ownerDocument=this,zt.childNodes=new Yr,zt},createTextNode:function(zt){var pn=new xn;return pn.ownerDocument=this,pn.appendData(zt),pn},createComment:function(zt){var pn=new Hr;return pn.ownerDocument=this,pn.appendData(zt),pn},createCDATASection:function(zt){var pn=new Jr;return pn.ownerDocument=this,pn.appendData(zt),pn},createProcessingInstruction:function(zt,pn){var _r=new Mr;return _r.ownerDocument=this,_r.tagName=_r.nodeName=_r.target=zt,_r.nodeValue=_r.data=pn,_r},createAttribute:function(zt){var pn=new $o;return pn.ownerDocument=this,pn.name=zt,pn.nodeName=zt,pn.localName=zt,pn.specified=!0,pn},createEntityReference:function(zt){var pn=new Vn;return pn.ownerDocument=this,pn.nodeName=zt,pn},createElementNS:function(zt,pn){var _r=new Pi,Gr=pn.split(":"),ui=_r.attributes=new yo;return _r.childNodes=new Yr,_r.ownerDocument=this,_r.nodeName=pn,_r.tagName=pn,_r.namespaceURI=zt,Gr.length==2?(_r.prefix=Gr[0],_r.localName=Gr[1]):_r.localName=pn,ui._ownerElement=_r,_r},createAttributeNS:function(zt,pn){var _r=new $o,Gr=pn.split(":");return _r.ownerDocument=this,_r.nodeName=pn,_r.name=pn,_r.namespaceURI=zt,_r.specified=!0,Gr.length==2?(_r.prefix=Gr[0],_r.localName=Gr[1]):_r.localName=pn,_r}},f(wi,_o);function Pi(){this._nsMap={}}Pi.prototype={nodeType:P,hasAttribute:function(zt){return this.getAttributeNode(zt)!=null},getAttribute:function(zt){var pn=this.getAttributeNode(zt);return pn&&pn.value||""},getAttributeNode:function(zt){return this.attributes.getNamedItem(zt)},setAttribute:function(zt,pn){var _r=this.ownerDocument.createAttribute(zt);_r.value=_r.nodeValue=""+pn,this.setAttributeNode(_r)},removeAttribute:function(zt){var pn=this.getAttributeNode(zt);pn&&this.removeAttributeNode(pn)},appendChild:function(zt){return zt.nodeType===Ne?this.insertBefore(zt,null):Ri(this,zt)},setAttributeNode:function(zt){return this.attributes.setNamedItem(zt)},setAttributeNodeNS:function(zt){return this.attributes.setNamedItemNS(zt)},removeAttributeNode:function(zt){return this.attributes.removeNamedItem(zt.nodeName)},removeAttributeNS:function(zt,pn){var _r=this.getAttributeNodeNS(zt,pn);_r&&this.removeAttributeNode(_r)},hasAttributeNS:function(zt,pn){return this.getAttributeNodeNS(zt,pn)!=null},getAttributeNS:function(zt,pn){var _r=this.getAttributeNodeNS(zt,pn);return _r&&_r.value||""},setAttributeNS:function(zt,pn,_r){var Gr=this.ownerDocument.createAttributeNS(zt,pn);Gr.value=Gr.nodeValue=""+_r,this.setAttributeNode(Gr)},getAttributeNodeNS:function(zt,pn){return this.attributes.getNamedItemNS(zt,pn)},getElementsByTagName:function(zt){return new oi(this,function(pn){var _r=[];return Bi(pn,function(Gr){Gr!==pn&&Gr.nodeType==P&&(zt==="*"||Gr.tagName==zt)&&_r.push(Gr)}),_r})},getElementsByTagNameNS:function(zt,pn){return new oi(this,function(_r){var Gr=[];return Bi(_r,function(ui){ui!==_r&&ui.nodeType===P&&(zt==="*"||ui.namespaceURI===zt)&&(pn==="*"||ui.localName==pn)&&Gr.push(ui)}),Gr})}},wi.prototype.getElementsByTagName=Pi.prototype.getElementsByTagName,wi.prototype.getElementsByTagNameNS=Pi.prototype.getElementsByTagNameNS,f(Pi,_o);function $o(){}$o.prototype.nodeType=j,f($o,_o);function ys(){}ys.prototype={data:"",substringData:function(zt,pn){return this.data.substring(zt,zt+pn)},appendData:function(zt){zt=this.data+zt,this.nodeValue=this.data=zt,this.length=zt.length},insertData:function(zt,pn){this.replaceData(zt,0,pn)},appendChild:function(zt){throw new Error(ye[Ie])},deleteData:function(zt,pn){this.replaceData(zt,pn,"")},replaceData:function(zt,pn,_r){var Gr=this.data.substring(0,zt),ui=this.data.substring(zt+pn);_r=Gr+_r+ui,this.nodeValue=this.data=_r,this.length=_r.length}},f(ys,_o);function xn(){}xn.prototype={nodeName:"#text",nodeType:re,splitText:function(zt){var pn=this.data,_r=pn.substring(zt);pn=pn.substring(0,zt),this.data=this.nodeValue=pn,this.length=pn.length;var Gr=this.ownerDocument.createTextNode(_r);return this.parentNode&&this.parentNode.insertBefore(Gr,this.nextSibling),Gr}},f(xn,ys);function Hr(){}Hr.prototype={nodeName:"#comment",nodeType:fe},f(Hr,ys);function Jr(){}Jr.prototype={nodeName:"#cdata-section",nodeType:J},f(Jr,ys);function Yi(){}Yi.prototype.nodeType=we,f(Yi,_o);function xo(){}xo.prototype.nodeType=Ee,f(xo,_o);function na(){}na.prototype.nodeType=de,f(na,_o);function Vn(){}Vn.prototype.nodeType=ie,f(Vn,_o);function Xn(){}Xn.prototype.nodeName="#document-fragment",Xn.prototype.nodeType=Ne,f(Xn,_o);function Mr(){}Mr.prototype.nodeType=he,f(Mr,_o);function li(){}li.prototype.serializeToString=function(zt,pn,_r){return Cr.call(zt,pn,_r)},_o.prototype.toString=Cr;function Cr(zt,pn){var _r=[],Gr=this.nodeType==9&&this.documentElement||this,ui=Gr.prefix,Ci=Gr.namespaceURI;if(Ci&&ui==null){var ui=Gr.lookupPrefix(Ci);if(ui==null)var lo=[{namespace:Ci,prefix:null}]}return rn(this,_r,zt,pn,lo),_r.join("")}function qr(zt,pn,_r){var Gr=zt.prefix||"",ui=zt.namespaceURI;if(!ui||Gr==="xml"&&ui===b.XML||ui===b.XMLNS)return!1;for(var Ci=_r.length;Ci--;){var lo=_r[Ci];if(lo.prefix===Gr)return lo.namespace!==ui}return!0}function ii(zt,pn,_r){zt.push(" ",pn,'="',_r.replace(/[<>&"\t\n\r]/g,ci),'"')}function rn(zt,pn,_r,Gr,ui){if(ui||(ui=[]),Gr)if(zt=Gr(zt),zt){if(typeof zt=="string"){pn.push(zt);return}}else return;switch(zt.nodeType){case P:var Ci=zt.attributes,lo=Ci.length,vi=zt.firstChild,Kr=zt.tagName;_r=b.isHTML(zt.namespaceURI)||_r;var ti=Kr;if(!_r&&!zt.prefix&&zt.namespaceURI){for(var Wi,Tr=0;Tr=0;Qt--){var Gn=ui[Qt];if(Gn.prefix===""&&Gn.namespace===zt.namespaceURI){Wi=Gn.namespace;break}}if(Wi!==zt.namespaceURI)for(var Qt=ui.length-1;Qt>=0;Qt--){var Gn=ui[Qt];if(Gn.namespace===zt.namespaceURI){Gn.prefix&&(ti=Gn.prefix+":"+Kr);break}}}pn.push("<",ti);for(var yi=0;yi"),_r&&/^script$/i.test(Kr))for(;vi;)vi.data?pn.push(vi.data):rn(vi,pn,_r,Gr,ui.slice()),vi=vi.nextSibling;else for(;vi;)rn(vi,pn,_r,Gr,ui.slice()),vi=vi.nextSibling;pn.push("")}else pn.push("/>");return;case ke:case Ne:for(var vi=zt.firstChild;vi;)rn(vi,pn,_r,Gr,ui.slice()),vi=vi.nextSibling;return;case j:return ii(pn,zt.name,zt.value);case re:return pn.push(zt.data.replace(/[<&>]/g,ci));case J:return pn.push("");case fe:return pn.push("");case we:var Ni=zt.publicId,kr=zt.systemId;if(pn.push("");else if(kr&&kr!=".")pn.push(" SYSTEM ",kr,">");else{var Qn=zt.internalSubset;Qn&&pn.push(" [",Qn,"]"),pn.push(">")}return;case he:return pn.push("");case ie:return pn.push("&",zt.nodeName,";");default:pn.push("??",zt.nodeName)}}function Jn(zt,pn,_r){var Gr;switch(pn.nodeType){case P:Gr=pn.cloneNode(!1),Gr.ownerDocument=zt;case Ne:break;case j:_r=!0;break}if(Gr||(Gr=pn.cloneNode(!1)),Gr.ownerDocument=zt,Gr.parentNode=null,_r)for(var ui=pn.firstChild;ui;)Gr.appendChild(Jn(zt,ui,_r)),ui=ui.nextSibling;return Gr}function Vr(zt,pn,_r){var Gr=new pn.constructor;for(var ui in pn)if(Object.prototype.hasOwnProperty.call(pn,ui)){var Ci=pn[ui];typeof Ci!="object"&&Ci!=Gr[ui]&&(Gr[ui]=Ci)}switch(pn.childNodes&&(Gr.childNodes=new Yr),Gr.ownerDocument=zt,Gr.nodeType){case P:var lo=pn.attributes,Kr=Gr.attributes=new yo,ti=lo.length;Kr._ownerElement=Gr;for(var Wi=0;Wi",lt:"<",quot:'"'}),V.HTML_ENTITIES=y({Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",AMP:"&",amp:"&",And:"\u2A53",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",ap:"\u2248",apacir:"\u2A6F",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",Barwed:"\u2306",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",Because:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxDL:"\u2557",boxDl:"\u2556",boxdL:"\u2555",boxdl:"\u2510",boxDR:"\u2554",boxDr:"\u2553",boxdR:"\u2552",boxdr:"\u250C",boxH:"\u2550",boxh:"\u2500",boxHD:"\u2566",boxHd:"\u2564",boxhD:"\u2565",boxhd:"\u252C",boxHU:"\u2569",boxHu:"\u2567",boxhU:"\u2568",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxUL:"\u255D",boxUl:"\u255C",boxuL:"\u255B",boxul:"\u2518",boxUR:"\u255A",boxUr:"\u2559",boxuR:"\u2558",boxur:"\u2514",boxV:"\u2551",boxv:"\u2502",boxVH:"\u256C",boxVh:"\u256B",boxvH:"\u256A",boxvh:"\u253C",boxVL:"\u2563",boxVl:"\u2562",boxvL:"\u2561",boxvl:"\u2524",boxVR:"\u2560",boxVr:"\u255F",boxvR:"\u255E",boxvr:"\u251C",bprime:"\u2035",Breve:"\u02D8",breve:"\u02D8",brvbar:"\xA6",Bscr:"\u212C",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",Cap:"\u22D2",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",CenterDot:"\xB7",centerdot:"\xB7",Cfr:"\u212D",cfr:"\u{1D520}",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",cir:"\u25CB",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",Colon:"\u2237",colon:":",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",Conint:"\u222F",conint:"\u222E",ContourIntegral:"\u222E",Copf:"\u2102",copf:"\u{1D554}",coprod:"\u2210",Coproduct:"\u2210",COPY:"\xA9",copy:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",Cross:"\u2A2F",cross:"\u2717",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",Cup:"\u22D3",cup:"\u222A",cupbrcap:"\u2A48",CupCap:"\u224D",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",Dagger:"\u2021",dagger:"\u2020",daleth:"\u2138",Darr:"\u21A1",dArr:"\u21D3",darr:"\u2193",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",DD:"\u2145",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",Diamond:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",Downarrow:"\u21D3",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",ecir:"\u2256",Ecirc:"\xCA",ecirc:"\xEA",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",eDot:"\u2251",edot:"\u0117",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",Escr:"\u2130",escr:"\u212F",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",ExponentialE:"\u2147",exponentiale:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",ForAll:"\u2200",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",Fscr:"\u2131",fscr:"\u{1D4BB}",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",gE:"\u2267",ge:"\u2265",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",Gg:"\u22D9",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gl:"\u2277",gla:"\u2AA5",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gnE:"\u2269",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",Gt:"\u226B",GT:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",hArr:"\u21D4",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",Hfr:"\u210C",hfr:"\u{1D525}",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",Hopf:"\u210D",hopf:"\u{1D559}",horbar:"\u2015",HorizontalLine:"\u2500",Hscr:"\u210B",hscr:"\u{1D4BD}",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",Ifr:"\u2111",ifr:"\u{1D526}",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Im:"\u2111",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",Int:"\u222C",int:"\u222B",intcal:"\u22BA",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",Iscr:"\u2110",iscr:"\u{1D4BE}",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",Lang:"\u27EA",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",Larr:"\u219E",lArr:"\u21D0",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",lAtail:"\u291B",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lBarr:"\u290E",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",lE:"\u2266",le:"\u2264",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",Leftarrow:"\u21D0",leftarrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",Ll:"\u22D8",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lnE:"\u2268",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftarrow:"\u27F5",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",Lscr:"\u2112",lscr:"\u{1D4C1}",Lsh:"\u21B0",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",Lt:"\u226A",LT:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",Mscr:"\u2133",mscr:"\u{1D4C2}",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",neArr:"\u21D7",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` -`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlArr:"\u21CD",nlarr:"\u219A",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nLeftarrow:"\u21CD",nleftarrow:"\u219A",nLeftrightarrow:"\u21CE",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",nopf:"\u{1D55F}",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nRightarrow:"\u21CF",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nVDash:"\u22AF",nVdash:"\u22AE",nvDash:"\u22AD",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwArr:"\u21D6",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",Ocirc:"\xD4",ocirc:"\xF4",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",Or:"\u2A54",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",Otimes:"\u2A37",otimes:"\u2297",otimesas:"\u2A36",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",Popf:"\u2119",popf:"\u{1D561}",pound:"\xA3",Pr:"\u2ABB",pr:"\u227A",prap:"\u2AB7",prcue:"\u227C",prE:"\u2AB3",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",Prime:"\u2033",prime:"\u2032",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportion:"\u2237",Proportional:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",Qopf:"\u211A",qopf:"\u{1D562}",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",QUOT:'"',quot:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",Rang:"\u27EB",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",Rarr:"\u21A0",rArr:"\u21D2",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",rAtail:"\u291C",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",RBarr:"\u2910",rBarr:"\u290F",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",Re:"\u211C",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",REG:"\xAE",reg:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",Rfr:"\u211C",rfr:"\u{1D52F}",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",Rightarrow:"\u21D2",rightarrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",Ropf:"\u211D",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",Rscr:"\u211B",rscr:"\u{1D4C7}",Rsh:"\u21B1",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",Sc:"\u2ABC",sc:"\u227B",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",sccue:"\u227D",scE:"\u2AB4",sce:"\u2AB0",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",searhk:"\u2925",seArr:"\u21D8",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",Square:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",Sub:"\u22D0",sub:"\u2282",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",Subset:"\u22D0",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",Sum:"\u2211",sum:"\u2211",sung:"\u266A",Sup:"\u22D1",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",Supset:"\u22D1",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swArr:"\u21D9",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",Therefore:"\u2234",therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",thinsp:"\u2009",ThinSpace:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",Tilde:"\u223C",tilde:"\u02DC",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",TRADE:"\u2122",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",Uarr:"\u219F",uArr:"\u21D1",uarr:"\u2191",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrow:"\u2191",Uparrow:"\u21D1",uparrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",Updownarrow:"\u21D5",updownarrow:"\u2195",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",upsi:"\u03C5",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTee:"\u22A5",UpTeeArrow:"\u21A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",vArr:"\u21D5",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",Vbar:"\u2AEB",vBar:"\u2AE8",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",VDash:"\u22AB",Vdash:"\u22A9",vDash:"\u22A8",vdash:"\u22A2",Vdashl:"\u2AE6",Vee:"\u22C1",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",Verbar:"\u2016",verbar:"|",Vert:"\u2016",vert:"|",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",Wedge:"\u22C0",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",Xi:"\u039E",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",Yuml:"\u0178",yuml:"\xFF",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",Zfr:"\u2128",zfr:"\u{1D537}",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",Zopf:"\u2124",zopf:"\u{1D56B}",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}),V.entityMap=V.HTML_ENTITIES},3969:function(nt,V,m){var y,A=m(41146);y=A.DOMImplementation,V.B=A.XMLSerializer,m(86129)},76925:function(nt,V,m){var y=m(72167).NAMESPACE,A=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,b=new RegExp("[\\-\\.0-9"+A.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),z=new RegExp("^"+A.source+b.source+"*(?::"+A.source+b.source+"*)?$"),k=0,N=1,w=2,I=3,C=4,f=5,S=6,P=7;function j(xe,be){this.message=xe,this.locator=be,Error.captureStackTrace&&Error.captureStackTrace(this,j)}j.prototype=new Error,j.prototype.name=j.name;function re(){}re.prototype={parse:function(xe,be,Ie){var me=this.domBuilder;me.startDocument(),we(be,be={}),J(xe,be,Ie,me,this.errorHandler),me.endDocument()}};function J(xe,be,Ie,me,We){function Ce(Ct){if(Ct>65535){Ct-=65536;var jt=55296+(Ct>>10),on=56320+(Ct&1023);return String.fromCharCode(jt,on)}else return String.fromCharCode(Ct)}function Pt(Ct){var jt=Ct.slice(1,-1);return Object.hasOwnProperty.call(Ie,jt)?Ie[jt]:jt.charAt(0)==="#"?Ce(parseInt(jt.substr(1).replace("x","0x"))):(We.error("entity not found:"+Ct),Ct)}function ct(Ct){if(Ct>Er){var jt=xe.substring(Er,Ct).replace(/&#?\w+;/g,Pt);mt&&Ue(Er),me.characters(jt,0,Ct-Er),Er=Ct}}function Ue(Ct,jt){for(;Ct>=ht&&(jt=Bt.exec(xe));)bt=jt.index,ht=bt+jt[0].length,mt.lineNumber++;mt.columnNumber=Ct-bt+1}for(var bt=0,ht=0,Bt=/.*(?:\r\n?|\n)|.*$/g,mt=me.locator,_n=[{currentNSMap:be}],Bn={},Er=0;;){try{var Yr=xe.indexOf("<",Er);if(Yr<0){if(!xe.substr(Er).match(/^\s*$/)){var oi=me.doc,to=oi.createTextNode(xe.substr(Er));oi.appendChild(to),me.currentElement=to}return}switch(Yr>Er&&ct(Yr),xe.charAt(Yr+1)){case"/":var wi=xe.indexOf(">",Yr+3),yo=xe.substring(Yr+2,wi).replace(/[ \t\n\r]+$/g,""),vr=_n.pop();wi<0?(yo=xe.substring(Yr+2).replace(/[\s<].*/,""),We.error("end tag name: "+yo+" is not complete:"+vr.tagName),wi=Yr+1+yo.length):yo.match(/\sEr?Er=wi:ct(Math.max(Yr,Er)+1)}}function ie(xe,be){return be.lineNumber=xe.lineNumber,be.columnNumber=xe.columnNumber,be}function de(xe,be,Ie,me,We,Ce){function Pt(_n,Bn,Er){Ie.attributeNames.hasOwnProperty(_n)&&Ce.fatalError("Attribute "+_n+" redefined"),Ie.addValue(_n,Bn.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,We),Er)}for(var ct,Ue,bt=++be,ht=k;;){var Bt=xe.charAt(bt);switch(Bt){case"=":if(ht===N)ct=xe.slice(be,bt),ht=I;else if(ht===w)ht=I;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(ht===I||ht===N)if(ht===N&&(Ce.warning('attribute value must after "="'),ct=xe.slice(be,bt)),be=bt+1,bt=xe.indexOf(Bt,be),bt>0)Ue=xe.slice(be,bt),Pt(ct,Ue,be-1),ht=f;else throw new Error("attribute value no end '"+Bt+"' match");else if(ht==C)Ue=xe.slice(be,bt),Pt(ct,Ue,be),Ce.warning('attribute "'+ct+'" missed start quot('+Bt+")!!"),be=bt+1,ht=f;else throw new Error('attribute value must after "="');break;case"/":switch(ht){case k:Ie.setTagName(xe.slice(be,bt));case f:case S:case P:ht=P,Ie.closed=!0;case C:case N:break;case w:Ie.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return Ce.error("unexpected end of input"),ht==k&&Ie.setTagName(xe.slice(be,bt)),bt;case">":switch(ht){case k:Ie.setTagName(xe.slice(be,bt));case f:case S:case P:break;case C:case N:Ue=xe.slice(be,bt),Ue.slice(-1)==="/"&&(Ie.closed=!0,Ue=Ue.slice(0,-1));case w:ht===w&&(Ue=ct),ht==C?(Ce.warning('attribute "'+Ue+'" missed quot(")!'),Pt(ct,Ue,be)):((!y.isHTML(me[""])||!Ue.match(/^(?:disabled|checked|selected)$/i))&&Ce.warning('attribute "'+Ue+'" missed value!! "'+Ue+'" instead!!'),Pt(Ue,Ue,be));break;case I:throw new Error("attribute value missed!!")}return bt;case"\x80":Bt=" ";default:if(Bt<=" ")switch(ht){case k:Ie.setTagName(xe.slice(be,bt)),ht=S;break;case N:ct=xe.slice(be,bt),ht=w;break;case C:var Ue=xe.slice(be,bt);Ce.warning('attribute "'+Ue+'" missed quot(")!!'),Pt(ct,Ue,be);case f:ht=S;break}else switch(ht){case w:var mt=Ie.tagName;(!y.isHTML(me[""])||!ct.match(/^(?:disabled|checked|selected)$/i))&&Ce.warning('attribute "'+ct+'" missed value!! "'+ct+'" instead2!!'),Pt(ct,ct,be),be=bt,ht=N;break;case f:Ce.warning('attribute space is required"'+ct+'"!!');case S:ht=N,be=bt;break;case I:ht=C,be=bt;break;case P:throw new Error("elements closed character '/' and '>' must be connected to")}}bt++}}function he(xe,be,Ie){for(var me=xe.tagName,We=null,Bt=xe.length;Bt--;){var Ce=xe[Bt],Pt=Ce.qName,ct=Ce.value,mt=Pt.indexOf(":");if(mt>0)var Ue=Ce.prefix=Pt.slice(0,mt),bt=Pt.slice(mt+1),ht=Ue==="xmlns"&&bt;else bt=Pt,Ue=null,ht=Pt==="xmlns"&&"";Ce.localName=bt,ht!==!1&&(We==null&&(We={},we(Ie,Ie={})),Ie[ht]=We[ht]=ct,Ce.uri=y.XMLNS,be.startPrefixMapping(ht,ct))}for(var Bt=xe.length;Bt--;){Ce=xe[Bt];var Ue=Ce.prefix;Ue&&(Ue==="xml"&&(Ce.uri=y.XML),Ue!=="xmlns"&&(Ce.uri=Ie[Ue||""]))}var mt=me.indexOf(":");mt>0?(Ue=xe.prefix=me.slice(0,mt),bt=xe.localName=me.slice(mt+1)):(Ue=null,bt=xe.localName=me);var _n=xe.uri=Ie[Ue||""];if(be.startElement(_n,bt,me,xe),xe.closed){if(be.endElement(_n,bt,me),We)for(Ue in We)Object.prototype.hasOwnProperty.call(We,Ue)&&be.endPrefixMapping(Ue)}else return xe.currentNSMap=Ie,xe.localNSMap=We,!0}function fe(xe,be,Ie,me,We){if(/^(?:script|textarea)$/i.test(Ie)){var Ce=xe.indexOf("",be),Pt=xe.substring(be+1,Ce);if(/[&<]/.test(Pt))return/^script$/i.test(Ie)?(We.characters(Pt,0,Pt.length),Ce):(Pt=Pt.replace(/&#?\w+;/g,me),We.characters(Pt,0,Pt.length),Ce)}return be+1}function ke(xe,be,Ie,me){var We=me[Ie];return We==null&&(We=xe.lastIndexOf(""),We",be+4);return Ce>be?(Ie.comment(xe,be+4,Ce-be-4),Ce+3):(me.error("Unclosed comment"),-1)}else return-1;default:if(xe.substr(be+3,6)=="CDATA["){var Ce=xe.indexOf("]]>",be+9);return Ie.startCDATA(),Ie.characters(xe,be+9,Ce-be-9),Ie.endCDATA(),Ce+3}var Pt=ye(xe,be),ct=Pt.length;if(ct>1&&/!doctype/i.test(Pt[0][0])){var Ue=Pt[1][0],bt=!1,ht=!1;ct>3&&(/^public$/i.test(Pt[2][0])?(bt=Pt[3][0],ht=ct>4&&Pt[4][0]):/^system$/i.test(Pt[2][0])&&(ht=Pt[3][0]));var Bt=Pt[ct-1];return Ie.startDTD(Ue,bt,ht),Ie.endDTD(),Bt.index+Bt[0].length}}return-1}function Ee(xe,be,Ie){var me=xe.indexOf("?>",be);if(me){var We=xe.substring(be,me).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(We){var Ce=We[0].length;return Ie.processingInstruction(We[1],We[2]),me+2}else return-1}return-1}function ge(){this.attributeNames={}}ge.prototype={setTagName:function(xe){if(!z.test(xe))throw new Error("invalid tagName:"+xe);this.tagName=xe},addValue:function(xe,be,Ie){if(!z.test(xe))throw new Error("invalid attribute:"+xe);this.attributeNames[xe]=this.length,this[this.length++]={qName:xe,value:be,offset:Ie}},length:0,getLocalName:function(xe){return this[xe].localName},getLocator:function(xe){return this[xe].locator},getQName:function(xe){return this[xe].qName},getURI:function(xe){return this[xe].uri},getValue:function(xe){return this[xe].value}};function ye(xe,be){var Ie,me=[],We=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(We.lastIndex=be,We.exec(xe);Ie=We.exec(xe);)if(me.push(Ie),Ie[1])return me}V.XMLReader=re,V.ParseError=j},2093:function(nt,V,m){"use strict";var y=m(97582),A=m(67294),b=m(92770);function z(N){return(0,b.mf)(N[Symbol.asyncIterator])}function k(N,w){(0,A.useEffect)(function(){var I=N(),C=!1;function f(){return(0,y.mG)(this,void 0,void 0,function(){var S;return(0,y.Jh)(this,function(P){switch(P.label){case 0:if(!z(I))return[3,4];P.label=1;case 1:return[4,I.next()];case 2:return S=P.sent(),S.done||C?[3,3]:[3,1];case 3:return[3,6];case 4:return[4,I];case 5:P.sent(),P.label=6;case 6:return[2]}})})}return f(),function(){C=!0}},w)}V.Z=k},8527:function(nt,V,m){"use strict";var y=m(97582),A=m(67294),b=m(85980),z=m(77598);function k(N,w,I){var C=(0,y.CR)((0,A.useState)({}),2),f=C[0],S=C[1],P=(0,b.Z)(function(){S({})},I).run;(0,A.useEffect)(function(){return P()},w),(0,z.Z)(N,[f])}V.Z=k},85980:function(nt,V,m){"use strict";var y=m(97582),A=m(23279),b=m.n(A),z=m(67294),k=m(3930),N=m(45210),w=m(92770),I=m(31663);function C(f,S){var P;I.Z&&((0,w.mf)(f)||console.error("useDebounceFn expected parameter is a function, got ".concat(typeof f)));var j=(0,k.Z)(f),re=(P=S==null?void 0:S.wait)!==null&&P!==void 0?P:1e3,J=(0,z.useMemo)(function(){return b()(function(){for(var ie=[],de=0;de{const{type:I,children:C,prefixCls:f,buttonProps:S,close:P,autoFocus:j,emitEvent:re,isSilent:J,quitOnNullishReturnValue:ie,actionFn:de}=w,he=A.useRef(!1),fe=A.useRef(null),[ke,we]=(0,y.Z)(!1),Ne=function(){P==null||P.apply(void 0,arguments)};A.useEffect(()=>{let ye=null;return j&&(ye=setTimeout(()=>{var xe;(xe=fe.current)===null||xe===void 0||xe.focus()})),()=>{ye&&clearTimeout(ye)}},[]);const Ee=ye=>{k(ye)&&(we(!0),ye.then(function(){we(!1,!0),Ne.apply(void 0,arguments),he.current=!1},xe=>{if(we(!1,!0),he.current=!1,!(J!=null&&J()))return Promise.reject(xe)}))},ge=ye=>{if(he.current)return;if(he.current=!0,!de){Ne();return}let xe;if(re){if(xe=de(ye),ie&&!k(xe)){he.current=!1,Ne(ye);return}}else if(de.length)xe=de(P),he.current=!1;else if(xe=de(),!xe){Ne();return}Ee(xe)};return A.createElement(b.ZP,Object.assign({},(0,z.nx)(I),{onClick:ge,loading:ke,prefixCls:f},S,{ref:fe}),C)};V.Z=N},8745:function(nt,V,m){"use strict";m.d(V,{Z:function(){return N},i:function(){return k}});var y=m(21770),A=m(67294),b=m(94740),z=m(53124);function k(w){return function(C){return A.createElement(b.ZP,{theme:{token:{motion:!1,zIndexPopupBase:0}}},A.createElement(w,Object.assign({},C)))}}function N(w,I,C,f){function S(P){const{prefixCls:j,style:re}=P,J=A.useRef(null),[ie,de]=A.useState(0),[he,fe]=A.useState(0),[ke,we]=(0,y.Z)(!1,{value:P.open}),{getPrefixCls:Ne}=A.useContext(z.E_),Ee=Ne(I||"select",j);A.useEffect(()=>{if(we(!0),typeof ResizeObserver!="undefined"){const ye=new ResizeObserver(be=>{const Ie=be[0].target;de(Ie.offsetHeight+8),fe(Ie.offsetWidth)}),xe=setInterval(()=>{var be;const Ie=C?`.${C(Ee)}`:`.${Ee}-dropdown`,me=(be=J.current)===null||be===void 0?void 0:be.querySelector(Ie);me&&(clearInterval(xe),ye.observe(me))},10);return()=>{clearInterval(xe),ye.disconnect()}}},[]);let ge=Object.assign(Object.assign({},P),{style:Object.assign(Object.assign({},re),{margin:0}),open:ke,visible:ke,getPopupContainer:()=>J.current});return f&&(ge=f(ge)),A.createElement("div",{ref:J,style:{paddingBottom:ie,position:"relative",minWidth:he}},A.createElement(w,Object.assign({},ge)))}return k(S)}},81643:function(nt,V,m){"use strict";m.d(V,{Z:function(){return y}});const y=A=>A?typeof A=="function"?A():A:null},69760:function(nt,V,m){"use strict";m.d(V,{Z:function(){return z}});var y=m(62208),A=m(67294);function b(k,N,w){return typeof k=="boolean"?k:N===void 0?!!w:N!==!1&&N!==null}function z(k,N,w){let I=arguments.length>3&&arguments[3]!==void 0?arguments[3]:A.createElement(y.Z,null),C=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!b(k,N,C))return[!1,null];const S=typeof N=="boolean"||N===void 0||N===null?I:N;return[!0,w?w(S):S]}},57838:function(nt,V,m){"use strict";m.d(V,{Z:function(){return A}});var y=m(67294);function A(){const[,b]=y.useReducer(z=>z+1,0);return b}},33603:function(nt,V,m){"use strict";m.d(V,{m:function(){return w}});const y=()=>({height:0,opacity:0}),A=I=>{const{scrollHeight:C}=I;return{height:C,opacity:1}},b=I=>({height:I?I.offsetHeight:0}),z=(I,C)=>(C==null?void 0:C.deadline)===!0||C.propertyName==="height",k=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:y,onEnterStart:y,onAppearActive:A,onEnterActive:A,onLeaveStart:b,onLeaveActive:y,onAppearEnd:z,onEnterEnd:z,onLeaveEnd:z,motionDeadline:500}},N=null,w=(I,C,f)=>f!==void 0?f:`${I}-${C}`;V.Z=k},80636:function(nt,V,m){"use strict";m.d(V,{Z:function(){return N}});var y=m(77786);function A(w,I,C,f){if(f===!1)return{adjustX:!1,adjustY:!1};const S=f&&typeof f=="object"?f:{},P={};switch(w){case"top":case"bottom":P.shiftX=I.dropdownArrowOffset*2+C,P.shiftY=!0,P.adjustY=!0;break;case"left":case"right":P.shiftY=I.dropdownArrowOffsetVertical*2+C,P.shiftX=!0,P.adjustX=!0;break}const j=Object.assign(Object.assign({},P),S);return j.shiftX||(j.adjustX=!0),j.shiftY||(j.adjustY=!0),j}const b={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},z={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},k=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function N(w){const{arrowWidth:I,autoAdjustOverflow:C,arrowPointAtCenter:f,offset:S,borderRadius:P,visibleFirst:j}=w,re=I/2,J={};return Object.keys(b).forEach(ie=>{const de=f&&z[ie]||b[ie],he=Object.assign(Object.assign({},de),{offset:[0,0],dynamicInset:!0});switch(J[ie]=he,k.has(ie)&&(he.autoArrow=!1),ie){case"top":case"topLeft":case"topRight":he.offset[1]=-re-S;break;case"bottom":case"bottomLeft":case"bottomRight":he.offset[1]=re+S;break;case"left":case"leftTop":case"leftBottom":he.offset[0]=-re-S;break;case"right":case"rightTop":case"rightBottom":he.offset[0]=re+S;break}const fe=(0,y.fS)({contentRadius:P,limitVerticalRadius:!0});if(f)switch(ie){case"topLeft":case"bottomLeft":he.offset[0]=-fe.dropdownArrowOffset-re;break;case"topRight":case"bottomRight":he.offset[0]=fe.dropdownArrowOffset+re;break;case"leftTop":case"rightTop":he.offset[1]=-fe.dropdownArrowOffset-re;break;case"leftBottom":case"rightBottom":he.offset[1]=fe.dropdownArrowOffset+re;break}he.overflow=A(ie,fe,I,C),j&&(he.htmlRegion="visibleFirst")}),J}},96159:function(nt,V,m){"use strict";var y;m.d(V,{M2:function(){return z},Tm:function(){return N},l$:function(){return b}});var A=m(67294);const{isValidElement:b}=y||(y=m.t(A,2));function z(w){return w&&b(w)&&w.type===A.Fragment}function k(w,I,C){return b(w)?A.cloneElement(w,typeof C=="function"?C(w.props||{}):C):I}function N(w,I){return k(w,w,I)}},74443:function(nt,V,m){"use strict";m.d(V,{ZP:function(){return N},c4:function(){return b},m9:function(){return w}});var y=m(67294),A=m(25976);const b=["xxl","xl","lg","md","sm","xs"],z=I=>({xs:`(max-width: ${I.screenXSMax}px)`,sm:`(min-width: ${I.screenSM}px)`,md:`(min-width: ${I.screenMD}px)`,lg:`(min-width: ${I.screenLG}px)`,xl:`(min-width: ${I.screenXL}px)`,xxl:`(min-width: ${I.screenXXL}px)`}),k=I=>{const C=I,f=[].concat(b).reverse();return f.forEach((S,P)=>{const j=S.toUpperCase(),re=`screen${j}Min`,J=`screen${j}`;if(!(C[re]<=C[J]))throw new Error(`${re}<=${J} fails : !(${C[re]}<=${C[J]})`);if(P{const f=new Map;let S=-1,P={};return{matchHandlers:{},dispatch(j){return P=j,f.forEach(re=>re(P)),f.size>=1},subscribe(j){return f.size||this.register(),S+=1,f.set(S,j),j(P),S},unsubscribe(j){f.delete(j),f.size||this.unregister()},unregister(){Object.keys(C).forEach(j=>{const re=C[j],J=this.matchHandlers[re];J==null||J.mql.removeListener(J==null?void 0:J.listener)}),f.clear()},register(){Object.keys(C).forEach(j=>{const re=C[j],J=de=>{let{matches:he}=de;this.dispatch(Object.assign(Object.assign({},P),{[j]:he}))},ie=window.matchMedia(re);ie.addListener(J),this.matchHandlers[re]={mql:ie,listener:J},J(ie)})},responsiveMap:C}},[I])}const w=(I,C)=>{if(C&&typeof C=="object")for(let f=0;fw||N},27288:function(nt,V,m){"use strict";m.d(V,{G8:function(){return w},ln:function(){return I}});var y=m(67294),A=m(80334);function b(){}let z=null;function k(){z=null,rcResetWarned()}let N=null;const w=y.createContext({}),I=()=>{const f=()=>{};return f.deprecated=b,f};var C=null},45353:function(nt,V,m){"use strict";m.d(V,{Z:function(){return xe}});var y=m(94184),A=m.n(y),b=m(42550),z=m(5110),k=m(67294),N=m(53124),w=m(96159),I=m(67968);const C=be=>{const{componentCls:Ie,colorPrimary:me}=be;return{[Ie]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${me})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${be.motionEaseOutCirc}`,`opacity 2s ${be.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${be.motionEaseInOut}`,`opacity 0.35s ${be.motionEaseInOut}`].join(",")}}}}};var f=(0,I.Z)("Wave",be=>[C(be)]),S=m(56790),P=m(75164),j=m(82225),re=m(38135);function J(be){const Ie=(be||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return Ie&&Ie[1]&&Ie[2]&&Ie[3]?!(Ie[1]===Ie[2]&&Ie[2]===Ie[3]):!0}function ie(be){return be&&be!=="#fff"&&be!=="#ffffff"&&be!=="rgb(255, 255, 255)"&&be!=="rgba(255, 255, 255, 1)"&&J(be)&&!/rgba\((?:\d*, ){3}0\)/.test(be)&&be!=="transparent"}function de(be){const{borderTopColor:Ie,borderColor:me,backgroundColor:We}=getComputedStyle(be);return ie(Ie)?Ie:ie(me)?me:ie(We)?We:null}var he=m(17415);function fe(be){return Number.isNaN(be)?0:be}const ke=be=>{const{className:Ie,target:me,component:We}=be,Ce=k.useRef(null),[Pt,ct]=k.useState(null),[Ue,bt]=k.useState([]),[ht,Bt]=k.useState(0),[mt,_n]=k.useState(0),[Bn,Er]=k.useState(0),[Yr,oi]=k.useState(0),[to,yo]=k.useState(!1),vr={left:ht,top:mt,width:Bn,height:Yr,borderRadius:Ue.map(ve=>`${ve}px`).join(" ")};Pt&&(vr["--wave-color"]=Pt);function Po(){const ve=getComputedStyle(me);ct(de(me));const _o=ve.position==="static",{borderLeftWidth:ci,borderTopWidth:Bi}=ve;Bt(_o?me.offsetLeft:fe(-parseFloat(ci))),_n(_o?me.offsetTop:fe(-parseFloat(Bi))),Er(me.offsetWidth),oi(me.offsetHeight);const{borderTopLeftRadius:wi,borderTopRightRadius:io,borderBottomLeftRadius:ln,borderBottomRightRadius:Ve}=ve;bt([wi,io,Ve,ln].map(_t=>fe(parseFloat(_t))))}if(k.useEffect(()=>{if(me){const ve=(0,P.Z)(()=>{Po(),yo(!0)});let _o;return typeof ResizeObserver!="undefined"&&(_o=new ResizeObserver(Po),_o.observe(me)),()=>{P.Z.cancel(ve),_o==null||_o.disconnect()}}},[]),!to)return null;const ss=(We==="Checkbox"||We==="Radio")&&(me==null?void 0:me.classList.contains(he.A));return k.createElement(j.ZP,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(ve,_o)=>{var ci;if(_o.deadline||_o.propertyName==="opacity"){const Bi=(ci=Ce.current)===null||ci===void 0?void 0:ci.parentElement;(0,re.v)(Bi).then(()=>{Bi==null||Bi.remove()})}return!1}},ve=>{let{className:_o}=ve;return k.createElement("div",{ref:Ce,className:A()(Ie,{"wave-quick":ss},_o),style:vr})})};var Ne=(be,Ie)=>{var me;const{component:We}=Ie;if(We==="Checkbox"&&!(!((me=be.querySelector("input"))===null||me===void 0)&&me.checked))return;const Ce=document.createElement("div");Ce.style.position="absolute",Ce.style.left="0px",Ce.style.top="0px",be==null||be.insertBefore(Ce,be==null?void 0:be.firstChild),(0,re.s)(k.createElement(ke,Object.assign({},Ie,{target:be})),Ce)},Ee=m(25976);function ge(be,Ie,me){const{wave:We}=k.useContext(N.E_),[,Ce,Pt]=(0,Ee.Z)(),ct=(0,S.zX)(ht=>{const Bt=be.current;if(We!=null&&We.disabled||!Bt)return;const mt=Bt.querySelector(`.${he.A}`)||Bt,{showEffect:_n}=We||{};(_n||Ne)(mt,{className:Ie,token:Ce,component:me,event:ht,hashId:Pt})}),Ue=k.useRef();return ht=>{P.Z.cancel(Ue.current),Ue.current=(0,P.Z)(()=>{ct(ht)})}}var xe=be=>{const{children:Ie,disabled:me,component:We}=be,{getPrefixCls:Ce}=(0,k.useContext)(N.E_),Pt=(0,k.useRef)(null),ct=Ce("wave"),[,Ue]=f(ct),bt=ge(Pt,A()(ct,Ue),We);if(k.useEffect(()=>{const Bt=Pt.current;if(!Bt||Bt.nodeType!==1||me)return;const mt=_n=>{!(0,z.Z)(_n.target)||!Bt.getAttribute||Bt.getAttribute("disabled")||Bt.disabled||Bt.className.includes("disabled")||Bt.className.includes("-leave")||bt(_n)};return Bt.addEventListener("click",mt,!0),()=>{Bt.removeEventListener("click",mt,!0)}},[me]),!k.isValidElement(Ie))return Ie!=null?Ie:null;const ht=(0,b.Yr)(Ie)?(0,b.sQ)(Ie.ref,Pt):Pt;return(0,w.Tm)(Ie,{ref:ht})}},17415:function(nt,V,m){"use strict";m.d(V,{A:function(){return y}});const y="ant-wave-target"},33671:function(nt,V,m){"use strict";m.d(V,{Te:function(){return w},aG:function(){return z},hU:function(){return C},nx:function(){return k}});var y=m(67294),A=m(96159);const b=/^[\u4e00-\u9fa5]{2}$/,z=b.test.bind(b);function k(j){return j==="danger"?{danger:!0}:{type:j}}function N(j){return typeof j=="string"}function w(j){return j==="text"||j==="link"}function I(j,re){if(j==null)return;const J=re?" ":"";return typeof j!="string"&&typeof j!="number"&&N(j.type)&&z(j.props.children)?(0,A.Tm)(j,{children:j.props.children.split("").join(J)}):N(j)?z(j)?y.createElement("span",null,j.split("").join(J)):y.createElement("span",null,j):(0,A.M2)(j)?y.createElement("span",null,j):j}function C(j,re){let J=!1;const ie=[];return y.Children.forEach(j,de=>{const he=typeof de,fe=he==="string"||he==="number";if(J&&fe){const ke=ie.length-1,we=ie[ke];ie[ke]=`${we}${de}`}else ie.push(de);J=fe}),y.Children.map(ie,de=>I(de,re))}const f=null,S=null,P=null},15867:function(nt,V,m){"use strict";m.d(V,{ZP:function(){return Zn}});var y=m(67294),A=m(94184),b=m.n(A),z=m(98423),k=m(42550),N=m(45353),w=m(53124),I=m(98866),C=m(98675),f=m(4173),S=m(25976),P=function(tn,hr){var Zi={};for(var Ri in tn)Object.prototype.hasOwnProperty.call(tn,Ri)&&hr.indexOf(Ri)<0&&(Zi[Ri]=tn[Ri]);if(tn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pi=0,Ri=Object.getOwnPropertySymbols(tn);Pi{const{getPrefixCls:hr,direction:Zi}=y.useContext(w.E_),{prefixCls:Ri,size:Pi,className:$o}=tn,ys=P(tn,["prefixCls","size","className"]),xn=hr("btn-group",Ri),[,,Hr]=(0,S.Z)();let Jr="";switch(Pi){case"large":Jr="lg";break;case"small":Jr="sm";break;case"middle":default:}const Yi=b()(xn,{[`${xn}-${Jr}`]:Jr,[`${xn}-rtl`]:Zi==="rtl"},$o,Hr);return y.createElement(j.Provider,{value:Pi},y.createElement("div",Object.assign({},ys,{className:Yi})))},ie=m(33671),he=(0,y.forwardRef)((tn,hr)=>{const{className:Zi,style:Ri,children:Pi,prefixCls:$o}=tn,ys=b()(`${$o}-icon`,Zi);return y.createElement("span",{ref:hr,className:ys,style:Ri},Pi)}),fe=m(22508),ke=m(82225);const we=(0,y.forwardRef)((tn,hr)=>{let{prefixCls:Zi,className:Ri,style:Pi,iconClassName:$o}=tn;const ys=b()(`${Zi}-loading-icon`,Ri);return y.createElement(he,{prefixCls:Zi,className:ys,style:Pi,ref:hr},y.createElement(fe.Z,{className:$o}))}),Ne=()=>({width:0,opacity:0,transform:"scale(0)"}),Ee=tn=>({width:tn.scrollWidth,opacity:1,transform:"scale(1)"});var ye=tn=>{const{prefixCls:hr,loading:Zi,existIcon:Ri,className:Pi,style:$o}=tn,ys=!!Zi;return Ri?y.createElement(we,{prefixCls:hr,className:Pi,style:$o}):y.createElement(ke.ZP,{visible:ys,motionName:`${hr}-loading-icon-motion`,motionLeave:ys,removeOnLeave:!0,onAppearStart:Ne,onAppearActive:Ee,onEnterStart:Ne,onEnterActive:Ee,onLeaveStart:Ee,onLeaveActive:Ne},(xn,Hr)=>{let{className:Jr,style:Yi}=xn;return y.createElement(we,{prefixCls:hr,className:Pi,style:Object.assign(Object.assign({},$o),Yi),ref:Hr,iconClassName:Jr})})},xe=m(14747),be=m(45503),Ie=m(67968);const me=(tn,hr)=>({[`> span, > ${tn}`]:{"&:not(:last-child)":{[`&, & > ${tn}`]:{"&:not(:disabled)":{borderInlineEndColor:hr}}},"&:not(:first-child)":{[`&, & > ${tn}`]:{"&:not(:disabled)":{borderInlineStartColor:hr}}}}});var Ce=tn=>{const{componentCls:hr,fontSize:Zi,lineWidth:Ri,groupBorderColor:Pi,colorErrorHover:$o}=tn;return{[`${hr}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${hr}`]:{"&:not(:last-child)":{[`&, & > ${hr}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-Ri,[`&, & > ${hr}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[hr]:{position:"relative",zIndex:1,[`&:hover, +`)}function S(he){this.options=he||{locator:{}}}S.prototype.parseFromString=function(he,fe){var Be=this.options,Ie=new C,We=Be.domBuilder||new W,De=Be.errorHandler,ve=Be.locator,ye=Be.xmlns||{},we=/\/x?html?$/.test(fe),Ce=we?z.HTML_ENTITIES:z.XML_ENTITIES;ve&&We.setDocumentLocator(ve),Ie.errorHandler=P(De,We,ve),Ie.domBuilder=Be.domBuilder||We,we&&(ye[""]=w.HTML),ye.xml=ye.xml||w.XML;var Ae=Be.normalizeLineEndings||f;return he&&typeof he=="string"?Ie.parse(Ae(he),ye,Ce):Ie.errorHandler.error("invalid doc source"),We.doc};function P(he,fe,Be){if(!he){if(fe instanceof W)return fe;he=fe}var Ie={},We=he instanceof Function;Be=Be||{};function De(ve){var ye=he[ve];!ye&&We&&(ye=he.length==2?function(we){he(ve,we)}:he),Ie[ve]=ye&&function(we){ye("[xmldom "+ve+"] "+we+re(Be))}||function(){}}return De("warning"),De("error"),De("fatalError"),Ie}function W(){this.cdata=!1}function ne(he,fe){fe.lineNumber=he.lineNumber,fe.columnNumber=he.columnNumber}W.prototype={startDocument:function(){this.doc=new N().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(he,fe,Be,Ie){var We=this.doc,De=We.createElementNS(he,Be||fe),ve=Ie.length;pe(this,De),this.currentElement=De,this.locator&&ne(this.locator,De);for(var ye=0;ye=fe+Be||fe?new java.lang.String(he,fe,Be)+"":he}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(he){W.prototype[he]=function(){return null}});function pe(he,fe){he.currentElement?he.currentElement.appendChild(fe):he.doc.appendChild(fe)}y=W,y=f,y=S},32706:function(nt,V,m){var y=m(18859),I=y.find,b=y.NAMESPACE;function z(zt){return zt!==""}function k(zt){return zt?zt.split(/[\t\n\f\r ]+/).filter(z):[]}function N(zt,pn){return zt.hasOwnProperty(pn)||(zt[pn]=!0),zt}function w(zt){if(!zt)return[];var pn=k(zt);return Object.keys(pn.reduce(N,{}))}function A(zt){return function(pn){return zt&&zt.indexOf(pn)!==-1}}function C(zt,pn){for(var br in zt)Object.prototype.hasOwnProperty.call(zt,br)&&(pn[br]=zt[br])}function f(zt,pn){var br=zt.prototype;if(!(br instanceof pn)){let ui=function(){};var Gr=ui;ui.prototype=pn.prototype,ui=new ui,C(br,ui),zt.prototype=br=ui}br.constructor!=zt&&(typeof zt!="function"&&console.error("unknown Class:"+zt),br.constructor=zt)}var S={},P=S.ELEMENT_NODE=1,W=S.ATTRIBUTE_NODE=2,ne=S.TEXT_NODE=3,re=S.CDATA_SECTION_NODE=4,ce=S.ENTITY_REFERENCE_NODE=5,pe=S.ENTITY_NODE=6,he=S.PROCESSING_INSTRUCTION_NODE=7,fe=S.COMMENT_NODE=8,Be=S.DOCUMENT_NODE=9,Ie=S.DOCUMENT_TYPE_NODE=10,We=S.DOCUMENT_FRAGMENT_NODE=11,De=S.NOTATION_NODE=12,ve={},ye={},we=ve.INDEX_SIZE_ERR=(ye[1]="Index size error",1),Ce=ve.DOMSTRING_SIZE_ERR=(ye[2]="DOMString size error",2),Ae=ve.HIERARCHY_REQUEST_ERR=(ye[3]="Hierarchy request error",3),me=ve.WRONG_DOCUMENT_ERR=(ye[4]="Wrong document",4),je=ve.INVALID_CHARACTER_ERR=(ye[5]="Invalid character",5),xe=ve.NO_DATA_ALLOWED_ERR=(ye[6]="No data allowed",6),Pt=ve.NO_MODIFICATION_ALLOWED_ERR=(ye[7]="No modification allowed",7),ct=ve.NOT_FOUND_ERR=(ye[8]="Not found",8),He=ve.NOT_SUPPORTED_ERR=(ye[9]="Not supported",9),wt=ve.INUSE_ATTRIBUTE_ERR=(ye[10]="Attribute in use",10),dt=ve.INVALID_STATE_ERR=(ye[11]="Invalid state",11),Bt=ve.SYNTAX_ERR=(ye[12]="Syntax error",12),gt=ve.INVALID_MODIFICATION_ERR=(ye[13]="Invalid modification",13),_n=ve.NAMESPACE_ERR=(ye[14]="Invalid namespace",14),Bn=ve.INVALID_ACCESS_ERR=(ye[15]="Invalid access",15);function Er(zt,pn){if(pn instanceof Error)var br=pn;else br=this,Error.call(this,ye[zt]),this.message=ye[zt],Error.captureStackTrace&&Error.captureStackTrace(this,Er);return br.code=zt,pn&&(this.message=this.message+": "+pn),br}Er.prototype=Error.prototype,C(ve,Er);function Yr(){}Yr.prototype={length:0,item:function(zt){return zt>=0&&zt=0){for(var ui=pn.length-1;Gr0},lookupPrefix:function(zt){for(var pn=this;pn;){var br=pn._nsMap;if(br){for(var Gr in br)if(Object.prototype.hasOwnProperty.call(br,Gr)&&br[Gr]===zt)return Gr}pn=pn.nodeType==W?pn.ownerDocument:pn.parentNode}return null},lookupNamespaceURI:function(zt){for(var pn=this;pn;){var br=pn._nsMap;if(br&&Object.prototype.hasOwnProperty.call(br,zt))return br[zt];pn=pn.nodeType==W?pn.ownerDocument:pn.parentNode}return null},isDefaultNamespace:function(zt){var pn=this.lookupPrefix(zt);return pn==null}};function ci(zt){return zt=="<"&&"<"||zt==">"&&">"||zt=="&"&&"&"||zt=='"'&&"""||"&#"+zt.charCodeAt()+";"}C(S,_o),C(S,_o.prototype);function Bi(zt,pn){if(pn(zt))return!0;if(zt=zt.firstChild)do if(Bi(zt,pn))return!0;while(zt=zt.nextSibling)}function Ci(){this.ownerDocument=this}function io(zt,pn,br){zt&&zt._inc++;var Gr=br.namespaceURI;Gr===b.XMLNS&&(pn._nsMap[br.prefix?br.localName:""]=br.value)}function ln(zt,pn,br,Gr){zt&&zt._inc++;var ui=br.namespaceURI;ui===b.XMLNS&&delete pn._nsMap[br.prefix?br.localName:""]}function Ve(zt,pn,br){if(zt&&zt._inc){zt._inc++;var Gr=pn.childNodes;if(br)Gr[Gr.length++]=br;else{for(var ui=pn.firstChild,xi=0;ui;)Gr[xi++]=ui,ui=ui.nextSibling;Gr.length=xi,delete Gr[Gr.length]}}}function _t(zt,pn){var br=pn.previousSibling,Gr=pn.nextSibling;return br?br.nextSibling=Gr:zt.firstChild=Gr,Gr?Gr.previousSibling=br:zt.lastChild=br,pn.parentNode=null,pn.previousSibling=null,pn.nextSibling=null,Ve(zt.ownerDocument,zt),pn}function xt(zt){return zt&&(zt.nodeType===_o.DOCUMENT_NODE||zt.nodeType===_o.DOCUMENT_FRAGMENT_NODE||zt.nodeType===_o.ELEMENT_NODE)}function Wt(zt){return zt&&(Ot(zt)||Tt(zt)||on(zt)||zt.nodeType===_o.DOCUMENT_FRAGMENT_NODE||zt.nodeType===_o.COMMENT_NODE||zt.nodeType===_o.PROCESSING_INSTRUCTION_NODE)}function on(zt){return zt&&zt.nodeType===_o.DOCUMENT_TYPE_NODE}function Ot(zt){return zt&&zt.nodeType===_o.ELEMENT_NODE}function Tt(zt){return zt&&zt.nodeType===_o.TEXT_NODE}function bt(zt,pn){var br=zt.childNodes||[];if(I(br,Ot)||on(pn))return!1;var Gr=I(br,on);return!(pn&&Gr&&br.indexOf(Gr)>br.indexOf(pn))}function Ht(zt,pn){var br=zt.childNodes||[];function Gr(xi){return Ot(xi)&&xi!==pn}if(I(br,Gr))return!1;var ui=I(br,on);return!(pn&&ui&&br.indexOf(ui)>br.indexOf(pn))}function Wn(zt,pn,br){if(!xt(zt))throw new Er(Ae,"Unexpected parent node type "+zt.nodeType);if(br&&br.parentNode!==zt)throw new Er(ct,"child not in parent");if(!Wt(pn)||on(pn)&&zt.nodeType!==_o.DOCUMENT_NODE)throw new Er(Ae,"Unexpected node type "+pn.nodeType+" for parent node type "+zt.nodeType)}function tn(zt,pn,br){var Gr=zt.childNodes||[],ui=pn.childNodes||[];if(pn.nodeType===_o.DOCUMENT_FRAGMENT_NODE){var xi=ui.filter(Ot);if(xi.length>1||I(ui,Tt))throw new Er(Ae,"More than one element or text in fragment");if(xi.length===1&&!bt(zt,br))throw new Er(Ae,"Element in fragment can not be inserted before doctype")}if(Ot(pn)&&!bt(zt,br))throw new Er(Ae,"Only one element can be added and only after doctype");if(on(pn)){if(I(Gr,on))throw new Er(Ae,"Only one doctype is allowed");var lo=I(Gr,Ot);if(br&&Gr.indexOf(lo)1||I(ui,Tt))throw new Er(Ae,"More than one element or text in fragment");if(xi.length===1&&!Ht(zt,br))throw new Er(Ae,"Element in fragment can not be inserted before doctype")}if(Ot(pn)&&!Ht(zt,br))throw new Er(Ae,"Only one element can be added and only after doctype");if(on(pn)){let ti=function(ji){return on(ji)&&ji!==br};var Kr=ti;if(I(Gr,ti))throw new Er(Ae,"Only one doctype is allowed");var lo=I(Gr,Ot);if(br&&Gr.indexOf(lo)0&&Bi(br.documentElement,function(ui){if(ui!==br&&ui.nodeType===P){var xi=ui.getAttribute("class");if(xi){var lo=zt===xi;if(!lo){var Kr=w(xi);lo=pn.every(A(Kr))}lo&&Gr.push(ui)}}}),Gr})},createElement:function(zt){var pn=new Pi;pn.ownerDocument=this,pn.nodeName=zt,pn.tagName=zt,pn.localName=zt,pn.childNodes=new Yr;var br=pn.attributes=new yo;return br._ownerElement=pn,pn},createDocumentFragment:function(){var zt=new Xn;return zt.ownerDocument=this,zt.childNodes=new Yr,zt},createTextNode:function(zt){var pn=new xn;return pn.ownerDocument=this,pn.appendData(zt),pn},createComment:function(zt){var pn=new Hr;return pn.ownerDocument=this,pn.appendData(zt),pn},createCDATASection:function(zt){var pn=new Jr;return pn.ownerDocument=this,pn.appendData(zt),pn},createProcessingInstruction:function(zt,pn){var br=new Mr;return br.ownerDocument=this,br.tagName=br.nodeName=br.target=zt,br.nodeValue=br.data=pn,br},createAttribute:function(zt){var pn=new Wo;return pn.ownerDocument=this,pn.name=zt,pn.nodeName=zt,pn.localName=zt,pn.specified=!0,pn},createEntityReference:function(zt){var pn=new Un;return pn.ownerDocument=this,pn.nodeName=zt,pn},createElementNS:function(zt,pn){var br=new Pi,Gr=pn.split(":"),ui=br.attributes=new yo;return br.childNodes=new Yr,br.ownerDocument=this,br.nodeName=pn,br.tagName=pn,br.namespaceURI=zt,Gr.length==2?(br.prefix=Gr[0],br.localName=Gr[1]):br.localName=pn,ui._ownerElement=br,br},createAttributeNS:function(zt,pn){var br=new Wo,Gr=pn.split(":");return br.ownerDocument=this,br.nodeName=pn,br.name=pn,br.namespaceURI=zt,br.specified=!0,Gr.length==2?(br.prefix=Gr[0],br.localName=Gr[1]):br.localName=pn,br}},f(Ci,_o);function Pi(){this._nsMap={}}Pi.prototype={nodeType:P,hasAttribute:function(zt){return this.getAttributeNode(zt)!=null},getAttribute:function(zt){var pn=this.getAttributeNode(zt);return pn&&pn.value||""},getAttributeNode:function(zt){return this.attributes.getNamedItem(zt)},setAttribute:function(zt,pn){var br=this.ownerDocument.createAttribute(zt);br.value=br.nodeValue=""+pn,this.setAttributeNode(br)},removeAttribute:function(zt){var pn=this.getAttributeNode(zt);pn&&this.removeAttributeNode(pn)},appendChild:function(zt){return zt.nodeType===We?this.insertBefore(zt,null):Ri(this,zt)},setAttributeNode:function(zt){return this.attributes.setNamedItem(zt)},setAttributeNodeNS:function(zt){return this.attributes.setNamedItemNS(zt)},removeAttributeNode:function(zt){return this.attributes.removeNamedItem(zt.nodeName)},removeAttributeNS:function(zt,pn){var br=this.getAttributeNodeNS(zt,pn);br&&this.removeAttributeNode(br)},hasAttributeNS:function(zt,pn){return this.getAttributeNodeNS(zt,pn)!=null},getAttributeNS:function(zt,pn){var br=this.getAttributeNodeNS(zt,pn);return br&&br.value||""},setAttributeNS:function(zt,pn,br){var Gr=this.ownerDocument.createAttributeNS(zt,pn);Gr.value=Gr.nodeValue=""+br,this.setAttributeNode(Gr)},getAttributeNodeNS:function(zt,pn){return this.attributes.getNamedItemNS(zt,pn)},getElementsByTagName:function(zt){return new oi(this,function(pn){var br=[];return Bi(pn,function(Gr){Gr!==pn&&Gr.nodeType==P&&(zt==="*"||Gr.tagName==zt)&&br.push(Gr)}),br})},getElementsByTagNameNS:function(zt,pn){return new oi(this,function(br){var Gr=[];return Bi(br,function(ui){ui!==br&&ui.nodeType===P&&(zt==="*"||ui.namespaceURI===zt)&&(pn==="*"||ui.localName==pn)&&Gr.push(ui)}),Gr})}},Ci.prototype.getElementsByTagName=Pi.prototype.getElementsByTagName,Ci.prototype.getElementsByTagNameNS=Pi.prototype.getElementsByTagNameNS,f(Pi,_o);function Wo(){}Wo.prototype.nodeType=W,f(Wo,_o);function ys(){}ys.prototype={data:"",substringData:function(zt,pn){return this.data.substring(zt,zt+pn)},appendData:function(zt){zt=this.data+zt,this.nodeValue=this.data=zt,this.length=zt.length},insertData:function(zt,pn){this.replaceData(zt,0,pn)},appendChild:function(zt){throw new Error(ye[Ae])},deleteData:function(zt,pn){this.replaceData(zt,pn,"")},replaceData:function(zt,pn,br){var Gr=this.data.substring(0,zt),ui=this.data.substring(zt+pn);br=Gr+br+ui,this.nodeValue=this.data=br,this.length=br.length}},f(ys,_o);function xn(){}xn.prototype={nodeName:"#text",nodeType:ne,splitText:function(zt){var pn=this.data,br=pn.substring(zt);pn=pn.substring(0,zt),this.data=this.nodeValue=pn,this.length=pn.length;var Gr=this.ownerDocument.createTextNode(br);return this.parentNode&&this.parentNode.insertBefore(Gr,this.nextSibling),Gr}},f(xn,ys);function Hr(){}Hr.prototype={nodeName:"#comment",nodeType:fe},f(Hr,ys);function Jr(){}Jr.prototype={nodeName:"#cdata-section",nodeType:re},f(Jr,ys);function Yi(){}Yi.prototype.nodeType=Ie,f(Yi,_o);function xo(){}xo.prototype.nodeType=De,f(xo,_o);function na(){}na.prototype.nodeType=pe,f(na,_o);function Un(){}Un.prototype.nodeType=ce,f(Un,_o);function Xn(){}Xn.prototype.nodeName="#document-fragment",Xn.prototype.nodeType=We,f(Xn,_o);function Mr(){}Mr.prototype.nodeType=he,f(Mr,_o);function li(){}li.prototype.serializeToString=function(zt,pn,br){return wr.call(zt,pn,br)},_o.prototype.toString=wr;function wr(zt,pn){var br=[],Gr=this.nodeType==9&&this.documentElement||this,ui=Gr.prefix,xi=Gr.namespaceURI;if(xi&&ui==null){var ui=Gr.lookupPrefix(xi);if(ui==null)var lo=[{namespace:xi,prefix:null}]}return rn(this,br,zt,pn,lo),br.join("")}function qr(zt,pn,br){var Gr=zt.prefix||"",ui=zt.namespaceURI;if(!ui||Gr==="xml"&&ui===b.XML||ui===b.XMLNS)return!1;for(var xi=br.length;xi--;){var lo=br[xi];if(lo.prefix===Gr)return lo.namespace!==ui}return!0}function ii(zt,pn,br){zt.push(" ",pn,'="',br.replace(/[<>&"\t\n\r]/g,ci),'"')}function rn(zt,pn,br,Gr,ui){if(ui||(ui=[]),Gr)if(zt=Gr(zt),zt){if(typeof zt=="string"){pn.push(zt);return}}else return;switch(zt.nodeType){case P:var xi=zt.attributes,lo=xi.length,vi=zt.firstChild,Kr=zt.tagName;br=b.isHTML(zt.namespaceURI)||br;var ti=Kr;if(!br&&!zt.prefix&&zt.namespaceURI){for(var ji,Tr=0;Tr=0;Qt--){var Gn=ui[Qt];if(Gn.prefix===""&&Gn.namespace===zt.namespaceURI){ji=Gn.namespace;break}}if(ji!==zt.namespaceURI)for(var Qt=ui.length-1;Qt>=0;Qt--){var Gn=ui[Qt];if(Gn.namespace===zt.namespaceURI){Gn.prefix&&(ti=Gn.prefix+":"+Kr);break}}}pn.push("<",ti);for(var yi=0;yi"),br&&/^script$/i.test(Kr))for(;vi;)vi.data?pn.push(vi.data):rn(vi,pn,br,Gr,ui.slice()),vi=vi.nextSibling;else for(;vi;)rn(vi,pn,br,Gr,ui.slice()),vi=vi.nextSibling;pn.push("")}else pn.push("/>");return;case Be:case We:for(var vi=zt.firstChild;vi;)rn(vi,pn,br,Gr,ui.slice()),vi=vi.nextSibling;return;case W:return ii(pn,zt.name,zt.value);case ne:return pn.push(zt.data.replace(/[<&>]/g,ci));case re:return pn.push("");case fe:return pn.push("");case Ie:var Ni=zt.publicId,kr=zt.systemId;if(pn.push("");else if(kr&&kr!=".")pn.push(" SYSTEM ",kr,">");else{var qn=zt.internalSubset;qn&&pn.push(" [",qn,"]"),pn.push(">")}return;case he:return pn.push("");case ce:return pn.push("&",zt.nodeName,";");default:pn.push("??",zt.nodeName)}}function Qn(zt,pn,br){var Gr;switch(pn.nodeType){case P:Gr=pn.cloneNode(!1),Gr.ownerDocument=zt;case We:break;case W:br=!0;break}if(Gr||(Gr=pn.cloneNode(!1)),Gr.ownerDocument=zt,Gr.parentNode=null,br)for(var ui=pn.firstChild;ui;)Gr.appendChild(Qn(zt,ui,br)),ui=ui.nextSibling;return Gr}function Vr(zt,pn,br){var Gr=new pn.constructor;for(var ui in pn)if(Object.prototype.hasOwnProperty.call(pn,ui)){var xi=pn[ui];typeof xi!="object"&&xi!=Gr[ui]&&(Gr[ui]=xi)}switch(pn.childNodes&&(Gr.childNodes=new Yr),Gr.ownerDocument=zt,Gr.nodeType){case P:var lo=pn.attributes,Kr=Gr.attributes=new yo,ti=lo.length;Kr._ownerElement=Gr;for(var ji=0;ji",lt:"<",quot:'"'}),V.HTML_ENTITIES=y({Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",AMP:"&",amp:"&",And:"\u2A53",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",ap:"\u2248",apacir:"\u2A6F",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",Barwed:"\u2306",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",Because:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxDL:"\u2557",boxDl:"\u2556",boxdL:"\u2555",boxdl:"\u2510",boxDR:"\u2554",boxDr:"\u2553",boxdR:"\u2552",boxdr:"\u250C",boxH:"\u2550",boxh:"\u2500",boxHD:"\u2566",boxHd:"\u2564",boxhD:"\u2565",boxhd:"\u252C",boxHU:"\u2569",boxHu:"\u2567",boxhU:"\u2568",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxUL:"\u255D",boxUl:"\u255C",boxuL:"\u255B",boxul:"\u2518",boxUR:"\u255A",boxUr:"\u2559",boxuR:"\u2558",boxur:"\u2514",boxV:"\u2551",boxv:"\u2502",boxVH:"\u256C",boxVh:"\u256B",boxvH:"\u256A",boxvh:"\u253C",boxVL:"\u2563",boxVl:"\u2562",boxvL:"\u2561",boxvl:"\u2524",boxVR:"\u2560",boxVr:"\u255F",boxvR:"\u255E",boxvr:"\u251C",bprime:"\u2035",Breve:"\u02D8",breve:"\u02D8",brvbar:"\xA6",Bscr:"\u212C",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",Cap:"\u22D2",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",CenterDot:"\xB7",centerdot:"\xB7",Cfr:"\u212D",cfr:"\u{1D520}",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",cir:"\u25CB",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",Colon:"\u2237",colon:":",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",Conint:"\u222F",conint:"\u222E",ContourIntegral:"\u222E",Copf:"\u2102",copf:"\u{1D554}",coprod:"\u2210",Coproduct:"\u2210",COPY:"\xA9",copy:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",Cross:"\u2A2F",cross:"\u2717",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",Cup:"\u22D3",cup:"\u222A",cupbrcap:"\u2A48",CupCap:"\u224D",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",Dagger:"\u2021",dagger:"\u2020",daleth:"\u2138",Darr:"\u21A1",dArr:"\u21D3",darr:"\u2193",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",DD:"\u2145",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",Diamond:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",Downarrow:"\u21D3",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",ecir:"\u2256",Ecirc:"\xCA",ecirc:"\xEA",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",eDot:"\u2251",edot:"\u0117",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",Escr:"\u2130",escr:"\u212F",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",ExponentialE:"\u2147",exponentiale:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",ForAll:"\u2200",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",Fscr:"\u2131",fscr:"\u{1D4BB}",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",gE:"\u2267",ge:"\u2265",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",Gg:"\u22D9",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gl:"\u2277",gla:"\u2AA5",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gnE:"\u2269",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",Gt:"\u226B",GT:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",hArr:"\u21D4",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",Hfr:"\u210C",hfr:"\u{1D525}",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",Hopf:"\u210D",hopf:"\u{1D559}",horbar:"\u2015",HorizontalLine:"\u2500",Hscr:"\u210B",hscr:"\u{1D4BD}",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",Ifr:"\u2111",ifr:"\u{1D526}",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Im:"\u2111",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",Int:"\u222C",int:"\u222B",intcal:"\u22BA",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",Iscr:"\u2110",iscr:"\u{1D4BE}",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",Lang:"\u27EA",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",Larr:"\u219E",lArr:"\u21D0",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",lAtail:"\u291B",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lBarr:"\u290E",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",lE:"\u2266",le:"\u2264",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",Leftarrow:"\u21D0",leftarrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",Ll:"\u22D8",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lnE:"\u2268",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftarrow:"\u27F5",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",Lscr:"\u2112",lscr:"\u{1D4C1}",Lsh:"\u21B0",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",Lt:"\u226A",LT:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",Mscr:"\u2133",mscr:"\u{1D4C2}",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",neArr:"\u21D7",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` +`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlArr:"\u21CD",nlarr:"\u219A",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nLeftarrow:"\u21CD",nleftarrow:"\u219A",nLeftrightarrow:"\u21CE",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",nopf:"\u{1D55F}",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nRightarrow:"\u21CF",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nVDash:"\u22AF",nVdash:"\u22AE",nvDash:"\u22AD",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwArr:"\u21D6",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",Ocirc:"\xD4",ocirc:"\xF4",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",Or:"\u2A54",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",Otimes:"\u2A37",otimes:"\u2297",otimesas:"\u2A36",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",Popf:"\u2119",popf:"\u{1D561}",pound:"\xA3",Pr:"\u2ABB",pr:"\u227A",prap:"\u2AB7",prcue:"\u227C",prE:"\u2AB3",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",Prime:"\u2033",prime:"\u2032",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportion:"\u2237",Proportional:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",Qopf:"\u211A",qopf:"\u{1D562}",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",QUOT:'"',quot:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",Rang:"\u27EB",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",Rarr:"\u21A0",rArr:"\u21D2",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",rAtail:"\u291C",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",RBarr:"\u2910",rBarr:"\u290F",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",Re:"\u211C",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",REG:"\xAE",reg:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",Rfr:"\u211C",rfr:"\u{1D52F}",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",Rightarrow:"\u21D2",rightarrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",Ropf:"\u211D",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",Rscr:"\u211B",rscr:"\u{1D4C7}",Rsh:"\u21B1",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",Sc:"\u2ABC",sc:"\u227B",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",sccue:"\u227D",scE:"\u2AB4",sce:"\u2AB0",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",searhk:"\u2925",seArr:"\u21D8",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",Square:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",Sub:"\u22D0",sub:"\u2282",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",Subset:"\u22D0",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",Sum:"\u2211",sum:"\u2211",sung:"\u266A",Sup:"\u22D1",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",Supset:"\u22D1",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swArr:"\u21D9",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",Therefore:"\u2234",therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",thinsp:"\u2009",ThinSpace:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",Tilde:"\u223C",tilde:"\u02DC",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",TRADE:"\u2122",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",Uarr:"\u219F",uArr:"\u21D1",uarr:"\u2191",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrow:"\u2191",Uparrow:"\u21D1",uparrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",Updownarrow:"\u21D5",updownarrow:"\u2195",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",upsi:"\u03C5",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTee:"\u22A5",UpTeeArrow:"\u21A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",vArr:"\u21D5",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",Vbar:"\u2AEB",vBar:"\u2AE8",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",VDash:"\u22AB",Vdash:"\u22A9",vDash:"\u22A8",vdash:"\u22A2",Vdashl:"\u2AE6",Vee:"\u22C1",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",Verbar:"\u2016",verbar:"|",Vert:"\u2016",vert:"|",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",Wedge:"\u22C0",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",Xi:"\u039E",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",Yuml:"\u0178",yuml:"\xFF",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",Zfr:"\u2128",zfr:"\u{1D537}",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",Zopf:"\u2124",zopf:"\u{1D56B}",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}),V.entityMap=V.HTML_ENTITIES},65952:function(nt,V,m){var y,I=m(32706);y=I.DOMImplementation,V.B=I.XMLSerializer,m(36980)},12128:function(nt,V,m){var y=m(18859).NAMESPACE,I=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,b=new RegExp("[\\-\\.0-9"+I.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),z=new RegExp("^"+I.source+b.source+"*(?::"+I.source+b.source+"*)?$"),k=0,N=1,w=2,A=3,C=4,f=5,S=6,P=7;function W(we,Ce){this.message=we,this.locator=Ce,Error.captureStackTrace&&Error.captureStackTrace(this,W)}W.prototype=new Error,W.prototype.name=W.name;function ne(){}ne.prototype={parse:function(we,Ce,Ae){var me=this.domBuilder;me.startDocument(),Ie(Ce,Ce={}),re(we,Ce,Ae,me,this.errorHandler),me.endDocument()}};function re(we,Ce,Ae,me,je){function xe(xt){if(xt>65535){xt-=65536;var Wt=55296+(xt>>10),on=56320+(xt&1023);return String.fromCharCode(Wt,on)}else return String.fromCharCode(xt)}function Pt(xt){var Wt=xt.slice(1,-1);return Object.hasOwnProperty.call(Ae,Wt)?Ae[Wt]:Wt.charAt(0)==="#"?xe(parseInt(Wt.substr(1).replace("x","0x"))):(je.error("entity not found:"+xt),xt)}function ct(xt){if(xt>Er){var Wt=we.substring(Er,xt).replace(/&#?\w+;/g,Pt);gt&&He(Er),me.characters(Wt,0,xt-Er),Er=xt}}function He(xt,Wt){for(;xt>=dt&&(Wt=Bt.exec(we));)wt=Wt.index,dt=wt+Wt[0].length,gt.lineNumber++;gt.columnNumber=xt-wt+1}for(var wt=0,dt=0,Bt=/.*(?:\r\n?|\n)|.*$/g,gt=me.locator,_n=[{currentNSMap:Ce}],Bn={},Er=0;;){try{var Yr=we.indexOf("<",Er);if(Yr<0){if(!we.substr(Er).match(/^\s*$/)){var oi=me.doc,to=oi.createTextNode(we.substr(Er));oi.appendChild(to),me.currentElement=to}return}switch(Yr>Er&&ct(Yr),we.charAt(Yr+1)){case"/":var Ci=we.indexOf(">",Yr+3),yo=we.substring(Yr+2,Ci).replace(/[ \t\n\r]+$/g,""),yr=_n.pop();Ci<0?(yo=we.substring(Yr+2).replace(/[\s<].*/,""),je.error("end tag name: "+yo+" is not complete:"+yr.tagName),Ci=Yr+1+yo.length):yo.match(/\sEr?Er=Ci:ct(Math.max(Yr,Er)+1)}}function ce(we,Ce){return Ce.lineNumber=we.lineNumber,Ce.columnNumber=we.columnNumber,Ce}function pe(we,Ce,Ae,me,je,xe){function Pt(_n,Bn,Er){Ae.attributeNames.hasOwnProperty(_n)&&xe.fatalError("Attribute "+_n+" redefined"),Ae.addValue(_n,Bn.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,je),Er)}for(var ct,He,wt=++Ce,dt=k;;){var Bt=we.charAt(wt);switch(Bt){case"=":if(dt===N)ct=we.slice(Ce,wt),dt=A;else if(dt===w)dt=A;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(dt===A||dt===N)if(dt===N&&(xe.warning('attribute value must after "="'),ct=we.slice(Ce,wt)),Ce=wt+1,wt=we.indexOf(Bt,Ce),wt>0)He=we.slice(Ce,wt),Pt(ct,He,Ce-1),dt=f;else throw new Error("attribute value no end '"+Bt+"' match");else if(dt==C)He=we.slice(Ce,wt),Pt(ct,He,Ce),xe.warning('attribute "'+ct+'" missed start quot('+Bt+")!!"),Ce=wt+1,dt=f;else throw new Error('attribute value must after "="');break;case"/":switch(dt){case k:Ae.setTagName(we.slice(Ce,wt));case f:case S:case P:dt=P,Ae.closed=!0;case C:case N:break;case w:Ae.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return xe.error("unexpected end of input"),dt==k&&Ae.setTagName(we.slice(Ce,wt)),wt;case">":switch(dt){case k:Ae.setTagName(we.slice(Ce,wt));case f:case S:case P:break;case C:case N:He=we.slice(Ce,wt),He.slice(-1)==="/"&&(Ae.closed=!0,He=He.slice(0,-1));case w:dt===w&&(He=ct),dt==C?(xe.warning('attribute "'+He+'" missed quot(")!'),Pt(ct,He,Ce)):((!y.isHTML(me[""])||!He.match(/^(?:disabled|checked|selected)$/i))&&xe.warning('attribute "'+He+'" missed value!! "'+He+'" instead!!'),Pt(He,He,Ce));break;case A:throw new Error("attribute value missed!!")}return wt;case"\x80":Bt=" ";default:if(Bt<=" ")switch(dt){case k:Ae.setTagName(we.slice(Ce,wt)),dt=S;break;case N:ct=we.slice(Ce,wt),dt=w;break;case C:var He=we.slice(Ce,wt);xe.warning('attribute "'+He+'" missed quot(")!!'),Pt(ct,He,Ce);case f:dt=S;break}else switch(dt){case w:var gt=Ae.tagName;(!y.isHTML(me[""])||!ct.match(/^(?:disabled|checked|selected)$/i))&&xe.warning('attribute "'+ct+'" missed value!! "'+ct+'" instead2!!'),Pt(ct,ct,Ce),Ce=wt,dt=N;break;case f:xe.warning('attribute space is required"'+ct+'"!!');case S:dt=N,Ce=wt;break;case A:dt=C,Ce=wt;break;case P:throw new Error("elements closed character '/' and '>' must be connected to")}}wt++}}function he(we,Ce,Ae){for(var me=we.tagName,je=null,Bt=we.length;Bt--;){var xe=we[Bt],Pt=xe.qName,ct=xe.value,gt=Pt.indexOf(":");if(gt>0)var He=xe.prefix=Pt.slice(0,gt),wt=Pt.slice(gt+1),dt=He==="xmlns"&&wt;else wt=Pt,He=null,dt=Pt==="xmlns"&&"";xe.localName=wt,dt!==!1&&(je==null&&(je={},Ie(Ae,Ae={})),Ae[dt]=je[dt]=ct,xe.uri=y.XMLNS,Ce.startPrefixMapping(dt,ct))}for(var Bt=we.length;Bt--;){xe=we[Bt];var He=xe.prefix;He&&(He==="xml"&&(xe.uri=y.XML),He!=="xmlns"&&(xe.uri=Ae[He||""]))}var gt=me.indexOf(":");gt>0?(He=we.prefix=me.slice(0,gt),wt=we.localName=me.slice(gt+1)):(He=null,wt=we.localName=me);var _n=we.uri=Ae[He||""];if(Ce.startElement(_n,wt,me,we),we.closed){if(Ce.endElement(_n,wt,me),je)for(He in je)Object.prototype.hasOwnProperty.call(je,He)&&Ce.endPrefixMapping(He)}else return we.currentNSMap=Ae,we.localNSMap=je,!0}function fe(we,Ce,Ae,me,je){if(/^(?:script|textarea)$/i.test(Ae)){var xe=we.indexOf("",Ce),Pt=we.substring(Ce+1,xe);if(/[&<]/.test(Pt))return/^script$/i.test(Ae)?(je.characters(Pt,0,Pt.length),xe):(Pt=Pt.replace(/&#?\w+;/g,me),je.characters(Pt,0,Pt.length),xe)}return Ce+1}function Be(we,Ce,Ae,me){var je=me[Ae];return je==null&&(je=we.lastIndexOf(""),je",Ce+4);return xe>Ce?(Ae.comment(we,Ce+4,xe-Ce-4),xe+3):(me.error("Unclosed comment"),-1)}else return-1;default:if(we.substr(Ce+3,6)=="CDATA["){var xe=we.indexOf("]]>",Ce+9);return Ae.startCDATA(),Ae.characters(we,Ce+9,xe-Ce-9),Ae.endCDATA(),xe+3}var Pt=ye(we,Ce),ct=Pt.length;if(ct>1&&/!doctype/i.test(Pt[0][0])){var He=Pt[1][0],wt=!1,dt=!1;ct>3&&(/^public$/i.test(Pt[2][0])?(wt=Pt[3][0],dt=ct>4&&Pt[4][0]):/^system$/i.test(Pt[2][0])&&(dt=Pt[3][0]));var Bt=Pt[ct-1];return Ae.startDTD(He,wt,dt),Ae.endDTD(),Bt.index+Bt[0].length}}return-1}function De(we,Ce,Ae){var me=we.indexOf("?>",Ce);if(me){var je=we.substring(Ce,me).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(je){var xe=je[0].length;return Ae.processingInstruction(je[1],je[2]),me+2}else return-1}return-1}function ve(){this.attributeNames={}}ve.prototype={setTagName:function(we){if(!z.test(we))throw new Error("invalid tagName:"+we);this.tagName=we},addValue:function(we,Ce,Ae){if(!z.test(we))throw new Error("invalid attribute:"+we);this.attributeNames[we]=this.length,this[this.length++]={qName:we,value:Ce,offset:Ae}},length:0,getLocalName:function(we){return this[we].localName},getLocator:function(we){return this[we].locator},getQName:function(we){return this[we].qName},getURI:function(we){return this[we].uri},getValue:function(we){return this[we].value}};function ye(we,Ce){var Ae,me=[],je=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(je.lastIndex=Ce,je.exec(we);Ae=je.exec(we);)if(me.push(Ae),Ae[1])return me}V.XMLReader=ne,V.ParseError=W},28084:function(nt,V,m){"use strict";var y=m(32290),I=m(77617),b=m(73680);function z(N){return(0,b.mf)(N[Symbol.asyncIterator])}function k(N,w){(0,I.useEffect)(function(){var A=N(),C=!1;function f(){return(0,y.mG)(this,void 0,void 0,function(){var S;return(0,y.Jh)(this,function(P){switch(P.label){case 0:if(!z(A))return[3,4];P.label=1;case 1:return[4,A.next()];case 2:return S=P.sent(),S.done||C?[3,3]:[3,1];case 3:return[3,6];case 4:return[4,A];case 5:P.sent(),P.label=6;case 6:return[2]}})})}return f(),function(){C=!0}},w)}V.Z=k},64310:function(nt,V,m){"use strict";var y=m(32290),I=m(77617),b=m(50160);function z(k,N){var w=(0,y.CR)((0,I.useState)(k),2),A=w[0],C=w[1],f=(0,b.Z)(function(){C(k)},N).run;return(0,I.useEffect)(function(){f()},[k]),A}V.Z=z},50160:function(nt,V,m){"use strict";var y=m(32290),I=m(41571),b=m.n(I),z=m(77617),k=m(30542),N=m(22633),w=m(73680),A=m(37036);function C(f,S){var P;A.Z&&((0,w.mf)(f)||console.error("useDebounceFn expected parameter is a function, got ".concat(typeof f)));var W=(0,k.Z)(f),ne=(P=S==null?void 0:S.wait)!==null&&P!==void 0?P:1e3,re=(0,z.useMemo)(function(){return b()(function(){for(var ce=[],pe=0;pe{const{type:A,children:C,prefixCls:f,buttonProps:S,close:P,autoFocus:W,emitEvent:ne,isSilent:re,quitOnNullishReturnValue:ce,actionFn:pe}=w,he=I.useRef(!1),fe=I.useRef(null),[Be,Ie]=(0,y.Z)(!1),We=function(){P==null||P.apply(void 0,arguments)};I.useEffect(()=>{let ye=null;return W&&(ye=setTimeout(()=>{var we;(we=fe.current)===null||we===void 0||we.focus()})),()=>{ye&&clearTimeout(ye)}},[]);const De=ye=>{k(ye)&&(Ie(!0),ye.then(function(){Ie(!1,!0),We.apply(void 0,arguments),he.current=!1},we=>{if(Ie(!1,!0),he.current=!1,!(re!=null&&re()))return Promise.reject(we)}))},ve=ye=>{if(he.current)return;if(he.current=!0,!pe){We();return}let we;if(ne){if(we=pe(ye),ce&&!k(we)){he.current=!1,We(ye);return}}else if(pe.length)we=pe(P),he.current=!1;else if(we=pe(),!we){We();return}De(we)};return I.createElement(b.ZP,Object.assign({},(0,z.nx)(A),{onClick:ve,loading:Be,prefixCls:f},S,{ref:fe}),C)};V.Z=N},91202:function(nt,V,m){"use strict";m.d(V,{Z:function(){return N},i:function(){return k}});var y=m(41760),I=m(77617),b=m(75811),z=m(67392);function k(w){return function(C){return I.createElement(b.ZP,{theme:{token:{motion:!1,zIndexPopupBase:0}}},I.createElement(w,Object.assign({},C)))}}function N(w,A,C,f){function S(P){const{prefixCls:W,style:ne}=P,re=I.useRef(null),[ce,pe]=I.useState(0),[he,fe]=I.useState(0),[Be,Ie]=(0,y.Z)(!1,{value:P.open}),{getPrefixCls:We}=I.useContext(z.E_),De=We(A||"select",W);I.useEffect(()=>{if(Ie(!0),typeof ResizeObserver!="undefined"){const ye=new ResizeObserver(Ce=>{const Ae=Ce[0].target;pe(Ae.offsetHeight+8),fe(Ae.offsetWidth)}),we=setInterval(()=>{var Ce;const Ae=C?`.${C(De)}`:`.${De}-dropdown`,me=(Ce=re.current)===null||Ce===void 0?void 0:Ce.querySelector(Ae);me&&(clearInterval(we),ye.observe(me))},10);return()=>{clearInterval(we),ye.disconnect()}}},[]);let ve=Object.assign(Object.assign({},P),{style:Object.assign(Object.assign({},ne),{margin:0}),open:Be,visible:Be,getPopupContainer:()=>re.current});return f&&(ve=f(ve)),I.createElement("div",{ref:re,style:{paddingBottom:ce,position:"relative",minWidth:he}},I.createElement(w,Object.assign({},ve)))}return k(S)}},38241:function(nt,V,m){"use strict";m.d(V,{Z:function(){return y}});const y=I=>I?typeof I=="function"?I():I:null},52273:function(nt,V,m){"use strict";m.d(V,{Z:function(){return z}});var y=m(49934),I=m(77617);function b(k,N,w){return typeof k=="boolean"?k:N===void 0?!!w:N!==!1&&N!==null}function z(k,N,w){let A=arguments.length>3&&arguments[3]!==void 0?arguments[3]:I.createElement(y.Z,null),C=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!b(k,N,C))return[!1,null];const S=typeof N=="boolean"||N===void 0||N===null?A:N;return[!0,w?w(S):S]}},73962:function(nt,V,m){"use strict";m.d(V,{Z:function(){return I}});var y=m(77617);function I(){const[,b]=y.useReducer(z=>z+1,0);return b}},26612:function(nt,V,m){"use strict";m.d(V,{m:function(){return w}});const y=()=>({height:0,opacity:0}),I=A=>{const{scrollHeight:C}=A;return{height:C,opacity:1}},b=A=>({height:A?A.offsetHeight:0}),z=(A,C)=>(C==null?void 0:C.deadline)===!0||C.propertyName==="height",k=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:y,onEnterStart:y,onAppearActive:I,onEnterActive:I,onLeaveStart:b,onLeaveActive:y,onAppearEnd:z,onEnterEnd:z,onLeaveEnd:z,motionDeadline:500}},N=null,w=(A,C,f)=>f!==void 0?f:`${A}-${C}`;V.Z=k},43119:function(nt,V,m){"use strict";m.d(V,{Z:function(){return N}});var y=m(72881);function I(w,A,C,f){if(f===!1)return{adjustX:!1,adjustY:!1};const S=f&&typeof f=="object"?f:{},P={};switch(w){case"top":case"bottom":P.shiftX=A.dropdownArrowOffset*2+C,P.shiftY=!0,P.adjustY=!0;break;case"left":case"right":P.shiftY=A.dropdownArrowOffsetVertical*2+C,P.shiftX=!0,P.adjustX=!0;break}const W=Object.assign(Object.assign({},P),S);return W.shiftX||(W.adjustX=!0),W.shiftY||(W.adjustY=!0),W}const b={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},z={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},k=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function N(w){const{arrowWidth:A,autoAdjustOverflow:C,arrowPointAtCenter:f,offset:S,borderRadius:P,visibleFirst:W}=w,ne=A/2,re={};return Object.keys(b).forEach(ce=>{const pe=f&&z[ce]||b[ce],he=Object.assign(Object.assign({},pe),{offset:[0,0],dynamicInset:!0});switch(re[ce]=he,k.has(ce)&&(he.autoArrow=!1),ce){case"top":case"topLeft":case"topRight":he.offset[1]=-ne-S;break;case"bottom":case"bottomLeft":case"bottomRight":he.offset[1]=ne+S;break;case"left":case"leftTop":case"leftBottom":he.offset[0]=-ne-S;break;case"right":case"rightTop":case"rightBottom":he.offset[0]=ne+S;break}const fe=(0,y.fS)({contentRadius:P,limitVerticalRadius:!0});if(f)switch(ce){case"topLeft":case"bottomLeft":he.offset[0]=-fe.dropdownArrowOffset-ne;break;case"topRight":case"bottomRight":he.offset[0]=fe.dropdownArrowOffset+ne;break;case"leftTop":case"rightTop":he.offset[1]=-fe.dropdownArrowOffset-ne;break;case"leftBottom":case"rightBottom":he.offset[1]=fe.dropdownArrowOffset+ne;break}he.overflow=I(ce,fe,A,C),W&&(he.htmlRegion="visibleFirst")}),re}},99486:function(nt,V,m){"use strict";var y;m.d(V,{M2:function(){return z},Tm:function(){return N},l$:function(){return b}});var I=m(77617);const{isValidElement:b}=y||(y=m.t(I,2));function z(w){return w&&b(w)&&w.type===I.Fragment}function k(w,A,C){return b(w)?I.cloneElement(w,typeof C=="function"?C(w.props||{}):C):A}function N(w,A){return k(w,w,A)}},67986:function(nt,V,m){"use strict";m.d(V,{ZP:function(){return N},c4:function(){return b},m9:function(){return w}});var y=m(77617),I=m(99737);const b=["xxl","xl","lg","md","sm","xs"],z=A=>({xs:`(max-width: ${A.screenXSMax}px)`,sm:`(min-width: ${A.screenSM}px)`,md:`(min-width: ${A.screenMD}px)`,lg:`(min-width: ${A.screenLG}px)`,xl:`(min-width: ${A.screenXL}px)`,xxl:`(min-width: ${A.screenXXL}px)`}),k=A=>{const C=A,f=[].concat(b).reverse();return f.forEach((S,P)=>{const W=S.toUpperCase(),ne=`screen${W}Min`,re=`screen${W}`;if(!(C[ne]<=C[re]))throw new Error(`${ne}<=${re} fails : !(${C[ne]}<=${C[re]})`);if(P{const f=new Map;let S=-1,P={};return{matchHandlers:{},dispatch(W){return P=W,f.forEach(ne=>ne(P)),f.size>=1},subscribe(W){return f.size||this.register(),S+=1,f.set(S,W),W(P),S},unsubscribe(W){f.delete(W),f.size||this.unregister()},unregister(){Object.keys(C).forEach(W=>{const ne=C[W],re=this.matchHandlers[ne];re==null||re.mql.removeListener(re==null?void 0:re.listener)}),f.clear()},register(){Object.keys(C).forEach(W=>{const ne=C[W],re=pe=>{let{matches:he}=pe;this.dispatch(Object.assign(Object.assign({},P),{[W]:he}))},ce=window.matchMedia(ne);ce.addListener(re),this.matchHandlers[ne]={mql:ce,listener:re},re(ce)})},responsiveMap:C}},[A])}const w=(A,C)=>{if(C&&typeof C=="object")for(let f=0;fw||N},40869:function(nt,V,m){"use strict";m.d(V,{G8:function(){return w},ln:function(){return A}});var y=m(77617),I=m(46644);function b(){}let z=null;function k(){z=null,rcResetWarned()}let N=null;const w=y.createContext({}),A=()=>{const f=()=>{};return f.deprecated=b,f};var C=null},27724:function(nt,V,m){"use strict";m.d(V,{Z:function(){return we}});var y=m(12124),I=m.n(y),b=m(9681),z=m(64630),k=m(77617),N=m(67392),w=m(99486),A=m(24577);const C=Ce=>{const{componentCls:Ae,colorPrimary:me}=Ce;return{[Ae]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${me})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${Ce.motionEaseOutCirc}`,`opacity 2s ${Ce.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${Ce.motionEaseInOut}`,`opacity 0.35s ${Ce.motionEaseInOut}`].join(",")}}}}};var f=(0,A.Z)("Wave",Ce=>[C(Ce)]),S=m(95470),P=m(28637),W=m(44516),ne=m(13493);function re(Ce){const Ae=(Ce||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return Ae&&Ae[1]&&Ae[2]&&Ae[3]?!(Ae[1]===Ae[2]&&Ae[2]===Ae[3]):!0}function ce(Ce){return Ce&&Ce!=="#fff"&&Ce!=="#ffffff"&&Ce!=="rgb(255, 255, 255)"&&Ce!=="rgba(255, 255, 255, 1)"&&re(Ce)&&!/rgba\((?:\d*, ){3}0\)/.test(Ce)&&Ce!=="transparent"}function pe(Ce){const{borderTopColor:Ae,borderColor:me,backgroundColor:je}=getComputedStyle(Ce);return ce(Ae)?Ae:ce(me)?me:ce(je)?je:null}var he=m(71208);function fe(Ce){return Number.isNaN(Ce)?0:Ce}const Be=Ce=>{const{className:Ae,target:me,component:je}=Ce,xe=k.useRef(null),[Pt,ct]=k.useState(null),[He,wt]=k.useState([]),[dt,Bt]=k.useState(0),[gt,_n]=k.useState(0),[Bn,Er]=k.useState(0),[Yr,oi]=k.useState(0),[to,yo]=k.useState(!1),yr={left:dt,top:gt,width:Bn,height:Yr,borderRadius:He.map(ge=>`${ge}px`).join(" ")};Pt&&(yr["--wave-color"]=Pt);function Po(){const ge=getComputedStyle(me);ct(pe(me));const _o=ge.position==="static",{borderLeftWidth:ci,borderTopWidth:Bi}=ge;Bt(_o?me.offsetLeft:fe(-parseFloat(ci))),_n(_o?me.offsetTop:fe(-parseFloat(Bi))),Er(me.offsetWidth),oi(me.offsetHeight);const{borderTopLeftRadius:Ci,borderTopRightRadius:io,borderBottomLeftRadius:ln,borderBottomRightRadius:Ve}=ge;wt([Ci,io,Ve,ln].map(_t=>fe(parseFloat(_t))))}if(k.useEffect(()=>{if(me){const ge=(0,P.Z)(()=>{Po(),yo(!0)});let _o;return typeof ResizeObserver!="undefined"&&(_o=new ResizeObserver(Po),_o.observe(me)),()=>{P.Z.cancel(ge),_o==null||_o.disconnect()}}},[]),!to)return null;const as=(je==="Checkbox"||je==="Radio")&&(me==null?void 0:me.classList.contains(he.A));return k.createElement(W.ZP,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(ge,_o)=>{var ci;if(_o.deadline||_o.propertyName==="opacity"){const Bi=(ci=xe.current)===null||ci===void 0?void 0:ci.parentElement;(0,ne.v)(Bi).then(()=>{Bi==null||Bi.remove()})}return!1}},ge=>{let{className:_o}=ge;return k.createElement("div",{ref:xe,className:I()(Ae,{"wave-quick":as},_o),style:yr})})};var We=(Ce,Ae)=>{var me;const{component:je}=Ae;if(je==="Checkbox"&&!(!((me=Ce.querySelector("input"))===null||me===void 0)&&me.checked))return;const xe=document.createElement("div");xe.style.position="absolute",xe.style.left="0px",xe.style.top="0px",Ce==null||Ce.insertBefore(xe,Ce==null?void 0:Ce.firstChild),(0,ne.s)(k.createElement(Be,Object.assign({},Ae,{target:Ce})),xe)},De=m(99737);function ve(Ce,Ae,me){const{wave:je}=k.useContext(N.E_),[,xe,Pt]=(0,De.Z)(),ct=(0,S.zX)(dt=>{const Bt=Ce.current;if(je!=null&&je.disabled||!Bt)return;const gt=Bt.querySelector(`.${he.A}`)||Bt,{showEffect:_n}=je||{};(_n||We)(gt,{className:Ae,token:xe,component:me,event:dt,hashId:Pt})}),He=k.useRef();return dt=>{P.Z.cancel(He.current),He.current=(0,P.Z)(()=>{ct(dt)})}}var we=Ce=>{const{children:Ae,disabled:me,component:je}=Ce,{getPrefixCls:xe}=(0,k.useContext)(N.E_),Pt=(0,k.useRef)(null),ct=xe("wave"),[,He]=f(ct),wt=ve(Pt,I()(ct,He),je);if(k.useEffect(()=>{const Bt=Pt.current;if(!Bt||Bt.nodeType!==1||me)return;const gt=_n=>{!(0,z.Z)(_n.target)||!Bt.getAttribute||Bt.getAttribute("disabled")||Bt.disabled||Bt.className.includes("disabled")||Bt.className.includes("-leave")||wt(_n)};return Bt.addEventListener("click",gt,!0),()=>{Bt.removeEventListener("click",gt,!0)}},[me]),!k.isValidElement(Ae))return Ae!=null?Ae:null;const dt=(0,b.Yr)(Ae)?(0,b.sQ)(Ae.ref,Pt):Pt;return(0,w.Tm)(Ae,{ref:dt})}},71208:function(nt,V,m){"use strict";m.d(V,{A:function(){return y}});const y="ant-wave-target"},81201:function(nt,V,m){"use strict";m.d(V,{Te:function(){return w},aG:function(){return z},hU:function(){return C},nx:function(){return k}});var y=m(77617),I=m(99486);const b=/^[\u4e00-\u9fa5]{2}$/,z=b.test.bind(b);function k(W){return W==="danger"?{danger:!0}:{type:W}}function N(W){return typeof W=="string"}function w(W){return W==="text"||W==="link"}function A(W,ne){if(W==null)return;const re=ne?" ":"";return typeof W!="string"&&typeof W!="number"&&N(W.type)&&z(W.props.children)?(0,I.Tm)(W,{children:W.props.children.split("").join(re)}):N(W)?z(W)?y.createElement("span",null,W.split("").join(re)):y.createElement("span",null,W):(0,I.M2)(W)?y.createElement("span",null,W):W}function C(W,ne){let re=!1;const ce=[];return y.Children.forEach(W,pe=>{const he=typeof pe,fe=he==="string"||he==="number";if(re&&fe){const Be=ce.length-1,Ie=ce[Be];ce[Be]=`${Ie}${pe}`}else ce.push(pe);re=fe}),y.Children.map(ce,pe=>A(pe,ne))}const f=null,S=null,P=null},38115:function(nt,V,m){"use strict";m.d(V,{ZP:function(){return Wn}});var y=m(77617),I=m(12124),b=m.n(I),z=m(39029),k=m(9681),N=m(27724),w=m(67392),A=m(81689),C=m(21843),f=m(58370),S=m(99737),P=function(tn,hr){var Zi={};for(var Ri in tn)Object.prototype.hasOwnProperty.call(tn,Ri)&&hr.indexOf(Ri)<0&&(Zi[Ri]=tn[Ri]);if(tn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pi=0,Ri=Object.getOwnPropertySymbols(tn);Pi{const{getPrefixCls:hr,direction:Zi}=y.useContext(w.E_),{prefixCls:Ri,size:Pi,className:Wo}=tn,ys=P(tn,["prefixCls","size","className"]),xn=hr("btn-group",Ri),[,,Hr]=(0,S.Z)();let Jr="";switch(Pi){case"large":Jr="lg";break;case"small":Jr="sm";break;case"middle":default:}const Yi=b()(xn,{[`${xn}-${Jr}`]:Jr,[`${xn}-rtl`]:Zi==="rtl"},Wo,Hr);return y.createElement(W.Provider,{value:Pi},y.createElement("div",Object.assign({},ys,{className:Yi})))},ce=m(81201),he=(0,y.forwardRef)((tn,hr)=>{const{className:Zi,style:Ri,children:Pi,prefixCls:Wo}=tn,ys=b()(`${Wo}-icon`,Zi);return y.createElement("span",{ref:hr,className:ys,style:Ri},Pi)}),fe=m(38521),Be=m(44516);const Ie=(0,y.forwardRef)((tn,hr)=>{let{prefixCls:Zi,className:Ri,style:Pi,iconClassName:Wo}=tn;const ys=b()(`${Zi}-loading-icon`,Ri);return y.createElement(he,{prefixCls:Zi,className:ys,style:Pi,ref:hr},y.createElement(fe.Z,{className:Wo}))}),We=()=>({width:0,opacity:0,transform:"scale(0)"}),De=tn=>({width:tn.scrollWidth,opacity:1,transform:"scale(1)"});var ye=tn=>{const{prefixCls:hr,loading:Zi,existIcon:Ri,className:Pi,style:Wo}=tn,ys=!!Zi;return Ri?y.createElement(Ie,{prefixCls:hr,className:Pi,style:Wo}):y.createElement(Be.ZP,{visible:ys,motionName:`${hr}-loading-icon-motion`,motionLeave:ys,removeOnLeave:!0,onAppearStart:We,onAppearActive:De,onEnterStart:We,onEnterActive:De,onLeaveStart:De,onLeaveActive:We},(xn,Hr)=>{let{className:Jr,style:Yi}=xn;return y.createElement(Ie,{prefixCls:hr,className:Pi,style:Object.assign(Object.assign({},Wo),Yi),ref:Hr,iconClassName:Jr})})},we=m(92068),Ce=m(41788),Ae=m(24577);const me=(tn,hr)=>({[`> span, > ${tn}`]:{"&:not(:last-child)":{[`&, & > ${tn}`]:{"&:not(:disabled)":{borderInlineEndColor:hr}}},"&:not(:first-child)":{[`&, & > ${tn}`]:{"&:not(:disabled)":{borderInlineStartColor:hr}}}}});var xe=tn=>{const{componentCls:hr,fontSize:Zi,lineWidth:Ri,groupBorderColor:Pi,colorErrorHover:Wo}=tn;return{[`${hr}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${hr}`]:{"&:not(:last-child)":{[`&, & > ${hr}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-Ri,[`&, & > ${hr}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[hr]:{position:"relative",zIndex:1,[`&:hover, &:focus, - &:active`]:{zIndex:2},"&[disabled]":{zIndex:0}},[`${hr}-icon-only`]:{fontSize:Zi}},me(`${hr}-primary`,Pi),me(`${hr}-danger`,$o)]}};const Pt=tn=>{const{componentCls:hr,iconCls:Zi,fontWeight:Ri}=tn;return{[hr]:{outline:"none",position:"relative",display:"inline-block",fontWeight:Ri,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${tn.lineWidth}px ${tn.lineType} transparent`,cursor:"pointer",transition:`all ${tn.motionDurationMid} ${tn.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:tn.lineHeight,color:tn.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${hr}-icon`]:{lineHeight:0},[`> ${Zi} + span, > span + ${Zi}`]:{marginInlineStart:tn.marginXS},[`&:not(${hr}-icon-only) > ${hr}-icon`]:{[`&${hr}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:tn.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},(0,xe.Qy)(tn)),[`&${hr}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${hr}-two-chinese-chars > *:not(${Zi})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${hr}-compact-item`]:{flex:"none"},[`&-compact-item${hr}-primary`]:{[`&:not([disabled]) + ${hr}-compact-item${hr}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-tn.lineWidth,insetInlineStart:-tn.lineWidth,display:"inline-block",width:tn.lineWidth,height:`calc(100% + ${tn.lineWidth*2}px)`,backgroundColor:tn.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${hr}-primary`]:{[`&:not([disabled]) + ${hr}-compact-vertical-item${hr}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-tn.lineWidth,insetInlineStart:-tn.lineWidth,display:"inline-block",width:`calc(100% + ${tn.lineWidth*2}px)`,height:tn.lineWidth,backgroundColor:tn.colorPrimaryHover,content:'""'}}}}}}},ct=(tn,hr,Zi)=>({[`&:not(:disabled):not(${tn}-disabled)`]:{"&:hover":hr,"&:active":Zi}}),Ue=tn=>({minWidth:tn.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),bt=tn=>({borderRadius:tn.controlHeight,paddingInlineStart:tn.controlHeight/2,paddingInlineEnd:tn.controlHeight/2}),ht=tn=>({cursor:"not-allowed",borderColor:tn.borderColorDisabled,color:tn.colorTextDisabled,backgroundColor:tn.colorBgContainerDisabled,boxShadow:"none"}),Bt=(tn,hr,Zi,Ri,Pi,$o,ys,xn)=>({[`&${tn}-background-ghost`]:Object.assign(Object.assign({color:Zi||void 0,backgroundColor:hr,borderColor:Ri||void 0,boxShadow:"none"},ct(tn,Object.assign({backgroundColor:hr},ys),Object.assign({backgroundColor:hr},xn))),{"&:disabled":{cursor:"not-allowed",color:Pi||void 0,borderColor:$o||void 0}})}),mt=tn=>({[`&:disabled, &${tn.componentCls}-disabled`]:Object.assign({},ht(tn))}),_n=tn=>Object.assign({},mt(tn)),Bn=tn=>({[`&:disabled, &${tn.componentCls}-disabled`]:{cursor:"not-allowed",color:tn.colorTextDisabled}}),Er=tn=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_n(tn)),{backgroundColor:tn.defaultBg,borderColor:tn.defaultBorderColor,color:tn.defaultColor,boxShadow:tn.defaultShadow}),ct(tn.componentCls,{color:tn.colorPrimaryHover,borderColor:tn.colorPrimaryHover},{color:tn.colorPrimaryActive,borderColor:tn.colorPrimaryActive})),Bt(tn.componentCls,tn.ghostBg,tn.defaultGhostColor,tn.defaultGhostBorderColor,tn.colorTextDisabled,tn.colorBorder)),{[`&${tn.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:tn.colorError,borderColor:tn.colorError},ct(tn.componentCls,{color:tn.colorErrorHover,borderColor:tn.colorErrorBorderHover},{color:tn.colorErrorActive,borderColor:tn.colorErrorActive})),Bt(tn.componentCls,tn.ghostBg,tn.colorError,tn.colorError,tn.colorTextDisabled,tn.colorBorder)),mt(tn))}),Yr=tn=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_n(tn)),{color:tn.primaryColor,backgroundColor:tn.colorPrimary,boxShadow:tn.primaryShadow}),ct(tn.componentCls,{color:tn.colorTextLightSolid,backgroundColor:tn.colorPrimaryHover},{color:tn.colorTextLightSolid,backgroundColor:tn.colorPrimaryActive})),Bt(tn.componentCls,tn.ghostBg,tn.colorPrimary,tn.colorPrimary,tn.colorTextDisabled,tn.colorBorder,{color:tn.colorPrimaryHover,borderColor:tn.colorPrimaryHover},{color:tn.colorPrimaryActive,borderColor:tn.colorPrimaryActive})),{[`&${tn.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:tn.colorError,boxShadow:tn.dangerShadow,color:tn.dangerColor},ct(tn.componentCls,{backgroundColor:tn.colorErrorHover},{backgroundColor:tn.colorErrorActive})),Bt(tn.componentCls,tn.ghostBg,tn.colorError,tn.colorError,tn.colorTextDisabled,tn.colorBorder,{color:tn.colorErrorHover,borderColor:tn.colorErrorHover},{color:tn.colorErrorActive,borderColor:tn.colorErrorActive})),mt(tn))}),oi=tn=>Object.assign(Object.assign({},Er(tn)),{borderStyle:"dashed"}),to=tn=>Object.assign(Object.assign(Object.assign({color:tn.colorLink},ct(tn.componentCls,{color:tn.colorLinkHover,backgroundColor:tn.linkHoverBg},{color:tn.colorLinkActive})),Bn(tn)),{[`&${tn.componentCls}-dangerous`]:Object.assign(Object.assign({color:tn.colorError},ct(tn.componentCls,{color:tn.colorErrorHover},{color:tn.colorErrorActive})),Bn(tn))}),yo=tn=>Object.assign(Object.assign(Object.assign({},ct(tn.componentCls,{color:tn.colorText,backgroundColor:tn.textHoverBg},{color:tn.colorText,backgroundColor:tn.colorBgTextActive})),Bn(tn)),{[`&${tn.componentCls}-dangerous`]:Object.assign(Object.assign({color:tn.colorError},Bn(tn)),ct(tn.componentCls,{color:tn.colorErrorHover,backgroundColor:tn.colorErrorBg},{color:tn.colorErrorHover,backgroundColor:tn.colorErrorBg}))}),vr=tn=>{const{componentCls:hr}=tn;return{[`${hr}-default`]:Er(tn),[`${hr}-primary`]:Yr(tn),[`${hr}-dashed`]:oi(tn),[`${hr}-link`]:to(tn),[`${hr}-text`]:yo(tn),[`${hr}-ghost`]:Bt(tn.componentCls,tn.ghostBg,tn.colorBgContainer,tn.colorBgContainer,tn.colorTextDisabled,tn.colorBorder)}},Po=function(tn){let hr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:Zi,controlHeight:Ri,fontSize:Pi,lineHeight:$o,lineWidth:ys,borderRadius:xn,buttonPaddingHorizontal:Hr,iconCls:Jr}=tn,Yi=Math.max(0,(Ri-Pi*$o)/2-ys),xo=`${Zi}-icon-only`;return[{[`${Zi}${hr}`]:{fontSize:Pi,height:Ri,padding:`${Yi}px ${Hr}px`,borderRadius:xn,[`&${xo}`]:{width:Ri,paddingInlineStart:0,paddingInlineEnd:0,[`&${Zi}-round`]:{width:"auto"},[Jr]:{fontSize:tn.buttonIconOnlyFontSize}},[`&${Zi}-loading`]:{opacity:tn.opacityLoading,cursor:"default"},[`${Zi}-loading-icon`]:{transition:`width ${tn.motionDurationSlow} ${tn.motionEaseInOut}, opacity ${tn.motionDurationSlow} ${tn.motionEaseInOut}`}}},{[`${Zi}${Zi}-circle${hr}`]:Ue(tn)},{[`${Zi}${Zi}-round${hr}`]:bt(tn)}]},ss=tn=>Po((0,be.TS)(tn,{fontSize:tn.contentFontSize})),ve=tn=>{const hr=(0,be.TS)(tn,{controlHeight:tn.controlHeightSM,fontSize:tn.contentFontSizeSM,padding:tn.paddingXS,buttonPaddingHorizontal:tn.paddingInlineSM,borderRadius:tn.borderRadiusSM,buttonIconOnlyFontSize:tn.onlyIconSizeSM});return Po(hr,`${tn.componentCls}-sm`)},_o=tn=>{const hr=(0,be.TS)(tn,{controlHeight:tn.controlHeightLG,fontSize:tn.contentFontSizeLG,buttonPaddingHorizontal:tn.paddingInlineLG,borderRadius:tn.borderRadiusLG,buttonIconOnlyFontSize:tn.onlyIconSizeLG});return Po(hr,`${tn.componentCls}-lg`)},ci=tn=>{const{componentCls:hr}=tn;return{[hr]:{[`&${hr}-block`]:{width:"100%"}}}},Bi=tn=>{const{paddingInline:hr,onlyIconSize:Zi}=tn;return(0,be.TS)(tn,{buttonPaddingHorizontal:hr,buttonIconOnlyFontSize:Zi})},wi=tn=>({fontWeight:400,defaultShadow:`0 ${tn.controlOutlineWidth}px 0 ${tn.controlTmpOutline}`,primaryShadow:`0 ${tn.controlOutlineWidth}px 0 ${tn.controlOutline}`,dangerShadow:`0 ${tn.controlOutlineWidth}px 0 ${tn.colorErrorOutline}`,primaryColor:tn.colorTextLightSolid,dangerColor:tn.colorTextLightSolid,borderColorDisabled:tn.colorBorder,defaultGhostColor:tn.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:tn.colorBgContainer,paddingInline:tn.paddingContentHorizontal-tn.lineWidth,paddingInlineLG:tn.paddingContentHorizontal-tn.lineWidth,paddingInlineSM:8-tn.lineWidth,onlyIconSize:tn.fontSizeLG,onlyIconSizeSM:tn.fontSizeLG-2,onlyIconSizeLG:tn.fontSizeLG+2,groupBorderColor:tn.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:tn.colorBgTextHover,defaultColor:tn.colorText,defaultBg:tn.colorBgContainer,defaultBorderColor:tn.colorBorder,defaultBorderColorDisabled:tn.colorBorder,contentFontSize:tn.fontSize,contentFontSizeSM:tn.fontSize,contentFontSizeLG:tn.fontSizeLG});var io=(0,Ie.Z)("Button",tn=>{const hr=Bi(tn);return[Pt(hr),ve(hr),ss(hr),_o(hr),ci(hr),vr(hr),Ce(hr)]},wi),ln=m(80110);function Ve(tn,hr){return{[`&-item:not(${hr}-last-item)`]:{marginBottom:-tn.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function _t(tn,hr){return{[`&-item:not(${hr}-first-item):not(${hr}-last-item)`]:{borderRadius:0},[`&-item${hr}-first-item:not(${hr}-last-item)`]:{[`&, &${tn}-sm, &${tn}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${hr}-last-item:not(${hr}-first-item)`]:{[`&, &${tn}-sm, &${tn}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function Ct(tn){const hr=`${tn.componentCls}-compact-vertical`;return{[hr]:Object.assign(Object.assign({},Ve(tn,hr)),_t(tn.componentCls,hr))}}var jt=(0,Ie.b)(["Button","compact"],tn=>{const hr=Bi(tn);return[(0,ln.c)(hr),Ct(hr)]},wi),on=function(tn,hr){var Zi={};for(var Ri in tn)Object.prototype.hasOwnProperty.call(tn,Ri)&&hr.indexOf(Ri)<0&&(Zi[Ri]=tn[Ri]);if(tn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pi=0,Ri=Object.getOwnPropertySymbols(tn);Pi{var Zi,Ri;const{loading:Pi=!1,prefixCls:$o,type:ys="default",danger:xn,shape:Hr="default",size:Jr,styles:Yi,disabled:xo,className:na,rootClassName:Vn,children:Xn,icon:Mr,ghost:li=!1,block:Cr=!1,htmlType:qr="button",classNames:ii,style:rn={}}=tn,Jn=on(tn,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:Vr,autoInsertSpaceInButton:so,direction:rs,button:zt}=(0,y.useContext)(w.E_),pn=Vr("btn",$o),[_r,Gr]=io(pn),ui=(0,y.useContext)(I.Z),Ci=xo!=null?xo:ui,lo=(0,y.useContext)(j),Kr=(0,y.useMemo)(()=>Ot(Pi),[Pi]),[ti,Wi]=(0,y.useState)(Kr.loading),[Tr,Qt]=(0,y.useState)(!1),Gn=(0,y.createRef)(),yi=(0,k.sQ)(hr,Gn),Ln=y.Children.count(Xn)===1&&!Mr&&!(0,ie.Te)(ys);(0,y.useEffect)(()=>{let Es=null;Kr.delay>0?Es=setTimeout(()=>{Es=null,Wi(!0)},Kr.delay):Wi(Kr.loading);function xs(){Es&&(clearTimeout(Es),Es=null)}return xs},[Kr]),(0,y.useEffect)(()=>{if(!yi||!yi.current||so===!1)return;const Es=yi.current.textContent;Ln&&(0,ie.aG)(Es)?Tr||Qt(!0):Tr&&Qt(!1)},[yi]);const Si=Es=>{const{onClick:xs}=tn;if(ti||Ci){Es.preventDefault();return}xs==null||xs(Es)},tr=so!==!1,{compactSize:vi,compactItemClassnames:Ni}=(0,f.ri)(pn,rs),kr={large:"lg",small:"sm",middle:void 0},Qn=(0,C.Z)(Es=>{var xs,Za;return(Za=(xs=Jr!=null?Jr:vi)!==null&&xs!==void 0?xs:lo)!==null&&Za!==void 0?Za:Es}),ds=Qn&&kr[Qn]||"",_a=ti?"loading":Mr,da=(0,z.Z)(Jn,["navigate"]),zs=b()(pn,Gr,{[`${pn}-${Hr}`]:Hr!=="default"&&Hr,[`${pn}-${ys}`]:ys,[`${pn}-${ds}`]:ds,[`${pn}-icon-only`]:!Xn&&Xn!==0&&!!_a,[`${pn}-background-ghost`]:li&&!(0,ie.Te)(ys),[`${pn}-loading`]:ti,[`${pn}-two-chinese-chars`]:Tr&&tr&&!ti,[`${pn}-block`]:Cr,[`${pn}-dangerous`]:!!xn,[`${pn}-rtl`]:rs==="rtl"},Ni,na,Vn,zt==null?void 0:zt.className),ja=Object.assign(Object.assign({},zt==null?void 0:zt.style),rn),Co=b()(ii==null?void 0:ii.icon,(Zi=zt==null?void 0:zt.classNames)===null||Zi===void 0?void 0:Zi.icon),dl=Object.assign(Object.assign({},(Yi==null?void 0:Yi.icon)||{}),((Ri=zt==null?void 0:zt.styles)===null||Ri===void 0?void 0:Ri.icon)||{}),Fr=Mr&&!ti?y.createElement(he,{prefixCls:pn,className:Co,style:dl},Mr):y.createElement(ye,{existIcon:!!Mr,prefixCls:pn,loading:!!ti}),fs=Xn||Xn===0?(0,ie.hU)(Xn,Ln&&tr):null;if(da.href!==void 0)return _r(y.createElement("a",Object.assign({},da,{className:b()(zs,{[`${pn}-disabled`]:Ci}),style:ja,onClick:Si,ref:yi}),Fr,fs));let jo=y.createElement("button",Object.assign({},Jn,{type:qr,className:zs,style:ja,onClick:Si,disabled:Ci,ref:yi}),Fr,fs,Ni&&y.createElement(jt,{key:"compact",prefixCls:pn}));return(0,ie.Te)(ys)||(jo=y.createElement(N.Z,{component:"Button",disabled:!!ti},jo)),_r(jo)},xt=(0,y.forwardRef)(Tt);xt.Group=J,xt.__ANT_BUTTON=!0;var Ht=xt,Zn=Ht},3303:function(nt,V,m){"use strict";m.d(V,{Z:function(){return Si}});var y=m(74902),A=m(67294),b=m(94184),z=m.n(b),k=m(87462),N=m(97685),w=m(91),I=m(88905),C=m(88708),f=m(66680),S=m(21770),P=A.createContext(null),j=P,re=m(71002),J=m(4942),ie=m(1413),de="__rc_cascader_search_mark__",he=function(vi,Ni,kr){var Qn=kr.label;return Ni.some(function(ds){return String(ds[Qn]).toLowerCase().includes(vi.toLowerCase())})},fe=function(vi,Ni,kr,Qn){return Ni.map(function(ds){return ds[Qn.label]}).join(" / ")},ke=function(tr,vi,Ni,kr,Qn,ds){var _a=Qn.filter,da=_a===void 0?he:_a,zs=Qn.render,ja=zs===void 0?fe:zs,Co=Qn.limit,dl=Co===void 0?50:Co,Fr=Qn.sort;return A.useMemo(function(){var fs=[];if(!tr)return[];function jo(Es,xs){var Za=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Es.forEach(function(tl){if(!(!Fr&&dl!==!1&&dl>0&&fs.length>=dl)){var xl=[].concat((0,y.Z)(xs),[tl]),Qa=tl[Ni.children],si=Za||tl.disabled;if((!Qa||Qa.length===0||ds)&&da(tr,xl,{label:Ni.label})){var co;fs.push((0,ie.Z)((0,ie.Z)({},tl),{},(co={disabled:si},(0,J.Z)(co,Ni.label,ja(tr,xl,kr,Ni)),(0,J.Z)(co,de,xl),(0,J.Z)(co,Ni.children,void 0),co)))}Qa&&jo(tl[Ni.children],xl,si)}})}return jo(vi,[]),Fr&&fs.sort(function(Es,xs){return Fr(Es[de],xs[de],tr,Ni)}),dl!==!1&&dl>0?fs.slice(0,dl):fs},[tr,vi,Ni,kr,ja,ds,da,Fr,dl])},we="__RC_CASCADER_SPLIT__",Ne="SHOW_PARENT",Ee="SHOW_CHILD";function ge(tr){return tr.join(we)}function ye(tr){return tr.map(ge)}function xe(tr){return tr.split(we)}function be(tr){var vi=tr||{},Ni=vi.label,kr=vi.value,Qn=vi.children,ds=kr||"value";return{label:Ni||"label",value:ds,key:ds,children:Qn||"children"}}function Ie(tr,vi){var Ni,kr;return(Ni=tr.isLeaf)!==null&&Ni!==void 0?Ni:!((kr=tr[vi.children])!==null&&kr!==void 0&&kr.length)}function me(tr){var vi=tr.parentElement;if(vi){var Ni=tr.offsetTop-vi.offsetTop;Ni-vi.scrollTop<0?vi.scrollTo({top:Ni}):Ni+tr.offsetHeight-vi.scrollTop>vi.offsetHeight&&vi.scrollTo({top:Ni+tr.offsetHeight-vi.offsetHeight})}}function We(tr,vi){return tr.map(function(Ni){var kr;return(kr=Ni[de])===null||kr===void 0?void 0:kr.map(function(Qn){return Qn[vi.value]})})}function Ce(tr){return Array.isArray(tr)&&Array.isArray(tr[0])}function Pt(tr){return tr?Ce(tr)?tr:(tr.length===0?[]:[tr]).map(function(vi){return Array.isArray(vi)?vi:[vi]}):[]}function ct(tr,vi,Ni){var kr=new Set(tr),Qn=vi();return tr.filter(function(ds){var _a=Qn[ds],da=_a?_a.parent:null,zs=_a?_a.children:null;return _a&&_a.node.disabled?!0:Ni===Ee?!(zs&&zs.some(function(ja){return ja.key&&kr.has(ja.key)})):!(da&&!da.node.disabled&&kr.has(da.key))})}function Ue(tr,vi,Ni){for(var kr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Qn=vi,ds=[],_a=function(){var ja,Co,dl,Fr=tr[da],fs=(ja=Qn)===null||ja===void 0?void 0:ja.findIndex(function(Es){var xs=Es[Ni.value];return kr?String(xs)===String(Fr):xs===Fr}),jo=fs!==-1?(Co=Qn)===null||Co===void 0?void 0:Co[fs]:null;ds.push({value:(dl=jo==null?void 0:jo[Ni.value])!==null&&dl!==void 0?dl:Fr,index:fs,option:jo}),Qn=jo==null?void 0:jo[Ni.children]},da=0;da1){var dn=jo.slice(0,-1);tl(dn)}else ja(!1)},si=function(){var dn,Dn=((dn=xs[Es])===null||dn===void 0?void 0:dn[Ni.children])||[],Nn=Dn.find(function(dt){return!dt.disabled});if(Nn){var tt=[].concat((0,y.Z)(jo),[Nn[Ni.value]]);tl(tt)}};A.useImperativeHandle(tr,function(){return{onKeyDown:function(dn){var Dn=dn.which;switch(Dn){case ci.Z.UP:case ci.Z.DOWN:{var Nn=0;Dn===ci.Z.UP?Nn=-1:Dn===ci.Z.DOWN&&(Nn=1),Nn!==0&&xl(Nn);break}case ci.Z.LEFT:{if(zs)break;dl?si():Qa();break}case ci.Z.RIGHT:{if(zs)break;dl?Qa():si();break}case ci.Z.BACKSPACE:{zs||Qa();break}case ci.Z.ENTER:{if(jo.length){var tt=xs[Es],dt=(tt==null?void 0:tt[de])||[];dt.length?ds(dt.map(function(vt){return vt[Ni.value]}),dt[dt.length-1]):ds(jo,xs[Es])}break}case ci.Z.ESC:ja(!1),Co&&dn.stopPropagation()}},onKeyUp:function(){}}})},wi=A.forwardRef(function(tr,vi){var Ni,kr,Qn,ds,_a=tr.prefixCls,da=tr.multiple,zs=tr.searchValue,ja=tr.toggleOpen,Co=tr.notFoundContent,dl=tr.direction,Fr=tr.open,fs=A.useRef(),jo=dl==="rtl",Es=A.useContext(j),xs=Es.options,Za=Es.values,tl=Es.halfValues,xl=Es.fieldNames,Qa=Es.changeOnSelect,si=Es.onSelect,co=Es.searchOptions,dn=Es.dropdownPrefixCls,Dn=Es.loadData,Nn=Es.expandTrigger,tt=dn||_a,dt=A.useState([]),vt=(0,N.Z)(dt,2),ze=vt[0],lt=vt[1],Et=function(Nl){if(!(!Dn||zs)){var cs=Ue(Nl,xs,xl),zi=cs.map(function(ms){var Ua=ms.option;return Ua}),Ji=zi[zi.length-1];if(Ji&&!Ie(Ji,xl)){var ta=ge(Nl);lt(function(ms){return[].concat((0,y.Z)(ms),[ta])}),Dn(zi)}}};A.useEffect(function(){ze.length&&ze.forEach(function(ia){var Nl=xe(ia),cs=Ue(Nl,xs,xl,!0).map(function(Ji){var ta=Ji.option;return ta}),zi=cs[cs.length-1];(!zi||zi[xl.children]||Ie(zi,xl))&<(function(Ji){return Ji.filter(function(ta){return ta!==ia})})})},[xs,ze,xl]);var an=A.useMemo(function(){return new Set(ye(Za))},[Za]),jn=A.useMemo(function(){return new Set(ye(tl))},[tl]),xr=_o(da,Fr),Ti=(0,N.Z)(xr,2),$i=Ti[0],Vi=Ti[1],us=function(Nl){Vi(Nl),Et(Nl)},ks=function(Nl){var cs=Nl.disabled,zi=Ie(Nl,xl);return!cs&&(zi||Qa||da)},Os=function(Nl,cs){var zi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;si(Nl),!da&&(cs||Qa&&(Nn==="hover"||zi))&&ja(!1)},pa=A.useMemo(function(){return zs?co:xs},[zs,co,xs]),no=A.useMemo(function(){for(var ia=[{options:pa}],Nl=pa,cs=We(Nl,xl),zi=function(){var Ua=$i[Ji],ju=Nl.find(function(Pc,ho){return(cs[ho]?ge(cs[ho]):Pc[xl.value])===Ua}),rc=ju==null?void 0:ju[xl.children];if(!(rc!=null&&rc.length))return"break";Nl=rc,ia.push({options:rc})},Ji=0;Ji<$i.length;Ji+=1){var ta=zi();if(ta==="break")break}return ia},[pa,$i,xl]),Cs=function(Nl,cs){ks(cs)&&Os(Nl,Ie(cs,xl),!0)};Bi(vi,pa,xl,$i,us,Cs,{direction:dl,searchValue:zs,toggleOpen:ja,open:Fr}),A.useEffect(function(){for(var ia=0;ia<$i.length;ia+=1){var Nl,cs=$i.slice(0,ia+1),zi=ge(cs),Ji=(Nl=fs.current)===null||Nl===void 0?void 0:Nl.querySelector('li[data-path-key="'.concat(zi.replace(/\\{0,2}"/g,'\\"'),'"]'));Ji&&me(Ji)}},[$i]);var ea=!((Ni=no[0])!==null&&Ni!==void 0&&(kr=Ni.options)!==null&&kr!==void 0&&kr.length),fa=[(Qn={},(0,J.Z)(Qn,xl.value,"__EMPTY__"),(0,J.Z)(Qn,ss,Co),(0,J.Z)(Qn,"disabled",!0),Qn)],Bl=(0,ie.Z)((0,ie.Z)({},tr),{},{multiple:!ea&&da,onSelect:Os,onActive:us,onToggleOpen:ja,checkedSet:an,halfCheckedSet:jn,loadingKeys:ze,isSelectable:ks}),Ma=ea?[{options:fa}]:no,gl=Ma.map(function(ia,Nl){var cs=$i.slice(0,Nl),zi=$i[Nl];return A.createElement(ve,(0,k.Z)({key:Nl},Bl,{searchValue:zs,prefixCls:tt,options:ia.options,prevValuePath:cs,activeValue:zi}))});return A.createElement(vr,{open:Fr},A.createElement("div",{className:z()("".concat(tt,"-menus"),(ds={},(0,J.Z)(ds,"".concat(tt,"-menu-empty"),ea),(0,J.Z)(ds,"".concat(tt,"-rtl"),jo),ds)),ref:fs},gl))}),io=wi,ln=A.forwardRef(function(tr,vi){var Ni=(0,I.lk)();return A.createElement(io,(0,k.Z)({},tr,Ni,{ref:vi}))}),Ve=ln,_t=m(56790);function Ct(){}function jt(tr){var vi,Ni=tr,kr=Ni.prefixCls,Qn=kr===void 0?"rc-cascader":kr,ds=Ni.style,_a=Ni.className,da=Ni.options,zs=Ni.checkable,ja=Ni.defaultValue,Co=Ni.value,dl=Ni.fieldNames,Fr=Ni.changeOnSelect,fs=Ni.onChange,jo=Ni.showCheckedStrategy,Es=Ni.loadData,xs=Ni.expandTrigger,Za=Ni.expandIcon,tl=Za===void 0?">":Za,xl=Ni.loadingIcon,Qa=Ni.direction,si=Ni.notFoundContent,co=si===void 0?"Not Found":si,dn=!!zs,Dn=(0,_t.C8)(ja,{value:Co,postState:Pt}),Nn=(0,N.Z)(Dn,2),tt=Nn[0],dt=Nn[1],vt=A.useMemo(function(){return be(dl)},[JSON.stringify(dl)]),ze=_n(vt,da),lt=(0,N.Z)(ze,3),Et=lt[0],an=lt[1],jn=lt[2],xr=ht(Et,vt),Ti=to(dn,tt,an,jn,xr),$i=(0,N.Z)(Ti,3),Vi=$i[0],us=$i[1],ks=$i[2],Os=(0,_t.zX)(function(Bl){if(dt(Bl),fs){var Ma=Pt(Bl),gl=Ma.map(function(cs){return Ue(cs,Et,vt).map(function(zi){return zi.option})}),ia=dn?Ma:Ma[0],Nl=dn?gl:gl[0];fs(ia,Nl)}}),pa=oi(dn,Os,Vi,us,ks,an,jn,jo),no=(0,_t.zX)(function(Bl){pa(Bl)}),Cs=A.useMemo(function(){return{options:Et,fieldNames:vt,values:Vi,halfValues:us,changeOnSelect:Fr,onSelect:no,checkable:zs,searchOptions:[],dropdownPrefixCls:null,loadData:Es,expandTrigger:xs,expandIcon:tl,loadingIcon:xl,dropdownMenuColumnStyle:null}},[Et,vt,Vi,us,Fr,no,zs,Es,xs,tl,xl]),ea="".concat(Qn,"-panel"),fa=!Et.length;return A.createElement(j.Provider,{value:Cs},A.createElement("div",{className:z()(ea,(vi={},(0,J.Z)(vi,"".concat(ea,"-rtl"),Qa==="rtl"),(0,J.Z)(vi,"".concat(ea,"-empty"),fa),vi),_a),style:ds},fa?co:A.createElement(io,{prefixCls:Qn,searchValue:null,multiple:dn,toggleOpen:Ct,open:!0,direction:Qa})))}function on(tr){var vi=tr.onPopupVisibleChange,Ni=tr.popupVisible,kr=tr.popupClassName,Qn=tr.popupPlacement;warning(!vi,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(Ni===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(kr===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(Qn===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function Ot(tr,vi){if(tr){var Ni=function kr(Qn){for(var ds=0;ds":lt,an=tr.loadingIcon,jn=tr.children,xr=tr.dropdownMatchSelectWidth,Ti=xr===void 0?!1:xr,$i=tr.showCheckedStrategy,Vi=$i===void 0?Ne:$i,us=(0,w.Z)(tr,xt),ks=(0,C.ZP)(Ni),Os=!!dl,pa=(0,S.Z)(_a,{value:da,postState:Pt}),no=(0,N.Z)(pa,2),Cs=no[0],ea=no[1],fa=A.useMemo(function(){return be(ds)},[JSON.stringify(ds)]),Bl=_n(fa,tl),Ma=(0,N.Z)(Bl,3),gl=Ma[0],ia=Ma[1],Nl=Ma[2],cs=(0,S.Z)("",{value:jo,postState:function(Hl){return Hl||""}}),zi=(0,N.Z)(cs,2),Ji=zi[0],ta=zi[1],ms=function(Hl,Jl){ta(Hl),Jl.source!=="blur"&&Es&&Es(Hl)},Ua=Er(xs),ju=(0,N.Z)(Ua,2),rc=ju[0],Pc=ju[1],ho=ke(Ji,gl,fa,xl||Qn,Pc,zs),qi=ht(gl,fa),os=to(Os,Cs,ia,Nl,qi),$n=(0,N.Z)(os,3),mr=$n[0],Qr=$n[1],ni=$n[2],Ki=A.useMemo(function(){var qa=ye(mr),Hl=ct(qa,ia,Vi);return[].concat((0,y.Z)(ni),(0,y.Z)(Nl(Hl)))},[mr,ia,Nl,ni,Vi]),ro=bt(Ki,gl,fa,Os,Co),Ei=(0,f.Z)(function(qa){if(ea(qa),ja){var Hl=Pt(qa),Jl=Hl.map(function(bn){return Ue(bn,gl,fa).map(function(Eu){return Eu.option})}),vu=Os?Hl:Hl[0],au=Os?Jl:Jl[0];ja(vu,au)}}),ns=oi(Os,Ei,mr,Qr,ni,ia,Nl,Vi),ua=(0,f.Z)(function(qa){(!Os||fs)&&ta(""),ns(qa)}),Na=function(Hl,Jl){if(Jl.type==="clear"){Ei([]);return}var vu=Jl.values[0],au=vu.valueCells;ua(au)},cl=co!==void 0?co:si,Zl=Dn||dn,Ml=dt||tt,Wa=function(Hl){vt==null||vt(Hl),ze==null||ze(Hl)},ku=A.useMemo(function(){return{options:gl,fieldNames:fa,values:mr,halfValues:Qr,changeOnSelect:zs,onSelect:ua,checkable:dl,searchOptions:ho,dropdownPrefixCls:xl,loadData:Qa,expandTrigger:Za,expandIcon:Et,loadingIcon:an,dropdownMenuColumnStyle:Nn}},[gl,fa,mr,Qr,zs,ua,dl,ho,xl,Qa,Za,Et,an,Nn]),Xs=!(Ji?ho:gl).length,Ya=Ji&&Pc.matchInputWidth||Xs?{}:{minWidth:"auto"};return A.createElement(j.Provider,{value:ku},A.createElement(I.Ac,(0,k.Z)({},us,{ref:vi,id:ks,prefixCls:Qn,autoClearSearchValue:fs,dropdownMatchSelectWidth:Ti,dropdownStyle:Ya,displayValues:ro,onDisplayValuesChange:Na,mode:Os?"multiple":void 0,searchValue:Ji,onSearch:ms,showSearch:rc,OptionList:Ve,emptyOptions:Xs,open:cl,dropdownClassName:Zl,placement:Ml,onDropdownVisibleChange:Wa,getRawInputElement:function(){return jn}})))});Ht.SHOW_PARENT=Ne,Ht.SHOW_CHILD=Ee,Ht.Panel=jt;var Zn=Ht,tn=Zn,hr=m(98423),Zi=m(33603),Ri=m(8745),Pi=m(9708),$o=m(53124),ys=m(88258),xn=m(98866),Hr=m(98675),Jr=m(65223),Yi=m(87244),xo=m(13458),na=m(43277),Vn=m(78642),Xn=m(4173);function Mr(tr,vi){const{getPrefixCls:Ni,direction:kr,renderEmpty:Qn}=A.useContext($o.E_),ds=vi||kr,_a=Ni("select",tr),da=Ni("cascader",tr);return[_a,da,ds,Qn]}function li(tr,vi){return A.useMemo(()=>vi?A.createElement("span",{className:`${tr}-checkbox-inner`}):!1,[vi])}var Cr=m(62946),qr=m(22508),ii=m(68843);function rn(tr,vi,Ni){let kr=Ni;Ni||(kr=vi?A.createElement(Cr.Z,null):A.createElement(ii.Z,null));const Qn=A.createElement("span",{className:`${tr}-menu-item-loading-icon`},A.createElement(qr.Z,{spin:!0}));return[kr,Qn]}var Jn=m(80110),Vr=m(67968),so=m(63185),rs=m(14747),pn=tr=>{const{prefixCls:vi,componentCls:Ni}=tr,kr=`${Ni}-menu-item`,Qn=` + &:active`]:{zIndex:2},"&[disabled]":{zIndex:0}},[`${hr}-icon-only`]:{fontSize:Zi}},me(`${hr}-primary`,Pi),me(`${hr}-danger`,Wo)]}};const Pt=tn=>{const{componentCls:hr,iconCls:Zi,fontWeight:Ri}=tn;return{[hr]:{outline:"none",position:"relative",display:"inline-block",fontWeight:Ri,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${tn.lineWidth}px ${tn.lineType} transparent`,cursor:"pointer",transition:`all ${tn.motionDurationMid} ${tn.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:tn.lineHeight,color:tn.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${hr}-icon`]:{lineHeight:0},[`> ${Zi} + span, > span + ${Zi}`]:{marginInlineStart:tn.marginXS},[`&:not(${hr}-icon-only) > ${hr}-icon`]:{[`&${hr}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:tn.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},(0,we.Qy)(tn)),[`&${hr}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${hr}-two-chinese-chars > *:not(${Zi})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${hr}-compact-item`]:{flex:"none"},[`&-compact-item${hr}-primary`]:{[`&:not([disabled]) + ${hr}-compact-item${hr}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-tn.lineWidth,insetInlineStart:-tn.lineWidth,display:"inline-block",width:tn.lineWidth,height:`calc(100% + ${tn.lineWidth*2}px)`,backgroundColor:tn.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${hr}-primary`]:{[`&:not([disabled]) + ${hr}-compact-vertical-item${hr}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-tn.lineWidth,insetInlineStart:-tn.lineWidth,display:"inline-block",width:`calc(100% + ${tn.lineWidth*2}px)`,height:tn.lineWidth,backgroundColor:tn.colorPrimaryHover,content:'""'}}}}}}},ct=(tn,hr,Zi)=>({[`&:not(:disabled):not(${tn}-disabled)`]:{"&:hover":hr,"&:active":Zi}}),He=tn=>({minWidth:tn.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),wt=tn=>({borderRadius:tn.controlHeight,paddingInlineStart:tn.controlHeight/2,paddingInlineEnd:tn.controlHeight/2}),dt=tn=>({cursor:"not-allowed",borderColor:tn.borderColorDisabled,color:tn.colorTextDisabled,backgroundColor:tn.colorBgContainerDisabled,boxShadow:"none"}),Bt=(tn,hr,Zi,Ri,Pi,Wo,ys,xn)=>({[`&${tn}-background-ghost`]:Object.assign(Object.assign({color:Zi||void 0,backgroundColor:hr,borderColor:Ri||void 0,boxShadow:"none"},ct(tn,Object.assign({backgroundColor:hr},ys),Object.assign({backgroundColor:hr},xn))),{"&:disabled":{cursor:"not-allowed",color:Pi||void 0,borderColor:Wo||void 0}})}),gt=tn=>({[`&:disabled, &${tn.componentCls}-disabled`]:Object.assign({},dt(tn))}),_n=tn=>Object.assign({},gt(tn)),Bn=tn=>({[`&:disabled, &${tn.componentCls}-disabled`]:{cursor:"not-allowed",color:tn.colorTextDisabled}}),Er=tn=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_n(tn)),{backgroundColor:tn.defaultBg,borderColor:tn.defaultBorderColor,color:tn.defaultColor,boxShadow:tn.defaultShadow}),ct(tn.componentCls,{color:tn.colorPrimaryHover,borderColor:tn.colorPrimaryHover},{color:tn.colorPrimaryActive,borderColor:tn.colorPrimaryActive})),Bt(tn.componentCls,tn.ghostBg,tn.defaultGhostColor,tn.defaultGhostBorderColor,tn.colorTextDisabled,tn.colorBorder)),{[`&${tn.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:tn.colorError,borderColor:tn.colorError},ct(tn.componentCls,{color:tn.colorErrorHover,borderColor:tn.colorErrorBorderHover},{color:tn.colorErrorActive,borderColor:tn.colorErrorActive})),Bt(tn.componentCls,tn.ghostBg,tn.colorError,tn.colorError,tn.colorTextDisabled,tn.colorBorder)),gt(tn))}),Yr=tn=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_n(tn)),{color:tn.primaryColor,backgroundColor:tn.colorPrimary,boxShadow:tn.primaryShadow}),ct(tn.componentCls,{color:tn.colorTextLightSolid,backgroundColor:tn.colorPrimaryHover},{color:tn.colorTextLightSolid,backgroundColor:tn.colorPrimaryActive})),Bt(tn.componentCls,tn.ghostBg,tn.colorPrimary,tn.colorPrimary,tn.colorTextDisabled,tn.colorBorder,{color:tn.colorPrimaryHover,borderColor:tn.colorPrimaryHover},{color:tn.colorPrimaryActive,borderColor:tn.colorPrimaryActive})),{[`&${tn.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:tn.colorError,boxShadow:tn.dangerShadow,color:tn.dangerColor},ct(tn.componentCls,{backgroundColor:tn.colorErrorHover},{backgroundColor:tn.colorErrorActive})),Bt(tn.componentCls,tn.ghostBg,tn.colorError,tn.colorError,tn.colorTextDisabled,tn.colorBorder,{color:tn.colorErrorHover,borderColor:tn.colorErrorHover},{color:tn.colorErrorActive,borderColor:tn.colorErrorActive})),gt(tn))}),oi=tn=>Object.assign(Object.assign({},Er(tn)),{borderStyle:"dashed"}),to=tn=>Object.assign(Object.assign(Object.assign({color:tn.colorLink},ct(tn.componentCls,{color:tn.colorLinkHover,backgroundColor:tn.linkHoverBg},{color:tn.colorLinkActive})),Bn(tn)),{[`&${tn.componentCls}-dangerous`]:Object.assign(Object.assign({color:tn.colorError},ct(tn.componentCls,{color:tn.colorErrorHover},{color:tn.colorErrorActive})),Bn(tn))}),yo=tn=>Object.assign(Object.assign(Object.assign({},ct(tn.componentCls,{color:tn.colorText,backgroundColor:tn.textHoverBg},{color:tn.colorText,backgroundColor:tn.colorBgTextActive})),Bn(tn)),{[`&${tn.componentCls}-dangerous`]:Object.assign(Object.assign({color:tn.colorError},Bn(tn)),ct(tn.componentCls,{color:tn.colorErrorHover,backgroundColor:tn.colorErrorBg},{color:tn.colorErrorHover,backgroundColor:tn.colorErrorBg}))}),yr=tn=>{const{componentCls:hr}=tn;return{[`${hr}-default`]:Er(tn),[`${hr}-primary`]:Yr(tn),[`${hr}-dashed`]:oi(tn),[`${hr}-link`]:to(tn),[`${hr}-text`]:yo(tn),[`${hr}-ghost`]:Bt(tn.componentCls,tn.ghostBg,tn.colorBgContainer,tn.colorBgContainer,tn.colorTextDisabled,tn.colorBorder)}},Po=function(tn){let hr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:Zi,controlHeight:Ri,fontSize:Pi,lineHeight:Wo,lineWidth:ys,borderRadius:xn,buttonPaddingHorizontal:Hr,iconCls:Jr}=tn,Yi=Math.max(0,(Ri-Pi*Wo)/2-ys),xo=`${Zi}-icon-only`;return[{[`${Zi}${hr}`]:{fontSize:Pi,height:Ri,padding:`${Yi}px ${Hr}px`,borderRadius:xn,[`&${xo}`]:{width:Ri,paddingInlineStart:0,paddingInlineEnd:0,[`&${Zi}-round`]:{width:"auto"},[Jr]:{fontSize:tn.buttonIconOnlyFontSize}},[`&${Zi}-loading`]:{opacity:tn.opacityLoading,cursor:"default"},[`${Zi}-loading-icon`]:{transition:`width ${tn.motionDurationSlow} ${tn.motionEaseInOut}, opacity ${tn.motionDurationSlow} ${tn.motionEaseInOut}`}}},{[`${Zi}${Zi}-circle${hr}`]:He(tn)},{[`${Zi}${Zi}-round${hr}`]:wt(tn)}]},as=tn=>Po((0,Ce.TS)(tn,{fontSize:tn.contentFontSize})),ge=tn=>{const hr=(0,Ce.TS)(tn,{controlHeight:tn.controlHeightSM,fontSize:tn.contentFontSizeSM,padding:tn.paddingXS,buttonPaddingHorizontal:tn.paddingInlineSM,borderRadius:tn.borderRadiusSM,buttonIconOnlyFontSize:tn.onlyIconSizeSM});return Po(hr,`${tn.componentCls}-sm`)},_o=tn=>{const hr=(0,Ce.TS)(tn,{controlHeight:tn.controlHeightLG,fontSize:tn.contentFontSizeLG,buttonPaddingHorizontal:tn.paddingInlineLG,borderRadius:tn.borderRadiusLG,buttonIconOnlyFontSize:tn.onlyIconSizeLG});return Po(hr,`${tn.componentCls}-lg`)},ci=tn=>{const{componentCls:hr}=tn;return{[hr]:{[`&${hr}-block`]:{width:"100%"}}}},Bi=tn=>{const{paddingInline:hr,onlyIconSize:Zi}=tn;return(0,Ce.TS)(tn,{buttonPaddingHorizontal:hr,buttonIconOnlyFontSize:Zi})},Ci=tn=>({fontWeight:400,defaultShadow:`0 ${tn.controlOutlineWidth}px 0 ${tn.controlTmpOutline}`,primaryShadow:`0 ${tn.controlOutlineWidth}px 0 ${tn.controlOutline}`,dangerShadow:`0 ${tn.controlOutlineWidth}px 0 ${tn.colorErrorOutline}`,primaryColor:tn.colorTextLightSolid,dangerColor:tn.colorTextLightSolid,borderColorDisabled:tn.colorBorder,defaultGhostColor:tn.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:tn.colorBgContainer,paddingInline:tn.paddingContentHorizontal-tn.lineWidth,paddingInlineLG:tn.paddingContentHorizontal-tn.lineWidth,paddingInlineSM:8-tn.lineWidth,onlyIconSize:tn.fontSizeLG,onlyIconSizeSM:tn.fontSizeLG-2,onlyIconSizeLG:tn.fontSizeLG+2,groupBorderColor:tn.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:tn.colorBgTextHover,defaultColor:tn.colorText,defaultBg:tn.colorBgContainer,defaultBorderColor:tn.colorBorder,defaultBorderColorDisabled:tn.colorBorder,contentFontSize:tn.fontSize,contentFontSizeSM:tn.fontSize,contentFontSizeLG:tn.fontSizeLG});var io=(0,Ae.Z)("Button",tn=>{const hr=Bi(tn);return[Pt(hr),ge(hr),as(hr),_o(hr),ci(hr),yr(hr),xe(hr)]},Ci),ln=m(73973);function Ve(tn,hr){return{[`&-item:not(${hr}-last-item)`]:{marginBottom:-tn.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function _t(tn,hr){return{[`&-item:not(${hr}-first-item):not(${hr}-last-item)`]:{borderRadius:0},[`&-item${hr}-first-item:not(${hr}-last-item)`]:{[`&, &${tn}-sm, &${tn}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${hr}-last-item:not(${hr}-first-item)`]:{[`&, &${tn}-sm, &${tn}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function xt(tn){const hr=`${tn.componentCls}-compact-vertical`;return{[hr]:Object.assign(Object.assign({},Ve(tn,hr)),_t(tn.componentCls,hr))}}var Wt=(0,Ae.b)(["Button","compact"],tn=>{const hr=Bi(tn);return[(0,ln.c)(hr),xt(hr)]},Ci),on=function(tn,hr){var Zi={};for(var Ri in tn)Object.prototype.hasOwnProperty.call(tn,Ri)&&hr.indexOf(Ri)<0&&(Zi[Ri]=tn[Ri]);if(tn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pi=0,Ri=Object.getOwnPropertySymbols(tn);Pi{var Zi,Ri;const{loading:Pi=!1,prefixCls:Wo,type:ys="default",danger:xn,shape:Hr="default",size:Jr,styles:Yi,disabled:xo,className:na,rootClassName:Un,children:Xn,icon:Mr,ghost:li=!1,block:wr=!1,htmlType:qr="button",classNames:ii,style:rn={}}=tn,Qn=on(tn,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:Vr,autoInsertSpaceInButton:so,direction:rs,button:zt}=(0,y.useContext)(w.E_),pn=Vr("btn",Wo),[br,Gr]=io(pn),ui=(0,y.useContext)(A.Z),xi=xo!=null?xo:ui,lo=(0,y.useContext)(W),Kr=(0,y.useMemo)(()=>Ot(Pi),[Pi]),[ti,ji]=(0,y.useState)(Kr.loading),[Tr,Qt]=(0,y.useState)(!1),Gn=(0,y.createRef)(),yi=(0,k.sQ)(hr,Gn),Ln=y.Children.count(Xn)===1&&!Mr&&!(0,ce.Te)(ys);(0,y.useEffect)(()=>{let Es=null;Kr.delay>0?Es=setTimeout(()=>{Es=null,ji(!0)},Kr.delay):ji(Kr.loading);function xs(){Es&&(clearTimeout(Es),Es=null)}return xs},[Kr]),(0,y.useEffect)(()=>{if(!yi||!yi.current||so===!1)return;const Es=yi.current.textContent;Ln&&(0,ce.aG)(Es)?Tr||Qt(!0):Tr&&Qt(!1)},[yi]);const Si=Es=>{const{onClick:xs}=tn;if(ti||xi){Es.preventDefault();return}xs==null||xs(Es)},tr=so!==!1,{compactSize:vi,compactItemClassnames:Ni}=(0,f.ri)(pn,rs),kr={large:"lg",small:"sm",middle:void 0},qn=(0,C.Z)(Es=>{var xs,Za;return(Za=(xs=Jr!=null?Jr:vi)!==null&&xs!==void 0?xs:lo)!==null&&Za!==void 0?Za:Es}),ds=qn&&kr[qn]||"",_a=ti?"loading":Mr,da=(0,z.Z)(Qn,["navigate"]),zs=b()(pn,Gr,{[`${pn}-${Hr}`]:Hr!=="default"&&Hr,[`${pn}-${ys}`]:ys,[`${pn}-${ds}`]:ds,[`${pn}-icon-only`]:!Xn&&Xn!==0&&!!_a,[`${pn}-background-ghost`]:li&&!(0,ce.Te)(ys),[`${pn}-loading`]:ti,[`${pn}-two-chinese-chars`]:Tr&&tr&&!ti,[`${pn}-block`]:wr,[`${pn}-dangerous`]:!!xn,[`${pn}-rtl`]:rs==="rtl"},Ni,na,Un,zt==null?void 0:zt.className),Wa=Object.assign(Object.assign({},zt==null?void 0:zt.style),rn),Co=b()(ii==null?void 0:ii.icon,(Zi=zt==null?void 0:zt.classNames)===null||Zi===void 0?void 0:Zi.icon),cl=Object.assign(Object.assign({},(Yi==null?void 0:Yi.icon)||{}),((Ri=zt==null?void 0:zt.styles)===null||Ri===void 0?void 0:Ri.icon)||{}),Fr=Mr&&!ti?y.createElement(he,{prefixCls:pn,className:Co,style:cl},Mr):y.createElement(ye,{existIcon:!!Mr,prefixCls:pn,loading:!!ti}),fs=Xn||Xn===0?(0,ce.hU)(Xn,Ln&&tr):null;if(da.href!==void 0)return br(y.createElement("a",Object.assign({},da,{className:b()(zs,{[`${pn}-disabled`]:xi}),style:Wa,onClick:Si,ref:yi}),Fr,fs));let jo=y.createElement("button",Object.assign({},Qn,{type:qr,className:zs,style:Wa,onClick:Si,disabled:xi,ref:yi}),Fr,fs,Ni&&y.createElement(Wt,{key:"compact",prefixCls:pn}));return(0,ce.Te)(ys)||(jo=y.createElement(N.Z,{component:"Button",disabled:!!ti},jo)),br(jo)},bt=(0,y.forwardRef)(Tt);bt.Group=re,bt.__ANT_BUTTON=!0;var Ht=bt,Wn=Ht},68069:function(nt,V,m){"use strict";m.d(V,{Z:function(){return Si}});var y=m(42371),I=m(77617),b=m(12124),z=m.n(b),k=m(26508),N=m(39718),w=m(52528),A=m(24955),C=m(2748),f=m(61759),S=m(41760),P=I.createContext(null),W=P,ne=m(91002),re=m(80268),ce=m(74710),pe="__rc_cascader_search_mark__",he=function(vi,Ni,kr){var qn=kr.label;return Ni.some(function(ds){return String(ds[qn]).toLowerCase().includes(vi.toLowerCase())})},fe=function(vi,Ni,kr,qn){return Ni.map(function(ds){return ds[qn.label]}).join(" / ")},Be=function(tr,vi,Ni,kr,qn,ds){var _a=qn.filter,da=_a===void 0?he:_a,zs=qn.render,Wa=zs===void 0?fe:zs,Co=qn.limit,cl=Co===void 0?50:Co,Fr=qn.sort;return I.useMemo(function(){var fs=[];if(!tr)return[];function jo(Es,xs){var Za=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Es.forEach(function(tl){if(!(!Fr&&cl!==!1&&cl>0&&fs.length>=cl)){var xl=[].concat((0,y.Z)(xs),[tl]),Qa=tl[Ni.children],si=Za||tl.disabled;if((!Qa||Qa.length===0||ds)&&da(tr,xl,{label:Ni.label})){var co;fs.push((0,ce.Z)((0,ce.Z)({},tl),{},(co={disabled:si},(0,re.Z)(co,Ni.label,Wa(tr,xl,kr,Ni)),(0,re.Z)(co,pe,xl),(0,re.Z)(co,Ni.children,void 0),co)))}Qa&&jo(tl[Ni.children],xl,si)}})}return jo(vi,[]),Fr&&fs.sort(function(Es,xs){return Fr(Es[pe],xs[pe],tr,Ni)}),cl!==!1&&cl>0?fs.slice(0,cl):fs},[tr,vi,Ni,kr,Wa,ds,da,Fr,cl])},Ie="__RC_CASCADER_SPLIT__",We="SHOW_PARENT",De="SHOW_CHILD";function ve(tr){return tr.join(Ie)}function ye(tr){return tr.map(ve)}function we(tr){return tr.split(Ie)}function Ce(tr){var vi=tr||{},Ni=vi.label,kr=vi.value,qn=vi.children,ds=kr||"value";return{label:Ni||"label",value:ds,key:ds,children:qn||"children"}}function Ae(tr,vi){var Ni,kr;return(Ni=tr.isLeaf)!==null&&Ni!==void 0?Ni:!((kr=tr[vi.children])!==null&&kr!==void 0&&kr.length)}function me(tr){var vi=tr.parentElement;if(vi){var Ni=tr.offsetTop-vi.offsetTop;Ni-vi.scrollTop<0?vi.scrollTo({top:Ni}):Ni+tr.offsetHeight-vi.scrollTop>vi.offsetHeight&&vi.scrollTo({top:Ni+tr.offsetHeight-vi.offsetHeight})}}function je(tr,vi){return tr.map(function(Ni){var kr;return(kr=Ni[pe])===null||kr===void 0?void 0:kr.map(function(qn){return qn[vi.value]})})}function xe(tr){return Array.isArray(tr)&&Array.isArray(tr[0])}function Pt(tr){return tr?xe(tr)?tr:(tr.length===0?[]:[tr]).map(function(vi){return Array.isArray(vi)?vi:[vi]}):[]}function ct(tr,vi,Ni){var kr=new Set(tr),qn=vi();return tr.filter(function(ds){var _a=qn[ds],da=_a?_a.parent:null,zs=_a?_a.children:null;return _a&&_a.node.disabled?!0:Ni===De?!(zs&&zs.some(function(Wa){return Wa.key&&kr.has(Wa.key)})):!(da&&!da.node.disabled&&kr.has(da.key))})}function He(tr,vi,Ni){for(var kr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,qn=vi,ds=[],_a=function(){var Wa,Co,cl,Fr=tr[da],fs=(Wa=qn)===null||Wa===void 0?void 0:Wa.findIndex(function(Es){var xs=Es[Ni.value];return kr?String(xs)===String(Fr):xs===Fr}),jo=fs!==-1?(Co=qn)===null||Co===void 0?void 0:Co[fs]:null;ds.push({value:(cl=jo==null?void 0:jo[Ni.value])!==null&&cl!==void 0?cl:Fr,index:fs,option:jo}),qn=jo==null?void 0:jo[Ni.children]},da=0;da1){var dn=jo.slice(0,-1);tl(dn)}else Wa(!1)},si=function(){var dn,An=((dn=xs[Es])===null||dn===void 0?void 0:dn[Ni.children])||[],Nn=An.find(function(ht){return!ht.disabled});if(Nn){var tt=[].concat((0,y.Z)(jo),[Nn[Ni.value]]);tl(tt)}};I.useImperativeHandle(tr,function(){return{onKeyDown:function(dn){var An=dn.which;switch(An){case ci.Z.UP:case ci.Z.DOWN:{var Nn=0;An===ci.Z.UP?Nn=-1:An===ci.Z.DOWN&&(Nn=1),Nn!==0&&xl(Nn);break}case ci.Z.LEFT:{if(zs)break;cl?si():Qa();break}case ci.Z.RIGHT:{if(zs)break;cl?Qa():si();break}case ci.Z.BACKSPACE:{zs||Qa();break}case ci.Z.ENTER:{if(jo.length){var tt=xs[Es],ht=(tt==null?void 0:tt[pe])||[];ht.length?ds(ht.map(function(vt){return vt[Ni.value]}),ht[ht.length-1]):ds(jo,xs[Es])}break}case ci.Z.ESC:Wa(!1),Co&&dn.stopPropagation()}},onKeyUp:function(){}}})},Ci=I.forwardRef(function(tr,vi){var Ni,kr,qn,ds,_a=tr.prefixCls,da=tr.multiple,zs=tr.searchValue,Wa=tr.toggleOpen,Co=tr.notFoundContent,cl=tr.direction,Fr=tr.open,fs=I.useRef(),jo=cl==="rtl",Es=I.useContext(W),xs=Es.options,Za=Es.values,tl=Es.halfValues,xl=Es.fieldNames,Qa=Es.changeOnSelect,si=Es.onSelect,co=Es.searchOptions,dn=Es.dropdownPrefixCls,An=Es.loadData,Nn=Es.expandTrigger,tt=dn||_a,ht=I.useState([]),vt=(0,N.Z)(ht,2),Fe=vt[0],lt=vt[1],Et=function(Nl){if(!(!An||zs)){var cs=He(Nl,xs,xl),zi=cs.map(function(ms){var Ua=ms.option;return Ua}),qi=zi[zi.length-1];if(qi&&!Ae(qi,xl)){var ta=ve(Nl);lt(function(ms){return[].concat((0,y.Z)(ms),[ta])}),An(zi)}}};I.useEffect(function(){Fe.length&&Fe.forEach(function(oa){var Nl=we(oa),cs=He(Nl,xs,xl,!0).map(function(qi){var ta=qi.option;return ta}),zi=cs[cs.length-1];(!zi||zi[xl.children]||Ae(zi,xl))&<(function(qi){return qi.filter(function(ta){return ta!==oa})})})},[xs,Fe,xl]);var an=I.useMemo(function(){return new Set(ye(Za))},[Za]),jn=I.useMemo(function(){return new Set(ye(tl))},[tl]),Cr=_o(da,Fr),Ti=(0,N.Z)(Cr,2),$i=Ti[0],Vi=Ti[1],us=function(Nl){Vi(Nl),Et(Nl)},ks=function(Nl){var cs=Nl.disabled,zi=Ae(Nl,xl);return!cs&&(zi||Qa||da)},Os=function(Nl,cs){var zi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;si(Nl),!da&&(cs||Qa&&(Nn==="hover"||zi))&&Wa(!1)},pa=I.useMemo(function(){return zs?co:xs},[zs,co,xs]),no=I.useMemo(function(){for(var oa=[{options:pa}],Nl=pa,cs=je(Nl,xl),zi=function(){var Ua=$i[qi],$u=Nl.find(function(Pc,ho){return(cs[ho]?ve(cs[ho]):Pc[xl.value])===Ua}),rc=$u==null?void 0:$u[xl.children];if(!(rc!=null&&rc.length))return"break";Nl=rc,oa.push({options:rc})},qi=0;qi<$i.length;qi+=1){var ta=zi();if(ta==="break")break}return oa},[pa,$i,xl]),Cs=function(Nl,cs){ks(cs)&&Os(Nl,Ae(cs,xl),!0)};Bi(vi,pa,xl,$i,us,Cs,{direction:cl,searchValue:zs,toggleOpen:Wa,open:Fr}),I.useEffect(function(){for(var oa=0;oa<$i.length;oa+=1){var Nl,cs=$i.slice(0,oa+1),zi=ve(cs),qi=(Nl=fs.current)===null||Nl===void 0?void 0:Nl.querySelector('li[data-path-key="'.concat(zi.replace(/\\{0,2}"/g,'\\"'),'"]'));qi&&me(qi)}},[$i]);var ea=!((Ni=no[0])!==null&&Ni!==void 0&&(kr=Ni.options)!==null&&kr!==void 0&&kr.length),fa=[(qn={},(0,re.Z)(qn,xl.value,"__EMPTY__"),(0,re.Z)(qn,as,Co),(0,re.Z)(qn,"disabled",!0),qn)],Bl=(0,ce.Z)((0,ce.Z)({},tr),{},{multiple:!ea&&da,onSelect:Os,onActive:us,onToggleOpen:Wa,checkedSet:an,halfCheckedSet:jn,loadingKeys:Fe,isSelectable:ks}),Ma=ea?[{options:fa}]:no,pl=Ma.map(function(oa,Nl){var cs=$i.slice(0,Nl),zi=$i[Nl];return I.createElement(ge,(0,k.Z)({key:Nl},Bl,{searchValue:zs,prefixCls:tt,options:oa.options,prevValuePath:cs,activeValue:zi}))});return I.createElement(yr,{open:Fr},I.createElement("div",{className:z()("".concat(tt,"-menus"),(ds={},(0,re.Z)(ds,"".concat(tt,"-menu-empty"),ea),(0,re.Z)(ds,"".concat(tt,"-rtl"),jo),ds)),ref:fs},pl))}),io=Ci,ln=I.forwardRef(function(tr,vi){var Ni=(0,A.lk)();return I.createElement(io,(0,k.Z)({},tr,Ni,{ref:vi}))}),Ve=ln,_t=m(95470);function xt(){}function Wt(tr){var vi,Ni=tr,kr=Ni.prefixCls,qn=kr===void 0?"rc-cascader":kr,ds=Ni.style,_a=Ni.className,da=Ni.options,zs=Ni.checkable,Wa=Ni.defaultValue,Co=Ni.value,cl=Ni.fieldNames,Fr=Ni.changeOnSelect,fs=Ni.onChange,jo=Ni.showCheckedStrategy,Es=Ni.loadData,xs=Ni.expandTrigger,Za=Ni.expandIcon,tl=Za===void 0?">":Za,xl=Ni.loadingIcon,Qa=Ni.direction,si=Ni.notFoundContent,co=si===void 0?"Not Found":si,dn=!!zs,An=(0,_t.C8)(Wa,{value:Co,postState:Pt}),Nn=(0,N.Z)(An,2),tt=Nn[0],ht=Nn[1],vt=I.useMemo(function(){return Ce(cl)},[JSON.stringify(cl)]),Fe=_n(vt,da),lt=(0,N.Z)(Fe,3),Et=lt[0],an=lt[1],jn=lt[2],Cr=dt(Et,vt),Ti=to(dn,tt,an,jn,Cr),$i=(0,N.Z)(Ti,3),Vi=$i[0],us=$i[1],ks=$i[2],Os=(0,_t.zX)(function(Bl){if(ht(Bl),fs){var Ma=Pt(Bl),pl=Ma.map(function(cs){return He(cs,Et,vt).map(function(zi){return zi.option})}),oa=dn?Ma:Ma[0],Nl=dn?pl:pl[0];fs(oa,Nl)}}),pa=oi(dn,Os,Vi,us,ks,an,jn,jo),no=(0,_t.zX)(function(Bl){pa(Bl)}),Cs=I.useMemo(function(){return{options:Et,fieldNames:vt,values:Vi,halfValues:us,changeOnSelect:Fr,onSelect:no,checkable:zs,searchOptions:[],dropdownPrefixCls:null,loadData:Es,expandTrigger:xs,expandIcon:tl,loadingIcon:xl,dropdownMenuColumnStyle:null}},[Et,vt,Vi,us,Fr,no,zs,Es,xs,tl,xl]),ea="".concat(qn,"-panel"),fa=!Et.length;return I.createElement(W.Provider,{value:Cs},I.createElement("div",{className:z()(ea,(vi={},(0,re.Z)(vi,"".concat(ea,"-rtl"),Qa==="rtl"),(0,re.Z)(vi,"".concat(ea,"-empty"),fa),vi),_a),style:ds},fa?co:I.createElement(io,{prefixCls:qn,searchValue:null,multiple:dn,toggleOpen:xt,open:!0,direction:Qa})))}function on(tr){var vi=tr.onPopupVisibleChange,Ni=tr.popupVisible,kr=tr.popupClassName,qn=tr.popupPlacement;warning(!vi,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(Ni===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(kr===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(qn===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function Ot(tr,vi){if(tr){var Ni=function kr(qn){for(var ds=0;ds":lt,an=tr.loadingIcon,jn=tr.children,Cr=tr.dropdownMatchSelectWidth,Ti=Cr===void 0?!1:Cr,$i=tr.showCheckedStrategy,Vi=$i===void 0?We:$i,us=(0,w.Z)(tr,bt),ks=(0,C.ZP)(Ni),Os=!!cl,pa=(0,S.Z)(_a,{value:da,postState:Pt}),no=(0,N.Z)(pa,2),Cs=no[0],ea=no[1],fa=I.useMemo(function(){return Ce(ds)},[JSON.stringify(ds)]),Bl=_n(fa,tl),Ma=(0,N.Z)(Bl,3),pl=Ma[0],oa=Ma[1],Nl=Ma[2],cs=(0,S.Z)("",{value:jo,postState:function(Ul){return Ul||""}}),zi=(0,N.Z)(cs,2),qi=zi[0],ta=zi[1],ms=function(Ul,ql){ta(Ul),ql.source!=="blur"&&Es&&Es(Ul)},Ua=Er(xs),$u=(0,N.Z)(Ua,2),rc=$u[0],Pc=$u[1],ho=Be(qi,pl,fa,xl||qn,Pc,zs),Ji=dt(pl,fa),ss=to(Os,Cs,oa,Nl,Ji),$n=(0,N.Z)(ss,3),mr=$n[0],Qr=$n[1],ni=$n[2],Ki=I.useMemo(function(){var qa=ye(mr),Ul=ct(qa,oa,Vi);return[].concat((0,y.Z)(ni),(0,y.Z)(Nl(Ul)))},[mr,oa,Nl,ni,Vi]),ro=wt(Ki,pl,fa,Os,Co),Ei=(0,f.Z)(function(qa){if(ea(qa),Wa){var Ul=Pt(qa),ql=Ul.map(function(bn){return He(bn,pl,fa).map(function(Eu){return Eu.option})}),vu=Os?Ul:Ul[0],au=Os?ql:ql[0];Wa(vu,au)}}),ns=oi(Os,Ei,mr,Qr,ni,oa,Nl,Vi),ca=(0,f.Z)(function(qa){(!Os||fs)&&ta(""),ns(qa)}),Na=function(Ul,ql){if(ql.type==="clear"){Ei([]);return}var vu=ql.values[0],au=vu.valueCells;ca(au)},ul=co!==void 0?co:si,Hl=An||dn,Ml=ht||tt,ja=function(Ul){vt==null||vt(Ul),Fe==null||Fe(Ul)},Pu=I.useMemo(function(){return{options:pl,fieldNames:fa,values:mr,halfValues:Qr,changeOnSelect:zs,onSelect:ca,checkable:cl,searchOptions:ho,dropdownPrefixCls:xl,loadData:Qa,expandTrigger:Za,expandIcon:Et,loadingIcon:an,dropdownMenuColumnStyle:Nn}},[pl,fa,mr,Qr,zs,ca,cl,ho,xl,Qa,Za,Et,an,Nn]),Xs=!(qi?ho:pl).length,Ya=qi&&Pc.matchInputWidth||Xs?{}:{minWidth:"auto"};return I.createElement(W.Provider,{value:Pu},I.createElement(A.Ac,(0,k.Z)({},us,{ref:vi,id:ks,prefixCls:qn,autoClearSearchValue:fs,dropdownMatchSelectWidth:Ti,dropdownStyle:Ya,displayValues:ro,onDisplayValuesChange:Na,mode:Os?"multiple":void 0,searchValue:qi,onSearch:ms,showSearch:rc,OptionList:Ve,emptyOptions:Xs,open:ul,dropdownClassName:Hl,placement:Ml,onDropdownVisibleChange:ja,getRawInputElement:function(){return jn}})))});Ht.SHOW_PARENT=We,Ht.SHOW_CHILD=De,Ht.Panel=Wt;var Wn=Ht,tn=Wn,hr=m(39029),Zi=m(26612),Ri=m(91202),Pi=m(5997),Wo=m(67392),ys=m(47316),xn=m(81689),Hr=m(21843),Jr=m(86818),Yi=m(79857),xo=m(5998),na=m(86755),Un=m(20446),Xn=m(58370);function Mr(tr,vi){const{getPrefixCls:Ni,direction:kr,renderEmpty:qn}=I.useContext(Wo.E_),ds=vi||kr,_a=Ni("select",tr),da=Ni("cascader",tr);return[_a,da,ds,qn]}function li(tr,vi){return I.useMemo(()=>vi?I.createElement("span",{className:`${tr}-checkbox-inner`}):!1,[vi])}var wr=m(52063),qr=m(38521),ii=m(22311);function rn(tr,vi,Ni){let kr=Ni;Ni||(kr=vi?I.createElement(wr.Z,null):I.createElement(ii.Z,null));const qn=I.createElement("span",{className:`${tr}-menu-item-loading-icon`},I.createElement(qr.Z,{spin:!0}));return[kr,qn]}var Qn=m(73973),Vr=m(24577),so=m(79148),rs=m(92068),pn=tr=>{const{prefixCls:vi,componentCls:Ni}=tr,kr=`${Ni}-menu-item`,qn=` &${kr}-expand ${kr}-expand-icon, ${kr}-loading-icon -`;return[(0,so.C2)(`${vi}-checkbox`,tr),{[Ni]:{"&-checkbox":{top:0,marginInlineEnd:tr.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${Ni}-menu-empty`]:{[`${Ni}-menu`]:{width:"100%",height:"auto",[kr]:{color:tr.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:tr.controlItemWidth,height:tr.dropdownHeight,margin:0,padding:tr.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${tr.lineWidth}px ${tr.lineType} ${tr.colorSplit}`},"&-item":Object.assign(Object.assign({},rs.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:tr.optionPadding,lineHeight:tr.lineHeight,cursor:"pointer",transition:`all ${tr.motionDurationMid}`,borderRadius:tr.borderRadiusSM,"&:hover":{background:tr.controlItemBgHover},"&-disabled":{color:tr.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[Qn]:{color:tr.colorTextDisabled}},[`&-active:not(${kr}-disabled)`]:{["&, &:hover"]:{fontWeight:tr.optionSelectedFontWeight,backgroundColor:tr.optionSelectedBg}},"&-content":{flex:"auto"},[Qn]:{marginInlineStart:tr.paddingXXS,color:tr.colorTextDescription,fontSize:tr.fontSizeIcon},"&-keyword":{color:tr.colorHighlight}})}}}]};const _r=tr=>{const{componentCls:vi,antCls:Ni}=tr;return[{[vi]:{width:tr.controlWidth}},{[`${vi}-dropdown`]:[{[`&${Ni}-select-dropdown`]:{padding:0}},pn(tr)]},{[`${vi}-dropdown-rtl`]:{direction:"rtl"}},(0,Jn.c)(tr)]},Gr=tr=>{const vi=Math.round((tr.controlHeight-tr.fontSize*tr.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:tr.controlItemBgActive,optionSelectedFontWeight:tr.fontWeightStrong,optionPadding:`${vi}px ${tr.paddingSM}px`,menuPadding:tr.paddingXXS}};var ui=(0,Vr.Z)("Cascader",tr=>[_r(tr)],Gr);const Ci=tr=>{const{componentCls:vi}=tr;return{[`${vi}-panel`]:[pn(tr),{display:"inline-flex",border:`${tr.lineWidth}px ${tr.lineType} ${tr.colorSplit}`,borderRadius:tr.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${vi}-menus`]:{alignItems:"stretch"},[`${vi}-menu`]:{height:"auto"},"&-empty":{padding:tr.paddingXXS}}]}};var lo=(0,Vr.Z)(["Cascader","Panel"],tr=>Ci(tr),Gr);function Kr(tr){const{prefixCls:vi,className:Ni,multiple:kr,rootClassName:Qn,notFoundContent:ds,direction:_a,expandIcon:da}=tr,[zs,ja,Co,dl]=Mr(vi,_a),[,Fr]=ui(ja);lo(ja);const fs=Co==="rtl",[jo,Es]=rn(zs,fs,da),xs=ds||(dl==null?void 0:dl("Cascader"))||A.createElement(ys.Z,{componentName:"Cascader"}),Za=li(ja,kr);return A.createElement(jt,Object.assign({},tr,{checkable:Za,prefixCls:ja,className:z()(Ni,Fr,Qn),notFoundContent:xs,direction:Co,expandIcon:jo,loadingIcon:Es}))}var ti=function(tr,vi){var Ni={};for(var kr in tr)Object.prototype.hasOwnProperty.call(tr,kr)&&vi.indexOf(kr)<0&&(Ni[kr]=tr[kr]);if(tr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qn=0,kr=Object.getOwnPropertySymbols(tr);Qnzs===0?[da]:[].concat((0,y.Z)(_a),[vi,da]),[]),Qn=[];let ds=0;return kr.forEach((_a,da)=>{const zs=ds+_a.length;let ja=tr.slice(ds,zs);ds=zs,da%2===1&&(ja=A.createElement("span",{className:`${Ni}-menu-item-keyword`,key:`separator-${da}`},ja)),Qn.push(ja)}),Qn}const Gn=(tr,vi,Ni,kr)=>{const Qn=[],ds=tr.toLowerCase();return vi.forEach((_a,da)=>{da!==0&&Qn.push(" / ");let zs=_a[kr.label];const ja=typeof zs;(ja==="string"||ja==="number")&&(zs=Qt(String(zs),ds,Ni)),Qn.push(zs)}),Qn},yi=A.forwardRef((tr,vi)=>{const{prefixCls:Ni,size:kr,disabled:Qn,className:ds,rootClassName:_a,multiple:da,bordered:zs=!0,transitionName:ja,choiceTransitionName:Co="",popupClassName:dl,dropdownClassName:Fr,expandIcon:fs,placement:jo,showSearch:Es,allowClear:xs=!0,notFoundContent:Za,direction:tl,getPopupContainer:xl,status:Qa,showArrow:si,builtinPlacements:co,style:dn}=tr,Dn=ti(tr,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),Nn=(0,hr.Z)(Dn,["suffixIcon"]),{getPopupContainer:tt,getPrefixCls:dt,popupOverflow:vt,cascader:ze}=A.useContext($o.E_),{status:lt,hasFeedback:Et,isFormItemInput:an,feedbackIcon:jn}=A.useContext(Jr.aM),xr=(0,Pi.F)(lt,Qa),[Ti,$i,Vi,us]=Mr(Ni,tl),ks=Vi==="rtl",Os=dt(),[pa,no]=(0,Yi.Z)(Ti),[Cs]=ui($i),{compactSize:ea,compactItemClassnames:fa}=(0,Xn.ri)(Ti,tl),Bl=Za||(us==null?void 0:us("Cascader"))||A.createElement(ys.Z,{componentName:"Cascader"}),Ma=z()(dl||Fr,`${$i}-dropdown`,{[`${$i}-dropdown-rtl`]:Vi==="rtl"},_a,no),gl=A.useMemo(()=>{if(!Es)return Es;let $n={render:Gn};return typeof Es=="object"&&($n=Object.assign(Object.assign({},$n),Es)),$n},[Es]),ia=(0,Hr.Z)($n=>{var mr;return(mr=kr!=null?kr:ea)!==null&&mr!==void 0?mr:$n}),Nl=A.useContext(xn.Z),cs=Qn!=null?Qn:Nl,[zi,Ji]=rn(Ti,ks,fs),ta=li($i,da),ms=(0,Vn.Z)(tr.suffixIcon,si),{suffixIcon:Ua,removeIcon:ju,clearIcon:rc}=(0,na.Z)(Object.assign(Object.assign({},tr),{hasFeedback:Et,feedbackIcon:jn,showSuffixIcon:ms,multiple:da,prefixCls:Ti,componentName:"Cascader"})),Pc=A.useMemo(()=>jo!==void 0?jo:ks?"bottomRight":"bottomLeft",[jo,ks]),ho=(0,xo.Z)(co,vt),qi=xs===!0?{clearIcon:rc}:xs,os=A.createElement(tn,Object.assign({prefixCls:Ti,className:z()(!Ni&&$i,{[`${Ti}-lg`]:ia==="large",[`${Ti}-sm`]:ia==="small",[`${Ti}-rtl`]:ks,[`${Ti}-borderless`]:!zs,[`${Ti}-in-form-item`]:an},(0,Pi.Z)(Ti,xr,Et),fa,ze==null?void 0:ze.className,ds,_a,no),disabled:cs,style:Object.assign(Object.assign({},ze==null?void 0:ze.style),dn)},Nn,{builtinPlacements:ho,direction:Vi,placement:Pc,notFoundContent:Bl,allowClear:qi,showSearch:gl,expandIcon:zi,suffixIcon:Ua,removeIcon:ju,loadingIcon:Ji,checkable:ta,dropdownClassName:Ma,dropdownPrefixCls:Ni||$i,choiceTransitionName:(0,Zi.m)(Os,"",Co),transitionName:(0,Zi.m)(Os,"slide-up",ja),getPopupContainer:xl||tt,ref:vi}));return Cs(pa(os))}),Ln=(0,Ri.Z)(yi);yi.SHOW_PARENT=Tr,yi.SHOW_CHILD=Wi,yi.Panel=Kr,yi._InternalPanelDoNotUseOrYouWillBeFired=Ln;var Si=yi},84567:function(nt,V,m){"use strict";m.d(V,{Z:function(){return ge}});var y=m(67294),A=m(94184),b=m.n(A),z=m(50132),k=m(45353),N=m(17415),w=m(53124),I=m(98866),C=m(65223),S=y.createContext(null),P=m(63185),j=function(ye,xe){var be={};for(var Ie in ye)Object.prototype.hasOwnProperty.call(ye,Ie)&&xe.indexOf(Ie)<0&&(be[Ie]=ye[Ie]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,Ie=Object.getOwnPropertySymbols(ye);me{var be;const{prefixCls:Ie,className:me,rootClassName:We,children:Ce,indeterminate:Pt=!1,style:ct,onMouseEnter:Ue,onMouseLeave:bt,skipGroup:ht=!1,disabled:Bt}=ye,mt=j(ye,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:_n,direction:Bn,checkbox:Er}=y.useContext(w.E_),Yr=y.useContext(S),{isFormItemInput:oi}=y.useContext(C.aM),to=y.useContext(I.Z),yo=(be=(Yr==null?void 0:Yr.disabled)||Bt)!==null&&be!==void 0?be:to,vr=y.useRef(mt.value);y.useEffect(()=>{Yr==null||Yr.registerValue(mt.value)},[]),y.useEffect(()=>{if(!ht)return mt.value!==vr.current&&(Yr==null||Yr.cancelValue(vr.current),Yr==null||Yr.registerValue(mt.value),vr.current=mt.value),()=>Yr==null?void 0:Yr.cancelValue(mt.value)},[mt.value]);const Po=_n("checkbox",Ie),[ss,ve]=(0,P.ZP)(Po),_o=Object.assign({},mt);Yr&&!ht&&(_o.onChange=function(){mt.onChange&&mt.onChange.apply(mt,arguments),Yr.toggleOption&&Yr.toggleOption({label:Ce,value:mt.value})},_o.name=Yr.name,_o.checked=Yr.value.includes(mt.value));const ci=b()(`${Po}-wrapper`,{[`${Po}-rtl`]:Bn==="rtl",[`${Po}-wrapper-checked`]:_o.checked,[`${Po}-wrapper-disabled`]:yo,[`${Po}-wrapper-in-form-item`]:oi},Er==null?void 0:Er.className,me,We,ve),Bi=b()({[`${Po}-indeterminate`]:Pt},N.A,ve),wi=Pt?"mixed":void 0;return ss(y.createElement(k.Z,{component:"Checkbox",disabled:yo},y.createElement("label",{className:ci,style:Object.assign(Object.assign({},Er==null?void 0:Er.style),ct),onMouseEnter:Ue,onMouseLeave:bt},y.createElement(z.Z,Object.assign({"aria-checked":wi},_o,{prefixCls:Po,className:Bi,disabled:yo,ref:xe})),Ce!==void 0&&y.createElement("span",null,Ce))))};var ie=y.forwardRef(re),de=m(74902),he=m(98423),fe=function(ye,xe){var be={};for(var Ie in ye)Object.prototype.hasOwnProperty.call(ye,Ie)&&xe.indexOf(Ie)<0&&(be[Ie]=ye[Ie]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,Ie=Object.getOwnPropertySymbols(ye);me{const{defaultValue:be,children:Ie,options:me=[],prefixCls:We,className:Ce,rootClassName:Pt,style:ct,onChange:Ue}=ye,bt=fe(ye,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:ht,direction:Bt}=y.useContext(w.E_),[mt,_n]=y.useState(bt.value||be||[]),[Bn,Er]=y.useState([]);y.useEffect(()=>{"value"in bt&&_n(bt.value||[])},[bt.value]);const Yr=y.useMemo(()=>me.map(io=>typeof io=="string"||typeof io=="number"?{label:io,value:io}:io),[me]),oi=io=>{Er(ln=>ln.filter(Ve=>Ve!==io))},to=io=>{Er(ln=>[].concat((0,de.Z)(ln),[io]))},yo=io=>{const ln=mt.indexOf(io.value),Ve=(0,de.Z)(mt);ln===-1?Ve.push(io.value):Ve.splice(ln,1),"value"in bt||_n(Ve),Ue==null||Ue(Ve.filter(_t=>Bn.includes(_t)).sort((_t,Ct)=>{const jt=Yr.findIndex(Ot=>Ot.value===_t),on=Yr.findIndex(Ot=>Ot.value===Ct);return jt-on}))},vr=ht("checkbox",We),Po=`${vr}-group`,[ss,ve]=(0,P.ZP)(vr),_o=(0,he.Z)(bt,["value","disabled"]),ci=me.length?Yr.map(io=>y.createElement(ie,{prefixCls:vr,key:io.value.toString(),disabled:"disabled"in io?io.disabled:bt.disabled,value:io.value,checked:mt.includes(io.value),onChange:io.onChange,className:`${Po}-item`,style:io.style,title:io.title,id:io.id},io.label)):Ie,Bi={toggleOption:yo,value:mt,disabled:bt.disabled,name:bt.name,registerValue:to,cancelValue:oi},wi=b()(Po,{[`${Po}-rtl`]:Bt==="rtl"},Ce,Pt,ve);return ss(y.createElement("div",Object.assign({className:wi,style:ct},_o,{ref:xe}),y.createElement(S.Provider,{value:Bi},ci)))},we=y.forwardRef(ke);var Ne=y.memo(we);const Ee=ie;Ee.Group=Ne,Ee.__ANT_CHECKBOX=!0;var ge=Ee},63185:function(nt,V,m){"use strict";m.d(V,{C2:function(){return k}});var y=m(14747),A=m(45503),b=m(67968);const z=N=>{const{checkboxCls:w}=N,I=`${w}-wrapper`;return[{[`${w}-group`]:Object.assign(Object.assign({},(0,y.Wf)(N)),{display:"inline-flex",flexWrap:"wrap",columnGap:N.marginXS,[`> ${N.antCls}-row`]:{flex:1}}),[I]:Object.assign(Object.assign({},(0,y.Wf)(N)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${I}`]:{marginInlineStart:0},[`&${I}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[w]:Object.assign(Object.assign({},(0,y.Wf)(N)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:N.borderRadiusSM,alignSelf:"center",[`${w}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${w}-inner`]:Object.assign({},(0,y.oN)(N))},[`${w}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:N.checkboxSize,height:N.checkboxSize,direction:"ltr",backgroundColor:N.colorBgContainer,border:`${N.lineWidth}px ${N.lineType} ${N.colorBorder}`,borderRadius:N.borderRadiusSM,borderCollapse:"separate",transition:`all ${N.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:N.checkboxSize/14*5,height:N.checkboxSize/14*8,border:`${N.lineWidthBold}px solid ${N.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${N.motionDurationFast} ${N.motionEaseInBack}, opacity ${N.motionDurationFast}`}},"& + span":{paddingInlineStart:N.paddingXS,paddingInlineEnd:N.paddingXS}})},{[` - ${I}:not(${I}-disabled), +`;return[(0,so.C2)(`${vi}-checkbox`,tr),{[Ni]:{"&-checkbox":{top:0,marginInlineEnd:tr.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${Ni}-menu-empty`]:{[`${Ni}-menu`]:{width:"100%",height:"auto",[kr]:{color:tr.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:tr.controlItemWidth,height:tr.dropdownHeight,margin:0,padding:tr.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${tr.lineWidth}px ${tr.lineType} ${tr.colorSplit}`},"&-item":Object.assign(Object.assign({},rs.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:tr.optionPadding,lineHeight:tr.lineHeight,cursor:"pointer",transition:`all ${tr.motionDurationMid}`,borderRadius:tr.borderRadiusSM,"&:hover":{background:tr.controlItemBgHover},"&-disabled":{color:tr.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[qn]:{color:tr.colorTextDisabled}},[`&-active:not(${kr}-disabled)`]:{["&, &:hover"]:{fontWeight:tr.optionSelectedFontWeight,backgroundColor:tr.optionSelectedBg}},"&-content":{flex:"auto"},[qn]:{marginInlineStart:tr.paddingXXS,color:tr.colorTextDescription,fontSize:tr.fontSizeIcon},"&-keyword":{color:tr.colorHighlight}})}}}]};const br=tr=>{const{componentCls:vi,antCls:Ni}=tr;return[{[vi]:{width:tr.controlWidth}},{[`${vi}-dropdown`]:[{[`&${Ni}-select-dropdown`]:{padding:0}},pn(tr)]},{[`${vi}-dropdown-rtl`]:{direction:"rtl"}},(0,Qn.c)(tr)]},Gr=tr=>{const vi=Math.round((tr.controlHeight-tr.fontSize*tr.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:tr.controlItemBgActive,optionSelectedFontWeight:tr.fontWeightStrong,optionPadding:`${vi}px ${tr.paddingSM}px`,menuPadding:tr.paddingXXS}};var ui=(0,Vr.Z)("Cascader",tr=>[br(tr)],Gr);const xi=tr=>{const{componentCls:vi}=tr;return{[`${vi}-panel`]:[pn(tr),{display:"inline-flex",border:`${tr.lineWidth}px ${tr.lineType} ${tr.colorSplit}`,borderRadius:tr.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${vi}-menus`]:{alignItems:"stretch"},[`${vi}-menu`]:{height:"auto"},"&-empty":{padding:tr.paddingXXS}}]}};var lo=(0,Vr.Z)(["Cascader","Panel"],tr=>xi(tr),Gr);function Kr(tr){const{prefixCls:vi,className:Ni,multiple:kr,rootClassName:qn,notFoundContent:ds,direction:_a,expandIcon:da}=tr,[zs,Wa,Co,cl]=Mr(vi,_a),[,Fr]=ui(Wa);lo(Wa);const fs=Co==="rtl",[jo,Es]=rn(zs,fs,da),xs=ds||(cl==null?void 0:cl("Cascader"))||I.createElement(ys.Z,{componentName:"Cascader"}),Za=li(Wa,kr);return I.createElement(Wt,Object.assign({},tr,{checkable:Za,prefixCls:Wa,className:z()(Ni,Fr,qn),notFoundContent:xs,direction:Co,expandIcon:jo,loadingIcon:Es}))}var ti=function(tr,vi){var Ni={};for(var kr in tr)Object.prototype.hasOwnProperty.call(tr,kr)&&vi.indexOf(kr)<0&&(Ni[kr]=tr[kr]);if(tr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qn=0,kr=Object.getOwnPropertySymbols(tr);qnzs===0?[da]:[].concat((0,y.Z)(_a),[vi,da]),[]),qn=[];let ds=0;return kr.forEach((_a,da)=>{const zs=ds+_a.length;let Wa=tr.slice(ds,zs);ds=zs,da%2===1&&(Wa=I.createElement("span",{className:`${Ni}-menu-item-keyword`,key:`separator-${da}`},Wa)),qn.push(Wa)}),qn}const Gn=(tr,vi,Ni,kr)=>{const qn=[],ds=tr.toLowerCase();return vi.forEach((_a,da)=>{da!==0&&qn.push(" / ");let zs=_a[kr.label];const Wa=typeof zs;(Wa==="string"||Wa==="number")&&(zs=Qt(String(zs),ds,Ni)),qn.push(zs)}),qn},yi=I.forwardRef((tr,vi)=>{const{prefixCls:Ni,size:kr,disabled:qn,className:ds,rootClassName:_a,multiple:da,bordered:zs=!0,transitionName:Wa,choiceTransitionName:Co="",popupClassName:cl,dropdownClassName:Fr,expandIcon:fs,placement:jo,showSearch:Es,allowClear:xs=!0,notFoundContent:Za,direction:tl,getPopupContainer:xl,status:Qa,showArrow:si,builtinPlacements:co,style:dn}=tr,An=ti(tr,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),Nn=(0,hr.Z)(An,["suffixIcon"]),{getPopupContainer:tt,getPrefixCls:ht,popupOverflow:vt,cascader:Fe}=I.useContext(Wo.E_),{status:lt,hasFeedback:Et,isFormItemInput:an,feedbackIcon:jn}=I.useContext(Jr.aM),Cr=(0,Pi.F)(lt,Qa),[Ti,$i,Vi,us]=Mr(Ni,tl),ks=Vi==="rtl",Os=ht(),[pa,no]=(0,Yi.Z)(Ti),[Cs]=ui($i),{compactSize:ea,compactItemClassnames:fa}=(0,Xn.ri)(Ti,tl),Bl=Za||(us==null?void 0:us("Cascader"))||I.createElement(ys.Z,{componentName:"Cascader"}),Ma=z()(cl||Fr,`${$i}-dropdown`,{[`${$i}-dropdown-rtl`]:Vi==="rtl"},_a,no),pl=I.useMemo(()=>{if(!Es)return Es;let $n={render:Gn};return typeof Es=="object"&&($n=Object.assign(Object.assign({},$n),Es)),$n},[Es]),oa=(0,Hr.Z)($n=>{var mr;return(mr=kr!=null?kr:ea)!==null&&mr!==void 0?mr:$n}),Nl=I.useContext(xn.Z),cs=qn!=null?qn:Nl,[zi,qi]=rn(Ti,ks,fs),ta=li($i,da),ms=(0,Un.Z)(tr.suffixIcon,si),{suffixIcon:Ua,removeIcon:$u,clearIcon:rc}=(0,na.Z)(Object.assign(Object.assign({},tr),{hasFeedback:Et,feedbackIcon:jn,showSuffixIcon:ms,multiple:da,prefixCls:Ti,componentName:"Cascader"})),Pc=I.useMemo(()=>jo!==void 0?jo:ks?"bottomRight":"bottomLeft",[jo,ks]),ho=(0,xo.Z)(co,vt),Ji=xs===!0?{clearIcon:rc}:xs,ss=I.createElement(tn,Object.assign({prefixCls:Ti,className:z()(!Ni&&$i,{[`${Ti}-lg`]:oa==="large",[`${Ti}-sm`]:oa==="small",[`${Ti}-rtl`]:ks,[`${Ti}-borderless`]:!zs,[`${Ti}-in-form-item`]:an},(0,Pi.Z)(Ti,Cr,Et),fa,Fe==null?void 0:Fe.className,ds,_a,no),disabled:cs,style:Object.assign(Object.assign({},Fe==null?void 0:Fe.style),dn)},Nn,{builtinPlacements:ho,direction:Vi,placement:Pc,notFoundContent:Bl,allowClear:Ji,showSearch:pl,expandIcon:zi,suffixIcon:Ua,removeIcon:$u,loadingIcon:qi,checkable:ta,dropdownClassName:Ma,dropdownPrefixCls:Ni||$i,choiceTransitionName:(0,Zi.m)(Os,"",Co),transitionName:(0,Zi.m)(Os,"slide-up",Wa),getPopupContainer:xl||tt,ref:vi}));return Cs(pa(ss))}),Ln=(0,Ri.Z)(yi);yi.SHOW_PARENT=Tr,yi.SHOW_CHILD=ji,yi.Panel=Kr,yi._InternalPanelDoNotUseOrYouWillBeFired=Ln;var Si=yi},14604:function(nt,V,m){"use strict";m.d(V,{Z:function(){return ve}});var y=m(77617),I=m(12124),b=m.n(I),z=m(5630),k=m(27724),N=m(71208),w=m(67392),A=m(81689),C=m(86818),S=y.createContext(null),P=m(79148),W=function(ye,we){var Ce={};for(var Ae in ye)Object.prototype.hasOwnProperty.call(ye,Ae)&&we.indexOf(Ae)<0&&(Ce[Ae]=ye[Ae]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,Ae=Object.getOwnPropertySymbols(ye);me{var Ce;const{prefixCls:Ae,className:me,rootClassName:je,children:xe,indeterminate:Pt=!1,style:ct,onMouseEnter:He,onMouseLeave:wt,skipGroup:dt=!1,disabled:Bt}=ye,gt=W(ye,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:_n,direction:Bn,checkbox:Er}=y.useContext(w.E_),Yr=y.useContext(S),{isFormItemInput:oi}=y.useContext(C.aM),to=y.useContext(A.Z),yo=(Ce=(Yr==null?void 0:Yr.disabled)||Bt)!==null&&Ce!==void 0?Ce:to,yr=y.useRef(gt.value);y.useEffect(()=>{Yr==null||Yr.registerValue(gt.value)},[]),y.useEffect(()=>{if(!dt)return gt.value!==yr.current&&(Yr==null||Yr.cancelValue(yr.current),Yr==null||Yr.registerValue(gt.value),yr.current=gt.value),()=>Yr==null?void 0:Yr.cancelValue(gt.value)},[gt.value]);const Po=_n("checkbox",Ae),[as,ge]=(0,P.ZP)(Po),_o=Object.assign({},gt);Yr&&!dt&&(_o.onChange=function(){gt.onChange&>.onChange.apply(gt,arguments),Yr.toggleOption&&Yr.toggleOption({label:xe,value:gt.value})},_o.name=Yr.name,_o.checked=Yr.value.includes(gt.value));const ci=b()(`${Po}-wrapper`,{[`${Po}-rtl`]:Bn==="rtl",[`${Po}-wrapper-checked`]:_o.checked,[`${Po}-wrapper-disabled`]:yo,[`${Po}-wrapper-in-form-item`]:oi},Er==null?void 0:Er.className,me,je,ge),Bi=b()({[`${Po}-indeterminate`]:Pt},N.A,ge),Ci=Pt?"mixed":void 0;return as(y.createElement(k.Z,{component:"Checkbox",disabled:yo},y.createElement("label",{className:ci,style:Object.assign(Object.assign({},Er==null?void 0:Er.style),ct),onMouseEnter:He,onMouseLeave:wt},y.createElement(z.Z,Object.assign({"aria-checked":Ci},_o,{prefixCls:Po,className:Bi,disabled:yo,ref:we})),xe!==void 0&&y.createElement("span",null,xe))))};var ce=y.forwardRef(ne),pe=m(42371),he=m(39029),fe=function(ye,we){var Ce={};for(var Ae in ye)Object.prototype.hasOwnProperty.call(ye,Ae)&&we.indexOf(Ae)<0&&(Ce[Ae]=ye[Ae]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,Ae=Object.getOwnPropertySymbols(ye);me{const{defaultValue:Ce,children:Ae,options:me=[],prefixCls:je,className:xe,rootClassName:Pt,style:ct,onChange:He}=ye,wt=fe(ye,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:dt,direction:Bt}=y.useContext(w.E_),[gt,_n]=y.useState(wt.value||Ce||[]),[Bn,Er]=y.useState([]);y.useEffect(()=>{"value"in wt&&_n(wt.value||[])},[wt.value]);const Yr=y.useMemo(()=>me.map(io=>typeof io=="string"||typeof io=="number"?{label:io,value:io}:io),[me]),oi=io=>{Er(ln=>ln.filter(Ve=>Ve!==io))},to=io=>{Er(ln=>[].concat((0,pe.Z)(ln),[io]))},yo=io=>{const ln=gt.indexOf(io.value),Ve=(0,pe.Z)(gt);ln===-1?Ve.push(io.value):Ve.splice(ln,1),"value"in wt||_n(Ve),He==null||He(Ve.filter(_t=>Bn.includes(_t)).sort((_t,xt)=>{const Wt=Yr.findIndex(Ot=>Ot.value===_t),on=Yr.findIndex(Ot=>Ot.value===xt);return Wt-on}))},yr=dt("checkbox",je),Po=`${yr}-group`,[as,ge]=(0,P.ZP)(yr),_o=(0,he.Z)(wt,["value","disabled"]),ci=me.length?Yr.map(io=>y.createElement(ce,{prefixCls:yr,key:io.value.toString(),disabled:"disabled"in io?io.disabled:wt.disabled,value:io.value,checked:gt.includes(io.value),onChange:io.onChange,className:`${Po}-item`,style:io.style,title:io.title,id:io.id},io.label)):Ae,Bi={toggleOption:yo,value:gt,disabled:wt.disabled,name:wt.name,registerValue:to,cancelValue:oi},Ci=b()(Po,{[`${Po}-rtl`]:Bt==="rtl"},xe,Pt,ge);return as(y.createElement("div",Object.assign({className:Ci,style:ct},_o,{ref:we}),y.createElement(S.Provider,{value:Bi},ci)))},Ie=y.forwardRef(Be);var We=y.memo(Ie);const De=ce;De.Group=We,De.__ANT_CHECKBOX=!0;var ve=De},79148:function(nt,V,m){"use strict";m.d(V,{C2:function(){return k}});var y=m(92068),I=m(41788),b=m(24577);const z=N=>{const{checkboxCls:w}=N,A=`${w}-wrapper`;return[{[`${w}-group`]:Object.assign(Object.assign({},(0,y.Wf)(N)),{display:"inline-flex",flexWrap:"wrap",columnGap:N.marginXS,[`> ${N.antCls}-row`]:{flex:1}}),[A]:Object.assign(Object.assign({},(0,y.Wf)(N)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${A}`]:{marginInlineStart:0},[`&${A}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[w]:Object.assign(Object.assign({},(0,y.Wf)(N)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:N.borderRadiusSM,alignSelf:"center",[`${w}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${w}-inner`]:Object.assign({},(0,y.oN)(N))},[`${w}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:N.checkboxSize,height:N.checkboxSize,direction:"ltr",backgroundColor:N.colorBgContainer,border:`${N.lineWidth}px ${N.lineType} ${N.colorBorder}`,borderRadius:N.borderRadiusSM,borderCollapse:"separate",transition:`all ${N.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:N.checkboxSize/14*5,height:N.checkboxSize/14*8,border:`${N.lineWidthBold}px solid ${N.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${N.motionDurationFast} ${N.motionEaseInBack}, opacity ${N.motionDurationFast}`}},"& + span":{paddingInlineStart:N.paddingXS,paddingInlineEnd:N.paddingXS}})},{[` + ${A}:not(${A}-disabled), ${w}:not(${w}-disabled) - `]:{[`&:hover ${w}-inner`]:{borderColor:N.colorPrimary}},[`${I}:not(${I}-disabled)`]:{[`&:hover ${w}-checked:not(${w}-disabled) ${w}-inner`]:{backgroundColor:N.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${w}-checked:not(${w}-disabled):after`]:{borderColor:N.colorPrimaryHover}}},{[`${w}-checked`]:{[`${w}-inner`]:{backgroundColor:N.colorPrimary,borderColor:N.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${N.motionDurationMid} ${N.motionEaseOutBack} ${N.motionDurationFast}`}}},[` - ${I}-checked:not(${I}-disabled), + `]:{[`&:hover ${w}-inner`]:{borderColor:N.colorPrimary}},[`${A}:not(${A}-disabled)`]:{[`&:hover ${w}-checked:not(${w}-disabled) ${w}-inner`]:{backgroundColor:N.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${w}-checked:not(${w}-disabled):after`]:{borderColor:N.colorPrimaryHover}}},{[`${w}-checked`]:{[`${w}-inner`]:{backgroundColor:N.colorPrimary,borderColor:N.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${N.motionDurationMid} ${N.motionEaseOutBack} ${N.motionDurationFast}`}}},[` + ${A}-checked:not(${A}-disabled), ${w}-checked:not(${w}-disabled) - `]:{[`&:hover ${w}-inner`]:{backgroundColor:N.colorPrimaryHover,borderColor:"transparent"}}},{[w]:{"&-indeterminate":{[`${w}-inner`]:{backgroundColor:N.colorBgContainer,borderColor:N.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:N.fontSizeLG/2,height:N.fontSizeLG/2,backgroundColor:N.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${I}-disabled`]:{cursor:"not-allowed"},[`${w}-disabled`]:{[`&, ${w}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${w}-inner`]:{background:N.colorBgContainerDisabled,borderColor:N.colorBorder,"&:after":{borderColor:N.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:N.colorTextDisabled},[`&${w}-indeterminate ${w}-inner::after`]:{background:N.colorTextDisabled}}}]};function k(N,w){const I=(0,A.TS)(w,{checkboxCls:`.${N}`,checkboxSize:w.controlInteractiveSize});return[z(I)]}V.ZP=(0,b.Z)("Checkbox",(N,w)=>{let{prefixCls:I}=w;return[k(I,N)]})},87052:function(nt,V,m){"use strict";m.d(V,{Z:function(){return Pc}});var y=m(67294),A=m(94184),b=m.n(A),z=m(21770),k=m(8745),N=m(9708),w=m(53124),I=m(98675),C=m(65223),f=m(55241),S=m(25976),P=m(96074),j=m(87462),re=m(4942),J=m(97685),ie=m(1413),de=m(15671),he=m(43144),fe=m(60136),ke=m(29388),we=m(91),Ne=m(71002),Ee=m(10274),ge=["b"],ye=["v"],xe=function(qi){return Math.round(Number(qi||0))},be=function(qi){if(qi&&(0,Ne.Z)(qi)==="object"&&"h"in qi&&"b"in qi){var os=qi,$n=os.b,mr=(0,we.Z)(os,ge);return(0,ie.Z)((0,ie.Z)({},mr),{},{v:$n})}return typeof qi=="string"&&/hsb/.test(qi)?qi.replace(/hsb/,"hsv"):qi},Ie=function(ho){(0,fe.Z)(os,ho);var qi=(0,ke.Z)(os);function os($n){return(0,de.Z)(this,os),qi.call(this,be($n))}return(0,he.Z)(os,[{key:"toHsbString",value:function(){var mr=this.toHsb(),Qr=xe(mr.s*100),ni=xe(mr.b*100),Ki=xe(mr.h),ro=mr.a,Ei="hsb(".concat(Ki,", ").concat(Qr,"%, ").concat(ni,"%)"),ns="hsba(".concat(Ki,", ").concat(Qr,"%, ").concat(ni,"%, ").concat(ro.toFixed(ro===0?0:2),")");return ro===1?Ei:ns}},{key:"toHsb",value:function(){var mr=this.toHsv();(0,Ne.Z)(this.originalInput)==="object"&&this.originalInput&&"h"in this.originalInput&&(mr=this.originalInput);var Qr=mr,ni=Qr.v,Ki=(0,we.Z)(Qr,ye);return(0,ie.Z)((0,ie.Z)({},Ki),{},{b:mr.v})}}]),os}(Ee.C),me="rc-color-picker",We=function(qi){return qi instanceof Ie?qi:new Ie(qi)},Ce=We("#1677ff"),Pt=function(qi){var os=qi.offset,$n=qi.targetRef,mr=qi.containerRef,Qr=qi.color,ni=qi.type,Ki=mr.current.getBoundingClientRect(),ro=Ki.width,Ei=Ki.height,ns=$n.current.getBoundingClientRect(),ua=ns.width,Na=ns.height,cl=ua/2,Zl=Na/2,Ml=(os.x+cl)/ro,Wa=1-(os.y+Zl)/Ei,ku=Qr.toHsb(),Xs=Ml,Ya=(os.x+cl)/ro*360;if(ni)switch(ni){case"hue":return We((0,ie.Z)((0,ie.Z)({},ku),{},{h:Ya<=0?0:Ya}));case"alpha":return We((0,ie.Z)((0,ie.Z)({},ku),{},{a:Xs<=0?0:Xs}))}return We({h:ku.h,s:Ml<=0?0:Ml,b:Wa>=1?1:Wa,a:ku.a})},ct=function(qi,os,$n,mr){var Qr=qi.current.getBoundingClientRect(),ni=Qr.width,Ki=Qr.height,ro=os.current.getBoundingClientRect(),Ei=ro.width,ns=ro.height,ua=Ei/2,Na=ns/2,cl=$n.toHsb();if(!(Ei===0&&ns===0||Ei!==ns)){if(mr)switch(mr){case"hue":return{x:cl.h/360*ni-ua,y:-Na/3};case"alpha":return{x:cl.a/1*ni-ua,y:-Na/3}}return{x:cl.s*ni-ua,y:(1-cl.b)*Ki-Na}}},Ue=function(qi){var os=qi.color,$n=qi.prefixCls,mr=qi.className,Qr=qi.style,ni=qi.onClick,Ki="".concat($n,"-color-block");return y.createElement("div",{className:b()(Ki,mr),style:Qr,onClick:ni},y.createElement("div",{className:"".concat(Ki,"-inner"),style:{background:os}}))},bt=Ue;function ht(ho){var qi="touches"in ho?ho.touches[0]:ho,os=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,$n=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:qi.pageX-os,pageY:qi.pageY-$n}}function Bt(ho){var qi=ho.offset,os=ho.targetRef,$n=ho.containerRef,mr=ho.direction,Qr=ho.onDragChange,ni=ho.onDragChangeComplete,Ki=ho.calculate,ro=ho.color,Ei=ho.disabledDrag,ns=(0,y.useState)(qi||{x:0,y:0}),ua=(0,J.Z)(ns,2),Na=ua[0],cl=ua[1],Zl=(0,y.useRef)(null),Ml=(0,y.useRef)(null),Wa=(0,y.useRef)({flag:!1});(0,y.useEffect)(function(){if(Wa.current.flag===!1){var Hl=Ki==null?void 0:Ki($n);Hl&&cl(Hl)}},[ro,$n]),(0,y.useEffect)(function(){return function(){document.removeEventListener("mousemove",Zl.current),document.removeEventListener("mouseup",Ml.current),document.removeEventListener("touchmove",Zl.current),document.removeEventListener("touchend",Ml.current),Zl.current=null,Ml.current=null}},[]);var ku=function(Jl){var vu=ht(Jl),au=vu.pageX,bn=vu.pageY,Eu=$n.current.getBoundingClientRect(),ts=Eu.x,Vs=Eu.y,ma=Eu.width,Il=Eu.height,El=os.current.getBoundingClientRect(),ml=El.width,fu=El.height,Fu=ml/2,lc=fu/2,Ic=Math.max(0,Math.min(au-ts,ma))-Fu,Uc=Math.max(0,Math.min(bn-Vs,Il))-lc,zd={x:Ic,y:mr==="x"?Na.y:Uc};if(ml===0&&fu===0||ml!==fu)return!1;cl(zd),Qr==null||Qr(zd)},Xs=function(Jl){Jl.preventDefault(),ku(Jl)},Ya=function(Jl){Jl.preventDefault(),Wa.current.flag=!1,document.removeEventListener("mousemove",Zl.current),document.removeEventListener("mouseup",Ml.current),document.removeEventListener("touchmove",Zl.current),document.removeEventListener("touchend",Ml.current),Zl.current=null,Ml.current=null,ni==null||ni()},qa=function(Jl){document.removeEventListener("mousemove",Zl.current),document.removeEventListener("mouseup",Ml.current),!Ei&&(ku(Jl),Wa.current.flag=!0,document.addEventListener("mousemove",Xs),document.addEventListener("mouseup",Ya),document.addEventListener("touchmove",Xs),document.addEventListener("touchend",Ya),Zl.current=Xs,Ml.current=Ya)};return[Na,qa]}var mt=Bt,_n=function(qi){var os=qi.size,$n=os===void 0?"default":os,mr=qi.color,Qr=qi.prefixCls;return y.createElement("div",{className:b()("".concat(Qr,"-handler"),(0,re.Z)({},"".concat(Qr,"-handler-sm"),$n==="small")),style:{backgroundColor:mr}})},Bn=_n,Er=function(qi){var os=qi.children,$n=qi.style,mr=qi.prefixCls;return y.createElement("div",{className:"".concat(mr,"-palette"),style:(0,ie.Z)({position:"relative"},$n)},os)},Yr=Er,oi=(0,y.forwardRef)(function(ho,qi){var os=ho.children,$n=ho.offset;return y.createElement("div",{ref:qi,style:{position:"absolute",left:$n.x,top:$n.y,zIndex:1}},os)}),to=oi,yo=function(qi){var os=qi.color,$n=qi.onChange,mr=qi.prefixCls,Qr=qi.onChangeComplete,ni=qi.disabled,Ki=(0,y.useRef)(),ro=(0,y.useRef)(),Ei=(0,y.useRef)(os),ns=mt({color:os,containerRef:Ki,targetRef:ro,calculate:function(Ml){return ct(Ml,ro,os)},onDragChange:function(Ml){var Wa=Pt({offset:Ml,targetRef:ro,containerRef:Ki,color:os});Ei.current=Wa,$n(Wa)},onDragChangeComplete:function(){return Qr==null?void 0:Qr(Ei.current)},disabledDrag:ni}),ua=(0,J.Z)(ns,2),Na=ua[0],cl=ua[1];return y.createElement("div",{ref:Ki,className:"".concat(mr,"-select"),onMouseDown:cl,onTouchStart:cl},y.createElement(Yr,{prefixCls:mr},y.createElement(to,{offset:Na,ref:ro},y.createElement(Bn,{color:os.toRgbString(),prefixCls:mr})),y.createElement("div",{className:"".concat(mr,"-saturation"),style:{backgroundColor:"hsl(".concat(os.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},vr=yo,Po=function(qi){var os=qi.colors,$n=qi.children,mr=qi.direction,Qr=mr===void 0?"to right":mr,ni=qi.type,Ki=qi.prefixCls,ro=(0,y.useMemo)(function(){return os.map(function(Ei,ns){var ua=We(Ei);return ni==="alpha"&&ns===os.length-1&&ua.setAlpha(1),ua.toRgbString()}).join(",")},[os,ni]);return y.createElement("div",{className:"".concat(Ki,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(Qr,", ").concat(ro,")")}},$n)},ss=Po,ve=function(qi){var os=qi.gradientColors,$n=qi.direction,mr=qi.type,Qr=mr===void 0?"hue":mr,ni=qi.color,Ki=qi.value,ro=qi.onChange,Ei=qi.onChangeComplete,ns=qi.disabled,ua=qi.prefixCls,Na=(0,y.useRef)(),cl=(0,y.useRef)(),Zl=(0,y.useRef)(ni),Ml=mt({color:ni,targetRef:cl,containerRef:Na,calculate:function(qa){return ct(qa,cl,ni,Qr)},onDragChange:function(qa){var Hl=Pt({offset:qa,targetRef:cl,containerRef:Na,color:ni,type:Qr});Zl.current=Hl,ro(Hl)},onDragChangeComplete:function(){Ei==null||Ei(Zl.current,Qr)},direction:"x",disabledDrag:ns}),Wa=(0,J.Z)(Ml,2),ku=Wa[0],Xs=Wa[1];return y.createElement("div",{ref:Na,className:b()("".concat(ua,"-slider"),"".concat(ua,"-slider-").concat(Qr)),onMouseDown:Xs,onTouchStart:Xs},y.createElement(Yr,{prefixCls:ua},y.createElement(to,{offset:ku,ref:cl},y.createElement(Bn,{size:"small",color:Ki,prefixCls:ua})),y.createElement(ss,{colors:os,direction:$n,type:Qr,prefixCls:ua})))},_o=ve;function ci(ho){return ho!==void 0}var Bi=function(qi,os){var $n=os.defaultValue,mr=os.value,Qr=(0,y.useState)(function(){var Ei;return ci(mr)?Ei=mr:ci($n)?Ei=$n:Ei=qi,We(Ei)}),ni=(0,J.Z)(Qr,2),Ki=ni[0],ro=ni[1];return(0,y.useEffect)(function(){mr&&ro(We(mr))},[mr]),[Ki,ro]},wi=Bi,io=["rgb(255, 0, 0) 0%","rgb(255, 255, 0) 17%","rgb(0, 255, 0) 33%","rgb(0, 255, 255) 50%","rgb(0, 0, 255) 67%","rgb(255, 0, 255) 83%","rgb(255, 0, 0) 100%"],ln=(0,y.forwardRef)(function(ho,qi){var os=ho.value,$n=ho.defaultValue,mr=ho.prefixCls,Qr=mr===void 0?me:mr,ni=ho.onChange,Ki=ho.onChangeComplete,ro=ho.className,Ei=ho.style,ns=ho.panelRender,ua=ho.disabledAlpha,Na=ua===void 0?!1:ua,cl=ho.disabled,Zl=cl===void 0?!1:cl,Ml=wi(Ce,{value:os,defaultValue:$n}),Wa=(0,J.Z)(Ml,2),ku=Wa[0],Xs=Wa[1],Ya=(0,y.useMemo)(function(){var au=We(ku.toRgbString());return au.setAlpha(1),au.toRgbString()},[ku]),qa=b()("".concat(Qr,"-panel"),ro,(0,re.Z)({},"".concat(Qr,"-panel-disabled"),Zl)),Hl={prefixCls:Qr,onChangeComplete:Ki,disabled:Zl},Jl=function(bn,Eu){os||Xs(bn),ni==null||ni(bn,Eu)},vu=y.createElement(y.Fragment,null,y.createElement(vr,(0,j.Z)({color:ku,onChange:Jl},Hl)),y.createElement("div",{className:"".concat(Qr,"-slider-container")},y.createElement("div",{className:b()("".concat(Qr,"-slider-group"),(0,re.Z)({},"".concat(Qr,"-slider-group-disabled-alpha"),Na))},y.createElement(_o,(0,j.Z)({gradientColors:io,color:ku,value:"hsl(".concat(ku.toHsb().h,",100%, 50%)"),onChange:function(bn){return Jl(bn,"hue")}},Hl)),!Na&&y.createElement(_o,(0,j.Z)({type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",Ya],color:ku,value:ku.toRgbString(),onChange:function(bn){return Jl(bn,"alpha")}},Hl))),y.createElement(bt,{color:ku.toRgbString(),prefixCls:Qr})));return y.createElement("div",{className:qa,style:Ei,ref:qi},typeof ns=="function"?ns(vu):vu)}),Ve=ln;const _t=y.createContext({}),Ct=y.createContext({}),{Provider:jt}=_t,{Provider:on}=Ct,Ot=(ho,qi)=>(ho==null?void 0:ho.replace(/[^\w/]/gi,"").slice(0,qi?8:6))||"",Tt=(ho,qi)=>ho?Ot(ho,qi):"";let xt=function(){function ho(qi){(0,de.Z)(this,ho),this.metaColor=new Ie(qi),qi||this.metaColor.setAlpha(0)}return(0,he.Z)(ho,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return Tt(this.toHexString(),this.metaColor.getAlpha()<1)}},{key:"toHexString",value:function(){return this.metaColor.getAlpha()===1?this.metaColor.toHexString():this.metaColor.toHex8String()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}}]),ho}();const Ht="ant-color-picker",Zn=ho=>ho instanceof xt?ho:new xt(ho),tn=ho=>Math.round(Number(ho||0)),hr=ho=>tn(ho.toHsb().a*100),Zi=(ho,qi)=>{const os=ho.toHsb();return os.a=qi||1,Zn(os)};var Pi=ho=>{let{prefixCls:qi,value:os,colorCleared:$n,onChange:mr}=ho;const Qr=()=>{if(os&&!$n){const ni=os.toHsb();ni.a=0;const Ki=Zn(ni);mr==null||mr(Ki)}};return y.createElement("div",{className:`${qi}-clear`,onClick:Qr})},$o=m(34041),ys;(function(ho){ho.hex="hex",ho.rgb="rgb",ho.hsb="hsb"})(ys||(ys={}));var xn=m(73360),Jr=ho=>{let{prefixCls:qi,min:os=0,max:$n=100,value:mr,onChange:Qr,className:ni,formatter:Ki}=ho;const ro=`${qi}-steppers`,[Ei,ns]=(0,y.useState)(mr);return(0,y.useEffect)(()=>{Number.isNaN(mr)||ns(mr)},[mr]),y.createElement(xn.Z,{className:b()(ro,ni),min:os,max:$n,value:Ei,formatter:Ki,size:"small",onChange:ua=>{mr||ns(ua||0),Qr==null||Qr(ua)}})},xo=ho=>{let{prefixCls:qi,value:os,onChange:$n}=ho;const mr=`${qi}-alpha-input`,[Qr,ni]=(0,y.useState)(Zn(os||"#000"));(0,y.useEffect)(()=>{os&&ni(os)},[os]);const Ki=ro=>{const Ei=Qr.toHsb();Ei.a=(ro||0)/100;const ns=Zn(Ei);os||ni(ns),$n==null||$n(ns)};return y.createElement(Jr,{value:hr(Qr),prefixCls:qi,formatter:ro=>`${ro}%`,className:mr,onChange:Ki})},na=m(75008);const Vn=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,Xn=ho=>Vn.test(`#${ho}`);var li=ho=>{let{prefixCls:qi,value:os,onChange:$n}=ho;const mr=`${qi}-hex-input`,[Qr,ni]=(0,y.useState)(os==null?void 0:os.toHex());(0,y.useEffect)(()=>{const ro=os==null?void 0:os.toHex();Xn(ro)&&os&&ni(Ot(ro))},[os]);const Ki=ro=>{const Ei=ro.target.value;ni(Ot(Ei)),Xn(Ot(Ei,!0))&&($n==null||$n(Zn(Ei)))};return y.createElement(na.Z,{className:mr,value:Qr,prefix:"#",onChange:Ki,size:"small"})},qr=ho=>{let{prefixCls:qi,value:os,onChange:$n}=ho;const mr=`${qi}-hsb-input`,[Qr,ni]=(0,y.useState)(Zn(os||"#000"));(0,y.useEffect)(()=>{os&&ni(os)},[os]);const Ki=(ro,Ei)=>{const ns=Qr.toHsb();ns[Ei]=Ei==="h"?ro:(ro||0)/100;const ua=Zn(ns);os||ni(ua),$n==null||$n(ua)};return y.createElement("div",{className:mr},y.createElement(Jr,{max:360,min:0,value:Number(Qr.toHsb().h),prefixCls:qi,className:mr,formatter:ro=>tn(ro||0).toString(),onChange:ro=>Ki(Number(ro),"h")}),y.createElement(Jr,{max:100,min:0,value:Number(Qr.toHsb().s)*100,prefixCls:qi,className:mr,formatter:ro=>`${tn(ro||0)}%`,onChange:ro=>Ki(Number(ro),"s")}),y.createElement(Jr,{max:100,min:0,value:Number(Qr.toHsb().b)*100,prefixCls:qi,className:mr,formatter:ro=>`${tn(ro||0)}%`,onChange:ro=>Ki(Number(ro),"b")}))},rn=ho=>{let{prefixCls:qi,value:os,onChange:$n}=ho;const mr=`${qi}-rgb-input`,[Qr,ni]=(0,y.useState)(Zn(os||"#000"));(0,y.useEffect)(()=>{os&&ni(os)},[os]);const Ki=(ro,Ei)=>{const ns=Qr.toRgb();ns[Ei]=ro||0;const ua=Zn(ns);os||ni(ua),$n==null||$n(ua)};return y.createElement("div",{className:mr},y.createElement(Jr,{max:255,min:0,value:Number(Qr.toRgb().r),prefixCls:qi,className:mr,onChange:ro=>Ki(Number(ro),"r")}),y.createElement(Jr,{max:255,min:0,value:Number(Qr.toRgb().g),prefixCls:qi,className:mr,onChange:ro=>Ki(Number(ro),"g")}),y.createElement(Jr,{max:255,min:0,value:Number(Qr.toRgb().b),prefixCls:qi,className:mr,onChange:ro=>Ki(Number(ro),"b")}))};const Jn=[ys.hex,ys.hsb,ys.rgb].map(ho=>({value:ho,label:ho.toLocaleUpperCase()}));var so=ho=>{const{prefixCls:qi,format:os,value:$n,disabledAlpha:mr,onFormatChange:Qr,onChange:ni}=ho,[Ki,ro]=(0,z.Z)(ys.hex,{value:os,onChange:Qr}),Ei=`${qi}-input`,ns=Na=>{ro(Na)},ua=(0,y.useMemo)(()=>{const Na={value:$n,prefixCls:qi,onChange:ni};switch(Ki){case ys.hsb:return y.createElement(qr,Object.assign({},Na));case ys.rgb:return y.createElement(rn,Object.assign({},Na));case ys.hex:default:return y.createElement(li,Object.assign({},Na))}},[Ki,qi,$n,ni]);return y.createElement("div",{className:`${Ei}-container`},y.createElement($o.Z,{value:Ki,bordered:!1,getPopupContainer:Na=>Na,popupMatchSelectWidth:68,placement:"bottomRight",onChange:ns,className:`${qi}-format-select`,size:"small",options:Jn}),y.createElement("div",{className:Ei},ua),!mr&&y.createElement(xo,{prefixCls:qi,value:$n,onChange:ni}))},rs=function(ho,qi){var os={};for(var $n in ho)Object.prototype.hasOwnProperty.call(ho,$n)&&qi.indexOf($n)<0&&(os[$n]=ho[$n]);if(ho!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mr=0,$n=Object.getOwnPropertySymbols(ho);mr<$n.length;mr++)qi.indexOf($n[mr])<0&&Object.prototype.propertyIsEnumerable.call(ho,$n[mr])&&(os[$n[mr]]=ho[$n[mr]]);return os},pn=()=>{const ho=(0,y.useContext)(_t),{prefixCls:qi,colorCleared:os,allowClear:$n,value:mr,disabledAlpha:Qr,onChange:ni,onClear:Ki,onChangeComplete:ro}=ho,Ei=rs(ho,["prefixCls","colorCleared","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete"]);return y.createElement(y.Fragment,null,$n&&y.createElement(Pi,Object.assign({prefixCls:qi,value:mr,colorCleared:os,onChange:ns=>{ni==null||ni(ns),Ki==null||Ki()}},Ei)),y.createElement(Ve,{prefixCls:qi,value:mr==null?void 0:mr.toHsb(),disabledAlpha:Qr,onChange:(ns,ua)=>ni==null?void 0:ni(ns,ua,!0),onChangeComplete:ro}),y.createElement(so,Object.assign({value:mr,onChange:ni,prefixCls:qi,disabledAlpha:Qr},Ei)))},_r=m(68843),Gr=m(74902),ui=m(80334),Ci=m(50344),lo=m(82225),Kr=m(15105),ti=y.forwardRef(function(ho,qi){var os,$n=ho.prefixCls,mr=ho.forceRender,Qr=ho.className,ni=ho.style,Ki=ho.children,ro=ho.isActive,Ei=ho.role,ns=y.useState(ro||mr),ua=(0,J.Z)(ns,2),Na=ua[0],cl=ua[1];return y.useEffect(function(){(mr||ro)&&cl(!0)},[mr,ro]),Na?y.createElement("div",{ref:qi,className:b()("".concat($n,"-content"),(os={},(0,re.Z)(os,"".concat($n,"-content-active"),ro),(0,re.Z)(os,"".concat($n,"-content-inactive"),!ro),os),Qr),style:ni,role:Ei},y.createElement("div",{className:"".concat($n,"-content-box")},Ki)):null});ti.displayName="PanelContent";var Wi=ti,Tr=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],Qt=y.forwardRef(function(ho,qi){var os,$n,mr=ho.showArrow,Qr=mr===void 0?!0:mr,ni=ho.headerClass,Ki=ho.isActive,ro=ho.onItemClick,Ei=ho.forceRender,ns=ho.className,ua=ho.prefixCls,Na=ho.collapsible,cl=ho.accordion,Zl=ho.panelKey,Ml=ho.extra,Wa=ho.header,ku=ho.expandIcon,Xs=ho.openMotion,Ya=ho.destroyInactivePanel,qa=ho.children,Hl=(0,we.Z)(ho,Tr),Jl=Na==="disabled",vu=Na==="header",au=Na==="icon",bn=Ml!=null&&typeof Ml!="boolean",Eu=function(){ro==null||ro(Zl)},ts=function(fu){(fu.key==="Enter"||fu.keyCode===Kr.Z.ENTER||fu.which===Kr.Z.ENTER)&&Eu()},Vs=typeof ku=="function"?ku(ho):y.createElement("i",{className:"arrow"});Vs&&(Vs=y.createElement("div",{className:"".concat(ua,"-expand-icon"),onClick:["header","icon"].includes(Na)?Eu:void 0},Vs));var ma=b()((os={},(0,re.Z)(os,"".concat(ua,"-item"),!0),(0,re.Z)(os,"".concat(ua,"-item-active"),Ki),(0,re.Z)(os,"".concat(ua,"-item-disabled"),Jl),os),ns),Il=b()(ni,($n={},(0,re.Z)($n,"".concat(ua,"-header"),!0),(0,re.Z)($n,"".concat(ua,"-header-collapsible-only"),vu),(0,re.Z)($n,"".concat(ua,"-icon-collapsible-only"),au),$n)),El={className:Il,"aria-expanded":Ki,"aria-disabled":Jl,onKeyDown:ts};return!vu&&!au&&(El.onClick=Eu,El.role=cl?"tab":"button",El.tabIndex=Jl?-1:0),y.createElement("div",(0,j.Z)({},Hl,{ref:qi,className:ma}),y.createElement("div",El,Qr&&Vs,y.createElement("span",{className:"".concat(ua,"-header-text"),onClick:Na==="header"?Eu:void 0},Wa),bn&&y.createElement("div",{className:"".concat(ua,"-extra")},Ml)),y.createElement(lo.ZP,(0,j.Z)({visible:Ki,leavedClassName:"".concat(ua,"-content-hidden")},Xs,{forceRender:Ei,removeOnLeave:Ya}),function(ml,fu){var Fu=ml.className,lc=ml.style;return y.createElement(Wi,{ref:fu,prefixCls:ua,className:Fu,style:lc,isActive:Ki,forceRender:Ei,role:cl?"tabpanel":void 0},qa)}))}),Gn=Qt,yi=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],Ln=function(qi,os){var $n=os.prefixCls,mr=os.accordion,Qr=os.collapsible,ni=os.destroyInactivePanel,Ki=os.onItemClick,ro=os.activeKey,Ei=os.openMotion,ns=os.expandIcon;return qi.map(function(ua,Na){var cl=ua.children,Zl=ua.label,Ml=ua.key,Wa=ua.collapsible,ku=ua.onItemClick,Xs=ua.destroyInactivePanel,Ya=(0,we.Z)(ua,yi),qa=String(Ml!=null?Ml:Na),Hl=Wa!=null?Wa:Qr,Jl=Xs!=null?Xs:ni,vu=function(Eu){Hl!=="disabled"&&(Ki(Eu),ku==null||ku(Eu))},au=!1;return mr?au=ro[0]===qa:au=ro.indexOf(qa)>-1,y.createElement(Gn,(0,j.Z)({},Ya,{prefixCls:$n,key:qa,panelKey:qa,isActive:au,accordion:mr,openMotion:Ei,expandIcon:ns,header:Zl,collapsible:Hl,onItemClick:vu,destroyInactivePanel:Jl}),cl)})},Si=function(qi,os,$n){if(!qi)return null;var mr=$n.prefixCls,Qr=$n.accordion,ni=$n.collapsible,Ki=$n.destroyInactivePanel,ro=$n.onItemClick,Ei=$n.activeKey,ns=$n.openMotion,ua=$n.expandIcon,Na=qi.key||String(os),cl=qi.props,Zl=cl.header,Ml=cl.headerClass,Wa=cl.destroyInactivePanel,ku=cl.collapsible,Xs=cl.onItemClick,Ya=!1;Qr?Ya=Ei[0]===Na:Ya=Ei.indexOf(Na)>-1;var qa=ku!=null?ku:ni,Hl=function(au){qa!=="disabled"&&(ro(au),Xs==null||Xs(au))},Jl={key:Na,panelKey:Na,header:Zl,headerClass:Ml,isActive:Ya,prefixCls:mr,destroyInactivePanel:Wa!=null?Wa:Ki,openMotion:ns,accordion:Qr,children:qi.props.children,onItemClick:Hl,expandIcon:ua,collapsible:qa};return typeof qi.type=="string"?qi:(Object.keys(Jl).forEach(function(vu){typeof Jl[vu]=="undefined"&&delete Jl[vu]}),y.cloneElement(qi,Jl))};function tr(ho,qi,os){return Array.isArray(ho)?Ln(ho,os):(0,Ci.Z)(qi).map(function($n,mr){return Si($n,mr,os)})}var vi=tr;function Ni(ho){var qi=ho;if(!Array.isArray(qi)){var os=(0,Ne.Z)(qi);qi=os==="number"||os==="string"?[qi]:[]}return qi.map(function($n){return String($n)})}var kr=y.forwardRef(function(ho,qi){var os=ho.prefixCls,$n=os===void 0?"rc-collapse":os,mr=ho.destroyInactivePanel,Qr=mr===void 0?!1:mr,ni=ho.style,Ki=ho.accordion,ro=ho.className,Ei=ho.children,ns=ho.collapsible,ua=ho.openMotion,Na=ho.expandIcon,cl=ho.activeKey,Zl=ho.defaultActiveKey,Ml=ho.onChange,Wa=ho.items,ku=b()($n,ro),Xs=(0,z.Z)([],{value:cl,onChange:function(bn){return Ml==null?void 0:Ml(bn)},defaultValue:Zl,postState:Ni}),Ya=(0,J.Z)(Xs,2),qa=Ya[0],Hl=Ya[1],Jl=function(bn){return Hl(function(){if(Ki)return qa[0]===bn?[]:[bn];var Eu=qa.indexOf(bn),ts=Eu>-1;return ts?qa.filter(function(Vs){return Vs!==bn}):[].concat((0,Gr.Z)(qa),[bn])})};(0,ui.ZP)(!Ei,"`children` will be removed in next major version. Please use `items` instead.");var vu=vi(Wa,Ei,{prefixCls:$n,accordion:Ki,openMotion:ua,expandIcon:Na,collapsible:ns,destroyInactivePanel:Qr,onItemClick:Jl,activeKey:qa});return y.createElement("div",{ref:qi,className:ku,style:ni,role:Ki?"tablist":void 0},vu)}),Qn=Object.assign(kr,{Panel:Gn}),ds=Qn,_a=Qn.Panel,da=m(98423),zs=m(33603),ja=m(96159),dl=y.forwardRef((ho,qi)=>{const{getPrefixCls:os}=y.useContext(w.E_),{prefixCls:$n,className:mr,showArrow:Qr=!0}=ho,ni=os("collapse",$n),Ki=b()({[`${ni}-no-arrow`]:!Qr},mr);return y.createElement(ds.Panel,Object.assign({ref:qi},ho,{prefixCls:ni,className:Ki}))}),Fr=m(14747),fs=m(33507),jo=m(67968),Es=m(45503);const xs=ho=>{const{componentCls:qi,contentBg:os,padding:$n,headerBg:mr,headerPadding:Qr,collapseHeaderPaddingSM:ni,collapseHeaderPaddingLG:Ki,collapsePanelBorderRadius:ro,lineWidth:Ei,lineType:ns,colorBorder:ua,colorText:Na,colorTextHeading:cl,colorTextDisabled:Zl,fontSize:Ml,fontSizeLG:Wa,lineHeight:ku,marginSM:Xs,paddingSM:Ya,paddingLG:qa,paddingXS:Hl,motionDurationSlow:Jl,fontSizeIcon:vu,contentPadding:au}=ho,bn=`${Ei}px ${ns} ${ua}`;return{[qi]:Object.assign(Object.assign({},(0,Fr.Wf)(ho)),{backgroundColor:mr,border:bn,borderBottom:0,borderRadius:`${ro}px`,["&-rtl"]:{direction:"rtl"},[`& > ${qi}-item`]:{borderBottom:bn,["&:last-child"]:{[` + `]:{[`&:hover ${w}-inner`]:{backgroundColor:N.colorPrimaryHover,borderColor:"transparent"}}},{[w]:{"&-indeterminate":{[`${w}-inner`]:{backgroundColor:N.colorBgContainer,borderColor:N.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:N.fontSizeLG/2,height:N.fontSizeLG/2,backgroundColor:N.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${A}-disabled`]:{cursor:"not-allowed"},[`${w}-disabled`]:{[`&, ${w}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${w}-inner`]:{background:N.colorBgContainerDisabled,borderColor:N.colorBorder,"&:after":{borderColor:N.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:N.colorTextDisabled},[`&${w}-indeterminate ${w}-inner::after`]:{background:N.colorTextDisabled}}}]};function k(N,w){const A=(0,I.TS)(w,{checkboxCls:`.${N}`,checkboxSize:w.controlInteractiveSize});return[z(A)]}V.ZP=(0,b.Z)("Checkbox",(N,w)=>{let{prefixCls:A}=w;return[k(A,N)]})},42073:function(nt,V,m){"use strict";m.d(V,{Z:function(){return Pc}});var y=m(77617),I=m(12124),b=m.n(I),z=m(41760),k=m(91202),N=m(5997),w=m(67392),A=m(21843),C=m(86818),f=m(68404),S=m(99737),P=m(89628),W=m(26508),ne=m(80268),re=m(39718),ce=m(74710),pe=m(74809),he=m(57338),fe=m(29161),Be=m(12826),Ie=m(52528),We=m(91002),De=m(64993),ve=["b"],ye=["v"],we=function(Ji){return Math.round(Number(Ji||0))},Ce=function(Ji){if(Ji&&(0,We.Z)(Ji)==="object"&&"h"in Ji&&"b"in Ji){var ss=Ji,$n=ss.b,mr=(0,Ie.Z)(ss,ve);return(0,ce.Z)((0,ce.Z)({},mr),{},{v:$n})}return typeof Ji=="string"&&/hsb/.test(Ji)?Ji.replace(/hsb/,"hsv"):Ji},Ae=function(ho){(0,fe.Z)(ss,ho);var Ji=(0,Be.Z)(ss);function ss($n){return(0,pe.Z)(this,ss),Ji.call(this,Ce($n))}return(0,he.Z)(ss,[{key:"toHsbString",value:function(){var mr=this.toHsb(),Qr=we(mr.s*100),ni=we(mr.b*100),Ki=we(mr.h),ro=mr.a,Ei="hsb(".concat(Ki,", ").concat(Qr,"%, ").concat(ni,"%)"),ns="hsba(".concat(Ki,", ").concat(Qr,"%, ").concat(ni,"%, ").concat(ro.toFixed(ro===0?0:2),")");return ro===1?Ei:ns}},{key:"toHsb",value:function(){var mr=this.toHsv();(0,We.Z)(this.originalInput)==="object"&&this.originalInput&&"h"in this.originalInput&&(mr=this.originalInput);var Qr=mr,ni=Qr.v,Ki=(0,Ie.Z)(Qr,ye);return(0,ce.Z)((0,ce.Z)({},Ki),{},{b:mr.v})}}]),ss}(De.C),me="rc-color-picker",je=function(Ji){return Ji instanceof Ae?Ji:new Ae(Ji)},xe=je("#1677ff"),Pt=function(Ji){var ss=Ji.offset,$n=Ji.targetRef,mr=Ji.containerRef,Qr=Ji.color,ni=Ji.type,Ki=mr.current.getBoundingClientRect(),ro=Ki.width,Ei=Ki.height,ns=$n.current.getBoundingClientRect(),ca=ns.width,Na=ns.height,ul=ca/2,Hl=Na/2,Ml=(ss.x+ul)/ro,ja=1-(ss.y+Hl)/Ei,Pu=Qr.toHsb(),Xs=Ml,Ya=(ss.x+ul)/ro*360;if(ni)switch(ni){case"hue":return je((0,ce.Z)((0,ce.Z)({},Pu),{},{h:Ya<=0?0:Ya}));case"alpha":return je((0,ce.Z)((0,ce.Z)({},Pu),{},{a:Xs<=0?0:Xs}))}return je({h:Pu.h,s:Ml<=0?0:Ml,b:ja>=1?1:ja,a:Pu.a})},ct=function(Ji,ss,$n,mr){var Qr=Ji.current.getBoundingClientRect(),ni=Qr.width,Ki=Qr.height,ro=ss.current.getBoundingClientRect(),Ei=ro.width,ns=ro.height,ca=Ei/2,Na=ns/2,ul=$n.toHsb();if(!(Ei===0&&ns===0||Ei!==ns)){if(mr)switch(mr){case"hue":return{x:ul.h/360*ni-ca,y:-Na/3};case"alpha":return{x:ul.a/1*ni-ca,y:-Na/3}}return{x:ul.s*ni-ca,y:(1-ul.b)*Ki-Na}}},He=function(Ji){var ss=Ji.color,$n=Ji.prefixCls,mr=Ji.className,Qr=Ji.style,ni=Ji.onClick,Ki="".concat($n,"-color-block");return y.createElement("div",{className:b()(Ki,mr),style:Qr,onClick:ni},y.createElement("div",{className:"".concat(Ki,"-inner"),style:{background:ss}}))},wt=He;function dt(ho){var Ji="touches"in ho?ho.touches[0]:ho,ss=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,$n=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:Ji.pageX-ss,pageY:Ji.pageY-$n}}function Bt(ho){var Ji=ho.offset,ss=ho.targetRef,$n=ho.containerRef,mr=ho.direction,Qr=ho.onDragChange,ni=ho.onDragChangeComplete,Ki=ho.calculate,ro=ho.color,Ei=ho.disabledDrag,ns=(0,y.useState)(Ji||{x:0,y:0}),ca=(0,re.Z)(ns,2),Na=ca[0],ul=ca[1],Hl=(0,y.useRef)(null),Ml=(0,y.useRef)(null),ja=(0,y.useRef)({flag:!1});(0,y.useEffect)(function(){if(ja.current.flag===!1){var Ul=Ki==null?void 0:Ki($n);Ul&&ul(Ul)}},[ro,$n]),(0,y.useEffect)(function(){return function(){document.removeEventListener("mousemove",Hl.current),document.removeEventListener("mouseup",Ml.current),document.removeEventListener("touchmove",Hl.current),document.removeEventListener("touchend",Ml.current),Hl.current=null,Ml.current=null}},[]);var Pu=function(ql){var vu=dt(ql),au=vu.pageX,bn=vu.pageY,Eu=$n.current.getBoundingClientRect(),ts=Eu.x,Vs=Eu.y,ma=Eu.width,Il=Eu.height,El=ss.current.getBoundingClientRect(),gl=El.width,fu=El.height,Nu=gl/2,lc=fu/2,Ic=Math.max(0,Math.min(au-ts,ma))-Nu,Vc=Math.max(0,Math.min(bn-Vs,Il))-lc,zd={x:Ic,y:mr==="x"?Na.y:Vc};if(gl===0&&fu===0||gl!==fu)return!1;ul(zd),Qr==null||Qr(zd)},Xs=function(ql){ql.preventDefault(),Pu(ql)},Ya=function(ql){ql.preventDefault(),ja.current.flag=!1,document.removeEventListener("mousemove",Hl.current),document.removeEventListener("mouseup",Ml.current),document.removeEventListener("touchmove",Hl.current),document.removeEventListener("touchend",Ml.current),Hl.current=null,Ml.current=null,ni==null||ni()},qa=function(ql){document.removeEventListener("mousemove",Hl.current),document.removeEventListener("mouseup",Ml.current),!Ei&&(Pu(ql),ja.current.flag=!0,document.addEventListener("mousemove",Xs),document.addEventListener("mouseup",Ya),document.addEventListener("touchmove",Xs),document.addEventListener("touchend",Ya),Hl.current=Xs,Ml.current=Ya)};return[Na,qa]}var gt=Bt,_n=function(Ji){var ss=Ji.size,$n=ss===void 0?"default":ss,mr=Ji.color,Qr=Ji.prefixCls;return y.createElement("div",{className:b()("".concat(Qr,"-handler"),(0,ne.Z)({},"".concat(Qr,"-handler-sm"),$n==="small")),style:{backgroundColor:mr}})},Bn=_n,Er=function(Ji){var ss=Ji.children,$n=Ji.style,mr=Ji.prefixCls;return y.createElement("div",{className:"".concat(mr,"-palette"),style:(0,ce.Z)({position:"relative"},$n)},ss)},Yr=Er,oi=(0,y.forwardRef)(function(ho,Ji){var ss=ho.children,$n=ho.offset;return y.createElement("div",{ref:Ji,style:{position:"absolute",left:$n.x,top:$n.y,zIndex:1}},ss)}),to=oi,yo=function(Ji){var ss=Ji.color,$n=Ji.onChange,mr=Ji.prefixCls,Qr=Ji.onChangeComplete,ni=Ji.disabled,Ki=(0,y.useRef)(),ro=(0,y.useRef)(),Ei=(0,y.useRef)(ss),ns=gt({color:ss,containerRef:Ki,targetRef:ro,calculate:function(Ml){return ct(Ml,ro,ss)},onDragChange:function(Ml){var ja=Pt({offset:Ml,targetRef:ro,containerRef:Ki,color:ss});Ei.current=ja,$n(ja)},onDragChangeComplete:function(){return Qr==null?void 0:Qr(Ei.current)},disabledDrag:ni}),ca=(0,re.Z)(ns,2),Na=ca[0],ul=ca[1];return y.createElement("div",{ref:Ki,className:"".concat(mr,"-select"),onMouseDown:ul,onTouchStart:ul},y.createElement(Yr,{prefixCls:mr},y.createElement(to,{offset:Na,ref:ro},y.createElement(Bn,{color:ss.toRgbString(),prefixCls:mr})),y.createElement("div",{className:"".concat(mr,"-saturation"),style:{backgroundColor:"hsl(".concat(ss.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},yr=yo,Po=function(Ji){var ss=Ji.colors,$n=Ji.children,mr=Ji.direction,Qr=mr===void 0?"to right":mr,ni=Ji.type,Ki=Ji.prefixCls,ro=(0,y.useMemo)(function(){return ss.map(function(Ei,ns){var ca=je(Ei);return ni==="alpha"&&ns===ss.length-1&&ca.setAlpha(1),ca.toRgbString()}).join(",")},[ss,ni]);return y.createElement("div",{className:"".concat(Ki,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(Qr,", ").concat(ro,")")}},$n)},as=Po,ge=function(Ji){var ss=Ji.gradientColors,$n=Ji.direction,mr=Ji.type,Qr=mr===void 0?"hue":mr,ni=Ji.color,Ki=Ji.value,ro=Ji.onChange,Ei=Ji.onChangeComplete,ns=Ji.disabled,ca=Ji.prefixCls,Na=(0,y.useRef)(),ul=(0,y.useRef)(),Hl=(0,y.useRef)(ni),Ml=gt({color:ni,targetRef:ul,containerRef:Na,calculate:function(qa){return ct(qa,ul,ni,Qr)},onDragChange:function(qa){var Ul=Pt({offset:qa,targetRef:ul,containerRef:Na,color:ni,type:Qr});Hl.current=Ul,ro(Ul)},onDragChangeComplete:function(){Ei==null||Ei(Hl.current,Qr)},direction:"x",disabledDrag:ns}),ja=(0,re.Z)(Ml,2),Pu=ja[0],Xs=ja[1];return y.createElement("div",{ref:Na,className:b()("".concat(ca,"-slider"),"".concat(ca,"-slider-").concat(Qr)),onMouseDown:Xs,onTouchStart:Xs},y.createElement(Yr,{prefixCls:ca},y.createElement(to,{offset:Pu,ref:ul},y.createElement(Bn,{size:"small",color:Ki,prefixCls:ca})),y.createElement(as,{colors:ss,direction:$n,type:Qr,prefixCls:ca})))},_o=ge;function ci(ho){return ho!==void 0}var Bi=function(Ji,ss){var $n=ss.defaultValue,mr=ss.value,Qr=(0,y.useState)(function(){var Ei;return ci(mr)?Ei=mr:ci($n)?Ei=$n:Ei=Ji,je(Ei)}),ni=(0,re.Z)(Qr,2),Ki=ni[0],ro=ni[1];return(0,y.useEffect)(function(){mr&&ro(je(mr))},[mr]),[Ki,ro]},Ci=Bi,io=["rgb(255, 0, 0) 0%","rgb(255, 255, 0) 17%","rgb(0, 255, 0) 33%","rgb(0, 255, 255) 50%","rgb(0, 0, 255) 67%","rgb(255, 0, 255) 83%","rgb(255, 0, 0) 100%"],ln=(0,y.forwardRef)(function(ho,Ji){var ss=ho.value,$n=ho.defaultValue,mr=ho.prefixCls,Qr=mr===void 0?me:mr,ni=ho.onChange,Ki=ho.onChangeComplete,ro=ho.className,Ei=ho.style,ns=ho.panelRender,ca=ho.disabledAlpha,Na=ca===void 0?!1:ca,ul=ho.disabled,Hl=ul===void 0?!1:ul,Ml=Ci(xe,{value:ss,defaultValue:$n}),ja=(0,re.Z)(Ml,2),Pu=ja[0],Xs=ja[1],Ya=(0,y.useMemo)(function(){var au=je(Pu.toRgbString());return au.setAlpha(1),au.toRgbString()},[Pu]),qa=b()("".concat(Qr,"-panel"),ro,(0,ne.Z)({},"".concat(Qr,"-panel-disabled"),Hl)),Ul={prefixCls:Qr,onChangeComplete:Ki,disabled:Hl},ql=function(bn,Eu){ss||Xs(bn),ni==null||ni(bn,Eu)},vu=y.createElement(y.Fragment,null,y.createElement(yr,(0,W.Z)({color:Pu,onChange:ql},Ul)),y.createElement("div",{className:"".concat(Qr,"-slider-container")},y.createElement("div",{className:b()("".concat(Qr,"-slider-group"),(0,ne.Z)({},"".concat(Qr,"-slider-group-disabled-alpha"),Na))},y.createElement(_o,(0,W.Z)({gradientColors:io,color:Pu,value:"hsl(".concat(Pu.toHsb().h,",100%, 50%)"),onChange:function(bn){return ql(bn,"hue")}},Ul)),!Na&&y.createElement(_o,(0,W.Z)({type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",Ya],color:Pu,value:Pu.toRgbString(),onChange:function(bn){return ql(bn,"alpha")}},Ul))),y.createElement(wt,{color:Pu.toRgbString(),prefixCls:Qr})));return y.createElement("div",{className:qa,style:Ei,ref:Ji},typeof ns=="function"?ns(vu):vu)}),Ve=ln;const _t=y.createContext({}),xt=y.createContext({}),{Provider:Wt}=_t,{Provider:on}=xt,Ot=(ho,Ji)=>(ho==null?void 0:ho.replace(/[^\w/]/gi,"").slice(0,Ji?8:6))||"",Tt=(ho,Ji)=>ho?Ot(ho,Ji):"";let bt=function(){function ho(Ji){(0,pe.Z)(this,ho),this.metaColor=new Ae(Ji),Ji||this.metaColor.setAlpha(0)}return(0,he.Z)(ho,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return Tt(this.toHexString(),this.metaColor.getAlpha()<1)}},{key:"toHexString",value:function(){return this.metaColor.getAlpha()===1?this.metaColor.toHexString():this.metaColor.toHex8String()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}}]),ho}();const Ht="ant-color-picker",Wn=ho=>ho instanceof bt?ho:new bt(ho),tn=ho=>Math.round(Number(ho||0)),hr=ho=>tn(ho.toHsb().a*100),Zi=(ho,Ji)=>{const ss=ho.toHsb();return ss.a=Ji||1,Wn(ss)};var Pi=ho=>{let{prefixCls:Ji,value:ss,colorCleared:$n,onChange:mr}=ho;const Qr=()=>{if(ss&&!$n){const ni=ss.toHsb();ni.a=0;const Ki=Wn(ni);mr==null||mr(Ki)}};return y.createElement("div",{className:`${Ji}-clear`,onClick:Qr})},Wo=m(29130),ys;(function(ho){ho.hex="hex",ho.rgb="rgb",ho.hsb="hsb"})(ys||(ys={}));var xn=m(41654),Jr=ho=>{let{prefixCls:Ji,min:ss=0,max:$n=100,value:mr,onChange:Qr,className:ni,formatter:Ki}=ho;const ro=`${Ji}-steppers`,[Ei,ns]=(0,y.useState)(mr);return(0,y.useEffect)(()=>{Number.isNaN(mr)||ns(mr)},[mr]),y.createElement(xn.Z,{className:b()(ro,ni),min:ss,max:$n,value:Ei,formatter:Ki,size:"small",onChange:ca=>{mr||ns(ca||0),Qr==null||Qr(ca)}})},xo=ho=>{let{prefixCls:Ji,value:ss,onChange:$n}=ho;const mr=`${Ji}-alpha-input`,[Qr,ni]=(0,y.useState)(Wn(ss||"#000"));(0,y.useEffect)(()=>{ss&&ni(ss)},[ss]);const Ki=ro=>{const Ei=Qr.toHsb();Ei.a=(ro||0)/100;const ns=Wn(Ei);ss||ni(ns),$n==null||$n(ns)};return y.createElement(Jr,{value:hr(Qr),prefixCls:Ji,formatter:ro=>`${ro}%`,className:mr,onChange:Ki})},na=m(68517);const Un=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,Xn=ho=>Un.test(`#${ho}`);var li=ho=>{let{prefixCls:Ji,value:ss,onChange:$n}=ho;const mr=`${Ji}-hex-input`,[Qr,ni]=(0,y.useState)(ss==null?void 0:ss.toHex());(0,y.useEffect)(()=>{const ro=ss==null?void 0:ss.toHex();Xn(ro)&&ss&&ni(Ot(ro))},[ss]);const Ki=ro=>{const Ei=ro.target.value;ni(Ot(Ei)),Xn(Ot(Ei,!0))&&($n==null||$n(Wn(Ei)))};return y.createElement(na.Z,{className:mr,value:Qr,prefix:"#",onChange:Ki,size:"small"})},qr=ho=>{let{prefixCls:Ji,value:ss,onChange:$n}=ho;const mr=`${Ji}-hsb-input`,[Qr,ni]=(0,y.useState)(Wn(ss||"#000"));(0,y.useEffect)(()=>{ss&&ni(ss)},[ss]);const Ki=(ro,Ei)=>{const ns=Qr.toHsb();ns[Ei]=Ei==="h"?ro:(ro||0)/100;const ca=Wn(ns);ss||ni(ca),$n==null||$n(ca)};return y.createElement("div",{className:mr},y.createElement(Jr,{max:360,min:0,value:Number(Qr.toHsb().h),prefixCls:Ji,className:mr,formatter:ro=>tn(ro||0).toString(),onChange:ro=>Ki(Number(ro),"h")}),y.createElement(Jr,{max:100,min:0,value:Number(Qr.toHsb().s)*100,prefixCls:Ji,className:mr,formatter:ro=>`${tn(ro||0)}%`,onChange:ro=>Ki(Number(ro),"s")}),y.createElement(Jr,{max:100,min:0,value:Number(Qr.toHsb().b)*100,prefixCls:Ji,className:mr,formatter:ro=>`${tn(ro||0)}%`,onChange:ro=>Ki(Number(ro),"b")}))},rn=ho=>{let{prefixCls:Ji,value:ss,onChange:$n}=ho;const mr=`${Ji}-rgb-input`,[Qr,ni]=(0,y.useState)(Wn(ss||"#000"));(0,y.useEffect)(()=>{ss&&ni(ss)},[ss]);const Ki=(ro,Ei)=>{const ns=Qr.toRgb();ns[Ei]=ro||0;const ca=Wn(ns);ss||ni(ca),$n==null||$n(ca)};return y.createElement("div",{className:mr},y.createElement(Jr,{max:255,min:0,value:Number(Qr.toRgb().r),prefixCls:Ji,className:mr,onChange:ro=>Ki(Number(ro),"r")}),y.createElement(Jr,{max:255,min:0,value:Number(Qr.toRgb().g),prefixCls:Ji,className:mr,onChange:ro=>Ki(Number(ro),"g")}),y.createElement(Jr,{max:255,min:0,value:Number(Qr.toRgb().b),prefixCls:Ji,className:mr,onChange:ro=>Ki(Number(ro),"b")}))};const Qn=[ys.hex,ys.hsb,ys.rgb].map(ho=>({value:ho,label:ho.toLocaleUpperCase()}));var so=ho=>{const{prefixCls:Ji,format:ss,value:$n,disabledAlpha:mr,onFormatChange:Qr,onChange:ni}=ho,[Ki,ro]=(0,z.Z)(ys.hex,{value:ss,onChange:Qr}),Ei=`${Ji}-input`,ns=Na=>{ro(Na)},ca=(0,y.useMemo)(()=>{const Na={value:$n,prefixCls:Ji,onChange:ni};switch(Ki){case ys.hsb:return y.createElement(qr,Object.assign({},Na));case ys.rgb:return y.createElement(rn,Object.assign({},Na));case ys.hex:default:return y.createElement(li,Object.assign({},Na))}},[Ki,Ji,$n,ni]);return y.createElement("div",{className:`${Ei}-container`},y.createElement(Wo.Z,{value:Ki,bordered:!1,getPopupContainer:Na=>Na,popupMatchSelectWidth:68,placement:"bottomRight",onChange:ns,className:`${Ji}-format-select`,size:"small",options:Qn}),y.createElement("div",{className:Ei},ca),!mr&&y.createElement(xo,{prefixCls:Ji,value:$n,onChange:ni}))},rs=function(ho,Ji){var ss={};for(var $n in ho)Object.prototype.hasOwnProperty.call(ho,$n)&&Ji.indexOf($n)<0&&(ss[$n]=ho[$n]);if(ho!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mr=0,$n=Object.getOwnPropertySymbols(ho);mr<$n.length;mr++)Ji.indexOf($n[mr])<0&&Object.prototype.propertyIsEnumerable.call(ho,$n[mr])&&(ss[$n[mr]]=ho[$n[mr]]);return ss},pn=()=>{const ho=(0,y.useContext)(_t),{prefixCls:Ji,colorCleared:ss,allowClear:$n,value:mr,disabledAlpha:Qr,onChange:ni,onClear:Ki,onChangeComplete:ro}=ho,Ei=rs(ho,["prefixCls","colorCleared","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete"]);return y.createElement(y.Fragment,null,$n&&y.createElement(Pi,Object.assign({prefixCls:Ji,value:mr,colorCleared:ss,onChange:ns=>{ni==null||ni(ns),Ki==null||Ki()}},Ei)),y.createElement(Ve,{prefixCls:Ji,value:mr==null?void 0:mr.toHsb(),disabledAlpha:Qr,onChange:(ns,ca)=>ni==null?void 0:ni(ns,ca,!0),onChangeComplete:ro}),y.createElement(so,Object.assign({value:mr,onChange:ni,prefixCls:Ji,disabledAlpha:Qr},Ei)))},br=m(22311),Gr=m(42371),ui=m(46644),xi=m(38930),lo=m(44516),Kr=m(38251),ti=y.forwardRef(function(ho,Ji){var ss,$n=ho.prefixCls,mr=ho.forceRender,Qr=ho.className,ni=ho.style,Ki=ho.children,ro=ho.isActive,Ei=ho.role,ns=y.useState(ro||mr),ca=(0,re.Z)(ns,2),Na=ca[0],ul=ca[1];return y.useEffect(function(){(mr||ro)&&ul(!0)},[mr,ro]),Na?y.createElement("div",{ref:Ji,className:b()("".concat($n,"-content"),(ss={},(0,ne.Z)(ss,"".concat($n,"-content-active"),ro),(0,ne.Z)(ss,"".concat($n,"-content-inactive"),!ro),ss),Qr),style:ni,role:Ei},y.createElement("div",{className:"".concat($n,"-content-box")},Ki)):null});ti.displayName="PanelContent";var ji=ti,Tr=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],Qt=y.forwardRef(function(ho,Ji){var ss,$n,mr=ho.showArrow,Qr=mr===void 0?!0:mr,ni=ho.headerClass,Ki=ho.isActive,ro=ho.onItemClick,Ei=ho.forceRender,ns=ho.className,ca=ho.prefixCls,Na=ho.collapsible,ul=ho.accordion,Hl=ho.panelKey,Ml=ho.extra,ja=ho.header,Pu=ho.expandIcon,Xs=ho.openMotion,Ya=ho.destroyInactivePanel,qa=ho.children,Ul=(0,Ie.Z)(ho,Tr),ql=Na==="disabled",vu=Na==="header",au=Na==="icon",bn=Ml!=null&&typeof Ml!="boolean",Eu=function(){ro==null||ro(Hl)},ts=function(fu){(fu.key==="Enter"||fu.keyCode===Kr.Z.ENTER||fu.which===Kr.Z.ENTER)&&Eu()},Vs=typeof Pu=="function"?Pu(ho):y.createElement("i",{className:"arrow"});Vs&&(Vs=y.createElement("div",{className:"".concat(ca,"-expand-icon"),onClick:["header","icon"].includes(Na)?Eu:void 0},Vs));var ma=b()((ss={},(0,ne.Z)(ss,"".concat(ca,"-item"),!0),(0,ne.Z)(ss,"".concat(ca,"-item-active"),Ki),(0,ne.Z)(ss,"".concat(ca,"-item-disabled"),ql),ss),ns),Il=b()(ni,($n={},(0,ne.Z)($n,"".concat(ca,"-header"),!0),(0,ne.Z)($n,"".concat(ca,"-header-collapsible-only"),vu),(0,ne.Z)($n,"".concat(ca,"-icon-collapsible-only"),au),$n)),El={className:Il,"aria-expanded":Ki,"aria-disabled":ql,onKeyDown:ts};return!vu&&!au&&(El.onClick=Eu,El.role=ul?"tab":"button",El.tabIndex=ql?-1:0),y.createElement("div",(0,W.Z)({},Ul,{ref:Ji,className:ma}),y.createElement("div",El,Qr&&Vs,y.createElement("span",{className:"".concat(ca,"-header-text"),onClick:Na==="header"?Eu:void 0},ja),bn&&y.createElement("div",{className:"".concat(ca,"-extra")},Ml)),y.createElement(lo.ZP,(0,W.Z)({visible:Ki,leavedClassName:"".concat(ca,"-content-hidden")},Xs,{forceRender:Ei,removeOnLeave:Ya}),function(gl,fu){var Nu=gl.className,lc=gl.style;return y.createElement(ji,{ref:fu,prefixCls:ca,className:Nu,style:lc,isActive:Ki,forceRender:Ei,role:ul?"tabpanel":void 0},qa)}))}),Gn=Qt,yi=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],Ln=function(Ji,ss){var $n=ss.prefixCls,mr=ss.accordion,Qr=ss.collapsible,ni=ss.destroyInactivePanel,Ki=ss.onItemClick,ro=ss.activeKey,Ei=ss.openMotion,ns=ss.expandIcon;return Ji.map(function(ca,Na){var ul=ca.children,Hl=ca.label,Ml=ca.key,ja=ca.collapsible,Pu=ca.onItemClick,Xs=ca.destroyInactivePanel,Ya=(0,Ie.Z)(ca,yi),qa=String(Ml!=null?Ml:Na),Ul=ja!=null?ja:Qr,ql=Xs!=null?Xs:ni,vu=function(Eu){Ul!=="disabled"&&(Ki(Eu),Pu==null||Pu(Eu))},au=!1;return mr?au=ro[0]===qa:au=ro.indexOf(qa)>-1,y.createElement(Gn,(0,W.Z)({},Ya,{prefixCls:$n,key:qa,panelKey:qa,isActive:au,accordion:mr,openMotion:Ei,expandIcon:ns,header:Hl,collapsible:Ul,onItemClick:vu,destroyInactivePanel:ql}),ul)})},Si=function(Ji,ss,$n){if(!Ji)return null;var mr=$n.prefixCls,Qr=$n.accordion,ni=$n.collapsible,Ki=$n.destroyInactivePanel,ro=$n.onItemClick,Ei=$n.activeKey,ns=$n.openMotion,ca=$n.expandIcon,Na=Ji.key||String(ss),ul=Ji.props,Hl=ul.header,Ml=ul.headerClass,ja=ul.destroyInactivePanel,Pu=ul.collapsible,Xs=ul.onItemClick,Ya=!1;Qr?Ya=Ei[0]===Na:Ya=Ei.indexOf(Na)>-1;var qa=Pu!=null?Pu:ni,Ul=function(au){qa!=="disabled"&&(ro(au),Xs==null||Xs(au))},ql={key:Na,panelKey:Na,header:Hl,headerClass:Ml,isActive:Ya,prefixCls:mr,destroyInactivePanel:ja!=null?ja:Ki,openMotion:ns,accordion:Qr,children:Ji.props.children,onItemClick:Ul,expandIcon:ca,collapsible:qa};return typeof Ji.type=="string"?Ji:(Object.keys(ql).forEach(function(vu){typeof ql[vu]=="undefined"&&delete ql[vu]}),y.cloneElement(Ji,ql))};function tr(ho,Ji,ss){return Array.isArray(ho)?Ln(ho,ss):(0,xi.Z)(Ji).map(function($n,mr){return Si($n,mr,ss)})}var vi=tr;function Ni(ho){var Ji=ho;if(!Array.isArray(Ji)){var ss=(0,We.Z)(Ji);Ji=ss==="number"||ss==="string"?[Ji]:[]}return Ji.map(function($n){return String($n)})}var kr=y.forwardRef(function(ho,Ji){var ss=ho.prefixCls,$n=ss===void 0?"rc-collapse":ss,mr=ho.destroyInactivePanel,Qr=mr===void 0?!1:mr,ni=ho.style,Ki=ho.accordion,ro=ho.className,Ei=ho.children,ns=ho.collapsible,ca=ho.openMotion,Na=ho.expandIcon,ul=ho.activeKey,Hl=ho.defaultActiveKey,Ml=ho.onChange,ja=ho.items,Pu=b()($n,ro),Xs=(0,z.Z)([],{value:ul,onChange:function(bn){return Ml==null?void 0:Ml(bn)},defaultValue:Hl,postState:Ni}),Ya=(0,re.Z)(Xs,2),qa=Ya[0],Ul=Ya[1],ql=function(bn){return Ul(function(){if(Ki)return qa[0]===bn?[]:[bn];var Eu=qa.indexOf(bn),ts=Eu>-1;return ts?qa.filter(function(Vs){return Vs!==bn}):[].concat((0,Gr.Z)(qa),[bn])})};(0,ui.ZP)(!Ei,"`children` will be removed in next major version. Please use `items` instead.");var vu=vi(ja,Ei,{prefixCls:$n,accordion:Ki,openMotion:ca,expandIcon:Na,collapsible:ns,destroyInactivePanel:Qr,onItemClick:ql,activeKey:qa});return y.createElement("div",{ref:Ji,className:Pu,style:ni,role:Ki?"tablist":void 0},vu)}),qn=Object.assign(kr,{Panel:Gn}),ds=qn,_a=qn.Panel,da=m(39029),zs=m(26612),Wa=m(99486),cl=y.forwardRef((ho,Ji)=>{const{getPrefixCls:ss}=y.useContext(w.E_),{prefixCls:$n,className:mr,showArrow:Qr=!0}=ho,ni=ss("collapse",$n),Ki=b()({[`${ni}-no-arrow`]:!Qr},mr);return y.createElement(ds.Panel,Object.assign({ref:Ji},ho,{prefixCls:ni,className:Ki}))}),Fr=m(92068),fs=m(53710),jo=m(24577),Es=m(41788);const xs=ho=>{const{componentCls:Ji,contentBg:ss,padding:$n,headerBg:mr,headerPadding:Qr,collapseHeaderPaddingSM:ni,collapseHeaderPaddingLG:Ki,collapsePanelBorderRadius:ro,lineWidth:Ei,lineType:ns,colorBorder:ca,colorText:Na,colorTextHeading:ul,colorTextDisabled:Hl,fontSize:Ml,fontSizeLG:ja,lineHeight:Pu,marginSM:Xs,paddingSM:Ya,paddingLG:qa,paddingXS:Ul,motionDurationSlow:ql,fontSizeIcon:vu,contentPadding:au}=ho,bn=`${Ei}px ${ns} ${ca}`;return{[Ji]:Object.assign(Object.assign({},(0,Fr.Wf)(ho)),{backgroundColor:mr,border:bn,borderBottom:0,borderRadius:`${ro}px`,["&-rtl"]:{direction:"rtl"},[`& > ${Ji}-item`]:{borderBottom:bn,["&:last-child"]:{[` &, - & > ${qi}-header`]:{borderRadius:`0 0 ${ro}px ${ro}px`}},[`> ${qi}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:Qr,color:cl,lineHeight:ku,cursor:"pointer",transition:`all ${Jl}, visibility 0s`,[`> ${qi}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${qi}-expand-icon`]:{height:Ml*ku,display:"flex",alignItems:"center",paddingInlineEnd:Xs},[`${qi}-arrow`]:Object.assign(Object.assign({},(0,Fr.Ro)()),{fontSize:vu,svg:{transition:`transform ${Jl}`}}),[`${qi}-header-text`]:{marginInlineEnd:"auto"}},[`${qi}-header-collapsible-only`]:{cursor:"default",[`${qi}-header-text`]:{flex:"none",cursor:"pointer"}},[`${qi}-icon-collapsible-only`]:{cursor:"default",[`${qi}-expand-icon`]:{cursor:"pointer"}}},[`${qi}-content`]:{color:Na,backgroundColor:os,borderTop:bn,[`& > ${qi}-content-box`]:{padding:au},["&-hidden"]:{display:"none"}},["&-small"]:{[`> ${qi}-item`]:{[`> ${qi}-header`]:{padding:ni,paddingInlineStart:Hl,[`> ${qi}-expand-icon`]:{marginInlineStart:Ya-Hl}},[`> ${qi}-content > ${qi}-content-box`]:{padding:Ya}}},["&-large"]:{[`> ${qi}-item`]:{fontSize:Wa,[`> ${qi}-header`]:{padding:Ki,paddingInlineStart:$n,[`> ${qi}-expand-icon`]:{height:Wa*ku,marginInlineStart:qa-$n}},[`> ${qi}-content > ${qi}-content-box`]:{padding:qa}}},[`${qi}-item:last-child`]:{[`> ${qi}-content`]:{borderRadius:`0 0 ${ro}px ${ro}px`}},[`& ${qi}-item-disabled > ${qi}-header`]:{[` + & > ${Ji}-header`]:{borderRadius:`0 0 ${ro}px ${ro}px`}},[`> ${Ji}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:Qr,color:ul,lineHeight:Pu,cursor:"pointer",transition:`all ${ql}, visibility 0s`,[`> ${Ji}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${Ji}-expand-icon`]:{height:Ml*Pu,display:"flex",alignItems:"center",paddingInlineEnd:Xs},[`${Ji}-arrow`]:Object.assign(Object.assign({},(0,Fr.Ro)()),{fontSize:vu,svg:{transition:`transform ${ql}`}}),[`${Ji}-header-text`]:{marginInlineEnd:"auto"}},[`${Ji}-header-collapsible-only`]:{cursor:"default",[`${Ji}-header-text`]:{flex:"none",cursor:"pointer"}},[`${Ji}-icon-collapsible-only`]:{cursor:"default",[`${Ji}-expand-icon`]:{cursor:"pointer"}}},[`${Ji}-content`]:{color:Na,backgroundColor:ss,borderTop:bn,[`& > ${Ji}-content-box`]:{padding:au},["&-hidden"]:{display:"none"}},["&-small"]:{[`> ${Ji}-item`]:{[`> ${Ji}-header`]:{padding:ni,paddingInlineStart:Ul,[`> ${Ji}-expand-icon`]:{marginInlineStart:Ya-Ul}},[`> ${Ji}-content > ${Ji}-content-box`]:{padding:Ya}}},["&-large"]:{[`> ${Ji}-item`]:{fontSize:ja,[`> ${Ji}-header`]:{padding:Ki,paddingInlineStart:$n,[`> ${Ji}-expand-icon`]:{height:ja*Pu,marginInlineStart:qa-$n}},[`> ${Ji}-content > ${Ji}-content-box`]:{padding:qa}}},[`${Ji}-item:last-child`]:{[`> ${Ji}-content`]:{borderRadius:`0 0 ${ro}px ${ro}px`}},[`& ${Ji}-item-disabled > ${Ji}-header`]:{[` &, & > .arrow - `]:{color:Zl,cursor:"not-allowed"}},[`&${qi}-icon-position-end`]:{[`& > ${qi}-item`]:{[`> ${qi}-header`]:{[`${qi}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:Xs}}}}})}},Za=ho=>{const{componentCls:qi}=ho,os=`> ${qi}-item > ${qi}-header ${qi}-arrow svg`;return{[`${qi}-rtl`]:{[os]:{transform:"rotate(180deg)"}}}},tl=ho=>{const{componentCls:qi,headerBg:os,paddingXXS:$n,colorBorder:mr}=ho;return{[`${qi}-borderless`]:{backgroundColor:os,border:0,[`> ${qi}-item`]:{borderBottom:`1px solid ${mr}`},[` - > ${qi}-item:last-child, - > ${qi}-item:last-child ${qi}-header - `]:{borderRadius:0},[`> ${qi}-item:last-child`]:{borderBottom:0},[`> ${qi}-item > ${qi}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${qi}-item > ${qi}-content > ${qi}-content-box`]:{paddingTop:$n}}}},xl=ho=>{const{componentCls:qi,paddingSM:os}=ho;return{[`${qi}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${qi}-item`]:{borderBottom:0,[`> ${qi}-content`]:{backgroundColor:"transparent",border:0,[`> ${qi}-content-box`]:{paddingBlock:os}}}}}};var Qa=(0,jo.Z)("Collapse",ho=>{const qi=(0,Es.TS)(ho,{collapseHeaderPaddingSM:`${ho.paddingXS}px ${ho.paddingSM}px`,collapseHeaderPaddingLG:`${ho.padding}px ${ho.paddingLG}px`,collapsePanelBorderRadius:ho.borderRadiusLG});return[xs(qi),tl(qi),xl(qi),Za(qi),(0,fs.Z)(qi)]},ho=>({headerPadding:`${ho.paddingSM}px ${ho.padding}px`,headerBg:ho.colorFillAlter,contentPadding:`${ho.padding}px 16px`,contentBg:ho.colorBgContainer})),co=Object.assign(y.forwardRef((ho,qi)=>{const{getPrefixCls:os,direction:$n,collapse:mr}=y.useContext(w.E_),{prefixCls:Qr,className:ni,rootClassName:Ki,style:ro,bordered:Ei=!0,ghost:ns,size:ua,expandIconPosition:Na="start",children:cl,expandIcon:Zl}=ho,Ml=(0,I.Z)(bn=>{var Eu;return(Eu=ua!=null?ua:bn)!==null&&Eu!==void 0?Eu:"middle"}),Wa=os("collapse",Qr),ku=os(),[Xs,Ya]=Qa(Wa),qa=y.useMemo(()=>Na==="left"?"start":Na==="right"?"end":Na,[Na]),Hl=function(){let bn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const Eu=Zl?Zl(bn):y.createElement(_r.Z,{rotate:bn.isActive?90:void 0});return(0,ja.Tm)(Eu,()=>({className:b()(Eu.props.className,`${Wa}-arrow`)}))},Jl=b()(`${Wa}-icon-position-${qa}`,{[`${Wa}-borderless`]:!Ei,[`${Wa}-rtl`]:$n==="rtl",[`${Wa}-ghost`]:!!ns,[`${Wa}-${Ml}`]:Ml!=="middle"},mr==null?void 0:mr.className,ni,Ki,Ya),vu=Object.assign(Object.assign({},(0,zs.Z)(ku)),{motionAppear:!1,leavedClassName:`${Wa}-content-hidden`}),au=y.useMemo(()=>cl?(0,Ci.Z)(cl).map((bn,Eu)=>{var ts,Vs;if(!((ts=bn.props)===null||ts===void 0)&&ts.disabled){const ma=(Vs=bn.key)!==null&&Vs!==void 0?Vs:String(Eu),{disabled:Il,collapsible:El}=bn.props,ml=Object.assign(Object.assign({},(0,da.Z)(bn.props,["disabled"])),{key:ma,collapsible:El!=null?El:Il?"disabled":void 0});return(0,ja.Tm)(bn,ml)}return bn}):null,[cl]);return Xs(y.createElement(ds,Object.assign({ref:qi,openMotion:vu},(0,da.Z)(ho,["rootClassName"]),{expandIcon:Hl,prefixCls:Wa,className:Jl,style:Object.assign(Object.assign({},mr==null?void 0:mr.style),ro)}),au))}),{Panel:dl}),dn=co,Dn=m(10110);const Nn=ho=>ho.map(qi=>(qi.colors=qi.colors.map(Zn),qi)),tt=(ho,qi)=>{const{r:os,g:$n,b:mr,a:Qr}=ho.toRgb(),ni=new Ie(ho.toRgbString()).onBackground(qi).toHsv();return Qr<=.5?ni.v>.5:os*.299+$n*.587+mr*.114>192};var vt=ho=>{let{prefixCls:qi,presets:os,value:$n,onChange:mr}=ho;const[Qr]=(0,Dn.Z)("ColorPicker"),[,ni]=(0,S.Z)(),[Ki]=(0,z.Z)(Nn(os),{value:Nn(os),postState:Nn}),ro=`${qi}-presets`,Ei=(0,y.useMemo)(()=>Ki.map(Na=>`panel-${Na.label}`),[Ki]),ns=Na=>{mr==null||mr(Na)},ua=Ki.map(Na=>{var cl;return{key:`panel-${Na.label}`,label:y.createElement("div",{className:`${ro}-label`},Na==null?void 0:Na.label),children:y.createElement("div",{className:`${ro}-items`},Array.isArray(Na==null?void 0:Na.colors)&&((cl=Na.colors)===null||cl===void 0?void 0:cl.length)>0?Na.colors.map((Zl,Ml)=>y.createElement(bt,{key:`preset-${Ml}-${Zl.toHexString()}`,color:Zn(Zl).toRgbString(),prefixCls:qi,className:b()(`${ro}-color`,{[`${ro}-color-checked`]:Zl.toHexString()===($n==null?void 0:$n.toHexString()),[`${ro}-color-bright`]:tt(Zl,ni.colorBgElevated)}),onClick:()=>ns(Zl)})):y.createElement("span",{className:`${ro}-empty`},Qr.presetEmpty))}});return y.createElement("div",{className:ro},y.createElement(dn,{defaultActiveKey:Ei,ghost:!0,items:ua}))},lt=()=>{const{prefixCls:ho,value:qi,presets:os,onChange:$n}=(0,y.useContext)(Ct);return Array.isArray(os)?y.createElement(vt,{value:qi,presets:os,prefixCls:ho,onChange:$n}):null},Et=function(ho,qi){var os={};for(var $n in ho)Object.prototype.hasOwnProperty.call(ho,$n)&&qi.indexOf($n)<0&&(os[$n]=ho[$n]);if(ho!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mr=0,$n=Object.getOwnPropertySymbols(ho);mr<$n.length;mr++)qi.indexOf($n[mr])<0&&Object.prototype.propertyIsEnumerable.call(ho,$n[mr])&&(os[$n[mr]]=ho[$n[mr]]);return os},jn=ho=>{const{prefixCls:qi,presets:os,panelRender:$n,color:mr,onChange:Qr,onClear:ni}=ho,Ki=Et(ho,["prefixCls","presets","panelRender","color","onChange","onClear"]),ro=`${qi}-inner-content`,Ei=Object.assign({prefixCls:qi,value:mr,onChange:Qr,onClear:ni},Ki),ns=y.useMemo(()=>({prefixCls:qi,value:mr,presets:os,onChange:Qr}),[qi,mr,os,Qr]),ua=y.createElement(y.Fragment,null,y.createElement(pn,null),Array.isArray(os)&&y.createElement(P.Z,{className:`${ro}-divider`}),y.createElement(lt,null));return y.createElement(jt,{value:Ei},y.createElement(on,{value:ns},y.createElement("div",{className:ro},typeof $n=="function"?$n(ua,{components:{Picker:pn,Presets:lt}}):ua)))},xr=function(ho,qi){var os={};for(var $n in ho)Object.prototype.hasOwnProperty.call(ho,$n)&&qi.indexOf($n)<0&&(os[$n]=ho[$n]);if(ho!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mr=0,$n=Object.getOwnPropertySymbols(ho);mr<$n.length;mr++)qi.indexOf($n[mr])<0&&Object.prototype.propertyIsEnumerable.call(ho,$n[mr])&&(os[$n[mr]]=ho[$n[mr]]);return os},$i=(0,y.forwardRef)((ho,qi)=>{const{color:os,prefixCls:$n,open:mr,colorCleared:Qr,disabled:ni,format:Ki,className:ro,showText:Ei}=ho,ns=xr(ho,["color","prefixCls","open","colorCleared","disabled","format","className","showText"]),ua=`${$n}-trigger`,Na=(0,y.useMemo)(()=>Qr?y.createElement(Pi,{prefixCls:$n}):y.createElement(bt,{prefixCls:$n,color:os.toRgbString()}),[os,Qr,$n]),cl=()=>{const Ml=os.toHexString().toUpperCase(),Wa=hr(os);switch(Ki){case"rgb":return os.toRgbString();case"hsb":return os.toHsbString();case"hex":default:return Wa<100?`${Ml.slice(0,7)},${Wa}%`:Ml}},Zl=()=>{if(typeof Ei=="function")return Ei(os);if(Ei)return cl()};return y.createElement("div",Object.assign({ref:qi,className:b()(ua,ro,{[`${ua}-active`]:mr,[`${ua}-disabled`]:ni})},ns),Na,Ei&&y.createElement("div",{className:`${ua}-text`},Zl()))});function Vi(ho){return ho!==void 0}var ks=(ho,qi)=>{const{defaultValue:os,value:$n}=qi,[mr,Qr]=(0,y.useState)(()=>{let ni;return Vi($n)?ni=$n:Vi(os)?ni=os:ni=ho,Zn(ni||"")});return(0,y.useEffect)(()=>{$n&&Qr(Zn($n))},[$n]),[mr,Qr]};const Os=(ho,qi)=>({backgroundImage:`conic-gradient(${qi} 0 25%, transparent 0 50%, ${qi} 0 75%, transparent 0)`,backgroundSize:`${ho} ${ho}`});var no=(ho,qi)=>{const{componentCls:os,borderRadiusSM:$n,colorPickerInsetShadow:mr,lineWidth:Qr,colorFillSecondary:ni}=ho;return{[`${os}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:$n,width:qi,height:qi,boxShadow:mr},Os("50%",ho.colorFillSecondary)),{[`${os}-color-block-inner`]:{width:"100%",height:"100%",border:`${Qr}px solid ${ni}`,borderRadius:"inherit"}})}},ea=ho=>{const{componentCls:qi,antCls:os,fontSizeSM:$n,lineHeightSM:mr,colorPickerAlphaInputWidth:Qr,marginXXS:ni,paddingXXS:Ki,controlHeightSM:ro,marginXS:Ei,fontSizeIcon:ns,paddingXS:ua,colorTextPlaceholder:Na,colorPickerInputNumberHandleWidth:cl,lineWidth:Zl}=ho;return{[`${qi}-input-container`]:{display:"flex",[`${qi}-steppers${os}-input-number`]:{fontSize:$n,lineHeight:mr,[`${os}-input-number-input`]:{paddingInlineStart:Ki,paddingInlineEnd:0},[`${os}-input-number-handler-wrap`]:{width:cl}},[`${qi}-steppers${qi}-alpha-input`]:{flex:`0 0 ${Qr}px`,marginInlineStart:ni},[`${qi}-format-select${os}-select`]:{marginInlineEnd:Ei,width:"auto","&-single":{[`${os}-select-selector`]:{padding:0,border:0},[`${os}-select-arrow`]:{insetInlineEnd:0},[`${os}-select-selection-item`]:{paddingInlineEnd:ns+ni,fontSize:$n,lineHeight:`${ro}px`},[`${os}-select-item-option-content`]:{fontSize:$n,lineHeight:mr},[`${os}-select-dropdown`]:{[`${os}-select-item`]:{minHeight:"auto"}}}},[`${qi}-input`]:{gap:ni,alignItems:"center",flex:1,width:0,[`${qi}-hsb-input,${qi}-rgb-input`]:{display:"flex",gap:ni,alignItems:"center"},[`${qi}-steppers`]:{flex:1},[`${qi}-hex-input${os}-input-affix-wrapper`]:{flex:1,padding:`0 ${ua}px`,[`${os}-input`]:{fontSize:$n,textTransform:"uppercase",lineHeight:`${ro-2*Zl}px`},[`${os}-input-prefix`]:{color:Na}}}}}},Bl=ho=>{const{componentCls:qi,controlHeightLG:os,borderRadiusSM:$n,colorPickerInsetShadow:mr,marginSM:Qr,colorBgElevated:ni,colorFillSecondary:Ki,lineWidthBold:ro,colorPickerHandlerSize:Ei,colorPickerHandlerSizeSM:ns,colorPickerSliderHeight:ua}=ho;return{[`${qi}-select`]:{[`${qi}-palette`]:{minHeight:os*4,overflow:"hidden",borderRadius:$n},[`${qi}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:mr,inset:0},marginBottom:Qr},[`${qi}-handler`]:{width:Ei,height:Ei,border:`${ro}px solid ${ni}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${mr}, 0 0 0 1px ${Ki}`,"&-sm":{width:ns,height:ns}},[`${qi}-slider`]:{borderRadius:ua/2,[`${qi}-palette`]:{height:ua},[`${qi}-gradient`]:{borderRadius:ua/2,boxShadow:mr},"&-alpha":Os(`${ua}px`,ho.colorFillSecondary),"&-hue":{marginBottom:Qr}},[`${qi}-slider-container`]:{display:"flex",gap:Qr,marginBottom:Qr,[`${qi}-slider-group`]:{flex:1,"&-disabled-alpha":{display:"flex",alignItems:"center",[`${qi}-slider`]:{flex:1,marginBottom:0}}}}}},gl=ho=>{const{componentCls:qi,antCls:os,colorTextQuaternary:$n,paddingXXS:mr,colorPickerPresetColorSize:Qr,fontSizeSM:ni,colorText:Ki,lineHeightSM:ro,lineWidth:Ei,borderRadius:ns,colorFill:ua,colorWhite:Na,marginXXS:cl,paddingXS:Zl}=ho;return{[`${qi}-presets`]:{[`${os}-collapse-item > ${os}-collapse-header`]:{padding:0,[`${os}-collapse-expand-icon`]:{height:ni*ro,color:$n,paddingInlineEnd:mr}},[`${os}-collapse`]:{display:"flex",flexDirection:"column",gap:cl},[`${os}-collapse-item > ${os}-collapse-content > ${os}-collapse-content-box`]:{padding:`${Zl}px 0`},"&-label":{fontSize:ni,color:Ki,lineHeight:ro},"&-items":{display:"flex",flexWrap:"wrap",gap:cl*1.5,[`${qi}-presets-color`]:{position:"relative",cursor:"pointer",width:Qr,height:Qr,"&::before":{content:'""',pointerEvents:"none",width:Qr+4*Ei,height:Qr+4*Ei,position:"absolute",top:-2*Ei,insetInlineStart:-2*Ei,borderRadius:ns,border:`${Ei}px solid transparent`,transition:`border-color ${ho.motionDurationMid} ${ho.motionEaseInBack}`},"&:hover::before":{borderColor:ua},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Qr/13*5,height:Qr/13*8,border:`${ho.lineWidthBold}px solid ${ho.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${ho.motionDurationFast} ${ho.motionEaseInBack}, opacity ${ho.motionDurationFast}`},[`&${qi}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:Na,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${ho.motionDurationMid} ${ho.motionEaseOutBack} ${ho.motionDurationFast}`},[`&${qi}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:ni,color:$n}}}};const ia=(ho,qi,os)=>({borderInlineEndWidth:ho.lineWidth,borderColor:qi,boxShadow:`0 0 0 ${ho.controlOutlineWidth}px ${os}`,outline:0}),Nl=ho=>{const{componentCls:qi}=ho;return{"&-rtl":{[`${qi}-presets-color`]:{"&::after":{direction:"ltr"}},[`${qi}-clear`]:{"&::after":{direction:"ltr"}}}}},cs=(ho,qi,os)=>{const{componentCls:$n,borderRadiusSM:mr,lineWidth:Qr,colorSplit:ni,red6:Ki}=ho;return{[`${$n}-clear`]:Object.assign(Object.assign({width:qi,height:qi,borderRadius:mr,border:`${Qr}px solid ${ni}`,position:"relative",cursor:"pointer",overflow:"hidden"},os),{"&::after":{content:'""',position:"absolute",insetInlineEnd:Qr,top:0,display:"block",width:40,height:2,transformOrigin:"right",transform:"rotate(-45deg)",backgroundColor:Ki}})}},zi=ho=>{const{componentCls:qi,colorError:os,colorWarning:$n,colorErrorHover:mr,colorWarningHover:Qr,colorErrorOutline:ni,colorWarningOutline:Ki}=ho;return{[`&${qi}-status-error`]:{borderColor:os,"&:hover":{borderColor:mr},[`&${qi}-trigger-active`]:Object.assign({},ia(ho,os,ni))},[`&${qi}-status-warning`]:{borderColor:$n,"&:hover":{borderColor:Qr},[`&${qi}-trigger-active`]:Object.assign({},ia(ho,$n,Ki))}}},Ji=ho=>{const{componentCls:qi,controlHeightLG:os,controlHeightSM:$n,controlHeight:mr,controlHeightXS:Qr,borderRadius:ni,borderRadiusSM:Ki,borderRadiusXS:ro,borderRadiusLG:Ei,fontSizeLG:ns}=ho;return{[`&${qi}-lg`]:{minWidth:os,height:os,borderRadius:Ei,[`${qi}-color-block, ${qi}-clear`]:{width:mr,height:mr,borderRadius:ni},[`${qi}-trigger-text`]:{fontSize:ns}},[`&${qi}-sm`]:{minWidth:$n,height:$n,borderRadius:Ki,[`${qi}-color-block, ${qi}-clear`]:{width:Qr,height:Qr,borderRadius:ro}}}},ta=ho=>{const{componentCls:qi,colorPickerWidth:os,colorPrimary:$n,motionDurationMid:mr,colorBgElevated:Qr,colorTextDisabled:ni,colorText:Ki,colorBgContainerDisabled:ro,borderRadius:Ei,marginXS:ns,marginSM:ua,controlHeight:Na,controlHeightSM:cl,colorBgTextActive:Zl,colorPickerPresetColorSize:Ml,colorPickerPreviewSize:Wa,lineWidth:ku,colorBorder:Xs,paddingXXS:Ya,fontSize:qa,colorPrimaryHover:Hl,controlOutline:Jl}=ho;return[{[qi]:Object.assign({[`${qi}-inner-content`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"flex",flexDirection:"column",width:os,"&-divider":{margin:`${ua}px 0 ${ns}px`},[`${qi}-panel`]:Object.assign({},Bl(ho))},no(ho,Wa)),ea(ho)),gl(ho)),cs(ho,Ml,{marginInlineStart:"auto",marginBottom:ns})),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:Na,height:Na,borderRadius:Ei,border:`${ku}px solid ${Xs}`,cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",transition:`all ${mr}`,background:Qr,padding:Ya-ku,[`${qi}-trigger-text`]:{marginInlineStart:ns,marginInlineEnd:ns-(Ya-ku),fontSize:qa,color:Ki},"&:hover":{borderColor:Hl},[`&${qi}-trigger-active`]:Object.assign({},ia(ho,$n,Jl)),"&-disabled":{color:ni,background:ro,cursor:"not-allowed","&:hover":{borderColor:Zl},[`${qi}-trigger-text`]:{color:ni}}},cs(ho,cl)),no(ho,cl)),zi(ho)),Ji(ho))},Nl(ho))}]};var ms=(0,jo.Z)("ColorPicker",ho=>{const{colorTextQuaternary:qi,marginSM:os}=ho,$n=8,mr=(0,Es.TS)(ho,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:18,colorPickerInsetShadow:`inset 0 0 1px 0 ${qi}`,colorPickerSliderHeight:$n,colorPickerPreviewSize:$n*2+os});return[ta(mr)]});const Ua=ho=>{const{value:qi,defaultValue:os,format:$n,defaultFormat:mr,allowClear:Qr=!1,presets:ni,children:Ki,trigger:ro="click",open:Ei,disabled:ns,placement:ua="bottomLeft",arrow:Na=!0,panelRender:cl,showText:Zl,style:Ml,className:Wa,size:ku,rootClassName:Xs,styles:Ya,disabledAlpha:qa=!1,onFormatChange:Hl,onChange:Jl,onClear:vu,onOpenChange:au,onChangeComplete:bn,getPopupContainer:Eu,autoAdjustOverflow:ts=!0,destroyTooltipOnHide:Vs}=ho,{getPrefixCls:ma,direction:Il,colorPicker:El}=(0,y.useContext)(w.E_),[,ml]=(0,S.Z)(),[fu,Fu]=ks(ml.colorPrimary,{value:qi,defaultValue:os}),[lc,Ic]=(0,z.Z)(!1,{value:Ei,postState:Lh=>!ns&&Lh,onChange:au}),[Uc,zd]=(0,z.Z)($n,{value:$n,defaultValue:mr,onChange:Hl}),[th,Xd]=(0,y.useState)(!1),sd=ma("color-picker",Ht),Mu=(0,y.useMemo)(()=>hr(fu)<100,[fu]),{status:Fc}=y.useContext(C.aM),hd=(0,I.Z)(ku),[vd,Yd]=ms(sd),nh={[`${sd}-rtl`]:Il},Wd=b()(Xs,nh),yh=b()((0,N.Z)(sd,Fc),{[`${sd}-sm`]:hd==="small",[`${sd}-lg`]:hd==="large"},El==null?void 0:El.className,Wd,Wa,Yd),id=b()(sd,nh),nd=(0,y.useRef)(!0),Pf=(Lh,Sf,xp)=>{let Nf=Zn(Lh);(th||(qi===null||!qi&&os===null))&&(Xd(!1),hr(fu)===0&&Sf!=="alpha"&&(Nf=Zi(Nf))),qa&&Mu&&(Nf=Zi(Nf)),xp?nd.current=!1:bn==null||bn(Nf),Fu(Nf),Jl==null||Jl(Nf,Nf.toHexString())},Jd=()=>{Xd(!0),vu==null||vu()},cc=Lh=>{nd.current=!0;let Sf=Zn(Lh);qa&&Mu&&(Sf=Zi(Lh)),bn==null||bn(Sf)},Yc={open:lc,trigger:ro,placement:ua,arrow:Na,rootClassName:Xs,getPopupContainer:Eu,autoAdjustOverflow:ts,destroyTooltipOnHide:Vs},Wh={prefixCls:sd,color:fu,allowClear:Qr,colorCleared:th,disabled:ns,disabledAlpha:qa,presets:ni,panelRender:cl,format:Uc,onFormatChange:zd,onChangeComplete:cc},uf=Object.assign(Object.assign({},El==null?void 0:El.style),Ml);return vd(y.createElement(f.Z,Object.assign({style:Ya==null?void 0:Ya.popup,overlayInnerStyle:Ya==null?void 0:Ya.popupOverlayInner,onOpenChange:Lh=>{nd.current&&!ns&&Ic(Lh)},content:y.createElement(C.Ux,{override:!0,status:!0},y.createElement(jn,Object.assign({},Wh,{onChange:Pf,onChangeComplete:cc,onClear:Jd}))),overlayClassName:id},Yc),Ki||y.createElement($i,{open:lc,className:yh,style:uf,color:qi?Zn(qi):fu,prefixCls:sd,disabled:ns,colorCleared:th,showText:Zl,format:Uc})))},ju=(0,k.Z)(Ua,"color-picker",ho=>ho,ho=>Object.assign(Object.assign({},ho),{placement:"bottom",autoAdjustOverflow:!1}));Ua._InternalPanelDoNotUseOrYouWillBeFired=ju;var rc=Ua,Pc=rc},98866:function(nt,V,m){"use strict";m.d(V,{n:function(){return b}});var y=m(67294);const A=y.createContext(!1),b=z=>{let{children:k,disabled:N}=z;const w=y.useContext(A);return y.createElement(A.Provider,{value:N!=null?N:w},k)};V.Z=A},97647:function(nt,V,m){"use strict";m.d(V,{q:function(){return b}});var y=m(67294);const A=y.createContext(void 0),b=z=>{let{children:k,size:N}=z;const w=y.useContext(A);return y.createElement(A.Provider,{value:N||w},k)};V.Z=A},53124:function(nt,V,m){"use strict";m.d(V,{E_:function(){return z},oR:function(){return A}});var y=m(67294);const A="anticon",b=(N,w)=>w||(N?`ant-${N}`:"ant"),z=y.createContext({getPrefixCls:b,iconPrefixCls:A}),{Consumer:k}=z},88258:function(nt,V,m){"use strict";var y=m(67294),A=m(53124),b=m(32983);const z=k=>{const{componentName:N}=k,{getPrefixCls:w}=(0,y.useContext)(A.E_),I=w("empty");switch(N){case"Table":case"List":return y.createElement(b.Z,{image:b.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return y.createElement(b.Z,{image:b.Z.PRESENTED_IMAGE_SIMPLE,className:`${I}-small`});default:return y.createElement(b.Z,null)}};V.Z=z},98675:function(nt,V,m){"use strict";var y=m(67294),A=m(97647);const b=z=>{const k=y.useContext(A.Z);return y.useMemo(()=>z?typeof z=="string"?z!=null?z:k:z instanceof Function?z(k):k:k,[z,k])};V.Z=b},94740:function(nt,V,m){"use strict";m.d(V,{ZP:function(){return Bi},w6:function(){return ve}});var y=m(67294),A=m(85731),b=m(54775),z=m(56982),k=m(8880),N=m(27288),w=m(37920),I=m(83008),C=m(76745);const f="internalMark";var P=wi=>{const{locale:io={},children:ln,_ANT_MARK__:Ve}=wi;y.useEffect(()=>(0,I.f)(io&&io.Modal),[io]);const _t=y.useMemo(()=>Object.assign(Object.assign({},io),{exist:!0}),[io]);return y.createElement(C.Z.Provider,{value:_t},ln)},j=m(88526),re=m(33083),J=m(2790),ie=m(53124),de=m(16397),he=m(10274),fe=m(98924),ke=m(44958);const we=`-ant-${Date.now()}-${Math.random()}`;function Ne(wi,io){const ln={},Ve=(jt,on)=>{let Ot=jt.clone();return Ot=(on==null?void 0:on(Ot))||Ot,Ot.toRgbString()},_t=(jt,on)=>{const Ot=new he.C(jt),Tt=(0,de.R_)(Ot.toRgbString());ln[`${on}-color`]=Ve(Ot),ln[`${on}-color-disabled`]=Tt[1],ln[`${on}-color-hover`]=Tt[4],ln[`${on}-color-active`]=Tt[6],ln[`${on}-color-outline`]=Ot.clone().setAlpha(.2).toRgbString(),ln[`${on}-color-deprecated-bg`]=Tt[0],ln[`${on}-color-deprecated-border`]=Tt[2]};if(io.primaryColor){_t(io.primaryColor,"primary");const jt=new he.C(io.primaryColor),on=(0,de.R_)(jt.toRgbString());on.forEach((Tt,xt)=>{ln[`primary-${xt+1}`]=Tt}),ln["primary-color-deprecated-l-35"]=Ve(jt,Tt=>Tt.lighten(35)),ln["primary-color-deprecated-l-20"]=Ve(jt,Tt=>Tt.lighten(20)),ln["primary-color-deprecated-t-20"]=Ve(jt,Tt=>Tt.tint(20)),ln["primary-color-deprecated-t-50"]=Ve(jt,Tt=>Tt.tint(50)),ln["primary-color-deprecated-f-12"]=Ve(jt,Tt=>Tt.setAlpha(Tt.getAlpha()*.12));const Ot=new he.C(on[0]);ln["primary-color-active-deprecated-f-30"]=Ve(Ot,Tt=>Tt.setAlpha(Tt.getAlpha()*.3)),ln["primary-color-active-deprecated-d-02"]=Ve(Ot,Tt=>Tt.darken(2))}return io.successColor&&_t(io.successColor,"success"),io.warningColor&&_t(io.warningColor,"warning"),io.errorColor&&_t(io.errorColor,"error"),io.infoColor&&_t(io.infoColor,"info"),` + `]:{color:Hl,cursor:"not-allowed"}},[`&${Ji}-icon-position-end`]:{[`& > ${Ji}-item`]:{[`> ${Ji}-header`]:{[`${Ji}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:Xs}}}}})}},Za=ho=>{const{componentCls:Ji}=ho,ss=`> ${Ji}-item > ${Ji}-header ${Ji}-arrow svg`;return{[`${Ji}-rtl`]:{[ss]:{transform:"rotate(180deg)"}}}},tl=ho=>{const{componentCls:Ji,headerBg:ss,paddingXXS:$n,colorBorder:mr}=ho;return{[`${Ji}-borderless`]:{backgroundColor:ss,border:0,[`> ${Ji}-item`]:{borderBottom:`1px solid ${mr}`},[` + > ${Ji}-item:last-child, + > ${Ji}-item:last-child ${Ji}-header + `]:{borderRadius:0},[`> ${Ji}-item:last-child`]:{borderBottom:0},[`> ${Ji}-item > ${Ji}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${Ji}-item > ${Ji}-content > ${Ji}-content-box`]:{paddingTop:$n}}}},xl=ho=>{const{componentCls:Ji,paddingSM:ss}=ho;return{[`${Ji}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${Ji}-item`]:{borderBottom:0,[`> ${Ji}-content`]:{backgroundColor:"transparent",border:0,[`> ${Ji}-content-box`]:{paddingBlock:ss}}}}}};var Qa=(0,jo.Z)("Collapse",ho=>{const Ji=(0,Es.TS)(ho,{collapseHeaderPaddingSM:`${ho.paddingXS}px ${ho.paddingSM}px`,collapseHeaderPaddingLG:`${ho.padding}px ${ho.paddingLG}px`,collapsePanelBorderRadius:ho.borderRadiusLG});return[xs(Ji),tl(Ji),xl(Ji),Za(Ji),(0,fs.Z)(Ji)]},ho=>({headerPadding:`${ho.paddingSM}px ${ho.padding}px`,headerBg:ho.colorFillAlter,contentPadding:`${ho.padding}px 16px`,contentBg:ho.colorBgContainer})),co=Object.assign(y.forwardRef((ho,Ji)=>{const{getPrefixCls:ss,direction:$n,collapse:mr}=y.useContext(w.E_),{prefixCls:Qr,className:ni,rootClassName:Ki,style:ro,bordered:Ei=!0,ghost:ns,size:ca,expandIconPosition:Na="start",children:ul,expandIcon:Hl}=ho,Ml=(0,A.Z)(bn=>{var Eu;return(Eu=ca!=null?ca:bn)!==null&&Eu!==void 0?Eu:"middle"}),ja=ss("collapse",Qr),Pu=ss(),[Xs,Ya]=Qa(ja),qa=y.useMemo(()=>Na==="left"?"start":Na==="right"?"end":Na,[Na]),Ul=function(){let bn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const Eu=Hl?Hl(bn):y.createElement(br.Z,{rotate:bn.isActive?90:void 0});return(0,Wa.Tm)(Eu,()=>({className:b()(Eu.props.className,`${ja}-arrow`)}))},ql=b()(`${ja}-icon-position-${qa}`,{[`${ja}-borderless`]:!Ei,[`${ja}-rtl`]:$n==="rtl",[`${ja}-ghost`]:!!ns,[`${ja}-${Ml}`]:Ml!=="middle"},mr==null?void 0:mr.className,ni,Ki,Ya),vu=Object.assign(Object.assign({},(0,zs.Z)(Pu)),{motionAppear:!1,leavedClassName:`${ja}-content-hidden`}),au=y.useMemo(()=>ul?(0,xi.Z)(ul).map((bn,Eu)=>{var ts,Vs;if(!((ts=bn.props)===null||ts===void 0)&&ts.disabled){const ma=(Vs=bn.key)!==null&&Vs!==void 0?Vs:String(Eu),{disabled:Il,collapsible:El}=bn.props,gl=Object.assign(Object.assign({},(0,da.Z)(bn.props,["disabled"])),{key:ma,collapsible:El!=null?El:Il?"disabled":void 0});return(0,Wa.Tm)(bn,gl)}return bn}):null,[ul]);return Xs(y.createElement(ds,Object.assign({ref:Ji,openMotion:vu},(0,da.Z)(ho,["rootClassName"]),{expandIcon:Ul,prefixCls:ja,className:ql,style:Object.assign(Object.assign({},mr==null?void 0:mr.style),ro)}),au))}),{Panel:cl}),dn=co,An=m(879);const Nn=ho=>ho.map(Ji=>(Ji.colors=Ji.colors.map(Wn),Ji)),tt=(ho,Ji)=>{const{r:ss,g:$n,b:mr,a:Qr}=ho.toRgb(),ni=new Ae(ho.toRgbString()).onBackground(Ji).toHsv();return Qr<=.5?ni.v>.5:ss*.299+$n*.587+mr*.114>192};var vt=ho=>{let{prefixCls:Ji,presets:ss,value:$n,onChange:mr}=ho;const[Qr]=(0,An.Z)("ColorPicker"),[,ni]=(0,S.Z)(),[Ki]=(0,z.Z)(Nn(ss),{value:Nn(ss),postState:Nn}),ro=`${Ji}-presets`,Ei=(0,y.useMemo)(()=>Ki.map(Na=>`panel-${Na.label}`),[Ki]),ns=Na=>{mr==null||mr(Na)},ca=Ki.map(Na=>{var ul;return{key:`panel-${Na.label}`,label:y.createElement("div",{className:`${ro}-label`},Na==null?void 0:Na.label),children:y.createElement("div",{className:`${ro}-items`},Array.isArray(Na==null?void 0:Na.colors)&&((ul=Na.colors)===null||ul===void 0?void 0:ul.length)>0?Na.colors.map((Hl,Ml)=>y.createElement(wt,{key:`preset-${Ml}-${Hl.toHexString()}`,color:Wn(Hl).toRgbString(),prefixCls:Ji,className:b()(`${ro}-color`,{[`${ro}-color-checked`]:Hl.toHexString()===($n==null?void 0:$n.toHexString()),[`${ro}-color-bright`]:tt(Hl,ni.colorBgElevated)}),onClick:()=>ns(Hl)})):y.createElement("span",{className:`${ro}-empty`},Qr.presetEmpty))}});return y.createElement("div",{className:ro},y.createElement(dn,{defaultActiveKey:Ei,ghost:!0,items:ca}))},lt=()=>{const{prefixCls:ho,value:Ji,presets:ss,onChange:$n}=(0,y.useContext)(xt);return Array.isArray(ss)?y.createElement(vt,{value:Ji,presets:ss,prefixCls:ho,onChange:$n}):null},Et=function(ho,Ji){var ss={};for(var $n in ho)Object.prototype.hasOwnProperty.call(ho,$n)&&Ji.indexOf($n)<0&&(ss[$n]=ho[$n]);if(ho!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mr=0,$n=Object.getOwnPropertySymbols(ho);mr<$n.length;mr++)Ji.indexOf($n[mr])<0&&Object.prototype.propertyIsEnumerable.call(ho,$n[mr])&&(ss[$n[mr]]=ho[$n[mr]]);return ss},jn=ho=>{const{prefixCls:Ji,presets:ss,panelRender:$n,color:mr,onChange:Qr,onClear:ni}=ho,Ki=Et(ho,["prefixCls","presets","panelRender","color","onChange","onClear"]),ro=`${Ji}-inner-content`,Ei=Object.assign({prefixCls:Ji,value:mr,onChange:Qr,onClear:ni},Ki),ns=y.useMemo(()=>({prefixCls:Ji,value:mr,presets:ss,onChange:Qr}),[Ji,mr,ss,Qr]),ca=y.createElement(y.Fragment,null,y.createElement(pn,null),Array.isArray(ss)&&y.createElement(P.Z,{className:`${ro}-divider`}),y.createElement(lt,null));return y.createElement(Wt,{value:Ei},y.createElement(on,{value:ns},y.createElement("div",{className:ro},typeof $n=="function"?$n(ca,{components:{Picker:pn,Presets:lt}}):ca)))},Cr=function(ho,Ji){var ss={};for(var $n in ho)Object.prototype.hasOwnProperty.call(ho,$n)&&Ji.indexOf($n)<0&&(ss[$n]=ho[$n]);if(ho!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mr=0,$n=Object.getOwnPropertySymbols(ho);mr<$n.length;mr++)Ji.indexOf($n[mr])<0&&Object.prototype.propertyIsEnumerable.call(ho,$n[mr])&&(ss[$n[mr]]=ho[$n[mr]]);return ss},$i=(0,y.forwardRef)((ho,Ji)=>{const{color:ss,prefixCls:$n,open:mr,colorCleared:Qr,disabled:ni,format:Ki,className:ro,showText:Ei}=ho,ns=Cr(ho,["color","prefixCls","open","colorCleared","disabled","format","className","showText"]),ca=`${$n}-trigger`,Na=(0,y.useMemo)(()=>Qr?y.createElement(Pi,{prefixCls:$n}):y.createElement(wt,{prefixCls:$n,color:ss.toRgbString()}),[ss,Qr,$n]),ul=()=>{const Ml=ss.toHexString().toUpperCase(),ja=hr(ss);switch(Ki){case"rgb":return ss.toRgbString();case"hsb":return ss.toHsbString();case"hex":default:return ja<100?`${Ml.slice(0,7)},${ja}%`:Ml}},Hl=()=>{if(typeof Ei=="function")return Ei(ss);if(Ei)return ul()};return y.createElement("div",Object.assign({ref:Ji,className:b()(ca,ro,{[`${ca}-active`]:mr,[`${ca}-disabled`]:ni})},ns),Na,Ei&&y.createElement("div",{className:`${ca}-text`},Hl()))});function Vi(ho){return ho!==void 0}var ks=(ho,Ji)=>{const{defaultValue:ss,value:$n}=Ji,[mr,Qr]=(0,y.useState)(()=>{let ni;return Vi($n)?ni=$n:Vi(ss)?ni=ss:ni=ho,Wn(ni||"")});return(0,y.useEffect)(()=>{$n&&Qr(Wn($n))},[$n]),[mr,Qr]};const Os=(ho,Ji)=>({backgroundImage:`conic-gradient(${Ji} 0 25%, transparent 0 50%, ${Ji} 0 75%, transparent 0)`,backgroundSize:`${ho} ${ho}`});var no=(ho,Ji)=>{const{componentCls:ss,borderRadiusSM:$n,colorPickerInsetShadow:mr,lineWidth:Qr,colorFillSecondary:ni}=ho;return{[`${ss}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:$n,width:Ji,height:Ji,boxShadow:mr},Os("50%",ho.colorFillSecondary)),{[`${ss}-color-block-inner`]:{width:"100%",height:"100%",border:`${Qr}px solid ${ni}`,borderRadius:"inherit"}})}},ea=ho=>{const{componentCls:Ji,antCls:ss,fontSizeSM:$n,lineHeightSM:mr,colorPickerAlphaInputWidth:Qr,marginXXS:ni,paddingXXS:Ki,controlHeightSM:ro,marginXS:Ei,fontSizeIcon:ns,paddingXS:ca,colorTextPlaceholder:Na,colorPickerInputNumberHandleWidth:ul,lineWidth:Hl}=ho;return{[`${Ji}-input-container`]:{display:"flex",[`${Ji}-steppers${ss}-input-number`]:{fontSize:$n,lineHeight:mr,[`${ss}-input-number-input`]:{paddingInlineStart:Ki,paddingInlineEnd:0},[`${ss}-input-number-handler-wrap`]:{width:ul}},[`${Ji}-steppers${Ji}-alpha-input`]:{flex:`0 0 ${Qr}px`,marginInlineStart:ni},[`${Ji}-format-select${ss}-select`]:{marginInlineEnd:Ei,width:"auto","&-single":{[`${ss}-select-selector`]:{padding:0,border:0},[`${ss}-select-arrow`]:{insetInlineEnd:0},[`${ss}-select-selection-item`]:{paddingInlineEnd:ns+ni,fontSize:$n,lineHeight:`${ro}px`},[`${ss}-select-item-option-content`]:{fontSize:$n,lineHeight:mr},[`${ss}-select-dropdown`]:{[`${ss}-select-item`]:{minHeight:"auto"}}}},[`${Ji}-input`]:{gap:ni,alignItems:"center",flex:1,width:0,[`${Ji}-hsb-input,${Ji}-rgb-input`]:{display:"flex",gap:ni,alignItems:"center"},[`${Ji}-steppers`]:{flex:1},[`${Ji}-hex-input${ss}-input-affix-wrapper`]:{flex:1,padding:`0 ${ca}px`,[`${ss}-input`]:{fontSize:$n,textTransform:"uppercase",lineHeight:`${ro-2*Hl}px`},[`${ss}-input-prefix`]:{color:Na}}}}}},Bl=ho=>{const{componentCls:Ji,controlHeightLG:ss,borderRadiusSM:$n,colorPickerInsetShadow:mr,marginSM:Qr,colorBgElevated:ni,colorFillSecondary:Ki,lineWidthBold:ro,colorPickerHandlerSize:Ei,colorPickerHandlerSizeSM:ns,colorPickerSliderHeight:ca}=ho;return{[`${Ji}-select`]:{[`${Ji}-palette`]:{minHeight:ss*4,overflow:"hidden",borderRadius:$n},[`${Ji}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:mr,inset:0},marginBottom:Qr},[`${Ji}-handler`]:{width:Ei,height:Ei,border:`${ro}px solid ${ni}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${mr}, 0 0 0 1px ${Ki}`,"&-sm":{width:ns,height:ns}},[`${Ji}-slider`]:{borderRadius:ca/2,[`${Ji}-palette`]:{height:ca},[`${Ji}-gradient`]:{borderRadius:ca/2,boxShadow:mr},"&-alpha":Os(`${ca}px`,ho.colorFillSecondary),"&-hue":{marginBottom:Qr}},[`${Ji}-slider-container`]:{display:"flex",gap:Qr,marginBottom:Qr,[`${Ji}-slider-group`]:{flex:1,"&-disabled-alpha":{display:"flex",alignItems:"center",[`${Ji}-slider`]:{flex:1,marginBottom:0}}}}}},pl=ho=>{const{componentCls:Ji,antCls:ss,colorTextQuaternary:$n,paddingXXS:mr,colorPickerPresetColorSize:Qr,fontSizeSM:ni,colorText:Ki,lineHeightSM:ro,lineWidth:Ei,borderRadius:ns,colorFill:ca,colorWhite:Na,marginXXS:ul,paddingXS:Hl}=ho;return{[`${Ji}-presets`]:{[`${ss}-collapse-item > ${ss}-collapse-header`]:{padding:0,[`${ss}-collapse-expand-icon`]:{height:ni*ro,color:$n,paddingInlineEnd:mr}},[`${ss}-collapse`]:{display:"flex",flexDirection:"column",gap:ul},[`${ss}-collapse-item > ${ss}-collapse-content > ${ss}-collapse-content-box`]:{padding:`${Hl}px 0`},"&-label":{fontSize:ni,color:Ki,lineHeight:ro},"&-items":{display:"flex",flexWrap:"wrap",gap:ul*1.5,[`${Ji}-presets-color`]:{position:"relative",cursor:"pointer",width:Qr,height:Qr,"&::before":{content:'""',pointerEvents:"none",width:Qr+4*Ei,height:Qr+4*Ei,position:"absolute",top:-2*Ei,insetInlineStart:-2*Ei,borderRadius:ns,border:`${Ei}px solid transparent`,transition:`border-color ${ho.motionDurationMid} ${ho.motionEaseInBack}`},"&:hover::before":{borderColor:ca},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Qr/13*5,height:Qr/13*8,border:`${ho.lineWidthBold}px solid ${ho.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${ho.motionDurationFast} ${ho.motionEaseInBack}, opacity ${ho.motionDurationFast}`},[`&${Ji}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:Na,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${ho.motionDurationMid} ${ho.motionEaseOutBack} ${ho.motionDurationFast}`},[`&${Ji}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:ni,color:$n}}}};const oa=(ho,Ji,ss)=>({borderInlineEndWidth:ho.lineWidth,borderColor:Ji,boxShadow:`0 0 0 ${ho.controlOutlineWidth}px ${ss}`,outline:0}),Nl=ho=>{const{componentCls:Ji}=ho;return{"&-rtl":{[`${Ji}-presets-color`]:{"&::after":{direction:"ltr"}},[`${Ji}-clear`]:{"&::after":{direction:"ltr"}}}}},cs=(ho,Ji,ss)=>{const{componentCls:$n,borderRadiusSM:mr,lineWidth:Qr,colorSplit:ni,red6:Ki}=ho;return{[`${$n}-clear`]:Object.assign(Object.assign({width:Ji,height:Ji,borderRadius:mr,border:`${Qr}px solid ${ni}`,position:"relative",cursor:"pointer",overflow:"hidden"},ss),{"&::after":{content:'""',position:"absolute",insetInlineEnd:Qr,top:0,display:"block",width:40,height:2,transformOrigin:"right",transform:"rotate(-45deg)",backgroundColor:Ki}})}},zi=ho=>{const{componentCls:Ji,colorError:ss,colorWarning:$n,colorErrorHover:mr,colorWarningHover:Qr,colorErrorOutline:ni,colorWarningOutline:Ki}=ho;return{[`&${Ji}-status-error`]:{borderColor:ss,"&:hover":{borderColor:mr},[`&${Ji}-trigger-active`]:Object.assign({},oa(ho,ss,ni))},[`&${Ji}-status-warning`]:{borderColor:$n,"&:hover":{borderColor:Qr},[`&${Ji}-trigger-active`]:Object.assign({},oa(ho,$n,Ki))}}},qi=ho=>{const{componentCls:Ji,controlHeightLG:ss,controlHeightSM:$n,controlHeight:mr,controlHeightXS:Qr,borderRadius:ni,borderRadiusSM:Ki,borderRadiusXS:ro,borderRadiusLG:Ei,fontSizeLG:ns}=ho;return{[`&${Ji}-lg`]:{minWidth:ss,height:ss,borderRadius:Ei,[`${Ji}-color-block, ${Ji}-clear`]:{width:mr,height:mr,borderRadius:ni},[`${Ji}-trigger-text`]:{fontSize:ns}},[`&${Ji}-sm`]:{minWidth:$n,height:$n,borderRadius:Ki,[`${Ji}-color-block, ${Ji}-clear`]:{width:Qr,height:Qr,borderRadius:ro}}}},ta=ho=>{const{componentCls:Ji,colorPickerWidth:ss,colorPrimary:$n,motionDurationMid:mr,colorBgElevated:Qr,colorTextDisabled:ni,colorText:Ki,colorBgContainerDisabled:ro,borderRadius:Ei,marginXS:ns,marginSM:ca,controlHeight:Na,controlHeightSM:ul,colorBgTextActive:Hl,colorPickerPresetColorSize:Ml,colorPickerPreviewSize:ja,lineWidth:Pu,colorBorder:Xs,paddingXXS:Ya,fontSize:qa,colorPrimaryHover:Ul,controlOutline:ql}=ho;return[{[Ji]:Object.assign({[`${Ji}-inner-content`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"flex",flexDirection:"column",width:ss,"&-divider":{margin:`${ca}px 0 ${ns}px`},[`${Ji}-panel`]:Object.assign({},Bl(ho))},no(ho,ja)),ea(ho)),pl(ho)),cs(ho,Ml,{marginInlineStart:"auto",marginBottom:ns})),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:Na,height:Na,borderRadius:Ei,border:`${Pu}px solid ${Xs}`,cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",transition:`all ${mr}`,background:Qr,padding:Ya-Pu,[`${Ji}-trigger-text`]:{marginInlineStart:ns,marginInlineEnd:ns-(Ya-Pu),fontSize:qa,color:Ki},"&:hover":{borderColor:Ul},[`&${Ji}-trigger-active`]:Object.assign({},oa(ho,$n,ql)),"&-disabled":{color:ni,background:ro,cursor:"not-allowed","&:hover":{borderColor:Hl},[`${Ji}-trigger-text`]:{color:ni}}},cs(ho,ul)),no(ho,ul)),zi(ho)),qi(ho))},Nl(ho))}]};var ms=(0,jo.Z)("ColorPicker",ho=>{const{colorTextQuaternary:Ji,marginSM:ss}=ho,$n=8,mr=(0,Es.TS)(ho,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:18,colorPickerInsetShadow:`inset 0 0 1px 0 ${Ji}`,colorPickerSliderHeight:$n,colorPickerPreviewSize:$n*2+ss});return[ta(mr)]});const Ua=ho=>{const{value:Ji,defaultValue:ss,format:$n,defaultFormat:mr,allowClear:Qr=!1,presets:ni,children:Ki,trigger:ro="click",open:Ei,disabled:ns,placement:ca="bottomLeft",arrow:Na=!0,panelRender:ul,showText:Hl,style:Ml,className:ja,size:Pu,rootClassName:Xs,styles:Ya,disabledAlpha:qa=!1,onFormatChange:Ul,onChange:ql,onClear:vu,onOpenChange:au,onChangeComplete:bn,getPopupContainer:Eu,autoAdjustOverflow:ts=!0,destroyTooltipOnHide:Vs}=ho,{getPrefixCls:ma,direction:Il,colorPicker:El}=(0,y.useContext)(w.E_),[,gl]=(0,S.Z)(),[fu,Nu]=ks(gl.colorPrimary,{value:Ji,defaultValue:ss}),[lc,Ic]=(0,z.Z)(!1,{value:Ei,postState:Lh=>!ns&&Lh,onChange:au}),[Vc,zd]=(0,z.Z)($n,{value:$n,defaultValue:mr,onChange:Ul}),[eh,Kd]=(0,y.useState)(!1),ad=ma("color-picker",Ht),ku=(0,y.useMemo)(()=>hr(fu)<100,[fu]),{status:Fc}=y.useContext(C.aM),dd=(0,A.Z)(Pu),[vd,Xd]=ms(ad),th={[`${ad}-rtl`]:Il},jd=b()(Xs,th),vh=b()((0,N.Z)(ad,Fc),{[`${ad}-sm`]:dd==="small",[`${ad}-lg`]:dd==="large"},El==null?void 0:El.className,jd,ja,Xd),id=b()(ad,th),nd=(0,y.useRef)(!0),Pf=(Lh,Sf,Cp)=>{let Nf=Wn(Lh);(eh||(Ji===null||!Ji&&ss===null))&&(Kd(!1),hr(fu)===0&&Sf!=="alpha"&&(Nf=Zi(Nf))),qa&&ku&&(Nf=Zi(Nf)),Cp?nd.current=!1:bn==null||bn(Nf),Nu(Nf),ql==null||ql(Nf,Nf.toHexString())},qd=()=>{Kd(!0),vu==null||vu()},cc=Lh=>{nd.current=!0;let Sf=Wn(Lh);qa&&ku&&(Sf=Zi(Lh)),bn==null||bn(Sf)},Xc={open:lc,trigger:ro,placement:ca,arrow:Na,rootClassName:Xs,getPopupContainer:Eu,autoAdjustOverflow:ts,destroyTooltipOnHide:Vs},jh={prefixCls:ad,color:fu,allowClear:Qr,colorCleared:eh,disabled:ns,disabledAlpha:qa,presets:ni,panelRender:ul,format:Vc,onFormatChange:zd,onChangeComplete:cc},uf=Object.assign(Object.assign({},El==null?void 0:El.style),Ml);return vd(y.createElement(f.Z,Object.assign({style:Ya==null?void 0:Ya.popup,overlayInnerStyle:Ya==null?void 0:Ya.popupOverlayInner,onOpenChange:Lh=>{nd.current&&!ns&&Ic(Lh)},content:y.createElement(C.Ux,{override:!0,status:!0},y.createElement(jn,Object.assign({},jh,{onChange:Pf,onChangeComplete:cc,onClear:qd}))),overlayClassName:id},Xc),Ki||y.createElement($i,{open:lc,className:vh,style:uf,color:Ji?Wn(Ji):fu,prefixCls:ad,disabled:ns,colorCleared:eh,showText:Hl,format:Vc})))},$u=(0,k.Z)(Ua,"color-picker",ho=>ho,ho=>Object.assign(Object.assign({},ho),{placement:"bottom",autoAdjustOverflow:!1}));Ua._InternalPanelDoNotUseOrYouWillBeFired=$u;var rc=Ua,Pc=rc},81689:function(nt,V,m){"use strict";m.d(V,{n:function(){return b}});var y=m(77617);const I=y.createContext(!1),b=z=>{let{children:k,disabled:N}=z;const w=y.useContext(I);return y.createElement(I.Provider,{value:N!=null?N:w},k)};V.Z=I},75189:function(nt,V,m){"use strict";m.d(V,{q:function(){return b}});var y=m(77617);const I=y.createContext(void 0),b=z=>{let{children:k,size:N}=z;const w=y.useContext(I);return y.createElement(I.Provider,{value:N||w},k)};V.Z=I},67392:function(nt,V,m){"use strict";m.d(V,{E_:function(){return z},oR:function(){return I}});var y=m(77617);const I="anticon",b=(N,w)=>w||(N?`ant-${N}`:"ant"),z=y.createContext({getPrefixCls:b,iconPrefixCls:I}),{Consumer:k}=z},47316:function(nt,V,m){"use strict";var y=m(77617),I=m(67392),b=m(94823);const z=k=>{const{componentName:N}=k,{getPrefixCls:w}=(0,y.useContext)(I.E_),A=w("empty");switch(N){case"Table":case"List":return y.createElement(b.Z,{image:b.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return y.createElement(b.Z,{image:b.Z.PRESENTED_IMAGE_SIMPLE,className:`${A}-small`});default:return y.createElement(b.Z,null)}};V.Z=z},21843:function(nt,V,m){"use strict";var y=m(77617),I=m(75189);const b=z=>{const k=y.useContext(I.Z);return y.useMemo(()=>z?typeof z=="string"?z!=null?z:k:z instanceof Function?z(k):k:k,[z,k])};V.Z=b},75811:function(nt,V,m){"use strict";m.d(V,{ZP:function(){return Bi},w6:function(){return ge}});var y=m(77617),I=m(84608),b=m(35954),z=m(79102),k=m(66181),N=m(40869),w=m(36116),A=m(75707),C=m(5872);const f="internalMark";var P=Ci=>{const{locale:io={},children:ln,_ANT_MARK__:Ve}=Ci;y.useEffect(()=>(0,A.f)(io&&io.Modal),[io]);const _t=y.useMemo(()=>Object.assign(Object.assign({},io),{exist:!0}),[io]);return y.createElement(C.Z.Provider,{value:_t},ln)},W=m(530),ne=m(13803),re=m(73979),ce=m(67392),pe=m(63511),he=m(64993),fe=m(53261),Be=m(68063);const Ie=`-ant-${Date.now()}-${Math.random()}`;function We(Ci,io){const ln={},Ve=(Wt,on)=>{let Ot=Wt.clone();return Ot=(on==null?void 0:on(Ot))||Ot,Ot.toRgbString()},_t=(Wt,on)=>{const Ot=new he.C(Wt),Tt=(0,pe.R_)(Ot.toRgbString());ln[`${on}-color`]=Ve(Ot),ln[`${on}-color-disabled`]=Tt[1],ln[`${on}-color-hover`]=Tt[4],ln[`${on}-color-active`]=Tt[6],ln[`${on}-color-outline`]=Ot.clone().setAlpha(.2).toRgbString(),ln[`${on}-color-deprecated-bg`]=Tt[0],ln[`${on}-color-deprecated-border`]=Tt[2]};if(io.primaryColor){_t(io.primaryColor,"primary");const Wt=new he.C(io.primaryColor),on=(0,pe.R_)(Wt.toRgbString());on.forEach((Tt,bt)=>{ln[`primary-${bt+1}`]=Tt}),ln["primary-color-deprecated-l-35"]=Ve(Wt,Tt=>Tt.lighten(35)),ln["primary-color-deprecated-l-20"]=Ve(Wt,Tt=>Tt.lighten(20)),ln["primary-color-deprecated-t-20"]=Ve(Wt,Tt=>Tt.tint(20)),ln["primary-color-deprecated-t-50"]=Ve(Wt,Tt=>Tt.tint(50)),ln["primary-color-deprecated-f-12"]=Ve(Wt,Tt=>Tt.setAlpha(Tt.getAlpha()*.12));const Ot=new he.C(on[0]);ln["primary-color-active-deprecated-f-30"]=Ve(Ot,Tt=>Tt.setAlpha(Tt.getAlpha()*.3)),ln["primary-color-active-deprecated-d-02"]=Ve(Ot,Tt=>Tt.darken(2))}return io.successColor&&_t(io.successColor,"success"),io.warningColor&&_t(io.warningColor,"warning"),io.errorColor&&_t(io.errorColor,"error"),io.infoColor&&_t(io.infoColor,"info"),` :root { - ${Object.keys(ln).map(jt=>`--${wi}-${jt}: ${ln[jt]};`).join(` + ${Object.keys(ln).map(Wt=>`--${Ci}-${Wt}: ${ln[Wt]};`).join(` `)} } - `.trim()}function Ee(wi,io){const ln=Ne(wi,io);(0,fe.Z)()&&(0,ke.hq)(ln,`${we}-dynamic-theme`)}var ge=m(98866),ye=m(97647);function xe(){const wi=(0,y.useContext)(ge.Z),io=(0,y.useContext)(ye.Z);return{componentDisabled:wi,componentSize:io}}var be=xe,Ie=m(91881);function me(wi,io){const ln=wi||{},Ve=ln.inherit===!1||!io?re.u_:io;return(0,z.Z)(()=>{if(!wi)return io;const _t=Object.assign({},Ve.components);return Object.keys(wi.components||{}).forEach(Ct=>{_t[Ct]=Object.assign(Object.assign({},_t[Ct]),wi.components[Ct])}),Object.assign(Object.assign(Object.assign({},Ve),ln),{token:Object.assign(Object.assign({},Ve.token),ln.token),components:_t})},[ln,Ve],(_t,Ct)=>_t.some((jt,on)=>{const Ot=Ct[on];return!(0,Ie.Z)(jt,Ot,!0)}))}var We=m(82225),Ce=m(25976);function Pt(wi){const{children:io}=wi,[,ln]=(0,Ce.Z)(),{motion:Ve}=ln,_t=y.useRef(!1);return _t.current=_t.current||Ve===!1,_t.current?y.createElement(We.zt,{motion:Ve},io):io}const ct=null;var Ue=()=>null,bt=m(53269),ht=function(wi,io){var ln={};for(var Ve in wi)Object.prototype.hasOwnProperty.call(wi,Ve)&&io.indexOf(Ve)<0&&(ln[Ve]=wi[Ve]);if(wi!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _t=0,Ve=Object.getOwnPropertySymbols(wi);_tio.endsWith("Color"))}const ss=wi=>{let{prefixCls:io,iconPrefixCls:ln,theme:Ve}=wi;io!==void 0&&(Yr=io),ln!==void 0&&(oi=ln),Ve&&(Po(Ve)?Ee(yo(),Ve):to=Ve)},ve=()=>({getPrefixCls:(wi,io)=>io||(wi?`${yo()}-${wi}`:yo()),getIconPrefixCls:vr,getRootPrefixCls:()=>Yr||yo(),getTheme:()=>to}),_o=wi=>{const{children:io,csp:ln,autoInsertSpaceInButton:Ve,alert:_t,anchor:Ct,form:jt,locale:on,componentSize:Ot,direction:Tt,space:xt,virtual:Ht,dropdownMatchSelectWidth:Zn,popupMatchSelectWidth:tn,popupOverflow:hr,legacyLocale:Zi,parentContext:Ri,iconPrefixCls:Pi,theme:$o,componentDisabled:ys,segmented:xn,statistic:Hr,spin:Jr,calendar:Yi,carousel:xo,cascader:na,collapse:Vn,typography:Xn,checkbox:Mr,descriptions:li,divider:Cr,drawer:qr,skeleton:ii,steps:rn,image:Jn,layout:Vr,list:so,mentions:rs,modal:zt,progress:pn,result:_r,slider:Gr,breadcrumb:ui,menu:Ci,pagination:lo,input:Kr,empty:ti,badge:Wi,radio:Tr,rate:Qt,switch:Gn,transfer:yi,avatar:Ln,message:Si,tag:tr,table:vi,card:Ni,tabs:kr,timeline:Qn,timePicker:ds,upload:_a,notification:da,tree:zs,colorPicker:ja,datePicker:Co,flex:dl,wave:Fr,warning:fs}=wi,jo=y.useCallback((Nn,tt)=>{const{prefixCls:dt}=wi;if(tt)return tt;const vt=dt||Ri.getPrefixCls("");return Nn?`${vt}-${Nn}`:vt},[Ri.getPrefixCls,wi.prefixCls]),Es=Pi||Ri.iconPrefixCls||ie.oR,xs=ln||Ri.csp;(0,bt.Z)(Es,xs);const Za=me($o,Ri.theme),tl={csp:xs,autoInsertSpaceInButton:Ve,alert:_t,anchor:Ct,locale:on||Zi,direction:Tt,space:xt,virtual:Ht,popupMatchSelectWidth:tn!=null?tn:Zn,popupOverflow:hr,getPrefixCls:jo,iconPrefixCls:Es,theme:Za,segmented:xn,statistic:Hr,spin:Jr,calendar:Yi,carousel:xo,cascader:na,collapse:Vn,typography:Xn,checkbox:Mr,descriptions:li,divider:Cr,drawer:qr,skeleton:ii,steps:rn,image:Jn,input:Kr,layout:Vr,list:so,mentions:rs,modal:zt,progress:pn,result:_r,slider:Gr,breadcrumb:ui,menu:Ci,pagination:lo,empty:ti,badge:Wi,radio:Tr,rate:Qt,switch:Gn,transfer:yi,avatar:Ln,message:Si,tag:tr,table:vi,card:Ni,tabs:kr,timeline:Qn,timePicker:ds,upload:_a,notification:da,tree:zs,colorPicker:ja,datePicker:Co,flex:dl,wave:Fr,warning:fs},xl=Object.assign({},Ri);Object.keys(tl).forEach(Nn=>{tl[Nn]!==void 0&&(xl[Nn]=tl[Nn])}),Bn.forEach(Nn=>{const tt=wi[Nn];tt&&(xl[Nn]=tt)});const Qa=(0,z.Z)(()=>xl,xl,(Nn,tt)=>{const dt=Object.keys(Nn),vt=Object.keys(tt);return dt.length!==vt.length||dt.some(ze=>Nn[ze]!==tt[ze])}),si=y.useMemo(()=>({prefixCls:Es,csp:xs}),[Es,xs]);let co=y.createElement(y.Fragment,null,y.createElement(Ue,{dropdownMatchSelectWidth:Zn}),io);const dn=y.useMemo(()=>{var Nn,tt,dt,vt;return(0,k.T)(((Nn=j.Z.Form)===null||Nn===void 0?void 0:Nn.defaultValidateMessages)||{},((dt=(tt=Qa.locale)===null||tt===void 0?void 0:tt.Form)===null||dt===void 0?void 0:dt.defaultValidateMessages)||{},((vt=Qa.form)===null||vt===void 0?void 0:vt.validateMessages)||{},(jt==null?void 0:jt.validateMessages)||{})},[Qa,jt==null?void 0:jt.validateMessages]);Object.keys(dn).length>0&&(co=y.createElement(w.Z.Provider,{value:dn},co)),on&&(co=y.createElement(P,{locale:on,_ANT_MARK__:f},co)),(Es||xs)&&(co=y.createElement(b.Z.Provider,{value:si},co)),Ot&&(co=y.createElement(ye.q,{size:Ot},co)),co=y.createElement(Pt,null,co);const Dn=y.useMemo(()=>{const Nn=Za||{},{algorithm:tt,token:dt,components:vt}=Nn,ze=ht(Nn,["algorithm","token","components"]),lt=tt&&(!Array.isArray(tt)||tt.length>0)?(0,A.jG)(tt):re.uH,Et={};Object.entries(vt||{}).forEach(jn=>{let[xr,Ti]=jn;const $i=Object.assign({},Ti);"algorithm"in $i&&($i.algorithm===!0?$i.theme=lt:(Array.isArray($i.algorithm)||typeof $i.algorithm=="function")&&($i.theme=(0,A.jG)($i.algorithm)),delete $i.algorithm),Et[xr]=$i});const an=Object.assign(Object.assign({},J.Z),dt);return Object.assign(Object.assign({},ze),{theme:lt,token:an,components:Et,override:Object.assign({override:an},Et)})},[Za]);return $o&&(co=y.createElement(re.Mj.Provider,{value:Dn},co)),Qa.warning&&(co=y.createElement(N.G8.Provider,{value:Qa.warning},co)),ys!==void 0&&(co=y.createElement(ge.n,{disabled:ys},co)),y.createElement(ie.E_.Provider,{value:Qa},co)},ci=wi=>{const io=y.useContext(ie.E_),ln=y.useContext(C.Z);return y.createElement(_o,Object.assign({parentContext:io,legacyLocale:ln},wi))};ci.ConfigContext=ie.E_,ci.SizeContext=ye.Z,ci.config=ss,ci.useConfig=be,Object.defineProperty(ci,"SizeContext",{get:()=>ye.Z});var Bi=ci},26412:function(nt,V,m){"use strict";m.d(V,{Z:function(){return ht}});var y=m(67294),A=m(94184),b=m.n(A),z=m(74443),k=m(53124),N=m(98675),w=m(25378),C={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},S=y.createContext({}),P=m(50344),j=function(Bt,mt){var _n={};for(var Bn in Bt)Object.prototype.hasOwnProperty.call(Bt,Bn)&&mt.indexOf(Bn)<0&&(_n[Bn]=Bt[Bn]);if(Bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Er=0,Bn=Object.getOwnPropertySymbols(Bt);Er(0,P.Z)(Bt).map(mt=>Object.assign({},mt==null?void 0:mt.props));function J(Bt,mt,_n){const Bn=y.useMemo(()=>mt||re(_n),[mt,_n]);return y.useMemo(()=>Bn.map(Yr=>{var{span:oi}=Yr,to=j(Yr,["span"]);return Object.assign(Object.assign({},to),{span:typeof oi=="number"?oi:(0,z.m9)(Bt,oi)})}),[Bn,Bt])}function ie(Bt,mt,_n){let Bn=Bt,Er=!1;return(_n===void 0||_n>mt)&&(Bn=Object.assign(Object.assign({},Bt),{span:mt}),Er=_n!==void 0),[Bn,Er]}function de(Bt,mt){const _n=[];let Bn=[],Er=mt,Yr=!1;return Bt.filter(oi=>oi).forEach((oi,to)=>{const yo=oi==null?void 0:oi.span,vr=yo||1;if(to===Bt.length-1){const[Po,ss]=ie(oi,Er,yo);Yr=Yr||ss,Bn.push(Po),_n.push(Bn);return}if(vr{const[_n,Bn]=(0,y.useMemo)(()=>de(mt,Bt),[mt,Bt]);return _n},we=Bt=>{let{children:mt}=Bt;return mt};function Ne(Bt){return Bt!=null}var ge=Bt=>{const{itemPrefixCls:mt,component:_n,span:Bn,className:Er,style:Yr,labelStyle:oi,contentStyle:to,bordered:yo,label:vr,content:Po,colon:ss}=Bt,ve=_n;return yo?y.createElement(ve,{className:b()({[`${mt}-item-label`]:Ne(vr),[`${mt}-item-content`]:Ne(Po)},Er),style:Yr,colSpan:Bn},Ne(vr)&&y.createElement("span",{style:oi},vr),Ne(Po)&&y.createElement("span",{style:to},Po)):y.createElement(ve,{className:b()(`${mt}-item`,Er),style:Yr,colSpan:Bn},y.createElement("div",{className:`${mt}-item-container`},(vr||vr===0)&&y.createElement("span",{className:b()(`${mt}-item-label`,{[`${mt}-item-no-colon`]:!ss}),style:oi},vr),(Po||Po===0)&&y.createElement("span",{className:b()(`${mt}-item-content`),style:to},Po)))};function ye(Bt,mt,_n){let{colon:Bn,prefixCls:Er,bordered:Yr}=mt,{component:oi,type:to,showLabel:yo,showContent:vr,labelStyle:Po,contentStyle:ss}=_n;return Bt.map((ve,_o)=>{let{label:ci,children:Bi,prefixCls:wi=Er,className:io,style:ln,labelStyle:Ve,contentStyle:_t,span:Ct=1,key:jt}=ve;return typeof oi=="string"?y.createElement(ge,{key:`${to}-${jt||_o}`,className:io,style:ln,labelStyle:Object.assign(Object.assign({},Po),Ve),contentStyle:Object.assign(Object.assign({},ss),_t),span:Ct,colon:Bn,component:oi,itemPrefixCls:wi,bordered:Yr,label:yo?ci:null,content:vr?Bi:null}):[y.createElement(ge,{key:`label-${jt||_o}`,className:io,style:Object.assign(Object.assign(Object.assign({},Po),ln),Ve),span:1,colon:Bn,component:oi[0],itemPrefixCls:wi,bordered:Yr,label:ci}),y.createElement(ge,{key:`content-${jt||_o}`,className:io,style:Object.assign(Object.assign(Object.assign({},ss),ln),_t),span:Ct*2-1,component:oi[1],itemPrefixCls:wi,bordered:Yr,content:Bi})]})}var be=Bt=>{const mt=y.useContext(S),{prefixCls:_n,vertical:Bn,row:Er,index:Yr,bordered:oi}=Bt;return Bn?y.createElement(y.Fragment,null,y.createElement("tr",{key:`label-${Yr}`,className:`${_n}-row`},ye(Er,Bt,Object.assign({component:"th",type:"label",showLabel:!0},mt))),y.createElement("tr",{key:`content-${Yr}`,className:`${_n}-row`},ye(Er,Bt,Object.assign({component:"td",type:"content",showContent:!0},mt)))):y.createElement("tr",{key:Yr,className:`${_n}-row`},ye(Er,Bt,Object.assign({component:oi?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},mt)))},Ie=m(14747),me=m(67968),We=m(45503);const Ce=Bt=>{const{componentCls:mt,labelBg:_n}=Bt;return{[`&${mt}-bordered`]:{[`> ${mt}-view`]:{border:`${Bt.lineWidth}px ${Bt.lineType} ${Bt.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"},[`${mt}-row`]:{borderBottom:`${Bt.lineWidth}px ${Bt.lineType} ${Bt.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${mt}-item-label, > ${mt}-item-content`]:{padding:`${Bt.padding}px ${Bt.paddingLG}px`,borderInlineEnd:`${Bt.lineWidth}px ${Bt.lineType} ${Bt.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${mt}-item-label`]:{color:Bt.colorTextSecondary,backgroundColor:_n,"&::after":{display:"none"}}}},[`&${mt}-middle`]:{[`${mt}-row`]:{[`> ${mt}-item-label, > ${mt}-item-content`]:{padding:`${Bt.paddingSM}px ${Bt.paddingLG}px`}}},[`&${mt}-small`]:{[`${mt}-row`]:{[`> ${mt}-item-label, > ${mt}-item-content`]:{padding:`${Bt.paddingXS}px ${Bt.padding}px`}}}}}},Pt=Bt=>{const{componentCls:mt,extraColor:_n,itemPaddingBottom:Bn,colonMarginRight:Er,colonMarginLeft:Yr,titleMarginBottom:oi}=Bt;return{[mt]:Object.assign(Object.assign(Object.assign({},(0,Ie.Wf)(Bt)),Ce(Bt)),{["&-rtl"]:{direction:"rtl"},[`${mt}-header`]:{display:"flex",alignItems:"center",marginBottom:oi},[`${mt}-title`]:Object.assign(Object.assign({},Ie.vS),{flex:"auto",color:Bt.titleColor,fontWeight:Bt.fontWeightStrong,fontSize:Bt.fontSizeLG,lineHeight:Bt.lineHeightLG}),[`${mt}-extra`]:{marginInlineStart:"auto",color:_n,fontSize:Bt.fontSize},[`${mt}-view`]:{width:"100%",borderRadius:Bt.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${mt}-row`]:{"> th, > td":{paddingBottom:Bn},"&:last-child":{borderBottom:"none"}},[`${mt}-item-label`]:{color:Bt.colorTextTertiary,fontWeight:"normal",fontSize:Bt.fontSize,lineHeight:Bt.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${Yr}px ${Er}px`},[`&${mt}-item-no-colon::after`]:{content:'""'}},[`${mt}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${mt}-item-content`]:{display:"table-cell",flex:1,color:Bt.contentColor,fontSize:Bt.fontSize,lineHeight:Bt.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${mt}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${mt}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${mt}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${mt}-row`]:{"> th, > td":{paddingBottom:Bt.paddingSM}}},"&-small":{[`${mt}-row`]:{"> th, > td":{paddingBottom:Bt.paddingXS}}}})}};var ct=(0,me.Z)("Descriptions",Bt=>{const mt=(0,We.TS)(Bt,{});return[Pt(mt)]},Bt=>({labelBg:Bt.colorFillAlter,titleColor:Bt.colorText,titleMarginBottom:Bt.fontSizeSM*Bt.lineHeightSM,itemPaddingBottom:Bt.padding,colonMarginRight:Bt.marginXS,colonMarginLeft:Bt.marginXXS/2,contentColor:Bt.colorText,extraColor:Bt.colorText})),Ue=function(Bt,mt){var _n={};for(var Bn in Bt)Object.prototype.hasOwnProperty.call(Bt,Bn)&&mt.indexOf(Bn)<0&&(_n[Bn]=Bt[Bn]);if(Bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Er=0,Bn=Object.getOwnPropertySymbols(Bt);Er{const{prefixCls:mt,title:_n,extra:Bn,column:Er,colon:Yr=!0,bordered:oi,layout:to,children:yo,className:vr,rootClassName:Po,style:ss,size:ve,labelStyle:_o,contentStyle:ci,items:Bi}=Bt,wi=Ue(Bt,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","items"]),{getPrefixCls:io,direction:ln,descriptions:Ve}=y.useContext(k.E_),_t=io("descriptions",mt),Ct=(0,w.Z)(),jt=y.useMemo(()=>{var tn;return typeof Er=="number"?Er:(tn=(0,z.m9)(Ct,Object.assign(Object.assign({},C),Er)))!==null&&tn!==void 0?tn:3},[Ct,Er]),on=J(Ct,Bi,yo),Ot=(0,N.Z)(ve),Tt=fe(jt,on),[xt,Ht]=ct(_t),Zn=y.useMemo(()=>({labelStyle:_o,contentStyle:ci}),[_o,ci]);return xt(y.createElement(S.Provider,{value:Zn},y.createElement("div",Object.assign({className:b()(_t,Ve==null?void 0:Ve.className,{[`${_t}-${Ot}`]:Ot&&Ot!=="default",[`${_t}-bordered`]:!!oi,[`${_t}-rtl`]:ln==="rtl"},vr,Po,Ht),style:Object.assign(Object.assign({},Ve==null?void 0:Ve.style),ss)},wi),(_n||Bn)&&y.createElement("div",{className:`${_t}-header`},_n&&y.createElement("div",{className:`${_t}-title`},_n),Bn&&y.createElement("div",{className:`${_t}-extra`},Bn)),y.createElement("div",{className:`${_t}-view`},y.createElement("table",null,y.createElement("tbody",null,Tt.map((tn,hr)=>y.createElement(be,{key:hr,index:hr,colon:Yr,prefixCls:_t,vertical:to==="vertical",bordered:oi,row:tn}))))))))};bt.Item=we;var ht=bt},96074:function(nt,V,m){"use strict";m.d(V,{Z:function(){return P}});var y=m(67294),A=m(94184),b=m.n(A),z=m(53124),k=m(14747),N=m(67968),w=m(45503);const I=j=>{const{componentCls:re,sizePaddingEdgeHorizontal:J,colorSplit:ie,lineWidth:de,textPaddingInline:he,orientationMargin:fe,verticalMarginInline:ke}=j;return{[re]:Object.assign(Object.assign({},(0,k.Wf)(j)),{borderBlockStart:`${de}px solid ${ie}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:ke,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${de}px solid ${ie}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${j.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${re}-with-text`]:{display:"flex",alignItems:"center",margin:`${j.dividerHorizontalWithTextGutterMargin}px 0`,color:j.colorTextHeading,fontWeight:500,fontSize:j.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${ie}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${de}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${re}-with-text-left`]:{"&::before":{width:`${fe*100}%`},"&::after":{width:`${100-fe*100}%`}},[`&-horizontal${re}-with-text-right`]:{"&::before":{width:`${100-fe*100}%`},"&::after":{width:`${fe*100}%`}},[`${re}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:he},"&-dashed":{background:"none",borderColor:ie,borderStyle:"dashed",borderWidth:`${de}px 0 0`},[`&-horizontal${re}-with-text${re}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${re}-dashed`]:{borderInlineStartWidth:de,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${re}-with-text`]:{color:j.colorText,fontWeight:"normal",fontSize:j.fontSize},[`&-horizontal${re}-with-text-left${re}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${re}-inner-text`]:{paddingInlineStart:J}},[`&-horizontal${re}-with-text-right${re}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${re}-inner-text`]:{paddingInlineEnd:J}}})}};var C=(0,N.Z)("Divider",j=>{const re=(0,w.TS)(j,{dividerHorizontalWithTextGutterMargin:j.margin,dividerHorizontalGutterMargin:j.marginLG,sizePaddingEdgeHorizontal:0});return[I(re)]},j=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:j.marginXS})),f=function(j,re){var J={};for(var ie in j)Object.prototype.hasOwnProperty.call(j,ie)&&re.indexOf(ie)<0&&(J[ie]=j[ie]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,ie=Object.getOwnPropertySymbols(j);de{const{getPrefixCls:re,direction:J,divider:ie}=y.useContext(z.E_),{prefixCls:de,type:he="horizontal",orientation:fe="center",orientationMargin:ke,className:we,rootClassName:Ne,children:Ee,dashed:ge,plain:ye,style:xe}=j,be=f(j,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),Ie=re("divider",de),[me,We]=C(Ie),Ce=fe.length>0?`-${fe}`:fe,Pt=!!Ee,ct=fe==="left"&&ke!=null,Ue=fe==="right"&&ke!=null,bt=b()(Ie,ie==null?void 0:ie.className,We,`${Ie}-${he}`,{[`${Ie}-with-text`]:Pt,[`${Ie}-with-text${Ce}`]:Pt,[`${Ie}-dashed`]:!!ge,[`${Ie}-plain`]:!!ye,[`${Ie}-rtl`]:J==="rtl",[`${Ie}-no-default-orientation-margin-left`]:ct,[`${Ie}-no-default-orientation-margin-right`]:Ue},we,Ne),ht=y.useMemo(()=>typeof ke=="number"?ke:/^\d+$/.test(ke)?Number(ke):ke,[ke]),Bt=Object.assign(Object.assign({},ct&&{marginLeft:ht}),Ue&&{marginRight:ht});return me(y.createElement("div",Object.assign({className:bt,style:Object.assign(Object.assign({},ie==null?void 0:ie.style),xe)},be,{role:"separator"}),Ee&&he!=="vertical"&&y.createElement("span",{className:`${Ie}-inner-text`,style:Bt},Ee)))}},83159:function(nt,V,m){"use strict";m.d(V,{Z:function(){return Yr}});var y=m(67294),A=m(68843),b=m(94184),z=m.n(b),k=m(29171),N=m(56790),w=m(21770),I=m(98423),C=m(80636),f=m(8745),S=m(96159),P=m(27288),j=m(53124),re=m(82610),J=m(76529),ie=m(25976),de=m(14747),he=m(67771),fe=m(33297),ke=m(50438),we=m(77786),Ne=m(67968),Ee=m(45503),ye=oi=>{const{componentCls:to,menuCls:yo,colorError:vr,colorTextLightSolid:Po}=oi,ss=`${yo}-item`;return{[`${to}, ${to}-menu-submenu`]:{[`${yo} ${ss}`]:{[`&${ss}-danger:not(${ss}-disabled)`]:{color:vr,"&:hover":{color:Po,backgroundColor:vr}}}}}};const xe=oi=>{const{componentCls:to,menuCls:yo,zIndexPopup:vr,dropdownArrowDistance:Po,sizePopupArrow:ss,antCls:ve,iconCls:_o,motionDurationMid:ci,dropdownPaddingVertical:Bi,fontSize:wi,dropdownEdgeChildPadding:io,colorTextDisabled:ln,fontSizeIcon:Ve,controlPaddingHorizontal:_t,colorBgElevated:Ct}=oi;return[{[to]:Object.assign(Object.assign({},(0,de.Wf)(oi)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:vr,display:"block","&::before":{position:"absolute",insetBlock:-Po+ss/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${ve}-btn`]:{[`& > ${_o}-down, & > ${ve}-btn-icon > ${_o}-down`]:{fontSize:Ve}},[`${to}-wrap`]:{position:"relative",[`${ve}-btn > ${_o}-down`]:{fontSize:Ve},[`${_o}-down::before`]:{transition:`transform ${ci}`}},[`${to}-wrap-open`]:{[`${_o}-down::before`]:{transform:"rotate(180deg)"}},[` + `.trim()}function De(Ci,io){const ln=We(Ci,io);(0,fe.Z)()&&(0,Be.hq)(ln,`${Ie}-dynamic-theme`)}var ve=m(81689),ye=m(75189);function we(){const Ci=(0,y.useContext)(ve.Z),io=(0,y.useContext)(ye.Z);return{componentDisabled:Ci,componentSize:io}}var Ce=we,Ae=m(68554);function me(Ci,io){const ln=Ci||{},Ve=ln.inherit===!1||!io?ne.u_:io;return(0,z.Z)(()=>{if(!Ci)return io;const _t=Object.assign({},Ve.components);return Object.keys(Ci.components||{}).forEach(xt=>{_t[xt]=Object.assign(Object.assign({},_t[xt]),Ci.components[xt])}),Object.assign(Object.assign(Object.assign({},Ve),ln),{token:Object.assign(Object.assign({},Ve.token),ln.token),components:_t})},[ln,Ve],(_t,xt)=>_t.some((Wt,on)=>{const Ot=xt[on];return!(0,Ae.Z)(Wt,Ot,!0)}))}var je=m(44516),xe=m(99737);function Pt(Ci){const{children:io}=Ci,[,ln]=(0,xe.Z)(),{motion:Ve}=ln,_t=y.useRef(!1);return _t.current=_t.current||Ve===!1,_t.current?y.createElement(je.zt,{motion:Ve},io):io}const ct=null;var He=()=>null,wt=m(69569),dt=function(Ci,io){var ln={};for(var Ve in Ci)Object.prototype.hasOwnProperty.call(Ci,Ve)&&io.indexOf(Ve)<0&&(ln[Ve]=Ci[Ve]);if(Ci!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _t=0,Ve=Object.getOwnPropertySymbols(Ci);_tio.endsWith("Color"))}const as=Ci=>{let{prefixCls:io,iconPrefixCls:ln,theme:Ve}=Ci;io!==void 0&&(Yr=io),ln!==void 0&&(oi=ln),Ve&&(Po(Ve)?De(yo(),Ve):to=Ve)},ge=()=>({getPrefixCls:(Ci,io)=>io||(Ci?`${yo()}-${Ci}`:yo()),getIconPrefixCls:yr,getRootPrefixCls:()=>Yr||yo(),getTheme:()=>to}),_o=Ci=>{const{children:io,csp:ln,autoInsertSpaceInButton:Ve,alert:_t,anchor:xt,form:Wt,locale:on,componentSize:Ot,direction:Tt,space:bt,virtual:Ht,dropdownMatchSelectWidth:Wn,popupMatchSelectWidth:tn,popupOverflow:hr,legacyLocale:Zi,parentContext:Ri,iconPrefixCls:Pi,theme:Wo,componentDisabled:ys,segmented:xn,statistic:Hr,spin:Jr,calendar:Yi,carousel:xo,cascader:na,collapse:Un,typography:Xn,checkbox:Mr,descriptions:li,divider:wr,drawer:qr,skeleton:ii,steps:rn,image:Qn,layout:Vr,list:so,mentions:rs,modal:zt,progress:pn,result:br,slider:Gr,breadcrumb:ui,menu:xi,pagination:lo,input:Kr,empty:ti,badge:ji,radio:Tr,rate:Qt,switch:Gn,transfer:yi,avatar:Ln,message:Si,tag:tr,table:vi,card:Ni,tabs:kr,timeline:qn,timePicker:ds,upload:_a,notification:da,tree:zs,colorPicker:Wa,datePicker:Co,flex:cl,wave:Fr,warning:fs}=Ci,jo=y.useCallback((Nn,tt)=>{const{prefixCls:ht}=Ci;if(tt)return tt;const vt=ht||Ri.getPrefixCls("");return Nn?`${vt}-${Nn}`:vt},[Ri.getPrefixCls,Ci.prefixCls]),Es=Pi||Ri.iconPrefixCls||ce.oR,xs=ln||Ri.csp;(0,wt.Z)(Es,xs);const Za=me(Wo,Ri.theme),tl={csp:xs,autoInsertSpaceInButton:Ve,alert:_t,anchor:xt,locale:on||Zi,direction:Tt,space:bt,virtual:Ht,popupMatchSelectWidth:tn!=null?tn:Wn,popupOverflow:hr,getPrefixCls:jo,iconPrefixCls:Es,theme:Za,segmented:xn,statistic:Hr,spin:Jr,calendar:Yi,carousel:xo,cascader:na,collapse:Un,typography:Xn,checkbox:Mr,descriptions:li,divider:wr,drawer:qr,skeleton:ii,steps:rn,image:Qn,input:Kr,layout:Vr,list:so,mentions:rs,modal:zt,progress:pn,result:br,slider:Gr,breadcrumb:ui,menu:xi,pagination:lo,empty:ti,badge:ji,radio:Tr,rate:Qt,switch:Gn,transfer:yi,avatar:Ln,message:Si,tag:tr,table:vi,card:Ni,tabs:kr,timeline:qn,timePicker:ds,upload:_a,notification:da,tree:zs,colorPicker:Wa,datePicker:Co,flex:cl,wave:Fr,warning:fs},xl=Object.assign({},Ri);Object.keys(tl).forEach(Nn=>{tl[Nn]!==void 0&&(xl[Nn]=tl[Nn])}),Bn.forEach(Nn=>{const tt=Ci[Nn];tt&&(xl[Nn]=tt)});const Qa=(0,z.Z)(()=>xl,xl,(Nn,tt)=>{const ht=Object.keys(Nn),vt=Object.keys(tt);return ht.length!==vt.length||ht.some(Fe=>Nn[Fe]!==tt[Fe])}),si=y.useMemo(()=>({prefixCls:Es,csp:xs}),[Es,xs]);let co=y.createElement(y.Fragment,null,y.createElement(He,{dropdownMatchSelectWidth:Wn}),io);const dn=y.useMemo(()=>{var Nn,tt,ht,vt;return(0,k.T)(((Nn=W.Z.Form)===null||Nn===void 0?void 0:Nn.defaultValidateMessages)||{},((ht=(tt=Qa.locale)===null||tt===void 0?void 0:tt.Form)===null||ht===void 0?void 0:ht.defaultValidateMessages)||{},((vt=Qa.form)===null||vt===void 0?void 0:vt.validateMessages)||{},(Wt==null?void 0:Wt.validateMessages)||{})},[Qa,Wt==null?void 0:Wt.validateMessages]);Object.keys(dn).length>0&&(co=y.createElement(w.Z.Provider,{value:dn},co)),on&&(co=y.createElement(P,{locale:on,_ANT_MARK__:f},co)),(Es||xs)&&(co=y.createElement(b.Z.Provider,{value:si},co)),Ot&&(co=y.createElement(ye.q,{size:Ot},co)),co=y.createElement(Pt,null,co);const An=y.useMemo(()=>{const Nn=Za||{},{algorithm:tt,token:ht,components:vt}=Nn,Fe=dt(Nn,["algorithm","token","components"]),lt=tt&&(!Array.isArray(tt)||tt.length>0)?(0,I.jG)(tt):ne.uH,Et={};Object.entries(vt||{}).forEach(jn=>{let[Cr,Ti]=jn;const $i=Object.assign({},Ti);"algorithm"in $i&&($i.algorithm===!0?$i.theme=lt:(Array.isArray($i.algorithm)||typeof $i.algorithm=="function")&&($i.theme=(0,I.jG)($i.algorithm)),delete $i.algorithm),Et[Cr]=$i});const an=Object.assign(Object.assign({},re.Z),ht);return Object.assign(Object.assign({},Fe),{theme:lt,token:an,components:Et,override:Object.assign({override:an},Et)})},[Za]);return Wo&&(co=y.createElement(ne.Mj.Provider,{value:An},co)),Qa.warning&&(co=y.createElement(N.G8.Provider,{value:Qa.warning},co)),ys!==void 0&&(co=y.createElement(ve.n,{disabled:ys},co)),y.createElement(ce.E_.Provider,{value:Qa},co)},ci=Ci=>{const io=y.useContext(ce.E_),ln=y.useContext(C.Z);return y.createElement(_o,Object.assign({parentContext:io,legacyLocale:ln},Ci))};ci.ConfigContext=ce.E_,ci.SizeContext=ye.Z,ci.config=as,ci.useConfig=Ce,Object.defineProperty(ci,"SizeContext",{get:()=>ye.Z});var Bi=ci},1856:function(nt,V,m){"use strict";m.d(V,{Z:function(){return dt}});var y=m(77617),I=m(12124),b=m.n(I),z=m(67986),k=m(67392),N=m(21843),w=m(65018),C={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},S=y.createContext({}),P=m(38930),W=function(Bt,gt){var _n={};for(var Bn in Bt)Object.prototype.hasOwnProperty.call(Bt,Bn)&>.indexOf(Bn)<0&&(_n[Bn]=Bt[Bn]);if(Bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Er=0,Bn=Object.getOwnPropertySymbols(Bt);Er(0,P.Z)(Bt).map(gt=>Object.assign({},gt==null?void 0:gt.props));function re(Bt,gt,_n){const Bn=y.useMemo(()=>gt||ne(_n),[gt,_n]);return y.useMemo(()=>Bn.map(Yr=>{var{span:oi}=Yr,to=W(Yr,["span"]);return Object.assign(Object.assign({},to),{span:typeof oi=="number"?oi:(0,z.m9)(Bt,oi)})}),[Bn,Bt])}function ce(Bt,gt,_n){let Bn=Bt,Er=!1;return(_n===void 0||_n>gt)&&(Bn=Object.assign(Object.assign({},Bt),{span:gt}),Er=_n!==void 0),[Bn,Er]}function pe(Bt,gt){const _n=[];let Bn=[],Er=gt,Yr=!1;return Bt.filter(oi=>oi).forEach((oi,to)=>{const yo=oi==null?void 0:oi.span,yr=yo||1;if(to===Bt.length-1){const[Po,as]=ce(oi,Er,yo);Yr=Yr||as,Bn.push(Po),_n.push(Bn);return}if(yr{const[_n,Bn]=(0,y.useMemo)(()=>pe(gt,Bt),[gt,Bt]);return _n},Ie=Bt=>{let{children:gt}=Bt;return gt};function We(Bt){return Bt!=null}var ve=Bt=>{const{itemPrefixCls:gt,component:_n,span:Bn,className:Er,style:Yr,labelStyle:oi,contentStyle:to,bordered:yo,label:yr,content:Po,colon:as}=Bt,ge=_n;return yo?y.createElement(ge,{className:b()({[`${gt}-item-label`]:We(yr),[`${gt}-item-content`]:We(Po)},Er),style:Yr,colSpan:Bn},We(yr)&&y.createElement("span",{style:oi},yr),We(Po)&&y.createElement("span",{style:to},Po)):y.createElement(ge,{className:b()(`${gt}-item`,Er),style:Yr,colSpan:Bn},y.createElement("div",{className:`${gt}-item-container`},(yr||yr===0)&&y.createElement("span",{className:b()(`${gt}-item-label`,{[`${gt}-item-no-colon`]:!as}),style:oi},yr),(Po||Po===0)&&y.createElement("span",{className:b()(`${gt}-item-content`),style:to},Po)))};function ye(Bt,gt,_n){let{colon:Bn,prefixCls:Er,bordered:Yr}=gt,{component:oi,type:to,showLabel:yo,showContent:yr,labelStyle:Po,contentStyle:as}=_n;return Bt.map((ge,_o)=>{let{label:ci,children:Bi,prefixCls:Ci=Er,className:io,style:ln,labelStyle:Ve,contentStyle:_t,span:xt=1,key:Wt}=ge;return typeof oi=="string"?y.createElement(ve,{key:`${to}-${Wt||_o}`,className:io,style:ln,labelStyle:Object.assign(Object.assign({},Po),Ve),contentStyle:Object.assign(Object.assign({},as),_t),span:xt,colon:Bn,component:oi,itemPrefixCls:Ci,bordered:Yr,label:yo?ci:null,content:yr?Bi:null}):[y.createElement(ve,{key:`label-${Wt||_o}`,className:io,style:Object.assign(Object.assign(Object.assign({},Po),ln),Ve),span:1,colon:Bn,component:oi[0],itemPrefixCls:Ci,bordered:Yr,label:ci}),y.createElement(ve,{key:`content-${Wt||_o}`,className:io,style:Object.assign(Object.assign(Object.assign({},as),ln),_t),span:xt*2-1,component:oi[1],itemPrefixCls:Ci,bordered:Yr,content:Bi})]})}var Ce=Bt=>{const gt=y.useContext(S),{prefixCls:_n,vertical:Bn,row:Er,index:Yr,bordered:oi}=Bt;return Bn?y.createElement(y.Fragment,null,y.createElement("tr",{key:`label-${Yr}`,className:`${_n}-row`},ye(Er,Bt,Object.assign({component:"th",type:"label",showLabel:!0},gt))),y.createElement("tr",{key:`content-${Yr}`,className:`${_n}-row`},ye(Er,Bt,Object.assign({component:"td",type:"content",showContent:!0},gt)))):y.createElement("tr",{key:Yr,className:`${_n}-row`},ye(Er,Bt,Object.assign({component:oi?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},gt)))},Ae=m(92068),me=m(24577),je=m(41788);const xe=Bt=>{const{componentCls:gt,labelBg:_n}=Bt;return{[`&${gt}-bordered`]:{[`> ${gt}-view`]:{border:`${Bt.lineWidth}px ${Bt.lineType} ${Bt.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"},[`${gt}-row`]:{borderBottom:`${Bt.lineWidth}px ${Bt.lineType} ${Bt.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${gt}-item-label, > ${gt}-item-content`]:{padding:`${Bt.padding}px ${Bt.paddingLG}px`,borderInlineEnd:`${Bt.lineWidth}px ${Bt.lineType} ${Bt.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${gt}-item-label`]:{color:Bt.colorTextSecondary,backgroundColor:_n,"&::after":{display:"none"}}}},[`&${gt}-middle`]:{[`${gt}-row`]:{[`> ${gt}-item-label, > ${gt}-item-content`]:{padding:`${Bt.paddingSM}px ${Bt.paddingLG}px`}}},[`&${gt}-small`]:{[`${gt}-row`]:{[`> ${gt}-item-label, > ${gt}-item-content`]:{padding:`${Bt.paddingXS}px ${Bt.padding}px`}}}}}},Pt=Bt=>{const{componentCls:gt,extraColor:_n,itemPaddingBottom:Bn,colonMarginRight:Er,colonMarginLeft:Yr,titleMarginBottom:oi}=Bt;return{[gt]:Object.assign(Object.assign(Object.assign({},(0,Ae.Wf)(Bt)),xe(Bt)),{["&-rtl"]:{direction:"rtl"},[`${gt}-header`]:{display:"flex",alignItems:"center",marginBottom:oi},[`${gt}-title`]:Object.assign(Object.assign({},Ae.vS),{flex:"auto",color:Bt.titleColor,fontWeight:Bt.fontWeightStrong,fontSize:Bt.fontSizeLG,lineHeight:Bt.lineHeightLG}),[`${gt}-extra`]:{marginInlineStart:"auto",color:_n,fontSize:Bt.fontSize},[`${gt}-view`]:{width:"100%",borderRadius:Bt.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${gt}-row`]:{"> th, > td":{paddingBottom:Bn},"&:last-child":{borderBottom:"none"}},[`${gt}-item-label`]:{color:Bt.colorTextTertiary,fontWeight:"normal",fontSize:Bt.fontSize,lineHeight:Bt.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${Yr}px ${Er}px`},[`&${gt}-item-no-colon::after`]:{content:'""'}},[`${gt}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${gt}-item-content`]:{display:"table-cell",flex:1,color:Bt.contentColor,fontSize:Bt.fontSize,lineHeight:Bt.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${gt}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${gt}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${gt}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${gt}-row`]:{"> th, > td":{paddingBottom:Bt.paddingSM}}},"&-small":{[`${gt}-row`]:{"> th, > td":{paddingBottom:Bt.paddingXS}}}})}};var ct=(0,me.Z)("Descriptions",Bt=>{const gt=(0,je.TS)(Bt,{});return[Pt(gt)]},Bt=>({labelBg:Bt.colorFillAlter,titleColor:Bt.colorText,titleMarginBottom:Bt.fontSizeSM*Bt.lineHeightSM,itemPaddingBottom:Bt.padding,colonMarginRight:Bt.marginXS,colonMarginLeft:Bt.marginXXS/2,contentColor:Bt.colorText,extraColor:Bt.colorText})),He=function(Bt,gt){var _n={};for(var Bn in Bt)Object.prototype.hasOwnProperty.call(Bt,Bn)&>.indexOf(Bn)<0&&(_n[Bn]=Bt[Bn]);if(Bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Er=0,Bn=Object.getOwnPropertySymbols(Bt);Er{const{prefixCls:gt,title:_n,extra:Bn,column:Er,colon:Yr=!0,bordered:oi,layout:to,children:yo,className:yr,rootClassName:Po,style:as,size:ge,labelStyle:_o,contentStyle:ci,items:Bi}=Bt,Ci=He(Bt,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","items"]),{getPrefixCls:io,direction:ln,descriptions:Ve}=y.useContext(k.E_),_t=io("descriptions",gt),xt=(0,w.Z)(),Wt=y.useMemo(()=>{var tn;return typeof Er=="number"?Er:(tn=(0,z.m9)(xt,Object.assign(Object.assign({},C),Er)))!==null&&tn!==void 0?tn:3},[xt,Er]),on=re(xt,Bi,yo),Ot=(0,N.Z)(ge),Tt=fe(Wt,on),[bt,Ht]=ct(_t),Wn=y.useMemo(()=>({labelStyle:_o,contentStyle:ci}),[_o,ci]);return bt(y.createElement(S.Provider,{value:Wn},y.createElement("div",Object.assign({className:b()(_t,Ve==null?void 0:Ve.className,{[`${_t}-${Ot}`]:Ot&&Ot!=="default",[`${_t}-bordered`]:!!oi,[`${_t}-rtl`]:ln==="rtl"},yr,Po,Ht),style:Object.assign(Object.assign({},Ve==null?void 0:Ve.style),as)},Ci),(_n||Bn)&&y.createElement("div",{className:`${_t}-header`},_n&&y.createElement("div",{className:`${_t}-title`},_n),Bn&&y.createElement("div",{className:`${_t}-extra`},Bn)),y.createElement("div",{className:`${_t}-view`},y.createElement("table",null,y.createElement("tbody",null,Tt.map((tn,hr)=>y.createElement(Ce,{key:hr,index:hr,colon:Yr,prefixCls:_t,vertical:to==="vertical",bordered:oi,row:tn}))))))))};wt.Item=Ie;var dt=wt},89628:function(nt,V,m){"use strict";m.d(V,{Z:function(){return P}});var y=m(77617),I=m(12124),b=m.n(I),z=m(67392),k=m(92068),N=m(24577),w=m(41788);const A=W=>{const{componentCls:ne,sizePaddingEdgeHorizontal:re,colorSplit:ce,lineWidth:pe,textPaddingInline:he,orientationMargin:fe,verticalMarginInline:Be}=W;return{[ne]:Object.assign(Object.assign({},(0,k.Wf)(W)),{borderBlockStart:`${pe}px solid ${ce}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:Be,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${pe}px solid ${ce}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${W.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${ne}-with-text`]:{display:"flex",alignItems:"center",margin:`${W.dividerHorizontalWithTextGutterMargin}px 0`,color:W.colorTextHeading,fontWeight:500,fontSize:W.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${ce}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${pe}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${ne}-with-text-left`]:{"&::before":{width:`${fe*100}%`},"&::after":{width:`${100-fe*100}%`}},[`&-horizontal${ne}-with-text-right`]:{"&::before":{width:`${100-fe*100}%`},"&::after":{width:`${fe*100}%`}},[`${ne}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:he},"&-dashed":{background:"none",borderColor:ce,borderStyle:"dashed",borderWidth:`${pe}px 0 0`},[`&-horizontal${ne}-with-text${ne}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${ne}-dashed`]:{borderInlineStartWidth:pe,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${ne}-with-text`]:{color:W.colorText,fontWeight:"normal",fontSize:W.fontSize},[`&-horizontal${ne}-with-text-left${ne}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${ne}-inner-text`]:{paddingInlineStart:re}},[`&-horizontal${ne}-with-text-right${ne}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${ne}-inner-text`]:{paddingInlineEnd:re}}})}};var C=(0,N.Z)("Divider",W=>{const ne=(0,w.TS)(W,{dividerHorizontalWithTextGutterMargin:W.margin,dividerHorizontalGutterMargin:W.marginLG,sizePaddingEdgeHorizontal:0});return[A(ne)]},W=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:W.marginXS})),f=function(W,ne){var re={};for(var ce in W)Object.prototype.hasOwnProperty.call(W,ce)&&ne.indexOf(ce)<0&&(re[ce]=W[ce]);if(W!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,ce=Object.getOwnPropertySymbols(W);pe{const{getPrefixCls:ne,direction:re,divider:ce}=y.useContext(z.E_),{prefixCls:pe,type:he="horizontal",orientation:fe="center",orientationMargin:Be,className:Ie,rootClassName:We,children:De,dashed:ve,plain:ye,style:we}=W,Ce=f(W,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),Ae=ne("divider",pe),[me,je]=C(Ae),xe=fe.length>0?`-${fe}`:fe,Pt=!!De,ct=fe==="left"&&Be!=null,He=fe==="right"&&Be!=null,wt=b()(Ae,ce==null?void 0:ce.className,je,`${Ae}-${he}`,{[`${Ae}-with-text`]:Pt,[`${Ae}-with-text${xe}`]:Pt,[`${Ae}-dashed`]:!!ve,[`${Ae}-plain`]:!!ye,[`${Ae}-rtl`]:re==="rtl",[`${Ae}-no-default-orientation-margin-left`]:ct,[`${Ae}-no-default-orientation-margin-right`]:He},Ie,We),dt=y.useMemo(()=>typeof Be=="number"?Be:/^\d+$/.test(Be)?Number(Be):Be,[Be]),Bt=Object.assign(Object.assign({},ct&&{marginLeft:dt}),He&&{marginRight:dt});return me(y.createElement("div",Object.assign({className:wt,style:Object.assign(Object.assign({},ce==null?void 0:ce.style),we)},Ce,{role:"separator"}),De&&he!=="vertical"&&y.createElement("span",{className:`${Ae}-inner-text`,style:Bt},De)))}},30899:function(nt,V,m){"use strict";m.d(V,{Z:function(){return Yr}});var y=m(77617),I=m(22311),b=m(12124),z=m.n(b),k=m(31561),N=m(95470),w=m(41760),A=m(39029),C=m(43119),f=m(91202),S=m(99486),P=m(40869),W=m(67392),ne=m(7205),re=m(63044),ce=m(99737),pe=m(92068),he=m(22759),fe=m(40659),Be=m(69601),Ie=m(72881),We=m(24577),De=m(41788),ye=oi=>{const{componentCls:to,menuCls:yo,colorError:yr,colorTextLightSolid:Po}=oi,as=`${yo}-item`;return{[`${to}, ${to}-menu-submenu`]:{[`${yo} ${as}`]:{[`&${as}-danger:not(${as}-disabled)`]:{color:yr,"&:hover":{color:Po,backgroundColor:yr}}}}}};const we=oi=>{const{componentCls:to,menuCls:yo,zIndexPopup:yr,dropdownArrowDistance:Po,sizePopupArrow:as,antCls:ge,iconCls:_o,motionDurationMid:ci,dropdownPaddingVertical:Bi,fontSize:Ci,dropdownEdgeChildPadding:io,colorTextDisabled:ln,fontSizeIcon:Ve,controlPaddingHorizontal:_t,colorBgElevated:xt}=oi;return[{[to]:Object.assign(Object.assign({},(0,pe.Wf)(oi)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:yr,display:"block","&::before":{position:"absolute",insetBlock:-Po+as/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${ge}-btn`]:{[`& > ${_o}-down, & > ${ge}-btn-icon > ${_o}-down`]:{fontSize:Ve}},[`${to}-wrap`]:{position:"relative",[`${ge}-btn > ${_o}-down`]:{fontSize:Ve},[`${_o}-down::before`]:{transition:`transform ${ci}`}},[`${to}-wrap-open`]:{[`${_o}-down::before`]:{transform:"rotate(180deg)"}},[` &-hidden, &-menu-hidden, &-menu-submenu-hidden - `]:{display:"none"},[`&${ve}-slide-down-enter${ve}-slide-down-enter-active${to}-placement-bottomLeft, - &${ve}-slide-down-appear${ve}-slide-down-appear-active${to}-placement-bottomLeft, - &${ve}-slide-down-enter${ve}-slide-down-enter-active${to}-placement-bottom, - &${ve}-slide-down-appear${ve}-slide-down-appear-active${to}-placement-bottom, - &${ve}-slide-down-enter${ve}-slide-down-enter-active${to}-placement-bottomRight, - &${ve}-slide-down-appear${ve}-slide-down-appear-active${to}-placement-bottomRight`]:{animationName:he.fJ},[`&${ve}-slide-up-enter${ve}-slide-up-enter-active${to}-placement-topLeft, - &${ve}-slide-up-appear${ve}-slide-up-appear-active${to}-placement-topLeft, - &${ve}-slide-up-enter${ve}-slide-up-enter-active${to}-placement-top, - &${ve}-slide-up-appear${ve}-slide-up-appear-active${to}-placement-top, - &${ve}-slide-up-enter${ve}-slide-up-enter-active${to}-placement-topRight, - &${ve}-slide-up-appear${ve}-slide-up-appear-active${to}-placement-topRight`]:{animationName:he.Qt},[`&${ve}-slide-down-leave${ve}-slide-down-leave-active${to}-placement-bottomLeft, - &${ve}-slide-down-leave${ve}-slide-down-leave-active${to}-placement-bottom, - &${ve}-slide-down-leave${ve}-slide-down-leave-active${to}-placement-bottomRight`]:{animationName:he.Uw},[`&${ve}-slide-up-leave${ve}-slide-up-leave-active${to}-placement-topLeft, - &${ve}-slide-up-leave${ve}-slide-up-leave-active${to}-placement-top, - &${ve}-slide-up-leave${ve}-slide-up-leave-active${to}-placement-topRight`]:{animationName:he.ly}})},(0,we.ZP)(oi,{colorBg:Ct,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${to} ${yo}`]:{position:"relative",margin:0},[`${yo}-submenu-popup`]:{position:"absolute",zIndex:vr,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${to}, ${to}-menu-submenu`]:{[yo]:Object.assign(Object.assign({padding:io,listStyleType:"none",backgroundColor:Ct,backgroundClip:"padding-box",borderRadius:oi.borderRadiusLG,outline:"none",boxShadow:oi.boxShadowSecondary},(0,de.Qy)(oi)),{[`${yo}-item-group-title`]:{padding:`${Bi}px ${_t}px`,color:oi.colorTextDescription,transition:`all ${ci}`},[`${yo}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${yo}-item-icon`]:{minWidth:wi,marginInlineEnd:oi.marginXS,fontSize:oi.fontSizeSM},[`${yo}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${ci}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${yo}-item, ${yo}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${Bi}px ${_t}px`,color:oi.colorText,fontWeight:"normal",fontSize:wi,lineHeight:oi.lineHeight,cursor:"pointer",transition:`all ${ci}`,borderRadius:oi.borderRadiusSM,["&:hover, &-active"]:{backgroundColor:oi.controlItemBgHover}},(0,de.Qy)(oi)),{"&-selected":{color:oi.colorPrimary,backgroundColor:oi.controlItemBgActive,"&:hover, &-active":{backgroundColor:oi.controlItemBgActiveHover}},"&-disabled":{color:ln,cursor:"not-allowed","&:hover":{color:ln,backgroundColor:Ct,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${oi.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:oi.colorSplit},[`${to}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:oi.paddingXS,[`${to}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:oi.colorTextDescription,fontSize:Ve,fontStyle:"normal"}}}),[`${yo}-item-group-list`]:{margin:`0 ${oi.marginXS}px`,padding:0,listStyle:"none"},[`${yo}-submenu-title`]:{paddingInlineEnd:_t+oi.fontSizeSM},[`${yo}-submenu-vertical`]:{position:"relative"},[`${yo}-submenu${yo}-submenu-disabled ${to}-menu-submenu-title`]:{[`&, ${to}-menu-submenu-arrow-icon`]:{color:ln,backgroundColor:Ct,cursor:"not-allowed"}},[`${yo}-submenu-selected ${to}-menu-submenu-title`]:{color:oi.colorPrimary}})}},[(0,he.oN)(oi,"slide-up"),(0,he.oN)(oi,"slide-down"),(0,fe.Fm)(oi,"move-up"),(0,fe.Fm)(oi,"move-down"),(0,ke._y)(oi,"zoom-big")]]};var be=(0,Ne.Z)("Dropdown",(oi,to)=>{let{rootPrefixCls:yo}=to;const{marginXXS:vr,sizePopupArrow:Po,controlHeight:ss,fontSize:ve,lineHeight:_o,paddingXXS:ci,componentCls:Bi,borderRadiusLG:wi}=oi,io=(ss-ve*_o)/2,{dropdownArrowOffset:ln}=(0,we.fS)({contentRadius:wi}),Ve=(0,Ee.TS)(oi,{menuCls:`${Bi}-menu`,rootPrefixCls:yo,dropdownArrowDistance:Po/2+vr,dropdownArrowOffset:ln,dropdownPaddingVertical:io,dropdownEdgeChildPadding:ci});return[xe(Ve),ye(Ve)]},oi=>({zIndexPopup:oi.zIndexPopupBase+50}));const Ie=null,me=oi=>{const{menu:to,arrow:yo,prefixCls:vr,children:Po,trigger:ss,disabled:ve,dropdownRender:_o,getPopupContainer:ci,overlayClassName:Bi,rootClassName:wi,open:io,onOpenChange:ln,visible:Ve,onVisibleChange:_t,mouseEnterDelay:Ct=.15,mouseLeaveDelay:jt=.1,autoAdjustOverflow:on=!0,placement:Ot="",overlay:Tt,transitionName:xt}=oi,{getPopupContainer:Ht,getPrefixCls:Zn,direction:tn}=y.useContext(j.E_),hr=(0,P.ln)("Dropdown"),Zi=y.useMemo(()=>{const ii=Zn();return xt!==void 0?xt:Ot.includes("top")?`${ii}-slide-down`:`${ii}-slide-up`},[Zn,Ot,xt]),Ri=y.useMemo(()=>Ot?Ot.includes("Center")?Ot.slice(0,Ot.indexOf("Center")):Ot:tn==="rtl"?"bottomRight":"bottomLeft",[Ot,tn]),Pi=Zn("dropdown",vr),[$o,ys]=be(Pi),[,xn]=(0,ie.Z)(),Hr=y.Children.only(Po),Jr=(0,S.Tm)(Hr,{className:z()(`${Pi}-trigger`,{[`${Pi}-rtl`]:tn==="rtl"},Hr.props.className),disabled:ve}),Yi=ve?[]:ss;let xo;Yi&&Yi.includes("contextMenu")&&(xo=!0);const[na,Vn]=(0,w.Z)(!1,{value:io!=null?io:Ve}),Xn=(0,N.zX)(ii=>{ln==null||ln(ii),_t==null||_t(ii),Vn(ii)}),Mr=z()(Bi,wi,ys,{[`${Pi}-rtl`]:tn==="rtl"}),li=(0,C.Z)({arrowPointAtCenter:typeof yo=="object"&&yo.pointAtCenter,autoAdjustOverflow:on,offset:xn.marginXXS,arrowWidth:yo?xn.sizePopupArrow:0,borderRadius:xn.borderRadius}),Cr=y.useCallback(()=>{Vn(!1)},[]),qr=()=>{let ii;return to!=null&&to.items?ii=y.createElement(re.Z,Object.assign({},to)):typeof Tt=="function"?ii=Tt():ii=Tt,_o&&(ii=_o(ii)),ii=y.Children.only(typeof ii=="string"?y.createElement("span",null,ii):ii),y.createElement(J.J,{prefixCls:`${Pi}-menu`,expandIcon:y.createElement("span",{className:`${Pi}-menu-submenu-arrow`},y.createElement(A.Z,{className:`${Pi}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Cr,validator:rn=>{let{mode:Jn}=rn}},ii)};return $o(y.createElement(k.Z,Object.assign({alignPoint:xo},(0,I.Z)(oi,["rootClassName"]),{mouseEnterDelay:Ct,mouseLeaveDelay:jt,visible:na,builtinPlacements:li,arrow:!!yo,overlayClassName:Mr,prefixCls:Pi,getPopupContainer:ci||Ht,transitionName:Zi,trigger:Yi,overlay:qr,placement:Ri,onVisibleChange:Xn}),Jr))};function We(oi){return Object.assign(Object.assign({},oi),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const Ce=(0,f.Z)(me,"dropdown",oi=>oi,We),Pt=oi=>y.createElement(Ce,Object.assign({},oi),y.createElement("span",null));me._InternalPanelDoNotUseOrYouWillBeFired=Pt;var ct=me,Ue=m(35872),bt=m(15867),ht=m(78957),Bt=m(4173),mt=function(oi,to){var yo={};for(var vr in oi)Object.prototype.hasOwnProperty.call(oi,vr)&&to.indexOf(vr)<0&&(yo[vr]=oi[vr]);if(oi!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Po=0,vr=Object.getOwnPropertySymbols(oi);Po{const{getPopupContainer:to,getPrefixCls:yo,direction:vr}=y.useContext(j.E_),{prefixCls:Po,type:ss="default",danger:ve,disabled:_o,loading:ci,onClick:Bi,htmlType:wi,children:io,className:ln,menu:Ve,arrow:_t,autoFocus:Ct,overlay:jt,trigger:on,align:Ot,open:Tt,onOpenChange:xt,placement:Ht,getPopupContainer:Zn,href:tn,icon:hr=y.createElement(Ue.Z,null),title:Zi,buttonsRender:Ri=so=>so,mouseEnterDelay:Pi,mouseLeaveDelay:$o,overlayClassName:ys,overlayStyle:xn,destroyPopupOnHide:Hr,dropdownRender:Jr}=oi,Yi=mt(oi,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),xo=yo("dropdown",Po),na=`${xo}-button`,[Vn,Xn]=be(xo),Mr={menu:Ve,arrow:_t,autoFocus:Ct,align:Ot,disabled:_o,trigger:_o?[]:on,onOpenChange:xt,getPopupContainer:Zn||to,mouseEnterDelay:Pi,mouseLeaveDelay:$o,overlayClassName:ys,overlayStyle:xn,destroyPopupOnHide:Hr,dropdownRender:Jr},{compactSize:li,compactItemClassnames:Cr}=(0,Bt.ri)(xo,vr),qr=z()(na,Cr,ln,Xn);"overlay"in oi&&(Mr.overlay=jt),"open"in oi&&(Mr.open=Tt),"placement"in oi?Mr.placement=Ht:Mr.placement=vr==="rtl"?"bottomLeft":"bottomRight";const ii=y.createElement(bt.ZP,{type:ss,danger:ve,disabled:_o,loading:ci,onClick:Bi,htmlType:wi,href:tn,title:Zi},io),rn=y.createElement(bt.ZP,{type:ss,danger:ve,icon:hr}),[Jn,Vr]=Ri([ii,rn]);return Vn(y.createElement(ht.Z.Compact,Object.assign({className:qr,size:li,block:!0},Yi),Jn,y.createElement(ct,Object.assign({},Mr),Vr)))};_n.__ANT_BUTTON=!0;var Bn=_n;const Er=ct;Er.Button=Bn;var Yr=Er},32983:function(nt,V,m){"use strict";m.d(V,{Z:function(){return ke}});var y=m(94184),A=m.n(y),b=m(67294),z=m(53124),k=m(10110),N=m(10274),w=m(25976),C=()=>{const[,we]=(0,w.Z)(),Ee=new N.C(we.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return b.createElement("svg",{style:Ee,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},b.createElement("g",{fill:"none",fillRule:"evenodd"},b.createElement("g",{transform:"translate(24 31.67)"},b.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),b.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),b.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),b.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),b.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),b.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),b.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},b.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),b.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},S=()=>{const[,we]=(0,w.Z)(),{colorFill:Ne,colorFillTertiary:Ee,colorFillQuaternary:ge,colorBgContainer:ye}=we,{borderColor:xe,shadowColor:be,contentColor:Ie}=(0,b.useMemo)(()=>({borderColor:new N.C(Ne).onBackground(ye).toHexShortString(),shadowColor:new N.C(Ee).onBackground(ye).toHexShortString(),contentColor:new N.C(ge).onBackground(ye).toHexShortString()}),[Ne,Ee,ge,ye]);return b.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},b.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},b.createElement("ellipse",{fill:be,cx:"32",cy:"33",rx:"32",ry:"7"}),b.createElement("g",{fillRule:"nonzero",stroke:xe},b.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),b.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:Ie}))))},P=m(67968),j=m(45503);const re=we=>{const{componentCls:Ne,margin:Ee,marginXS:ge,marginXL:ye,fontSize:xe,lineHeight:be}=we;return{[Ne]:{marginInline:ge,fontSize:xe,lineHeight:be,textAlign:"center",[`${Ne}-image`]:{height:we.emptyImgHeight,marginBottom:ge,opacity:we.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Ne}-description`]:{color:we.colorText},[`${Ne}-footer`]:{marginTop:Ee},"&-normal":{marginBlock:ye,color:we.colorTextDisabled,[`${Ne}-description`]:{color:we.colorTextDisabled},[`${Ne}-image`]:{height:we.emptyImgHeightMD}},"&-small":{marginBlock:ge,color:we.colorTextDisabled,[`${Ne}-image`]:{height:we.emptyImgHeightSM}}}}};var J=(0,P.Z)("Empty",we=>{const{componentCls:Ne,controlHeightLG:Ee}=we,ge=(0,j.TS)(we,{emptyImgCls:`${Ne}-img`,emptyImgHeight:Ee*2.5,emptyImgHeightMD:Ee,emptyImgHeightSM:Ee*.875});return[re(ge)]}),ie=function(we,Ne){var Ee={};for(var ge in we)Object.prototype.hasOwnProperty.call(we,ge)&&Ne.indexOf(ge)<0&&(Ee[ge]=we[ge]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,ge=Object.getOwnPropertySymbols(we);ye{var{className:Ne,rootClassName:Ee,prefixCls:ge,image:ye=de,description:xe,children:be,imageStyle:Ie,style:me}=we,We=ie(we,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:Ce,direction:Pt,empty:ct}=b.useContext(z.E_),Ue=Ce("empty",ge),[bt,ht]=J(Ue),[Bt]=(0,k.Z)("Empty"),mt=typeof xe!="undefined"?xe:Bt==null?void 0:Bt.description,_n=typeof mt=="string"?mt:"empty";let Bn=null;return typeof ye=="string"?Bn=b.createElement("img",{alt:_n,src:ye}):Bn=ye,bt(b.createElement("div",Object.assign({className:A()(ht,Ue,ct==null?void 0:ct.className,{[`${Ue}-normal`]:ye===he,[`${Ue}-rtl`]:Pt==="rtl"},Ne,Ee),style:Object.assign(Object.assign({},ct==null?void 0:ct.style),me)},We),b.createElement("div",{className:`${Ue}-image`,style:Ie},Bn),mt&&b.createElement("div",{className:`${Ue}-description`},mt),be&&b.createElement("div",{className:`${Ue}-footer`},be)))};fe.PRESENTED_IMAGE_DEFAULT=de,fe.PRESENTED_IMAGE_SIMPLE=he;var ke=fe},65223:function(nt,V,m){"use strict";m.d(V,{RV:function(){return N},Rk:function(){return w},Ux:function(){return C},aM:function(){return I},q3:function(){return z},qI:function(){return k}});var y=m(67294),A=m(43589),b=m(98423);const z=y.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),k=y.createContext(null),N=f=>{const S=(0,b.Z)(f,["prefixCls"]);return y.createElement(A.RV,Object.assign({},S))},w=y.createContext({prefixCls:""}),I=y.createContext({}),C=f=>{let{children:S,status:P,override:j}=f;const re=(0,y.useContext)(I),J=(0,y.useMemo)(()=>{const ie=Object.assign({},re);return j&&delete ie.isFormItemInput,P&&(delete ie.status,delete ie.hasFeedback,delete ie.feedbackIcon),ie},[P,j,re]);return y.createElement(I.Provider,{value:J},S)}},31147:function(nt,V,m){"use strict";m.d(V,{Z:function(){return Qa}});var y=m(74902),A=m(94184),b=m.n(A),z=m(82225),k=m(67294),N=m(33603),w=m(65223);function I(si){const[co,dn]=k.useState(si);return k.useEffect(()=>{const Dn=setTimeout(()=>{dn(si)},si.length?0:10);return()=>{clearTimeout(Dn)}},[si]),co}var C=m(14747),f=m(50438),S=m(33507),P=m(45503),j=m(67968),J=si=>{const{componentCls:co}=si,dn=`${co}-show-help`,Dn=`${co}-show-help-item`;return{[dn]:{transition:`opacity ${si.motionDurationSlow} ${si.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Dn]:{overflow:"hidden",transition:`height ${si.motionDurationSlow} ${si.motionEaseInOut}, + `]:{display:"none"},[`&${ge}-slide-down-enter${ge}-slide-down-enter-active${to}-placement-bottomLeft, + &${ge}-slide-down-appear${ge}-slide-down-appear-active${to}-placement-bottomLeft, + &${ge}-slide-down-enter${ge}-slide-down-enter-active${to}-placement-bottom, + &${ge}-slide-down-appear${ge}-slide-down-appear-active${to}-placement-bottom, + &${ge}-slide-down-enter${ge}-slide-down-enter-active${to}-placement-bottomRight, + &${ge}-slide-down-appear${ge}-slide-down-appear-active${to}-placement-bottomRight`]:{animationName:he.fJ},[`&${ge}-slide-up-enter${ge}-slide-up-enter-active${to}-placement-topLeft, + &${ge}-slide-up-appear${ge}-slide-up-appear-active${to}-placement-topLeft, + &${ge}-slide-up-enter${ge}-slide-up-enter-active${to}-placement-top, + &${ge}-slide-up-appear${ge}-slide-up-appear-active${to}-placement-top, + &${ge}-slide-up-enter${ge}-slide-up-enter-active${to}-placement-topRight, + &${ge}-slide-up-appear${ge}-slide-up-appear-active${to}-placement-topRight`]:{animationName:he.Qt},[`&${ge}-slide-down-leave${ge}-slide-down-leave-active${to}-placement-bottomLeft, + &${ge}-slide-down-leave${ge}-slide-down-leave-active${to}-placement-bottom, + &${ge}-slide-down-leave${ge}-slide-down-leave-active${to}-placement-bottomRight`]:{animationName:he.Uw},[`&${ge}-slide-up-leave${ge}-slide-up-leave-active${to}-placement-topLeft, + &${ge}-slide-up-leave${ge}-slide-up-leave-active${to}-placement-top, + &${ge}-slide-up-leave${ge}-slide-up-leave-active${to}-placement-topRight`]:{animationName:he.ly}})},(0,Ie.ZP)(oi,{colorBg:xt,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${to} ${yo}`]:{position:"relative",margin:0},[`${yo}-submenu-popup`]:{position:"absolute",zIndex:yr,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${to}, ${to}-menu-submenu`]:{[yo]:Object.assign(Object.assign({padding:io,listStyleType:"none",backgroundColor:xt,backgroundClip:"padding-box",borderRadius:oi.borderRadiusLG,outline:"none",boxShadow:oi.boxShadowSecondary},(0,pe.Qy)(oi)),{[`${yo}-item-group-title`]:{padding:`${Bi}px ${_t}px`,color:oi.colorTextDescription,transition:`all ${ci}`},[`${yo}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${yo}-item-icon`]:{minWidth:Ci,marginInlineEnd:oi.marginXS,fontSize:oi.fontSizeSM},[`${yo}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${ci}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${yo}-item, ${yo}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${Bi}px ${_t}px`,color:oi.colorText,fontWeight:"normal",fontSize:Ci,lineHeight:oi.lineHeight,cursor:"pointer",transition:`all ${ci}`,borderRadius:oi.borderRadiusSM,["&:hover, &-active"]:{backgroundColor:oi.controlItemBgHover}},(0,pe.Qy)(oi)),{"&-selected":{color:oi.colorPrimary,backgroundColor:oi.controlItemBgActive,"&:hover, &-active":{backgroundColor:oi.controlItemBgActiveHover}},"&-disabled":{color:ln,cursor:"not-allowed","&:hover":{color:ln,backgroundColor:xt,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${oi.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:oi.colorSplit},[`${to}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:oi.paddingXS,[`${to}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:oi.colorTextDescription,fontSize:Ve,fontStyle:"normal"}}}),[`${yo}-item-group-list`]:{margin:`0 ${oi.marginXS}px`,padding:0,listStyle:"none"},[`${yo}-submenu-title`]:{paddingInlineEnd:_t+oi.fontSizeSM},[`${yo}-submenu-vertical`]:{position:"relative"},[`${yo}-submenu${yo}-submenu-disabled ${to}-menu-submenu-title`]:{[`&, ${to}-menu-submenu-arrow-icon`]:{color:ln,backgroundColor:xt,cursor:"not-allowed"}},[`${yo}-submenu-selected ${to}-menu-submenu-title`]:{color:oi.colorPrimary}})}},[(0,he.oN)(oi,"slide-up"),(0,he.oN)(oi,"slide-down"),(0,fe.Fm)(oi,"move-up"),(0,fe.Fm)(oi,"move-down"),(0,Be._y)(oi,"zoom-big")]]};var Ce=(0,We.Z)("Dropdown",(oi,to)=>{let{rootPrefixCls:yo}=to;const{marginXXS:yr,sizePopupArrow:Po,controlHeight:as,fontSize:ge,lineHeight:_o,paddingXXS:ci,componentCls:Bi,borderRadiusLG:Ci}=oi,io=(as-ge*_o)/2,{dropdownArrowOffset:ln}=(0,Ie.fS)({contentRadius:Ci}),Ve=(0,De.TS)(oi,{menuCls:`${Bi}-menu`,rootPrefixCls:yo,dropdownArrowDistance:Po/2+yr,dropdownArrowOffset:ln,dropdownPaddingVertical:io,dropdownEdgeChildPadding:ci});return[we(Ve),ye(Ve)]},oi=>({zIndexPopup:oi.zIndexPopupBase+50}));const Ae=null,me=oi=>{const{menu:to,arrow:yo,prefixCls:yr,children:Po,trigger:as,disabled:ge,dropdownRender:_o,getPopupContainer:ci,overlayClassName:Bi,rootClassName:Ci,open:io,onOpenChange:ln,visible:Ve,onVisibleChange:_t,mouseEnterDelay:xt=.15,mouseLeaveDelay:Wt=.1,autoAdjustOverflow:on=!0,placement:Ot="",overlay:Tt,transitionName:bt}=oi,{getPopupContainer:Ht,getPrefixCls:Wn,direction:tn}=y.useContext(W.E_),hr=(0,P.ln)("Dropdown"),Zi=y.useMemo(()=>{const ii=Wn();return bt!==void 0?bt:Ot.includes("top")?`${ii}-slide-down`:`${ii}-slide-up`},[Wn,Ot,bt]),Ri=y.useMemo(()=>Ot?Ot.includes("Center")?Ot.slice(0,Ot.indexOf("Center")):Ot:tn==="rtl"?"bottomRight":"bottomLeft",[Ot,tn]),Pi=Wn("dropdown",yr),[Wo,ys]=Ce(Pi),[,xn]=(0,ce.Z)(),Hr=y.Children.only(Po),Jr=(0,S.Tm)(Hr,{className:z()(`${Pi}-trigger`,{[`${Pi}-rtl`]:tn==="rtl"},Hr.props.className),disabled:ge}),Yi=ge?[]:as;let xo;Yi&&Yi.includes("contextMenu")&&(xo=!0);const[na,Un]=(0,w.Z)(!1,{value:io!=null?io:Ve}),Xn=(0,N.zX)(ii=>{ln==null||ln(ii),_t==null||_t(ii),Un(ii)}),Mr=z()(Bi,Ci,ys,{[`${Pi}-rtl`]:tn==="rtl"}),li=(0,C.Z)({arrowPointAtCenter:typeof yo=="object"&&yo.pointAtCenter,autoAdjustOverflow:on,offset:xn.marginXXS,arrowWidth:yo?xn.sizePopupArrow:0,borderRadius:xn.borderRadius}),wr=y.useCallback(()=>{Un(!1)},[]),qr=()=>{let ii;return to!=null&&to.items?ii=y.createElement(ne.Z,Object.assign({},to)):typeof Tt=="function"?ii=Tt():ii=Tt,_o&&(ii=_o(ii)),ii=y.Children.only(typeof ii=="string"?y.createElement("span",null,ii):ii),y.createElement(re.J,{prefixCls:`${Pi}-menu`,expandIcon:y.createElement("span",{className:`${Pi}-menu-submenu-arrow`},y.createElement(I.Z,{className:`${Pi}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:wr,validator:rn=>{let{mode:Qn}=rn}},ii)};return Wo(y.createElement(k.Z,Object.assign({alignPoint:xo},(0,A.Z)(oi,["rootClassName"]),{mouseEnterDelay:xt,mouseLeaveDelay:Wt,visible:na,builtinPlacements:li,arrow:!!yo,overlayClassName:Mr,prefixCls:Pi,getPopupContainer:ci||Ht,transitionName:Zi,trigger:Yi,overlay:qr,placement:Ri,onVisibleChange:Xn}),Jr))};function je(oi){return Object.assign(Object.assign({},oi),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const xe=(0,f.Z)(me,"dropdown",oi=>oi,je),Pt=oi=>y.createElement(xe,Object.assign({},oi),y.createElement("span",null));me._InternalPanelDoNotUseOrYouWillBeFired=Pt;var ct=me,He=m(93319),wt=m(38115),dt=m(31045),Bt=m(58370),gt=function(oi,to){var yo={};for(var yr in oi)Object.prototype.hasOwnProperty.call(oi,yr)&&to.indexOf(yr)<0&&(yo[yr]=oi[yr]);if(oi!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Po=0,yr=Object.getOwnPropertySymbols(oi);Po{const{getPopupContainer:to,getPrefixCls:yo,direction:yr}=y.useContext(W.E_),{prefixCls:Po,type:as="default",danger:ge,disabled:_o,loading:ci,onClick:Bi,htmlType:Ci,children:io,className:ln,menu:Ve,arrow:_t,autoFocus:xt,overlay:Wt,trigger:on,align:Ot,open:Tt,onOpenChange:bt,placement:Ht,getPopupContainer:Wn,href:tn,icon:hr=y.createElement(He.Z,null),title:Zi,buttonsRender:Ri=so=>so,mouseEnterDelay:Pi,mouseLeaveDelay:Wo,overlayClassName:ys,overlayStyle:xn,destroyPopupOnHide:Hr,dropdownRender:Jr}=oi,Yi=gt(oi,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),xo=yo("dropdown",Po),na=`${xo}-button`,[Un,Xn]=Ce(xo),Mr={menu:Ve,arrow:_t,autoFocus:xt,align:Ot,disabled:_o,trigger:_o?[]:on,onOpenChange:bt,getPopupContainer:Wn||to,mouseEnterDelay:Pi,mouseLeaveDelay:Wo,overlayClassName:ys,overlayStyle:xn,destroyPopupOnHide:Hr,dropdownRender:Jr},{compactSize:li,compactItemClassnames:wr}=(0,Bt.ri)(xo,yr),qr=z()(na,wr,ln,Xn);"overlay"in oi&&(Mr.overlay=Wt),"open"in oi&&(Mr.open=Tt),"placement"in oi?Mr.placement=Ht:Mr.placement=yr==="rtl"?"bottomLeft":"bottomRight";const ii=y.createElement(wt.ZP,{type:as,danger:ge,disabled:_o,loading:ci,onClick:Bi,htmlType:Ci,href:tn,title:Zi},io),rn=y.createElement(wt.ZP,{type:as,danger:ge,icon:hr}),[Qn,Vr]=Ri([ii,rn]);return Un(y.createElement(dt.Z.Compact,Object.assign({className:qr,size:li,block:!0},Yi),Qn,y.createElement(ct,Object.assign({},Mr),Vr)))};_n.__ANT_BUTTON=!0;var Bn=_n;const Er=ct;Er.Button=Bn;var Yr=Er},94823:function(nt,V,m){"use strict";m.d(V,{Z:function(){return Be}});var y=m(12124),I=m.n(y),b=m(77617),z=m(67392),k=m(879),N=m(64993),w=m(99737),C=()=>{const[,Ie]=(0,w.Z)(),De=new N.C(Ie.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return b.createElement("svg",{style:De,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},b.createElement("g",{fill:"none",fillRule:"evenodd"},b.createElement("g",{transform:"translate(24 31.67)"},b.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),b.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),b.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),b.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),b.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),b.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),b.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},b.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),b.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},S=()=>{const[,Ie]=(0,w.Z)(),{colorFill:We,colorFillTertiary:De,colorFillQuaternary:ve,colorBgContainer:ye}=Ie,{borderColor:we,shadowColor:Ce,contentColor:Ae}=(0,b.useMemo)(()=>({borderColor:new N.C(We).onBackground(ye).toHexShortString(),shadowColor:new N.C(De).onBackground(ye).toHexShortString(),contentColor:new N.C(ve).onBackground(ye).toHexShortString()}),[We,De,ve,ye]);return b.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},b.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},b.createElement("ellipse",{fill:Ce,cx:"32",cy:"33",rx:"32",ry:"7"}),b.createElement("g",{fillRule:"nonzero",stroke:we},b.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),b.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:Ae}))))},P=m(24577),W=m(41788);const ne=Ie=>{const{componentCls:We,margin:De,marginXS:ve,marginXL:ye,fontSize:we,lineHeight:Ce}=Ie;return{[We]:{marginInline:ve,fontSize:we,lineHeight:Ce,textAlign:"center",[`${We}-image`]:{height:Ie.emptyImgHeight,marginBottom:ve,opacity:Ie.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${We}-description`]:{color:Ie.colorText},[`${We}-footer`]:{marginTop:De},"&-normal":{marginBlock:ye,color:Ie.colorTextDisabled,[`${We}-description`]:{color:Ie.colorTextDisabled},[`${We}-image`]:{height:Ie.emptyImgHeightMD}},"&-small":{marginBlock:ve,color:Ie.colorTextDisabled,[`${We}-image`]:{height:Ie.emptyImgHeightSM}}}}};var re=(0,P.Z)("Empty",Ie=>{const{componentCls:We,controlHeightLG:De}=Ie,ve=(0,W.TS)(Ie,{emptyImgCls:`${We}-img`,emptyImgHeight:De*2.5,emptyImgHeightMD:De,emptyImgHeightSM:De*.875});return[ne(ve)]}),ce=function(Ie,We){var De={};for(var ve in Ie)Object.prototype.hasOwnProperty.call(Ie,ve)&&We.indexOf(ve)<0&&(De[ve]=Ie[ve]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,ve=Object.getOwnPropertySymbols(Ie);ye{var{className:We,rootClassName:De,prefixCls:ve,image:ye=pe,description:we,children:Ce,imageStyle:Ae,style:me}=Ie,je=ce(Ie,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:xe,direction:Pt,empty:ct}=b.useContext(z.E_),He=xe("empty",ve),[wt,dt]=re(He),[Bt]=(0,k.Z)("Empty"),gt=typeof we!="undefined"?we:Bt==null?void 0:Bt.description,_n=typeof gt=="string"?gt:"empty";let Bn=null;return typeof ye=="string"?Bn=b.createElement("img",{alt:_n,src:ye}):Bn=ye,wt(b.createElement("div",Object.assign({className:I()(dt,He,ct==null?void 0:ct.className,{[`${He}-normal`]:ye===he,[`${He}-rtl`]:Pt==="rtl"},We,De),style:Object.assign(Object.assign({},ct==null?void 0:ct.style),me)},je),b.createElement("div",{className:`${He}-image`,style:Ae},Bn),gt&&b.createElement("div",{className:`${He}-description`},gt),Ce&&b.createElement("div",{className:`${He}-footer`},Ce)))};fe.PRESENTED_IMAGE_DEFAULT=pe,fe.PRESENTED_IMAGE_SIMPLE=he;var Be=fe},86818:function(nt,V,m){"use strict";m.d(V,{RV:function(){return N},Rk:function(){return w},Ux:function(){return C},aM:function(){return A},q3:function(){return z},qI:function(){return k}});var y=m(77617),I=m(76152),b=m(39029);const z=y.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),k=y.createContext(null),N=f=>{const S=(0,b.Z)(f,["prefixCls"]);return y.createElement(I.RV,Object.assign({},S))},w=y.createContext({prefixCls:""}),A=y.createContext({}),C=f=>{let{children:S,status:P,override:W}=f;const ne=(0,y.useContext)(A),re=(0,y.useMemo)(()=>{const ce=Object.assign({},ne);return W&&delete ce.isFormItemInput,P&&(delete ce.status,delete ce.hasFeedback,delete ce.feedbackIcon),ce},[P,W,ne]);return y.createElement(A.Provider,{value:re},S)}},21107:function(nt,V,m){"use strict";m.d(V,{Z:function(){return Qa}});var y=m(42371),I=m(12124),b=m.n(I),z=m(44516),k=m(77617),N=m(26612),w=m(86818);function A(si){const[co,dn]=k.useState(si);return k.useEffect(()=>{const An=setTimeout(()=>{dn(si)},si.length?0:10);return()=>{clearTimeout(An)}},[si]),co}var C=m(92068),f=m(69601),S=m(53710),P=m(41788),W=m(24577),re=si=>{const{componentCls:co}=si,dn=`${co}-show-help`,An=`${co}-show-help-item`;return{[dn]:{transition:`opacity ${si.motionDurationSlow} ${si.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[An]:{overflow:"hidden",transition:`height ${si.motionDurationSlow} ${si.motionEaseInOut}, opacity ${si.motionDurationSlow} ${si.motionEaseInOut}, - transform ${si.motionDurationSlow} ${si.motionEaseInOut} !important`,[`&${Dn}-appear, &${Dn}-enter`]:{transform:"translateY(-5px)",opacity:0,["&-active"]:{transform:"translateY(0)",opacity:1}},[`&${Dn}-leave-active`]:{transform:"translateY(-5px)"}}}}};const ie=si=>({legend:{display:"block",width:"100%",marginBottom:si.marginLG,padding:0,color:si.colorTextDescription,fontSize:si.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${si.lineWidth}px ${si.lineType} ${si.colorBorder}`},label:{fontSize:si.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},[`input[type='file']:focus, + transform ${si.motionDurationSlow} ${si.motionEaseInOut} !important`,[`&${An}-appear, &${An}-enter`]:{transform:"translateY(-5px)",opacity:0,["&-active"]:{transform:"translateY(0)",opacity:1}},[`&${An}-leave-active`]:{transform:"translateY(-5px)"}}}}};const ce=si=>({legend:{display:"block",width:"100%",marginBottom:si.marginLG,padding:0,color:si.colorTextDescription,fontSize:si.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${si.lineWidth}px ${si.lineType} ${si.colorBorder}`},label:{fontSize:si.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},[`input[type='file']:focus, input[type='radio']:focus, - input[type='checkbox']:focus`]:{outline:0,boxShadow:`0 0 0 ${si.controlOutlineWidth}px ${si.controlOutline}`},output:{display:"block",paddingTop:15,color:si.colorText,fontSize:si.fontSize,lineHeight:si.lineHeight}}),de=(si,co)=>{const{formItemCls:dn}=si;return{[dn]:{[`${dn}-label > label`]:{height:co},[`${dn}-control-input`]:{minHeight:co}}}},he=si=>{const{componentCls:co}=si;return{[si.componentCls]:Object.assign(Object.assign(Object.assign({},(0,C.Wf)(si)),ie(si)),{[`${co}-text`]:{display:"inline-block",paddingInlineEnd:si.paddingSM},"&-small":Object.assign({},de(si,si.controlHeightSM)),"&-large":Object.assign({},de(si,si.controlHeightLG))})}},fe=si=>{const{formItemCls:co,iconCls:dn,componentCls:Dn,rootPrefixCls:Nn,labelRequiredMarkColor:tt,labelColor:dt,labelFontSize:vt,labelHeight:ze,labelColonMarginInlineStart:lt,labelColonMarginInlineEnd:Et,itemMarginBottom:an}=si;return{[co]:Object.assign(Object.assign({},(0,C.Wf)(si)),{marginBottom:an,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, - &-hidden.${Nn}-row`]:{display:"none"},"&-has-warning":{[`${co}-split`]:{color:si.colorError}},"&-has-error":{[`${co}-split`]:{color:si.colorWarning}},[`${co}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${si.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:ze,color:dt,fontSize:vt,[`> ${dn}`]:{fontSize:si.fontSize,verticalAlign:"top"},[`&${co}-required:not(${co}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:si.marginXXS,color:tt,fontSize:si.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Dn}-hide-required-mark &`]:{display:"none"}},[`${co}-optional`]:{display:"inline-block",marginInlineStart:si.marginXXS,color:si.colorTextDescription,[`${Dn}-hide-required-mark &`]:{display:"none"}},[`${co}-tooltip`]:{color:si.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:si.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:lt,marginInlineEnd:Et},[`&${co}-no-colon::after`]:{content:'"\\a0"'}}},[`${co}-control`]:{["--ant-display"]:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Nn}-col-'"]):not([class*="' ${Nn}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:si.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[co]:{"&-explain, &-extra":{clear:"both",color:si.colorTextDescription,fontSize:si.fontSize,lineHeight:si.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:si.controlHeightSM,transition:`color ${si.motionDurationMid} ${si.motionEaseOut}`},"&-explain":{"&-error":{color:si.colorError},"&-warning":{color:si.colorWarning}}},[`&-with-help ${co}-explain`]:{height:"auto",opacity:1},[`${co}-feedback-icon`]:{fontSize:si.fontSize,textAlign:"center",visibility:"visible",animationName:f.kr,animationDuration:si.motionDurationMid,animationTimingFunction:si.motionEaseOutBack,pointerEvents:"none","&-success":{color:si.colorSuccess},"&-error":{color:si.colorError},"&-warning":{color:si.colorWarning},"&-validating":{color:si.colorPrimary}}})}},ke=si=>{const{componentCls:co,formItemCls:dn}=si;return{[`${co}-horizontal`]:{[`${dn}-label`]:{flexGrow:0},[`${dn}-control`]:{flex:"1 1 0",minWidth:0},[`${dn}-label[class$='-24'], ${dn}-label[class*='-24 ']`]:{[`& + ${dn}-control`]:{minWidth:"unset"}}}}},we=si=>{const{componentCls:co,formItemCls:dn}=si;return{[`${co}-inline`]:{display:"flex",flexWrap:"wrap",[dn]:{flex:"none",marginInlineEnd:si.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${dn}-label, - > ${dn}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${dn}-label`]:{flex:"none"},[`${co}-text`]:{display:"inline-block"},[`${dn}-has-feedback`]:{display:"inline-block"}}}}},Ne=si=>({padding:si.verticalLabelPadding,margin:si.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Ee=si=>{const{componentCls:co,formItemCls:dn,rootPrefixCls:Dn}=si;return{[`${dn} ${dn}-label`]:Ne(si),[co]:{[dn]:{flexWrap:"wrap",[`${dn}-label, ${dn}-control`]:{[`&:not([class*=" ${Dn}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},ge=si=>{const{componentCls:co,formItemCls:dn,rootPrefixCls:Dn}=si;return{[`${co}-vertical`]:{[dn]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${co}-item-control`]:{width:"100%"}}},[`${co}-vertical ${dn}-label, - .${Dn}-col-24${dn}-label, - .${Dn}-col-xl-24${dn}-label`]:Ne(si),[`@media (max-width: ${si.screenXSMax}px)`]:[Ee(si),{[co]:{[`.${Dn}-col-xs-24${dn}-label`]:Ne(si)}}],[`@media (max-width: ${si.screenSMMax}px)`]:{[co]:{[`.${Dn}-col-sm-24${dn}-label`]:Ne(si)}},[`@media (max-width: ${si.screenMDMax}px)`]:{[co]:{[`.${Dn}-col-md-24${dn}-label`]:Ne(si)}},[`@media (max-width: ${si.screenLGMax}px)`]:{[co]:{[`.${Dn}-col-lg-24${dn}-label`]:Ne(si)}}}},ye=(si,co)=>(0,P.TS)(si,{formItemCls:`${si.componentCls}-item`,rootPrefixCls:co});var xe=(0,j.Z)("Form",(si,co)=>{let{rootPrefixCls:dn}=co;const Dn=ye(si,dn);return[he(Dn),fe(Dn),J(Dn),ke(Dn),we(Dn),ge(Dn),(0,S.Z)(Dn),f.kr]},si=>({labelRequiredMarkColor:si.colorError,labelColor:si.colorTextHeading,labelFontSize:si.fontSize,labelHeight:si.controlHeight,labelColonMarginInlineStart:si.marginXXS/2,labelColonMarginInlineEnd:si.marginXS,itemMarginBottom:si.marginLG,verticalLabelPadding:`0 0 ${si.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const be=[];function Ie(si,co,dn){let Dn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof si=="string"?si:`${co}-${Dn}`,error:si,errorStatus:dn}}var We=si=>{let{help:co,helpStatus:dn,errors:Dn=be,warnings:Nn=be,className:tt,fieldId:dt,onVisibleChanged:vt}=si;const{prefixCls:ze}=k.useContext(w.Rk),lt=`${ze}-item-explain`,[,Et]=xe(ze),an=(0,k.useMemo)(()=>(0,N.Z)(ze),[ze]),jn=I(Dn),xr=I(Nn),Ti=k.useMemo(()=>co!=null?[Ie(co,"help",dn)]:[].concat((0,y.Z)(jn.map((Vi,us)=>Ie(Vi,"error","error",us))),(0,y.Z)(xr.map((Vi,us)=>Ie(Vi,"warning","warning",us)))),[co,dn,jn,xr]),$i={};return dt&&($i.id=`${dt}_help`),k.createElement(z.ZP,{motionDeadline:an.motionDeadline,motionName:`${ze}-show-help`,visible:!!Ti.length,onVisibleChanged:vt},Vi=>{const{className:us,style:ks}=Vi;return k.createElement("div",Object.assign({},$i,{className:b()(lt,us,tt,Et),style:ks,role:"alert"}),k.createElement(z.V4,Object.assign({keys:Ti},(0,N.Z)(ze),{motionName:`${ze}-show-help-item`,component:!1}),Os=>{const{key:pa,error:no,errorStatus:Cs,className:ea,style:fa}=Os;return k.createElement("div",{key:pa,className:b()(ea,{[`${lt}-${Cs}`]:Cs}),style:fa},no)}))})},Ce=m(43589),Pt=m(53124),ct=m(98866),Ue=m(97647),bt=m(98675);const ht=si=>typeof si=="object"&&si!=null&&si.nodeType===1,Bt=(si,co)=>(!co||si!=="hidden")&&si!=="visible"&&si!=="clip",mt=(si,co)=>{if(si.clientHeight{const Nn=(tt=>{if(!tt.ownerDocument||!tt.ownerDocument.defaultView)return null;try{return tt.ownerDocument.defaultView.frameElement}catch(dt){return null}})(Dn);return!!Nn&&(Nn.clientHeightttco||tt>si&&dt=co&&vt>=dn?tt-si-Dn:dt>co&&vtdn?dt-co+Nn:0,Bn=si=>{const co=si.parentElement;return co==null?si.getRootNode().host||null:co},Er=(si,co)=>{var dn,Dn,Nn,tt;if(typeof document=="undefined")return[];const{scrollMode:dt,block:vt,inline:ze,boundary:lt,skipOverflowHiddenElements:Et}=co,an=typeof lt=="function"?lt:Ji=>Ji!==lt;if(!ht(si))throw new TypeError("Invalid target");const jn=document.scrollingElement||document.documentElement,xr=[];let Ti=si;for(;ht(Ti)&&an(Ti);){if(Ti=Bn(Ti),Ti===jn){xr.push(Ti);break}Ti!=null&&Ti===document.body&&mt(Ti)&&!mt(document.documentElement)||Ti!=null&&mt(Ti,Et)&&xr.push(Ti)}const $i=(Dn=(dn=window.visualViewport)==null?void 0:dn.width)!=null?Dn:innerWidth,Vi=(tt=(Nn=window.visualViewport)==null?void 0:Nn.height)!=null?tt:innerHeight,{scrollX:us,scrollY:ks}=window,{height:Os,width:pa,top:no,right:Cs,bottom:ea,left:fa}=si.getBoundingClientRect(),{top:Bl,right:Ma,bottom:gl,left:ia}=(Ji=>{const ta=window.getComputedStyle(Ji);return{top:parseFloat(ta.scrollMarginTop)||0,right:parseFloat(ta.scrollMarginRight)||0,bottom:parseFloat(ta.scrollMarginBottom)||0,left:parseFloat(ta.scrollMarginLeft)||0}})(si);let Nl=vt==="start"||vt==="nearest"?no-Bl:vt==="end"?ea+gl:no+Os/2-Bl+gl,cs=ze==="center"?fa+pa/2-ia+Ma:ze==="end"?Cs+Ma:fa-ia;const zi=[];for(let Ji=0;Ji=0&&fa>=0&&ea<=Vi&&Cs<=$i&&no>=ju&&ea<=Pc&&fa>=ho&&Cs<=rc)return zi;const qi=getComputedStyle(ta),os=parseInt(qi.borderLeftWidth,10),$n=parseInt(qi.borderTopWidth,10),mr=parseInt(qi.borderRightWidth,10),Qr=parseInt(qi.borderBottomWidth,10);let ni=0,Ki=0;const ro="offsetWidth"in ta?ta.offsetWidth-ta.clientWidth-os-mr:0,Ei="offsetHeight"in ta?ta.offsetHeight-ta.clientHeight-$n-Qr:0,ns="offsetWidth"in ta?ta.offsetWidth===0?0:Ua/ta.offsetWidth:0,ua="offsetHeight"in ta?ta.offsetHeight===0?0:ms/ta.offsetHeight:0;if(jn===ta)ni=vt==="start"?Nl:vt==="end"?Nl-Vi:vt==="nearest"?_n(ks,ks+Vi,Vi,$n,Qr,ks+Nl,ks+Nl+Os,Os):Nl-Vi/2,Ki=ze==="start"?cs:ze==="center"?cs-$i/2:ze==="end"?cs-$i:_n(us,us+$i,$i,os,mr,us+cs,us+cs+pa,pa),ni=Math.max(0,ni+ks),Ki=Math.max(0,Ki+us);else{ni=vt==="start"?Nl-ju-$n:vt==="end"?Nl-Pc+Qr+Ei:vt==="nearest"?_n(ju,Pc,ms,$n,Qr+Ei,Nl,Nl+Os,Os):Nl-(ju+ms/2)+Ei/2,Ki=ze==="start"?cs-ho-os:ze==="center"?cs-(ho+Ua/2)+ro/2:ze==="end"?cs-rc+mr+ro:_n(ho,rc,Ua,os,mr+ro,cs,cs+pa,pa);const{scrollLeft:Na,scrollTop:cl}=ta;ni=ua===0?0:Math.max(0,Math.min(cl+ni/ua,ta.scrollHeight-ms/ua+Ei)),Ki=ns===0?0:Math.max(0,Math.min(Na+Ki/ns,ta.scrollWidth-Ua/ns+ro)),Nl+=cl-ni,cs+=Na-Ki}zi.push({el:ta,top:ni,left:Ki})}return zi},Yr=si=>si===!1?{block:"end",inline:"nearest"}:(co=>co===Object(co)&&Object.keys(co).length!==0)(si)?si:{block:"start",inline:"nearest"};function oi(si,co){if(!si.isConnected||!(Nn=>{let tt=Nn;for(;tt&&tt.parentNode;){if(tt.parentNode===document)return!0;tt=tt.parentNode instanceof ShadowRoot?tt.parentNode.host:tt.parentNode}return!1})(si))return;const dn=(Nn=>{const tt=window.getComputedStyle(Nn);return{top:parseFloat(tt.scrollMarginTop)||0,right:parseFloat(tt.scrollMarginRight)||0,bottom:parseFloat(tt.scrollMarginBottom)||0,left:parseFloat(tt.scrollMarginLeft)||0}})(si);if((Nn=>typeof Nn=="object"&&typeof Nn.behavior=="function")(co))return co.behavior(Er(si,co));const Dn=typeof co=="boolean"||co==null?void 0:co.behavior;for(const{el:Nn,top:tt,left:dt}of Er(si,Yr(co))){const vt=tt-dn.top+dn.bottom,ze=dt-dn.left+dn.right;Nn.scroll({top:vt,left:ze,behavior:Dn})}}const to=["parentNode"],yo="form_item";function vr(si){return si===void 0||si===!1?[]:Array.isArray(si)?si:[si]}function Po(si,co){if(!si.length)return;const dn=si.join("_");return co?`${co}_${dn}`:to.includes(dn)?`${yo}_${dn}`:dn}function ss(si,co,dn,Dn,Nn,tt){let dt=Dn;return tt!==void 0?dt=tt:dn.validating?dt="validating":si.length?dt="error":co.length?dt="warning":(dn.touched||Nn&&dn.validated)&&(dt="success"),dt}function ve(si){return vr(si).join("_")}function _o(si){const[co]=(0,Ce.cI)(),dn=k.useRef({}),Dn=k.useMemo(()=>si!=null?si:Object.assign(Object.assign({},co),{__INTERNAL__:{itemRef:Nn=>tt=>{const dt=ve(Nn);tt?dn.current[dt]=tt:delete dn.current[dt]}},scrollToField:function(Nn){let tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const dt=vr(Nn),vt=Po(dt,Dn.__INTERNAL__.name),ze=vt?document.getElementById(vt):null;ze&&oi(ze,Object.assign({scrollMode:"if-needed",block:"nearest"},tt))},getFieldInstance:Nn=>{const tt=ve(Nn);return dn.current[tt]}}),[si,co]);return[Dn]}var ci=m(37920),Bi=function(si,co){var dn={};for(var Dn in si)Object.prototype.hasOwnProperty.call(si,Dn)&&co.indexOf(Dn)<0&&(dn[Dn]=si[Dn]);if(si!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nn=0,Dn=Object.getOwnPropertySymbols(si);Nn{const dn=k.useContext(ct.Z),{getPrefixCls:Dn,direction:Nn,form:tt}=k.useContext(Pt.E_),{prefixCls:dt,className:vt,rootClassName:ze,size:lt,disabled:Et=dn,form:an,colon:jn,labelAlign:xr,labelWrap:Ti,labelCol:$i,wrapperCol:Vi,hideRequiredMark:us,layout:ks="horizontal",scrollToFirstError:Os,requiredMark:pa,onFinishFailed:no,name:Cs,style:ea,feedbackIcons:fa}=si,Bl=Bi(si,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Ma=(0,bt.Z)(lt),gl=k.useContext(ci.Z),ia=(0,k.useMemo)(()=>pa!==void 0?pa:tt&&tt.requiredMark!==void 0?tt.requiredMark:!us,[us,pa,tt]),Nl=jn!=null?jn:tt==null?void 0:tt.colon,cs=Dn("form",dt),[zi,Ji]=xe(cs),ta=b()(cs,`${cs}-${ks}`,{[`${cs}-hide-required-mark`]:ia===!1,[`${cs}-rtl`]:Nn==="rtl",[`${cs}-${Ma}`]:Ma},Ji,tt==null?void 0:tt.className,vt,ze),[ms]=_o(an),{__INTERNAL__:Ua}=ms;Ua.name=Cs;const ju=(0,k.useMemo)(()=>({name:Cs,labelAlign:xr,labelCol:$i,labelWrap:Ti,wrapperCol:Vi,vertical:ks==="vertical",colon:Nl,requiredMark:ia,itemRef:Ua.itemRef,form:ms,feedbackIcons:fa}),[Cs,xr,$i,Vi,ks,Nl,ia,ms,fa]);k.useImperativeHandle(co,()=>ms);const rc=(ho,qi)=>{if(ho){let os={block:"nearest"};typeof ho=="object"&&(os=ho),ms.scrollToField(qi,os)}},Pc=ho=>{if(no==null||no(ho),ho.errorFields.length){const qi=ho.errorFields[0].name;if(Os!==void 0){rc(Os,qi);return}tt&&tt.scrollToFirstError!==void 0&&rc(tt.scrollToFirstError,qi)}};return zi(k.createElement(ct.n,{disabled:Et},k.createElement(Ue.q,{size:Ma},k.createElement(w.RV,{validateMessages:gl},k.createElement(w.q3.Provider,{value:ju},k.createElement(Ce.ZP,Object.assign({id:Cs},Bl,{name:Cs,onFinishFailed:Pc,form:ms,style:Object.assign(Object.assign({},tt==null?void 0:tt.style),ea),className:ta})))))))};var ln=k.forwardRef(wi),Ve=m(30470),_t=m(42550),Ct=m(96159),jt=m(27288),on=m(50344);function Ot(si){if(typeof si=="function")return si;const co=(0,on.Z)(si);return co.length<=1?co[0]:co}const Tt=()=>{const{status:si,errors:co=[],warnings:dn=[]}=(0,k.useContext)(w.aM);return{status:si,errors:co,warnings:dn}};Tt.Context=w.aM;var xt=Tt,Ht=m(75164);function Zn(si){const[co,dn]=k.useState(si),Dn=(0,k.useRef)(null),Nn=(0,k.useRef)([]),tt=(0,k.useRef)(!1);k.useEffect(()=>(tt.current=!1,()=>{tt.current=!0,Ht.Z.cancel(Dn.current),Dn.current=null}),[]);function dt(vt){tt.current||(Dn.current===null&&(Nn.current=[],Dn.current=(0,Ht.Z)(()=>{Dn.current=null,dn(ze=>{let lt=ze;return Nn.current.forEach(Et=>{lt=Et(lt)}),lt})})),Nn.current.push(vt))}return[co,dt]}function tn(){const{itemRef:si}=k.useContext(w.q3),co=k.useRef({});function dn(Dn,Nn){const tt=Nn&&typeof Nn=="object"&&Nn.ref,dt=Dn.join("_");return(co.current.name!==dt||co.current.originRef!==tt)&&(co.current.name=dt,co.current.originRef=tt,co.current.ref=(0,_t.sQ)(si(Dn),tt)),co.current.ref}return dn}var hr=m(5110),Zi=m(8410),Ri=m(98423),Pi=m(74443),ys=(0,k.createContext)({});const xn=si=>{const{componentCls:co}=si;return{[co]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},Hr=si=>{const{componentCls:co}=si;return{[co]:{position:"relative",maxWidth:"100%",minHeight:1}}},Jr=(si,co)=>{const{componentCls:dn,gridColumns:Dn}=si,Nn={};for(let tt=Dn;tt>=0;tt--)tt===0?(Nn[`${dn}${co}-${tt}`]={display:"none"},Nn[`${dn}-push-${tt}`]={insetInlineStart:"auto"},Nn[`${dn}-pull-${tt}`]={insetInlineEnd:"auto"},Nn[`${dn}${co}-push-${tt}`]={insetInlineStart:"auto"},Nn[`${dn}${co}-pull-${tt}`]={insetInlineEnd:"auto"},Nn[`${dn}${co}-offset-${tt}`]={marginInlineStart:0},Nn[`${dn}${co}-order-${tt}`]={order:0}):(Nn[`${dn}${co}-${tt}`]=[{["--ant-display"]:"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${tt/Dn*100}%`,maxWidth:`${tt/Dn*100}%`}],Nn[`${dn}${co}-push-${tt}`]={insetInlineStart:`${tt/Dn*100}%`},Nn[`${dn}${co}-pull-${tt}`]={insetInlineEnd:`${tt/Dn*100}%`},Nn[`${dn}${co}-offset-${tt}`]={marginInlineStart:`${tt/Dn*100}%`},Nn[`${dn}${co}-order-${tt}`]={order:tt});return Nn},Yi=(si,co)=>Jr(si,co),xo=(si,co,dn)=>({[`@media (min-width: ${co}px)`]:Object.assign({},Yi(si,dn))}),na=(0,j.Z)("Grid",si=>[xn(si)]),Vn=(0,j.Z)("Grid",si=>{const co=(0,P.TS)(si,{gridColumns:24}),dn={"-sm":co.screenSMMin,"-md":co.screenMDMin,"-lg":co.screenLGMin,"-xl":co.screenXLMin,"-xxl":co.screenXXLMin};return[Hr(co),Yi(co,""),Yi(co,"-xs"),Object.keys(dn).map(Dn=>xo(co,dn[Dn],Dn)).reduce((Dn,Nn)=>Object.assign(Object.assign({},Dn),Nn),{})]});var Xn=function(si,co){var dn={};for(var Dn in si)Object.prototype.hasOwnProperty.call(si,Dn)&&co.indexOf(Dn)<0&&(dn[Dn]=si[Dn]);if(si!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nn=0,Dn=Object.getOwnPropertySymbols(si);Nn{if(typeof si=="string"&&Dn(si),typeof si=="object")for(let tt=0;tt{Nn()},[JSON.stringify(si),co]),dn}var ii=k.forwardRef((si,co)=>{const{prefixCls:dn,justify:Dn,align:Nn,className:tt,style:dt,children:vt,gutter:ze=0,wrap:lt}=si,Et=Xn(si,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:an,direction:jn}=k.useContext(Pt.E_),[xr,Ti]=k.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[$i,Vi]=k.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),us=Cr(Nn,$i),ks=Cr(Dn,$i),Os=k.useRef(ze),pa=(0,Pi.ZP)();k.useEffect(()=>{const Ji=pa.subscribe(ta=>{Vi(ta);const ms=Os.current||0;(!Array.isArray(ms)&&typeof ms=="object"||Array.isArray(ms)&&(typeof ms[0]=="object"||typeof ms[1]=="object"))&&Ti(ta)});return()=>pa.unsubscribe(Ji)},[]);const no=()=>{const Ji=[void 0,void 0];return(Array.isArray(ze)?ze:[ze,void 0]).forEach((ms,Ua)=>{if(typeof ms=="object")for(let ju=0;ju0?Bl[0]/-2:void 0;ia&&(gl.marginLeft=ia,gl.marginRight=ia),[,gl.rowGap]=Bl;const[Nl,cs]=Bl,zi=k.useMemo(()=>({gutter:[Nl,cs],wrap:lt}),[Nl,cs,lt]);return ea(k.createElement(ys.Provider,{value:zi},k.createElement("div",Object.assign({},Et,{className:Ma,style:Object.assign(Object.assign({},gl),dt),ref:co}),vt)))}),rn=function(si,co){var dn={};for(var Dn in si)Object.prototype.hasOwnProperty.call(si,Dn)&&co.indexOf(Dn)<0&&(dn[Dn]=si[Dn]);if(si!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nn=0,Dn=Object.getOwnPropertySymbols(si);Nn{const{getPrefixCls:dn,direction:Dn}=k.useContext(Pt.E_),{gutter:Nn,wrap:tt}=k.useContext(ys),{prefixCls:dt,span:vt,order:ze,offset:lt,push:Et,pull:an,className:jn,children:xr,flex:Ti,style:$i}=si,Vi=rn(si,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),us=dn("col",dt),[ks,Os]=Vn(us);let pa={};Vr.forEach(ea=>{let fa={};const Bl=si[ea];typeof Bl=="number"?fa.span=Bl:typeof Bl=="object"&&(fa=Bl||{}),delete Vi[ea],pa=Object.assign(Object.assign({},pa),{[`${us}-${ea}-${fa.span}`]:fa.span!==void 0,[`${us}-${ea}-order-${fa.order}`]:fa.order||fa.order===0,[`${us}-${ea}-offset-${fa.offset}`]:fa.offset||fa.offset===0,[`${us}-${ea}-push-${fa.push}`]:fa.push||fa.push===0,[`${us}-${ea}-pull-${fa.pull}`]:fa.pull||fa.pull===0,[`${us}-${ea}-flex-${fa.flex}`]:fa.flex||fa.flex==="auto",[`${us}-rtl`]:Dn==="rtl"})});const no=b()(us,{[`${us}-${vt}`]:vt!==void 0,[`${us}-order-${ze}`]:ze,[`${us}-offset-${lt}`]:lt,[`${us}-push-${Et}`]:Et,[`${us}-pull-${an}`]:an},jn,pa,Os),Cs={};if(Nn&&Nn[0]>0){const ea=Nn[0]/2;Cs.paddingLeft=ea,Cs.paddingRight=ea}return Ti&&(Cs.flex=Jn(Ti),tt===!1&&!Cs.minWidth&&(Cs.minWidth=0)),ks(k.createElement("div",Object.assign({},Vi,{style:Object.assign(Object.assign({},Cs),$i),className:no,ref:co}),xr))});const zt=si=>{const{formItemCls:co}=si;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${co}-control`]:{display:"flex"}}}};var pn=(0,j.b)(["Form","item-item"],(si,co)=>{let{rootPrefixCls:dn}=co;const Dn=ye(si,dn);return[zt(Dn)]}),Gr=si=>{const{prefixCls:co,status:dn,wrapperCol:Dn,children:Nn,errors:tt,warnings:dt,_internalItemRender:vt,extra:ze,help:lt,fieldId:Et,marginBottom:an,onErrorVisibleChanged:jn}=si,xr=`${co}-item`,Ti=k.useContext(w.q3),$i=Dn||Ti.wrapperCol||{},Vi=b()(`${xr}-control`,$i.className),us=k.useMemo(()=>Object.assign({},Ti),[Ti]);delete us.labelCol,delete us.wrapperCol;const ks=k.createElement("div",{className:`${xr}-control-input`},k.createElement("div",{className:`${xr}-control-input-content`},Nn)),Os=k.useMemo(()=>({prefixCls:co,status:dn}),[co,dn]),pa=an!==null||tt.length||dt.length?k.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},k.createElement(w.Rk.Provider,{value:Os},k.createElement(We,{fieldId:Et,errors:tt,warnings:dt,help:lt,helpStatus:dn,className:`${xr}-explain-connected`,onVisibleChanged:jn})),!!an&&k.createElement("div",{style:{width:0,height:an}})):null,no={};Et&&(no.id=`${Et}_extra`);const Cs=ze?k.createElement("div",Object.assign({},no,{className:`${xr}-extra`}),ze):null,ea=vt&&vt.mark==="pro_table_render"&&vt.render?vt.render(si,{input:ks,errorList:pa,extra:Cs}):k.createElement(k.Fragment,null,ks,pa,Cs);return k.createElement(w.q3.Provider,{value:us},k.createElement(rs,Object.assign({},$i,{className:Vi}),ea),k.createElement(pn,{prefixCls:co}))},ui=m(87462),Ci=m(36688),lo=m(93771),Kr=function(co,dn){return k.createElement(lo.Z,(0,ui.Z)({},co,{ref:dn,icon:Ci.Z}))},ti=k.forwardRef(Kr),Wi=m(88526),Tr=m(10110),Qt=m(61781),Gn=function(si,co){var dn={};for(var Dn in si)Object.prototype.hasOwnProperty.call(si,Dn)&&co.indexOf(Dn)<0&&(dn[Dn]=si[Dn]);if(si!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nn=0,Dn=Object.getOwnPropertySymbols(si);Nn{let{prefixCls:co,label:dn,htmlFor:Dn,labelCol:Nn,labelAlign:tt,colon:dt,required:vt,requiredMark:ze,tooltip:lt}=si;var Et;const[an]=(0,Tr.Z)("Form"),{vertical:jn,labelAlign:xr,labelCol:Ti,labelWrap:$i,colon:Vi}=k.useContext(w.q3);if(!dn)return null;const us=Nn||Ti||{},ks=tt||xr,Os=`${co}-item-label`,pa=b()(Os,ks==="left"&&`${Os}-left`,us.className,{[`${Os}-wrap`]:!!$i});let no=dn;const Cs=dt===!0||Vi!==!1&&dt!==!1;Cs&&!jn&&typeof dn=="string"&&dn.trim()!==""&&(no=dn.replace(/[:|:]\s*$/,""));const fa=yi(lt);if(fa){const{icon:ia=k.createElement(ti,null)}=fa,Nl=Gn(fa,["icon"]),cs=k.createElement(Qt.Z,Object.assign({},Nl),k.cloneElement(ia,{className:`${co}-item-tooltip`,title:""}));no=k.createElement(k.Fragment,null,no,cs)}const Bl=ze==="optional",Ma=typeof ze=="function";Ma?no=ze(no,{required:!!vt}):Bl&&!vt&&(no=k.createElement(k.Fragment,null,no,k.createElement("span",{className:`${co}-item-optional`,title:""},(an==null?void 0:an.optional)||((Et=Wi.Z.Form)===null||Et===void 0?void 0:Et.optional))));const gl=b()({[`${co}-item-required`]:vt,[`${co}-item-required-mark-optional`]:Bl||Ma,[`${co}-item-no-colon`]:!Cs});return k.createElement(rs,Object.assign({},us,{className:pa}),k.createElement("label",{htmlFor:Dn,className:gl,title:typeof dn=="string"?dn:""},no))},tr=m(76278),vi=m(41322),Ni=m(26702),kr=m(22508);const Qn={success:tr.Z,warning:Ni.Z,error:vi.Z,validating:kr.Z};function ds(si){let{children:co,errors:dn,warnings:Dn,hasFeedback:Nn,validateStatus:tt,prefixCls:dt,meta:vt,noStyle:ze}=si;const lt=`${dt}-item`,{feedbackIcons:Et}=k.useContext(w.q3),an=ss(dn,Dn,vt,null,!!Nn,tt),{isFormItemInput:jn,status:xr,hasFeedback:Ti,feedbackIcon:$i}=k.useContext(w.aM),Vi=k.useMemo(()=>{var us;let ks;if(Nn){const pa=Nn!==!0&&Nn.icons||Et,no=an&&((us=pa==null?void 0:pa({status:an,errors:dn,warnings:Dn}))===null||us===void 0?void 0:us[an]),Cs=an&&Qn[an];ks=no!==!1&&Cs?k.createElement("span",{className:b()(`${lt}-feedback-icon`,`${lt}-feedback-icon-${an}`)},no||k.createElement(Cs,null)):null}const Os={status:an||"",errors:dn,warnings:Dn,hasFeedback:!!Nn,feedbackIcon:ks,isFormItemInput:!0};return ze&&(Os.status=(an!=null?an:xr)||"",Os.isFormItemInput=jn,Os.hasFeedback=!!(Nn!=null?Nn:Ti),Os.feedbackIcon=Nn!==void 0?Os.feedbackIcon:$i),Os},[an,Nn,ze,jn,xr]);return k.createElement(w.aM.Provider,{value:Vi},co)}var _a=function(si,co){var dn={};for(var Dn in si)Object.prototype.hasOwnProperty.call(si,Dn)&&co.indexOf(Dn)<0&&(dn[Dn]=si[Dn]);if(si!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nn=0,Dn=Object.getOwnPropertySymbols(si);Nn{if(fa&&pa.current){const Ji=getComputedStyle(pa.current);gl(parseInt(Ji.marginBottom,10))}},[fa,Bl]);const ia=Ji=>{Ji||gl(null)},cs=function(){let Ji=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const ta=Ji?no:lt.errors,ms=Ji?Cs:lt.warnings;return ss(ta,ms,lt,"",!!Et,ze)}(),zi=b()(ks,dn,Dn,{[`${ks}-with-help`]:ea||no.length||Cs.length,[`${ks}-has-feedback`]:cs&&Et,[`${ks}-has-success`]:cs==="success",[`${ks}-has-warning`]:cs==="warning",[`${ks}-has-error`]:cs==="error",[`${ks}-is-validating`]:cs==="validating",[`${ks}-hidden`]:an});return k.createElement("div",{className:zi,style:Nn,ref:pa},k.createElement(ii,Object.assign({className:`${ks}-row`},(0,Ri.Z)(us,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),k.createElement(Si,Object.assign({htmlFor:xr},si,{requiredMark:Os,required:Ti!=null?Ti:$i,prefixCls:co})),k.createElement(Gr,Object.assign({},si,lt,{errors:no,warnings:Cs,prefixCls:co,status:cs,help:tt,marginBottom:Ma,onErrorVisibleChanged:ia}),k.createElement(w.qI.Provider,{value:Vi},k.createElement(ds,{prefixCls:co,meta:lt,errors:lt.errors,warnings:lt.warnings,hasFeedback:Et,validateStatus:cs},jn)))),!!Ma&&k.createElement("div",{className:`${ks}-margin-offset`,style:{marginBottom:-Ma}}))}const zs="__SPLIT__",ja=null,Co=k.memo(si=>{let{children:co}=si;return co},(si,co)=>si.value===co.value&&si.update===co.update&&si.childProps.length===co.childProps.length&&si.childProps.every((dn,Dn)=>dn===co.childProps[Dn]));function dl(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Fr(si){const{name:co,noStyle:dn,className:Dn,dependencies:Nn,prefixCls:tt,shouldUpdate:dt,rules:vt,children:ze,required:lt,label:Et,messageVariables:an,trigger:jn="onChange",validateTrigger:xr,hidden:Ti,help:$i}=si,{getPrefixCls:Vi}=k.useContext(Pt.E_),{name:us}=k.useContext(w.q3),ks=Ot(ze),Os=typeof ks=="function",pa=k.useContext(w.qI),{validateTrigger:no}=k.useContext(Ce.zb),Cs=xr!==void 0?xr:no,ea=co!=null,fa=Vi("form",tt),[Bl,Ma]=xe(fa),gl=(0,jt.ln)("Form.Item"),ia=k.useContext(Ce.ZM),Nl=k.useRef(),[cs,zi]=Zn({}),[Ji,ta]=(0,Ve.Z)(()=>dl()),ms=os=>{const $n=ia==null?void 0:ia.getKey(os.name);if(ta(os.destroy?dl():os,!0),dn&&$i!==!1&&pa){let mr=os.name;if(os.destroy)mr=Nl.current||mr;else if($n!==void 0){const[Qr,ni]=$n;mr=[Qr].concat((0,y.Z)(ni)),Nl.current=mr}pa(os,mr)}},Ua=(os,$n)=>{zi(mr=>{const Qr=Object.assign({},mr),Ki=[].concat((0,y.Z)(os.name.slice(0,-1)),(0,y.Z)($n)).join(zs);return os.destroy?delete Qr[Ki]:Qr[Ki]=os,Qr})},[ju,rc]=k.useMemo(()=>{const os=(0,y.Z)(Ji.errors),$n=(0,y.Z)(Ji.warnings);return Object.values(cs).forEach(mr=>{os.push.apply(os,(0,y.Z)(mr.errors||[])),$n.push.apply($n,(0,y.Z)(mr.warnings||[]))}),[os,$n]},[cs,Ji.errors,Ji.warnings]),Pc=tn();function ho(os,$n,mr){return dn&&!Ti?k.createElement(ds,{prefixCls:fa,hasFeedback:si.hasFeedback,validateStatus:si.validateStatus,meta:Ji,errors:ju,warnings:rc,noStyle:!0},os):k.createElement(da,Object.assign({key:"row"},si,{className:b()(Dn,Ma),prefixCls:fa,fieldId:$n,isRequired:mr,errors:ju,warnings:rc,meta:Ji,onSubItemMetaChange:Ua}),os)}if(!ea&&!Os&&!Nn)return Bl(ho(ks));let qi={};return typeof Et=="string"?qi.label=Et:co&&(qi.label=String(co)),an&&(qi=Object.assign(Object.assign({},qi),an)),Bl(k.createElement(Ce.gN,Object.assign({},si,{messageVariables:qi,trigger:jn,validateTrigger:Cs,onMetaChange:ms}),(os,$n,mr)=>{const Qr=vr(co).length&&$n?$n.name:[],ni=Po(Qr,us),Ki=lt!==void 0?lt:!!(vt&&vt.some(ns=>{if(ns&&typeof ns=="object"&&ns.required&&!ns.warningOnly)return!0;if(typeof ns=="function"){const ua=ns(mr);return ua&&ua.required&&!ua.warningOnly}return!1})),ro=Object.assign({},os);let Ei=null;if(Array.isArray(ks)&&ea)Ei=ks;else if(!(Os&&(!(dt||Nn)||ea))){if(!(Nn&&!Os&&!ea))if((0,Ct.l$)(ks)){const ns=Object.assign(Object.assign({},ks.props),ro);if(ns.id||(ns.id=ni),$i||ju.length>0||rc.length>0||si.extra){const cl=[];($i||ju.length>0)&&cl.push(`${ni}_help`),si.extra&&cl.push(`${ni}_extra`),ns["aria-describedby"]=cl.join(" ")}ju.length>0&&(ns["aria-invalid"]="true"),Ki&&(ns["aria-required"]="true"),(0,_t.Yr)(ks)&&(ns.ref=Pc(Qr,ks)),new Set([].concat((0,y.Z)(vr(jn)),(0,y.Z)(vr(Cs)))).forEach(cl=>{ns[cl]=function(){for(var Zl,Ml,Wa,ku,Xs,Ya=arguments.length,qa=new Array(Ya),Hl=0;Hl{var{prefixCls:co,children:dn}=si,Dn=Es(si,["prefixCls","children"]);const{getPrefixCls:Nn}=k.useContext(Pt.E_),tt=Nn("form",co),dt=k.useMemo(()=>({prefixCls:tt,status:"error"}),[tt]);return k.createElement(Ce.aV,Object.assign({},Dn),(vt,ze,lt)=>k.createElement(w.Rk.Provider,{value:dt},dn(vt.map(Et=>Object.assign(Object.assign({},Et),{fieldKey:Et.key})),ze,{errors:lt.errors,warnings:lt.warnings})))};function tl(){const{form:si}=(0,k.useContext)(w.q3);return si}const xl=ln;xl.Item=jo,xl.List=Za,xl.ErrorList=We,xl.useForm=_o,xl.useFormInstance=tl,xl.useWatch=Ce.qo,xl.Provider=w.RV,xl.create=()=>{};var Qa=xl},37920:function(nt,V,m){"use strict";var y=m(67294);V.Z=(0,y.createContext)(void 0)},25378:function(nt,V,m){"use strict";var y=m(67294),A=m(8410),b=m(57838),z=m(74443);function k(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const w=(0,y.useRef)({}),I=(0,b.Z)(),C=(0,z.ZP)();return(0,A.Z)(()=>{const f=C.subscribe(S=>{w.current=S,N&&I()});return()=>C.unsubscribe(f)},[]),w.current}V.Z=k},73360:function(nt,V,m){"use strict";m.d(V,{Z:function(){return ys}});var y=m(58964),A=m(87462),b=m(67294),z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},k=z,N=m(93771),w=function(Hr,Jr){return b.createElement(N.Z,(0,A.Z)({},Hr,{ref:Jr,icon:k}))},I=b.forwardRef(w),C=m(94184),f=m.n(C),S=m(4942),P=m(71002),j=m(97685),re=m(91),J=m(15671),ie=m(43144);function de(){return typeof BigInt=="function"}function he(xn){return!xn&&xn!==0&&!Number.isNaN(xn)||!String(xn).trim()}function fe(xn){var Hr=xn.trim(),Jr=Hr.startsWith("-");Jr&&(Hr=Hr.slice(1)),Hr=Hr.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Hr.startsWith(".")&&(Hr="0".concat(Hr));var Yi=Hr||"0",xo=Yi.split("."),na=xo[0]||"0",Vn=xo[1]||"0";na==="0"&&Vn==="0"&&(Jr=!1);var Xn=Jr?"-":"";return{negative:Jr,negativeStr:Xn,trimStr:Yi,integerStr:na,decimalStr:Vn,fullStr:"".concat(Xn).concat(Yi)}}function ke(xn){var Hr=String(xn);return!Number.isNaN(Number(Hr))&&Hr.includes("e")}function we(xn){var Hr=String(xn);if(ke(xn)){var Jr=Number(Hr.slice(Hr.indexOf("e-")+2)),Yi=Hr.match(/\.(\d+)/);return Yi!=null&&Yi[1]&&(Jr+=Yi[1].length),Jr}return Hr.includes(".")&&Ee(Hr)?Hr.length-Hr.indexOf(".")-1:0}function Ne(xn){var Hr=String(xn);if(ke(xn)){if(xn>Number.MAX_SAFE_INTEGER)return String(de()?BigInt(xn).toString():Number.MAX_SAFE_INTEGER);if(xn0&&arguments[0]!==void 0?arguments[0]:!0;return Jr?this.isInvalidate()?"":fe("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),xn}(),ye=function(){function xn(Hr){if((0,J.Z)(this,xn),(0,S.Z)(this,"origin",""),(0,S.Z)(this,"number",void 0),(0,S.Z)(this,"empty",void 0),he(Hr)){this.empty=!0;return}this.origin=String(Hr),this.number=Number(Hr)}return(0,ie.Z)(xn,[{key:"negate",value:function(){return new xn(-this.toNumber())}},{key:"add",value:function(Jr){if(this.isInvalidate())return new xn(Jr);var Yi=Number(Jr);if(Number.isNaN(Yi))return this;var xo=this.number+Yi;if(xo>Number.MAX_SAFE_INTEGER)return new xn(Number.MAX_SAFE_INTEGER);if(xoNumber.MAX_SAFE_INTEGER)return new xn(Number.MAX_SAFE_INTEGER);if(xo0&&arguments[0]!==void 0?arguments[0]:!0;return Jr?this.isInvalidate()?"":Ne(this.number):this.origin}}]),xn}();function xe(xn){return de()?new ge(xn):new ye(xn)}function be(xn,Hr,Jr){var Yi=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(xn==="")return"";var xo=fe(xn),na=xo.negativeStr,Vn=xo.integerStr,Xn=xo.decimalStr,Mr="".concat(Hr).concat(Xn),li="".concat(na).concat(Vn);if(Jr>=0){var Cr=Number(Xn[Jr]);if(Cr>=5&&!Yi){var qr=xe(xn).add("".concat(na,"0.").concat("0".repeat(Jr)).concat(10-Cr));return be(qr.toString(),Hr,Jr,Yi)}return Jr===0?li:"".concat(li).concat(Hr).concat(Xn.padEnd(Jr,"0").slice(0,Jr))}return Mr===".0"?li:"".concat(li).concat(Mr)}var Ie=xe,me=m(67656),We=m(8410),Ce=m(42550),Pt=m(80334);function ct(xn,Hr){var Jr=(0,b.useRef)(null);function Yi(){try{var na=xn.selectionStart,Vn=xn.selectionEnd,Xn=xn.value,Mr=Xn.substring(0,na),li=Xn.substring(Vn);Jr.current={start:na,end:Vn,value:Xn,beforeTxt:Mr,afterTxt:li}}catch(Cr){}}function xo(){if(xn&&Jr.current&&Hr)try{var na=xn.value,Vn=Jr.current,Xn=Vn.beforeTxt,Mr=Vn.afterTxt,li=Vn.start,Cr=na.length;if(na.endsWith(Mr))Cr=na.length-Jr.current.afterTxt.length;else if(na.startsWith(Xn))Cr=Xn.length;else{var qr=Xn[li-1],ii=na.indexOf(qr,li-1);ii!==-1&&(Cr=ii+1)}xn.setSelectionRange(Cr,Cr)}catch(rn){(0,Pt.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(rn.message))}}return[Yi,xo]}var Ue=m(31131),bt=function(){var Hr=(0,b.useState)(!1),Jr=(0,j.Z)(Hr,2),Yi=Jr[0],xo=Jr[1];return(0,We.Z)(function(){xo((0,Ue.Z)())},[]),Yi},ht=bt,Bt=m(75164),mt=200,_n=600;function Bn(xn){var Hr=xn.prefixCls,Jr=xn.upNode,Yi=xn.downNode,xo=xn.upDisabled,na=xn.downDisabled,Vn=xn.onStep,Xn=b.useRef(),Mr=b.useRef([]),li=b.useRef();li.current=Vn;var Cr=function(){clearTimeout(Xn.current)},qr=function(pn,_r){pn.preventDefault(),Cr(),li.current(_r);function Gr(){li.current(_r),Xn.current=setTimeout(Gr,mt)}Xn.current=setTimeout(Gr,_n)};b.useEffect(function(){return function(){Cr(),Mr.current.forEach(function(zt){return Bt.Z.cancel(zt)})}},[]);var ii=ht();if(ii)return null;var rn="".concat(Hr,"-handler"),Jn=f()(rn,"".concat(rn,"-up"),(0,S.Z)({},"".concat(rn,"-up-disabled"),xo)),Vr=f()(rn,"".concat(rn,"-down"),(0,S.Z)({},"".concat(rn,"-down-disabled"),na)),so=function(){return Mr.current.push((0,Bt.Z)(Cr))},rs={unselectable:"on",role:"button",onMouseUp:so,onMouseLeave:so};return b.createElement("div",{className:"".concat(rn,"-wrap")},b.createElement("span",(0,A.Z)({},rs,{onMouseDown:function(pn){qr(pn,!0)},"aria-label":"Increase Value","aria-disabled":xo,className:Jn}),Jr||b.createElement("span",{unselectable:"on",className:"".concat(Hr,"-handler-up-inner")})),b.createElement("span",(0,A.Z)({},rs,{onMouseDown:function(pn){qr(pn,!1)},"aria-label":"Decrease Value","aria-disabled":na,className:Vr}),Yi||b.createElement("span",{unselectable:"on",className:"".concat(Hr,"-handler-down-inner")})))}function Er(xn){var Hr=typeof xn=="number"?Ne(xn):fe(xn).fullStr,Jr=Hr.includes(".");return Jr?fe(Hr.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:xn+"0"}var Yr=m(87887),oi=function(){var xn=(0,b.useRef)(0),Hr=function(){Bt.Z.cancel(xn.current)};return(0,b.useEffect)(function(){return Hr},[]),function(Jr){Hr(),xn.current=(0,Bt.Z)(function(){Jr()})}},to=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],yo=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],vr=function(Hr,Jr){return Hr||Jr.isEmpty()?Jr.toString():Jr.toNumber()},Po=function(Hr){var Jr=Ie(Hr);return Jr.isInvalidate()?null:Jr},ss=b.forwardRef(function(xn,Hr){var Jr,Yi=xn.prefixCls,xo=Yi===void 0?"rc-input-number":Yi,na=xn.className,Vn=xn.style,Xn=xn.min,Mr=xn.max,li=xn.step,Cr=li===void 0?1:li,qr=xn.defaultValue,ii=xn.value,rn=xn.disabled,Jn=xn.readOnly,Vr=xn.upHandler,so=xn.downHandler,rs=xn.keyboard,zt=xn.controls,pn=zt===void 0?!0:zt,_r=xn.classNames,Gr=xn.stringMode,ui=xn.parser,Ci=xn.formatter,lo=xn.precision,Kr=xn.decimalSeparator,ti=xn.onChange,Wi=xn.onInput,Tr=xn.onPressEnter,Qt=xn.onStep,Gn=(0,re.Z)(xn,to),yi="".concat(xo,"-input"),Ln=b.useRef(null),Si=b.useState(!1),tr=(0,j.Z)(Si,2),vi=tr[0],Ni=tr[1],kr=b.useRef(!1),Qn=b.useRef(!1),ds=b.useRef(!1),_a=b.useState(function(){return Ie(ii!=null?ii:qr)}),da=(0,j.Z)(_a,2),zs=da[0],ja=da[1];function Co(no){ii===void 0&&ja(no)}var dl=b.useCallback(function(no,Cs){if(!Cs)return lo>=0?lo:Math.max(we(no),we(Cr))},[lo,Cr]),Fr=b.useCallback(function(no){var Cs=String(no);if(ui)return ui(Cs);var ea=Cs;return Kr&&(ea=ea.replace(Kr,".")),ea.replace(/[^\w.-]+/g,"")},[ui,Kr]),fs=b.useRef(""),jo=b.useCallback(function(no,Cs){if(Ci)return Ci(no,{userTyping:Cs,input:String(fs.current)});var ea=typeof no=="number"?Ne(no):no;if(!Cs){var fa=dl(ea,Cs);if(Ee(ea)&&(Kr||fa>=0)){var Bl=Kr||".";ea=be(ea,Bl,fa)}}return ea},[Ci,dl,Kr]),Es=b.useState(function(){var no=qr!=null?qr:ii;return zs.isInvalidate()&&["string","number"].includes((0,P.Z)(no))?Number.isNaN(no)?"":no:jo(zs.toString(),!1)}),xs=(0,j.Z)(Es,2),Za=xs[0],tl=xs[1];fs.current=Za;function xl(no,Cs){tl(jo(no.isInvalidate()?no.toString(!1):no.toString(!Cs),Cs))}var Qa=b.useMemo(function(){return Po(Mr)},[Mr,lo]),si=b.useMemo(function(){return Po(Xn)},[Xn,lo]),co=b.useMemo(function(){return!Qa||!zs||zs.isInvalidate()?!1:Qa.lessEquals(zs)},[Qa,zs]),dn=b.useMemo(function(){return!si||!zs||zs.isInvalidate()?!1:zs.lessEquals(si)},[si,zs]),Dn=ct(Ln.current,vi),Nn=(0,j.Z)(Dn,2),tt=Nn[0],dt=Nn[1],vt=function(Cs){return Qa&&!Cs.lessEquals(Qa)?Qa:si&&!si.lessEquals(Cs)?si:null},ze=function(Cs){return!vt(Cs)},lt=function(Cs,ea){var fa=Cs,Bl=ze(fa)||fa.isEmpty();if(!fa.isEmpty()&&!ea&&(fa=vt(fa)||fa,Bl=!0),!Jn&&!rn&&Bl){var Ma=fa.toString(),gl=dl(Ma,ea);return gl>=0&&(fa=Ie(be(Ma,".",gl)),ze(fa)||(fa=Ie(be(Ma,".",gl,!0)))),fa.equals(zs)||(Co(fa),ti==null||ti(fa.isEmpty()?null:vr(Gr,fa)),ii===void 0&&xl(fa,ea)),fa}return zs},Et=oi(),an=function no(Cs){if(tt(),fs.current=Cs,tl(Cs),!Qn.current){var ea=Fr(Cs),fa=Ie(ea);fa.isNaN()||lt(fa,!0)}Wi==null||Wi(Cs),Et(function(){var Bl=Cs;ui||(Bl=Cs.replace(/。/g,".")),Bl!==Cs&&no(Bl)})},jn=function(){Qn.current=!0},xr=function(){Qn.current=!1,an(Ln.current.value)},Ti=function(Cs){an(Cs.target.value)},$i=function(Cs){var ea;if(!(Cs&&co||!Cs&&dn)){kr.current=!1;var fa=Ie(ds.current?Er(Cr):Cr);Cs||(fa=fa.negate());var Bl=(zs||Ie(0)).add(fa.toString()),Ma=lt(Bl,!1);Qt==null||Qt(vr(Gr,Ma),{offset:ds.current?Er(Cr):Cr,type:Cs?"up":"down"}),(ea=Ln.current)===null||ea===void 0||ea.focus()}},Vi=function(Cs){var ea=Ie(Fr(Za)),fa=ea;ea.isNaN()?fa=lt(zs,Cs):fa=lt(ea,Cs),ii!==void 0?xl(zs,!1):fa.isNaN()||xl(fa,!1)},us=function(){kr.current=!0},ks=function(Cs){var ea=Cs.key,fa=Cs.shiftKey;kr.current=!0,ds.current=fa,ea==="Enter"&&(Qn.current||(kr.current=!1),Vi(!1),Tr==null||Tr(Cs)),rs!==!1&&!Qn.current&&["Up","ArrowUp","Down","ArrowDown"].includes(ea)&&($i(ea==="Up"||ea==="ArrowUp"),Cs.preventDefault())},Os=function(){kr.current=!1,ds.current=!1},pa=function(){Vi(!1),Ni(!1),kr.current=!1};return(0,We.o)(function(){zs.isInvalidate()||xl(zs,!1)},[lo]),(0,We.o)(function(){var no=Ie(ii);ja(no);var Cs=Ie(Fr(Za));(!no.equals(Cs)||!kr.current||Ci)&&xl(no,kr.current)},[ii]),(0,We.o)(function(){Ci&&dt()},[Za]),b.createElement("div",{className:f()(xo,_r==null?void 0:_r.input,na,(Jr={},(0,S.Z)(Jr,"".concat(xo,"-focused"),vi),(0,S.Z)(Jr,"".concat(xo,"-disabled"),rn),(0,S.Z)(Jr,"".concat(xo,"-readonly"),Jn),(0,S.Z)(Jr,"".concat(xo,"-not-a-number"),zs.isNaN()),(0,S.Z)(Jr,"".concat(xo,"-out-of-range"),!zs.isInvalidate()&&!ze(zs)),Jr)),style:Vn,onFocus:function(){Ni(!0)},onBlur:pa,onKeyDown:ks,onKeyUp:Os,onCompositionStart:jn,onCompositionEnd:xr,onBeforeInput:us},pn&&b.createElement(Bn,{prefixCls:xo,upNode:Vr,downNode:so,upDisabled:co,downDisabled:dn,onStep:$i}),b.createElement("div",{className:"".concat(yi,"-wrap")},b.createElement("input",(0,A.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Xn,"aria-valuemax":Mr,"aria-valuenow":zs.isInvalidate()?null:zs.toString(),step:Cr},Gn,{ref:(0,Ce.sQ)(Ln,Hr),className:yi,value:Za,onChange:Ti,disabled:rn,readOnly:Jn}))))}),ve=b.forwardRef(function(xn,Hr){var Jr=xn.disabled,Yi=xn.style,xo=xn.prefixCls,na=xn.value,Vn=xn.prefix,Xn=xn.suffix,Mr=xn.addonBefore,li=xn.addonAfter,Cr=xn.classes,qr=xn.className,ii=xn.classNames,rn=(0,re.Z)(xn,yo),Jn=b.useRef(null),Vr=function(rs){Jn.current&&(0,Yr.nH)(Jn.current,rs)};return b.createElement(me.Q,{inputElement:b.createElement(ss,(0,A.Z)({prefixCls:xo,disabled:Jr,classNames:ii,ref:(0,Ce.sQ)(Jn,Hr)},rn)),className:qr,triggerFocus:Vr,prefixCls:xo,value:na,disabled:Jr,style:Yi,prefix:Vn,suffix:Xn,addonAfter:li,addonBefore:Mr,classes:Cr,classNames:ii,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});ve.displayName="InputNumber";var _o=ve,ci=_o,Bi=m(9708),wi=m(53124),io=m(94740),ln=m(98866),Ve=m(98675),_t=m(65223),Ct=m(4173),jt=m(47673),on=m(14747),Ot=m(80110),Tt=m(67968),xt=m(45503);const Ht=(xn,Hr)=>{let{componentCls:Jr,borderRadiusSM:Yi,borderRadiusLG:xo}=xn;const na=Hr==="lg"?xo:Yi;return{[`&-${Hr}`]:{[`${Jr}-handler-wrap`]:{borderStartEndRadius:na,borderEndEndRadius:na},[`${Jr}-handler-up`]:{borderStartEndRadius:na},[`${Jr}-handler-down`]:{borderEndEndRadius:na}}}},Zn=xn=>{const{componentCls:Hr,lineWidth:Jr,lineType:Yi,colorBorder:xo,borderRadius:na,fontSizeLG:Vn,controlHeightLG:Xn,controlHeightSM:Mr,colorError:li,paddingInlineSM:Cr,colorTextDescription:qr,motionDurationMid:ii,handleHoverColor:rn,paddingInline:Jn,paddingBlock:Vr,handleBg:so,handleActiveBg:rs,colorTextDisabled:zt,borderRadiusSM:pn,borderRadiusLG:_r,controlWidth:Gr,handleVisible:ui,handleBorderColor:Ci}=xn;return[{[Hr]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,on.Wf)(xn)),(0,jt.ik)(xn)),(0,jt.bi)(xn,Hr)),{display:"inline-block",width:Gr,margin:0,padding:0,border:`${Jr}px ${Yi} ${xo}`,borderRadius:na,"&-rtl":{direction:"rtl",[`${Hr}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Vn,borderRadius:_r,[`input${Hr}-input`]:{height:Xn-2*Jr}},"&-sm":{padding:0,borderRadius:pn,[`input${Hr}-input`]:{height:Mr-2*Jr,padding:`0 ${Cr}px`}},"&-out-of-range":{[`${Hr}-input-wrap`]:{input:{color:li}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,on.Wf)(xn)),(0,jt.s7)(xn)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Hr}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Hr}-group-addon`]:{borderRadius:_r,fontSize:xn.fontSizeLG}},"&-sm":{[`${Hr}-group-addon`]:{borderRadius:pn}},[`${Hr}-wrapper-disabled > ${Hr}-group-addon`]:Object.assign({},(0,jt.Xy)(xn))}}),[`&-disabled ${Hr}-input`]:{cursor:"not-allowed"},[Hr]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,on.Wf)(xn)),{width:"100%",padding:`${Vr}px ${Jn}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:na,outline:0,transition:`all ${ii} linear`,appearance:"textfield",fontSize:"inherit"}),(0,jt.nz)(xn.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[Hr]:Object.assign(Object.assign(Object.assign({[`&:hover ${Hr}-handler-wrap, &-focused ${Hr}-handler-wrap`]:{opacity:1},[`${Hr}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:xn.handleWidth,height:"100%",background:so,borderStartStartRadius:0,borderStartEndRadius:na,borderEndEndRadius:na,borderEndStartRadius:0,opacity:ui===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${ii} linear ${ii}`,[`${Hr}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` + input[type='checkbox']:focus`]:{outline:0,boxShadow:`0 0 0 ${si.controlOutlineWidth}px ${si.controlOutline}`},output:{display:"block",paddingTop:15,color:si.colorText,fontSize:si.fontSize,lineHeight:si.lineHeight}}),pe=(si,co)=>{const{formItemCls:dn}=si;return{[dn]:{[`${dn}-label > label`]:{height:co},[`${dn}-control-input`]:{minHeight:co}}}},he=si=>{const{componentCls:co}=si;return{[si.componentCls]:Object.assign(Object.assign(Object.assign({},(0,C.Wf)(si)),ce(si)),{[`${co}-text`]:{display:"inline-block",paddingInlineEnd:si.paddingSM},"&-small":Object.assign({},pe(si,si.controlHeightSM)),"&-large":Object.assign({},pe(si,si.controlHeightLG))})}},fe=si=>{const{formItemCls:co,iconCls:dn,componentCls:An,rootPrefixCls:Nn,labelRequiredMarkColor:tt,labelColor:ht,labelFontSize:vt,labelHeight:Fe,labelColonMarginInlineStart:lt,labelColonMarginInlineEnd:Et,itemMarginBottom:an}=si;return{[co]:Object.assign(Object.assign({},(0,C.Wf)(si)),{marginBottom:an,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, + &-hidden.${Nn}-row`]:{display:"none"},"&-has-warning":{[`${co}-split`]:{color:si.colorError}},"&-has-error":{[`${co}-split`]:{color:si.colorWarning}},[`${co}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${si.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Fe,color:ht,fontSize:vt,[`> ${dn}`]:{fontSize:si.fontSize,verticalAlign:"top"},[`&${co}-required:not(${co}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:si.marginXXS,color:tt,fontSize:si.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${An}-hide-required-mark &`]:{display:"none"}},[`${co}-optional`]:{display:"inline-block",marginInlineStart:si.marginXXS,color:si.colorTextDescription,[`${An}-hide-required-mark &`]:{display:"none"}},[`${co}-tooltip`]:{color:si.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:si.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:lt,marginInlineEnd:Et},[`&${co}-no-colon::after`]:{content:'"\\a0"'}}},[`${co}-control`]:{["--ant-display"]:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Nn}-col-'"]):not([class*="' ${Nn}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:si.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[co]:{"&-explain, &-extra":{clear:"both",color:si.colorTextDescription,fontSize:si.fontSize,lineHeight:si.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:si.controlHeightSM,transition:`color ${si.motionDurationMid} ${si.motionEaseOut}`},"&-explain":{"&-error":{color:si.colorError},"&-warning":{color:si.colorWarning}}},[`&-with-help ${co}-explain`]:{height:"auto",opacity:1},[`${co}-feedback-icon`]:{fontSize:si.fontSize,textAlign:"center",visibility:"visible",animationName:f.kr,animationDuration:si.motionDurationMid,animationTimingFunction:si.motionEaseOutBack,pointerEvents:"none","&-success":{color:si.colorSuccess},"&-error":{color:si.colorError},"&-warning":{color:si.colorWarning},"&-validating":{color:si.colorPrimary}}})}},Be=si=>{const{componentCls:co,formItemCls:dn}=si;return{[`${co}-horizontal`]:{[`${dn}-label`]:{flexGrow:0},[`${dn}-control`]:{flex:"1 1 0",minWidth:0},[`${dn}-label[class$='-24'], ${dn}-label[class*='-24 ']`]:{[`& + ${dn}-control`]:{minWidth:"unset"}}}}},Ie=si=>{const{componentCls:co,formItemCls:dn}=si;return{[`${co}-inline`]:{display:"flex",flexWrap:"wrap",[dn]:{flex:"none",marginInlineEnd:si.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${dn}-label, + > ${dn}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${dn}-label`]:{flex:"none"},[`${co}-text`]:{display:"inline-block"},[`${dn}-has-feedback`]:{display:"inline-block"}}}}},We=si=>({padding:si.verticalLabelPadding,margin:si.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),De=si=>{const{componentCls:co,formItemCls:dn,rootPrefixCls:An}=si;return{[`${dn} ${dn}-label`]:We(si),[co]:{[dn]:{flexWrap:"wrap",[`${dn}-label, ${dn}-control`]:{[`&:not([class*=" ${An}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},ve=si=>{const{componentCls:co,formItemCls:dn,rootPrefixCls:An}=si;return{[`${co}-vertical`]:{[dn]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${co}-item-control`]:{width:"100%"}}},[`${co}-vertical ${dn}-label, + .${An}-col-24${dn}-label, + .${An}-col-xl-24${dn}-label`]:We(si),[`@media (max-width: ${si.screenXSMax}px)`]:[De(si),{[co]:{[`.${An}-col-xs-24${dn}-label`]:We(si)}}],[`@media (max-width: ${si.screenSMMax}px)`]:{[co]:{[`.${An}-col-sm-24${dn}-label`]:We(si)}},[`@media (max-width: ${si.screenMDMax}px)`]:{[co]:{[`.${An}-col-md-24${dn}-label`]:We(si)}},[`@media (max-width: ${si.screenLGMax}px)`]:{[co]:{[`.${An}-col-lg-24${dn}-label`]:We(si)}}}},ye=(si,co)=>(0,P.TS)(si,{formItemCls:`${si.componentCls}-item`,rootPrefixCls:co});var we=(0,W.Z)("Form",(si,co)=>{let{rootPrefixCls:dn}=co;const An=ye(si,dn);return[he(An),fe(An),re(An),Be(An),Ie(An),ve(An),(0,S.Z)(An),f.kr]},si=>({labelRequiredMarkColor:si.colorError,labelColor:si.colorTextHeading,labelFontSize:si.fontSize,labelHeight:si.controlHeight,labelColonMarginInlineStart:si.marginXXS/2,labelColonMarginInlineEnd:si.marginXS,itemMarginBottom:si.marginLG,verticalLabelPadding:`0 0 ${si.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Ce=[];function Ae(si,co,dn){let An=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof si=="string"?si:`${co}-${An}`,error:si,errorStatus:dn}}var je=si=>{let{help:co,helpStatus:dn,errors:An=Ce,warnings:Nn=Ce,className:tt,fieldId:ht,onVisibleChanged:vt}=si;const{prefixCls:Fe}=k.useContext(w.Rk),lt=`${Fe}-item-explain`,[,Et]=we(Fe),an=(0,k.useMemo)(()=>(0,N.Z)(Fe),[Fe]),jn=A(An),Cr=A(Nn),Ti=k.useMemo(()=>co!=null?[Ae(co,"help",dn)]:[].concat((0,y.Z)(jn.map((Vi,us)=>Ae(Vi,"error","error",us))),(0,y.Z)(Cr.map((Vi,us)=>Ae(Vi,"warning","warning",us)))),[co,dn,jn,Cr]),$i={};return ht&&($i.id=`${ht}_help`),k.createElement(z.ZP,{motionDeadline:an.motionDeadline,motionName:`${Fe}-show-help`,visible:!!Ti.length,onVisibleChanged:vt},Vi=>{const{className:us,style:ks}=Vi;return k.createElement("div",Object.assign({},$i,{className:b()(lt,us,tt,Et),style:ks,role:"alert"}),k.createElement(z.V4,Object.assign({keys:Ti},(0,N.Z)(Fe),{motionName:`${Fe}-show-help-item`,component:!1}),Os=>{const{key:pa,error:no,errorStatus:Cs,className:ea,style:fa}=Os;return k.createElement("div",{key:pa,className:b()(ea,{[`${lt}-${Cs}`]:Cs}),style:fa},no)}))})},xe=m(76152),Pt=m(67392),ct=m(81689),He=m(75189),wt=m(21843);const dt=si=>typeof si=="object"&&si!=null&&si.nodeType===1,Bt=(si,co)=>(!co||si!=="hidden")&&si!=="visible"&&si!=="clip",gt=(si,co)=>{if(si.clientHeight{const Nn=(tt=>{if(!tt.ownerDocument||!tt.ownerDocument.defaultView)return null;try{return tt.ownerDocument.defaultView.frameElement}catch(ht){return null}})(An);return!!Nn&&(Nn.clientHeightttco||tt>si&&ht=co&&vt>=dn?tt-si-An:ht>co&&vtdn?ht-co+Nn:0,Bn=si=>{const co=si.parentElement;return co==null?si.getRootNode().host||null:co},Er=(si,co)=>{var dn,An,Nn,tt;if(typeof document=="undefined")return[];const{scrollMode:ht,block:vt,inline:Fe,boundary:lt,skipOverflowHiddenElements:Et}=co,an=typeof lt=="function"?lt:qi=>qi!==lt;if(!dt(si))throw new TypeError("Invalid target");const jn=document.scrollingElement||document.documentElement,Cr=[];let Ti=si;for(;dt(Ti)&&an(Ti);){if(Ti=Bn(Ti),Ti===jn){Cr.push(Ti);break}Ti!=null&&Ti===document.body&>(Ti)&&!gt(document.documentElement)||Ti!=null&>(Ti,Et)&&Cr.push(Ti)}const $i=(An=(dn=window.visualViewport)==null?void 0:dn.width)!=null?An:innerWidth,Vi=(tt=(Nn=window.visualViewport)==null?void 0:Nn.height)!=null?tt:innerHeight,{scrollX:us,scrollY:ks}=window,{height:Os,width:pa,top:no,right:Cs,bottom:ea,left:fa}=si.getBoundingClientRect(),{top:Bl,right:Ma,bottom:pl,left:oa}=(qi=>{const ta=window.getComputedStyle(qi);return{top:parseFloat(ta.scrollMarginTop)||0,right:parseFloat(ta.scrollMarginRight)||0,bottom:parseFloat(ta.scrollMarginBottom)||0,left:parseFloat(ta.scrollMarginLeft)||0}})(si);let Nl=vt==="start"||vt==="nearest"?no-Bl:vt==="end"?ea+pl:no+Os/2-Bl+pl,cs=Fe==="center"?fa+pa/2-oa+Ma:Fe==="end"?Cs+Ma:fa-oa;const zi=[];for(let qi=0;qi=0&&fa>=0&&ea<=Vi&&Cs<=$i&&no>=$u&&ea<=Pc&&fa>=ho&&Cs<=rc)return zi;const Ji=getComputedStyle(ta),ss=parseInt(Ji.borderLeftWidth,10),$n=parseInt(Ji.borderTopWidth,10),mr=parseInt(Ji.borderRightWidth,10),Qr=parseInt(Ji.borderBottomWidth,10);let ni=0,Ki=0;const ro="offsetWidth"in ta?ta.offsetWidth-ta.clientWidth-ss-mr:0,Ei="offsetHeight"in ta?ta.offsetHeight-ta.clientHeight-$n-Qr:0,ns="offsetWidth"in ta?ta.offsetWidth===0?0:Ua/ta.offsetWidth:0,ca="offsetHeight"in ta?ta.offsetHeight===0?0:ms/ta.offsetHeight:0;if(jn===ta)ni=vt==="start"?Nl:vt==="end"?Nl-Vi:vt==="nearest"?_n(ks,ks+Vi,Vi,$n,Qr,ks+Nl,ks+Nl+Os,Os):Nl-Vi/2,Ki=Fe==="start"?cs:Fe==="center"?cs-$i/2:Fe==="end"?cs-$i:_n(us,us+$i,$i,ss,mr,us+cs,us+cs+pa,pa),ni=Math.max(0,ni+ks),Ki=Math.max(0,Ki+us);else{ni=vt==="start"?Nl-$u-$n:vt==="end"?Nl-Pc+Qr+Ei:vt==="nearest"?_n($u,Pc,ms,$n,Qr+Ei,Nl,Nl+Os,Os):Nl-($u+ms/2)+Ei/2,Ki=Fe==="start"?cs-ho-ss:Fe==="center"?cs-(ho+Ua/2)+ro/2:Fe==="end"?cs-rc+mr+ro:_n(ho,rc,Ua,ss,mr+ro,cs,cs+pa,pa);const{scrollLeft:Na,scrollTop:ul}=ta;ni=ca===0?0:Math.max(0,Math.min(ul+ni/ca,ta.scrollHeight-ms/ca+Ei)),Ki=ns===0?0:Math.max(0,Math.min(Na+Ki/ns,ta.scrollWidth-Ua/ns+ro)),Nl+=ul-ni,cs+=Na-Ki}zi.push({el:ta,top:ni,left:Ki})}return zi},Yr=si=>si===!1?{block:"end",inline:"nearest"}:(co=>co===Object(co)&&Object.keys(co).length!==0)(si)?si:{block:"start",inline:"nearest"};function oi(si,co){if(!si.isConnected||!(Nn=>{let tt=Nn;for(;tt&&tt.parentNode;){if(tt.parentNode===document)return!0;tt=tt.parentNode instanceof ShadowRoot?tt.parentNode.host:tt.parentNode}return!1})(si))return;const dn=(Nn=>{const tt=window.getComputedStyle(Nn);return{top:parseFloat(tt.scrollMarginTop)||0,right:parseFloat(tt.scrollMarginRight)||0,bottom:parseFloat(tt.scrollMarginBottom)||0,left:parseFloat(tt.scrollMarginLeft)||0}})(si);if((Nn=>typeof Nn=="object"&&typeof Nn.behavior=="function")(co))return co.behavior(Er(si,co));const An=typeof co=="boolean"||co==null?void 0:co.behavior;for(const{el:Nn,top:tt,left:ht}of Er(si,Yr(co))){const vt=tt-dn.top+dn.bottom,Fe=ht-dn.left+dn.right;Nn.scroll({top:vt,left:Fe,behavior:An})}}const to=["parentNode"],yo="form_item";function yr(si){return si===void 0||si===!1?[]:Array.isArray(si)?si:[si]}function Po(si,co){if(!si.length)return;const dn=si.join("_");return co?`${co}_${dn}`:to.includes(dn)?`${yo}_${dn}`:dn}function as(si,co,dn,An,Nn,tt){let ht=An;return tt!==void 0?ht=tt:dn.validating?ht="validating":si.length?ht="error":co.length?ht="warning":(dn.touched||Nn&&dn.validated)&&(ht="success"),ht}function ge(si){return yr(si).join("_")}function _o(si){const[co]=(0,xe.cI)(),dn=k.useRef({}),An=k.useMemo(()=>si!=null?si:Object.assign(Object.assign({},co),{__INTERNAL__:{itemRef:Nn=>tt=>{const ht=ge(Nn);tt?dn.current[ht]=tt:delete dn.current[ht]}},scrollToField:function(Nn){let tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const ht=yr(Nn),vt=Po(ht,An.__INTERNAL__.name),Fe=vt?document.getElementById(vt):null;Fe&&oi(Fe,Object.assign({scrollMode:"if-needed",block:"nearest"},tt))},getFieldInstance:Nn=>{const tt=ge(Nn);return dn.current[tt]}}),[si,co]);return[An]}var ci=m(36116),Bi=function(si,co){var dn={};for(var An in si)Object.prototype.hasOwnProperty.call(si,An)&&co.indexOf(An)<0&&(dn[An]=si[An]);if(si!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nn=0,An=Object.getOwnPropertySymbols(si);Nn{const dn=k.useContext(ct.Z),{getPrefixCls:An,direction:Nn,form:tt}=k.useContext(Pt.E_),{prefixCls:ht,className:vt,rootClassName:Fe,size:lt,disabled:Et=dn,form:an,colon:jn,labelAlign:Cr,labelWrap:Ti,labelCol:$i,wrapperCol:Vi,hideRequiredMark:us,layout:ks="horizontal",scrollToFirstError:Os,requiredMark:pa,onFinishFailed:no,name:Cs,style:ea,feedbackIcons:fa}=si,Bl=Bi(si,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Ma=(0,wt.Z)(lt),pl=k.useContext(ci.Z),oa=(0,k.useMemo)(()=>pa!==void 0?pa:tt&&tt.requiredMark!==void 0?tt.requiredMark:!us,[us,pa,tt]),Nl=jn!=null?jn:tt==null?void 0:tt.colon,cs=An("form",ht),[zi,qi]=we(cs),ta=b()(cs,`${cs}-${ks}`,{[`${cs}-hide-required-mark`]:oa===!1,[`${cs}-rtl`]:Nn==="rtl",[`${cs}-${Ma}`]:Ma},qi,tt==null?void 0:tt.className,vt,Fe),[ms]=_o(an),{__INTERNAL__:Ua}=ms;Ua.name=Cs;const $u=(0,k.useMemo)(()=>({name:Cs,labelAlign:Cr,labelCol:$i,labelWrap:Ti,wrapperCol:Vi,vertical:ks==="vertical",colon:Nl,requiredMark:oa,itemRef:Ua.itemRef,form:ms,feedbackIcons:fa}),[Cs,Cr,$i,Vi,ks,Nl,oa,ms,fa]);k.useImperativeHandle(co,()=>ms);const rc=(ho,Ji)=>{if(ho){let ss={block:"nearest"};typeof ho=="object"&&(ss=ho),ms.scrollToField(Ji,ss)}},Pc=ho=>{if(no==null||no(ho),ho.errorFields.length){const Ji=ho.errorFields[0].name;if(Os!==void 0){rc(Os,Ji);return}tt&&tt.scrollToFirstError!==void 0&&rc(tt.scrollToFirstError,Ji)}};return zi(k.createElement(ct.n,{disabled:Et},k.createElement(He.q,{size:Ma},k.createElement(w.RV,{validateMessages:pl},k.createElement(w.q3.Provider,{value:$u},k.createElement(xe.ZP,Object.assign({id:Cs},Bl,{name:Cs,onFinishFailed:Pc,form:ms,style:Object.assign(Object.assign({},tt==null?void 0:tt.style),ea),className:ta})))))))};var ln=k.forwardRef(Ci),Ve=m(92803),_t=m(9681),xt=m(99486),Wt=m(40869),on=m(38930);function Ot(si){if(typeof si=="function")return si;const co=(0,on.Z)(si);return co.length<=1?co[0]:co}const Tt=()=>{const{status:si,errors:co=[],warnings:dn=[]}=(0,k.useContext)(w.aM);return{status:si,errors:co,warnings:dn}};Tt.Context=w.aM;var bt=Tt,Ht=m(28637);function Wn(si){const[co,dn]=k.useState(si),An=(0,k.useRef)(null),Nn=(0,k.useRef)([]),tt=(0,k.useRef)(!1);k.useEffect(()=>(tt.current=!1,()=>{tt.current=!0,Ht.Z.cancel(An.current),An.current=null}),[]);function ht(vt){tt.current||(An.current===null&&(Nn.current=[],An.current=(0,Ht.Z)(()=>{An.current=null,dn(Fe=>{let lt=Fe;return Nn.current.forEach(Et=>{lt=Et(lt)}),lt})})),Nn.current.push(vt))}return[co,ht]}function tn(){const{itemRef:si}=k.useContext(w.q3),co=k.useRef({});function dn(An,Nn){const tt=Nn&&typeof Nn=="object"&&Nn.ref,ht=An.join("_");return(co.current.name!==ht||co.current.originRef!==tt)&&(co.current.name=ht,co.current.originRef=tt,co.current.ref=(0,_t.sQ)(si(An),tt)),co.current.ref}return dn}var hr=m(64630),Zi=m(62305),Ri=m(39029),Pi=m(67986),ys=(0,k.createContext)({});const xn=si=>{const{componentCls:co}=si;return{[co]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},Hr=si=>{const{componentCls:co}=si;return{[co]:{position:"relative",maxWidth:"100%",minHeight:1}}},Jr=(si,co)=>{const{componentCls:dn,gridColumns:An}=si,Nn={};for(let tt=An;tt>=0;tt--)tt===0?(Nn[`${dn}${co}-${tt}`]={display:"none"},Nn[`${dn}-push-${tt}`]={insetInlineStart:"auto"},Nn[`${dn}-pull-${tt}`]={insetInlineEnd:"auto"},Nn[`${dn}${co}-push-${tt}`]={insetInlineStart:"auto"},Nn[`${dn}${co}-pull-${tt}`]={insetInlineEnd:"auto"},Nn[`${dn}${co}-offset-${tt}`]={marginInlineStart:0},Nn[`${dn}${co}-order-${tt}`]={order:0}):(Nn[`${dn}${co}-${tt}`]=[{["--ant-display"]:"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${tt/An*100}%`,maxWidth:`${tt/An*100}%`}],Nn[`${dn}${co}-push-${tt}`]={insetInlineStart:`${tt/An*100}%`},Nn[`${dn}${co}-pull-${tt}`]={insetInlineEnd:`${tt/An*100}%`},Nn[`${dn}${co}-offset-${tt}`]={marginInlineStart:`${tt/An*100}%`},Nn[`${dn}${co}-order-${tt}`]={order:tt});return Nn},Yi=(si,co)=>Jr(si,co),xo=(si,co,dn)=>({[`@media (min-width: ${co}px)`]:Object.assign({},Yi(si,dn))}),na=(0,W.Z)("Grid",si=>[xn(si)]),Un=(0,W.Z)("Grid",si=>{const co=(0,P.TS)(si,{gridColumns:24}),dn={"-sm":co.screenSMMin,"-md":co.screenMDMin,"-lg":co.screenLGMin,"-xl":co.screenXLMin,"-xxl":co.screenXXLMin};return[Hr(co),Yi(co,""),Yi(co,"-xs"),Object.keys(dn).map(An=>xo(co,dn[An],An)).reduce((An,Nn)=>Object.assign(Object.assign({},An),Nn),{})]});var Xn=function(si,co){var dn={};for(var An in si)Object.prototype.hasOwnProperty.call(si,An)&&co.indexOf(An)<0&&(dn[An]=si[An]);if(si!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nn=0,An=Object.getOwnPropertySymbols(si);Nn{if(typeof si=="string"&&An(si),typeof si=="object")for(let tt=0;tt{Nn()},[JSON.stringify(si),co]),dn}var ii=k.forwardRef((si,co)=>{const{prefixCls:dn,justify:An,align:Nn,className:tt,style:ht,children:vt,gutter:Fe=0,wrap:lt}=si,Et=Xn(si,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:an,direction:jn}=k.useContext(Pt.E_),[Cr,Ti]=k.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[$i,Vi]=k.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),us=wr(Nn,$i),ks=wr(An,$i),Os=k.useRef(Fe),pa=(0,Pi.ZP)();k.useEffect(()=>{const qi=pa.subscribe(ta=>{Vi(ta);const ms=Os.current||0;(!Array.isArray(ms)&&typeof ms=="object"||Array.isArray(ms)&&(typeof ms[0]=="object"||typeof ms[1]=="object"))&&Ti(ta)});return()=>pa.unsubscribe(qi)},[]);const no=()=>{const qi=[void 0,void 0];return(Array.isArray(Fe)?Fe:[Fe,void 0]).forEach((ms,Ua)=>{if(typeof ms=="object")for(let $u=0;$u0?Bl[0]/-2:void 0;oa&&(pl.marginLeft=oa,pl.marginRight=oa),[,pl.rowGap]=Bl;const[Nl,cs]=Bl,zi=k.useMemo(()=>({gutter:[Nl,cs],wrap:lt}),[Nl,cs,lt]);return ea(k.createElement(ys.Provider,{value:zi},k.createElement("div",Object.assign({},Et,{className:Ma,style:Object.assign(Object.assign({},pl),ht),ref:co}),vt)))}),rn=function(si,co){var dn={};for(var An in si)Object.prototype.hasOwnProperty.call(si,An)&&co.indexOf(An)<0&&(dn[An]=si[An]);if(si!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nn=0,An=Object.getOwnPropertySymbols(si);Nn{const{getPrefixCls:dn,direction:An}=k.useContext(Pt.E_),{gutter:Nn,wrap:tt}=k.useContext(ys),{prefixCls:ht,span:vt,order:Fe,offset:lt,push:Et,pull:an,className:jn,children:Cr,flex:Ti,style:$i}=si,Vi=rn(si,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),us=dn("col",ht),[ks,Os]=Un(us);let pa={};Vr.forEach(ea=>{let fa={};const Bl=si[ea];typeof Bl=="number"?fa.span=Bl:typeof Bl=="object"&&(fa=Bl||{}),delete Vi[ea],pa=Object.assign(Object.assign({},pa),{[`${us}-${ea}-${fa.span}`]:fa.span!==void 0,[`${us}-${ea}-order-${fa.order}`]:fa.order||fa.order===0,[`${us}-${ea}-offset-${fa.offset}`]:fa.offset||fa.offset===0,[`${us}-${ea}-push-${fa.push}`]:fa.push||fa.push===0,[`${us}-${ea}-pull-${fa.pull}`]:fa.pull||fa.pull===0,[`${us}-${ea}-flex-${fa.flex}`]:fa.flex||fa.flex==="auto",[`${us}-rtl`]:An==="rtl"})});const no=b()(us,{[`${us}-${vt}`]:vt!==void 0,[`${us}-order-${Fe}`]:Fe,[`${us}-offset-${lt}`]:lt,[`${us}-push-${Et}`]:Et,[`${us}-pull-${an}`]:an},jn,pa,Os),Cs={};if(Nn&&Nn[0]>0){const ea=Nn[0]/2;Cs.paddingLeft=ea,Cs.paddingRight=ea}return Ti&&(Cs.flex=Qn(Ti),tt===!1&&!Cs.minWidth&&(Cs.minWidth=0)),ks(k.createElement("div",Object.assign({},Vi,{style:Object.assign(Object.assign({},Cs),$i),className:no,ref:co}),Cr))});const zt=si=>{const{formItemCls:co}=si;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${co}-control`]:{display:"flex"}}}};var pn=(0,W.b)(["Form","item-item"],(si,co)=>{let{rootPrefixCls:dn}=co;const An=ye(si,dn);return[zt(An)]}),Gr=si=>{const{prefixCls:co,status:dn,wrapperCol:An,children:Nn,errors:tt,warnings:ht,_internalItemRender:vt,extra:Fe,help:lt,fieldId:Et,marginBottom:an,onErrorVisibleChanged:jn}=si,Cr=`${co}-item`,Ti=k.useContext(w.q3),$i=An||Ti.wrapperCol||{},Vi=b()(`${Cr}-control`,$i.className),us=k.useMemo(()=>Object.assign({},Ti),[Ti]);delete us.labelCol,delete us.wrapperCol;const ks=k.createElement("div",{className:`${Cr}-control-input`},k.createElement("div",{className:`${Cr}-control-input-content`},Nn)),Os=k.useMemo(()=>({prefixCls:co,status:dn}),[co,dn]),pa=an!==null||tt.length||ht.length?k.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},k.createElement(w.Rk.Provider,{value:Os},k.createElement(je,{fieldId:Et,errors:tt,warnings:ht,help:lt,helpStatus:dn,className:`${Cr}-explain-connected`,onVisibleChanged:jn})),!!an&&k.createElement("div",{style:{width:0,height:an}})):null,no={};Et&&(no.id=`${Et}_extra`);const Cs=Fe?k.createElement("div",Object.assign({},no,{className:`${Cr}-extra`}),Fe):null,ea=vt&&vt.mark==="pro_table_render"&&vt.render?vt.render(si,{input:ks,errorList:pa,extra:Cs}):k.createElement(k.Fragment,null,ks,pa,Cs);return k.createElement(w.q3.Provider,{value:us},k.createElement(rs,Object.assign({},$i,{className:Vi}),ea),k.createElement(pn,{prefixCls:co}))},ui=m(26508),xi=m(40043),lo=m(91851),Kr=function(co,dn){return k.createElement(lo.Z,(0,ui.Z)({},co,{ref:dn,icon:xi.Z}))},ti=k.forwardRef(Kr),ji=m(530),Tr=m(879),Qt=m(16175),Gn=function(si,co){var dn={};for(var An in si)Object.prototype.hasOwnProperty.call(si,An)&&co.indexOf(An)<0&&(dn[An]=si[An]);if(si!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nn=0,An=Object.getOwnPropertySymbols(si);Nn{let{prefixCls:co,label:dn,htmlFor:An,labelCol:Nn,labelAlign:tt,colon:ht,required:vt,requiredMark:Fe,tooltip:lt}=si;var Et;const[an]=(0,Tr.Z)("Form"),{vertical:jn,labelAlign:Cr,labelCol:Ti,labelWrap:$i,colon:Vi}=k.useContext(w.q3);if(!dn)return null;const us=Nn||Ti||{},ks=tt||Cr,Os=`${co}-item-label`,pa=b()(Os,ks==="left"&&`${Os}-left`,us.className,{[`${Os}-wrap`]:!!$i});let no=dn;const Cs=ht===!0||Vi!==!1&&ht!==!1;Cs&&!jn&&typeof dn=="string"&&dn.trim()!==""&&(no=dn.replace(/[:|:]\s*$/,""));const fa=yi(lt);if(fa){const{icon:oa=k.createElement(ti,null)}=fa,Nl=Gn(fa,["icon"]),cs=k.createElement(Qt.Z,Object.assign({},Nl),k.cloneElement(oa,{className:`${co}-item-tooltip`,title:""}));no=k.createElement(k.Fragment,null,no,cs)}const Bl=Fe==="optional",Ma=typeof Fe=="function";Ma?no=Fe(no,{required:!!vt}):Bl&&!vt&&(no=k.createElement(k.Fragment,null,no,k.createElement("span",{className:`${co}-item-optional`,title:""},(an==null?void 0:an.optional)||((Et=ji.Z.Form)===null||Et===void 0?void 0:Et.optional))));const pl=b()({[`${co}-item-required`]:vt,[`${co}-item-required-mark-optional`]:Bl||Ma,[`${co}-item-no-colon`]:!Cs});return k.createElement(rs,Object.assign({},us,{className:pa}),k.createElement("label",{htmlFor:An,className:pl,title:typeof dn=="string"?dn:""},no))},tr=m(95934),vi=m(48796),Ni=m(86850),kr=m(38521);const qn={success:tr.Z,warning:Ni.Z,error:vi.Z,validating:kr.Z};function ds(si){let{children:co,errors:dn,warnings:An,hasFeedback:Nn,validateStatus:tt,prefixCls:ht,meta:vt,noStyle:Fe}=si;const lt=`${ht}-item`,{feedbackIcons:Et}=k.useContext(w.q3),an=as(dn,An,vt,null,!!Nn,tt),{isFormItemInput:jn,status:Cr,hasFeedback:Ti,feedbackIcon:$i}=k.useContext(w.aM),Vi=k.useMemo(()=>{var us;let ks;if(Nn){const pa=Nn!==!0&&Nn.icons||Et,no=an&&((us=pa==null?void 0:pa({status:an,errors:dn,warnings:An}))===null||us===void 0?void 0:us[an]),Cs=an&&qn[an];ks=no!==!1&&Cs?k.createElement("span",{className:b()(`${lt}-feedback-icon`,`${lt}-feedback-icon-${an}`)},no||k.createElement(Cs,null)):null}const Os={status:an||"",errors:dn,warnings:An,hasFeedback:!!Nn,feedbackIcon:ks,isFormItemInput:!0};return Fe&&(Os.status=(an!=null?an:Cr)||"",Os.isFormItemInput=jn,Os.hasFeedback=!!(Nn!=null?Nn:Ti),Os.feedbackIcon=Nn!==void 0?Os.feedbackIcon:$i),Os},[an,Nn,Fe,jn,Cr]);return k.createElement(w.aM.Provider,{value:Vi},co)}var _a=function(si,co){var dn={};for(var An in si)Object.prototype.hasOwnProperty.call(si,An)&&co.indexOf(An)<0&&(dn[An]=si[An]);if(si!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nn=0,An=Object.getOwnPropertySymbols(si);Nn{if(fa&&pa.current){const qi=getComputedStyle(pa.current);pl(parseInt(qi.marginBottom,10))}},[fa,Bl]);const oa=qi=>{qi||pl(null)},cs=function(){let qi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const ta=qi?no:lt.errors,ms=qi?Cs:lt.warnings;return as(ta,ms,lt,"",!!Et,Fe)}(),zi=b()(ks,dn,An,{[`${ks}-with-help`]:ea||no.length||Cs.length,[`${ks}-has-feedback`]:cs&&Et,[`${ks}-has-success`]:cs==="success",[`${ks}-has-warning`]:cs==="warning",[`${ks}-has-error`]:cs==="error",[`${ks}-is-validating`]:cs==="validating",[`${ks}-hidden`]:an});return k.createElement("div",{className:zi,style:Nn,ref:pa},k.createElement(ii,Object.assign({className:`${ks}-row`},(0,Ri.Z)(us,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),k.createElement(Si,Object.assign({htmlFor:Cr},si,{requiredMark:Os,required:Ti!=null?Ti:$i,prefixCls:co})),k.createElement(Gr,Object.assign({},si,lt,{errors:no,warnings:Cs,prefixCls:co,status:cs,help:tt,marginBottom:Ma,onErrorVisibleChanged:oa}),k.createElement(w.qI.Provider,{value:Vi},k.createElement(ds,{prefixCls:co,meta:lt,errors:lt.errors,warnings:lt.warnings,hasFeedback:Et,validateStatus:cs},jn)))),!!Ma&&k.createElement("div",{className:`${ks}-margin-offset`,style:{marginBottom:-Ma}}))}const zs="__SPLIT__",Wa=null,Co=k.memo(si=>{let{children:co}=si;return co},(si,co)=>si.value===co.value&&si.update===co.update&&si.childProps.length===co.childProps.length&&si.childProps.every((dn,An)=>dn===co.childProps[An]));function cl(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Fr(si){const{name:co,noStyle:dn,className:An,dependencies:Nn,prefixCls:tt,shouldUpdate:ht,rules:vt,children:Fe,required:lt,label:Et,messageVariables:an,trigger:jn="onChange",validateTrigger:Cr,hidden:Ti,help:$i}=si,{getPrefixCls:Vi}=k.useContext(Pt.E_),{name:us}=k.useContext(w.q3),ks=Ot(Fe),Os=typeof ks=="function",pa=k.useContext(w.qI),{validateTrigger:no}=k.useContext(xe.zb),Cs=Cr!==void 0?Cr:no,ea=co!=null,fa=Vi("form",tt),[Bl,Ma]=we(fa),pl=(0,Wt.ln)("Form.Item"),oa=k.useContext(xe.ZM),Nl=k.useRef(),[cs,zi]=Wn({}),[qi,ta]=(0,Ve.Z)(()=>cl()),ms=ss=>{const $n=oa==null?void 0:oa.getKey(ss.name);if(ta(ss.destroy?cl():ss,!0),dn&&$i!==!1&&pa){let mr=ss.name;if(ss.destroy)mr=Nl.current||mr;else if($n!==void 0){const[Qr,ni]=$n;mr=[Qr].concat((0,y.Z)(ni)),Nl.current=mr}pa(ss,mr)}},Ua=(ss,$n)=>{zi(mr=>{const Qr=Object.assign({},mr),Ki=[].concat((0,y.Z)(ss.name.slice(0,-1)),(0,y.Z)($n)).join(zs);return ss.destroy?delete Qr[Ki]:Qr[Ki]=ss,Qr})},[$u,rc]=k.useMemo(()=>{const ss=(0,y.Z)(qi.errors),$n=(0,y.Z)(qi.warnings);return Object.values(cs).forEach(mr=>{ss.push.apply(ss,(0,y.Z)(mr.errors||[])),$n.push.apply($n,(0,y.Z)(mr.warnings||[]))}),[ss,$n]},[cs,qi.errors,qi.warnings]),Pc=tn();function ho(ss,$n,mr){return dn&&!Ti?k.createElement(ds,{prefixCls:fa,hasFeedback:si.hasFeedback,validateStatus:si.validateStatus,meta:qi,errors:$u,warnings:rc,noStyle:!0},ss):k.createElement(da,Object.assign({key:"row"},si,{className:b()(An,Ma),prefixCls:fa,fieldId:$n,isRequired:mr,errors:$u,warnings:rc,meta:qi,onSubItemMetaChange:Ua}),ss)}if(!ea&&!Os&&!Nn)return Bl(ho(ks));let Ji={};return typeof Et=="string"?Ji.label=Et:co&&(Ji.label=String(co)),an&&(Ji=Object.assign(Object.assign({},Ji),an)),Bl(k.createElement(xe.gN,Object.assign({},si,{messageVariables:Ji,trigger:jn,validateTrigger:Cs,onMetaChange:ms}),(ss,$n,mr)=>{const Qr=yr(co).length&&$n?$n.name:[],ni=Po(Qr,us),Ki=lt!==void 0?lt:!!(vt&&vt.some(ns=>{if(ns&&typeof ns=="object"&&ns.required&&!ns.warningOnly)return!0;if(typeof ns=="function"){const ca=ns(mr);return ca&&ca.required&&!ca.warningOnly}return!1})),ro=Object.assign({},ss);let Ei=null;if(Array.isArray(ks)&&ea)Ei=ks;else if(!(Os&&(!(ht||Nn)||ea))){if(!(Nn&&!Os&&!ea))if((0,xt.l$)(ks)){const ns=Object.assign(Object.assign({},ks.props),ro);if(ns.id||(ns.id=ni),$i||$u.length>0||rc.length>0||si.extra){const ul=[];($i||$u.length>0)&&ul.push(`${ni}_help`),si.extra&&ul.push(`${ni}_extra`),ns["aria-describedby"]=ul.join(" ")}$u.length>0&&(ns["aria-invalid"]="true"),Ki&&(ns["aria-required"]="true"),(0,_t.Yr)(ks)&&(ns.ref=Pc(Qr,ks)),new Set([].concat((0,y.Z)(yr(jn)),(0,y.Z)(yr(Cs)))).forEach(ul=>{ns[ul]=function(){for(var Hl,Ml,ja,Pu,Xs,Ya=arguments.length,qa=new Array(Ya),Ul=0;Ul{var{prefixCls:co,children:dn}=si,An=Es(si,["prefixCls","children"]);const{getPrefixCls:Nn}=k.useContext(Pt.E_),tt=Nn("form",co),ht=k.useMemo(()=>({prefixCls:tt,status:"error"}),[tt]);return k.createElement(xe.aV,Object.assign({},An),(vt,Fe,lt)=>k.createElement(w.Rk.Provider,{value:ht},dn(vt.map(Et=>Object.assign(Object.assign({},Et),{fieldKey:Et.key})),Fe,{errors:lt.errors,warnings:lt.warnings})))};function tl(){const{form:si}=(0,k.useContext)(w.q3);return si}const xl=ln;xl.Item=jo,xl.List=Za,xl.ErrorList=je,xl.useForm=_o,xl.useFormInstance=tl,xl.useWatch=xe.qo,xl.Provider=w.RV,xl.create=()=>{};var Qa=xl},36116:function(nt,V,m){"use strict";var y=m(77617);V.Z=(0,y.createContext)(void 0)},65018:function(nt,V,m){"use strict";var y=m(77617),I=m(62305),b=m(73962),z=m(67986);function k(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const w=(0,y.useRef)({}),A=(0,b.Z)(),C=(0,z.ZP)();return(0,I.Z)(()=>{const f=C.subscribe(S=>{w.current=S,N&&A()});return()=>C.unsubscribe(f)},[]),w.current}V.Z=k},41654:function(nt,V,m){"use strict";m.d(V,{Z:function(){return ys}});var y=m(42884),I=m(26508),b=m(77617),z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},k=z,N=m(91851),w=function(Hr,Jr){return b.createElement(N.Z,(0,I.Z)({},Hr,{ref:Jr,icon:k}))},A=b.forwardRef(w),C=m(12124),f=m.n(C),S=m(80268),P=m(91002),W=m(39718),ne=m(52528),re=m(74809),ce=m(57338);function pe(){return typeof BigInt=="function"}function he(xn){return!xn&&xn!==0&&!Number.isNaN(xn)||!String(xn).trim()}function fe(xn){var Hr=xn.trim(),Jr=Hr.startsWith("-");Jr&&(Hr=Hr.slice(1)),Hr=Hr.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Hr.startsWith(".")&&(Hr="0".concat(Hr));var Yi=Hr||"0",xo=Yi.split("."),na=xo[0]||"0",Un=xo[1]||"0";na==="0"&&Un==="0"&&(Jr=!1);var Xn=Jr?"-":"";return{negative:Jr,negativeStr:Xn,trimStr:Yi,integerStr:na,decimalStr:Un,fullStr:"".concat(Xn).concat(Yi)}}function Be(xn){var Hr=String(xn);return!Number.isNaN(Number(Hr))&&Hr.includes("e")}function Ie(xn){var Hr=String(xn);if(Be(xn)){var Jr=Number(Hr.slice(Hr.indexOf("e-")+2)),Yi=Hr.match(/\.(\d+)/);return Yi!=null&&Yi[1]&&(Jr+=Yi[1].length),Jr}return Hr.includes(".")&&De(Hr)?Hr.length-Hr.indexOf(".")-1:0}function We(xn){var Hr=String(xn);if(Be(xn)){if(xn>Number.MAX_SAFE_INTEGER)return String(pe()?BigInt(xn).toString():Number.MAX_SAFE_INTEGER);if(xn0&&arguments[0]!==void 0?arguments[0]:!0;return Jr?this.isInvalidate()?"":fe("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),xn}(),ye=function(){function xn(Hr){if((0,re.Z)(this,xn),(0,S.Z)(this,"origin",""),(0,S.Z)(this,"number",void 0),(0,S.Z)(this,"empty",void 0),he(Hr)){this.empty=!0;return}this.origin=String(Hr),this.number=Number(Hr)}return(0,ce.Z)(xn,[{key:"negate",value:function(){return new xn(-this.toNumber())}},{key:"add",value:function(Jr){if(this.isInvalidate())return new xn(Jr);var Yi=Number(Jr);if(Number.isNaN(Yi))return this;var xo=this.number+Yi;if(xo>Number.MAX_SAFE_INTEGER)return new xn(Number.MAX_SAFE_INTEGER);if(xoNumber.MAX_SAFE_INTEGER)return new xn(Number.MAX_SAFE_INTEGER);if(xo0&&arguments[0]!==void 0?arguments[0]:!0;return Jr?this.isInvalidate()?"":We(this.number):this.origin}}]),xn}();function we(xn){return pe()?new ve(xn):new ye(xn)}function Ce(xn,Hr,Jr){var Yi=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(xn==="")return"";var xo=fe(xn),na=xo.negativeStr,Un=xo.integerStr,Xn=xo.decimalStr,Mr="".concat(Hr).concat(Xn),li="".concat(na).concat(Un);if(Jr>=0){var wr=Number(Xn[Jr]);if(wr>=5&&!Yi){var qr=we(xn).add("".concat(na,"0.").concat("0".repeat(Jr)).concat(10-wr));return Ce(qr.toString(),Hr,Jr,Yi)}return Jr===0?li:"".concat(li).concat(Hr).concat(Xn.padEnd(Jr,"0").slice(0,Jr))}return Mr===".0"?li:"".concat(li).concat(Mr)}var Ae=we,me=m(5044),je=m(62305),xe=m(9681),Pt=m(46644);function ct(xn,Hr){var Jr=(0,b.useRef)(null);function Yi(){try{var na=xn.selectionStart,Un=xn.selectionEnd,Xn=xn.value,Mr=Xn.substring(0,na),li=Xn.substring(Un);Jr.current={start:na,end:Un,value:Xn,beforeTxt:Mr,afterTxt:li}}catch(wr){}}function xo(){if(xn&&Jr.current&&Hr)try{var na=xn.value,Un=Jr.current,Xn=Un.beforeTxt,Mr=Un.afterTxt,li=Un.start,wr=na.length;if(na.endsWith(Mr))wr=na.length-Jr.current.afterTxt.length;else if(na.startsWith(Xn))wr=Xn.length;else{var qr=Xn[li-1],ii=na.indexOf(qr,li-1);ii!==-1&&(wr=ii+1)}xn.setSelectionRange(wr,wr)}catch(rn){(0,Pt.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(rn.message))}}return[Yi,xo]}var He=m(10103),wt=function(){var Hr=(0,b.useState)(!1),Jr=(0,W.Z)(Hr,2),Yi=Jr[0],xo=Jr[1];return(0,je.Z)(function(){xo((0,He.Z)())},[]),Yi},dt=wt,Bt=m(28637),gt=200,_n=600;function Bn(xn){var Hr=xn.prefixCls,Jr=xn.upNode,Yi=xn.downNode,xo=xn.upDisabled,na=xn.downDisabled,Un=xn.onStep,Xn=b.useRef(),Mr=b.useRef([]),li=b.useRef();li.current=Un;var wr=function(){clearTimeout(Xn.current)},qr=function(pn,br){pn.preventDefault(),wr(),li.current(br);function Gr(){li.current(br),Xn.current=setTimeout(Gr,gt)}Xn.current=setTimeout(Gr,_n)};b.useEffect(function(){return function(){wr(),Mr.current.forEach(function(zt){return Bt.Z.cancel(zt)})}},[]);var ii=dt();if(ii)return null;var rn="".concat(Hr,"-handler"),Qn=f()(rn,"".concat(rn,"-up"),(0,S.Z)({},"".concat(rn,"-up-disabled"),xo)),Vr=f()(rn,"".concat(rn,"-down"),(0,S.Z)({},"".concat(rn,"-down-disabled"),na)),so=function(){return Mr.current.push((0,Bt.Z)(wr))},rs={unselectable:"on",role:"button",onMouseUp:so,onMouseLeave:so};return b.createElement("div",{className:"".concat(rn,"-wrap")},b.createElement("span",(0,I.Z)({},rs,{onMouseDown:function(pn){qr(pn,!0)},"aria-label":"Increase Value","aria-disabled":xo,className:Qn}),Jr||b.createElement("span",{unselectable:"on",className:"".concat(Hr,"-handler-up-inner")})),b.createElement("span",(0,I.Z)({},rs,{onMouseDown:function(pn){qr(pn,!1)},"aria-label":"Decrease Value","aria-disabled":na,className:Vr}),Yi||b.createElement("span",{unselectable:"on",className:"".concat(Hr,"-handler-down-inner")})))}function Er(xn){var Hr=typeof xn=="number"?We(xn):fe(xn).fullStr,Jr=Hr.includes(".");return Jr?fe(Hr.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:xn+"0"}var Yr=m(1892),oi=function(){var xn=(0,b.useRef)(0),Hr=function(){Bt.Z.cancel(xn.current)};return(0,b.useEffect)(function(){return Hr},[]),function(Jr){Hr(),xn.current=(0,Bt.Z)(function(){Jr()})}},to=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],yo=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],yr=function(Hr,Jr){return Hr||Jr.isEmpty()?Jr.toString():Jr.toNumber()},Po=function(Hr){var Jr=Ae(Hr);return Jr.isInvalidate()?null:Jr},as=b.forwardRef(function(xn,Hr){var Jr,Yi=xn.prefixCls,xo=Yi===void 0?"rc-input-number":Yi,na=xn.className,Un=xn.style,Xn=xn.min,Mr=xn.max,li=xn.step,wr=li===void 0?1:li,qr=xn.defaultValue,ii=xn.value,rn=xn.disabled,Qn=xn.readOnly,Vr=xn.upHandler,so=xn.downHandler,rs=xn.keyboard,zt=xn.controls,pn=zt===void 0?!0:zt,br=xn.classNames,Gr=xn.stringMode,ui=xn.parser,xi=xn.formatter,lo=xn.precision,Kr=xn.decimalSeparator,ti=xn.onChange,ji=xn.onInput,Tr=xn.onPressEnter,Qt=xn.onStep,Gn=(0,ne.Z)(xn,to),yi="".concat(xo,"-input"),Ln=b.useRef(null),Si=b.useState(!1),tr=(0,W.Z)(Si,2),vi=tr[0],Ni=tr[1],kr=b.useRef(!1),qn=b.useRef(!1),ds=b.useRef(!1),_a=b.useState(function(){return Ae(ii!=null?ii:qr)}),da=(0,W.Z)(_a,2),zs=da[0],Wa=da[1];function Co(no){ii===void 0&&Wa(no)}var cl=b.useCallback(function(no,Cs){if(!Cs)return lo>=0?lo:Math.max(Ie(no),Ie(wr))},[lo,wr]),Fr=b.useCallback(function(no){var Cs=String(no);if(ui)return ui(Cs);var ea=Cs;return Kr&&(ea=ea.replace(Kr,".")),ea.replace(/[^\w.-]+/g,"")},[ui,Kr]),fs=b.useRef(""),jo=b.useCallback(function(no,Cs){if(xi)return xi(no,{userTyping:Cs,input:String(fs.current)});var ea=typeof no=="number"?We(no):no;if(!Cs){var fa=cl(ea,Cs);if(De(ea)&&(Kr||fa>=0)){var Bl=Kr||".";ea=Ce(ea,Bl,fa)}}return ea},[xi,cl,Kr]),Es=b.useState(function(){var no=qr!=null?qr:ii;return zs.isInvalidate()&&["string","number"].includes((0,P.Z)(no))?Number.isNaN(no)?"":no:jo(zs.toString(),!1)}),xs=(0,W.Z)(Es,2),Za=xs[0],tl=xs[1];fs.current=Za;function xl(no,Cs){tl(jo(no.isInvalidate()?no.toString(!1):no.toString(!Cs),Cs))}var Qa=b.useMemo(function(){return Po(Mr)},[Mr,lo]),si=b.useMemo(function(){return Po(Xn)},[Xn,lo]),co=b.useMemo(function(){return!Qa||!zs||zs.isInvalidate()?!1:Qa.lessEquals(zs)},[Qa,zs]),dn=b.useMemo(function(){return!si||!zs||zs.isInvalidate()?!1:zs.lessEquals(si)},[si,zs]),An=ct(Ln.current,vi),Nn=(0,W.Z)(An,2),tt=Nn[0],ht=Nn[1],vt=function(Cs){return Qa&&!Cs.lessEquals(Qa)?Qa:si&&!si.lessEquals(Cs)?si:null},Fe=function(Cs){return!vt(Cs)},lt=function(Cs,ea){var fa=Cs,Bl=Fe(fa)||fa.isEmpty();if(!fa.isEmpty()&&!ea&&(fa=vt(fa)||fa,Bl=!0),!Qn&&!rn&&Bl){var Ma=fa.toString(),pl=cl(Ma,ea);return pl>=0&&(fa=Ae(Ce(Ma,".",pl)),Fe(fa)||(fa=Ae(Ce(Ma,".",pl,!0)))),fa.equals(zs)||(Co(fa),ti==null||ti(fa.isEmpty()?null:yr(Gr,fa)),ii===void 0&&xl(fa,ea)),fa}return zs},Et=oi(),an=function no(Cs){if(tt(),fs.current=Cs,tl(Cs),!qn.current){var ea=Fr(Cs),fa=Ae(ea);fa.isNaN()||lt(fa,!0)}ji==null||ji(Cs),Et(function(){var Bl=Cs;ui||(Bl=Cs.replace(/。/g,".")),Bl!==Cs&&no(Bl)})},jn=function(){qn.current=!0},Cr=function(){qn.current=!1,an(Ln.current.value)},Ti=function(Cs){an(Cs.target.value)},$i=function(Cs){var ea;if(!(Cs&&co||!Cs&&dn)){kr.current=!1;var fa=Ae(ds.current?Er(wr):wr);Cs||(fa=fa.negate());var Bl=(zs||Ae(0)).add(fa.toString()),Ma=lt(Bl,!1);Qt==null||Qt(yr(Gr,Ma),{offset:ds.current?Er(wr):wr,type:Cs?"up":"down"}),(ea=Ln.current)===null||ea===void 0||ea.focus()}},Vi=function(Cs){var ea=Ae(Fr(Za)),fa=ea;ea.isNaN()?fa=lt(zs,Cs):fa=lt(ea,Cs),ii!==void 0?xl(zs,!1):fa.isNaN()||xl(fa,!1)},us=function(){kr.current=!0},ks=function(Cs){var ea=Cs.key,fa=Cs.shiftKey;kr.current=!0,ds.current=fa,ea==="Enter"&&(qn.current||(kr.current=!1),Vi(!1),Tr==null||Tr(Cs)),rs!==!1&&!qn.current&&["Up","ArrowUp","Down","ArrowDown"].includes(ea)&&($i(ea==="Up"||ea==="ArrowUp"),Cs.preventDefault())},Os=function(){kr.current=!1,ds.current=!1},pa=function(){Vi(!1),Ni(!1),kr.current=!1};return(0,je.o)(function(){zs.isInvalidate()||xl(zs,!1)},[lo]),(0,je.o)(function(){var no=Ae(ii);Wa(no);var Cs=Ae(Fr(Za));(!no.equals(Cs)||!kr.current||xi)&&xl(no,kr.current)},[ii]),(0,je.o)(function(){xi&&ht()},[Za]),b.createElement("div",{className:f()(xo,br==null?void 0:br.input,na,(Jr={},(0,S.Z)(Jr,"".concat(xo,"-focused"),vi),(0,S.Z)(Jr,"".concat(xo,"-disabled"),rn),(0,S.Z)(Jr,"".concat(xo,"-readonly"),Qn),(0,S.Z)(Jr,"".concat(xo,"-not-a-number"),zs.isNaN()),(0,S.Z)(Jr,"".concat(xo,"-out-of-range"),!zs.isInvalidate()&&!Fe(zs)),Jr)),style:Un,onFocus:function(){Ni(!0)},onBlur:pa,onKeyDown:ks,onKeyUp:Os,onCompositionStart:jn,onCompositionEnd:Cr,onBeforeInput:us},pn&&b.createElement(Bn,{prefixCls:xo,upNode:Vr,downNode:so,upDisabled:co,downDisabled:dn,onStep:$i}),b.createElement("div",{className:"".concat(yi,"-wrap")},b.createElement("input",(0,I.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Xn,"aria-valuemax":Mr,"aria-valuenow":zs.isInvalidate()?null:zs.toString(),step:wr},Gn,{ref:(0,xe.sQ)(Ln,Hr),className:yi,value:Za,onChange:Ti,disabled:rn,readOnly:Qn}))))}),ge=b.forwardRef(function(xn,Hr){var Jr=xn.disabled,Yi=xn.style,xo=xn.prefixCls,na=xn.value,Un=xn.prefix,Xn=xn.suffix,Mr=xn.addonBefore,li=xn.addonAfter,wr=xn.classes,qr=xn.className,ii=xn.classNames,rn=(0,ne.Z)(xn,yo),Qn=b.useRef(null),Vr=function(rs){Qn.current&&(0,Yr.nH)(Qn.current,rs)};return b.createElement(me.Q,{inputElement:b.createElement(as,(0,I.Z)({prefixCls:xo,disabled:Jr,classNames:ii,ref:(0,xe.sQ)(Qn,Hr)},rn)),className:qr,triggerFocus:Vr,prefixCls:xo,value:na,disabled:Jr,style:Yi,prefix:Un,suffix:Xn,addonAfter:li,addonBefore:Mr,classes:wr,classNames:ii,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});ge.displayName="InputNumber";var _o=ge,ci=_o,Bi=m(5997),Ci=m(67392),io=m(75811),ln=m(81689),Ve=m(21843),_t=m(86818),xt=m(58370),Wt=m(89746),on=m(92068),Ot=m(73973),Tt=m(24577),bt=m(41788);const Ht=(xn,Hr)=>{let{componentCls:Jr,borderRadiusSM:Yi,borderRadiusLG:xo}=xn;const na=Hr==="lg"?xo:Yi;return{[`&-${Hr}`]:{[`${Jr}-handler-wrap`]:{borderStartEndRadius:na,borderEndEndRadius:na},[`${Jr}-handler-up`]:{borderStartEndRadius:na},[`${Jr}-handler-down`]:{borderEndEndRadius:na}}}},Wn=xn=>{const{componentCls:Hr,lineWidth:Jr,lineType:Yi,colorBorder:xo,borderRadius:na,fontSizeLG:Un,controlHeightLG:Xn,controlHeightSM:Mr,colorError:li,paddingInlineSM:wr,colorTextDescription:qr,motionDurationMid:ii,handleHoverColor:rn,paddingInline:Qn,paddingBlock:Vr,handleBg:so,handleActiveBg:rs,colorTextDisabled:zt,borderRadiusSM:pn,borderRadiusLG:br,controlWidth:Gr,handleVisible:ui,handleBorderColor:xi}=xn;return[{[Hr]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,on.Wf)(xn)),(0,Wt.ik)(xn)),(0,Wt.bi)(xn,Hr)),{display:"inline-block",width:Gr,margin:0,padding:0,border:`${Jr}px ${Yi} ${xo}`,borderRadius:na,"&-rtl":{direction:"rtl",[`${Hr}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Un,borderRadius:br,[`input${Hr}-input`]:{height:Xn-2*Jr}},"&-sm":{padding:0,borderRadius:pn,[`input${Hr}-input`]:{height:Mr-2*Jr,padding:`0 ${wr}px`}},"&-out-of-range":{[`${Hr}-input-wrap`]:{input:{color:li}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,on.Wf)(xn)),(0,Wt.s7)(xn)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Hr}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Hr}-group-addon`]:{borderRadius:br,fontSize:xn.fontSizeLG}},"&-sm":{[`${Hr}-group-addon`]:{borderRadius:pn}},[`${Hr}-wrapper-disabled > ${Hr}-group-addon`]:Object.assign({},(0,Wt.Xy)(xn))}}),[`&-disabled ${Hr}-input`]:{cursor:"not-allowed"},[Hr]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,on.Wf)(xn)),{width:"100%",padding:`${Vr}px ${Qn}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:na,outline:0,transition:`all ${ii} linear`,appearance:"textfield",fontSize:"inherit"}),(0,Wt.nz)(xn.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[Hr]:Object.assign(Object.assign(Object.assign({[`&:hover ${Hr}-handler-wrap, &-focused ${Hr}-handler-wrap`]:{opacity:1},[`${Hr}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:xn.handleWidth,height:"100%",background:so,borderStartStartRadius:0,borderStartEndRadius:na,borderEndEndRadius:na,borderEndStartRadius:0,opacity:ui===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${ii} linear ${ii}`,[`${Hr}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` ${Hr}-handler-up-inner, ${Hr}-handler-down-inner - `]:{marginInlineEnd:0,fontSize:xn.handleFontSize}}},[`${Hr}-handler`]:{height:"50%",overflow:"hidden",color:qr,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${Jr}px ${Yi} ${Ci}`,transition:`all ${ii} linear`,"&:active":{background:rs},"&:hover":{height:"60%",[` + `]:{marginInlineEnd:0,fontSize:xn.handleFontSize}}},[`${Hr}-handler`]:{height:"50%",overflow:"hidden",color:qr,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${Jr}px ${Yi} ${xi}`,transition:`all ${ii} linear`,"&:active":{background:rs},"&:hover":{height:"60%",[` ${Hr}-handler-up-inner, ${Hr}-handler-down-inner - `]:{color:rn}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,on.Ro)()),{color:qr,transition:`all ${ii} linear`,userSelect:"none"})},[`${Hr}-handler-up`]:{borderStartEndRadius:na},[`${Hr}-handler-down`]:{borderBlockStart:`${Jr}px ${Yi} ${Ci}`,borderEndEndRadius:na}},Ht(xn,"lg")),Ht(xn,"sm")),{"&-disabled, &-readonly":{[`${Hr}-handler-wrap`]:{display:"none"},[`${Hr}-input`]:{color:"inherit"}},[` + `]:{color:rn}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,on.Ro)()),{color:qr,transition:`all ${ii} linear`,userSelect:"none"})},[`${Hr}-handler-up`]:{borderStartEndRadius:na},[`${Hr}-handler-down`]:{borderBlockStart:`${Jr}px ${Yi} ${xi}`,borderEndEndRadius:na}},Ht(xn,"lg")),Ht(xn,"sm")),{"&-disabled, &-readonly":{[`${Hr}-handler-wrap`]:{display:"none"},[`${Hr}-input`]:{color:"inherit"}},[` ${Hr}-handler-up-disabled, ${Hr}-handler-down-disabled `]:{cursor:"not-allowed"},[` ${Hr}-handler-up-disabled:hover &-handler-up-inner, ${Hr}-handler-down-disabled:hover &-handler-down-inner - `]:{color:zt}})},{[`${Hr}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${Hr}-handler-down`]:{borderBlockStartWidth:0}}}]},tn=xn=>{const{componentCls:Hr,paddingBlock:Jr,paddingInline:Yi,inputAffixPadding:xo,controlWidth:na,borderRadiusLG:Vn,borderRadiusSM:Xn}=xn;return{[`${Hr}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,jt.ik)(xn)),(0,jt.bi)(xn,`${Hr}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:na,padding:0,paddingInlineStart:Yi,"&-lg":{borderRadius:Vn},"&-sm":{borderRadius:Xn},[`&:not(${Hr}-affix-wrapper-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Hr}-disabled`]:{background:"transparent"},[`> div${Hr}`]:{width:"100%",border:"none",outline:"none",[`&${Hr}-focused`]:{boxShadow:"none !important"}},[`input${Hr}-input`]:{padding:`${Jr}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Hr}-handler-wrap`]:{zIndex:2},[Hr]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:xo},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:Yi,marginInlineStart:xo}}})}};var hr=(0,Tt.Z)("InputNumber",xn=>{const Hr=(0,xt.TS)(xn,(0,jt.e5)(xn));return[Zn(Hr),tn(Hr),(0,Ot.c)(Hr)]},xn=>Object.assign(Object.assign({},(0,jt.TM)(xn)),{controlWidth:90,handleWidth:xn.controlHeightSM-xn.lineWidth*2,handleFontSize:xn.fontSize/2,handleVisible:"auto",handleActiveBg:xn.colorFillAlter,handleBg:xn.colorBgContainer,handleHoverColor:xn.colorPrimary,handleBorderColor:xn.colorBorder})),Zi=function(xn,Hr){var Jr={};for(var Yi in xn)Object.prototype.hasOwnProperty.call(xn,Yi)&&Hr.indexOf(Yi)<0&&(Jr[Yi]=xn[Yi]);if(xn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xo=0,Yi=Object.getOwnPropertySymbols(xn);xo{const{getPrefixCls:Jr,direction:Yi}=b.useContext(wi.E_),xo=b.useRef(null);b.useImperativeHandle(Hr,()=>xo.current);const{className:na,rootClassName:Vn,size:Xn,disabled:Mr,prefixCls:li,addonBefore:Cr,addonAfter:qr,prefix:ii,bordered:rn=!0,readOnly:Jn,status:Vr,controls:so}=xn,rs=Zi(xn,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),zt=Jr("input-number",li),[pn,_r]=hr(zt),{compactSize:Gr,compactItemClassnames:ui}=(0,Ct.ri)(zt,Yi);let Ci=b.createElement(I,{className:`${zt}-handler-up-inner`}),lo=b.createElement(y.Z,{className:`${zt}-handler-down-inner`});const Kr=typeof so=="boolean"?so:void 0;typeof so=="object"&&(Ci=typeof so.upIcon=="undefined"?Ci:b.createElement("span",{className:`${zt}-handler-up-inner`},so.upIcon),lo=typeof so.downIcon=="undefined"?lo:b.createElement("span",{className:`${zt}-handler-down-inner`},so.downIcon));const{hasFeedback:ti,status:Wi,isFormItemInput:Tr,feedbackIcon:Qt}=b.useContext(_t.aM),Gn=(0,Bi.F)(Wi,Vr),yi=(0,Ve.Z)(kr=>{var Qn;return(Qn=Xn!=null?Xn:Gr)!==null&&Qn!==void 0?Qn:kr}),Ln=b.useContext(ln.Z),Si=Mr!=null?Mr:Ln,tr=f()({[`${zt}-lg`]:yi==="large",[`${zt}-sm`]:yi==="small",[`${zt}-rtl`]:Yi==="rtl",[`${zt}-borderless`]:!rn,[`${zt}-in-form-item`]:Tr},(0,Bi.Z)(zt,Gn),_r),vi=`${zt}-group`,Ni=b.createElement(ci,Object.assign({ref:xo,disabled:Si,className:f()(na,Vn,ui),upHandler:Ci,downHandler:lo,prefixCls:zt,readOnly:Jn,controls:Kr,prefix:ii,suffix:ti&&Qt,addonAfter:qr&&b.createElement(Ct.BR,null,b.createElement(_t.Ux,{override:!0,status:!0},qr)),addonBefore:Cr&&b.createElement(Ct.BR,null,b.createElement(_t.Ux,{override:!0,status:!0},Cr)),classNames:{input:tr},classes:{affixWrapper:f()((0,Bi.Z)(`${zt}-affix-wrapper`,Gn,ti),{[`${zt}-affix-wrapper-sm`]:yi==="small",[`${zt}-affix-wrapper-lg`]:yi==="large",[`${zt}-affix-wrapper-rtl`]:Yi==="rtl",[`${zt}-affix-wrapper-borderless`]:!rn},_r),wrapper:f()({[`${vi}-rtl`]:Yi==="rtl",[`${zt}-wrapper-disabled`]:Si},_r),group:f()({[`${zt}-group-wrapper-sm`]:yi==="small",[`${zt}-group-wrapper-lg`]:yi==="large",[`${zt}-group-wrapper-rtl`]:Yi==="rtl"},(0,Bi.Z)(`${zt}-group-wrapper`,Gn,ti),_r)}},rs));return pn(Ni)}),Pi=Ri,$o=xn=>b.createElement(io.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},b.createElement(Ri,Object.assign({},xn)));Pi._InternalPanelDoNotUseOrYouWillBeFired=$o;var ys=Pi},82586:function(nt,V,m){"use strict";m.d(V,{Z:function(){return fe},n:function(){return de}});var y=m(67294),A=m(41322),b=m(94184),z=m.n(b),k=m(67656),N=m(42550),w=m(9708),I=m(53124),C=m(98866),f=m(98675),S=m(65223),P=m(4173),j=m(72922),re=m(47673);function J(ke){return!!(ke.prefix||ke.suffix||ke.allowClear)}var ie=function(ke,we){var Ne={};for(var Ee in ke)Object.prototype.hasOwnProperty.call(ke,Ee)&&we.indexOf(Ee)<0&&(Ne[Ee]=ke[Ee]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,Ee=Object.getOwnPropertySymbols(ke);ge{var Ne;const{prefixCls:Ee,bordered:ge=!0,status:ye,size:xe,disabled:be,onBlur:Ie,onFocus:me,suffix:We,allowClear:Ce,addonAfter:Pt,addonBefore:ct,className:Ue,style:bt,styles:ht,rootClassName:Bt,onChange:mt,classNames:_n}=ke,Bn=ie(ke,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:Er,direction:Yr,input:oi}=y.useContext(I.E_),to=Er("input",Ee),yo=(0,y.useRef)(null),[vr,Po]=(0,re.ZP)(to),{compactSize:ss,compactItemClassnames:ve}=(0,P.ri)(to,Yr),_o=(0,f.Z)(Zn=>{var tn;return(tn=xe!=null?xe:ss)!==null&&tn!==void 0?tn:Zn}),ci=y.useContext(C.Z),Bi=be!=null?be:ci,{status:wi,hasFeedback:io,feedbackIcon:ln}=(0,y.useContext)(S.aM),Ve=(0,w.F)(wi,ye),_t=J(ke)||!!io,Ct=(0,y.useRef)(_t),jt=(0,j.Z)(yo,!0),on=Zn=>{jt(),Ie==null||Ie(Zn)},Ot=Zn=>{jt(),me==null||me(Zn)},Tt=Zn=>{jt(),mt==null||mt(Zn)},xt=(io||We)&&y.createElement(y.Fragment,null,We,io&&ln);let Ht;return typeof Ce=="object"&&(Ce!=null&&Ce.clearIcon)?Ht=Ce:Ce&&(Ht={clearIcon:y.createElement(A.Z,null)}),vr(y.createElement(k.Z,Object.assign({ref:(0,N.sQ)(we,yo),prefixCls:to,autoComplete:oi==null?void 0:oi.autoComplete},Bn,{disabled:Bi,onBlur:on,onFocus:Ot,style:Object.assign(Object.assign({},oi==null?void 0:oi.style),bt),styles:Object.assign(Object.assign({},oi==null?void 0:oi.styles),ht),suffix:xt,allowClear:Ht,className:z()(Ue,Bt,ve,oi==null?void 0:oi.className),onChange:Tt,addonAfter:Pt&&y.createElement(P.BR,null,y.createElement(S.Ux,{override:!0,status:!0},Pt)),addonBefore:ct&&y.createElement(P.BR,null,y.createElement(S.Ux,{override:!0,status:!0},ct)),classNames:Object.assign(Object.assign(Object.assign({},_n),oi==null?void 0:oi.classNames),{input:z()({[`${to}-sm`]:_o==="small",[`${to}-lg`]:_o==="large",[`${to}-rtl`]:Yr==="rtl",[`${to}-borderless`]:!ge},!_t&&(0,w.Z)(to,Ve),_n==null?void 0:_n.input,(Ne=oi==null?void 0:oi.classNames)===null||Ne===void 0?void 0:Ne.input,Po)}),classes:{affixWrapper:z()({[`${to}-affix-wrapper-sm`]:_o==="small",[`${to}-affix-wrapper-lg`]:_o==="large",[`${to}-affix-wrapper-rtl`]:Yr==="rtl",[`${to}-affix-wrapper-borderless`]:!ge},(0,w.Z)(`${to}-affix-wrapper`,Ve,io),Po),wrapper:z()({[`${to}-group-rtl`]:Yr==="rtl"},Po),group:z()({[`${to}-group-wrapper-sm`]:_o==="small",[`${to}-group-wrapper-lg`]:_o==="large",[`${to}-group-wrapper-rtl`]:Yr==="rtl",[`${to}-group-wrapper-disabled`]:Bi},(0,w.Z)(`${to}-group-wrapper`,Ve,io),Po)}})))})},22913:function(nt,V,m){"use strict";m.d(V,{Z:function(){return yo}});var y=m(41322),A=m(94184),b=m.n(A),z=m(87462),k=m(1413),N=m(4942),w=m(71002),I=m(97685),C=m(91),f=m(74902),S=m(67656),P=m(87887),j=m(21770),re=m(67294),J=m(48555),ie=m(8410),de=m(75164),he=` + `]:{color:zt}})},{[`${Hr}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${Hr}-handler-down`]:{borderBlockStartWidth:0}}}]},tn=xn=>{const{componentCls:Hr,paddingBlock:Jr,paddingInline:Yi,inputAffixPadding:xo,controlWidth:na,borderRadiusLG:Un,borderRadiusSM:Xn}=xn;return{[`${Hr}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,Wt.ik)(xn)),(0,Wt.bi)(xn,`${Hr}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:na,padding:0,paddingInlineStart:Yi,"&-lg":{borderRadius:Un},"&-sm":{borderRadius:Xn},[`&:not(${Hr}-affix-wrapper-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Hr}-disabled`]:{background:"transparent"},[`> div${Hr}`]:{width:"100%",border:"none",outline:"none",[`&${Hr}-focused`]:{boxShadow:"none !important"}},[`input${Hr}-input`]:{padding:`${Jr}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Hr}-handler-wrap`]:{zIndex:2},[Hr]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:xo},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:Yi,marginInlineStart:xo}}})}};var hr=(0,Tt.Z)("InputNumber",xn=>{const Hr=(0,bt.TS)(xn,(0,Wt.e5)(xn));return[Wn(Hr),tn(Hr),(0,Ot.c)(Hr)]},xn=>Object.assign(Object.assign({},(0,Wt.TM)(xn)),{controlWidth:90,handleWidth:xn.controlHeightSM-xn.lineWidth*2,handleFontSize:xn.fontSize/2,handleVisible:"auto",handleActiveBg:xn.colorFillAlter,handleBg:xn.colorBgContainer,handleHoverColor:xn.colorPrimary,handleBorderColor:xn.colorBorder})),Zi=function(xn,Hr){var Jr={};for(var Yi in xn)Object.prototype.hasOwnProperty.call(xn,Yi)&&Hr.indexOf(Yi)<0&&(Jr[Yi]=xn[Yi]);if(xn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xo=0,Yi=Object.getOwnPropertySymbols(xn);xo{const{getPrefixCls:Jr,direction:Yi}=b.useContext(Ci.E_),xo=b.useRef(null);b.useImperativeHandle(Hr,()=>xo.current);const{className:na,rootClassName:Un,size:Xn,disabled:Mr,prefixCls:li,addonBefore:wr,addonAfter:qr,prefix:ii,bordered:rn=!0,readOnly:Qn,status:Vr,controls:so}=xn,rs=Zi(xn,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),zt=Jr("input-number",li),[pn,br]=hr(zt),{compactSize:Gr,compactItemClassnames:ui}=(0,xt.ri)(zt,Yi);let xi=b.createElement(A,{className:`${zt}-handler-up-inner`}),lo=b.createElement(y.Z,{className:`${zt}-handler-down-inner`});const Kr=typeof so=="boolean"?so:void 0;typeof so=="object"&&(xi=typeof so.upIcon=="undefined"?xi:b.createElement("span",{className:`${zt}-handler-up-inner`},so.upIcon),lo=typeof so.downIcon=="undefined"?lo:b.createElement("span",{className:`${zt}-handler-down-inner`},so.downIcon));const{hasFeedback:ti,status:ji,isFormItemInput:Tr,feedbackIcon:Qt}=b.useContext(_t.aM),Gn=(0,Bi.F)(ji,Vr),yi=(0,Ve.Z)(kr=>{var qn;return(qn=Xn!=null?Xn:Gr)!==null&&qn!==void 0?qn:kr}),Ln=b.useContext(ln.Z),Si=Mr!=null?Mr:Ln,tr=f()({[`${zt}-lg`]:yi==="large",[`${zt}-sm`]:yi==="small",[`${zt}-rtl`]:Yi==="rtl",[`${zt}-borderless`]:!rn,[`${zt}-in-form-item`]:Tr},(0,Bi.Z)(zt,Gn),br),vi=`${zt}-group`,Ni=b.createElement(ci,Object.assign({ref:xo,disabled:Si,className:f()(na,Un,ui),upHandler:xi,downHandler:lo,prefixCls:zt,readOnly:Qn,controls:Kr,prefix:ii,suffix:ti&&Qt,addonAfter:qr&&b.createElement(xt.BR,null,b.createElement(_t.Ux,{override:!0,status:!0},qr)),addonBefore:wr&&b.createElement(xt.BR,null,b.createElement(_t.Ux,{override:!0,status:!0},wr)),classNames:{input:tr},classes:{affixWrapper:f()((0,Bi.Z)(`${zt}-affix-wrapper`,Gn,ti),{[`${zt}-affix-wrapper-sm`]:yi==="small",[`${zt}-affix-wrapper-lg`]:yi==="large",[`${zt}-affix-wrapper-rtl`]:Yi==="rtl",[`${zt}-affix-wrapper-borderless`]:!rn},br),wrapper:f()({[`${vi}-rtl`]:Yi==="rtl",[`${zt}-wrapper-disabled`]:Si},br),group:f()({[`${zt}-group-wrapper-sm`]:yi==="small",[`${zt}-group-wrapper-lg`]:yi==="large",[`${zt}-group-wrapper-rtl`]:Yi==="rtl"},(0,Bi.Z)(`${zt}-group-wrapper`,Gn,ti),br)}},rs));return pn(Ni)}),Pi=Ri,Wo=xn=>b.createElement(io.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},b.createElement(Ri,Object.assign({},xn)));Pi._InternalPanelDoNotUseOrYouWillBeFired=Wo;var ys=Pi},44159:function(nt,V,m){"use strict";m.d(V,{Z:function(){return fe},n:function(){return pe}});var y=m(77617),I=m(48796),b=m(12124),z=m.n(b),k=m(5044),N=m(9681),w=m(5997),A=m(67392),C=m(81689),f=m(21843),S=m(86818),P=m(58370),W=m(41537),ne=m(89746);function re(Be){return!!(Be.prefix||Be.suffix||Be.allowClear)}var ce=function(Be,Ie){var We={};for(var De in Be)Object.prototype.hasOwnProperty.call(Be,De)&&Ie.indexOf(De)<0&&(We[De]=Be[De]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,De=Object.getOwnPropertySymbols(Be);ve{var We;const{prefixCls:De,bordered:ve=!0,status:ye,size:we,disabled:Ce,onBlur:Ae,onFocus:me,suffix:je,allowClear:xe,addonAfter:Pt,addonBefore:ct,className:He,style:wt,styles:dt,rootClassName:Bt,onChange:gt,classNames:_n}=Be,Bn=ce(Be,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:Er,direction:Yr,input:oi}=y.useContext(A.E_),to=Er("input",De),yo=(0,y.useRef)(null),[yr,Po]=(0,ne.ZP)(to),{compactSize:as,compactItemClassnames:ge}=(0,P.ri)(to,Yr),_o=(0,f.Z)(Wn=>{var tn;return(tn=we!=null?we:as)!==null&&tn!==void 0?tn:Wn}),ci=y.useContext(C.Z),Bi=Ce!=null?Ce:ci,{status:Ci,hasFeedback:io,feedbackIcon:ln}=(0,y.useContext)(S.aM),Ve=(0,w.F)(Ci,ye),_t=re(Be)||!!io,xt=(0,y.useRef)(_t),Wt=(0,W.Z)(yo,!0),on=Wn=>{Wt(),Ae==null||Ae(Wn)},Ot=Wn=>{Wt(),me==null||me(Wn)},Tt=Wn=>{Wt(),gt==null||gt(Wn)},bt=(io||je)&&y.createElement(y.Fragment,null,je,io&&ln);let Ht;return typeof xe=="object"&&(xe!=null&&xe.clearIcon)?Ht=xe:xe&&(Ht={clearIcon:y.createElement(I.Z,null)}),yr(y.createElement(k.Z,Object.assign({ref:(0,N.sQ)(Ie,yo),prefixCls:to,autoComplete:oi==null?void 0:oi.autoComplete},Bn,{disabled:Bi,onBlur:on,onFocus:Ot,style:Object.assign(Object.assign({},oi==null?void 0:oi.style),wt),styles:Object.assign(Object.assign({},oi==null?void 0:oi.styles),dt),suffix:bt,allowClear:Ht,className:z()(He,Bt,ge,oi==null?void 0:oi.className),onChange:Tt,addonAfter:Pt&&y.createElement(P.BR,null,y.createElement(S.Ux,{override:!0,status:!0},Pt)),addonBefore:ct&&y.createElement(P.BR,null,y.createElement(S.Ux,{override:!0,status:!0},ct)),classNames:Object.assign(Object.assign(Object.assign({},_n),oi==null?void 0:oi.classNames),{input:z()({[`${to}-sm`]:_o==="small",[`${to}-lg`]:_o==="large",[`${to}-rtl`]:Yr==="rtl",[`${to}-borderless`]:!ve},!_t&&(0,w.Z)(to,Ve),_n==null?void 0:_n.input,(We=oi==null?void 0:oi.classNames)===null||We===void 0?void 0:We.input,Po)}),classes:{affixWrapper:z()({[`${to}-affix-wrapper-sm`]:_o==="small",[`${to}-affix-wrapper-lg`]:_o==="large",[`${to}-affix-wrapper-rtl`]:Yr==="rtl",[`${to}-affix-wrapper-borderless`]:!ve},(0,w.Z)(`${to}-affix-wrapper`,Ve,io),Po),wrapper:z()({[`${to}-group-rtl`]:Yr==="rtl"},Po),group:z()({[`${to}-group-wrapper-sm`]:_o==="small",[`${to}-group-wrapper-lg`]:_o==="large",[`${to}-group-wrapper-rtl`]:Yr==="rtl",[`${to}-group-wrapper-disabled`]:Bi},(0,w.Z)(`${to}-group-wrapper`,Ve,io),Po)}})))})},25279:function(nt,V,m){"use strict";m.d(V,{Z:function(){return yo}});var y=m(48796),I=m(12124),b=m.n(I),z=m(26508),k=m(74710),N=m(80268),w=m(91002),A=m(39718),C=m(52528),f=m(42371),S=m(5044),P=m(1892),W=m(41760),ne=m(77617),re=m(28647),ce=m(62305),pe=m(28637),he=` min-height:0 !important; max-height:none !important; height:0 !important; @@ -7767,33 +7820,33 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter top:0 !important; right:0 !important; pointer-events: none !important; -`,fe=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],ke={},we;function Ne(vr){var Po=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ss=vr.getAttribute("id")||vr.getAttribute("data-reactid")||vr.getAttribute("name");if(Po&&ke[ss])return ke[ss];var ve=window.getComputedStyle(vr),_o=ve.getPropertyValue("box-sizing")||ve.getPropertyValue("-moz-box-sizing")||ve.getPropertyValue("-webkit-box-sizing"),ci=parseFloat(ve.getPropertyValue("padding-bottom"))+parseFloat(ve.getPropertyValue("padding-top")),Bi=parseFloat(ve.getPropertyValue("border-bottom-width"))+parseFloat(ve.getPropertyValue("border-top-width")),wi=fe.map(function(ln){return"".concat(ln,":").concat(ve.getPropertyValue(ln))}).join(";"),io={sizingStyle:wi,paddingSize:ci,borderSize:Bi,boxSizing:_o};return Po&&ss&&(ke[ss]=io),io}function Ee(vr){var Po=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ss=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ve=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;we||(we=document.createElement("textarea"),we.setAttribute("tab-index","-1"),we.setAttribute("aria-hidden","true"),document.body.appendChild(we)),vr.getAttribute("wrap")?we.setAttribute("wrap",vr.getAttribute("wrap")):we.removeAttribute("wrap");var _o=Ne(vr,Po),ci=_o.paddingSize,Bi=_o.borderSize,wi=_o.boxSizing,io=_o.sizingStyle;we.setAttribute("style","".concat(io,";").concat(he)),we.value=vr.value||vr.placeholder||"";var ln=void 0,Ve=void 0,_t,Ct=we.scrollHeight;if(wi==="border-box"?Ct+=Bi:wi==="content-box"&&(Ct-=ci),ss!==null||ve!==null){we.value=" ";var jt=we.scrollHeight-ci;ss!==null&&(ln=jt*ss,wi==="border-box"&&(ln=ln+ci+Bi),Ct=Math.max(ln,Ct)),ve!==null&&(Ve=jt*ve,wi==="border-box"&&(Ve=Ve+ci+Bi),_t=Ct>Ve?"":"hidden",Ct=Math.min(Ve,Ct))}var on={height:Ct,overflowY:_t,resize:"none"};return ln&&(on.minHeight=ln),Ve&&(on.maxHeight=Ve),on}var ge=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],ye=0,xe=1,be=2,Ie=re.forwardRef(function(vr,Po){var ss=vr,ve=ss.prefixCls,_o=ss.onPressEnter,ci=ss.defaultValue,Bi=ss.value,wi=ss.autoSize,io=ss.onResize,ln=ss.className,Ve=ss.style,_t=ss.disabled,Ct=ss.onChange,jt=ss.onInternalAutoSize,on=(0,C.Z)(ss,ge),Ot=(0,j.Z)(ci,{value:Bi,postState:function(Vr){return Vr!=null?Vr:""}}),Tt=(0,I.Z)(Ot,2),xt=Tt[0],Ht=Tt[1],Zn=function(Vr){Ht(Vr.target.value),Ct==null||Ct(Vr)},tn=re.useRef();re.useImperativeHandle(Po,function(){return{textArea:tn.current}});var hr=re.useMemo(function(){return wi&&(0,w.Z)(wi)==="object"?[wi.minRows,wi.maxRows]:[]},[wi]),Zi=(0,I.Z)(hr,2),Ri=Zi[0],Pi=Zi[1],$o=!!wi,ys=function(){try{if(document.activeElement===tn.current){var Vr=tn.current,so=Vr.selectionStart,rs=Vr.selectionEnd,zt=Vr.scrollTop;tn.current.setSelectionRange(so,rs),tn.current.scrollTop=zt}}catch(pn){}},xn=re.useState(be),Hr=(0,I.Z)(xn,2),Jr=Hr[0],Yi=Hr[1],xo=re.useState(),na=(0,I.Z)(xo,2),Vn=na[0],Xn=na[1],Mr=function(){Yi(ye)};(0,ie.Z)(function(){$o&&Mr()},[Bi,Ri,Pi,$o]),(0,ie.Z)(function(){if(Jr===ye)Yi(xe);else if(Jr===xe){var Jn=Ee(tn.current,!1,Ri,Pi);Yi(be),Xn(Jn)}else ys()},[Jr]);var li=re.useRef(),Cr=function(){de.Z.cancel(li.current)},qr=function(Vr){Jr===be&&(io==null||io(Vr),wi&&(Cr(),li.current=(0,de.Z)(function(){Mr()})))};re.useEffect(function(){return Cr},[]);var ii=$o?Vn:null,rn=(0,k.Z)((0,k.Z)({},Ve),ii);return(Jr===ye||Jr===xe)&&(rn.overflowY="hidden",rn.overflowX="hidden"),re.createElement(J.Z,{onResize:qr,disabled:!(wi||io)},re.createElement("textarea",(0,z.Z)({},on,{ref:tn,style:rn,className:b()(ve,ln,(0,N.Z)({},"".concat(ve,"-disabled"),_t)),disabled:_t,value:xt,onChange:Zn})))}),me=Ie,We=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function Ce(vr,Po){return(0,f.Z)(vr||"").slice(0,Po).join("")}function Pt(vr,Po,ss,ve){var _o=ss;return vr?_o=Ce(ss,ve):(0,f.Z)(Po||"").lengthve&&(_o=Po),_o}var ct=re.forwardRef(function(vr,Po){var ss,ve=vr.defaultValue,_o=vr.value,ci=vr.onFocus,Bi=vr.onBlur,wi=vr.onChange,io=vr.allowClear,ln=vr.maxLength,Ve=vr.onCompositionStart,_t=vr.onCompositionEnd,Ct=vr.suffix,jt=vr.prefixCls,on=jt===void 0?"rc-textarea":jt,Ot=vr.classes,Tt=vr.showCount,xt=vr.className,Ht=vr.style,Zn=vr.disabled,tn=vr.hidden,hr=vr.classNames,Zi=vr.styles,Ri=vr.onResize,Pi=(0,C.Z)(vr,We),$o=(0,j.Z)(ve,{value:_o,defaultValue:ve}),ys=(0,I.Z)($o,2),xn=ys[0],Hr=ys[1],Jr=(0,re.useRef)(null),Yi=re.useState(!1),xo=(0,I.Z)(Yi,2),na=xo[0],Vn=xo[1],Xn=re.useState(!1),Mr=(0,I.Z)(Xn,2),li=Mr[0],Cr=Mr[1],qr=re.useRef(),ii=re.useRef(0),rn=re.useState(null),Jn=(0,I.Z)(rn,2),Vr=Jn[0],so=Jn[1],rs=function(){var tr;(tr=Jr.current)===null||tr===void 0||tr.textArea.focus()};(0,re.useImperativeHandle)(Po,function(){return{resizableTextArea:Jr.current,focus:rs,blur:function(){var tr;(tr=Jr.current)===null||tr===void 0||tr.textArea.blur()}}}),(0,re.useEffect)(function(){Vn(function(Si){return!Zn&&Si})},[Zn]);var zt=Number(ln)>0,pn=function(tr){Cr(!0),qr.current=xn,ii.current=tr.currentTarget.selectionStart,Ve==null||Ve(tr)},_r=function(tr){Cr(!1);var vi=tr.currentTarget.value;if(zt){var Ni,kr=ii.current>=ln+1||ii.current===((Ni=qr.current)===null||Ni===void 0?void 0:Ni.length);vi=Pt(kr,qr.current,vi,ln)}vi!==xn&&(Hr(vi),(0,P.rJ)(tr.currentTarget,tr,wi,vi)),_t==null||_t(tr)},Gr=function(tr){var vi=tr.target.value;if(!li&&zt){var Ni=tr.target.selectionStart>=ln+1||tr.target.selectionStart===vi.length||!tr.target.selectionStart;vi=Pt(Ni,xn,vi,ln)}Hr(vi),(0,P.rJ)(tr.currentTarget,tr,wi,vi)},ui=function(tr){var vi=Pi.onPressEnter,Ni=Pi.onKeyDown;tr.key==="Enter"&&vi&&vi(tr),Ni==null||Ni(tr)},Ci=function(tr){Vn(!0),ci==null||ci(tr)},lo=function(tr){Vn(!1),Bi==null||Bi(tr)},Kr=function(tr){var vi;Hr(""),rs(),(0,P.rJ)((vi=Jr.current)===null||vi===void 0?void 0:vi.textArea,tr,wi)},ti=(0,P.D7)(xn);!li&&zt&&_o==null&&(ti=Ce(ti,ln));var Wi=Ct,Tr;if(Tt){var Qt=(0,f.Z)(ti).length;(0,w.Z)(Tt)==="object"?Tr=Tt.formatter({value:ti,count:Qt,maxLength:ln}):Tr="".concat(Qt).concat(zt?" / ".concat(ln):""),Wi=re.createElement(re.Fragment,null,Wi,re.createElement("span",{className:b()("".concat(on,"-data-count"),hr==null?void 0:hr.count),style:Zi==null?void 0:Zi.count},Tr))}var Gn=function(tr){var vi;Ri==null||Ri(tr),(vi=Jr.current)!==null&&vi!==void 0&&vi.textArea.style.height&&so(!0)},yi=!Pi.autoSize&&!Tt&&!io,Ln=re.createElement(S.Q,{value:ti,allowClear:io,handleReset:Kr,suffix:Wi,prefixCls:on,classes:{affixWrapper:b()(Ot==null?void 0:Ot.affixWrapper,(ss={},(0,N.Z)(ss,"".concat(on,"-show-count"),Tt),(0,N.Z)(ss,"".concat(on,"-textarea-allow-clear"),io),ss))},disabled:Zn,focused:na,className:xt,style:(0,k.Z)((0,k.Z)({},Ht),Vr&&!yi?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Tr=="string"?Tr:void 0}},hidden:tn,inputElement:re.createElement(me,(0,z.Z)({},Pi,{onKeyDown:ui,onChange:Gr,onFocus:Ci,onBlur:lo,onCompositionStart:pn,onCompositionEnd:_r,className:hr==null?void 0:hr.textarea,style:(0,k.Z)((0,k.Z)({},Zi==null?void 0:Zi.textarea),{},{resize:Ht==null?void 0:Ht.resize}),disabled:Zn,prefixCls:on,onResize:Gn,ref:Jr}))});return Ln}),Ue=ct,bt=Ue,ht=m(9708),Bt=m(53124),mt=m(98866),_n=m(98675),Bn=m(65223),Er=m(82586),Yr=m(47673),oi=function(vr,Po){var ss={};for(var ve in vr)Object.prototype.hasOwnProperty.call(vr,ve)&&Po.indexOf(ve)<0&&(ss[ve]=vr[ve]);if(vr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _o=0,ve=Object.getOwnPropertySymbols(vr);_o{const{prefixCls:ss,bordered:ve=!0,size:_o,disabled:ci,status:Bi,allowClear:wi,showCount:io,classNames:ln,rootClassName:Ve,className:_t}=vr,Ct=oi(vr,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:jt,direction:on}=re.useContext(Bt.E_),Ot=(0,_n.Z)(_o),Tt=re.useContext(mt.Z),xt=ci!=null?ci:Tt,{status:Ht,hasFeedback:Zn,feedbackIcon:tn}=re.useContext(Bn.aM),hr=(0,ht.F)(Ht,Bi),Zi=re.useRef(null);re.useImperativeHandle(Po,()=>{var xn;return{resizableTextArea:(xn=Zi.current)===null||xn===void 0?void 0:xn.resizableTextArea,focus:Hr=>{var Jr,Yi;(0,Er.n)((Yi=(Jr=Zi.current)===null||Jr===void 0?void 0:Jr.resizableTextArea)===null||Yi===void 0?void 0:Yi.textArea,Hr)},blur:()=>{var Hr;return(Hr=Zi.current)===null||Hr===void 0?void 0:Hr.blur()}}});const Ri=jt("input",ss);let Pi;typeof wi=="object"&&(wi!=null&&wi.clearIcon)?Pi=wi:wi&&(Pi={clearIcon:re.createElement(y.Z,null)});const[$o,ys]=(0,Yr.ZP)(Ri);return $o(re.createElement(bt,Object.assign({},Ct,{disabled:xt,allowClear:Pi,className:b()(_t,Ve),classes:{affixWrapper:b()(`${Ri}-textarea-affix-wrapper`,{[`${Ri}-affix-wrapper-rtl`]:on==="rtl",[`${Ri}-affix-wrapper-borderless`]:!ve,[`${Ri}-affix-wrapper-sm`]:Ot==="small",[`${Ri}-affix-wrapper-lg`]:Ot==="large",[`${Ri}-textarea-show-count`]:io},(0,ht.Z)(`${Ri}-affix-wrapper`,hr),ys)},classNames:Object.assign(Object.assign({},ln),{textarea:b()({[`${Ri}-borderless`]:!ve,[`${Ri}-sm`]:Ot==="small",[`${Ri}-lg`]:Ot==="large"},(0,ht.Z)(Ri,hr),ys,ln==null?void 0:ln.textarea)}),prefixCls:Ri,suffix:Zn&&re.createElement("span",{className:`${Ri}-textarea-suffix`},tn),showCount:io,ref:Zi})))})},72922:function(nt,V,m){"use strict";m.d(V,{Z:function(){return A}});var y=m(67294);function A(b,z){const k=(0,y.useRef)([]),N=()=>{k.current.push(setTimeout(()=>{var w,I,C,f;!((w=b.current)===null||w===void 0)&&w.input&&((I=b.current)===null||I===void 0?void 0:I.input.getAttribute("type"))==="password"&&(!((C=b.current)===null||C===void 0)&&C.input.hasAttribute("value"))&&((f=b.current)===null||f===void 0||f.input.removeAttribute("value"))}))};return(0,y.useEffect)(()=>(z&&N(),()=>k.current.forEach(w=>{w&&clearTimeout(w)})),[]),N}},75008:function(nt,V,m){"use strict";m.d(V,{Z:function(){return bt}});var y=m(67294),A=m(94184),b=m.n(A),z=m(53124),k=m(65223),N=m(47673),I=ht=>{const{getPrefixCls:Bt,direction:mt}=(0,y.useContext)(z.E_),{prefixCls:_n,className:Bn}=ht,Er=Bt("input-group",_n),Yr=Bt("input"),[oi,to]=(0,N.ZP)(Yr),yo=b()(Er,{[`${Er}-lg`]:ht.size==="large",[`${Er}-sm`]:ht.size==="small",[`${Er}-compact`]:ht.compact,[`${Er}-rtl`]:mt==="rtl"},to,Bn),vr=(0,y.useContext)(k.aM),Po=(0,y.useMemo)(()=>Object.assign(Object.assign({},vr),{isFormItemInput:!1}),[vr]);return oi(y.createElement("span",{className:yo,style:ht.style,onMouseEnter:ht.onMouseEnter,onMouseLeave:ht.onMouseLeave,onFocus:ht.onFocus,onBlur:ht.onBlur},y.createElement(k.aM.Provider,{value:Po},ht.children)))},C=m(82586),f=m(87462),S={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},P=S,j=m(93771),re=function(Bt,mt){return y.createElement(j.Z,(0,f.Z)({},Bt,{ref:mt,icon:P}))},J=y.forwardRef(re),ie=m(7124),de=m(98423),he=m(42550),fe=m(72922),ke=function(ht,Bt){var mt={};for(var _n in ht)Object.prototype.hasOwnProperty.call(ht,_n)&&Bt.indexOf(_n)<0&&(mt[_n]=ht[_n]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bn=0,_n=Object.getOwnPropertySymbols(ht);Bn<_n.length;Bn++)Bt.indexOf(_n[Bn])<0&&Object.prototype.propertyIsEnumerable.call(ht,_n[Bn])&&(mt[_n[Bn]]=ht[_n[Bn]]);return mt};const we=ht=>ht?y.createElement(ie.Z,null):y.createElement(J,null),Ne={click:"onClick",hover:"onMouseOver"};var ge=y.forwardRef((ht,Bt)=>{const{visibilityToggle:mt=!0}=ht,_n=typeof mt=="object"&&mt.visible!==void 0,[Bn,Er]=(0,y.useState)(()=>_n?mt.visible:!1),Yr=(0,y.useRef)(null);y.useEffect(()=>{_n&&Er(mt.visible)},[_n,mt]);const oi=(0,fe.Z)(Yr),to=()=>{const{disabled:_t}=ht;_t||(Bn&&oi(),Er(Ct=>{var jt;const on=!Ct;return typeof mt=="object"&&((jt=mt.onVisibleChange)===null||jt===void 0||jt.call(mt,on)),on}))},yo=_t=>{const{action:Ct="click",iconRender:jt=we}=ht,on=Ne[Ct]||"",Ot=jt(Bn),Tt={[on]:to,className:`${_t}-icon`,key:"passwordIcon",onMouseDown:xt=>{xt.preventDefault()},onMouseUp:xt=>{xt.preventDefault()}};return y.cloneElement(y.isValidElement(Ot)?Ot:y.createElement("span",null,Ot),Tt)},{className:vr,prefixCls:Po,inputPrefixCls:ss,size:ve}=ht,_o=ke(ht,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:ci}=y.useContext(z.E_),Bi=ci("input",ss),wi=ci("input-password",Po),io=mt&&yo(wi),ln=b()(wi,vr,{[`${wi}-${ve}`]:!!ve}),Ve=Object.assign(Object.assign({},(0,de.Z)(_o,["suffix","iconRender","visibilityToggle"])),{type:Bn?"text":"password",className:ln,prefixCls:Bi,suffix:io});return ve&&(Ve.size=ve),y.createElement(C.Z,Object.assign({ref:(0,he.sQ)(Bt,Yr)},Ve))}),ye=m(13805),xe=m(96159),be=m(15867),Ie=m(98675),me=m(4173),We=function(ht,Bt){var mt={};for(var _n in ht)Object.prototype.hasOwnProperty.call(ht,_n)&&Bt.indexOf(_n)<0&&(mt[_n]=ht[_n]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bn=0,_n=Object.getOwnPropertySymbols(ht);Bn<_n.length;Bn++)Bt.indexOf(_n[Bn])<0&&Object.prototype.propertyIsEnumerable.call(ht,_n[Bn])&&(mt[_n[Bn]]=ht[_n[Bn]]);return mt},Pt=y.forwardRef((ht,Bt)=>{const{prefixCls:mt,inputPrefixCls:_n,className:Bn,size:Er,suffix:Yr,enterButton:oi=!1,addonAfter:to,loading:yo,disabled:vr,onSearch:Po,onChange:ss,onCompositionStart:ve,onCompositionEnd:_o}=ht,ci=We(ht,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Bi,direction:wi}=y.useContext(z.E_),io=y.useRef(!1),ln=Bi("input-search",mt),Ve=Bi("input",_n),{compactSize:_t}=(0,me.ri)(ln,wi),Ct=(0,Ie.Z)(ys=>{var xn;return(xn=Er!=null?Er:_t)!==null&&xn!==void 0?xn:ys}),jt=y.useRef(null),on=ys=>{ys&&ys.target&&ys.type==="click"&&Po&&Po(ys.target.value,ys,{source:"clear"}),ss&&ss(ys)},Ot=ys=>{var xn;document.activeElement===((xn=jt.current)===null||xn===void 0?void 0:xn.input)&&ys.preventDefault()},Tt=ys=>{var xn,Hr;Po&&Po((Hr=(xn=jt.current)===null||xn===void 0?void 0:xn.input)===null||Hr===void 0?void 0:Hr.value,ys,{source:"input"})},xt=ys=>{io.current||yo||Tt(ys)},Ht=typeof oi=="boolean"?y.createElement(ye.Z,null):null,Zn=`${ln}-button`;let tn;const hr=oi||{},Zi=hr.type&&hr.type.__ANT_BUTTON===!0;Zi||hr.type==="button"?tn=(0,xe.Tm)(hr,Object.assign({onMouseDown:Ot,onClick:ys=>{var xn,Hr;(Hr=(xn=hr==null?void 0:hr.props)===null||xn===void 0?void 0:xn.onClick)===null||Hr===void 0||Hr.call(xn,ys),Tt(ys)},key:"enterButton"},Zi?{className:Zn,size:Ct}:{})):tn=y.createElement(be.ZP,{className:Zn,type:oi?"primary":void 0,size:Ct,disabled:vr,key:"enterButton",onMouseDown:Ot,onClick:Tt,loading:yo,icon:Ht},oi),to&&(tn=[tn,(0,xe.Tm)(to,{key:"addonAfter"})]);const Ri=b()(ln,{[`${ln}-rtl`]:wi==="rtl",[`${ln}-${Ct}`]:!!Ct,[`${ln}-with-button`]:!!oi},Bn),Pi=ys=>{io.current=!0,ve==null||ve(ys)},$o=ys=>{io.current=!1,_o==null||_o(ys)};return y.createElement(C.Z,Object.assign({ref:(0,he.sQ)(jt,Bt),onPressEnter:xt},ci,{size:Ct,onCompositionStart:Pi,onCompositionEnd:$o,prefixCls:Ve,addonAfter:tn,suffix:Yr,onChange:on,className:Ri,disabled:vr}))}),ct=m(22913);const Ue=C.Z;Ue.Group=I,Ue.Search=Pt,Ue.TextArea=ct.Z,Ue.Password=ge;var bt=Ue},47673:function(nt,V,m){"use strict";m.d(V,{TM:function(){return we},Xy:function(){return I},bi:function(){return S},e5:function(){return ke},ik:function(){return P},nz:function(){return k},s7:function(){return j},x0:function(){return f}});var y=m(14747),A=m(80110),b=m(45503),z=m(67968);const k=Ne=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:Ne,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),N=Ne=>({borderColor:Ne.hoverBorderColor,backgroundColor:Ne.hoverBg}),w=Ne=>({borderColor:Ne.activeBorderColor,boxShadow:Ne.activeShadow,outline:0,backgroundColor:Ne.activeBg}),I=Ne=>({color:Ne.colorTextDisabled,backgroundColor:Ne.colorBgContainerDisabled,borderColor:Ne.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},N((0,b.TS)(Ne,{hoverBorderColor:Ne.colorBorder,hoverBg:Ne.colorBgContainerDisabled})))}),C=Ne=>{const{paddingBlockLG:Ee,fontSizeLG:ge,lineHeightLG:ye,borderRadiusLG:xe,paddingInlineLG:be}=Ne;return{padding:`${Ee}px ${be}px`,fontSize:ge,lineHeight:ye,borderRadius:xe}},f=Ne=>({padding:`${Ne.paddingBlockSM}px ${Ne.paddingInlineSM}px`,borderRadius:Ne.borderRadiusSM}),S=(Ne,Ee)=>{const{componentCls:ge,colorError:ye,colorWarning:xe,errorActiveShadow:be,warningActiveShadow:Ie,colorErrorBorderHover:me,colorWarningBorderHover:We}=Ne;return{[`&-status-error:not(${Ee}-disabled):not(${Ee}-borderless)${Ee}`]:{borderColor:ye,"&:hover":{borderColor:me},"&:focus, &:focus-within":Object.assign({},w((0,b.TS)(Ne,{activeBorderColor:ye,activeShadow:be}))),[`${ge}-prefix, ${ge}-suffix`]:{color:ye}},[`&-status-warning:not(${Ee}-disabled):not(${Ee}-borderless)${Ee}`]:{borderColor:xe,"&:hover":{borderColor:We},"&:focus, &:focus-within":Object.assign({},w((0,b.TS)(Ne,{activeBorderColor:xe,activeShadow:Ie}))),[`${ge}-prefix, ${ge}-suffix`]:{color:xe}}}},P=Ne=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Ne.paddingBlock}px ${Ne.paddingInline}px`,color:Ne.colorText,fontSize:Ne.fontSize,lineHeight:Ne.lineHeight,backgroundColor:Ne.colorBgContainer,backgroundImage:"none",borderWidth:Ne.lineWidth,borderStyle:Ne.lineType,borderColor:Ne.colorBorder,borderRadius:Ne.borderRadius,transition:`all ${Ne.motionDurationMid}`},k(Ne.colorTextPlaceholder)),{"&:hover":Object.assign({},N(Ne)),"&:focus, &:focus-within":Object.assign({},w(Ne)),"&-disabled, &[disabled]":Object.assign({},I(Ne)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:Ne.controlHeight,lineHeight:Ne.lineHeight,verticalAlign:"bottom",transition:`all ${Ne.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},C(Ne)),"&-sm":Object.assign({},f(Ne)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),j=Ne=>{const{componentCls:Ee,antCls:ge}=Ne;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,["&[class*='col-']"]:{paddingInlineEnd:Ne.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${Ee}, &-lg > ${Ee}-group-addon`]:Object.assign({},C(Ne)),[`&-sm ${Ee}, &-sm > ${Ee}-group-addon`]:Object.assign({},f(Ne)),[`&-lg ${ge}-select-single ${ge}-select-selector`]:{height:Ne.controlHeightLG},[`&-sm ${ge}-select-single ${ge}-select-selector`]:{height:Ne.controlHeightSM},[`> ${Ee}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${Ee}-group`]:{["&-addon, &-wrap"]:{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Ne.paddingInline}px`,color:Ne.colorText,fontWeight:"normal",fontSize:Ne.fontSize,textAlign:"center",backgroundColor:Ne.addonBg,border:`${Ne.lineWidth}px ${Ne.lineType} ${Ne.colorBorder}`,borderRadius:Ne.borderRadius,transition:`all ${Ne.motionDurationSlow}`,lineHeight:1,[`${ge}-select`]:{margin:`-${Ne.paddingBlock+1}px -${Ne.paddingInline}px`,[`&${ge}-select-single:not(${ge}-select-customize-input):not(${ge}-pagination-size-changer)`]:{[`${ge}-select-selector`]:{backgroundColor:"inherit",border:`${Ne.lineWidth}px ${Ne.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${ge}-select-selector`]:{color:Ne.colorPrimary}}},[`${ge}-cascader-picker`]:{margin:`-9px -${Ne.paddingInline}px`,backgroundColor:"transparent",[`${ge}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${Ee}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${Ee}-search-with-button &`]:{zIndex:0}}},[`> ${Ee}:first-child, ${Ee}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${ge}-select ${ge}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${Ee}-affix-wrapper`]:{[`&:not(:first-child) ${Ee}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${Ee}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${Ee}:last-child, ${Ee}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${ge}-select ${ge}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${Ee}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${Ee}-search &`]:{borderStartStartRadius:Ne.borderRadius,borderEndStartRadius:Ne.borderRadius}},[`&:not(:first-child), ${Ee}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${Ee}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,y.dF)()),{[`${Ee}-group-addon, ${Ee}-group-wrap, > ${Ee}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:Ne.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[` - & > ${Ee}-affix-wrapper, - & > ${Ee}-number-affix-wrapper, - & > ${ge}-picker-range - `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-Ne.lineWidth,borderInlineEndWidth:Ne.lineWidth},[`${Ee}`]:{float:"none"},[`& > ${ge}-select > ${ge}-select-selector, - & > ${ge}-select-auto-complete ${Ee}, - & > ${ge}-cascader-picker ${Ee}, - & > ${Ee}-group-wrapper ${Ee}`]:{borderInlineEndWidth:Ne.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${ge}-select-focused`]:{zIndex:1},[`& > ${ge}-select > ${ge}-select-arrow`]:{zIndex:1},[`& > *:first-child, - & > ${ge}-select:first-child > ${ge}-select-selector, - & > ${ge}-select-auto-complete:first-child ${Ee}, - & > ${ge}-cascader-picker:first-child ${Ee}`]:{borderStartStartRadius:Ne.borderRadius,borderEndStartRadius:Ne.borderRadius},[`& > *:last-child, - & > ${ge}-select:last-child > ${ge}-select-selector, - & > ${ge}-cascader-picker:last-child ${Ee}, - & > ${ge}-cascader-picker-focused:last-child ${Ee}`]:{borderInlineEndWidth:Ne.lineWidth,borderStartEndRadius:Ne.borderRadius,borderEndEndRadius:Ne.borderRadius},[`& > ${ge}-select-auto-complete ${Ee}`]:{verticalAlign:"top"},[`${Ee}-group-wrapper + ${Ee}-group-wrapper`]:{marginInlineStart:-Ne.lineWidth,[`${Ee}-affix-wrapper`]:{borderRadius:0}},[`${Ee}-group-wrapper:not(:last-child)`]:{[`&${Ee}-search > ${Ee}-group`]:{[`& > ${Ee}-group-addon > ${Ee}-search-button`]:{borderRadius:0},[`& > ${Ee}`]:{borderStartStartRadius:Ne.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ne.borderRadius}}}})}},re=Ne=>{const{componentCls:Ee,controlHeightSM:ge,lineWidth:ye}=Ne,xe=16,be=(ge-ye*2-xe)/2;return{[Ee]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,y.Wf)(Ne)),P(Ne)),S(Ne,Ee)),{'&[type="color"]':{height:Ne.controlHeight,[`&${Ee}-lg`]:{height:Ne.controlHeightLG},[`&${Ee}-sm`]:{height:ge,paddingTop:be,paddingBottom:be}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},J=Ne=>{const{componentCls:Ee}=Ne;return{[`${Ee}-clear-icon`]:{margin:0,color:Ne.colorTextQuaternary,fontSize:Ne.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${Ne.motionDurationSlow}`,"&:hover":{color:Ne.colorTextTertiary},"&:active":{color:Ne.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Ne.inputAffixPadding}px`}}}},ie=Ne=>{const{componentCls:Ee,inputAffixPadding:ge,colorTextDescription:ye,motionDurationSlow:xe,colorIcon:be,colorIconHover:Ie,iconCls:me}=Ne;return{[`${Ee}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},P(Ne)),{display:"inline-flex",[`&:not(${Ee}-affix-wrapper-disabled):hover`]:{zIndex:1,[`${Ee}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${Ee}[disabled]`]:{background:"transparent"}},[`> input${Ee}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Ee}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:Ne.paddingXS}},"&-show-count-suffix":{color:ye},"&-show-count-has-suffix":{marginInlineEnd:Ne.paddingXXS},"&-prefix":{marginInlineEnd:ge},"&-suffix":{marginInlineStart:ge}}}),J(Ne)),{[`${me}${Ee}-password-icon`]:{color:be,cursor:"pointer",transition:`all ${xe}`,"&:hover":{color:Ie}}}),S(Ne,`${Ee}-affix-wrapper`))}},de=Ne=>{const{componentCls:Ee,colorError:ge,colorWarning:ye,borderRadiusLG:xe,borderRadiusSM:be}=Ne;return{[`${Ee}-group`]:Object.assign(Object.assign(Object.assign({},(0,y.Wf)(Ne)),j(Ne)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${Ee}-group-addon`]:{borderRadius:xe,fontSize:Ne.fontSizeLG}},"&-sm":{[`${Ee}-group-addon`]:{borderRadius:be}},"&-status-error":{[`${Ee}-group-addon`]:{color:ge,borderColor:ge}},"&-status-warning":{[`${Ee}-group-addon`]:{color:ye,borderColor:ye}},"&-disabled":{[`${Ee}-group-addon`]:Object.assign({},I(Ne))},[`&:not(${Ee}-compact-first-item):not(${Ee}-compact-last-item)${Ee}-compact-item`]:{[`${Ee}, ${Ee}-group-addon`]:{borderRadius:0}},[`&:not(${Ee}-compact-last-item)${Ee}-compact-first-item`]:{[`${Ee}, ${Ee}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Ee}-compact-first-item)${Ee}-compact-last-item`]:{[`${Ee}, ${Ee}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},he=Ne=>{const{componentCls:Ee,antCls:ge}=Ne,ye=`${Ee}-search`;return{[ye]:{[`${Ee}`]:{"&:hover, &:focus":{borderColor:Ne.colorPrimaryHover,[`+ ${Ee}-group-addon ${ye}-button:not(${ge}-btn-primary)`]:{borderInlineStartColor:Ne.colorPrimaryHover}}},[`${Ee}-affix-wrapper`]:{borderRadius:0},[`${Ee}-lg`]:{lineHeight:Ne.lineHeightLG-2e-4},[`> ${Ee}-group`]:{[`> ${Ee}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${ye}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:Ne.borderRadius,borderEndEndRadius:Ne.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${ye}-button:not(${ge}-btn-primary)`]:{color:Ne.colorTextDescription,"&:hover":{color:Ne.colorPrimaryHover},"&:active":{color:Ne.colorPrimaryActive},[`&${ge}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${ye}-button`]:{height:Ne.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${ye}-button`]:{height:Ne.controlHeightLG},[`&-small ${ye}-button`]:{height:Ne.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${Ee}-compact-item`]:{[`&:not(${Ee}-compact-last-item)`]:{[`${Ee}-group-addon`]:{[`${Ee}-search-button`]:{marginInlineEnd:-Ne.lineWidth,borderRadius:0}}},[`&:not(${Ee}-compact-first-item)`]:{[`${Ee},${Ee}-affix-wrapper`]:{borderRadius:0}},[`> ${Ee}-group-addon ${Ee}-search-button, - > ${Ee}, - ${Ee}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${Ee}-affix-wrapper-focused`]:{zIndex:2}}}}},fe=Ne=>{const{componentCls:Ee,paddingLG:ge}=Ne,ye=`${Ee}-textarea`;return{[ye]:{position:"relative","&-show-count":{[`> ${Ee}`]:{height:"100%"},[`${Ee}-data-count`]:{position:"absolute",bottom:-Ne.fontSize*Ne.lineHeight,insetInlineEnd:0,color:Ne.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${Ee}`]:{paddingInlineEnd:ge}},[`&-affix-wrapper${ye}-has-feedback`]:{[`${Ee}`]:{paddingInlineEnd:ge}},[`&-affix-wrapper${Ee}-affix-wrapper`]:{padding:0,[`> textarea${Ee}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${Ee}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${Ee}-clear-icon`]:{position:"absolute",insetInlineEnd:Ne.paddingXS,insetBlockStart:Ne.paddingXS},[`${ye}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Ne.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function ke(Ne){return(0,b.TS)(Ne,{inputAffixPadding:Ne.paddingXXS})}const we=Ne=>{const{controlHeight:Ee,fontSize:ge,lineHeight:ye,lineWidth:xe,controlHeightSM:be,controlHeightLG:Ie,fontSizeLG:me,lineHeightLG:We,paddingSM:Ce,controlPaddingHorizontalSM:Pt,controlPaddingHorizontal:ct,colorFillAlter:Ue,colorPrimaryHover:bt,colorPrimary:ht,controlOutlineWidth:Bt,controlOutline:mt,colorErrorOutline:_n,colorWarningOutline:Bn}=Ne;return{paddingBlock:Math.max(Math.round((Ee-ge*ye)/2*10)/10-xe,0),paddingBlockSM:Math.max(Math.round((be-ge*ye)/2*10)/10-xe,0),paddingBlockLG:Math.ceil((Ie-me*We)/2*10)/10-xe,paddingInline:Ce-xe,paddingInlineSM:Pt-xe,paddingInlineLG:ct-xe,addonBg:Ue,activeBorderColor:ht,hoverBorderColor:bt,activeShadow:`0 0 0 ${Bt}px ${mt}`,errorActiveShadow:`0 0 0 ${Bt}px ${_n}`,warningActiveShadow:`0 0 0 ${Bt}px ${Bn}`,hoverBg:"",activeBg:""}};V.ZP=(0,z.Z)("Input",Ne=>{const Ee=(0,b.TS)(Ne,ke(Ne));return[re(Ee),fe(Ee),ie(Ee),de(Ee),he(Ee),(0,A.c)(Ee)]},we)},76745:function(nt,V,m){"use strict";var y=m(67294);const A=(0,y.createContext)(void 0);V.Z=A},88526:function(nt,V,m){"use strict";m.d(V,{Z:function(){return S}});var y=m(62906),A={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},b=A,k={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},w={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},b),timePickerLocale:Object.assign({},k)},I=w;const C="${label} is not a valid ${type}";var S={locale:"en",Pagination:y.Z,DatePicker:w,TimePicker:k,Calendar:I,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:C,method:C,array:C,object:C,number:C,date:C,boolean:C,integer:C,float:C,regexp:C,email:C,url:C,hex:C},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}}},10110:function(nt,V,m){"use strict";var y=m(67294),A=m(76745),b=m(88526);const z=(k,N)=>{const w=y.useContext(A.Z),I=y.useMemo(()=>{var f;const S=N||b.Z[k],P=(f=w==null?void 0:w[k])!==null&&f!==void 0?f:{};return Object.assign(Object.assign({},typeof S=="function"?S():S),P||{})},[k,N,w]),C=y.useMemo(()=>{const f=w==null?void 0:w.locale;return w!=null&&w.exist&&!f?b.Z.locale:f},[w]);return[I,C]};V.Z=z},76529:function(nt,V,m){"use strict";m.d(V,{J:function(){return N}});var y=m(67294),A=m(56790),b=m(4173),z=function(w,I){var C={};for(var f in w)Object.prototype.hasOwnProperty.call(w,f)&&I.indexOf(f)<0&&(C[f]=w[f]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var S=0,f=Object.getOwnPropertySymbols(w);S{const{children:C}=w,f=z(w,["children"]),S=y.useContext(k),P=y.useMemo(()=>Object.assign(Object.assign({},S),f),[S,f.prefixCls,f.mode,f.selectable]),j=(0,A.t4)(C),re=(0,A.x1)(I,j?C.ref:null);return y.createElement(k.Provider,{value:P},y.createElement(b.BR,null,j?y.cloneElement(C,{ref:re}):C))});V.Z=k},82610:function(nt,V,m){"use strict";m.d(V,{Z:function(){return _t}});var y=m(72512),A=m(67294),b=m(94184),z=m.n(b),k=function(Ct,jt){var on={};for(var Ot in Ct)Object.prototype.hasOwnProperty.call(Ct,Ot)&&jt.indexOf(Ot)<0&&(on[Ot]=Ct[Ot]);if(Ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Tt=0,Ot=Object.getOwnPropertySymbols(Ct);Tt{let Ct=0;return function(){let jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ct+=1,`${jt}${Ct}`}})(),C=null;var f=null,S=m(53124),P=function(Ct,jt){var on={};for(var Ot in Ct)Object.prototype.hasOwnProperty.call(Ct,Ot)&&jt.indexOf(Ot)<0&&(on[Ot]=Ct[Ot]);if(Ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Tt=0,Ot=Object.getOwnPropertySymbols(Ct);Tt{const{prefixCls:jt,className:on,dashed:Ot}=Ct,Tt=P(Ct,["prefixCls","className","dashed"]),{getPrefixCls:xt}=A.useContext(S.E_),Ht=xt("menu",jt),Zn=z()({[`${Ht}-item-divider-dashed`]:!!Ot},on);return A.createElement(y.iz,Object.assign({className:Zn},Tt))},J=m(50344),ie=m(98423),de=m(61781),he=m(96159),ke=(0,A.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Ne=Ct=>{var jt;const{className:on,children:Ot,icon:Tt,title:xt,danger:Ht}=Ct,{prefixCls:Zn,firstLevel:tn,direction:hr,disableMenuItemTitleTooltip:Zi,inlineCollapsed:Ri}=A.useContext(ke),Pi=Yi=>{const xo=A.createElement("span",{className:`${Zn}-title-content`},Ot);return(!Tt||(0,he.l$)(Ot)&&Ot.type==="span")&&Ot&&Yi&&tn&&typeof Ot=="string"?A.createElement("div",{className:`${Zn}-inline-collapsed-noicon`},Ot.charAt(0)):xo},{siderCollapsed:$o}=A.useContext(w);let ys=xt;typeof xt=="undefined"?ys=tn?Ot:"":xt===!1&&(ys="");const xn={title:ys};!$o&&!Ri&&(xn.title=null,xn.open=!1);const Hr=(0,J.Z)(Ot).length;let Jr=A.createElement(y.ck,Object.assign({},(0,ie.Z)(Ct,["title","icon","danger"]),{className:z()({[`${Zn}-item-danger`]:Ht,[`${Zn}-item-only-child`]:(Tt?Hr+1:Hr)===1},on),title:typeof xt=="string"?xt:void 0}),(0,he.Tm)(Tt,{className:z()((0,he.l$)(Tt)?(jt=Tt.props)===null||jt===void 0?void 0:jt.className:"",`${Zn}-item-icon`)}),Pi(Ri));return Zi||(Jr=A.createElement(de.Z,Object.assign({},xn,{placement:hr==="rtl"?"left":"right",overlayClassName:`${Zn}-inline-collapsed-tooltip`}),Jr)),Jr},ge=Ct=>{var jt;const{popupClassName:on,icon:Ot,title:Tt,theme:xt}=Ct,Ht=A.useContext(ke),{prefixCls:Zn,inlineCollapsed:tn,theme:hr}=Ht,Zi=(0,y.Xl)();let Ri;if(!Ot)Ri=tn&&!Zi.length&&Tt&&typeof Tt=="string"?A.createElement("div",{className:`${Zn}-inline-collapsed-noicon`},Tt.charAt(0)):A.createElement("span",{className:`${Zn}-title-content`},Tt);else{const $o=(0,he.l$)(Tt)&&Tt.type==="span";Ri=A.createElement(A.Fragment,null,(0,he.Tm)(Ot,{className:z()((0,he.l$)(Ot)?(jt=Ot.props)===null||jt===void 0?void 0:jt.className:"",`${Zn}-item-icon`)}),$o?Tt:A.createElement("span",{className:`${Zn}-title-content`},Tt))}const Pi=A.useMemo(()=>Object.assign(Object.assign({},Ht),{firstLevel:!1}),[Ht]);return A.createElement(ke.Provider,{value:Pi},A.createElement(y.Wd,Object.assign({},(0,ie.Z)(Ct,["icon"]),{title:Ri,popupClassName:z()(Zn,on,`${Zn}-${xt||hr}`)})))},ye=m(35872),xe=m(56790),be=m(33603),Ie=function(Ct,jt){var on={};for(var Ot in Ct)Object.prototype.hasOwnProperty.call(Ct,Ot)&&jt.indexOf(Ot)<0&&(on[Ot]=Ct[Ot]);if(Ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Tt=0,Ot=Object.getOwnPropertySymbols(Ct);Tt{if(jt&&typeof jt=="object"){const Ot=jt,{label:Tt,children:xt,key:Ht,type:Zn}=Ot,tn=Ie(Ot,["label","children","key","type"]),hr=Ht!=null?Ht:`tmp-${on}`;return xt||Zn==="group"?Zn==="group"?A.createElement(y.BW,Object.assign({key:hr},tn,{title:Tt}),me(xt)):A.createElement(ge,Object.assign({key:hr},tn,{title:Tt}),me(xt)):Zn==="divider"?A.createElement(re,Object.assign({key:hr},tn)):A.createElement(Ne,Object.assign({key:hr},tn),Tt)}return null}).filter(jt=>jt)}function We(Ct){return A.useMemo(()=>Ct&&me(Ct),[Ct])}var Ce=m(76529),Pt=m(10274),ct=m(14747),Ue=m(33507),bt=m(67771),ht=m(50438),Bt=m(67968),mt=m(45503),Bn=Ct=>{const{componentCls:jt,motionDurationSlow:on,horizontalLineHeight:Ot,colorSplit:Tt,lineWidth:xt,lineType:Ht,itemPaddingInline:Zn}=Ct;return{[`${jt}-horizontal`]:{lineHeight:Ot,border:0,borderBottom:`${xt}px ${Ht} ${Tt}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${jt}-item, ${jt}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Zn},[`> ${jt}-item:hover, - > ${jt}-item-active, - > ${jt}-submenu ${jt}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${jt}-item, ${jt}-submenu-title`]:{transition:[`border-color ${on}`,`background ${on}`].join(",")},[`${jt}-submenu-arrow`]:{display:"none"}}}},Yr=Ct=>{let{componentCls:jt,menuArrowOffset:on}=Ct;return{[`${jt}-rtl`]:{direction:"rtl"},[`${jt}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${jt}-rtl${jt}-vertical, - ${jt}-submenu-rtl ${jt}-vertical`]:{[`${jt}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${on})`},"&::after":{transform:`rotate(45deg) translateY(${on})`}}}}};const oi=Ct=>Object.assign({},(0,ct.oN)(Ct));var yo=(Ct,jt)=>{const{componentCls:on,itemColor:Ot,itemSelectedColor:Tt,groupTitleColor:xt,itemBg:Ht,subMenuItemBg:Zn,itemSelectedBg:tn,activeBarHeight:hr,activeBarWidth:Zi,activeBarBorderWidth:Ri,motionDurationSlow:Pi,motionEaseInOut:$o,motionEaseOut:ys,itemPaddingInline:xn,motionDurationMid:Hr,itemHoverColor:Jr,lineType:Yi,colorSplit:xo,itemDisabledColor:na,dangerItemColor:Vn,dangerItemHoverColor:Xn,dangerItemSelectedColor:Mr,dangerItemActiveBg:li,dangerItemSelectedBg:Cr,itemHoverBg:qr,itemActiveBg:ii,menuSubMenuBg:rn,horizontalItemSelectedColor:Jn,horizontalItemSelectedBg:Vr,horizontalItemBorderRadius:so,horizontalItemHoverBg:rs,popupBg:zt}=Ct;return{[`${on}-${jt}, ${on}-${jt} > ${on}`]:{color:Ot,background:Ht,[`&${on}-root:focus-visible`]:Object.assign({},oi(Ct)),[`${on}-item-group-title`]:{color:xt},[`${on}-submenu-selected`]:{[`> ${on}-submenu-title`]:{color:Tt}},[`${on}-item-disabled, ${on}-submenu-disabled`]:{color:`${na} !important`},[`${on}-item:not(${on}-item-selected):not(${on}-submenu-selected)`]:{[`&:hover, > ${on}-submenu-title:hover`]:{color:Jr}},[`&:not(${on}-horizontal)`]:{[`${on}-item:not(${on}-item-selected)`]:{"&:hover":{backgroundColor:qr},"&:active":{backgroundColor:ii}},[`${on}-submenu-title`]:{"&:hover":{backgroundColor:qr},"&:active":{backgroundColor:ii}}},[`${on}-item-danger`]:{color:Vn,[`&${on}-item:hover`]:{[`&:not(${on}-item-selected):not(${on}-submenu-selected)`]:{color:Xn}},[`&${on}-item:active`]:{background:li}},[`${on}-item a`]:{"&, &:hover":{color:"inherit"}},[`${on}-item-selected`]:{color:Tt,[`&${on}-item-danger`]:{color:Mr},["a, a:hover"]:{color:"inherit"}},[`& ${on}-item-selected`]:{backgroundColor:tn,[`&${on}-item-danger`]:{backgroundColor:Cr}},[`${on}-item, ${on}-submenu-title`]:{[`&:not(${on}-item-disabled):focus-visible`]:Object.assign({},oi(Ct))},[`&${on}-submenu > ${on}`]:{backgroundColor:rn},[`&${on}-popup > ${on}`]:{backgroundColor:zt},[`&${on}-horizontal`]:Object.assign(Object.assign({},jt==="dark"?{borderBottom:0}:{}),{[`> ${on}-item, > ${on}-submenu`]:{top:Ri,marginTop:-Ri,marginBottom:0,borderRadius:so,"&::after":{position:"absolute",insetInline:xn,bottom:0,borderBottom:`${hr}px solid transparent`,transition:`border-color ${Pi} ${$o}`,content:'""'},["&:hover, &-active, &-open"]:{background:rs,"&::after":{borderBottomWidth:hr,borderBottomColor:Jn}},["&-selected"]:{color:Jn,backgroundColor:Vr,"&:hover":{backgroundColor:Vr},"&::after":{borderBottomWidth:hr,borderBottomColor:Jn}}}}),[`&${on}-root`]:{[`&${on}-inline, &${on}-vertical`]:{borderInlineEnd:`${Ri}px ${Yi} ${xo}`}},[`&${on}-inline`]:{[`${on}-sub${on}-inline`]:{background:Zn},[`${on}-item, ${on}-submenu-title`]:Ri&&Zi?{width:`calc(100% + ${Ri}px)`}:{},[`${on}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Zi}px solid ${Tt}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Hr} ${ys}`,`opacity ${Hr} ${ys}`].join(","),content:'""'},[`&${on}-item-danger`]:{"&::after":{borderInlineEndColor:Mr}}},[`${on}-selected, ${on}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Hr} ${$o}`,`opacity ${Hr} ${$o}`].join(",")}}}}}};const vr=Ct=>{const{componentCls:jt,itemHeight:on,itemMarginInline:Ot,padding:Tt,menuArrowSize:xt,marginXS:Ht,itemMarginBlock:Zn}=Ct,tn=Tt+xt+Ht;return{[`${jt}-item`]:{position:"relative",overflow:"hidden"},[`${jt}-item, ${jt}-submenu-title`]:{height:on,lineHeight:`${on}px`,paddingInline:Tt,overflow:"hidden",textOverflow:"ellipsis",marginInline:Ot,marginBlock:Zn,width:`calc(100% - ${Ot*2}px)`},[`> ${jt}-item, - > ${jt}-submenu > ${jt}-submenu-title`]:{height:on,lineHeight:`${on}px`},[`${jt}-item-group-list ${jt}-submenu-title, - ${jt}-submenu-title`]:{paddingInlineEnd:tn}}};var ss=Ct=>{const{componentCls:jt,iconCls:on,itemHeight:Ot,colorTextLightSolid:Tt,dropdownWidth:xt,controlHeightLG:Ht,motionDurationMid:Zn,motionEaseOut:tn,paddingXL:hr,itemMarginInline:Zi,fontSizeLG:Ri,motionDurationSlow:Pi,paddingXS:$o,boxShadowSecondary:ys,collapsedWidth:xn,collapsedIconSize:Hr}=Ct,Jr={height:Ot,lineHeight:`${Ot}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[jt]:{["&-inline, &-vertical"]:Object.assign({[`&${jt}-root`]:{boxShadow:"none"}},vr(Ct))},[`${jt}-submenu-popup`]:{[`${jt}-vertical`]:Object.assign(Object.assign({},vr(Ct)),{boxShadow:ys})}},{[`${jt}-submenu-popup ${jt}-vertical${jt}-sub`]:{minWidth:xt,maxHeight:`calc(100vh - ${Ht*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${jt}-inline`]:{width:"100%",[`&${jt}-root`]:{[`${jt}-item, ${jt}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Pi}`,`background ${Pi}`,`padding ${Zn} ${tn}`].join(","),[`> ${jt}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${jt}-sub${jt}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${jt}-submenu > ${jt}-submenu-title`]:Jr,[`& ${jt}-item-group-title`]:{paddingInlineStart:hr}},[`${jt}-item`]:Jr}},{[`${jt}-inline-collapsed`]:{width:xn,[`&${jt}-root`]:{[`${jt}-item, ${jt}-submenu ${jt}-submenu-title`]:{[`> ${jt}-inline-collapsed-noicon`]:{fontSize:Ri,textAlign:"center"}}},[`> ${jt}-item, - > ${jt}-item-group > ${jt}-item-group-list > ${jt}-item, - > ${jt}-item-group > ${jt}-item-group-list > ${jt}-submenu > ${jt}-submenu-title, - > ${jt}-submenu > ${jt}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Ri/2}px - ${Zi}px)`,textOverflow:"clip",[` - ${jt}-submenu-arrow, - ${jt}-submenu-expand-icon - `]:{opacity:0},[`${jt}-item-icon, ${on}`]:{margin:0,fontSize:Hr,lineHeight:`${Ot}px`,"+ span":{display:"inline-block",opacity:0}}},[`${jt}-item-icon, ${on}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${jt}-item-icon, ${on}`]:{display:"none"},"a, a:hover":{color:Tt}},[`${jt}-item-group-title`]:Object.assign(Object.assign({},ct.vS),{paddingInline:$o})}}]};const ve=Ct=>{const{componentCls:jt,motionDurationSlow:on,motionDurationMid:Ot,motionEaseInOut:Tt,motionEaseOut:xt,iconCls:Ht,iconSize:Zn,iconMarginInlineEnd:tn}=Ct;return{[`${jt}-item, ${jt}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${on}`,`background ${on}`,`padding ${on} ${Tt}`].join(","),[`${jt}-item-icon, ${Ht}`]:{minWidth:Zn,fontSize:Zn,transition:[`font-size ${Ot} ${xt}`,`margin ${on} ${Tt}`,`color ${on}`].join(","),"+ span":{marginInlineStart:tn,opacity:1,transition:[`opacity ${on} ${Tt}`,`margin ${on}`,`color ${on}`].join(",")}},[`${jt}-item-icon`]:Object.assign({},(0,ct.Ro)()),[`&${jt}-item-only-child`]:{[`> ${Ht}, > ${jt}-item-icon`]:{marginInlineEnd:0}}},[`${jt}-item-disabled, ${jt}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${jt}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},_o=Ct=>{const{componentCls:jt,motionDurationSlow:on,motionEaseInOut:Ot,borderRadius:Tt,menuArrowSize:xt,menuArrowOffset:Ht}=Ct;return{[`${jt}-submenu`]:{["&-expand-icon, &-arrow"]:{position:"absolute",top:"50%",insetInlineEnd:Ct.margin,width:xt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${on} ${Ot}, opacity ${on}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:xt*.6,height:xt*.15,backgroundColor:"currentcolor",borderRadius:Tt,transition:[`background ${on} ${Ot}`,`transform ${on} ${Ot}`,`top ${on} ${Ot}`,`color ${on} ${Ot}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Ht})`},"&::after":{transform:`rotate(-45deg) translateY(${Ht})`}}}}},ci=Ct=>{const{antCls:jt,componentCls:on,fontSize:Ot,motionDurationSlow:Tt,motionDurationMid:xt,motionEaseInOut:Ht,paddingXS:Zn,padding:tn,colorSplit:hr,lineWidth:Zi,zIndexPopup:Ri,borderRadiusLG:Pi,subMenuItemBorderRadius:$o,menuArrowSize:ys,menuArrowOffset:xn,lineType:Hr,menuPanelMaskInset:Jr,groupTitleLineHeight:Yi,groupTitleFontSize:xo}=Ct;return[{"":{[`${on}`]:Object.assign(Object.assign({},(0,ct.dF)()),{["&-hidden"]:{display:"none"}})},[`${on}-submenu-hidden`]:{display:"none"}},{[on]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ct.Wf)(Ct)),(0,ct.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Ot,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Tt} cubic-bezier(0.2, 0, 0, 1) 0s`,["ul, ol"]:{margin:0,padding:0,listStyle:"none"},["&-overflow"]:{display:"flex",[`${on}-item`]:{flex:"none"}},[`${on}-item, ${on}-submenu, ${on}-submenu-title`]:{borderRadius:Ct.itemBorderRadius},[`${on}-item-group-title`]:{padding:`${Zn}px ${tn}px`,fontSize:xo,lineHeight:Yi,transition:`all ${Tt}`},[`&-horizontal ${on}-submenu`]:{transition:[`border-color ${Tt} ${Ht}`,`background ${Tt} ${Ht}`].join(",")},[`${on}-submenu, ${on}-submenu-inline`]:{transition:[`border-color ${Tt} ${Ht}`,`background ${Tt} ${Ht}`,`padding ${xt} ${Ht}`].join(",")},[`${on}-submenu ${on}-sub`]:{cursor:"initial",transition:[`background ${Tt} ${Ht}`,`padding ${Tt} ${Ht}`].join(",")},[`${on}-title-content`]:{transition:`color ${Tt}`,[`> ${jt}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${on}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${on}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:hr,borderStyle:Hr,borderWidth:0,borderTopWidth:Zi,marginBlock:Zi,padding:0,"&-dashed":{borderStyle:"dashed"}}}),ve(Ct)),{[`${on}-item-group`]:{[`${on}-item-group-list`]:{margin:0,padding:0,[`${on}-item, ${on}-submenu-title`]:{paddingInline:`${Ot*2}px ${tn}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ri,borderRadius:Pi,boxShadow:"none",transformOrigin:"0 0",[`&${on}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Jr}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Jr},[` +`,fe=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],Be={},Ie;function We(yr){var Po=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,as=yr.getAttribute("id")||yr.getAttribute("data-reactid")||yr.getAttribute("name");if(Po&&Be[as])return Be[as];var ge=window.getComputedStyle(yr),_o=ge.getPropertyValue("box-sizing")||ge.getPropertyValue("-moz-box-sizing")||ge.getPropertyValue("-webkit-box-sizing"),ci=parseFloat(ge.getPropertyValue("padding-bottom"))+parseFloat(ge.getPropertyValue("padding-top")),Bi=parseFloat(ge.getPropertyValue("border-bottom-width"))+parseFloat(ge.getPropertyValue("border-top-width")),Ci=fe.map(function(ln){return"".concat(ln,":").concat(ge.getPropertyValue(ln))}).join(";"),io={sizingStyle:Ci,paddingSize:ci,borderSize:Bi,boxSizing:_o};return Po&&as&&(Be[as]=io),io}function De(yr){var Po=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,as=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ge=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Ie||(Ie=document.createElement("textarea"),Ie.setAttribute("tab-index","-1"),Ie.setAttribute("aria-hidden","true"),document.body.appendChild(Ie)),yr.getAttribute("wrap")?Ie.setAttribute("wrap",yr.getAttribute("wrap")):Ie.removeAttribute("wrap");var _o=We(yr,Po),ci=_o.paddingSize,Bi=_o.borderSize,Ci=_o.boxSizing,io=_o.sizingStyle;Ie.setAttribute("style","".concat(io,";").concat(he)),Ie.value=yr.value||yr.placeholder||"";var ln=void 0,Ve=void 0,_t,xt=Ie.scrollHeight;if(Ci==="border-box"?xt+=Bi:Ci==="content-box"&&(xt-=ci),as!==null||ge!==null){Ie.value=" ";var Wt=Ie.scrollHeight-ci;as!==null&&(ln=Wt*as,Ci==="border-box"&&(ln=ln+ci+Bi),xt=Math.max(ln,xt)),ge!==null&&(Ve=Wt*ge,Ci==="border-box"&&(Ve=Ve+ci+Bi),_t=xt>Ve?"":"hidden",xt=Math.min(Ve,xt))}var on={height:xt,overflowY:_t,resize:"none"};return ln&&(on.minHeight=ln),Ve&&(on.maxHeight=Ve),on}var ve=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],ye=0,we=1,Ce=2,Ae=ne.forwardRef(function(yr,Po){var as=yr,ge=as.prefixCls,_o=as.onPressEnter,ci=as.defaultValue,Bi=as.value,Ci=as.autoSize,io=as.onResize,ln=as.className,Ve=as.style,_t=as.disabled,xt=as.onChange,Wt=as.onInternalAutoSize,on=(0,C.Z)(as,ve),Ot=(0,W.Z)(ci,{value:Bi,postState:function(Vr){return Vr!=null?Vr:""}}),Tt=(0,A.Z)(Ot,2),bt=Tt[0],Ht=Tt[1],Wn=function(Vr){Ht(Vr.target.value),xt==null||xt(Vr)},tn=ne.useRef();ne.useImperativeHandle(Po,function(){return{textArea:tn.current}});var hr=ne.useMemo(function(){return Ci&&(0,w.Z)(Ci)==="object"?[Ci.minRows,Ci.maxRows]:[]},[Ci]),Zi=(0,A.Z)(hr,2),Ri=Zi[0],Pi=Zi[1],Wo=!!Ci,ys=function(){try{if(document.activeElement===tn.current){var Vr=tn.current,so=Vr.selectionStart,rs=Vr.selectionEnd,zt=Vr.scrollTop;tn.current.setSelectionRange(so,rs),tn.current.scrollTop=zt}}catch(pn){}},xn=ne.useState(Ce),Hr=(0,A.Z)(xn,2),Jr=Hr[0],Yi=Hr[1],xo=ne.useState(),na=(0,A.Z)(xo,2),Un=na[0],Xn=na[1],Mr=function(){Yi(ye)};(0,ce.Z)(function(){Wo&&Mr()},[Bi,Ri,Pi,Wo]),(0,ce.Z)(function(){if(Jr===ye)Yi(we);else if(Jr===we){var Qn=De(tn.current,!1,Ri,Pi);Yi(Ce),Xn(Qn)}else ys()},[Jr]);var li=ne.useRef(),wr=function(){pe.Z.cancel(li.current)},qr=function(Vr){Jr===Ce&&(io==null||io(Vr),Ci&&(wr(),li.current=(0,pe.Z)(function(){Mr()})))};ne.useEffect(function(){return wr},[]);var ii=Wo?Un:null,rn=(0,k.Z)((0,k.Z)({},Ve),ii);return(Jr===ye||Jr===we)&&(rn.overflowY="hidden",rn.overflowX="hidden"),ne.createElement(re.Z,{onResize:qr,disabled:!(Ci||io)},ne.createElement("textarea",(0,z.Z)({},on,{ref:tn,style:rn,className:b()(ge,ln,(0,N.Z)({},"".concat(ge,"-disabled"),_t)),disabled:_t,value:bt,onChange:Wn})))}),me=Ae,je=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function xe(yr,Po){return(0,f.Z)(yr||"").slice(0,Po).join("")}function Pt(yr,Po,as,ge){var _o=as;return yr?_o=xe(as,ge):(0,f.Z)(Po||"").lengthge&&(_o=Po),_o}var ct=ne.forwardRef(function(yr,Po){var as,ge=yr.defaultValue,_o=yr.value,ci=yr.onFocus,Bi=yr.onBlur,Ci=yr.onChange,io=yr.allowClear,ln=yr.maxLength,Ve=yr.onCompositionStart,_t=yr.onCompositionEnd,xt=yr.suffix,Wt=yr.prefixCls,on=Wt===void 0?"rc-textarea":Wt,Ot=yr.classes,Tt=yr.showCount,bt=yr.className,Ht=yr.style,Wn=yr.disabled,tn=yr.hidden,hr=yr.classNames,Zi=yr.styles,Ri=yr.onResize,Pi=(0,C.Z)(yr,je),Wo=(0,W.Z)(ge,{value:_o,defaultValue:ge}),ys=(0,A.Z)(Wo,2),xn=ys[0],Hr=ys[1],Jr=(0,ne.useRef)(null),Yi=ne.useState(!1),xo=(0,A.Z)(Yi,2),na=xo[0],Un=xo[1],Xn=ne.useState(!1),Mr=(0,A.Z)(Xn,2),li=Mr[0],wr=Mr[1],qr=ne.useRef(),ii=ne.useRef(0),rn=ne.useState(null),Qn=(0,A.Z)(rn,2),Vr=Qn[0],so=Qn[1],rs=function(){var tr;(tr=Jr.current)===null||tr===void 0||tr.textArea.focus()};(0,ne.useImperativeHandle)(Po,function(){return{resizableTextArea:Jr.current,focus:rs,blur:function(){var tr;(tr=Jr.current)===null||tr===void 0||tr.textArea.blur()}}}),(0,ne.useEffect)(function(){Un(function(Si){return!Wn&&Si})},[Wn]);var zt=Number(ln)>0,pn=function(tr){wr(!0),qr.current=xn,ii.current=tr.currentTarget.selectionStart,Ve==null||Ve(tr)},br=function(tr){wr(!1);var vi=tr.currentTarget.value;if(zt){var Ni,kr=ii.current>=ln+1||ii.current===((Ni=qr.current)===null||Ni===void 0?void 0:Ni.length);vi=Pt(kr,qr.current,vi,ln)}vi!==xn&&(Hr(vi),(0,P.rJ)(tr.currentTarget,tr,Ci,vi)),_t==null||_t(tr)},Gr=function(tr){var vi=tr.target.value;if(!li&&zt){var Ni=tr.target.selectionStart>=ln+1||tr.target.selectionStart===vi.length||!tr.target.selectionStart;vi=Pt(Ni,xn,vi,ln)}Hr(vi),(0,P.rJ)(tr.currentTarget,tr,Ci,vi)},ui=function(tr){var vi=Pi.onPressEnter,Ni=Pi.onKeyDown;tr.key==="Enter"&&vi&&vi(tr),Ni==null||Ni(tr)},xi=function(tr){Un(!0),ci==null||ci(tr)},lo=function(tr){Un(!1),Bi==null||Bi(tr)},Kr=function(tr){var vi;Hr(""),rs(),(0,P.rJ)((vi=Jr.current)===null||vi===void 0?void 0:vi.textArea,tr,Ci)},ti=(0,P.D7)(xn);!li&&zt&&_o==null&&(ti=xe(ti,ln));var ji=xt,Tr;if(Tt){var Qt=(0,f.Z)(ti).length;(0,w.Z)(Tt)==="object"?Tr=Tt.formatter({value:ti,count:Qt,maxLength:ln}):Tr="".concat(Qt).concat(zt?" / ".concat(ln):""),ji=ne.createElement(ne.Fragment,null,ji,ne.createElement("span",{className:b()("".concat(on,"-data-count"),hr==null?void 0:hr.count),style:Zi==null?void 0:Zi.count},Tr))}var Gn=function(tr){var vi;Ri==null||Ri(tr),(vi=Jr.current)!==null&&vi!==void 0&&vi.textArea.style.height&&so(!0)},yi=!Pi.autoSize&&!Tt&&!io,Ln=ne.createElement(S.Q,{value:ti,allowClear:io,handleReset:Kr,suffix:ji,prefixCls:on,classes:{affixWrapper:b()(Ot==null?void 0:Ot.affixWrapper,(as={},(0,N.Z)(as,"".concat(on,"-show-count"),Tt),(0,N.Z)(as,"".concat(on,"-textarea-allow-clear"),io),as))},disabled:Wn,focused:na,className:bt,style:(0,k.Z)((0,k.Z)({},Ht),Vr&&!yi?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Tr=="string"?Tr:void 0}},hidden:tn,inputElement:ne.createElement(me,(0,z.Z)({},Pi,{onKeyDown:ui,onChange:Gr,onFocus:xi,onBlur:lo,onCompositionStart:pn,onCompositionEnd:br,className:hr==null?void 0:hr.textarea,style:(0,k.Z)((0,k.Z)({},Zi==null?void 0:Zi.textarea),{},{resize:Ht==null?void 0:Ht.resize}),disabled:Wn,prefixCls:on,onResize:Gn,ref:Jr}))});return Ln}),He=ct,wt=He,dt=m(5997),Bt=m(67392),gt=m(81689),_n=m(21843),Bn=m(86818),Er=m(44159),Yr=m(89746),oi=function(yr,Po){var as={};for(var ge in yr)Object.prototype.hasOwnProperty.call(yr,ge)&&Po.indexOf(ge)<0&&(as[ge]=yr[ge]);if(yr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _o=0,ge=Object.getOwnPropertySymbols(yr);_o{const{prefixCls:as,bordered:ge=!0,size:_o,disabled:ci,status:Bi,allowClear:Ci,showCount:io,classNames:ln,rootClassName:Ve,className:_t}=yr,xt=oi(yr,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Wt,direction:on}=ne.useContext(Bt.E_),Ot=(0,_n.Z)(_o),Tt=ne.useContext(gt.Z),bt=ci!=null?ci:Tt,{status:Ht,hasFeedback:Wn,feedbackIcon:tn}=ne.useContext(Bn.aM),hr=(0,dt.F)(Ht,Bi),Zi=ne.useRef(null);ne.useImperativeHandle(Po,()=>{var xn;return{resizableTextArea:(xn=Zi.current)===null||xn===void 0?void 0:xn.resizableTextArea,focus:Hr=>{var Jr,Yi;(0,Er.n)((Yi=(Jr=Zi.current)===null||Jr===void 0?void 0:Jr.resizableTextArea)===null||Yi===void 0?void 0:Yi.textArea,Hr)},blur:()=>{var Hr;return(Hr=Zi.current)===null||Hr===void 0?void 0:Hr.blur()}}});const Ri=Wt("input",as);let Pi;typeof Ci=="object"&&(Ci!=null&&Ci.clearIcon)?Pi=Ci:Ci&&(Pi={clearIcon:ne.createElement(y.Z,null)});const[Wo,ys]=(0,Yr.ZP)(Ri);return Wo(ne.createElement(wt,Object.assign({},xt,{disabled:bt,allowClear:Pi,className:b()(_t,Ve),classes:{affixWrapper:b()(`${Ri}-textarea-affix-wrapper`,{[`${Ri}-affix-wrapper-rtl`]:on==="rtl",[`${Ri}-affix-wrapper-borderless`]:!ge,[`${Ri}-affix-wrapper-sm`]:Ot==="small",[`${Ri}-affix-wrapper-lg`]:Ot==="large",[`${Ri}-textarea-show-count`]:io},(0,dt.Z)(`${Ri}-affix-wrapper`,hr),ys)},classNames:Object.assign(Object.assign({},ln),{textarea:b()({[`${Ri}-borderless`]:!ge,[`${Ri}-sm`]:Ot==="small",[`${Ri}-lg`]:Ot==="large"},(0,dt.Z)(Ri,hr),ys,ln==null?void 0:ln.textarea)}),prefixCls:Ri,suffix:Wn&&ne.createElement("span",{className:`${Ri}-textarea-suffix`},tn),showCount:io,ref:Zi})))})},41537:function(nt,V,m){"use strict";m.d(V,{Z:function(){return I}});var y=m(77617);function I(b,z){const k=(0,y.useRef)([]),N=()=>{k.current.push(setTimeout(()=>{var w,A,C,f;!((w=b.current)===null||w===void 0)&&w.input&&((A=b.current)===null||A===void 0?void 0:A.input.getAttribute("type"))==="password"&&(!((C=b.current)===null||C===void 0)&&C.input.hasAttribute("value"))&&((f=b.current)===null||f===void 0||f.input.removeAttribute("value"))}))};return(0,y.useEffect)(()=>(z&&N(),()=>k.current.forEach(w=>{w&&clearTimeout(w)})),[]),N}},68517:function(nt,V,m){"use strict";m.d(V,{Z:function(){return wt}});var y=m(77617),I=m(12124),b=m.n(I),z=m(67392),k=m(86818),N=m(89746),A=dt=>{const{getPrefixCls:Bt,direction:gt}=(0,y.useContext)(z.E_),{prefixCls:_n,className:Bn}=dt,Er=Bt("input-group",_n),Yr=Bt("input"),[oi,to]=(0,N.ZP)(Yr),yo=b()(Er,{[`${Er}-lg`]:dt.size==="large",[`${Er}-sm`]:dt.size==="small",[`${Er}-compact`]:dt.compact,[`${Er}-rtl`]:gt==="rtl"},to,Bn),yr=(0,y.useContext)(k.aM),Po=(0,y.useMemo)(()=>Object.assign(Object.assign({},yr),{isFormItemInput:!1}),[yr]);return oi(y.createElement("span",{className:yo,style:dt.style,onMouseEnter:dt.onMouseEnter,onMouseLeave:dt.onMouseLeave,onFocus:dt.onFocus,onBlur:dt.onBlur},y.createElement(k.aM.Provider,{value:Po},dt.children)))},C=m(44159),f=m(26508),S={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},P=S,W=m(91851),ne=function(Bt,gt){return y.createElement(W.Z,(0,f.Z)({},Bt,{ref:gt,icon:P}))},re=y.forwardRef(ne),ce=m(15997),pe=m(39029),he=m(9681),fe=m(41537),Be=function(dt,Bt){var gt={};for(var _n in dt)Object.prototype.hasOwnProperty.call(dt,_n)&&Bt.indexOf(_n)<0&&(gt[_n]=dt[_n]);if(dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bn=0,_n=Object.getOwnPropertySymbols(dt);Bn<_n.length;Bn++)Bt.indexOf(_n[Bn])<0&&Object.prototype.propertyIsEnumerable.call(dt,_n[Bn])&&(gt[_n[Bn]]=dt[_n[Bn]]);return gt};const Ie=dt=>dt?y.createElement(ce.Z,null):y.createElement(re,null),We={click:"onClick",hover:"onMouseOver"};var ve=y.forwardRef((dt,Bt)=>{const{visibilityToggle:gt=!0}=dt,_n=typeof gt=="object"&>.visible!==void 0,[Bn,Er]=(0,y.useState)(()=>_n?gt.visible:!1),Yr=(0,y.useRef)(null);y.useEffect(()=>{_n&&Er(gt.visible)},[_n,gt]);const oi=(0,fe.Z)(Yr),to=()=>{const{disabled:_t}=dt;_t||(Bn&&oi(),Er(xt=>{var Wt;const on=!xt;return typeof gt=="object"&&((Wt=gt.onVisibleChange)===null||Wt===void 0||Wt.call(gt,on)),on}))},yo=_t=>{const{action:xt="click",iconRender:Wt=Ie}=dt,on=We[xt]||"",Ot=Wt(Bn),Tt={[on]:to,className:`${_t}-icon`,key:"passwordIcon",onMouseDown:bt=>{bt.preventDefault()},onMouseUp:bt=>{bt.preventDefault()}};return y.cloneElement(y.isValidElement(Ot)?Ot:y.createElement("span",null,Ot),Tt)},{className:yr,prefixCls:Po,inputPrefixCls:as,size:ge}=dt,_o=Be(dt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:ci}=y.useContext(z.E_),Bi=ci("input",as),Ci=ci("input-password",Po),io=gt&&yo(Ci),ln=b()(Ci,yr,{[`${Ci}-${ge}`]:!!ge}),Ve=Object.assign(Object.assign({},(0,pe.Z)(_o,["suffix","iconRender","visibilityToggle"])),{type:Bn?"text":"password",className:ln,prefixCls:Bi,suffix:io});return ge&&(Ve.size=ge),y.createElement(C.Z,Object.assign({ref:(0,he.sQ)(Bt,Yr)},Ve))}),ye=m(46820),we=m(99486),Ce=m(38115),Ae=m(21843),me=m(58370),je=function(dt,Bt){var gt={};for(var _n in dt)Object.prototype.hasOwnProperty.call(dt,_n)&&Bt.indexOf(_n)<0&&(gt[_n]=dt[_n]);if(dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bn=0,_n=Object.getOwnPropertySymbols(dt);Bn<_n.length;Bn++)Bt.indexOf(_n[Bn])<0&&Object.prototype.propertyIsEnumerable.call(dt,_n[Bn])&&(gt[_n[Bn]]=dt[_n[Bn]]);return gt},Pt=y.forwardRef((dt,Bt)=>{const{prefixCls:gt,inputPrefixCls:_n,className:Bn,size:Er,suffix:Yr,enterButton:oi=!1,addonAfter:to,loading:yo,disabled:yr,onSearch:Po,onChange:as,onCompositionStart:ge,onCompositionEnd:_o}=dt,ci=je(dt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Bi,direction:Ci}=y.useContext(z.E_),io=y.useRef(!1),ln=Bi("input-search",gt),Ve=Bi("input",_n),{compactSize:_t}=(0,me.ri)(ln,Ci),xt=(0,Ae.Z)(ys=>{var xn;return(xn=Er!=null?Er:_t)!==null&&xn!==void 0?xn:ys}),Wt=y.useRef(null),on=ys=>{ys&&ys.target&&ys.type==="click"&&Po&&Po(ys.target.value,ys,{source:"clear"}),as&&as(ys)},Ot=ys=>{var xn;document.activeElement===((xn=Wt.current)===null||xn===void 0?void 0:xn.input)&&ys.preventDefault()},Tt=ys=>{var xn,Hr;Po&&Po((Hr=(xn=Wt.current)===null||xn===void 0?void 0:xn.input)===null||Hr===void 0?void 0:Hr.value,ys,{source:"input"})},bt=ys=>{io.current||yo||Tt(ys)},Ht=typeof oi=="boolean"?y.createElement(ye.Z,null):null,Wn=`${ln}-button`;let tn;const hr=oi||{},Zi=hr.type&&hr.type.__ANT_BUTTON===!0;Zi||hr.type==="button"?tn=(0,we.Tm)(hr,Object.assign({onMouseDown:Ot,onClick:ys=>{var xn,Hr;(Hr=(xn=hr==null?void 0:hr.props)===null||xn===void 0?void 0:xn.onClick)===null||Hr===void 0||Hr.call(xn,ys),Tt(ys)},key:"enterButton"},Zi?{className:Wn,size:xt}:{})):tn=y.createElement(Ce.ZP,{className:Wn,type:oi?"primary":void 0,size:xt,disabled:yr,key:"enterButton",onMouseDown:Ot,onClick:Tt,loading:yo,icon:Ht},oi),to&&(tn=[tn,(0,we.Tm)(to,{key:"addonAfter"})]);const Ri=b()(ln,{[`${ln}-rtl`]:Ci==="rtl",[`${ln}-${xt}`]:!!xt,[`${ln}-with-button`]:!!oi},Bn),Pi=ys=>{io.current=!0,ge==null||ge(ys)},Wo=ys=>{io.current=!1,_o==null||_o(ys)};return y.createElement(C.Z,Object.assign({ref:(0,he.sQ)(Wt,Bt),onPressEnter:bt},ci,{size:xt,onCompositionStart:Pi,onCompositionEnd:Wo,prefixCls:Ve,addonAfter:tn,suffix:Yr,onChange:on,className:Ri,disabled:yr}))}),ct=m(25279);const He=C.Z;He.Group=A,He.Search=Pt,He.TextArea=ct.Z,He.Password=ve;var wt=He},89746:function(nt,V,m){"use strict";m.d(V,{TM:function(){return Ie},Xy:function(){return A},bi:function(){return S},e5:function(){return Be},ik:function(){return P},nz:function(){return k},s7:function(){return W},x0:function(){return f}});var y=m(92068),I=m(73973),b=m(41788),z=m(24577);const k=We=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:We,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),N=We=>({borderColor:We.hoverBorderColor,backgroundColor:We.hoverBg}),w=We=>({borderColor:We.activeBorderColor,boxShadow:We.activeShadow,outline:0,backgroundColor:We.activeBg}),A=We=>({color:We.colorTextDisabled,backgroundColor:We.colorBgContainerDisabled,borderColor:We.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},N((0,b.TS)(We,{hoverBorderColor:We.colorBorder,hoverBg:We.colorBgContainerDisabled})))}),C=We=>{const{paddingBlockLG:De,fontSizeLG:ve,lineHeightLG:ye,borderRadiusLG:we,paddingInlineLG:Ce}=We;return{padding:`${De}px ${Ce}px`,fontSize:ve,lineHeight:ye,borderRadius:we}},f=We=>({padding:`${We.paddingBlockSM}px ${We.paddingInlineSM}px`,borderRadius:We.borderRadiusSM}),S=(We,De)=>{const{componentCls:ve,colorError:ye,colorWarning:we,errorActiveShadow:Ce,warningActiveShadow:Ae,colorErrorBorderHover:me,colorWarningBorderHover:je}=We;return{[`&-status-error:not(${De}-disabled):not(${De}-borderless)${De}`]:{borderColor:ye,"&:hover":{borderColor:me},"&:focus, &:focus-within":Object.assign({},w((0,b.TS)(We,{activeBorderColor:ye,activeShadow:Ce}))),[`${ve}-prefix, ${ve}-suffix`]:{color:ye}},[`&-status-warning:not(${De}-disabled):not(${De}-borderless)${De}`]:{borderColor:we,"&:hover":{borderColor:je},"&:focus, &:focus-within":Object.assign({},w((0,b.TS)(We,{activeBorderColor:we,activeShadow:Ae}))),[`${ve}-prefix, ${ve}-suffix`]:{color:we}}}},P=We=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${We.paddingBlock}px ${We.paddingInline}px`,color:We.colorText,fontSize:We.fontSize,lineHeight:We.lineHeight,backgroundColor:We.colorBgContainer,backgroundImage:"none",borderWidth:We.lineWidth,borderStyle:We.lineType,borderColor:We.colorBorder,borderRadius:We.borderRadius,transition:`all ${We.motionDurationMid}`},k(We.colorTextPlaceholder)),{"&:hover":Object.assign({},N(We)),"&:focus, &:focus-within":Object.assign({},w(We)),"&-disabled, &[disabled]":Object.assign({},A(We)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:We.controlHeight,lineHeight:We.lineHeight,verticalAlign:"bottom",transition:`all ${We.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},C(We)),"&-sm":Object.assign({},f(We)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),W=We=>{const{componentCls:De,antCls:ve}=We;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,["&[class*='col-']"]:{paddingInlineEnd:We.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${De}, &-lg > ${De}-group-addon`]:Object.assign({},C(We)),[`&-sm ${De}, &-sm > ${De}-group-addon`]:Object.assign({},f(We)),[`&-lg ${ve}-select-single ${ve}-select-selector`]:{height:We.controlHeightLG},[`&-sm ${ve}-select-single ${ve}-select-selector`]:{height:We.controlHeightSM},[`> ${De}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${De}-group`]:{["&-addon, &-wrap"]:{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${We.paddingInline}px`,color:We.colorText,fontWeight:"normal",fontSize:We.fontSize,textAlign:"center",backgroundColor:We.addonBg,border:`${We.lineWidth}px ${We.lineType} ${We.colorBorder}`,borderRadius:We.borderRadius,transition:`all ${We.motionDurationSlow}`,lineHeight:1,[`${ve}-select`]:{margin:`-${We.paddingBlock+1}px -${We.paddingInline}px`,[`&${ve}-select-single:not(${ve}-select-customize-input):not(${ve}-pagination-size-changer)`]:{[`${ve}-select-selector`]:{backgroundColor:"inherit",border:`${We.lineWidth}px ${We.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${ve}-select-selector`]:{color:We.colorPrimary}}},[`${ve}-cascader-picker`]:{margin:`-9px -${We.paddingInline}px`,backgroundColor:"transparent",[`${ve}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${De}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${De}-search-with-button &`]:{zIndex:0}}},[`> ${De}:first-child, ${De}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${ve}-select ${ve}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${De}-affix-wrapper`]:{[`&:not(:first-child) ${De}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${De}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${De}:last-child, ${De}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${ve}-select ${ve}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${De}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${De}-search &`]:{borderStartStartRadius:We.borderRadius,borderEndStartRadius:We.borderRadius}},[`&:not(:first-child), ${De}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${De}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,y.dF)()),{[`${De}-group-addon, ${De}-group-wrap, > ${De}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:We.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[` + & > ${De}-affix-wrapper, + & > ${De}-number-affix-wrapper, + & > ${ve}-picker-range + `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-We.lineWidth,borderInlineEndWidth:We.lineWidth},[`${De}`]:{float:"none"},[`& > ${ve}-select > ${ve}-select-selector, + & > ${ve}-select-auto-complete ${De}, + & > ${ve}-cascader-picker ${De}, + & > ${De}-group-wrapper ${De}`]:{borderInlineEndWidth:We.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${ve}-select-focused`]:{zIndex:1},[`& > ${ve}-select > ${ve}-select-arrow`]:{zIndex:1},[`& > *:first-child, + & > ${ve}-select:first-child > ${ve}-select-selector, + & > ${ve}-select-auto-complete:first-child ${De}, + & > ${ve}-cascader-picker:first-child ${De}`]:{borderStartStartRadius:We.borderRadius,borderEndStartRadius:We.borderRadius},[`& > *:last-child, + & > ${ve}-select:last-child > ${ve}-select-selector, + & > ${ve}-cascader-picker:last-child ${De}, + & > ${ve}-cascader-picker-focused:last-child ${De}`]:{borderInlineEndWidth:We.lineWidth,borderStartEndRadius:We.borderRadius,borderEndEndRadius:We.borderRadius},[`& > ${ve}-select-auto-complete ${De}`]:{verticalAlign:"top"},[`${De}-group-wrapper + ${De}-group-wrapper`]:{marginInlineStart:-We.lineWidth,[`${De}-affix-wrapper`]:{borderRadius:0}},[`${De}-group-wrapper:not(:last-child)`]:{[`&${De}-search > ${De}-group`]:{[`& > ${De}-group-addon > ${De}-search-button`]:{borderRadius:0},[`& > ${De}`]:{borderStartStartRadius:We.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:We.borderRadius}}}})}},ne=We=>{const{componentCls:De,controlHeightSM:ve,lineWidth:ye}=We,we=16,Ce=(ve-ye*2-we)/2;return{[De]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,y.Wf)(We)),P(We)),S(We,De)),{'&[type="color"]':{height:We.controlHeight,[`&${De}-lg`]:{height:We.controlHeightLG},[`&${De}-sm`]:{height:ve,paddingTop:Ce,paddingBottom:Ce}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},re=We=>{const{componentCls:De}=We;return{[`${De}-clear-icon`]:{margin:0,color:We.colorTextQuaternary,fontSize:We.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${We.motionDurationSlow}`,"&:hover":{color:We.colorTextTertiary},"&:active":{color:We.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${We.inputAffixPadding}px`}}}},ce=We=>{const{componentCls:De,inputAffixPadding:ve,colorTextDescription:ye,motionDurationSlow:we,colorIcon:Ce,colorIconHover:Ae,iconCls:me}=We;return{[`${De}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},P(We)),{display:"inline-flex",[`&:not(${De}-affix-wrapper-disabled):hover`]:{zIndex:1,[`${De}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${De}[disabled]`]:{background:"transparent"}},[`> input${De}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${De}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:We.paddingXS}},"&-show-count-suffix":{color:ye},"&-show-count-has-suffix":{marginInlineEnd:We.paddingXXS},"&-prefix":{marginInlineEnd:ve},"&-suffix":{marginInlineStart:ve}}}),re(We)),{[`${me}${De}-password-icon`]:{color:Ce,cursor:"pointer",transition:`all ${we}`,"&:hover":{color:Ae}}}),S(We,`${De}-affix-wrapper`))}},pe=We=>{const{componentCls:De,colorError:ve,colorWarning:ye,borderRadiusLG:we,borderRadiusSM:Ce}=We;return{[`${De}-group`]:Object.assign(Object.assign(Object.assign({},(0,y.Wf)(We)),W(We)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${De}-group-addon`]:{borderRadius:we,fontSize:We.fontSizeLG}},"&-sm":{[`${De}-group-addon`]:{borderRadius:Ce}},"&-status-error":{[`${De}-group-addon`]:{color:ve,borderColor:ve}},"&-status-warning":{[`${De}-group-addon`]:{color:ye,borderColor:ye}},"&-disabled":{[`${De}-group-addon`]:Object.assign({},A(We))},[`&:not(${De}-compact-first-item):not(${De}-compact-last-item)${De}-compact-item`]:{[`${De}, ${De}-group-addon`]:{borderRadius:0}},[`&:not(${De}-compact-last-item)${De}-compact-first-item`]:{[`${De}, ${De}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${De}-compact-first-item)${De}-compact-last-item`]:{[`${De}, ${De}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},he=We=>{const{componentCls:De,antCls:ve}=We,ye=`${De}-search`;return{[ye]:{[`${De}`]:{"&:hover, &:focus":{borderColor:We.colorPrimaryHover,[`+ ${De}-group-addon ${ye}-button:not(${ve}-btn-primary)`]:{borderInlineStartColor:We.colorPrimaryHover}}},[`${De}-affix-wrapper`]:{borderRadius:0},[`${De}-lg`]:{lineHeight:We.lineHeightLG-2e-4},[`> ${De}-group`]:{[`> ${De}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${ye}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:We.borderRadius,borderEndEndRadius:We.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${ye}-button:not(${ve}-btn-primary)`]:{color:We.colorTextDescription,"&:hover":{color:We.colorPrimaryHover},"&:active":{color:We.colorPrimaryActive},[`&${ve}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${ye}-button`]:{height:We.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${ye}-button`]:{height:We.controlHeightLG},[`&-small ${ye}-button`]:{height:We.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${De}-compact-item`]:{[`&:not(${De}-compact-last-item)`]:{[`${De}-group-addon`]:{[`${De}-search-button`]:{marginInlineEnd:-We.lineWidth,borderRadius:0}}},[`&:not(${De}-compact-first-item)`]:{[`${De},${De}-affix-wrapper`]:{borderRadius:0}},[`> ${De}-group-addon ${De}-search-button, + > ${De}, + ${De}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${De}-affix-wrapper-focused`]:{zIndex:2}}}}},fe=We=>{const{componentCls:De,paddingLG:ve}=We,ye=`${De}-textarea`;return{[ye]:{position:"relative","&-show-count":{[`> ${De}`]:{height:"100%"},[`${De}-data-count`]:{position:"absolute",bottom:-We.fontSize*We.lineHeight,insetInlineEnd:0,color:We.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${De}`]:{paddingInlineEnd:ve}},[`&-affix-wrapper${ye}-has-feedback`]:{[`${De}`]:{paddingInlineEnd:ve}},[`&-affix-wrapper${De}-affix-wrapper`]:{padding:0,[`> textarea${De}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${De}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${De}-clear-icon`]:{position:"absolute",insetInlineEnd:We.paddingXS,insetBlockStart:We.paddingXS},[`${ye}-suffix`]:{position:"absolute",top:0,insetInlineEnd:We.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function Be(We){return(0,b.TS)(We,{inputAffixPadding:We.paddingXXS})}const Ie=We=>{const{controlHeight:De,fontSize:ve,lineHeight:ye,lineWidth:we,controlHeightSM:Ce,controlHeightLG:Ae,fontSizeLG:me,lineHeightLG:je,paddingSM:xe,controlPaddingHorizontalSM:Pt,controlPaddingHorizontal:ct,colorFillAlter:He,colorPrimaryHover:wt,colorPrimary:dt,controlOutlineWidth:Bt,controlOutline:gt,colorErrorOutline:_n,colorWarningOutline:Bn}=We;return{paddingBlock:Math.max(Math.round((De-ve*ye)/2*10)/10-we,0),paddingBlockSM:Math.max(Math.round((Ce-ve*ye)/2*10)/10-we,0),paddingBlockLG:Math.ceil((Ae-me*je)/2*10)/10-we,paddingInline:xe-we,paddingInlineSM:Pt-we,paddingInlineLG:ct-we,addonBg:He,activeBorderColor:dt,hoverBorderColor:wt,activeShadow:`0 0 0 ${Bt}px ${gt}`,errorActiveShadow:`0 0 0 ${Bt}px ${_n}`,warningActiveShadow:`0 0 0 ${Bt}px ${Bn}`,hoverBg:"",activeBg:""}};V.ZP=(0,z.Z)("Input",We=>{const De=(0,b.TS)(We,Be(We));return[ne(De),fe(De),ce(De),pe(De),he(De),(0,I.c)(De)]},Ie)},5872:function(nt,V,m){"use strict";var y=m(77617);const I=(0,y.createContext)(void 0);V.Z=I},530:function(nt,V,m){"use strict";m.d(V,{Z:function(){return S}});var y=m(22075),I={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},b=I,k={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},w={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},b),timePickerLocale:Object.assign({},k)},A=w;const C="${label} is not a valid ${type}";var S={locale:"en",Pagination:y.Z,DatePicker:w,TimePicker:k,Calendar:A,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:C,method:C,array:C,object:C,number:C,date:C,boolean:C,integer:C,float:C,regexp:C,email:C,url:C,hex:C},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}}},879:function(nt,V,m){"use strict";var y=m(77617),I=m(5872),b=m(530);const z=(k,N)=>{const w=y.useContext(I.Z),A=y.useMemo(()=>{var f;const S=N||b.Z[k],P=(f=w==null?void 0:w[k])!==null&&f!==void 0?f:{};return Object.assign(Object.assign({},typeof S=="function"?S():S),P||{})},[k,N,w]),C=y.useMemo(()=>{const f=w==null?void 0:w.locale;return w!=null&&w.exist&&!f?b.Z.locale:f},[w]);return[A,C]};V.Z=z},63044:function(nt,V,m){"use strict";m.d(V,{J:function(){return N}});var y=m(77617),I=m(95470),b=m(58370),z=function(w,A){var C={};for(var f in w)Object.prototype.hasOwnProperty.call(w,f)&&A.indexOf(f)<0&&(C[f]=w[f]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var S=0,f=Object.getOwnPropertySymbols(w);S{const{children:C}=w,f=z(w,["children"]),S=y.useContext(k),P=y.useMemo(()=>Object.assign(Object.assign({},S),f),[S,f.prefixCls,f.mode,f.selectable]),W=(0,I.t4)(C),ne=(0,I.x1)(A,W?C.ref:null);return y.createElement(k.Provider,{value:P},y.createElement(b.BR,null,W?y.cloneElement(C,{ref:ne}):C))});V.Z=k},7205:function(nt,V,m){"use strict";m.d(V,{Z:function(){return _t}});var y=m(51917),I=m(77617),b=m(12124),z=m.n(b),k=function(xt,Wt){var on={};for(var Ot in xt)Object.prototype.hasOwnProperty.call(xt,Ot)&&Wt.indexOf(Ot)<0&&(on[Ot]=xt[Ot]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Tt=0,Ot=Object.getOwnPropertySymbols(xt);Tt{let xt=0;return function(){let Wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return xt+=1,`${Wt}${xt}`}})(),C=null;var f=null,S=m(67392),P=function(xt,Wt){var on={};for(var Ot in xt)Object.prototype.hasOwnProperty.call(xt,Ot)&&Wt.indexOf(Ot)<0&&(on[Ot]=xt[Ot]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Tt=0,Ot=Object.getOwnPropertySymbols(xt);Tt{const{prefixCls:Wt,className:on,dashed:Ot}=xt,Tt=P(xt,["prefixCls","className","dashed"]),{getPrefixCls:bt}=I.useContext(S.E_),Ht=bt("menu",Wt),Wn=z()({[`${Ht}-item-divider-dashed`]:!!Ot},on);return I.createElement(y.iz,Object.assign({className:Wn},Tt))},re=m(38930),ce=m(39029),pe=m(16175),he=m(99486),Be=(0,I.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),We=xt=>{var Wt;const{className:on,children:Ot,icon:Tt,title:bt,danger:Ht}=xt,{prefixCls:Wn,firstLevel:tn,direction:hr,disableMenuItemTitleTooltip:Zi,inlineCollapsed:Ri}=I.useContext(Be),Pi=Yi=>{const xo=I.createElement("span",{className:`${Wn}-title-content`},Ot);return(!Tt||(0,he.l$)(Ot)&&Ot.type==="span")&&Ot&&Yi&&tn&&typeof Ot=="string"?I.createElement("div",{className:`${Wn}-inline-collapsed-noicon`},Ot.charAt(0)):xo},{siderCollapsed:Wo}=I.useContext(w);let ys=bt;typeof bt=="undefined"?ys=tn?Ot:"":bt===!1&&(ys="");const xn={title:ys};!Wo&&!Ri&&(xn.title=null,xn.open=!1);const Hr=(0,re.Z)(Ot).length;let Jr=I.createElement(y.ck,Object.assign({},(0,ce.Z)(xt,["title","icon","danger"]),{className:z()({[`${Wn}-item-danger`]:Ht,[`${Wn}-item-only-child`]:(Tt?Hr+1:Hr)===1},on),title:typeof bt=="string"?bt:void 0}),(0,he.Tm)(Tt,{className:z()((0,he.l$)(Tt)?(Wt=Tt.props)===null||Wt===void 0?void 0:Wt.className:"",`${Wn}-item-icon`)}),Pi(Ri));return Zi||(Jr=I.createElement(pe.Z,Object.assign({},xn,{placement:hr==="rtl"?"left":"right",overlayClassName:`${Wn}-inline-collapsed-tooltip`}),Jr)),Jr},ve=xt=>{var Wt;const{popupClassName:on,icon:Ot,title:Tt,theme:bt}=xt,Ht=I.useContext(Be),{prefixCls:Wn,inlineCollapsed:tn,theme:hr}=Ht,Zi=(0,y.Xl)();let Ri;if(!Ot)Ri=tn&&!Zi.length&&Tt&&typeof Tt=="string"?I.createElement("div",{className:`${Wn}-inline-collapsed-noicon`},Tt.charAt(0)):I.createElement("span",{className:`${Wn}-title-content`},Tt);else{const Wo=(0,he.l$)(Tt)&&Tt.type==="span";Ri=I.createElement(I.Fragment,null,(0,he.Tm)(Ot,{className:z()((0,he.l$)(Ot)?(Wt=Ot.props)===null||Wt===void 0?void 0:Wt.className:"",`${Wn}-item-icon`)}),Wo?Tt:I.createElement("span",{className:`${Wn}-title-content`},Tt))}const Pi=I.useMemo(()=>Object.assign(Object.assign({},Ht),{firstLevel:!1}),[Ht]);return I.createElement(Be.Provider,{value:Pi},I.createElement(y.Wd,Object.assign({},(0,ce.Z)(xt,["icon"]),{title:Ri,popupClassName:z()(Wn,on,`${Wn}-${bt||hr}`)})))},ye=m(93319),we=m(95470),Ce=m(26612),Ae=function(xt,Wt){var on={};for(var Ot in xt)Object.prototype.hasOwnProperty.call(xt,Ot)&&Wt.indexOf(Ot)<0&&(on[Ot]=xt[Ot]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Tt=0,Ot=Object.getOwnPropertySymbols(xt);Tt{if(Wt&&typeof Wt=="object"){const Ot=Wt,{label:Tt,children:bt,key:Ht,type:Wn}=Ot,tn=Ae(Ot,["label","children","key","type"]),hr=Ht!=null?Ht:`tmp-${on}`;return bt||Wn==="group"?Wn==="group"?I.createElement(y.BW,Object.assign({key:hr},tn,{title:Tt}),me(bt)):I.createElement(ve,Object.assign({key:hr},tn,{title:Tt}),me(bt)):Wn==="divider"?I.createElement(ne,Object.assign({key:hr},tn)):I.createElement(We,Object.assign({key:hr},tn),Tt)}return null}).filter(Wt=>Wt)}function je(xt){return I.useMemo(()=>xt&&me(xt),[xt])}var xe=m(63044),Pt=m(64993),ct=m(92068),He=m(53710),wt=m(22759),dt=m(69601),Bt=m(24577),gt=m(41788),Bn=xt=>{const{componentCls:Wt,motionDurationSlow:on,horizontalLineHeight:Ot,colorSplit:Tt,lineWidth:bt,lineType:Ht,itemPaddingInline:Wn}=xt;return{[`${Wt}-horizontal`]:{lineHeight:Ot,border:0,borderBottom:`${bt}px ${Ht} ${Tt}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Wt}-item, ${Wt}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Wn},[`> ${Wt}-item:hover, + > ${Wt}-item-active, + > ${Wt}-submenu ${Wt}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Wt}-item, ${Wt}-submenu-title`]:{transition:[`border-color ${on}`,`background ${on}`].join(",")},[`${Wt}-submenu-arrow`]:{display:"none"}}}},Yr=xt=>{let{componentCls:Wt,menuArrowOffset:on}=xt;return{[`${Wt}-rtl`]:{direction:"rtl"},[`${Wt}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Wt}-rtl${Wt}-vertical, + ${Wt}-submenu-rtl ${Wt}-vertical`]:{[`${Wt}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${on})`},"&::after":{transform:`rotate(45deg) translateY(${on})`}}}}};const oi=xt=>Object.assign({},(0,ct.oN)(xt));var yo=(xt,Wt)=>{const{componentCls:on,itemColor:Ot,itemSelectedColor:Tt,groupTitleColor:bt,itemBg:Ht,subMenuItemBg:Wn,itemSelectedBg:tn,activeBarHeight:hr,activeBarWidth:Zi,activeBarBorderWidth:Ri,motionDurationSlow:Pi,motionEaseInOut:Wo,motionEaseOut:ys,itemPaddingInline:xn,motionDurationMid:Hr,itemHoverColor:Jr,lineType:Yi,colorSplit:xo,itemDisabledColor:na,dangerItemColor:Un,dangerItemHoverColor:Xn,dangerItemSelectedColor:Mr,dangerItemActiveBg:li,dangerItemSelectedBg:wr,itemHoverBg:qr,itemActiveBg:ii,menuSubMenuBg:rn,horizontalItemSelectedColor:Qn,horizontalItemSelectedBg:Vr,horizontalItemBorderRadius:so,horizontalItemHoverBg:rs,popupBg:zt}=xt;return{[`${on}-${Wt}, ${on}-${Wt} > ${on}`]:{color:Ot,background:Ht,[`&${on}-root:focus-visible`]:Object.assign({},oi(xt)),[`${on}-item-group-title`]:{color:bt},[`${on}-submenu-selected`]:{[`> ${on}-submenu-title`]:{color:Tt}},[`${on}-item-disabled, ${on}-submenu-disabled`]:{color:`${na} !important`},[`${on}-item:not(${on}-item-selected):not(${on}-submenu-selected)`]:{[`&:hover, > ${on}-submenu-title:hover`]:{color:Jr}},[`&:not(${on}-horizontal)`]:{[`${on}-item:not(${on}-item-selected)`]:{"&:hover":{backgroundColor:qr},"&:active":{backgroundColor:ii}},[`${on}-submenu-title`]:{"&:hover":{backgroundColor:qr},"&:active":{backgroundColor:ii}}},[`${on}-item-danger`]:{color:Un,[`&${on}-item:hover`]:{[`&:not(${on}-item-selected):not(${on}-submenu-selected)`]:{color:Xn}},[`&${on}-item:active`]:{background:li}},[`${on}-item a`]:{"&, &:hover":{color:"inherit"}},[`${on}-item-selected`]:{color:Tt,[`&${on}-item-danger`]:{color:Mr},["a, a:hover"]:{color:"inherit"}},[`& ${on}-item-selected`]:{backgroundColor:tn,[`&${on}-item-danger`]:{backgroundColor:wr}},[`${on}-item, ${on}-submenu-title`]:{[`&:not(${on}-item-disabled):focus-visible`]:Object.assign({},oi(xt))},[`&${on}-submenu > ${on}`]:{backgroundColor:rn},[`&${on}-popup > ${on}`]:{backgroundColor:zt},[`&${on}-horizontal`]:Object.assign(Object.assign({},Wt==="dark"?{borderBottom:0}:{}),{[`> ${on}-item, > ${on}-submenu`]:{top:Ri,marginTop:-Ri,marginBottom:0,borderRadius:so,"&::after":{position:"absolute",insetInline:xn,bottom:0,borderBottom:`${hr}px solid transparent`,transition:`border-color ${Pi} ${Wo}`,content:'""'},["&:hover, &-active, &-open"]:{background:rs,"&::after":{borderBottomWidth:hr,borderBottomColor:Qn}},["&-selected"]:{color:Qn,backgroundColor:Vr,"&:hover":{backgroundColor:Vr},"&::after":{borderBottomWidth:hr,borderBottomColor:Qn}}}}),[`&${on}-root`]:{[`&${on}-inline, &${on}-vertical`]:{borderInlineEnd:`${Ri}px ${Yi} ${xo}`}},[`&${on}-inline`]:{[`${on}-sub${on}-inline`]:{background:Wn},[`${on}-item, ${on}-submenu-title`]:Ri&&Zi?{width:`calc(100% + ${Ri}px)`}:{},[`${on}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Zi}px solid ${Tt}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Hr} ${ys}`,`opacity ${Hr} ${ys}`].join(","),content:'""'},[`&${on}-item-danger`]:{"&::after":{borderInlineEndColor:Mr}}},[`${on}-selected, ${on}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Hr} ${Wo}`,`opacity ${Hr} ${Wo}`].join(",")}}}}}};const yr=xt=>{const{componentCls:Wt,itemHeight:on,itemMarginInline:Ot,padding:Tt,menuArrowSize:bt,marginXS:Ht,itemMarginBlock:Wn}=xt,tn=Tt+bt+Ht;return{[`${Wt}-item`]:{position:"relative",overflow:"hidden"},[`${Wt}-item, ${Wt}-submenu-title`]:{height:on,lineHeight:`${on}px`,paddingInline:Tt,overflow:"hidden",textOverflow:"ellipsis",marginInline:Ot,marginBlock:Wn,width:`calc(100% - ${Ot*2}px)`},[`> ${Wt}-item, + > ${Wt}-submenu > ${Wt}-submenu-title`]:{height:on,lineHeight:`${on}px`},[`${Wt}-item-group-list ${Wt}-submenu-title, + ${Wt}-submenu-title`]:{paddingInlineEnd:tn}}};var as=xt=>{const{componentCls:Wt,iconCls:on,itemHeight:Ot,colorTextLightSolid:Tt,dropdownWidth:bt,controlHeightLG:Ht,motionDurationMid:Wn,motionEaseOut:tn,paddingXL:hr,itemMarginInline:Zi,fontSizeLG:Ri,motionDurationSlow:Pi,paddingXS:Wo,boxShadowSecondary:ys,collapsedWidth:xn,collapsedIconSize:Hr}=xt,Jr={height:Ot,lineHeight:`${Ot}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Wt]:{["&-inline, &-vertical"]:Object.assign({[`&${Wt}-root`]:{boxShadow:"none"}},yr(xt))},[`${Wt}-submenu-popup`]:{[`${Wt}-vertical`]:Object.assign(Object.assign({},yr(xt)),{boxShadow:ys})}},{[`${Wt}-submenu-popup ${Wt}-vertical${Wt}-sub`]:{minWidth:bt,maxHeight:`calc(100vh - ${Ht*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Wt}-inline`]:{width:"100%",[`&${Wt}-root`]:{[`${Wt}-item, ${Wt}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Pi}`,`background ${Pi}`,`padding ${Wn} ${tn}`].join(","),[`> ${Wt}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Wt}-sub${Wt}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Wt}-submenu > ${Wt}-submenu-title`]:Jr,[`& ${Wt}-item-group-title`]:{paddingInlineStart:hr}},[`${Wt}-item`]:Jr}},{[`${Wt}-inline-collapsed`]:{width:xn,[`&${Wt}-root`]:{[`${Wt}-item, ${Wt}-submenu ${Wt}-submenu-title`]:{[`> ${Wt}-inline-collapsed-noicon`]:{fontSize:Ri,textAlign:"center"}}},[`> ${Wt}-item, + > ${Wt}-item-group > ${Wt}-item-group-list > ${Wt}-item, + > ${Wt}-item-group > ${Wt}-item-group-list > ${Wt}-submenu > ${Wt}-submenu-title, + > ${Wt}-submenu > ${Wt}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Ri/2}px - ${Zi}px)`,textOverflow:"clip",[` + ${Wt}-submenu-arrow, + ${Wt}-submenu-expand-icon + `]:{opacity:0},[`${Wt}-item-icon, ${on}`]:{margin:0,fontSize:Hr,lineHeight:`${Ot}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Wt}-item-icon, ${on}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Wt}-item-icon, ${on}`]:{display:"none"},"a, a:hover":{color:Tt}},[`${Wt}-item-group-title`]:Object.assign(Object.assign({},ct.vS),{paddingInline:Wo})}}]};const ge=xt=>{const{componentCls:Wt,motionDurationSlow:on,motionDurationMid:Ot,motionEaseInOut:Tt,motionEaseOut:bt,iconCls:Ht,iconSize:Wn,iconMarginInlineEnd:tn}=xt;return{[`${Wt}-item, ${Wt}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${on}`,`background ${on}`,`padding ${on} ${Tt}`].join(","),[`${Wt}-item-icon, ${Ht}`]:{minWidth:Wn,fontSize:Wn,transition:[`font-size ${Ot} ${bt}`,`margin ${on} ${Tt}`,`color ${on}`].join(","),"+ span":{marginInlineStart:tn,opacity:1,transition:[`opacity ${on} ${Tt}`,`margin ${on}`,`color ${on}`].join(",")}},[`${Wt}-item-icon`]:Object.assign({},(0,ct.Ro)()),[`&${Wt}-item-only-child`]:{[`> ${Ht}, > ${Wt}-item-icon`]:{marginInlineEnd:0}}},[`${Wt}-item-disabled, ${Wt}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Wt}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},_o=xt=>{const{componentCls:Wt,motionDurationSlow:on,motionEaseInOut:Ot,borderRadius:Tt,menuArrowSize:bt,menuArrowOffset:Ht}=xt;return{[`${Wt}-submenu`]:{["&-expand-icon, &-arrow"]:{position:"absolute",top:"50%",insetInlineEnd:xt.margin,width:bt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${on} ${Ot}, opacity ${on}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:bt*.6,height:bt*.15,backgroundColor:"currentcolor",borderRadius:Tt,transition:[`background ${on} ${Ot}`,`transform ${on} ${Ot}`,`top ${on} ${Ot}`,`color ${on} ${Ot}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Ht})`},"&::after":{transform:`rotate(-45deg) translateY(${Ht})`}}}}},ci=xt=>{const{antCls:Wt,componentCls:on,fontSize:Ot,motionDurationSlow:Tt,motionDurationMid:bt,motionEaseInOut:Ht,paddingXS:Wn,padding:tn,colorSplit:hr,lineWidth:Zi,zIndexPopup:Ri,borderRadiusLG:Pi,subMenuItemBorderRadius:Wo,menuArrowSize:ys,menuArrowOffset:xn,lineType:Hr,menuPanelMaskInset:Jr,groupTitleLineHeight:Yi,groupTitleFontSize:xo}=xt;return[{"":{[`${on}`]:Object.assign(Object.assign({},(0,ct.dF)()),{["&-hidden"]:{display:"none"}})},[`${on}-submenu-hidden`]:{display:"none"}},{[on]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ct.Wf)(xt)),(0,ct.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Ot,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Tt} cubic-bezier(0.2, 0, 0, 1) 0s`,["ul, ol"]:{margin:0,padding:0,listStyle:"none"},["&-overflow"]:{display:"flex",[`${on}-item`]:{flex:"none"}},[`${on}-item, ${on}-submenu, ${on}-submenu-title`]:{borderRadius:xt.itemBorderRadius},[`${on}-item-group-title`]:{padding:`${Wn}px ${tn}px`,fontSize:xo,lineHeight:Yi,transition:`all ${Tt}`},[`&-horizontal ${on}-submenu`]:{transition:[`border-color ${Tt} ${Ht}`,`background ${Tt} ${Ht}`].join(",")},[`${on}-submenu, ${on}-submenu-inline`]:{transition:[`border-color ${Tt} ${Ht}`,`background ${Tt} ${Ht}`,`padding ${bt} ${Ht}`].join(",")},[`${on}-submenu ${on}-sub`]:{cursor:"initial",transition:[`background ${Tt} ${Ht}`,`padding ${Tt} ${Ht}`].join(",")},[`${on}-title-content`]:{transition:`color ${Tt}`,[`> ${Wt}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${on}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${on}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:hr,borderStyle:Hr,borderWidth:0,borderTopWidth:Zi,marginBlock:Zi,padding:0,"&-dashed":{borderStyle:"dashed"}}}),ge(xt)),{[`${on}-item-group`]:{[`${on}-item-group-list`]:{margin:0,padding:0,[`${on}-item, ${on}-submenu-title`]:{paddingInline:`${Ot*2}px ${tn}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ri,borderRadius:Pi,boxShadow:"none",transformOrigin:"0 0",[`&${on}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Jr}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Jr},[` &-placement-leftTop, &-placement-bottomRight, `]:{transformOrigin:"100% 0"},[` @@ -7808,100 +7861,100 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter `]:{transformOrigin:"0 0"},[` &-placement-leftTop, &-placement-leftBottom - `]:{paddingInlineEnd:Ct.paddingXS},[` + `]:{paddingInlineEnd:xt.paddingXS},[` &-placement-rightTop, &-placement-rightBottom - `]:{paddingInlineStart:Ct.paddingXS},[` + `]:{paddingInlineStart:xt.paddingXS},[` &-placement-topRight, &-placement-topLeft - `]:{paddingBottom:Ct.paddingXS},[` + `]:{paddingBottom:xt.paddingXS},[` &-placement-bottomRight, &-placement-bottomLeft - `]:{paddingTop:Ct.paddingXS},[`> ${on}`]:Object.assign(Object.assign(Object.assign({borderRadius:Pi},ve(Ct)),_o(Ct)),{[`${on}-item, ${on}-submenu > ${on}-submenu-title`]:{borderRadius:$o},[`${on}-submenu-title::after`]:{transition:`transform ${Tt} ${Ht}`}})}}),_o(Ct)),{[`&-inline-collapsed ${on}-submenu-arrow, - &-inline ${on}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${xn})`},"&::after":{transform:`rotate(45deg) translateX(-${xn})`}},[`${on}-submenu-open${on}-submenu-inline > ${on}-submenu-title > ${on}-submenu-arrow`]:{transform:`translateY(-${ys*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${xn})`},"&::before":{transform:`rotate(45deg) translateX(${xn})`}}})},{[`${jt}-layout-header`]:{[on]:{lineHeight:"inherit"}}}]};var Bi=(Ct,jt)=>(0,Bt.Z)("Menu",Ot=>{if(jt===!1)return[];const{colorBgElevated:Tt,colorPrimary:xt,colorTextLightSolid:Ht,controlHeightLG:Zn,fontSize:tn,darkItemColor:hr,darkDangerItemColor:Zi,darkItemBg:Ri,darkSubMenuItemBg:Pi,darkItemSelectedColor:$o,darkItemSelectedBg:ys,darkDangerItemSelectedBg:xn,darkItemHoverBg:Hr,darkGroupTitleColor:Jr,darkItemHoverColor:Yi,darkItemDisabledColor:xo,darkDangerItemHoverColor:na,darkDangerItemSelectedColor:Vn,darkDangerItemActiveBg:Xn}=Ot,Mr=tn/7*5,li=(0,mt.TS)(Ot,{menuArrowSize:Mr,menuHorizontalHeight:Zn*1.15,menuArrowOffset:`${Mr*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Tt}),Cr=(0,mt.TS)(li,{itemColor:hr,itemHoverColor:Yi,groupTitleColor:Jr,itemSelectedColor:$o,itemBg:Ri,popupBg:Ri,subMenuItemBg:Pi,itemActiveBg:"transparent",itemSelectedBg:ys,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Hr,itemDisabledColor:xo,dangerItemColor:Zi,dangerItemHoverColor:na,dangerItemSelectedColor:Vn,dangerItemActiveBg:Xn,dangerItemSelectedBg:xn,menuSubMenuBg:Pi,horizontalItemSelectedColor:Ht,horizontalItemSelectedBg:xt});return[ci(li),Bn(li),ss(li),yo(li,"light"),yo(Cr,"dark"),Yr(li),(0,Ue.Z)(li),(0,bt.oN)(li,"slide-up"),(0,bt.oN)(li,"slide-down"),(0,ht._y)(li,"zoom-big")]},Ot=>{const{colorPrimary:Tt,colorError:xt,colorTextDisabled:Ht,colorErrorBg:Zn,colorText:tn,colorTextDescription:hr,colorBgContainer:Zi,colorFillAlter:Ri,colorFillContent:Pi,lineWidth:$o,lineWidthBold:ys,controlItemBgActive:xn,colorBgTextHover:Hr,controlHeightLG:Jr,lineHeight:Yi,colorBgElevated:xo,marginXXS:na,padding:Vn,fontSize:Xn,controlHeightSM:Mr,fontSizeLG:li,colorTextLightSolid:Cr,colorErrorHover:qr}=Ot,ii=new Pt.C(Cr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Ot.zIndexPopupBase+50,radiusItem:Ot.borderRadiusLG,itemBorderRadius:Ot.borderRadiusLG,radiusSubMenuItem:Ot.borderRadiusSM,subMenuItemBorderRadius:Ot.borderRadiusSM,colorItemText:tn,itemColor:tn,colorItemTextHover:tn,itemHoverColor:tn,colorItemTextHoverHorizontal:Tt,horizontalItemHoverColor:Tt,colorGroupTitle:hr,groupTitleColor:hr,colorItemTextSelected:Tt,itemSelectedColor:Tt,colorItemTextSelectedHorizontal:Tt,horizontalItemSelectedColor:Tt,colorItemBg:Zi,itemBg:Zi,colorItemBgHover:Hr,itemHoverBg:Hr,colorItemBgActive:Pi,itemActiveBg:xn,colorSubItemBg:Ri,subMenuItemBg:Ri,colorItemBgSelected:xn,itemSelectedBg:xn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:ys,activeBarHeight:ys,colorActiveBarBorderSize:$o,activeBarBorderWidth:$o,colorItemTextDisabled:Ht,itemDisabledColor:Ht,colorDangerItemText:xt,dangerItemColor:xt,colorDangerItemTextHover:xt,dangerItemHoverColor:xt,colorDangerItemTextSelected:xt,dangerItemSelectedColor:xt,colorDangerItemBgActive:Zn,dangerItemActiveBg:Zn,colorDangerItemBgSelected:Zn,dangerItemSelectedBg:Zn,itemMarginInline:Ot.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Jr,groupTitleLineHeight:Yi,collapsedWidth:Jr*2,popupBg:xo,itemMarginBlock:na,itemPaddingInline:Vn,horizontalLineHeight:`${Jr*1.15}px`,iconSize:Xn,iconMarginInlineEnd:Mr-Xn,collapsedIconSize:li,groupTitleFontSize:Xn,darkItemDisabledColor:new Pt.C(Cr).setAlpha(.25).toRgbString(),darkItemColor:ii,darkDangerItemColor:xt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Cr,darkItemSelectedBg:Tt,darkDangerItemSelectedBg:xt,darkItemHoverBg:"transparent",darkGroupTitleColor:ii,darkItemHoverColor:Cr,darkDangerItemHoverColor:qr,darkDangerItemSelectedColor:Cr,darkDangerItemActiveBg:xt}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(Ct),wi=function(Ct,jt){var on={};for(var Ot in Ct)Object.prototype.hasOwnProperty.call(Ct,Ot)&&jt.indexOf(Ot)<0&&(on[Ot]=Ct[Ot]);if(Ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Tt=0,Ot=Object.getOwnPropertySymbols(Ct);Tt{var on,Ot;const Tt=A.useContext(Ce.Z),xt=Tt||{},{getPrefixCls:Ht,getPopupContainer:Zn,direction:tn,menu:hr}=A.useContext(S.E_),Zi=Ht(),{prefixCls:Ri,className:Pi,style:$o,theme:ys="light",expandIcon:xn,_internalDisableMenuItemTitleTooltip:Hr,inlineCollapsed:Jr,siderCollapsed:Yi,items:xo,children:na,rootClassName:Vn,mode:Xn,selectable:Mr,onClick:li,overflowedIndicatorPopupClassName:Cr}=Ct,qr=wi(Ct,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),ii=(0,ie.Z)(qr,["collapsedWidth"]),rn=We(xo)||na;(on=xt.validator)===null||on===void 0||on.call(xt,{mode:Xn});const Jn=(0,xe.zX)(function(){var Kr;li==null||li.apply(void 0,arguments),(Kr=xt.onClick)===null||Kr===void 0||Kr.call(xt)}),Vr=xt.mode||Xn,so=Mr!=null?Mr:xt.selectable,rs=A.useMemo(()=>Yi!==void 0?Yi:Jr,[Jr,Yi]),zt={horizontal:{motionName:`${Zi}-slide-up`},inline:(0,be.Z)(Zi),other:{motionName:`${Zi}-zoom-big`}},pn=Ht("menu",Ri||xt.prefixCls),[_r,Gr]=Bi(pn,!Tt),ui=z()(`${pn}-${ys}`,hr==null?void 0:hr.className,Pi);let Ci;if(typeof xn=="function")Ci=xn;else if(xn===null||xn===!1)Ci=null;else if(xt.expandIcon===null||xt.expandIcon===!1)Ci=null;else{const Kr=xn!=null?xn:xt.expandIcon;Ci=(0,he.Tm)(Kr,{className:z()(`${pn}-submenu-expand-icon`,(0,he.l$)(Kr)?(Ot=Kr.props)===null||Ot===void 0?void 0:Ot.className:"")})}const lo=A.useMemo(()=>({prefixCls:pn,inlineCollapsed:rs||!1,direction:tn,firstLevel:!0,theme:ys,mode:Vr,disableMenuItemTitleTooltip:Hr}),[pn,rs,tn,Hr,ys]);return _r(A.createElement(Ce.Z.Provider,{value:null},A.createElement(ke.Provider,{value:lo},A.createElement(y.ZP,Object.assign({getPopupContainer:Zn,overflowedIndicator:A.createElement(ye.Z,null),overflowedIndicatorPopupClassName:z()(pn,`${pn}-${ys}`,Cr),mode:Vr,selectable:so,onClick:Jn},ii,{inlineCollapsed:rs,style:Object.assign(Object.assign({},hr==null?void 0:hr.style),$o),className:ui,prefixCls:pn,direction:tn,defaultMotions:zt,expandIcon:Ci,ref:jt,rootClassName:z()(Vn,Gr)}),rn))))});const Ve=(0,A.forwardRef)((Ct,jt)=>{const on=(0,A.useRef)(null),Ot=A.useContext(w);return(0,A.useImperativeHandle)(jt,()=>({menu:on.current,focus:Tt=>{var xt;(xt=on.current)===null||xt===void 0||xt.focus(Tt)}})),A.createElement(ln,Object.assign({ref:on},Ct,Ot))});Ve.Item=Ne,Ve.SubMenu=ge,Ve.Divider=re,Ve.ItemGroup=y.BW;var _t=Ve},10154:function(nt,V,m){"use strict";m.d(V,{ZP:function(){return li}});var y=m(74902),A=m(67294),b=m(38135),z=m(94740),k=m(76278),N=m(41322),w=m(26702),I=m(1558),C=m(22508),f=m(94184),S=m.n(f),P=m(97685),j=m(91),re=m(1413),J=m(73935),ie=m(87462),de=m(4942),he=m(82225),fe=m(15105),ke=A.forwardRef(function(Cr,qr){var ii=Cr.prefixCls,rn=Cr.style,Jn=Cr.className,Vr=Cr.duration,so=Vr===void 0?4.5:Vr,rs=Cr.eventKey,zt=Cr.content,pn=Cr.closable,_r=Cr.closeIcon,Gr=_r===void 0?"x":_r,ui=Cr.props,Ci=Cr.onClick,lo=Cr.onNoticeClose,Kr=Cr.times,ti=Cr.hovering,Wi=A.useState(!1),Tr=(0,P.Z)(Wi,2),Qt=Tr[0],Gn=Tr[1],yi=ti||Qt,Ln=function(){lo(rs)},Si=function(Ni){(Ni.key==="Enter"||Ni.code==="Enter"||Ni.keyCode===fe.Z.ENTER)&&Ln()};A.useEffect(function(){if(!yi&&so>0){var vi=setTimeout(function(){Ln()},so*1e3);return function(){clearTimeout(vi)}}},[so,yi,Kr]);var tr="".concat(ii,"-notice");return A.createElement("div",(0,ie.Z)({},ui,{ref:qr,className:S()(tr,Jn,(0,de.Z)({},"".concat(tr,"-closable"),pn)),style:rn,onMouseEnter:function(Ni){var kr;Gn(!0),ui==null||(kr=ui.onMouseEnter)===null||kr===void 0||kr.call(ui,Ni)},onMouseLeave:function(Ni){var kr;Gn(!1),ui==null||(kr=ui.onMouseLeave)===null||kr===void 0||kr.call(ui,Ni)},onClick:Ci}),A.createElement("div",{className:"".concat(tr,"-content")},zt),pn&&A.createElement("a",{tabIndex:0,className:"".concat(tr,"-close"),onKeyDown:Si,onClick:function(Ni){Ni.preventDefault(),Ni.stopPropagation(),Ln()}},Gr))}),we=ke,Ne=A.createContext({}),Ee=function(qr){var ii=qr.children,rn=qr.classNames;return A.createElement(Ne.Provider,{value:{classNames:rn}},ii)},ge=Ee,ye=m(71002),xe=8,be=3,Ie=16,me=function(qr){var ii={offset:xe,threshold:be,gap:Ie};if(qr&&(0,ye.Z)(qr)==="object"){var rn,Jn,Vr;ii.offset=(rn=qr.offset)!==null&&rn!==void 0?rn:xe,ii.threshold=(Jn=qr.threshold)!==null&&Jn!==void 0?Jn:be,ii.gap=(Vr=qr.gap)!==null&&Vr!==void 0?Vr:Ie}return[!!qr,ii]},We=me,Ce=function(qr){var ii,rn=qr.configList,Jn=qr.placement,Vr=qr.prefixCls,so=qr.className,rs=qr.style,zt=qr.motion,pn=qr.onAllNoticeRemoved,_r=qr.onNoticeClose,Gr=qr.stack,ui=(0,A.useContext)(Ne),Ci=ui.classNames,lo=(0,A.useRef)({}),Kr=(0,A.useState)(null),ti=(0,P.Z)(Kr,2),Wi=ti[0],Tr=ti[1],Qt=(0,A.useState)([]),Gn=(0,P.Z)(Qt,2),yi=Gn[0],Ln=Gn[1],Si=rn.map(function(ja){return{config:ja,key:ja.key}}),tr=We(Gr),vi=(0,P.Z)(tr,2),Ni=vi[0],kr=vi[1],Qn=kr.offset,ds=kr.threshold,_a=kr.gap,da=Ni&&(yi.length>0||Si.length<=ds),zs=typeof zt=="function"?zt(Jn):zt;return(0,A.useEffect)(function(){Ni&&yi.length>1&&Ln(function(ja){return ja.filter(function(Co){return Si.some(function(dl){var Fr=dl.key;return Co===Fr})})})},[yi,Si,Ni]),(0,A.useEffect)(function(){var ja;if(Ni&&lo.current[(ja=Si[Si.length-1])===null||ja===void 0?void 0:ja.key]){var Co;Tr(lo.current[(Co=Si[Si.length-1])===null||Co===void 0?void 0:Co.key])}},[Si,Ni]),A.createElement(he.V4,(0,ie.Z)({key:Jn,className:S()(Vr,"".concat(Vr,"-").concat(Jn),Ci==null?void 0:Ci.list,so,(ii={},(0,de.Z)(ii,"".concat(Vr,"-stack"),!!Ni),(0,de.Z)(ii,"".concat(Vr,"-stack-expanded"),da),ii)),style:rs,keys:Si,motionAppear:!0},zs,{onAllRemoved:function(){pn(Jn)}}),function(ja,Co){var dl=ja.config,Fr=ja.className,fs=ja.style,jo=ja.index,Es=dl,xs=Es.key,Za=Es.times,tl=dl,xl=tl.className,Qa=tl.style,si=Si.findIndex(function(jn){return jn.key===xs}),co={};if(Ni){var dn=Si.length-1-(si>-1?si:jo-1),Dn=Jn==="top"||Jn==="bottom"?"-50%":"0";if(dn>0){var Nn,tt,dt;co.height=da?(Nn=lo.current[xs])===null||Nn===void 0?void 0:Nn.offsetHeight:Wi==null?void 0:Wi.offsetHeight;for(var vt=0,ze=0;ze-1?lo.current[xs]=xr:delete lo.current[xs]},prefixCls:Vr,className:S()(xl,Ci==null?void 0:Ci.notice),times:Za,key:xs,eventKey:xs,onNoticeClose:_r,hovering:Ni&&yi.length>0})))})},Pt=Ce,ct=A.forwardRef(function(Cr,qr){var ii=Cr.prefixCls,rn=ii===void 0?"rc-notification":ii,Jn=Cr.container,Vr=Cr.motion,so=Cr.maxCount,rs=Cr.className,zt=Cr.style,pn=Cr.onAllRemoved,_r=Cr.stack,Gr=Cr.renderNotifications,ui=A.useState([]),Ci=(0,P.Z)(ui,2),lo=Ci[0],Kr=Ci[1],ti=function(vi){var Ni,kr=lo.find(function(Qn){return Qn.key===vi});kr==null||(Ni=kr.onClose)===null||Ni===void 0||Ni.call(kr),Kr(function(Qn){return Qn.filter(function(ds){return ds.key!==vi})})};A.useImperativeHandle(qr,function(){return{open:function(vi){Kr(function(Ni){var kr=(0,y.Z)(Ni),Qn=kr.findIndex(function(da){return da.key===vi.key}),ds=(0,re.Z)({},vi);if(Qn>=0){var _a;ds.times=(((_a=Ni[Qn])===null||_a===void 0?void 0:_a.times)||0)+1,kr[Qn]=ds}else ds.times=0,kr.push(ds);return so>0&&kr.length>so&&(kr=kr.slice(-so)),kr})},close:function(vi){ti(vi)},destroy:function(){Kr([])}}});var Wi=A.useState({}),Tr=(0,P.Z)(Wi,2),Qt=Tr[0],Gn=Tr[1];A.useEffect(function(){var tr={};lo.forEach(function(vi){var Ni=vi.placement,kr=Ni===void 0?"topRight":Ni;kr&&(tr[kr]=tr[kr]||[],tr[kr].push(vi))}),Object.keys(Qt).forEach(function(vi){tr[vi]=tr[vi]||[]}),Gn(tr)},[lo]);var yi=function(vi){Gn(function(Ni){var kr=(0,re.Z)({},Ni),Qn=kr[vi]||[];return Qn.length||delete kr[vi],kr})},Ln=A.useRef(!1);if(A.useEffect(function(){Object.keys(Qt).length>0?Ln.current=!0:Ln.current&&(pn==null||pn(),Ln.current=!1)},[Qt]),!Jn)return null;var Si=Object.keys(Qt);return(0,J.createPortal)(A.createElement(A.Fragment,null,Si.map(function(tr){var vi=Qt[tr],Ni=A.createElement(Pt,{key:tr,configList:vi,placement:tr,prefixCls:rn,className:rs==null?void 0:rs(tr),style:zt==null?void 0:zt(tr),motion:Vr,onNoticeClose:ti,onAllNoticeRemoved:yi,stack:_r});return Gr?Gr(Ni,{prefixCls:rn,key:tr}):Ni})),Jn)}),Ue=ct,bt=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],ht=function(){return document.body},Bt=0;function mt(){for(var Cr={},qr=arguments.length,ii=new Array(qr),rn=0;rn0&&arguments[0]!==void 0?arguments[0]:{},qr=Cr.getContainer,ii=qr===void 0?ht:qr,rn=Cr.motion,Jn=Cr.prefixCls,Vr=Cr.maxCount,so=Cr.className,rs=Cr.style,zt=Cr.onAllRemoved,pn=Cr.stack,_r=Cr.renderNotifications,Gr=(0,j.Z)(Cr,bt),ui=A.useState(),Ci=(0,P.Z)(ui,2),lo=Ci[0],Kr=Ci[1],ti=A.useRef(),Wi=A.createElement(Ue,{container:lo,ref:ti,prefixCls:Jn,motion:rn,maxCount:Vr,className:so,style:rs,onAllRemoved:zt,stack:pn,renderNotifications:_r}),Tr=A.useState([]),Qt=(0,P.Z)(Tr,2),Gn=Qt[0],yi=Qt[1],Ln=A.useMemo(function(){return{open:function(tr){var vi=mt(Gr,tr);(vi.key===null||vi.key===void 0)&&(vi.key="rc-notification-".concat(Bt),Bt+=1),yi(function(Ni){return[].concat((0,y.Z)(Ni),[{type:"open",config:vi}])})},close:function(tr){yi(function(vi){return[].concat((0,y.Z)(vi),[{type:"close",key:tr}])})},destroy:function(){yi(function(tr){return[].concat((0,y.Z)(tr),[{type:"destroy"}])})}}},[]);return A.useEffect(function(){Kr(ii())}),A.useEffect(function(){ti.current&&Gn.length&&(Gn.forEach(function(Si){switch(Si.type){case"open":ti.current.open(Si.config);break;case"close":ti.current.close(Si.key);break;case"destroy":ti.current.destroy();break}}),yi(function(Si){return Si.filter(function(tr){return!Gn.includes(tr)})}))},[Gn]),[Ln,Wi]}var Bn=m(53124),Er=m(85731),Yr=m(14747),oi=m(67968),to=m(45503);const yo=Cr=>{const{componentCls:qr,iconCls:ii,boxShadow:rn,colorText:Jn,colorSuccess:Vr,colorError:so,colorWarning:rs,colorInfo:zt,fontSizeLG:pn,motionEaseInOutCirc:_r,motionDurationSlow:Gr,marginXS:ui,paddingXS:Ci,borderRadiusLG:lo,zIndexPopup:Kr,contentPadding:ti,contentBg:Wi}=Cr,Tr=`${qr}-notice`,Qt=new Er.E4("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:Ci,transform:"translateY(0)",opacity:1}}),Gn=new Er.E4("MessageMoveOut",{"0%":{maxHeight:Cr.height,padding:Ci,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),yi={padding:Ci,textAlign:"center",[`${qr}-custom-content > ${ii}`]:{verticalAlign:"text-bottom",marginInlineEnd:ui,fontSize:pn},[`${Tr}-content`]:{display:"inline-block",padding:ti,background:Wi,borderRadius:lo,boxShadow:rn,pointerEvents:"all"},[`${qr}-success > ${ii}`]:{color:Vr},[`${qr}-error > ${ii}`]:{color:so},[`${qr}-warning > ${ii}`]:{color:rs},[`${qr}-info > ${ii}, - ${qr}-loading > ${ii}`]:{color:zt}};return[{[qr]:Object.assign(Object.assign({},(0,Yr.Wf)(Cr)),{color:Jn,position:"fixed",top:ui,width:"100%",pointerEvents:"none",zIndex:Kr,[`${qr}-move-up`]:{animationFillMode:"forwards"},[` + `]:{paddingTop:xt.paddingXS},[`> ${on}`]:Object.assign(Object.assign(Object.assign({borderRadius:Pi},ge(xt)),_o(xt)),{[`${on}-item, ${on}-submenu > ${on}-submenu-title`]:{borderRadius:Wo},[`${on}-submenu-title::after`]:{transition:`transform ${Tt} ${Ht}`}})}}),_o(xt)),{[`&-inline-collapsed ${on}-submenu-arrow, + &-inline ${on}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${xn})`},"&::after":{transform:`rotate(45deg) translateX(-${xn})`}},[`${on}-submenu-open${on}-submenu-inline > ${on}-submenu-title > ${on}-submenu-arrow`]:{transform:`translateY(-${ys*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${xn})`},"&::before":{transform:`rotate(45deg) translateX(${xn})`}}})},{[`${Wt}-layout-header`]:{[on]:{lineHeight:"inherit"}}}]};var Bi=(xt,Wt)=>(0,Bt.Z)("Menu",Ot=>{if(Wt===!1)return[];const{colorBgElevated:Tt,colorPrimary:bt,colorTextLightSolid:Ht,controlHeightLG:Wn,fontSize:tn,darkItemColor:hr,darkDangerItemColor:Zi,darkItemBg:Ri,darkSubMenuItemBg:Pi,darkItemSelectedColor:Wo,darkItemSelectedBg:ys,darkDangerItemSelectedBg:xn,darkItemHoverBg:Hr,darkGroupTitleColor:Jr,darkItemHoverColor:Yi,darkItemDisabledColor:xo,darkDangerItemHoverColor:na,darkDangerItemSelectedColor:Un,darkDangerItemActiveBg:Xn}=Ot,Mr=tn/7*5,li=(0,gt.TS)(Ot,{menuArrowSize:Mr,menuHorizontalHeight:Wn*1.15,menuArrowOffset:`${Mr*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Tt}),wr=(0,gt.TS)(li,{itemColor:hr,itemHoverColor:Yi,groupTitleColor:Jr,itemSelectedColor:Wo,itemBg:Ri,popupBg:Ri,subMenuItemBg:Pi,itemActiveBg:"transparent",itemSelectedBg:ys,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Hr,itemDisabledColor:xo,dangerItemColor:Zi,dangerItemHoverColor:na,dangerItemSelectedColor:Un,dangerItemActiveBg:Xn,dangerItemSelectedBg:xn,menuSubMenuBg:Pi,horizontalItemSelectedColor:Ht,horizontalItemSelectedBg:bt});return[ci(li),Bn(li),as(li),yo(li,"light"),yo(wr,"dark"),Yr(li),(0,He.Z)(li),(0,wt.oN)(li,"slide-up"),(0,wt.oN)(li,"slide-down"),(0,dt._y)(li,"zoom-big")]},Ot=>{const{colorPrimary:Tt,colorError:bt,colorTextDisabled:Ht,colorErrorBg:Wn,colorText:tn,colorTextDescription:hr,colorBgContainer:Zi,colorFillAlter:Ri,colorFillContent:Pi,lineWidth:Wo,lineWidthBold:ys,controlItemBgActive:xn,colorBgTextHover:Hr,controlHeightLG:Jr,lineHeight:Yi,colorBgElevated:xo,marginXXS:na,padding:Un,fontSize:Xn,controlHeightSM:Mr,fontSizeLG:li,colorTextLightSolid:wr,colorErrorHover:qr}=Ot,ii=new Pt.C(wr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Ot.zIndexPopupBase+50,radiusItem:Ot.borderRadiusLG,itemBorderRadius:Ot.borderRadiusLG,radiusSubMenuItem:Ot.borderRadiusSM,subMenuItemBorderRadius:Ot.borderRadiusSM,colorItemText:tn,itemColor:tn,colorItemTextHover:tn,itemHoverColor:tn,colorItemTextHoverHorizontal:Tt,horizontalItemHoverColor:Tt,colorGroupTitle:hr,groupTitleColor:hr,colorItemTextSelected:Tt,itemSelectedColor:Tt,colorItemTextSelectedHorizontal:Tt,horizontalItemSelectedColor:Tt,colorItemBg:Zi,itemBg:Zi,colorItemBgHover:Hr,itemHoverBg:Hr,colorItemBgActive:Pi,itemActiveBg:xn,colorSubItemBg:Ri,subMenuItemBg:Ri,colorItemBgSelected:xn,itemSelectedBg:xn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:ys,activeBarHeight:ys,colorActiveBarBorderSize:Wo,activeBarBorderWidth:Wo,colorItemTextDisabled:Ht,itemDisabledColor:Ht,colorDangerItemText:bt,dangerItemColor:bt,colorDangerItemTextHover:bt,dangerItemHoverColor:bt,colorDangerItemTextSelected:bt,dangerItemSelectedColor:bt,colorDangerItemBgActive:Wn,dangerItemActiveBg:Wn,colorDangerItemBgSelected:Wn,dangerItemSelectedBg:Wn,itemMarginInline:Ot.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Jr,groupTitleLineHeight:Yi,collapsedWidth:Jr*2,popupBg:xo,itemMarginBlock:na,itemPaddingInline:Un,horizontalLineHeight:`${Jr*1.15}px`,iconSize:Xn,iconMarginInlineEnd:Mr-Xn,collapsedIconSize:li,groupTitleFontSize:Xn,darkItemDisabledColor:new Pt.C(wr).setAlpha(.25).toRgbString(),darkItemColor:ii,darkDangerItemColor:bt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:wr,darkItemSelectedBg:Tt,darkDangerItemSelectedBg:bt,darkItemHoverBg:"transparent",darkGroupTitleColor:ii,darkItemHoverColor:wr,darkDangerItemHoverColor:qr,darkDangerItemSelectedColor:wr,darkDangerItemActiveBg:bt}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(xt),Ci=function(xt,Wt){var on={};for(var Ot in xt)Object.prototype.hasOwnProperty.call(xt,Ot)&&Wt.indexOf(Ot)<0&&(on[Ot]=xt[Ot]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Tt=0,Ot=Object.getOwnPropertySymbols(xt);Tt{var on,Ot;const Tt=I.useContext(xe.Z),bt=Tt||{},{getPrefixCls:Ht,getPopupContainer:Wn,direction:tn,menu:hr}=I.useContext(S.E_),Zi=Ht(),{prefixCls:Ri,className:Pi,style:Wo,theme:ys="light",expandIcon:xn,_internalDisableMenuItemTitleTooltip:Hr,inlineCollapsed:Jr,siderCollapsed:Yi,items:xo,children:na,rootClassName:Un,mode:Xn,selectable:Mr,onClick:li,overflowedIndicatorPopupClassName:wr}=xt,qr=Ci(xt,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),ii=(0,ce.Z)(qr,["collapsedWidth"]),rn=je(xo)||na;(on=bt.validator)===null||on===void 0||on.call(bt,{mode:Xn});const Qn=(0,we.zX)(function(){var Kr;li==null||li.apply(void 0,arguments),(Kr=bt.onClick)===null||Kr===void 0||Kr.call(bt)}),Vr=bt.mode||Xn,so=Mr!=null?Mr:bt.selectable,rs=I.useMemo(()=>Yi!==void 0?Yi:Jr,[Jr,Yi]),zt={horizontal:{motionName:`${Zi}-slide-up`},inline:(0,Ce.Z)(Zi),other:{motionName:`${Zi}-zoom-big`}},pn=Ht("menu",Ri||bt.prefixCls),[br,Gr]=Bi(pn,!Tt),ui=z()(`${pn}-${ys}`,hr==null?void 0:hr.className,Pi);let xi;if(typeof xn=="function")xi=xn;else if(xn===null||xn===!1)xi=null;else if(bt.expandIcon===null||bt.expandIcon===!1)xi=null;else{const Kr=xn!=null?xn:bt.expandIcon;xi=(0,he.Tm)(Kr,{className:z()(`${pn}-submenu-expand-icon`,(0,he.l$)(Kr)?(Ot=Kr.props)===null||Ot===void 0?void 0:Ot.className:"")})}const lo=I.useMemo(()=>({prefixCls:pn,inlineCollapsed:rs||!1,direction:tn,firstLevel:!0,theme:ys,mode:Vr,disableMenuItemTitleTooltip:Hr}),[pn,rs,tn,Hr,ys]);return br(I.createElement(xe.Z.Provider,{value:null},I.createElement(Be.Provider,{value:lo},I.createElement(y.ZP,Object.assign({getPopupContainer:Wn,overflowedIndicator:I.createElement(ye.Z,null),overflowedIndicatorPopupClassName:z()(pn,`${pn}-${ys}`,wr),mode:Vr,selectable:so,onClick:Qn},ii,{inlineCollapsed:rs,style:Object.assign(Object.assign({},hr==null?void 0:hr.style),Wo),className:ui,prefixCls:pn,direction:tn,defaultMotions:zt,expandIcon:xi,ref:Wt,rootClassName:z()(Un,Gr)}),rn))))});const Ve=(0,I.forwardRef)((xt,Wt)=>{const on=(0,I.useRef)(null),Ot=I.useContext(w);return(0,I.useImperativeHandle)(Wt,()=>({menu:on.current,focus:Tt=>{var bt;(bt=on.current)===null||bt===void 0||bt.focus(Tt)}})),I.createElement(ln,Object.assign({ref:on},xt,Ot))});Ve.Item=We,Ve.SubMenu=ve,Ve.Divider=ne,Ve.ItemGroup=y.BW;var _t=Ve},73824:function(nt,V,m){"use strict";m.d(V,{ZP:function(){return li}});var y=m(42371),I=m(77617),b=m(13493),z=m(75811),k=m(95934),N=m(48796),w=m(86850),A=m(37748),C=m(38521),f=m(12124),S=m.n(f),P=m(39718),W=m(52528),ne=m(74710),re=m(79161),ce=m(26508),pe=m(80268),he=m(44516),fe=m(38251),Be=I.forwardRef(function(wr,qr){var ii=wr.prefixCls,rn=wr.style,Qn=wr.className,Vr=wr.duration,so=Vr===void 0?4.5:Vr,rs=wr.eventKey,zt=wr.content,pn=wr.closable,br=wr.closeIcon,Gr=br===void 0?"x":br,ui=wr.props,xi=wr.onClick,lo=wr.onNoticeClose,Kr=wr.times,ti=wr.hovering,ji=I.useState(!1),Tr=(0,P.Z)(ji,2),Qt=Tr[0],Gn=Tr[1],yi=ti||Qt,Ln=function(){lo(rs)},Si=function(Ni){(Ni.key==="Enter"||Ni.code==="Enter"||Ni.keyCode===fe.Z.ENTER)&&Ln()};I.useEffect(function(){if(!yi&&so>0){var vi=setTimeout(function(){Ln()},so*1e3);return function(){clearTimeout(vi)}}},[so,yi,Kr]);var tr="".concat(ii,"-notice");return I.createElement("div",(0,ce.Z)({},ui,{ref:qr,className:S()(tr,Qn,(0,pe.Z)({},"".concat(tr,"-closable"),pn)),style:rn,onMouseEnter:function(Ni){var kr;Gn(!0),ui==null||(kr=ui.onMouseEnter)===null||kr===void 0||kr.call(ui,Ni)},onMouseLeave:function(Ni){var kr;Gn(!1),ui==null||(kr=ui.onMouseLeave)===null||kr===void 0||kr.call(ui,Ni)},onClick:xi}),I.createElement("div",{className:"".concat(tr,"-content")},zt),pn&&I.createElement("a",{tabIndex:0,className:"".concat(tr,"-close"),onKeyDown:Si,onClick:function(Ni){Ni.preventDefault(),Ni.stopPropagation(),Ln()}},Gr))}),Ie=Be,We=I.createContext({}),De=function(qr){var ii=qr.children,rn=qr.classNames;return I.createElement(We.Provider,{value:{classNames:rn}},ii)},ve=De,ye=m(91002),we=8,Ce=3,Ae=16,me=function(qr){var ii={offset:we,threshold:Ce,gap:Ae};if(qr&&(0,ye.Z)(qr)==="object"){var rn,Qn,Vr;ii.offset=(rn=qr.offset)!==null&&rn!==void 0?rn:we,ii.threshold=(Qn=qr.threshold)!==null&&Qn!==void 0?Qn:Ce,ii.gap=(Vr=qr.gap)!==null&&Vr!==void 0?Vr:Ae}return[!!qr,ii]},je=me,xe=function(qr){var ii,rn=qr.configList,Qn=qr.placement,Vr=qr.prefixCls,so=qr.className,rs=qr.style,zt=qr.motion,pn=qr.onAllNoticeRemoved,br=qr.onNoticeClose,Gr=qr.stack,ui=(0,I.useContext)(We),xi=ui.classNames,lo=(0,I.useRef)({}),Kr=(0,I.useState)(null),ti=(0,P.Z)(Kr,2),ji=ti[0],Tr=ti[1],Qt=(0,I.useState)([]),Gn=(0,P.Z)(Qt,2),yi=Gn[0],Ln=Gn[1],Si=rn.map(function(Wa){return{config:Wa,key:Wa.key}}),tr=je(Gr),vi=(0,P.Z)(tr,2),Ni=vi[0],kr=vi[1],qn=kr.offset,ds=kr.threshold,_a=kr.gap,da=Ni&&(yi.length>0||Si.length<=ds),zs=typeof zt=="function"?zt(Qn):zt;return(0,I.useEffect)(function(){Ni&&yi.length>1&&Ln(function(Wa){return Wa.filter(function(Co){return Si.some(function(cl){var Fr=cl.key;return Co===Fr})})})},[yi,Si,Ni]),(0,I.useEffect)(function(){var Wa;if(Ni&&lo.current[(Wa=Si[Si.length-1])===null||Wa===void 0?void 0:Wa.key]){var Co;Tr(lo.current[(Co=Si[Si.length-1])===null||Co===void 0?void 0:Co.key])}},[Si,Ni]),I.createElement(he.V4,(0,ce.Z)({key:Qn,className:S()(Vr,"".concat(Vr,"-").concat(Qn),xi==null?void 0:xi.list,so,(ii={},(0,pe.Z)(ii,"".concat(Vr,"-stack"),!!Ni),(0,pe.Z)(ii,"".concat(Vr,"-stack-expanded"),da),ii)),style:rs,keys:Si,motionAppear:!0},zs,{onAllRemoved:function(){pn(Qn)}}),function(Wa,Co){var cl=Wa.config,Fr=Wa.className,fs=Wa.style,jo=Wa.index,Es=cl,xs=Es.key,Za=Es.times,tl=cl,xl=tl.className,Qa=tl.style,si=Si.findIndex(function(jn){return jn.key===xs}),co={};if(Ni){var dn=Si.length-1-(si>-1?si:jo-1),An=Qn==="top"||Qn==="bottom"?"-50%":"0";if(dn>0){var Nn,tt,ht;co.height=da?(Nn=lo.current[xs])===null||Nn===void 0?void 0:Nn.offsetHeight:ji==null?void 0:ji.offsetHeight;for(var vt=0,Fe=0;Fe-1?lo.current[xs]=Cr:delete lo.current[xs]},prefixCls:Vr,className:S()(xl,xi==null?void 0:xi.notice),times:Za,key:xs,eventKey:xs,onNoticeClose:br,hovering:Ni&&yi.length>0})))})},Pt=xe,ct=I.forwardRef(function(wr,qr){var ii=wr.prefixCls,rn=ii===void 0?"rc-notification":ii,Qn=wr.container,Vr=wr.motion,so=wr.maxCount,rs=wr.className,zt=wr.style,pn=wr.onAllRemoved,br=wr.stack,Gr=wr.renderNotifications,ui=I.useState([]),xi=(0,P.Z)(ui,2),lo=xi[0],Kr=xi[1],ti=function(vi){var Ni,kr=lo.find(function(qn){return qn.key===vi});kr==null||(Ni=kr.onClose)===null||Ni===void 0||Ni.call(kr),Kr(function(qn){return qn.filter(function(ds){return ds.key!==vi})})};I.useImperativeHandle(qr,function(){return{open:function(vi){Kr(function(Ni){var kr=(0,y.Z)(Ni),qn=kr.findIndex(function(da){return da.key===vi.key}),ds=(0,ne.Z)({},vi);if(qn>=0){var _a;ds.times=(((_a=Ni[qn])===null||_a===void 0?void 0:_a.times)||0)+1,kr[qn]=ds}else ds.times=0,kr.push(ds);return so>0&&kr.length>so&&(kr=kr.slice(-so)),kr})},close:function(vi){ti(vi)},destroy:function(){Kr([])}}});var ji=I.useState({}),Tr=(0,P.Z)(ji,2),Qt=Tr[0],Gn=Tr[1];I.useEffect(function(){var tr={};lo.forEach(function(vi){var Ni=vi.placement,kr=Ni===void 0?"topRight":Ni;kr&&(tr[kr]=tr[kr]||[],tr[kr].push(vi))}),Object.keys(Qt).forEach(function(vi){tr[vi]=tr[vi]||[]}),Gn(tr)},[lo]);var yi=function(vi){Gn(function(Ni){var kr=(0,ne.Z)({},Ni),qn=kr[vi]||[];return qn.length||delete kr[vi],kr})},Ln=I.useRef(!1);if(I.useEffect(function(){Object.keys(Qt).length>0?Ln.current=!0:Ln.current&&(pn==null||pn(),Ln.current=!1)},[Qt]),!Qn)return null;var Si=Object.keys(Qt);return(0,re.createPortal)(I.createElement(I.Fragment,null,Si.map(function(tr){var vi=Qt[tr],Ni=I.createElement(Pt,{key:tr,configList:vi,placement:tr,prefixCls:rn,className:rs==null?void 0:rs(tr),style:zt==null?void 0:zt(tr),motion:Vr,onNoticeClose:ti,onAllNoticeRemoved:yi,stack:br});return Gr?Gr(Ni,{prefixCls:rn,key:tr}):Ni})),Qn)}),He=ct,wt=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],dt=function(){return document.body},Bt=0;function gt(){for(var wr={},qr=arguments.length,ii=new Array(qr),rn=0;rn0&&arguments[0]!==void 0?arguments[0]:{},qr=wr.getContainer,ii=qr===void 0?dt:qr,rn=wr.motion,Qn=wr.prefixCls,Vr=wr.maxCount,so=wr.className,rs=wr.style,zt=wr.onAllRemoved,pn=wr.stack,br=wr.renderNotifications,Gr=(0,W.Z)(wr,wt),ui=I.useState(),xi=(0,P.Z)(ui,2),lo=xi[0],Kr=xi[1],ti=I.useRef(),ji=I.createElement(He,{container:lo,ref:ti,prefixCls:Qn,motion:rn,maxCount:Vr,className:so,style:rs,onAllRemoved:zt,stack:pn,renderNotifications:br}),Tr=I.useState([]),Qt=(0,P.Z)(Tr,2),Gn=Qt[0],yi=Qt[1],Ln=I.useMemo(function(){return{open:function(tr){var vi=gt(Gr,tr);(vi.key===null||vi.key===void 0)&&(vi.key="rc-notification-".concat(Bt),Bt+=1),yi(function(Ni){return[].concat((0,y.Z)(Ni),[{type:"open",config:vi}])})},close:function(tr){yi(function(vi){return[].concat((0,y.Z)(vi),[{type:"close",key:tr}])})},destroy:function(){yi(function(tr){return[].concat((0,y.Z)(tr),[{type:"destroy"}])})}}},[]);return I.useEffect(function(){Kr(ii())}),I.useEffect(function(){ti.current&&Gn.length&&(Gn.forEach(function(Si){switch(Si.type){case"open":ti.current.open(Si.config);break;case"close":ti.current.close(Si.key);break;case"destroy":ti.current.destroy();break}}),yi(function(Si){return Si.filter(function(tr){return!Gn.includes(tr)})}))},[Gn]),[Ln,ji]}var Bn=m(67392),Er=m(84608),Yr=m(92068),oi=m(24577),to=m(41788);const yo=wr=>{const{componentCls:qr,iconCls:ii,boxShadow:rn,colorText:Qn,colorSuccess:Vr,colorError:so,colorWarning:rs,colorInfo:zt,fontSizeLG:pn,motionEaseInOutCirc:br,motionDurationSlow:Gr,marginXS:ui,paddingXS:xi,borderRadiusLG:lo,zIndexPopup:Kr,contentPadding:ti,contentBg:ji}=wr,Tr=`${qr}-notice`,Qt=new Er.E4("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:xi,transform:"translateY(0)",opacity:1}}),Gn=new Er.E4("MessageMoveOut",{"0%":{maxHeight:wr.height,padding:xi,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),yi={padding:xi,textAlign:"center",[`${qr}-custom-content > ${ii}`]:{verticalAlign:"text-bottom",marginInlineEnd:ui,fontSize:pn},[`${Tr}-content`]:{display:"inline-block",padding:ti,background:ji,borderRadius:lo,boxShadow:rn,pointerEvents:"all"},[`${qr}-success > ${ii}`]:{color:Vr},[`${qr}-error > ${ii}`]:{color:so},[`${qr}-warning > ${ii}`]:{color:rs},[`${qr}-info > ${ii}, + ${qr}-loading > ${ii}`]:{color:zt}};return[{[qr]:Object.assign(Object.assign({},(0,Yr.Wf)(wr)),{color:Qn,position:"fixed",top:ui,width:"100%",pointerEvents:"none",zIndex:Kr,[`${qr}-move-up`]:{animationFillMode:"forwards"},[` ${qr}-move-up-appear, ${qr}-move-up-enter - `]:{animationName:Qt,animationDuration:Gr,animationPlayState:"paused",animationTimingFunction:_r},[` + `]:{animationName:Qt,animationDuration:Gr,animationPlayState:"paused",animationTimingFunction:br},[` ${qr}-move-up-appear${qr}-move-up-appear-active, ${qr}-move-up-enter${qr}-move-up-enter-active - `]:{animationPlayState:"running"},[`${qr}-move-up-leave`]:{animationName:Gn,animationDuration:Gr,animationPlayState:"paused",animationTimingFunction:_r},[`${qr}-move-up-leave${qr}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[qr]:{[`${Tr}-wrapper`]:Object.assign({},yi)}},{[`${qr}-notice-pure-panel`]:Object.assign(Object.assign({},yi),{padding:0,textAlign:"start"})}]};var vr=(0,oi.Z)("Message",Cr=>{const qr=(0,to.TS)(Cr,{height:150});return[yo(qr)]},Cr=>({zIndexPopup:Cr.zIndexPopupBase+10,contentBg:Cr.colorBgElevated,contentPadding:`${(Cr.controlHeightLG-Cr.fontSize*Cr.lineHeight)/2}px ${Cr.paddingSM}px`})),Po=function(Cr,qr){var ii={};for(var rn in Cr)Object.prototype.hasOwnProperty.call(Cr,rn)&&qr.indexOf(rn)<0&&(ii[rn]=Cr[rn]);if(Cr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Jn=0,rn=Object.getOwnPropertySymbols(Cr);Jn{let{prefixCls:qr,type:ii,icon:rn,children:Jn}=Cr;return A.createElement("div",{className:S()(`${qr}-custom-content`,`${qr}-${ii}`)},rn||ss[ii],A.createElement("span",null,Jn))};var ci=Cr=>{const{prefixCls:qr,className:ii,type:rn,icon:Jn,content:Vr}=Cr,so=Po(Cr,["prefixCls","className","type","icon","content"]),{getPrefixCls:rs}=A.useContext(Bn.E_),zt=qr||rs("message"),[,pn]=vr(zt);return A.createElement(we,Object.assign({},so,{prefixCls:zt,className:S()(ii,pn,`${zt}-notice-pure-panel`),eventKey:"pure",duration:null,content:A.createElement(ve,{prefixCls:zt,type:rn,icon:Jn},Vr)}))},Bi=m(62208),wi=m(27288);function io(Cr,qr){return{motionName:qr!=null?qr:`${Cr}-move-up`}}function ln(Cr){let qr;const ii=new Promise(Jn=>{qr=Cr(()=>{Jn(!0)})}),rn=()=>{qr==null||qr()};return rn.then=(Jn,Vr)=>ii.then(Jn,Vr),rn.promise=ii,rn}var Ve=function(Cr,qr){var ii={};for(var rn in Cr)Object.prototype.hasOwnProperty.call(Cr,rn)&&qr.indexOf(rn)<0&&(ii[rn]=Cr[rn]);if(Cr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Jn=0,rn=Object.getOwnPropertySymbols(Cr);Jn{let{children:qr,prefixCls:ii}=Cr;const[,rn]=vr(ii);return A.createElement(ge,{classNames:{list:rn,notice:rn}},qr)},on=(Cr,qr)=>{let{prefixCls:ii,key:rn}=qr;return A.createElement(jt,{prefixCls:ii,key:rn},Cr)},Ot=A.forwardRef((Cr,qr)=>{const{top:ii,prefixCls:rn,getContainer:Jn,maxCount:Vr,duration:so=Ct,rtl:rs,transitionName:zt,onAllRemoved:pn}=Cr,{getPrefixCls:_r,getPopupContainer:Gr,message:ui}=A.useContext(Bn.E_),Ci=rn||_r("message"),lo=()=>({left:"50%",transform:"translateX(-50%)",top:ii!=null?ii:_t}),Kr=()=>S()({[`${Ci}-rtl`]:rs}),ti=()=>io(Ci,zt),Wi=A.createElement("span",{className:`${Ci}-close-x`},A.createElement(Bi.Z,{className:`${Ci}-close-icon`})),[Tr,Qt]=_n({prefixCls:Ci,style:lo,className:Kr,motion:ti,closable:!1,closeIcon:Wi,duration:so,getContainer:()=>(Jn==null?void 0:Jn())||(Gr==null?void 0:Gr())||document.body,maxCount:Vr,onAllRemoved:pn,renderNotifications:on});return A.useImperativeHandle(qr,()=>Object.assign(Object.assign({},Tr),{prefixCls:Ci,message:ui})),Qt});let Tt=0;function xt(Cr){const qr=A.useRef(null),ii=(0,wi.ln)("Message");return[A.useMemo(()=>{const Jn=pn=>{var _r;(_r=qr.current)===null||_r===void 0||_r.close(pn)},Vr=pn=>{if(!qr.current){const Si=()=>{};return Si.then=()=>{},Si}const{open:_r,prefixCls:Gr,message:ui}=qr.current,Ci=`${Gr}-notice`,{content:lo,icon:Kr,type:ti,key:Wi,className:Tr,style:Qt,onClose:Gn}=pn,yi=Ve(pn,["content","icon","type","key","className","style","onClose"]);let Ln=Wi;return Ln==null&&(Tt+=1,Ln=`antd-message-${Tt}`),ln(Si=>(_r(Object.assign(Object.assign({},yi),{key:Ln,content:A.createElement(ve,{prefixCls:Gr,type:ti,icon:Kr},lo),placement:"top",className:S()(ti&&`${Ci}-${ti}`,Tr,ui==null?void 0:ui.className),style:Object.assign(Object.assign({},ui==null?void 0:ui.style),Qt),onClose:()=>{Gn==null||Gn(),Si()}})),()=>{Jn(Ln)}))},rs={open:Vr,destroy:pn=>{var _r;pn!==void 0?Jn(pn):(_r=qr.current)===null||_r===void 0||_r.destroy()}};return["info","success","warning","error","loading"].forEach(pn=>{const _r=(Gr,ui,Ci)=>{let lo;Gr&&typeof Gr=="object"&&"content"in Gr?lo=Gr:lo={content:Gr};let Kr,ti;typeof ui=="function"?ti=ui:(Kr=ui,ti=Ci);const Wi=Object.assign(Object.assign({onClose:ti,duration:Kr},lo),{type:pn});return Vr(Wi)};rs[pn]=_r}),rs},[]),A.createElement(Ot,Object.assign({key:"message-holder"},Cr,{ref:qr}))]}function Ht(Cr){return xt(Cr)}let Zn=null,tn=Cr=>Cr(),hr=[],Zi={};function Ri(){const{prefixCls:Cr,getContainer:qr,duration:ii,rtl:rn,maxCount:Jn,top:Vr}=Zi,so=Cr!=null?Cr:(0,z.w6)().getPrefixCls("message"),rs=(qr==null?void 0:qr())||document.body;return{prefixCls:so,getContainer:()=>rs,duration:ii,rtl:rn,maxCount:Jn,top:Vr}}const Pi=A.forwardRef((Cr,qr)=>{const[ii,rn]=A.useState(Ri),[Jn,Vr]=xt(ii),so=(0,z.w6)(),rs=so.getRootPrefixCls(),zt=so.getIconPrefixCls(),pn=so.getTheme(),_r=()=>{rn(Ri)};return A.useEffect(_r,[]),A.useImperativeHandle(qr,()=>{const Gr=Object.assign({},Jn);return Object.keys(Gr).forEach(ui=>{Gr[ui]=function(){return _r(),Jn[ui].apply(Jn,arguments)}}),{instance:Gr,sync:_r}}),A.createElement(z.ZP,{prefixCls:rs,iconPrefixCls:zt,theme:pn},Vr)});function $o(){if(!Zn){const Cr=document.createDocumentFragment(),qr={fragment:Cr};Zn=qr,tn(()=>{(0,b.s)(A.createElement(Pi,{ref:ii=>{const{instance:rn,sync:Jn}=ii||{};Promise.resolve().then(()=>{!qr.instance&&rn&&(qr.instance=rn,qr.sync=Jn,$o())})}}),Cr)});return}Zn.instance&&(hr.forEach(Cr=>{const{type:qr,skipped:ii}=Cr;if(!ii)switch(qr){case"open":{tn(()=>{const rn=Zn.instance.open(Object.assign(Object.assign({},Zi),Cr.config));rn==null||rn.then(Cr.resolve),Cr.setCloseFn(rn)});break}case"destroy":tn(()=>{Zn==null||Zn.instance.destroy(Cr.key)});break;default:tn(()=>{var rn;const Jn=(rn=Zn.instance)[qr].apply(rn,(0,y.Z)(Cr.args));Jn==null||Jn.then(Cr.resolve),Cr.setCloseFn(Jn)})}}),hr=[])}function ys(Cr){Zi=Object.assign(Object.assign({},Zi),Cr),tn(()=>{var qr;(qr=Zn==null?void 0:Zn.sync)===null||qr===void 0||qr.call(Zn)})}function xn(Cr){const qr=ln(ii=>{let rn;const Jn={type:"open",config:Cr,resolve:ii,setCloseFn:Vr=>{rn=Vr}};return hr.push(Jn),()=>{rn?tn(()=>{rn()}):Jn.skipped=!0}});return $o(),qr}function Hr(Cr,qr){const ii=ln(rn=>{let Jn;const Vr={type:Cr,args:qr,resolve:rn,setCloseFn:so=>{Jn=so}};return hr.push(Vr),()=>{Jn?tn(()=>{Jn()}):Vr.skipped=!0}});return $o(),ii}function Jr(Cr){hr.push({type:"destroy",key:Cr}),$o()}const Yi=["success","info","warning","error","loading"],na={open:xn,destroy:Jr,config:ys,useMessage:Ht,_InternalPanelDoNotUseOrYouWillBeFired:ci};Yi.forEach(Cr=>{na[Cr]=function(){for(var qr=arguments.length,ii=new Array(qr),rn=0;rn{};let Xn=null,Mr=null;var li=na},39124:function(nt,V,m){"use strict";m.d(V,{Z:function(){return dl}});var y=m(74902),A=m(38135),b=m(67294),z=m(94740),k=m(76278),N=m(41322),w=m(26702),I=m(1558),C=m(94184),f=m.n(C),S=m(33603),P=m(10110),j=m(86743);const re=b.createContext({}),{Provider:J}=re;var de=()=>{const{autoFocusButton:Fr,cancelButtonProps:fs,cancelTextLocale:jo,isSilent:Es,mergedOkCancel:xs,rootPrefixCls:Za,close:tl,onCancel:xl,onConfirm:Qa}=(0,b.useContext)(re);return xs?b.createElement(j.Z,{isSilent:Es,actionFn:xl,close:function(){tl==null||tl.apply(void 0,arguments),Qa==null||Qa(!1)},autoFocus:Fr==="cancel",buttonProps:fs,prefixCls:`${Za}-btn`},jo):null},fe=()=>{const{autoFocusButton:Fr,close:fs,isSilent:jo,okButtonProps:Es,rootPrefixCls:xs,okTextLocale:Za,okType:tl,onConfirm:xl,onOk:Qa}=(0,b.useContext)(re);return b.createElement(j.Z,{isSilent:jo,type:tl||"primary",actionFn:Qa,close:function(){fs==null||fs.apply(void 0,arguments),xl==null||xl(!0)},autoFocus:Fr==="ok",buttonProps:Es,prefixCls:`${xs}-btn`},Za)},ke=m(62208),we=m(87462),Ne=m(97685),Ee=m(2788),ge=b.createContext({}),ye=m(1413),xe=m(94999),be=m(7028),Ie=m(15105),me=m(64217);function We(Fr,fs,jo){var Es=fs;return!Es&&jo&&(Es="".concat(Fr,"-").concat(jo)),Es}function Ce(Fr,fs){var jo=Fr["page".concat(fs?"Y":"X","Offset")],Es="scroll".concat(fs?"Top":"Left");if(typeof jo!="number"){var xs=Fr.document;jo=xs.documentElement[Es],typeof jo!="number"&&(jo=xs.body[Es])}return jo}function Pt(Fr){var fs=Fr.getBoundingClientRect(),jo={left:fs.left,top:fs.top},Es=Fr.ownerDocument,xs=Es.defaultView||Es.parentWindow;return jo.left+=Ce(xs),jo.top+=Ce(xs,!0),jo}var ct=m(82225),Ue=m(42550),bt=b.memo(function(Fr){var fs=Fr.children;return fs},function(Fr,fs){var jo=fs.shouldUpdate;return!jo}),ht={width:0,height:0,overflow:"hidden",outline:"none"},Bt=b.forwardRef(function(Fr,fs){var jo=Fr.prefixCls,Es=Fr.className,xs=Fr.style,Za=Fr.title,tl=Fr.ariaId,xl=Fr.footer,Qa=Fr.closable,si=Fr.closeIcon,co=Fr.onClose,dn=Fr.children,Dn=Fr.bodyStyle,Nn=Fr.bodyProps,tt=Fr.modalRender,dt=Fr.onMouseDown,vt=Fr.onMouseUp,ze=Fr.holderRef,lt=Fr.visible,Et=Fr.forceRender,an=Fr.width,jn=Fr.height,xr=Fr.classNames,Ti=Fr.styles,$i=b.useContext(ge),Vi=$i.panel,us=(0,Ue.x1)(ze,Vi),ks=(0,b.useRef)(),Os=(0,b.useRef)();b.useImperativeHandle(fs,function(){return{focus:function(){var Ma;(Ma=ks.current)===null||Ma===void 0||Ma.focus()},changeActive:function(Ma){var gl=document,ia=gl.activeElement;Ma&&ia===Os.current?ks.current.focus():!Ma&&ia===ks.current&&Os.current.focus()}}});var pa={};an!==void 0&&(pa.width=an),jn!==void 0&&(pa.height=jn);var no;xl&&(no=b.createElement("div",{className:f()("".concat(jo,"-footer"),xr==null?void 0:xr.footer),style:(0,ye.Z)({},Ti==null?void 0:Ti.footer)},xl));var Cs;Za&&(Cs=b.createElement("div",{className:f()("".concat(jo,"-header"),xr==null?void 0:xr.header),style:(0,ye.Z)({},Ti==null?void 0:Ti.header)},b.createElement("div",{className:"".concat(jo,"-title"),id:tl},Za)));var ea;Qa&&(ea=b.createElement("button",{type:"button",onClick:co,"aria-label":"Close",className:"".concat(jo,"-close")},si||b.createElement("span",{className:"".concat(jo,"-close-x")})));var fa=b.createElement("div",{className:f()("".concat(jo,"-content"),xr==null?void 0:xr.content),style:Ti==null?void 0:Ti.content},ea,Cs,b.createElement("div",(0,we.Z)({className:f()("".concat(jo,"-body"),xr==null?void 0:xr.body),style:(0,ye.Z)((0,ye.Z)({},Dn),Ti==null?void 0:Ti.body)},Nn),dn),no);return b.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":Za?tl:null,"aria-modal":"true",ref:us,style:(0,ye.Z)((0,ye.Z)({},xs),pa),className:f()(jo,Es),onMouseDown:dt,onMouseUp:vt},b.createElement("div",{tabIndex:0,ref:ks,style:ht,"aria-hidden":"true"}),b.createElement(bt,{shouldUpdate:lt||Et},tt?tt(fa):fa),b.createElement("div",{tabIndex:0,ref:Os,style:ht,"aria-hidden":"true"}))}),mt=Bt,_n=b.forwardRef(function(Fr,fs){var jo=Fr.prefixCls,Es=Fr.title,xs=Fr.style,Za=Fr.className,tl=Fr.visible,xl=Fr.forceRender,Qa=Fr.destroyOnClose,si=Fr.motionName,co=Fr.ariaId,dn=Fr.onVisibleChanged,Dn=Fr.mousePosition,Nn=(0,b.useRef)(),tt=b.useState(),dt=(0,Ne.Z)(tt,2),vt=dt[0],ze=dt[1],lt={};vt&&(lt.transformOrigin=vt);function Et(){var an=Pt(Nn.current);ze(Dn?"".concat(Dn.x-an.left,"px ").concat(Dn.y-an.top,"px"):"")}return b.createElement(ct.ZP,{visible:tl,onVisibleChanged:dn,onAppearPrepare:Et,onEnterPrepare:Et,forceRender:xl,motionName:si,removeOnLeave:Qa,ref:Nn},function(an,jn){var xr=an.className,Ti=an.style;return b.createElement(mt,(0,we.Z)({},Fr,{ref:fs,title:Es,ariaId:co,prefixCls:jo,holderRef:jn,style:(0,ye.Z)((0,ye.Z)((0,ye.Z)({},Ti),xs),lt),className:f()(Za,xr)}))})});_n.displayName="Content";var Bn=_n;function Er(Fr){var fs=Fr.prefixCls,jo=Fr.style,Es=Fr.visible,xs=Fr.maskProps,Za=Fr.motionName,tl=Fr.className;return b.createElement(ct.ZP,{key:"mask",visible:Es,motionName:Za,leavedClassName:"".concat(fs,"-mask-hidden")},function(xl,Qa){var si=xl.className,co=xl.style;return b.createElement("div",(0,we.Z)({ref:Qa,style:(0,ye.Z)((0,ye.Z)({},co),jo),className:f()("".concat(fs,"-mask"),si,tl)},xs))})}var Yr=m(56790);function oi(Fr){var fs=Fr.prefixCls,jo=fs===void 0?"rc-dialog":fs,Es=Fr.zIndex,xs=Fr.visible,Za=xs===void 0?!1:xs,tl=Fr.keyboard,xl=tl===void 0?!0:tl,Qa=Fr.focusTriggerAfterClose,si=Qa===void 0?!0:Qa,co=Fr.wrapStyle,dn=Fr.wrapClassName,Dn=Fr.wrapProps,Nn=Fr.onClose,tt=Fr.afterOpenChange,dt=Fr.afterClose,vt=Fr.transitionName,ze=Fr.animation,lt=Fr.closable,Et=lt===void 0?!0:lt,an=Fr.mask,jn=an===void 0?!0:an,xr=Fr.maskTransitionName,Ti=Fr.maskAnimation,$i=Fr.maskClosable,Vi=$i===void 0?!0:$i,us=Fr.maskStyle,ks=Fr.maskProps,Os=Fr.rootClassName,pa=Fr.classNames,no=Fr.styles,Cs=(0,b.useRef)(),ea=(0,b.useRef)(),fa=(0,b.useRef)(),Bl=b.useState(Za),Ma=(0,Ne.Z)(Bl,2),gl=Ma[0],ia=Ma[1],Nl=(0,be.Z)();function cs(){(0,xe.Z)(ea.current,document.activeElement)||(Cs.current=document.activeElement)}function zi(){if(!(0,xe.Z)(ea.current,document.activeElement)){var qi;(qi=fa.current)===null||qi===void 0||qi.focus()}}function Ji(qi){if(qi)zi();else{if(ia(!1),jn&&Cs.current&&si){try{Cs.current.focus({preventScroll:!0})}catch(os){}Cs.current=null}gl&&(dt==null||dt())}tt==null||tt(qi)}function ta(qi){Nn==null||Nn(qi)}var ms=(0,b.useRef)(!1),Ua=(0,b.useRef)(),ju=function(){clearTimeout(Ua.current),ms.current=!0},rc=function(){Ua.current=setTimeout(function(){ms.current=!1})},Pc=null;Vi&&(Pc=function(os){ms.current?ms.current=!1:ea.current===os.target&&ta(os)});function ho(qi){if(xl&&qi.keyCode===Ie.Z.ESC){qi.stopPropagation(),ta(qi);return}Za&&qi.keyCode===Ie.Z.TAB&&fa.current.changeActive(!qi.shiftKey)}return(0,b.useEffect)(function(){Za&&(ia(!0),cs())},[Za]),(0,b.useEffect)(function(){return function(){clearTimeout(Ua.current)}},[]),b.createElement("div",(0,we.Z)({className:f()("".concat(jo,"-root"),Os)},(0,me.Z)(Fr,{data:!0})),b.createElement(Er,{prefixCls:jo,visible:jn&&Za,motionName:We(jo,xr,Ti),style:(0,ye.Z)((0,ye.Z)({zIndex:Es},us),no==null?void 0:no.mask),maskProps:ks,className:pa==null?void 0:pa.mask}),b.createElement("div",(0,we.Z)({tabIndex:-1,onKeyDown:ho,className:f()("".concat(jo,"-wrap"),dn,pa==null?void 0:pa.wrapper),ref:ea,onClick:Pc,style:(0,ye.Z)((0,ye.Z)((0,ye.Z)({zIndex:Es},co),no==null?void 0:no.wrapper),{},{display:gl?null:"none"})},Dn),b.createElement(Bn,(0,we.Z)({},Fr,{onMouseDown:ju,onMouseUp:rc,ref:fa,closable:Et,ariaId:Nl,prefixCls:jo,visible:Za&&gl,onClose:ta,onVisibleChanged:Ji,motionName:We(jo,vt,ze)}))))}var to=function(fs){var jo=fs.visible,Es=fs.getContainer,xs=fs.forceRender,Za=fs.destroyOnClose,tl=Za===void 0?!1:Za,xl=fs.afterClose,Qa=fs.panelRef,si=b.useState(jo),co=(0,Ne.Z)(si,2),dn=co[0],Dn=co[1],Nn=b.useMemo(function(){return{panel:Qa}},[Qa]);return b.useEffect(function(){jo&&Dn(!0)},[jo]),!xs&&tl&&!dn?null:b.createElement(ge.Provider,{value:Nn},b.createElement(Ee.Z,{open:jo||xs||dn,autoDestroy:!1,getContainer:Es,autoLock:jo||dn},b.createElement(oi,(0,we.Z)({},fs,{destroyOnClose:tl,afterClose:function(){xl==null||xl(),Dn(!1)}}))))};to.displayName="Dialog";var yo=to,vr=yo,Po=m(69760),ss=m(98924);const ve=()=>(0,ss.Z)()&&window.document.documentElement;var _o=m(53124),ci=m(65223),Bi=m(4173);function wi(){}const io=b.createContext({add:wi,remove:wi});function ln(Fr){const fs=b.useContext(io),jo=b.useRef();return(0,Yr.zX)(xs=>{if(xs){const Za=Fr?xs.querySelector(Fr):xs;fs.add(Za),jo.current=Za}else fs.remove(jo.current)})}var Ve=null,_t=m(98866),Ct=m(15867),on=()=>{const{cancelButtonProps:Fr,cancelTextLocale:fs,onCancel:jo}=(0,b.useContext)(re);return b.createElement(Ct.ZP,Object.assign({onClick:jo},Fr),fs)},Ot=m(33671),xt=()=>{const{confirmLoading:Fr,okButtonProps:fs,okType:jo,okTextLocale:Es,onOk:xs}=(0,b.useContext)(re);return b.createElement(Ct.ZP,Object.assign({},(0,Ot.nx)(jo),{loading:Fr,onClick:xs},fs),Es)},Ht=m(83008);function Zn(Fr,fs){return b.createElement("span",{className:`${Fr}-close-x`},fs||b.createElement(ke.Z,{className:`${Fr}-close-icon`}))}const tn=Fr=>{const{okText:fs,okType:jo="primary",cancelText:Es,confirmLoading:xs,onOk:Za,onCancel:tl,okButtonProps:xl,cancelButtonProps:Qa,footer:si}=Fr,[co]=(0,P.Z)("Modal",(0,Ht.A)()),dn=fs||(co==null?void 0:co.okText),Dn=Es||(co==null?void 0:co.cancelText),Nn={confirmLoading:xs,okButtonProps:xl,cancelButtonProps:Qa,okTextLocale:dn,cancelTextLocale:Dn,okType:jo,onOk:Za,onCancel:tl},tt=b.useMemo(()=>Nn,(0,y.Z)(Object.values(Nn)));let dt;return typeof si=="function"||typeof si=="undefined"?(dt=b.createElement(b.Fragment,null,b.createElement(on,null),b.createElement(xt,null)),typeof si=="function"&&(dt=si(dt,{OkBtn:xt,CancelBtn:on})),dt=b.createElement(J,{value:tt},dt)):dt=si,b.createElement(_t.n,{disabled:!1},dt)};var hr=m(14747),Zi=m(16932),Ri=m(50438),Pi=m(45503),$o=m(67968);function ys(Fr){return{position:Fr,inset:0}}const xn=Fr=>{const{componentCls:fs,antCls:jo}=Fr;return[{[`${fs}-root`]:{[`${fs}${jo}-zoom-enter, ${fs}${jo}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:Fr.motionDurationSlow,userSelect:"none"},[`${fs}${jo}-zoom-leave ${fs}-content`]:{pointerEvents:"none"},[`${fs}-mask`]:Object.assign(Object.assign({},ys("fixed")),{zIndex:Fr.zIndexPopupBase,height:"100%",backgroundColor:Fr.colorBgMask,pointerEvents:"none",[`${fs}-hidden`]:{display:"none"}}),[`${fs}-wrap`]:Object.assign(Object.assign({},ys("fixed")),{zIndex:Fr.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch",[`&:has(${fs}${jo}-zoom-enter), &:has(${fs}${jo}-zoom-appear)`]:{pointerEvents:"none"}})}},{[`${fs}-root`]:(0,Zi.J$)(Fr)}]},Hr=Fr=>{const{componentCls:fs}=Fr;return[{[`${fs}-root`]:{[`${fs}-wrap-rtl`]:{direction:"rtl"},[`${fs}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[fs]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${Fr.screenSMMax})`]:{[fs]:{maxWidth:"calc(100vw - 16px)",margin:`${Fr.marginXS} auto`},[`${fs}-centered`]:{[fs]:{flex:1}}}}},{[fs]:Object.assign(Object.assign({},(0,hr.Wf)(Fr)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${Fr.margin*2}px)`,margin:"0 auto",paddingBottom:Fr.paddingLG,[`${fs}-title`]:{margin:0,color:Fr.titleColor,fontWeight:Fr.fontWeightStrong,fontSize:Fr.titleFontSize,lineHeight:Fr.titleLineHeight,wordWrap:"break-word"},[`${fs}-content`]:{position:"relative",backgroundColor:Fr.contentBg,backgroundClip:"padding-box",border:0,borderRadius:Fr.borderRadiusLG,boxShadow:Fr.boxShadow,pointerEvents:"auto",padding:`${Fr.paddingMD}px ${Fr.paddingContentHorizontalLG}px`},[`${fs}-close`]:Object.assign({position:"absolute",top:(Fr.modalHeaderHeight-Fr.modalCloseBtnSize)/2,insetInlineEnd:(Fr.modalHeaderHeight-Fr.modalCloseBtnSize)/2,zIndex:Fr.zIndexPopupBase+10,padding:0,color:Fr.modalCloseIconColor,fontWeight:Fr.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:Fr.borderRadiusSM,width:Fr.modalCloseBtnSize,height:Fr.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${Fr.motionDurationMid}, background-color ${Fr.motionDurationMid}`,"&-x":{display:"flex",fontSize:Fr.fontSizeLG,fontStyle:"normal",lineHeight:`${Fr.modalCloseBtnSize}px`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:Fr.modalIconHoverColor,backgroundColor:Fr.wireframe?"transparent":Fr.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:Fr.wireframe?"transparent":Fr.colorFillContentHover}},(0,hr.Qy)(Fr)),[`${fs}-header`]:{color:Fr.colorText,background:Fr.headerBg,borderRadius:`${Fr.borderRadiusLG}px ${Fr.borderRadiusLG}px 0 0`,marginBottom:Fr.marginXS},[`${fs}-body`]:{fontSize:Fr.fontSize,lineHeight:Fr.lineHeight,wordWrap:"break-word"},[`${fs}-footer`]:{textAlign:"end",background:Fr.footerBg,marginTop:Fr.marginSM,[`${Fr.antCls}-btn + ${Fr.antCls}-btn:not(${Fr.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:Fr.marginXS}},[`${fs}-open`]:{overflow:"hidden"}})},{[`${fs}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${fs}-content, + `]:{animationPlayState:"running"},[`${qr}-move-up-leave`]:{animationName:Gn,animationDuration:Gr,animationPlayState:"paused",animationTimingFunction:br},[`${qr}-move-up-leave${qr}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[qr]:{[`${Tr}-wrapper`]:Object.assign({},yi)}},{[`${qr}-notice-pure-panel`]:Object.assign(Object.assign({},yi),{padding:0,textAlign:"start"})}]};var yr=(0,oi.Z)("Message",wr=>{const qr=(0,to.TS)(wr,{height:150});return[yo(qr)]},wr=>({zIndexPopup:wr.zIndexPopupBase+10,contentBg:wr.colorBgElevated,contentPadding:`${(wr.controlHeightLG-wr.fontSize*wr.lineHeight)/2}px ${wr.paddingSM}px`})),Po=function(wr,qr){var ii={};for(var rn in wr)Object.prototype.hasOwnProperty.call(wr,rn)&&qr.indexOf(rn)<0&&(ii[rn]=wr[rn]);if(wr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qn=0,rn=Object.getOwnPropertySymbols(wr);Qn{let{prefixCls:qr,type:ii,icon:rn,children:Qn}=wr;return I.createElement("div",{className:S()(`${qr}-custom-content`,`${qr}-${ii}`)},rn||as[ii],I.createElement("span",null,Qn))};var ci=wr=>{const{prefixCls:qr,className:ii,type:rn,icon:Qn,content:Vr}=wr,so=Po(wr,["prefixCls","className","type","icon","content"]),{getPrefixCls:rs}=I.useContext(Bn.E_),zt=qr||rs("message"),[,pn]=yr(zt);return I.createElement(Ie,Object.assign({},so,{prefixCls:zt,className:S()(ii,pn,`${zt}-notice-pure-panel`),eventKey:"pure",duration:null,content:I.createElement(ge,{prefixCls:zt,type:rn,icon:Qn},Vr)}))},Bi=m(49934),Ci=m(40869);function io(wr,qr){return{motionName:qr!=null?qr:`${wr}-move-up`}}function ln(wr){let qr;const ii=new Promise(Qn=>{qr=wr(()=>{Qn(!0)})}),rn=()=>{qr==null||qr()};return rn.then=(Qn,Vr)=>ii.then(Qn,Vr),rn.promise=ii,rn}var Ve=function(wr,qr){var ii={};for(var rn in wr)Object.prototype.hasOwnProperty.call(wr,rn)&&qr.indexOf(rn)<0&&(ii[rn]=wr[rn]);if(wr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qn=0,rn=Object.getOwnPropertySymbols(wr);Qn{let{children:qr,prefixCls:ii}=wr;const[,rn]=yr(ii);return I.createElement(ve,{classNames:{list:rn,notice:rn}},qr)},on=(wr,qr)=>{let{prefixCls:ii,key:rn}=qr;return I.createElement(Wt,{prefixCls:ii,key:rn},wr)},Ot=I.forwardRef((wr,qr)=>{const{top:ii,prefixCls:rn,getContainer:Qn,maxCount:Vr,duration:so=xt,rtl:rs,transitionName:zt,onAllRemoved:pn}=wr,{getPrefixCls:br,getPopupContainer:Gr,message:ui}=I.useContext(Bn.E_),xi=rn||br("message"),lo=()=>({left:"50%",transform:"translateX(-50%)",top:ii!=null?ii:_t}),Kr=()=>S()({[`${xi}-rtl`]:rs}),ti=()=>io(xi,zt),ji=I.createElement("span",{className:`${xi}-close-x`},I.createElement(Bi.Z,{className:`${xi}-close-icon`})),[Tr,Qt]=_n({prefixCls:xi,style:lo,className:Kr,motion:ti,closable:!1,closeIcon:ji,duration:so,getContainer:()=>(Qn==null?void 0:Qn())||(Gr==null?void 0:Gr())||document.body,maxCount:Vr,onAllRemoved:pn,renderNotifications:on});return I.useImperativeHandle(qr,()=>Object.assign(Object.assign({},Tr),{prefixCls:xi,message:ui})),Qt});let Tt=0;function bt(wr){const qr=I.useRef(null),ii=(0,Ci.ln)("Message");return[I.useMemo(()=>{const Qn=pn=>{var br;(br=qr.current)===null||br===void 0||br.close(pn)},Vr=pn=>{if(!qr.current){const Si=()=>{};return Si.then=()=>{},Si}const{open:br,prefixCls:Gr,message:ui}=qr.current,xi=`${Gr}-notice`,{content:lo,icon:Kr,type:ti,key:ji,className:Tr,style:Qt,onClose:Gn}=pn,yi=Ve(pn,["content","icon","type","key","className","style","onClose"]);let Ln=ji;return Ln==null&&(Tt+=1,Ln=`antd-message-${Tt}`),ln(Si=>(br(Object.assign(Object.assign({},yi),{key:Ln,content:I.createElement(ge,{prefixCls:Gr,type:ti,icon:Kr},lo),placement:"top",className:S()(ti&&`${xi}-${ti}`,Tr,ui==null?void 0:ui.className),style:Object.assign(Object.assign({},ui==null?void 0:ui.style),Qt),onClose:()=>{Gn==null||Gn(),Si()}})),()=>{Qn(Ln)}))},rs={open:Vr,destroy:pn=>{var br;pn!==void 0?Qn(pn):(br=qr.current)===null||br===void 0||br.destroy()}};return["info","success","warning","error","loading"].forEach(pn=>{const br=(Gr,ui,xi)=>{let lo;Gr&&typeof Gr=="object"&&"content"in Gr?lo=Gr:lo={content:Gr};let Kr,ti;typeof ui=="function"?ti=ui:(Kr=ui,ti=xi);const ji=Object.assign(Object.assign({onClose:ti,duration:Kr},lo),{type:pn});return Vr(ji)};rs[pn]=br}),rs},[]),I.createElement(Ot,Object.assign({key:"message-holder"},wr,{ref:qr}))]}function Ht(wr){return bt(wr)}let Wn=null,tn=wr=>wr(),hr=[],Zi={};function Ri(){const{prefixCls:wr,getContainer:qr,duration:ii,rtl:rn,maxCount:Qn,top:Vr}=Zi,so=wr!=null?wr:(0,z.w6)().getPrefixCls("message"),rs=(qr==null?void 0:qr())||document.body;return{prefixCls:so,getContainer:()=>rs,duration:ii,rtl:rn,maxCount:Qn,top:Vr}}const Pi=I.forwardRef((wr,qr)=>{const[ii,rn]=I.useState(Ri),[Qn,Vr]=bt(ii),so=(0,z.w6)(),rs=so.getRootPrefixCls(),zt=so.getIconPrefixCls(),pn=so.getTheme(),br=()=>{rn(Ri)};return I.useEffect(br,[]),I.useImperativeHandle(qr,()=>{const Gr=Object.assign({},Qn);return Object.keys(Gr).forEach(ui=>{Gr[ui]=function(){return br(),Qn[ui].apply(Qn,arguments)}}),{instance:Gr,sync:br}}),I.createElement(z.ZP,{prefixCls:rs,iconPrefixCls:zt,theme:pn},Vr)});function Wo(){if(!Wn){const wr=document.createDocumentFragment(),qr={fragment:wr};Wn=qr,tn(()=>{(0,b.s)(I.createElement(Pi,{ref:ii=>{const{instance:rn,sync:Qn}=ii||{};Promise.resolve().then(()=>{!qr.instance&&rn&&(qr.instance=rn,qr.sync=Qn,Wo())})}}),wr)});return}Wn.instance&&(hr.forEach(wr=>{const{type:qr,skipped:ii}=wr;if(!ii)switch(qr){case"open":{tn(()=>{const rn=Wn.instance.open(Object.assign(Object.assign({},Zi),wr.config));rn==null||rn.then(wr.resolve),wr.setCloseFn(rn)});break}case"destroy":tn(()=>{Wn==null||Wn.instance.destroy(wr.key)});break;default:tn(()=>{var rn;const Qn=(rn=Wn.instance)[qr].apply(rn,(0,y.Z)(wr.args));Qn==null||Qn.then(wr.resolve),wr.setCloseFn(Qn)})}}),hr=[])}function ys(wr){Zi=Object.assign(Object.assign({},Zi),wr),tn(()=>{var qr;(qr=Wn==null?void 0:Wn.sync)===null||qr===void 0||qr.call(Wn)})}function xn(wr){const qr=ln(ii=>{let rn;const Qn={type:"open",config:wr,resolve:ii,setCloseFn:Vr=>{rn=Vr}};return hr.push(Qn),()=>{rn?tn(()=>{rn()}):Qn.skipped=!0}});return Wo(),qr}function Hr(wr,qr){const ii=ln(rn=>{let Qn;const Vr={type:wr,args:qr,resolve:rn,setCloseFn:so=>{Qn=so}};return hr.push(Vr),()=>{Qn?tn(()=>{Qn()}):Vr.skipped=!0}});return Wo(),ii}function Jr(wr){hr.push({type:"destroy",key:wr}),Wo()}const Yi=["success","info","warning","error","loading"],na={open:xn,destroy:Jr,config:ys,useMessage:Ht,_InternalPanelDoNotUseOrYouWillBeFired:ci};Yi.forEach(wr=>{na[wr]=function(){for(var qr=arguments.length,ii=new Array(qr),rn=0;rn{};let Xn=null,Mr=null;var li=na},78744:function(nt,V,m){"use strict";m.d(V,{Z:function(){return cl}});var y=m(42371),I=m(13493),b=m(77617),z=m(75811),k=m(95934),N=m(48796),w=m(86850),A=m(37748),C=m(12124),f=m.n(C),S=m(26612),P=m(879),W=m(66934);const ne=b.createContext({}),{Provider:re}=ne;var pe=()=>{const{autoFocusButton:Fr,cancelButtonProps:fs,cancelTextLocale:jo,isSilent:Es,mergedOkCancel:xs,rootPrefixCls:Za,close:tl,onCancel:xl,onConfirm:Qa}=(0,b.useContext)(ne);return xs?b.createElement(W.Z,{isSilent:Es,actionFn:xl,close:function(){tl==null||tl.apply(void 0,arguments),Qa==null||Qa(!1)},autoFocus:Fr==="cancel",buttonProps:fs,prefixCls:`${Za}-btn`},jo):null},fe=()=>{const{autoFocusButton:Fr,close:fs,isSilent:jo,okButtonProps:Es,rootPrefixCls:xs,okTextLocale:Za,okType:tl,onConfirm:xl,onOk:Qa}=(0,b.useContext)(ne);return b.createElement(W.Z,{isSilent:jo,type:tl||"primary",actionFn:Qa,close:function(){fs==null||fs.apply(void 0,arguments),xl==null||xl(!0)},autoFocus:Fr==="ok",buttonProps:Es,prefixCls:`${xs}-btn`},Za)},Be=m(49934),Ie=m(26508),We=m(39718),De=m(43403),ve=b.createContext({}),ye=m(74710),we=m(67168),Ce=m(59872),Ae=m(38251),me=m(5090);function je(Fr,fs,jo){var Es=fs;return!Es&&jo&&(Es="".concat(Fr,"-").concat(jo)),Es}function xe(Fr,fs){var jo=Fr["page".concat(fs?"Y":"X","Offset")],Es="scroll".concat(fs?"Top":"Left");if(typeof jo!="number"){var xs=Fr.document;jo=xs.documentElement[Es],typeof jo!="number"&&(jo=xs.body[Es])}return jo}function Pt(Fr){var fs=Fr.getBoundingClientRect(),jo={left:fs.left,top:fs.top},Es=Fr.ownerDocument,xs=Es.defaultView||Es.parentWindow;return jo.left+=xe(xs),jo.top+=xe(xs,!0),jo}var ct=m(44516),He=m(9681),wt=b.memo(function(Fr){var fs=Fr.children;return fs},function(Fr,fs){var jo=fs.shouldUpdate;return!jo}),dt={width:0,height:0,overflow:"hidden",outline:"none"},Bt=b.forwardRef(function(Fr,fs){var jo=Fr.prefixCls,Es=Fr.className,xs=Fr.style,Za=Fr.title,tl=Fr.ariaId,xl=Fr.footer,Qa=Fr.closable,si=Fr.closeIcon,co=Fr.onClose,dn=Fr.children,An=Fr.bodyStyle,Nn=Fr.bodyProps,tt=Fr.modalRender,ht=Fr.onMouseDown,vt=Fr.onMouseUp,Fe=Fr.holderRef,lt=Fr.visible,Et=Fr.forceRender,an=Fr.width,jn=Fr.height,Cr=Fr.classNames,Ti=Fr.styles,$i=b.useContext(ve),Vi=$i.panel,us=(0,He.x1)(Fe,Vi),ks=(0,b.useRef)(),Os=(0,b.useRef)();b.useImperativeHandle(fs,function(){return{focus:function(){var Ma;(Ma=ks.current)===null||Ma===void 0||Ma.focus()},changeActive:function(Ma){var pl=document,oa=pl.activeElement;Ma&&oa===Os.current?ks.current.focus():!Ma&&oa===ks.current&&Os.current.focus()}}});var pa={};an!==void 0&&(pa.width=an),jn!==void 0&&(pa.height=jn);var no;xl&&(no=b.createElement("div",{className:f()("".concat(jo,"-footer"),Cr==null?void 0:Cr.footer),style:(0,ye.Z)({},Ti==null?void 0:Ti.footer)},xl));var Cs;Za&&(Cs=b.createElement("div",{className:f()("".concat(jo,"-header"),Cr==null?void 0:Cr.header),style:(0,ye.Z)({},Ti==null?void 0:Ti.header)},b.createElement("div",{className:"".concat(jo,"-title"),id:tl},Za)));var ea;Qa&&(ea=b.createElement("button",{type:"button",onClick:co,"aria-label":"Close",className:"".concat(jo,"-close")},si||b.createElement("span",{className:"".concat(jo,"-close-x")})));var fa=b.createElement("div",{className:f()("".concat(jo,"-content"),Cr==null?void 0:Cr.content),style:Ti==null?void 0:Ti.content},ea,Cs,b.createElement("div",(0,Ie.Z)({className:f()("".concat(jo,"-body"),Cr==null?void 0:Cr.body),style:(0,ye.Z)((0,ye.Z)({},An),Ti==null?void 0:Ti.body)},Nn),dn),no);return b.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":Za?tl:null,"aria-modal":"true",ref:us,style:(0,ye.Z)((0,ye.Z)({},xs),pa),className:f()(jo,Es),onMouseDown:ht,onMouseUp:vt},b.createElement("div",{tabIndex:0,ref:ks,style:dt,"aria-hidden":"true"}),b.createElement(wt,{shouldUpdate:lt||Et},tt?tt(fa):fa),b.createElement("div",{tabIndex:0,ref:Os,style:dt,"aria-hidden":"true"}))}),gt=Bt,_n=b.forwardRef(function(Fr,fs){var jo=Fr.prefixCls,Es=Fr.title,xs=Fr.style,Za=Fr.className,tl=Fr.visible,xl=Fr.forceRender,Qa=Fr.destroyOnClose,si=Fr.motionName,co=Fr.ariaId,dn=Fr.onVisibleChanged,An=Fr.mousePosition,Nn=(0,b.useRef)(),tt=b.useState(),ht=(0,We.Z)(tt,2),vt=ht[0],Fe=ht[1],lt={};vt&&(lt.transformOrigin=vt);function Et(){var an=Pt(Nn.current);Fe(An?"".concat(An.x-an.left,"px ").concat(An.y-an.top,"px"):"")}return b.createElement(ct.ZP,{visible:tl,onVisibleChanged:dn,onAppearPrepare:Et,onEnterPrepare:Et,forceRender:xl,motionName:si,removeOnLeave:Qa,ref:Nn},function(an,jn){var Cr=an.className,Ti=an.style;return b.createElement(gt,(0,Ie.Z)({},Fr,{ref:fs,title:Es,ariaId:co,prefixCls:jo,holderRef:jn,style:(0,ye.Z)((0,ye.Z)((0,ye.Z)({},Ti),xs),lt),className:f()(Za,Cr)}))})});_n.displayName="Content";var Bn=_n;function Er(Fr){var fs=Fr.prefixCls,jo=Fr.style,Es=Fr.visible,xs=Fr.maskProps,Za=Fr.motionName,tl=Fr.className;return b.createElement(ct.ZP,{key:"mask",visible:Es,motionName:Za,leavedClassName:"".concat(fs,"-mask-hidden")},function(xl,Qa){var si=xl.className,co=xl.style;return b.createElement("div",(0,Ie.Z)({ref:Qa,style:(0,ye.Z)((0,ye.Z)({},co),jo),className:f()("".concat(fs,"-mask"),si,tl)},xs))})}var Yr=m(95470);function oi(Fr){var fs=Fr.prefixCls,jo=fs===void 0?"rc-dialog":fs,Es=Fr.zIndex,xs=Fr.visible,Za=xs===void 0?!1:xs,tl=Fr.keyboard,xl=tl===void 0?!0:tl,Qa=Fr.focusTriggerAfterClose,si=Qa===void 0?!0:Qa,co=Fr.wrapStyle,dn=Fr.wrapClassName,An=Fr.wrapProps,Nn=Fr.onClose,tt=Fr.afterOpenChange,ht=Fr.afterClose,vt=Fr.transitionName,Fe=Fr.animation,lt=Fr.closable,Et=lt===void 0?!0:lt,an=Fr.mask,jn=an===void 0?!0:an,Cr=Fr.maskTransitionName,Ti=Fr.maskAnimation,$i=Fr.maskClosable,Vi=$i===void 0?!0:$i,us=Fr.maskStyle,ks=Fr.maskProps,Os=Fr.rootClassName,pa=Fr.classNames,no=Fr.styles,Cs=(0,b.useRef)(),ea=(0,b.useRef)(),fa=(0,b.useRef)(),Bl=b.useState(Za),Ma=(0,We.Z)(Bl,2),pl=Ma[0],oa=Ma[1],Nl=(0,Ce.Z)();function cs(){(0,we.Z)(ea.current,document.activeElement)||(Cs.current=document.activeElement)}function zi(){if(!(0,we.Z)(ea.current,document.activeElement)){var Ji;(Ji=fa.current)===null||Ji===void 0||Ji.focus()}}function qi(Ji){if(Ji)zi();else{if(oa(!1),jn&&Cs.current&&si){try{Cs.current.focus({preventScroll:!0})}catch(ss){}Cs.current=null}pl&&(ht==null||ht())}tt==null||tt(Ji)}function ta(Ji){Nn==null||Nn(Ji)}var ms=(0,b.useRef)(!1),Ua=(0,b.useRef)(),$u=function(){clearTimeout(Ua.current),ms.current=!0},rc=function(){Ua.current=setTimeout(function(){ms.current=!1})},Pc=null;Vi&&(Pc=function(ss){ms.current?ms.current=!1:ea.current===ss.target&&ta(ss)});function ho(Ji){if(xl&&Ji.keyCode===Ae.Z.ESC){Ji.stopPropagation(),ta(Ji);return}Za&&Ji.keyCode===Ae.Z.TAB&&fa.current.changeActive(!Ji.shiftKey)}return(0,b.useEffect)(function(){Za&&(oa(!0),cs())},[Za]),(0,b.useEffect)(function(){return function(){clearTimeout(Ua.current)}},[]),b.createElement("div",(0,Ie.Z)({className:f()("".concat(jo,"-root"),Os)},(0,me.Z)(Fr,{data:!0})),b.createElement(Er,{prefixCls:jo,visible:jn&&Za,motionName:je(jo,Cr,Ti),style:(0,ye.Z)((0,ye.Z)({zIndex:Es},us),no==null?void 0:no.mask),maskProps:ks,className:pa==null?void 0:pa.mask}),b.createElement("div",(0,Ie.Z)({tabIndex:-1,onKeyDown:ho,className:f()("".concat(jo,"-wrap"),dn,pa==null?void 0:pa.wrapper),ref:ea,onClick:Pc,style:(0,ye.Z)((0,ye.Z)((0,ye.Z)({zIndex:Es},co),no==null?void 0:no.wrapper),{},{display:pl?null:"none"})},An),b.createElement(Bn,(0,Ie.Z)({},Fr,{onMouseDown:$u,onMouseUp:rc,ref:fa,closable:Et,ariaId:Nl,prefixCls:jo,visible:Za&&pl,onClose:ta,onVisibleChanged:qi,motionName:je(jo,vt,Fe)}))))}var to=function(fs){var jo=fs.visible,Es=fs.getContainer,xs=fs.forceRender,Za=fs.destroyOnClose,tl=Za===void 0?!1:Za,xl=fs.afterClose,Qa=fs.panelRef,si=b.useState(jo),co=(0,We.Z)(si,2),dn=co[0],An=co[1],Nn=b.useMemo(function(){return{panel:Qa}},[Qa]);return b.useEffect(function(){jo&&An(!0)},[jo]),!xs&&tl&&!dn?null:b.createElement(ve.Provider,{value:Nn},b.createElement(De.Z,{open:jo||xs||dn,autoDestroy:!1,getContainer:Es,autoLock:jo||dn},b.createElement(oi,(0,Ie.Z)({},fs,{destroyOnClose:tl,afterClose:function(){xl==null||xl(),An(!1)}}))))};to.displayName="Dialog";var yo=to,yr=yo,Po=m(52273),as=m(53261);const ge=()=>(0,as.Z)()&&window.document.documentElement;var _o=m(67392),ci=m(86818),Bi=m(58370);function Ci(){}const io=b.createContext({add:Ci,remove:Ci});function ln(Fr){const fs=b.useContext(io),jo=b.useRef();return(0,Yr.zX)(xs=>{if(xs){const Za=Fr?xs.querySelector(Fr):xs;fs.add(Za),jo.current=Za}else fs.remove(jo.current)})}var Ve=null,_t=m(81689),xt=m(38115),on=()=>{const{cancelButtonProps:Fr,cancelTextLocale:fs,onCancel:jo}=(0,b.useContext)(ne);return b.createElement(xt.ZP,Object.assign({onClick:jo},Fr),fs)},Ot=m(81201),bt=()=>{const{confirmLoading:Fr,okButtonProps:fs,okType:jo,okTextLocale:Es,onOk:xs}=(0,b.useContext)(ne);return b.createElement(xt.ZP,Object.assign({},(0,Ot.nx)(jo),{loading:Fr,onClick:xs},fs),Es)},Ht=m(75707);function Wn(Fr,fs){return b.createElement("span",{className:`${Fr}-close-x`},fs||b.createElement(Be.Z,{className:`${Fr}-close-icon`}))}const tn=Fr=>{const{okText:fs,okType:jo="primary",cancelText:Es,confirmLoading:xs,onOk:Za,onCancel:tl,okButtonProps:xl,cancelButtonProps:Qa,footer:si}=Fr,[co]=(0,P.Z)("Modal",(0,Ht.A)()),dn=fs||(co==null?void 0:co.okText),An=Es||(co==null?void 0:co.cancelText),Nn={confirmLoading:xs,okButtonProps:xl,cancelButtonProps:Qa,okTextLocale:dn,cancelTextLocale:An,okType:jo,onOk:Za,onCancel:tl},tt=b.useMemo(()=>Nn,(0,y.Z)(Object.values(Nn)));let ht;return typeof si=="function"||typeof si=="undefined"?(ht=b.createElement(b.Fragment,null,b.createElement(on,null),b.createElement(bt,null)),typeof si=="function"&&(ht=si(ht,{OkBtn:bt,CancelBtn:on})),ht=b.createElement(re,{value:tt},ht)):ht=si,b.createElement(_t.n,{disabled:!1},ht)};var hr=m(92068),Zi=m(42402),Ri=m(69601),Pi=m(41788),Wo=m(24577);function ys(Fr){return{position:Fr,inset:0}}const xn=Fr=>{const{componentCls:fs,antCls:jo}=Fr;return[{[`${fs}-root`]:{[`${fs}${jo}-zoom-enter, ${fs}${jo}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:Fr.motionDurationSlow,userSelect:"none"},[`${fs}${jo}-zoom-leave ${fs}-content`]:{pointerEvents:"none"},[`${fs}-mask`]:Object.assign(Object.assign({},ys("fixed")),{zIndex:Fr.zIndexPopupBase,height:"100%",backgroundColor:Fr.colorBgMask,pointerEvents:"none",[`${fs}-hidden`]:{display:"none"}}),[`${fs}-wrap`]:Object.assign(Object.assign({},ys("fixed")),{zIndex:Fr.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch",[`&:has(${fs}${jo}-zoom-enter), &:has(${fs}${jo}-zoom-appear)`]:{pointerEvents:"none"}})}},{[`${fs}-root`]:(0,Zi.J$)(Fr)}]},Hr=Fr=>{const{componentCls:fs}=Fr;return[{[`${fs}-root`]:{[`${fs}-wrap-rtl`]:{direction:"rtl"},[`${fs}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[fs]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${Fr.screenSMMax})`]:{[fs]:{maxWidth:"calc(100vw - 16px)",margin:`${Fr.marginXS} auto`},[`${fs}-centered`]:{[fs]:{flex:1}}}}},{[fs]:Object.assign(Object.assign({},(0,hr.Wf)(Fr)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${Fr.margin*2}px)`,margin:"0 auto",paddingBottom:Fr.paddingLG,[`${fs}-title`]:{margin:0,color:Fr.titleColor,fontWeight:Fr.fontWeightStrong,fontSize:Fr.titleFontSize,lineHeight:Fr.titleLineHeight,wordWrap:"break-word"},[`${fs}-content`]:{position:"relative",backgroundColor:Fr.contentBg,backgroundClip:"padding-box",border:0,borderRadius:Fr.borderRadiusLG,boxShadow:Fr.boxShadow,pointerEvents:"auto",padding:`${Fr.paddingMD}px ${Fr.paddingContentHorizontalLG}px`},[`${fs}-close`]:Object.assign({position:"absolute",top:(Fr.modalHeaderHeight-Fr.modalCloseBtnSize)/2,insetInlineEnd:(Fr.modalHeaderHeight-Fr.modalCloseBtnSize)/2,zIndex:Fr.zIndexPopupBase+10,padding:0,color:Fr.modalCloseIconColor,fontWeight:Fr.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:Fr.borderRadiusSM,width:Fr.modalCloseBtnSize,height:Fr.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${Fr.motionDurationMid}, background-color ${Fr.motionDurationMid}`,"&-x":{display:"flex",fontSize:Fr.fontSizeLG,fontStyle:"normal",lineHeight:`${Fr.modalCloseBtnSize}px`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:Fr.modalIconHoverColor,backgroundColor:Fr.wireframe?"transparent":Fr.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:Fr.wireframe?"transparent":Fr.colorFillContentHover}},(0,hr.Qy)(Fr)),[`${fs}-header`]:{color:Fr.colorText,background:Fr.headerBg,borderRadius:`${Fr.borderRadiusLG}px ${Fr.borderRadiusLG}px 0 0`,marginBottom:Fr.marginXS},[`${fs}-body`]:{fontSize:Fr.fontSize,lineHeight:Fr.lineHeight,wordWrap:"break-word"},[`${fs}-footer`]:{textAlign:"end",background:Fr.footerBg,marginTop:Fr.marginSM,[`${Fr.antCls}-btn + ${Fr.antCls}-btn:not(${Fr.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:Fr.marginXS}},[`${fs}-open`]:{overflow:"hidden"}})},{[`${fs}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${fs}-content, ${fs}-body, - ${fs}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${fs}-confirm-body`]:{marginBottom:"auto"}}}]},Jr=Fr=>{const{componentCls:fs,antCls:jo}=Fr,Es=`${fs}-confirm`;return{[fs]:{[`${fs}-content`]:{padding:0},[`${fs}-header`]:{padding:Fr.modalHeaderPadding,borderBottom:`${Fr.modalHeaderBorderWidth}px ${Fr.modalHeaderBorderStyle} ${Fr.modalHeaderBorderColorSplit}`,marginBottom:0},[`${fs}-body`]:{padding:Fr.modalBodyPadding},[`${fs}-footer`]:{padding:`${Fr.modalFooterPaddingVertical}px ${Fr.modalFooterPaddingHorizontal}px`,borderTop:`${Fr.modalFooterBorderWidth}px ${Fr.modalFooterBorderStyle} ${Fr.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${Fr.borderRadiusLG}px ${Fr.borderRadiusLG}px`,marginTop:0}},[Es]:{[`${jo}-modal-body`]:{padding:`${Fr.padding*2}px ${Fr.padding*2}px ${Fr.paddingLG}px`},[`${Es}-body > ${Fr.iconCls}`]:{marginInlineEnd:Fr.margin},[`${Es}-btns`]:{marginTop:Fr.marginLG}}}},Yi=Fr=>{const{componentCls:fs}=Fr;return{[`${fs}-root`]:{[`${fs}-wrap-rtl`]:{direction:"rtl",[`${fs}-confirm-body`]:{direction:"rtl"}}}}},xo=Fr=>{const fs=Fr.padding,jo=Fr.fontSizeHeading5,Es=Fr.lineHeightHeading5;return(0,Pi.TS)(Fr,{modalBodyPadding:Fr.paddingLG,modalHeaderPadding:`${fs}px ${Fr.paddingLG}px`,modalHeaderBorderWidth:Fr.lineWidth,modalHeaderBorderStyle:Fr.lineType,modalHeaderBorderColorSplit:Fr.colorSplit,modalHeaderHeight:Es*jo+fs*2,modalFooterBorderColorSplit:Fr.colorSplit,modalFooterBorderStyle:Fr.lineType,modalFooterPaddingVertical:Fr.paddingXS,modalFooterPaddingHorizontal:Fr.padding,modalFooterBorderWidth:Fr.lineWidth,modalIconHoverColor:Fr.colorIconHover,modalCloseIconColor:Fr.colorIcon,modalCloseBtnSize:Fr.fontSize*Fr.lineHeight,modalConfirmIconSize:Fr.fontSize*Fr.lineHeight})},na=Fr=>({footerBg:"transparent",headerBg:Fr.colorBgElevated,titleLineHeight:Fr.lineHeightHeading5,titleFontSize:Fr.fontSizeHeading5,contentBg:Fr.colorBgElevated,titleColor:Fr.colorTextHeading});var Vn=(0,$o.Z)("Modal",Fr=>{const fs=xo(Fr);return[Hr(fs),Yi(fs),xn(fs),Fr.wireframe&&Jr(fs),(0,Ri._y)(fs,"zoom")]},na),Xn=function(Fr,fs){var jo={};for(var Es in Fr)Object.prototype.hasOwnProperty.call(Fr,Es)&&fs.indexOf(Es)<0&&(jo[Es]=Fr[Es]);if(Fr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xs=0,Es=Object.getOwnPropertySymbols(Fr);xs{Mr={x:Fr.pageX,y:Fr.pageY},setTimeout(()=>{Mr=null},100)};ve()&&document.documentElement.addEventListener("click",li,!0);var qr=Fr=>{var fs;const{getPopupContainer:jo,getPrefixCls:Es,direction:xs,modal:Za}=b.useContext(_o.E_),tl=Bl=>{const{onCancel:Ma}=Fr;Ma==null||Ma(Bl)},xl=Bl=>{const{onOk:Ma}=Fr;Ma==null||Ma(Bl)},{prefixCls:Qa,className:si,rootClassName:co,open:dn,wrapClassName:Dn,centered:Nn,getContainer:tt,closeIcon:dt,closable:vt,focusTriggerAfterClose:ze=!0,style:lt,visible:Et,width:an=520,footer:jn,classNames:xr,styles:Ti}=Fr,$i=Xn(Fr,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer","classNames","styles"]),Vi=Es("modal",Qa),us=Es(),[ks,Os]=Vn(Vi),pa=f()(Dn,{[`${Vi}-centered`]:!!Nn,[`${Vi}-wrap-rtl`]:xs==="rtl"}),no=jn!==null&&b.createElement(tn,Object.assign({},Fr,{onOk:xl,onCancel:tl})),[Cs,ea]=(0,Po.Z)(vt,dt,Bl=>Zn(Vi,Bl),b.createElement(ke.Z,{className:`${Vi}-close-icon`}),!0),fa=ln(`.${Vi}-content`);return ks(b.createElement(Bi.BR,null,b.createElement(ci.Ux,{status:!0,override:!0},b.createElement(vr,Object.assign({width:an},$i,{getContainer:tt===void 0?jo:tt,prefixCls:Vi,rootClassName:f()(Os,co),footer:no,visible:dn!=null?dn:Et,mousePosition:(fs=$i.mousePosition)!==null&&fs!==void 0?fs:Mr,onClose:tl,closable:Cs,closeIcon:ea,focusTriggerAfterClose:ze,transitionName:(0,S.m)(us,"zoom",Fr.transitionName),maskTransitionName:(0,S.m)(us,"fade",Fr.maskTransitionName),className:f()(Os,si,Za==null?void 0:Za.className),style:Object.assign(Object.assign({},Za==null?void 0:Za.style),lt),classNames:Object.assign(Object.assign({wrapper:pa},Za==null?void 0:Za.classNames),xr),styles:Object.assign(Object.assign({},Za==null?void 0:Za.styles),Ti),panelRef:fa})))))};const ii=Fr=>{const{componentCls:fs,titleFontSize:jo,titleLineHeight:Es,modalConfirmIconSize:xs,fontSize:Za,lineHeight:tl}=Fr,xl=`${fs}-confirm`,Qa=Math.round(jo*Es),si=Math.round(Za*tl);return{[xl]:{"&-rtl":{direction:"rtl"},[`${Fr.antCls}-modal-header`]:{display:"none"},[`${xl}-body-wrapper`]:Object.assign({},(0,hr.dF)()),[`${xl}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${Fr.iconCls}`]:{flex:"none",fontSize:xs,marginInlineEnd:Fr.marginSM,marginTop:(si-xs)/2},[`&-has-title > ${Fr.iconCls}`]:{marginTop:(Qa-xs)/2}},[`${xl}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:Fr.marginXS,maxWidth:`calc(100% - ${Fr.modalConfirmIconSize+Fr.marginSM}px)`},[`${xl}-title`]:{color:Fr.colorTextHeading,fontWeight:Fr.fontWeightStrong,fontSize:jo,lineHeight:Es},[`${xl}-content`]:{color:Fr.colorText,fontSize:Za,lineHeight:tl},[`${xl}-btns`]:{textAlign:"end",marginTop:Fr.marginSM,[`${Fr.antCls}-btn + ${Fr.antCls}-btn`]:{marginBottom:0,marginInlineStart:Fr.marginXS}}},[`${xl}-error ${xl}-body > ${Fr.iconCls}`]:{color:Fr.colorError},[`${xl}-warning ${xl}-body > ${Fr.iconCls}, - ${xl}-confirm ${xl}-body > ${Fr.iconCls}`]:{color:Fr.colorWarning},[`${xl}-info ${xl}-body > ${Fr.iconCls}`]:{color:Fr.colorInfo},[`${xl}-success ${xl}-body > ${Fr.iconCls}`]:{color:Fr.colorSuccess}}};var rn=(0,$o.b)(["Modal","confirm"],Fr=>{const fs=xo(Fr);return[ii(fs)]},na,{order:-1e3}),Jn=function(Fr,fs){var jo={};for(var Es in Fr)Object.prototype.hasOwnProperty.call(Fr,Es)&&fs.indexOf(Es)<0&&(jo[Es]=Fr[Es]);if(Fr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xs=0,Es=Object.getOwnPropertySymbols(Fr);xslt,(0,y.Z)(Object.values(lt))),an=b.createElement(b.Fragment,null,b.createElement(de,null),b.createElement(fe,null)),jn=Fr.title!==void 0&&Fr.title!==null,xr=`${Za}-body`;return b.createElement("div",{className:`${Za}-body-wrapper`},b.createElement("div",{className:f()(xr,{[`${xr}-has-title`]:jn})},dn,b.createElement("div",{className:`${Za}-paragraph`},jn&&b.createElement("span",{className:`${Za}-title`},Fr.title),b.createElement("div",{className:`${Za}-content`},Fr.content))),Qa===void 0||typeof Qa=="function"?b.createElement(J,{value:Et},b.createElement("div",{className:`${Za}-btns`},typeof Qa=="function"?Qa(an,{OkBtn:fe,CancelBtn:de}):an)):Qa,b.createElement(rn,{prefixCls:fs}))}var rs=Fr=>{const{close:fs,zIndex:jo,afterClose:Es,open:xs,keyboard:Za,centered:tl,getContainer:xl,maskStyle:Qa,direction:si,prefixCls:co,wrapClassName:dn,rootPrefixCls:Dn,iconPrefixCls:Nn,theme:tt,bodyStyle:dt,closable:vt=!1,closeIcon:ze,modalRender:lt,focusTriggerAfterClose:Et,onConfirm:an}=Fr,jn=`${co}-confirm`,xr=Fr.width||416,Ti=Fr.style||{},$i=Fr.mask===void 0?!0:Fr.mask,Vi=Fr.maskClosable===void 0?!1:Fr.maskClosable,us=f()(jn,`${jn}-${Fr.type}`,{[`${jn}-rtl`]:si==="rtl"},Fr.className);return b.createElement(z.ZP,{prefixCls:Dn,iconPrefixCls:Nn,direction:si,theme:tt},b.createElement(qr,{prefixCls:co,className:us,wrapClassName:f()({[`${jn}-centered`]:!!Fr.centered},dn),onCancel:()=>{fs==null||fs({triggerCancel:!0}),an==null||an(!1)},open:xs,title:"",footer:null,transitionName:(0,S.m)(Dn||"","zoom",Fr.transitionName),maskTransitionName:(0,S.m)(Dn||"","fade",Fr.maskTransitionName),mask:$i,maskClosable:Vi,style:Ti,styles:{body:dt,mask:Qa},width:xr,zIndex:jo,afterClose:Es,keyboard:Za,centered:tl,getContainer:xl,closable:vt,closeIcon:ze,modalRender:lt,focusTriggerAfterClose:Et},b.createElement(Vr,Object.assign({},Fr,{confirmPrefixCls:jn}))))},pn=[],_r=function(Fr,fs){var jo={};for(var Es in Fr)Object.prototype.hasOwnProperty.call(Fr,Es)&&fs.indexOf(Es)<0&&(jo[Es]=Fr[Es]);if(Fr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xs=0,Es=Object.getOwnPropertySymbols(Fr);xsDn&&Dn.triggerCancel);Fr.onCancel&&dn&&Fr.onCancel.apply(Fr,[()=>{}].concat((0,y.Z)(si.slice(1))));for(let Dn=0;Dn{const tt=(0,Ht.A)(),{getPrefixCls:dt,getIconPrefixCls:vt,getTheme:ze}=(0,z.w6)(),lt=dt(void 0,ui()),Et=dn||`${lt}-modal`,an=vt(),jn=ze();let xr=Dn;xr===!1&&(xr=void 0),(0,A.s)(b.createElement(rs,Object.assign({},Nn,{getContainer:xr,prefixCls:Et,rootPrefixCls:lt,iconPrefixCls:an,okText:si,locale:tt,theme:jn,cancelText:co||tt.cancelText})),fs)})}function tl(){for(var Qa=arguments.length,si=new Array(Qa),co=0;co{typeof Fr.afterClose=="function"&&Fr.afterClose(),xs.apply(this,si)}}),jo.visible&&delete jo.visible,Za(jo)}function xl(Qa){typeof Qa=="function"?jo=Qa(jo):jo=Object.assign(Object.assign({},jo),Qa),Za(jo)}return Za(jo),pn.push(tl),{destroy:tl,update:xl}}function lo(Fr){return Object.assign(Object.assign({},Fr),{type:"warning"})}function Kr(Fr){return Object.assign(Object.assign({},Fr),{type:"info"})}function ti(Fr){return Object.assign(Object.assign({},Fr),{type:"success"})}function Wi(Fr){return Object.assign(Object.assign({},Fr),{type:"error"})}function Tr(Fr){return Object.assign(Object.assign({},Fr),{type:"confirm"})}function Qt(Fr){let{rootPrefixCls:fs}=Fr;Gr=fs}var Gn=m(8745),yi=function(Fr,fs){var jo={};for(var Es in Fr)Object.prototype.hasOwnProperty.call(Fr,Es)&&fs.indexOf(Es)<0&&(jo[Es]=Fr[Es]);if(Fr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xs=0,Es=Object.getOwnPropertySymbols(Fr);xs{const{prefixCls:fs,className:jo,closeIcon:Es,closable:xs,type:Za,title:tl,children:xl}=Fr,Qa=yi(Fr,["prefixCls","className","closeIcon","closable","type","title","children"]),{getPrefixCls:si}=b.useContext(_o.E_),co=si(),dn=fs||si("modal"),[,Dn]=Vn(dn),Nn=`${dn}-confirm`;let tt={};return Za?tt={closable:xs!=null?xs:!1,title:"",footer:"",children:b.createElement(Vr,Object.assign({},Fr,{prefixCls:dn,confirmPrefixCls:Nn,rootPrefixCls:co,content:xl}))}:tt={closable:xs!=null?xs:!0,title:tl,footer:Fr.footer===void 0?b.createElement(tn,Object.assign({},Fr)):Fr.footer,children:xl},b.createElement(mt,Object.assign({prefixCls:dn,className:f()(Dn,`${dn}-pure-panel`,Za&&Nn,Za&&`${Nn}-${Za}`,jo)},Qa,{closeIcon:Zn(dn,Es),closable:xs},tt))};var Si=(0,Gn.i)(Ln);function tr(){const[Fr,fs]=b.useState([]),jo=b.useCallback(Es=>(fs(xs=>[].concat((0,y.Z)(xs),[Es])),()=>{fs(xs=>xs.filter(Za=>Za!==Es))}),[]);return[Fr,jo]}var vi=m(88526),Ni=function(Fr,fs){var jo={};for(var Es in Fr)Object.prototype.hasOwnProperty.call(Fr,Es)&&fs.indexOf(Es)<0&&(jo[Es]=Fr[Es]);if(Fr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xs=0,Es=Object.getOwnPropertySymbols(Fr);xs{var jo,{afterClose:Es,config:xs}=Fr,Za=Ni(Fr,["afterClose","config"]);const[tl,xl]=b.useState(!0),[Qa,si]=b.useState(xs),{direction:co,getPrefixCls:dn}=b.useContext(_o.E_),Dn=dn("modal"),Nn=dn(),tt=()=>{var lt;Es(),(lt=Qa.afterClose)===null||lt===void 0||lt.call(Qa)},dt=function(){xl(!1);for(var lt=arguments.length,Et=new Array(lt),an=0;anxr&&xr.triggerCancel);Qa.onCancel&&jn&&Qa.onCancel.apply(Qa,[()=>{}].concat((0,y.Z)(Et.slice(1))))};b.useImperativeHandle(fs,()=>({destroy:dt,update:lt=>{si(Et=>Object.assign(Object.assign({},Et),lt))}}));const vt=(jo=Qa.okCancel)!==null&&jo!==void 0?jo:Qa.type==="confirm",[ze]=(0,P.Z)("Modal",vi.Z.Modal);return b.createElement(rs,Object.assign({prefixCls:Dn,rootPrefixCls:Nn},Qa,{close:dt,open:tl,afterClose:tt,okText:Qa.okText||(vt?ze==null?void 0:ze.okText:ze==null?void 0:ze.justOkText),direction:Qa.direction||co,cancelText:Qa.cancelText||(ze==null?void 0:ze.cancelText)},Za))};var Qn=b.forwardRef(kr);let ds=0;const _a=b.memo(b.forwardRef((Fr,fs)=>{const[jo,Es]=tr();return b.useImperativeHandle(fs,()=>({patchElement:Es}),[]),b.createElement(b.Fragment,null,jo)}));function da(){const Fr=b.useRef(null),[fs,jo]=b.useState([]);b.useEffect(()=>{fs.length&&((0,y.Z)(fs).forEach(tl=>{tl()}),jo([]))},[fs]);const Es=b.useCallback(Za=>function(xl){var Qa;ds+=1;const si=b.createRef();let co;const dn=new Promise(vt=>{co=vt});let Dn=!1,Nn;const tt=b.createElement(Qn,{key:`modal-${ds}`,config:Za(xl),ref:si,afterClose:()=>{Nn==null||Nn()},isSilent:()=>Dn,onConfirm:vt=>{co(vt)}});return Nn=(Qa=Fr.current)===null||Qa===void 0?void 0:Qa.patchElement(tt),Nn&&pn.push(Nn),{destroy:()=>{function vt(){var ze;(ze=si.current)===null||ze===void 0||ze.destroy()}si.current?vt():jo(ze=>[].concat((0,y.Z)(ze),[vt]))},update:vt=>{function ze(){var lt;(lt=si.current)===null||lt===void 0||lt.update(vt)}si.current?ze():jo(lt=>[].concat((0,y.Z)(lt),[ze]))},then:vt=>(Dn=!0,dn.then(vt))}},[]);return[b.useMemo(()=>({info:Es(Kr),success:Es(ti),error:Es(Wi),warning:Es(lo),confirm:Es(Tr)}),[]),b.createElement(_a,{key:"modal-holder",ref:Fr})]}var zs=da;function ja(Fr){return Ci(lo(Fr))}const Co=qr;Co.useModal=zs,Co.info=function(fs){return Ci(Kr(fs))},Co.success=function(fs){return Ci(ti(fs))},Co.error=function(fs){return Ci(Wi(fs))},Co.warning=ja,Co.warn=ja,Co.confirm=function(fs){return Ci(Tr(fs))},Co.destroyAll=function(){for(;pn.length;){const fs=pn.pop();fs&&fs()}},Co.config=Qt,Co._InternalPanelDoNotUseOrYouWillBeFired=Si;var dl=Co},83008:function(nt,V,m){"use strict";m.d(V,{A:function(){return N},f:function(){return k}});var y=m(88526);let A=Object.assign({},y.Z.Modal),b=[];const z=()=>b.reduce((w,I)=>Object.assign(Object.assign({},w),I),y.Z.Modal);function k(w){if(w){const I=Object.assign({},w);return b.push(I),A=z(),()=>{b=b.filter(C=>C!==I),A=z()}}A=Object.assign({},y.Z.Modal)}function N(){return A}},86738:function(nt,V,m){"use strict";m.d(V,{Z:function(){return be}});var y=m(26702),A=m(94184),b=m.n(A),z=m(15105),k=m(21770),N=m(98423),w=m(67294),I=m(96159),C=m(53124),f=m(55241),S=m(86743),P=m(81643),j=m(15867),re=m(33671),J=m(10110),ie=m(88526),de=m(60590),he=m(67968);const fe=Ie=>{const{componentCls:me,iconCls:We,antCls:Ce,zIndexPopup:Pt,colorText:ct,colorWarning:Ue,marginXXS:bt,marginXS:ht,fontSize:Bt,fontWeightStrong:mt,colorTextHeading:_n}=Ie;return{[me]:{zIndex:Pt,[`&${Ce}-popover`]:{fontSize:Bt},[`${me}-message`]:{marginBottom:ht,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${me}-message-icon ${We}`]:{color:Ue,fontSize:Bt,lineHeight:1,marginInlineEnd:ht},[`${me}-title`]:{fontWeight:mt,color:_n,"&:only-child":{fontWeight:"normal"}},[`${me}-description`]:{marginTop:bt,color:ct}},[`${me}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:ht}}}}};var ke=(0,he.Z)("Popconfirm",Ie=>fe(Ie),Ie=>{const{zIndexPopupBase:me}=Ie;return{zIndexPopup:me+60}},{resetStyle:!1}),we=function(Ie,me){var We={};for(var Ce in Ie)Object.prototype.hasOwnProperty.call(Ie,Ce)&&me.indexOf(Ce)<0&&(We[Ce]=Ie[Ce]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,Ce=Object.getOwnPropertySymbols(Ie);Pt{const{prefixCls:me,okButtonProps:We,cancelButtonProps:Ce,title:Pt,description:ct,cancelText:Ue,okText:bt,okType:ht="primary",icon:Bt=w.createElement(y.Z,null),showCancel:mt=!0,close:_n,onConfirm:Bn,onCancel:Er,onPopupClick:Yr}=Ie,{getPrefixCls:oi}=w.useContext(C.E_),[to]=(0,J.Z)("Popconfirm",ie.Z.Popconfirm),yo=(0,P.Z)(Pt),vr=(0,P.Z)(ct);return w.createElement("div",{className:`${me}-inner-content`,onClick:Yr},w.createElement("div",{className:`${me}-message`},Bt&&w.createElement("span",{className:`${me}-message-icon`},Bt),w.createElement("div",{className:`${me}-message-text`},yo&&w.createElement("div",{className:b()(`${me}-title`)},yo),vr&&w.createElement("div",{className:`${me}-description`},vr))),w.createElement("div",{className:`${me}-buttons`},mt&&w.createElement(j.ZP,Object.assign({onClick:Er,size:"small"},Ce),Ue!=null?Ue:to==null?void 0:to.cancelText),w.createElement(S.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,re.nx)(ht)),We),actionFn:Bn,close:_n,prefixCls:oi("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},bt!=null?bt:to==null?void 0:to.okText)))};var ge=Ie=>{const{prefixCls:me,placement:We,className:Ce,style:Pt}=Ie,ct=we(Ie,["prefixCls","placement","className","style"]),{getPrefixCls:Ue}=w.useContext(C.E_),bt=Ue("popconfirm",me),[ht]=ke(bt);return ht(w.createElement(de.ZP,{placement:We,className:b()(bt,Ce),style:Pt,content:w.createElement(Ne,Object.assign({prefixCls:bt},ct))}))},ye=function(Ie,me){var We={};for(var Ce in Ie)Object.prototype.hasOwnProperty.call(Ie,Ce)&&me.indexOf(Ce)<0&&(We[Ce]=Ie[Ce]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,Ce=Object.getOwnPropertySymbols(Ie);Pt{const{prefixCls:We,placement:Ce="top",trigger:Pt="click",okType:ct="primary",icon:Ue=w.createElement(y.Z,null),children:bt,overlayClassName:ht,onOpenChange:Bt,onVisibleChange:mt}=Ie,_n=ye(Ie,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:Bn}=w.useContext(C.E_),[Er,Yr]=(0,k.Z)(!1,{value:Ie.open,defaultValue:Ie.defaultOpen}),oi=(Bi,wi)=>{Yr(Bi,!0),mt==null||mt(Bi),Bt==null||Bt(Bi,wi)},to=Bi=>{oi(!1,Bi)},yo=Bi=>{var wi;return(wi=Ie.onConfirm)===null||wi===void 0?void 0:wi.call(void 0,Bi)},vr=Bi=>{var wi;oi(!1,Bi),(wi=Ie.onCancel)===null||wi===void 0||wi.call(void 0,Bi)},Po=Bi=>{Bi.keyCode===z.Z.ESC&&Er&&oi(!1,Bi)},ss=Bi=>{const{disabled:wi=!1}=Ie;wi||oi(Bi)},ve=Bn("popconfirm",We),_o=b()(ve,ht),[ci]=ke(ve);return ci(w.createElement(f.Z,Object.assign({},(0,N.Z)(_n,["title"]),{trigger:Pt,placement:Ce,onOpenChange:ss,open:Er,ref:me,overlayClassName:_o,content:w.createElement(Ne,Object.assign({okType:ct,icon:Ue},Ie,{prefixCls:ve,close:to,onConfirm:yo,onCancel:vr})),"data-popover-inject":!0}),(0,I.Tm)(bt,{onKeyDown:Bi=>{var wi,io;w.isValidElement(bt)&&((io=bt==null?void 0:(wi=bt.props).onKeyDown)===null||io===void 0||io.call(wi,Bi)),Po(Bi)}})))});xe._InternalPanelDoNotUseOrYouWillBeFired=ge;var be=xe},60590:function(nt,V,m){"use strict";m.d(V,{t5:function(){return f}});var y=m(94184),A=m.n(y),b=m(92419),z=m(67294),k=m(53124),N=m(81643),w=m(20136),I=function(P,j){var re={};for(var J in P)Object.prototype.hasOwnProperty.call(P,J)&&j.indexOf(J)<0&&(re[J]=P[J]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,J=Object.getOwnPropertySymbols(P);ie{if(!(!j&&!re))return z.createElement(z.Fragment,null,j&&z.createElement("div",{className:`${P}-title`},(0,N.Z)(j)),z.createElement("div",{className:`${P}-inner-content`},(0,N.Z)(re)))},f=P=>{const{hashId:j,prefixCls:re,className:J,style:ie,placement:de="top",title:he,content:fe,children:ke}=P;return z.createElement("div",{className:A()(j,re,`${re}-pure`,`${re}-placement-${de}`,J),style:ie},z.createElement("div",{className:`${re}-arrow`}),z.createElement(b.G,Object.assign({},P,{className:j,prefixCls:re}),ke||C(re,he,fe)))},S=P=>{const{prefixCls:j}=P,re=I(P,["prefixCls"]),{getPrefixCls:J}=z.useContext(k.E_),ie=J("popover",j),[de,he]=(0,w.Z)(ie);return de(z.createElement(f,Object.assign({},re,{prefixCls:ie,hashId:he})))};V.ZP=S},55241:function(nt,V,m){"use strict";var y=m(94184),A=m.n(y),b=m(67294),z=m(81643),k=m(33603),N=m(53124),w=m(61781),I=m(60590),C=m(20136),f=function(j,re){var J={};for(var ie in j)Object.prototype.hasOwnProperty.call(j,ie)&&re.indexOf(ie)<0&&(J[ie]=j[ie]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,ie=Object.getOwnPropertySymbols(j);de{let{title:re,content:J,prefixCls:ie}=j;return b.createElement(b.Fragment,null,re&&b.createElement("div",{className:`${ie}-title`},(0,z.Z)(re)),b.createElement("div",{className:`${ie}-inner-content`},(0,z.Z)(J)))},P=b.forwardRef((j,re)=>{const{prefixCls:J,title:ie,content:de,overlayClassName:he,placement:fe="top",trigger:ke="hover",mouseEnterDelay:we=.1,mouseLeaveDelay:Ne=.1,overlayStyle:Ee={}}=j,ge=f(j,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:ye}=b.useContext(N.E_),xe=ye("popover",J),[be,Ie]=(0,C.Z)(xe),me=ye(),We=A()(he,Ie);return be(b.createElement(w.Z,Object.assign({placement:fe,trigger:ke,mouseEnterDelay:we,mouseLeaveDelay:Ne,overlayStyle:Ee},ge,{prefixCls:xe,overlayClassName:We,ref:re,overlay:ie||de?b.createElement(S,{prefixCls:xe,title:ie,content:de}):null,transitionName:(0,k.m)(me,"zoom-big",ge.transitionName),"data-popover-inject":!0})))});P._InternalPanelDoNotUseOrYouWillBeFired=I.ZP,V.Z=P},20136:function(nt,V,m){"use strict";var y=m(14747),A=m(50438),b=m(77786),z=m(8796),k=m(67968),N=m(45503);const w=f=>{const{componentCls:S,popoverColor:P,titleMinWidth:j,fontWeightStrong:re,popoverPadding:J,boxShadowSecondary:ie,colorTextHeading:de,borderRadiusLG:he,zIndexPopup:fe,marginXS:ke,colorBgElevated:we,popoverBg:Ne}=f;return[{[S]:Object.assign(Object.assign({},(0,y.Wf)(f)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:fe,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":we,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${S}-content`]:{position:"relative"},[`${S}-inner`]:{backgroundColor:Ne,backgroundClip:"padding-box",borderRadius:he,boxShadow:ie,padding:J},[`${S}-title`]:{minWidth:j,marginBottom:ke,color:de,fontWeight:re},[`${S}-inner-content`]:{color:P}})},(0,b.ZP)(f,{colorBg:"var(--antd-arrow-background-color)"}),{[`${S}-pure`]:{position:"relative",maxWidth:"none",margin:f.sizePopupArrow,display:"inline-block",[`${S}-content`]:{display:"inline-block"}}}]},I=f=>{const{componentCls:S}=f;return{[S]:z.i.map(P=>{const j=f[`${P}6`];return{[`&${S}-${P}`]:{"--antd-arrow-background-color":j,[`${S}-inner`]:{backgroundColor:j},[`${S}-arrow`]:{background:"transparent"}}}})}},C=f=>{const{componentCls:S,lineWidth:P,lineType:j,colorSplit:re,paddingSM:J,controlHeight:ie,fontSize:de,lineHeight:he,padding:fe}=f,ke=ie-Math.round(de*he),we=ke/2,Ne=ke/2-P,Ee=fe;return{[S]:{[`${S}-inner`]:{padding:0},[`${S}-title`]:{margin:0,padding:`${we}px ${Ee}px ${Ne}px`,borderBottom:`${P}px ${j} ${re}`},[`${S}-inner-content`]:{padding:`${J}px ${Ee}px`}}}};V.Z=(0,k.Z)("Popover",f=>{const{colorBgElevated:S,colorText:P,wireframe:j}=f,re=(0,N.TS)(f,{popoverPadding:12,popoverBg:S,popoverColor:P});return[w(re),I(re),j&&C(re),(0,A._y)(re,"zoom-big")]},f=>({width:177,minWidth:177,titleMinWidth:177,zIndexPopup:f.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]})},78045:function(nt,V,m){"use strict";m.d(V,{ZP:function(){return Bt}});var y=m(67294),A=m(94184),b=m.n(A),z=m(21770),k=m(64217),N=m(53124),w=m(98675);const I=y.createContext(null),C=I.Provider;var f=I;const S=y.createContext(null),P=S.Provider;var j=m(50132),re=m(42550),J=m(45353),ie=m(17415),de=m(98866),he=m(65223),fe=m(14747),ke=m(67968),we=m(45503);const Ne=mt=>{const{componentCls:_n,antCls:Bn}=mt,Er=`${_n}-group`;return{[Er]:Object.assign(Object.assign({},(0,fe.Wf)(mt)),{display:"inline-block",fontSize:0,[`&${Er}-rtl`]:{direction:"rtl"},[`${Bn}-badge ${Bn}-badge-count`]:{zIndex:1},[`> ${Bn}-badge:not(:first-child) > ${Bn}-button-wrapper`]:{borderInlineStart:"none"}})}},Ee=mt=>{const{componentCls:_n,wrapperMarginInlineEnd:Bn,colorPrimary:Er,radioSize:Yr,motionDurationSlow:oi,motionDurationMid:to,motionEaseInOutCirc:yo,colorBgContainer:vr,colorBorder:Po,lineWidth:ss,dotSize:ve,colorBgContainerDisabled:_o,colorTextDisabled:ci,paddingXS:Bi,dotColorDisabled:wi,lineType:io,radioDotDisabledSize:ln,wireframe:Ve,colorWhite:_t}=mt,Ct=`${_n}-inner`;return{[`${_n}-wrapper`]:Object.assign(Object.assign({},(0,fe.Wf)(mt)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:Bn,cursor:"pointer",[`&${_n}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:mt.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${_n}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${ss}px ${io} ${Er}`,borderRadius:"50%",visibility:"hidden",content:'""'},[_n]:Object.assign(Object.assign({},(0,fe.Wf)(mt)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${_n}-wrapper:hover &, - &:hover ${Ct}`]:{borderColor:Er},[`${_n}-input:focus-visible + ${Ct}`]:Object.assign({},(0,fe.oN)(mt)),[`${_n}:hover::after, ${_n}-wrapper:hover &::after`]:{visibility:"visible"},[`${_n}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:Yr,height:Yr,marginBlockStart:Yr/-2,marginInlineStart:Yr/-2,backgroundColor:Ve?Er:_t,borderBlockStart:0,borderInlineStart:0,borderRadius:Yr,transform:"scale(0)",opacity:0,transition:`all ${oi} ${yo}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:Yr,height:Yr,backgroundColor:vr,borderColor:Po,borderStyle:"solid",borderWidth:ss,borderRadius:"50%",transition:`all ${to}`},[`${_n}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${_n}-checked`]:{[Ct]:{borderColor:Er,backgroundColor:Ve?vr:Er,"&::after":{transform:`scale(${ve/Yr})`,opacity:1,transition:`all ${oi} ${yo}`}}},[`${_n}-disabled`]:{cursor:"not-allowed",[Ct]:{backgroundColor:_o,borderColor:Po,cursor:"not-allowed","&::after":{backgroundColor:wi}},[`${_n}-input`]:{cursor:"not-allowed"},[`${_n}-disabled + span`]:{color:ci,cursor:"not-allowed"},[`&${_n}-checked`]:{[Ct]:{"&::after":{transform:`scale(${ln/Yr})`}}}},[`span${_n} + *`]:{paddingInlineStart:Bi,paddingInlineEnd:Bi}})}},ge=mt=>{const{buttonColor:_n,controlHeight:Bn,componentCls:Er,lineWidth:Yr,lineType:oi,colorBorder:to,motionDurationSlow:yo,motionDurationMid:vr,buttonPaddingInline:Po,fontSize:ss,buttonBg:ve,fontSizeLG:_o,controlHeightLG:ci,controlHeightSM:Bi,paddingXS:wi,borderRadius:io,borderRadiusSM:ln,borderRadiusLG:Ve,buttonCheckedBg:_t,buttonSolidCheckedColor:Ct,colorTextDisabled:jt,colorBgContainerDisabled:on,buttonCheckedBgDisabled:Ot,buttonCheckedColorDisabled:Tt,colorPrimary:xt,colorPrimaryHover:Ht,colorPrimaryActive:Zn,buttonSolidCheckedBg:tn,buttonSolidCheckedHoverBg:hr,buttonSolidCheckedActiveBg:Zi}=mt;return{[`${Er}-button-wrapper`]:{position:"relative",display:"inline-block",height:Bn,margin:0,paddingInline:Po,paddingBlock:0,color:_n,fontSize:ss,lineHeight:`${Bn-Yr*2}px`,background:ve,border:`${Yr}px ${oi} ${to}`,borderBlockStartWidth:Yr+.02,borderInlineStartWidth:0,borderInlineEndWidth:Yr,cursor:"pointer",transition:[`color ${vr}`,`background ${vr}`,`box-shadow ${vr}`].join(","),a:{color:_n},[`> ${Er}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-Yr,insetInlineStart:-Yr,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:Yr,paddingInline:0,backgroundColor:to,transition:`background-color ${yo}`,content:'""'}},"&:first-child":{borderInlineStart:`${Yr}px ${oi} ${to}`,borderStartStartRadius:io,borderEndStartRadius:io},"&:last-child":{borderStartEndRadius:io,borderEndEndRadius:io},"&:first-child:last-child":{borderRadius:io},[`${Er}-group-large &`]:{height:ci,fontSize:_o,lineHeight:`${ci-Yr*2}px`,"&:first-child":{borderStartStartRadius:Ve,borderEndStartRadius:Ve},"&:last-child":{borderStartEndRadius:Ve,borderEndEndRadius:Ve}},[`${Er}-group-small &`]:{height:Bi,paddingInline:wi-Yr,paddingBlock:0,lineHeight:`${Bi-Yr*2}px`,"&:first-child":{borderStartStartRadius:ln,borderEndStartRadius:ln},"&:last-child":{borderStartEndRadius:ln,borderEndEndRadius:ln}},"&:hover":{position:"relative",color:xt},"&:has(:focus-visible)":Object.assign({},(0,fe.oN)(mt)),[`${Er}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${Er}-button-wrapper-disabled)`]:{zIndex:1,color:xt,background:_t,borderColor:xt,"&::before":{backgroundColor:xt},"&:first-child":{borderColor:xt},"&:hover":{color:Ht,borderColor:Ht,"&::before":{backgroundColor:Ht}},"&:active":{color:Zn,borderColor:Zn,"&::before":{backgroundColor:Zn}}},[`${Er}-group-solid &-checked:not(${Er}-button-wrapper-disabled)`]:{color:Ct,background:tn,borderColor:tn,"&:hover":{color:Ct,background:hr,borderColor:hr},"&:active":{color:Ct,background:Zi,borderColor:Zi}},"&-disabled":{color:jt,backgroundColor:on,borderColor:to,cursor:"not-allowed","&:first-child, &:hover":{color:jt,backgroundColor:on,borderColor:to}},[`&-disabled${Er}-button-wrapper-checked`]:{color:Tt,backgroundColor:Ot,borderColor:to,boxShadow:"none"}}}},ye=mt=>mt-4*2;var xe=(0,ke.Z)("Radio",mt=>{const{controlOutline:_n,controlOutlineWidth:Bn,radioSize:Er}=mt,Yr=`0 0 0 ${Bn}px ${_n}`,oi=Yr,to=ye(Er),yo=(0,we.TS)(mt,{radioDotDisabledSize:to,radioFocusShadow:Yr,radioButtonFocusShadow:oi});return[Ne(yo),Ee(yo),ge(yo)]},mt=>{const{wireframe:_n,padding:Bn,marginXS:Er,lineWidth:Yr,fontSizeLG:oi,colorText:to,colorBgContainer:yo,colorTextDisabled:vr,controlItemBgActiveDisabled:Po,colorTextLightSolid:ss,colorPrimary:ve,colorPrimaryHover:_o,colorPrimaryActive:ci}=mt,Bi=4,wi=oi,io=_n?ye(wi):wi-(Bi+Yr)*2;return{radioSize:wi,dotSize:io,dotColorDisabled:vr,buttonSolidCheckedColor:ss,buttonSolidCheckedBg:ve,buttonSolidCheckedHoverBg:_o,buttonSolidCheckedActiveBg:ci,buttonBg:yo,buttonCheckedBg:yo,buttonColor:to,buttonCheckedBgDisabled:Po,buttonCheckedColorDisabled:vr,buttonPaddingInline:Bn-Yr,wrapperMarginInlineEnd:Er}}),be=function(mt,_n){var Bn={};for(var Er in mt)Object.prototype.hasOwnProperty.call(mt,Er)&&_n.indexOf(Er)<0&&(Bn[Er]=mt[Er]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yr=0,Er=Object.getOwnPropertySymbols(mt);Yr{var Bn,Er;const Yr=y.useContext(f),oi=y.useContext(S),{getPrefixCls:to,direction:yo,radio:vr}=y.useContext(N.E_),Po=y.useRef(null),ss=(0,re.sQ)(_n,Po),{isFormItemInput:ve}=y.useContext(he.aM),_o=Zn=>{var tn,hr;(tn=mt.onChange)===null||tn===void 0||tn.call(mt,Zn),(hr=Yr==null?void 0:Yr.onChange)===null||hr===void 0||hr.call(Yr,Zn)},{prefixCls:ci,className:Bi,rootClassName:wi,children:io,style:ln}=mt,Ve=be(mt,["prefixCls","className","rootClassName","children","style"]),_t=to("radio",ci),Ct=((Yr==null?void 0:Yr.optionType)||oi)==="button",jt=Ct?`${_t}-button`:_t,[on,Ot]=xe(_t),Tt=Object.assign({},Ve),xt=y.useContext(de.Z);Yr&&(Tt.name=Yr.name,Tt.onChange=_o,Tt.checked=mt.value===Yr.value,Tt.disabled=(Bn=Tt.disabled)!==null&&Bn!==void 0?Bn:Yr.disabled),Tt.disabled=(Er=Tt.disabled)!==null&&Er!==void 0?Er:xt;const Ht=b()(`${jt}-wrapper`,{[`${jt}-wrapper-checked`]:Tt.checked,[`${jt}-wrapper-disabled`]:Tt.disabled,[`${jt}-wrapper-rtl`]:yo==="rtl",[`${jt}-wrapper-in-form-item`]:ve},vr==null?void 0:vr.className,Bi,wi,Ot);return on(y.createElement(J.Z,{component:"Radio",disabled:Tt.disabled},y.createElement("label",{className:Ht,style:Object.assign(Object.assign({},vr==null?void 0:vr.style),ln),onMouseEnter:mt.onMouseEnter,onMouseLeave:mt.onMouseLeave},y.createElement(j.Z,Object.assign({},Tt,{className:b()(Tt.className,!Ct&&ie.A),type:"radio",prefixCls:jt,ref:ss})),io!==void 0?y.createElement("span",null,io):null)))};var We=y.forwardRef(Ie);const Ce=y.forwardRef((mt,_n)=>{const{getPrefixCls:Bn,direction:Er}=y.useContext(N.E_),[Yr,oi]=(0,z.Z)(mt.defaultValue,{value:mt.value}),to=tn=>{const hr=Yr,Zi=tn.target.value;"value"in mt||oi(Zi);const{onChange:Ri}=mt;Ri&&Zi!==hr&&Ri(tn)},{prefixCls:yo,className:vr,rootClassName:Po,options:ss,buttonStyle:ve="outline",disabled:_o,children:ci,size:Bi,style:wi,id:io,onMouseEnter:ln,onMouseLeave:Ve,onFocus:_t,onBlur:Ct}=mt,jt=Bn("radio",yo),on=`${jt}-group`,[Ot,Tt]=xe(jt);let xt=ci;ss&&ss.length>0&&(xt=ss.map(tn=>typeof tn=="string"||typeof tn=="number"?y.createElement(We,{key:tn.toString(),prefixCls:jt,disabled:_o,value:tn,checked:Yr===tn},tn):y.createElement(We,{key:`radio-group-value-options-${tn.value}`,prefixCls:jt,disabled:tn.disabled||_o,value:tn.value,checked:Yr===tn.value,title:tn.title,style:tn.style,id:tn.id},tn.label)));const Ht=(0,w.Z)(Bi),Zn=b()(on,`${on}-${ve}`,{[`${on}-${Ht}`]:Ht,[`${on}-rtl`]:Er==="rtl"},vr,Po,Tt);return Ot(y.createElement("div",Object.assign({},(0,k.Z)(mt,{aria:!0,data:!0}),{className:Zn,style:wi,onMouseEnter:ln,onMouseLeave:Ve,onFocus:_t,onBlur:Ct,id:io,ref:_n}),y.createElement(C,{value:{onChange:to,value:Yr,disabled:mt.disabled,name:mt.name,optionType:mt.optionType}},xt)))});var Pt=y.memo(Ce),ct=function(mt,_n){var Bn={};for(var Er in mt)Object.prototype.hasOwnProperty.call(mt,Er)&&_n.indexOf(Er)<0&&(Bn[Er]=mt[Er]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yr=0,Er=Object.getOwnPropertySymbols(mt);Yr{const{getPrefixCls:Bn}=y.useContext(N.E_),{prefixCls:Er}=mt,Yr=ct(mt,["prefixCls"]),oi=Bn("radio",Er);return y.createElement(P,{value:"button"},y.createElement(We,Object.assign({prefixCls:oi},Yr,{type:"radio",ref:_n})))};var bt=y.forwardRef(Ue);const ht=We;ht.Button=bt,ht.Group=Pt,ht.__ANT_RADIO=!0;var Bt=ht},29905:function(nt,V,m){"use strict";m.d(V,{ZP:function(){return ct}});var y=m(67294),A=m(76278),b=m(41322),z=m(26702),k=m(87462),N={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},w=N,I=m(93771),C=function(bt,ht){return y.createElement(I.Z,(0,k.Z)({},bt,{ref:ht,icon:w}))},f=y.forwardRef(C),S=m(94184),P=m.n(S),j=m(53124),J=()=>y.createElement("svg",{width:"252",height:"294"},y.createElement("defs",null,y.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),y.createElement("g",{fill:"none",fillRule:"evenodd"},y.createElement("g",{transform:"translate(0 .012)"},y.createElement("mask",{fill:"#fff"}),y.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),y.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),y.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),y.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),y.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),y.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),y.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),y.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),y.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),y.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),y.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1677ff"}),y.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),y.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),y.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),y.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),y.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),y.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),y.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),y.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),y.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),y.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),y.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),y.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),y.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),y.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),y.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),y.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),y.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),y.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),y.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),y.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),y.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),y.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),y.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),y.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),y.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),y.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),y.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),y.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),y.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),y.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),y.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),de=()=>y.createElement("svg",{width:"254",height:"294"},y.createElement("defs",null,y.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),y.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),y.createElement("g",{fill:"none",fillRule:"evenodd"},y.createElement("g",{transform:"translate(0 .067)"},y.createElement("mask",{fill:"#fff"}),y.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),y.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),y.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),y.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),y.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),y.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),y.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),y.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),y.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),y.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),y.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),y.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),y.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),y.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),y.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),y.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),y.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),y.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),y.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),y.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),y.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),y.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),y.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),y.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),y.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),y.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),y.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),y.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),y.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),y.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),y.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),y.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),y.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),y.createElement("mask",{fill:"#fff"}),y.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),y.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),y.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),y.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),y.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),y.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),y.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),y.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),y.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),y.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),y.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"}))),he=m(67968),fe=m(45503);const ke=Ue=>{const{componentCls:bt,lineHeightHeading3:ht,iconCls:Bt,padding:mt,paddingXL:_n,paddingXS:Bn,paddingLG:Er,marginXS:Yr,lineHeight:oi}=Ue;return{[bt]:{padding:`${Er*2}px ${_n}px`,"&-rtl":{direction:"rtl"}},[`${bt} ${bt}-image`]:{width:Ue.imageWidth,height:Ue.imageHeight,margin:"auto"},[`${bt} ${bt}-icon`]:{marginBottom:Er,textAlign:"center",[`& > ${Bt}`]:{fontSize:Ue.iconFontSize}},[`${bt} ${bt}-title`]:{color:Ue.colorTextHeading,fontSize:Ue.titleFontSize,lineHeight:ht,marginBlock:Yr,textAlign:"center"},[`${bt} ${bt}-subtitle`]:{color:Ue.colorTextDescription,fontSize:Ue.subtitleFontSize,lineHeight:oi,textAlign:"center"},[`${bt} ${bt}-content`]:{marginTop:Er,padding:`${Er}px ${mt*2.5}px`,backgroundColor:Ue.colorFillAlter},[`${bt} ${bt}-extra`]:{margin:Ue.extraMargin,textAlign:"center","& > *":{marginInlineEnd:Bn,"&:last-child":{marginInlineEnd:0}}}}},we=Ue=>{const{componentCls:bt,iconCls:ht}=Ue;return{[`${bt}-success ${bt}-icon > ${ht}`]:{color:Ue.resultSuccessIconColor},[`${bt}-error ${bt}-icon > ${ht}`]:{color:Ue.resultErrorIconColor},[`${bt}-info ${bt}-icon > ${ht}`]:{color:Ue.resultInfoIconColor},[`${bt}-warning ${bt}-icon > ${ht}`]:{color:Ue.resultWarningIconColor}}},Ne=Ue=>[ke(Ue),we(Ue)],Ee=Ue=>Ne(Ue);var ge=(0,he.Z)("Result",Ue=>{const bt=Ue.colorInfo,ht=Ue.colorError,Bt=Ue.colorSuccess,mt=Ue.colorWarning,_n=(0,fe.TS)(Ue,{resultInfoIconColor:bt,resultErrorIconColor:ht,resultSuccessIconColor:Bt,resultWarningIconColor:mt,imageWidth:250,imageHeight:295});return[Ee(_n)]},Ue=>({titleFontSize:Ue.fontSizeHeading3,subtitleFontSize:Ue.fontSize,iconFontSize:Ue.fontSizeHeading3*3,extraMargin:`${Ue.paddingLG}px 0 0 0`})),xe=()=>y.createElement("svg",{width:"251",height:"294"},y.createElement("g",{fill:"none",fillRule:"evenodd"},y.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),y.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),y.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),y.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),y.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),y.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),y.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),y.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),y.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),y.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),y.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),y.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),y.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),y.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),y.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),y.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),y.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),y.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),y.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),y.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),y.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),y.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),y.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),y.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),y.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),y.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),y.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),y.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),y.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),y.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),y.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),y.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),y.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),y.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),y.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),y.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),y.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),y.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),y.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"})));const be={success:A.Z,error:b.Z,info:z.Z,warning:f},Ie={404:J,500:de,403:xe},me=Object.keys(Ie),We=Ue=>{let{prefixCls:bt,icon:ht,status:Bt}=Ue;const mt=P()(`${bt}-icon`);if(me.includes(`${Bt}`)){const Bn=Ie[Bt];return y.createElement("div",{className:`${mt} ${bt}-image`},y.createElement(Bn,null))}const _n=y.createElement(be[Bt]);return ht===null||ht===!1?null:y.createElement("div",{className:mt},ht||_n)},Ce=Ue=>{let{prefixCls:bt,extra:ht}=Ue;return ht?y.createElement("div",{className:`${bt}-extra`},ht):null},Pt=Ue=>{let{prefixCls:bt,className:ht,rootClassName:Bt,subTitle:mt,title:_n,style:Bn,children:Er,status:Yr="info",icon:oi,extra:to}=Ue;const{getPrefixCls:yo,direction:vr,result:Po}=y.useContext(j.E_),ss=yo("result",bt),[ve,_o]=ge(ss),ci=P()(ss,`${ss}-${Yr}`,ht,Po==null?void 0:Po.className,Bt,{[`${ss}-rtl`]:vr==="rtl"},_o),Bi=Object.assign(Object.assign({},Po==null?void 0:Po.style),Bn);return ve(y.createElement("div",{className:ci,style:Bi},y.createElement(We,{prefixCls:ss,status:Yr,icon:oi}),y.createElement("div",{className:`${ss}-title`},_n),mt&&y.createElement("div",{className:`${ss}-subtitle`},mt),y.createElement(Ce,{prefixCls:ss,extra:to}),Er&&y.createElement("div",{className:`${ss}-content`},Er)))};Pt.PRESENTED_IMAGE_403=Ie[403],Pt.PRESENTED_IMAGE_404=Ie[404],Pt.PRESENTED_IMAGE_500=Ie[500];var ct=Pt},34041:function(nt,V,m){"use strict";var y=m(67294),A=m(94184),b=m.n(A),z=m(88905),k=m(98423),N=m(33603),w=m(8745),I=m(9708),C=m(53124),f=m(88258),S=m(98866),P=m(98675),j=m(65223),re=m(4173),J=m(87244),ie=m(13458),de=m(78642),he=m(43277),fe=function(ge,ye){var xe={};for(var be in ge)Object.prototype.hasOwnProperty.call(ge,be)&&ye.indexOf(be)<0&&(xe[be]=ge[be]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,be=Object.getOwnPropertySymbols(ge);Ie{var xe,{prefixCls:be,bordered:Ie=!0,className:me,rootClassName:We,getPopupContainer:Ce,popupClassName:Pt,dropdownClassName:ct,listHeight:Ue=256,placement:bt,listItemHeight:ht=24,size:Bt,disabled:mt,notFoundContent:_n,status:Bn,builtinPlacements:Er,dropdownMatchSelectWidth:Yr,popupMatchSelectWidth:oi,direction:to,style:yo,allowClear:vr}=ge,Po=fe(ge,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:ss,getPrefixCls:ve,renderEmpty:_o,direction:ci,virtual:Bi,popupMatchSelectWidth:wi,popupOverflow:io,select:ln}=y.useContext(C.E_),Ve=ve("select",be),_t=ve(),Ct=to!=null?to:ci,{compactSize:jt,compactItemClassnames:on}=(0,re.ri)(Ve,Ct),[Ot,Tt]=(0,J.Z)(Ve),xt=y.useMemo(()=>{const{mode:rn}=Po;if(rn!=="combobox")return rn===ke?"combobox":rn},[Po.mode]),Ht=xt==="multiple"||xt==="tags",Zn=(0,de.Z)(Po.suffixIcon,Po.showArrow),tn=(xe=oi!=null?oi:Yr)!==null&&xe!==void 0?xe:wi,{status:hr,hasFeedback:Zi,isFormItemInput:Ri,feedbackIcon:Pi}=y.useContext(j.aM),$o=(0,I.F)(hr,Bn);let ys;_n!==void 0?ys=_n:xt==="combobox"?ys=null:ys=(_o==null?void 0:_o("Select"))||y.createElement(f.Z,{componentName:"Select"});const{suffixIcon:xn,itemIcon:Hr,removeIcon:Jr,clearIcon:Yi}=(0,he.Z)(Object.assign(Object.assign({},Po),{multiple:Ht,hasFeedback:Zi,feedbackIcon:Pi,showSuffixIcon:Zn,prefixCls:Ve,showArrow:Po.showArrow,componentName:"Select"})),xo=vr===!0?{clearIcon:Yi}:vr,na=(0,k.Z)(Po,["suffixIcon","itemIcon"]),Vn=b()(Pt||ct,{[`${Ve}-dropdown-${Ct}`]:Ct==="rtl"},We,Tt),Xn=(0,P.Z)(rn=>{var Jn;return(Jn=Bt!=null?Bt:jt)!==null&&Jn!==void 0?Jn:rn}),Mr=y.useContext(S.Z),li=mt!=null?mt:Mr,Cr=b()({[`${Ve}-lg`]:Xn==="large",[`${Ve}-sm`]:Xn==="small",[`${Ve}-rtl`]:Ct==="rtl",[`${Ve}-borderless`]:!Ie,[`${Ve}-in-form-item`]:Ri},(0,I.Z)(Ve,$o,Zi),on,ln==null?void 0:ln.className,me,We,Tt),qr=y.useMemo(()=>bt!==void 0?bt:Ct==="rtl"?"bottomRight":"bottomLeft",[bt,Ct]),ii=(0,ie.Z)(Er,io);return Ot(y.createElement(z.ZP,Object.assign({ref:ye,virtual:Bi,showSearch:ln==null?void 0:ln.showSearch},na,{style:Object.assign(Object.assign({},ln==null?void 0:ln.style),yo),dropdownMatchSelectWidth:tn,builtinPlacements:ii,transitionName:(0,N.m)(_t,"slide-up",Po.transitionName),listHeight:Ue,listItemHeight:ht,mode:xt,prefixCls:Ve,placement:qr,direction:Ct,suffixIcon:xn,menuItemSelectedIcon:Hr,removeIcon:Jr,allowClear:xo,notFoundContent:ys,className:Cr,getPopupContainer:Ce||ss,dropdownClassName:Vn,disabled:li})))},Ne=y.forwardRef(we),Ee=(0,w.Z)(Ne);Ne.SECRET_COMBOBOX_MODE_DO_NOT_USE=ke,Ne.Option=z.Wx,Ne.OptGroup=z.Xo,Ne._InternalPanelDoNotUseOrYouWillBeFired=Ee,V.Z=Ne},87244:function(nt,V,m){"use strict";m.d(V,{Z:function(){return Ne}});var y=m(14747),A=m(80110),b=m(45503),z=m(67968),k=m(67771),N=m(33297);const w=Ee=>{const{optionHeight:ge,optionFontSize:ye,optionLineHeight:xe,optionPadding:be}=Ee;return{position:"relative",display:"block",minHeight:ge,padding:be,color:Ee.colorText,fontWeight:"normal",fontSize:ye,lineHeight:xe,boxSizing:"border-box"}};var C=Ee=>{const{antCls:ge,componentCls:ye}=Ee,xe=`${ye}-item`,be=`&${ge}-slide-up-enter${ge}-slide-up-enter-active`,Ie=`&${ge}-slide-up-appear${ge}-slide-up-appear-active`,me=`&${ge}-slide-up-leave${ge}-slide-up-leave-active`,We=`${ye}-dropdown-placement-`;return[{[`${ye}-dropdown`]:Object.assign(Object.assign({},(0,y.Wf)(Ee)),{position:"absolute",top:-9999,zIndex:Ee.zIndexPopup,boxSizing:"border-box",padding:Ee.paddingXXS,overflow:"hidden",fontSize:Ee.fontSize,fontVariant:"initial",backgroundColor:Ee.colorBgElevated,borderRadius:Ee.borderRadiusLG,outline:"none",boxShadow:Ee.boxShadowSecondary,[` - ${be}${We}bottomLeft, - ${Ie}${We}bottomLeft + ${fs}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${fs}-confirm-body`]:{marginBottom:"auto"}}}]},Jr=Fr=>{const{componentCls:fs,antCls:jo}=Fr,Es=`${fs}-confirm`;return{[fs]:{[`${fs}-content`]:{padding:0},[`${fs}-header`]:{padding:Fr.modalHeaderPadding,borderBottom:`${Fr.modalHeaderBorderWidth}px ${Fr.modalHeaderBorderStyle} ${Fr.modalHeaderBorderColorSplit}`,marginBottom:0},[`${fs}-body`]:{padding:Fr.modalBodyPadding},[`${fs}-footer`]:{padding:`${Fr.modalFooterPaddingVertical}px ${Fr.modalFooterPaddingHorizontal}px`,borderTop:`${Fr.modalFooterBorderWidth}px ${Fr.modalFooterBorderStyle} ${Fr.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${Fr.borderRadiusLG}px ${Fr.borderRadiusLG}px`,marginTop:0}},[Es]:{[`${jo}-modal-body`]:{padding:`${Fr.padding*2}px ${Fr.padding*2}px ${Fr.paddingLG}px`},[`${Es}-body > ${Fr.iconCls}`]:{marginInlineEnd:Fr.margin},[`${Es}-btns`]:{marginTop:Fr.marginLG}}}},Yi=Fr=>{const{componentCls:fs}=Fr;return{[`${fs}-root`]:{[`${fs}-wrap-rtl`]:{direction:"rtl",[`${fs}-confirm-body`]:{direction:"rtl"}}}}},xo=Fr=>{const fs=Fr.padding,jo=Fr.fontSizeHeading5,Es=Fr.lineHeightHeading5;return(0,Pi.TS)(Fr,{modalBodyPadding:Fr.paddingLG,modalHeaderPadding:`${fs}px ${Fr.paddingLG}px`,modalHeaderBorderWidth:Fr.lineWidth,modalHeaderBorderStyle:Fr.lineType,modalHeaderBorderColorSplit:Fr.colorSplit,modalHeaderHeight:Es*jo+fs*2,modalFooterBorderColorSplit:Fr.colorSplit,modalFooterBorderStyle:Fr.lineType,modalFooterPaddingVertical:Fr.paddingXS,modalFooterPaddingHorizontal:Fr.padding,modalFooterBorderWidth:Fr.lineWidth,modalIconHoverColor:Fr.colorIconHover,modalCloseIconColor:Fr.colorIcon,modalCloseBtnSize:Fr.fontSize*Fr.lineHeight,modalConfirmIconSize:Fr.fontSize*Fr.lineHeight})},na=Fr=>({footerBg:"transparent",headerBg:Fr.colorBgElevated,titleLineHeight:Fr.lineHeightHeading5,titleFontSize:Fr.fontSizeHeading5,contentBg:Fr.colorBgElevated,titleColor:Fr.colorTextHeading});var Un=(0,Wo.Z)("Modal",Fr=>{const fs=xo(Fr);return[Hr(fs),Yi(fs),xn(fs),Fr.wireframe&&Jr(fs),(0,Ri._y)(fs,"zoom")]},na),Xn=function(Fr,fs){var jo={};for(var Es in Fr)Object.prototype.hasOwnProperty.call(Fr,Es)&&fs.indexOf(Es)<0&&(jo[Es]=Fr[Es]);if(Fr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xs=0,Es=Object.getOwnPropertySymbols(Fr);xs{Mr={x:Fr.pageX,y:Fr.pageY},setTimeout(()=>{Mr=null},100)};ge()&&document.documentElement.addEventListener("click",li,!0);var qr=Fr=>{var fs;const{getPopupContainer:jo,getPrefixCls:Es,direction:xs,modal:Za}=b.useContext(_o.E_),tl=Bl=>{const{onCancel:Ma}=Fr;Ma==null||Ma(Bl)},xl=Bl=>{const{onOk:Ma}=Fr;Ma==null||Ma(Bl)},{prefixCls:Qa,className:si,rootClassName:co,open:dn,wrapClassName:An,centered:Nn,getContainer:tt,closeIcon:ht,closable:vt,focusTriggerAfterClose:Fe=!0,style:lt,visible:Et,width:an=520,footer:jn,classNames:Cr,styles:Ti}=Fr,$i=Xn(Fr,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer","classNames","styles"]),Vi=Es("modal",Qa),us=Es(),[ks,Os]=Un(Vi),pa=f()(An,{[`${Vi}-centered`]:!!Nn,[`${Vi}-wrap-rtl`]:xs==="rtl"}),no=jn!==null&&b.createElement(tn,Object.assign({},Fr,{onOk:xl,onCancel:tl})),[Cs,ea]=(0,Po.Z)(vt,ht,Bl=>Wn(Vi,Bl),b.createElement(Be.Z,{className:`${Vi}-close-icon`}),!0),fa=ln(`.${Vi}-content`);return ks(b.createElement(Bi.BR,null,b.createElement(ci.Ux,{status:!0,override:!0},b.createElement(yr,Object.assign({width:an},$i,{getContainer:tt===void 0?jo:tt,prefixCls:Vi,rootClassName:f()(Os,co),footer:no,visible:dn!=null?dn:Et,mousePosition:(fs=$i.mousePosition)!==null&&fs!==void 0?fs:Mr,onClose:tl,closable:Cs,closeIcon:ea,focusTriggerAfterClose:Fe,transitionName:(0,S.m)(us,"zoom",Fr.transitionName),maskTransitionName:(0,S.m)(us,"fade",Fr.maskTransitionName),className:f()(Os,si,Za==null?void 0:Za.className),style:Object.assign(Object.assign({},Za==null?void 0:Za.style),lt),classNames:Object.assign(Object.assign({wrapper:pa},Za==null?void 0:Za.classNames),Cr),styles:Object.assign(Object.assign({},Za==null?void 0:Za.styles),Ti),panelRef:fa})))))};const ii=Fr=>{const{componentCls:fs,titleFontSize:jo,titleLineHeight:Es,modalConfirmIconSize:xs,fontSize:Za,lineHeight:tl}=Fr,xl=`${fs}-confirm`,Qa=Math.round(jo*Es),si=Math.round(Za*tl);return{[xl]:{"&-rtl":{direction:"rtl"},[`${Fr.antCls}-modal-header`]:{display:"none"},[`${xl}-body-wrapper`]:Object.assign({},(0,hr.dF)()),[`${xl}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${Fr.iconCls}`]:{flex:"none",fontSize:xs,marginInlineEnd:Fr.marginSM,marginTop:(si-xs)/2},[`&-has-title > ${Fr.iconCls}`]:{marginTop:(Qa-xs)/2}},[`${xl}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:Fr.marginXS,maxWidth:`calc(100% - ${Fr.modalConfirmIconSize+Fr.marginSM}px)`},[`${xl}-title`]:{color:Fr.colorTextHeading,fontWeight:Fr.fontWeightStrong,fontSize:jo,lineHeight:Es},[`${xl}-content`]:{color:Fr.colorText,fontSize:Za,lineHeight:tl},[`${xl}-btns`]:{textAlign:"end",marginTop:Fr.marginSM,[`${Fr.antCls}-btn + ${Fr.antCls}-btn`]:{marginBottom:0,marginInlineStart:Fr.marginXS}}},[`${xl}-error ${xl}-body > ${Fr.iconCls}`]:{color:Fr.colorError},[`${xl}-warning ${xl}-body > ${Fr.iconCls}, + ${xl}-confirm ${xl}-body > ${Fr.iconCls}`]:{color:Fr.colorWarning},[`${xl}-info ${xl}-body > ${Fr.iconCls}`]:{color:Fr.colorInfo},[`${xl}-success ${xl}-body > ${Fr.iconCls}`]:{color:Fr.colorSuccess}}};var rn=(0,Wo.b)(["Modal","confirm"],Fr=>{const fs=xo(Fr);return[ii(fs)]},na,{order:-1e3}),Qn=function(Fr,fs){var jo={};for(var Es in Fr)Object.prototype.hasOwnProperty.call(Fr,Es)&&fs.indexOf(Es)<0&&(jo[Es]=Fr[Es]);if(Fr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xs=0,Es=Object.getOwnPropertySymbols(Fr);xslt,(0,y.Z)(Object.values(lt))),an=b.createElement(b.Fragment,null,b.createElement(pe,null),b.createElement(fe,null)),jn=Fr.title!==void 0&&Fr.title!==null,Cr=`${Za}-body`;return b.createElement("div",{className:`${Za}-body-wrapper`},b.createElement("div",{className:f()(Cr,{[`${Cr}-has-title`]:jn})},dn,b.createElement("div",{className:`${Za}-paragraph`},jn&&b.createElement("span",{className:`${Za}-title`},Fr.title),b.createElement("div",{className:`${Za}-content`},Fr.content))),Qa===void 0||typeof Qa=="function"?b.createElement(re,{value:Et},b.createElement("div",{className:`${Za}-btns`},typeof Qa=="function"?Qa(an,{OkBtn:fe,CancelBtn:pe}):an)):Qa,b.createElement(rn,{prefixCls:fs}))}var rs=Fr=>{const{close:fs,zIndex:jo,afterClose:Es,open:xs,keyboard:Za,centered:tl,getContainer:xl,maskStyle:Qa,direction:si,prefixCls:co,wrapClassName:dn,rootPrefixCls:An,iconPrefixCls:Nn,theme:tt,bodyStyle:ht,closable:vt=!1,closeIcon:Fe,modalRender:lt,focusTriggerAfterClose:Et,onConfirm:an}=Fr,jn=`${co}-confirm`,Cr=Fr.width||416,Ti=Fr.style||{},$i=Fr.mask===void 0?!0:Fr.mask,Vi=Fr.maskClosable===void 0?!1:Fr.maskClosable,us=f()(jn,`${jn}-${Fr.type}`,{[`${jn}-rtl`]:si==="rtl"},Fr.className);return b.createElement(z.ZP,{prefixCls:An,iconPrefixCls:Nn,direction:si,theme:tt},b.createElement(qr,{prefixCls:co,className:us,wrapClassName:f()({[`${jn}-centered`]:!!Fr.centered},dn),onCancel:()=>{fs==null||fs({triggerCancel:!0}),an==null||an(!1)},open:xs,title:"",footer:null,transitionName:(0,S.m)(An||"","zoom",Fr.transitionName),maskTransitionName:(0,S.m)(An||"","fade",Fr.maskTransitionName),mask:$i,maskClosable:Vi,style:Ti,styles:{body:ht,mask:Qa},width:Cr,zIndex:jo,afterClose:Es,keyboard:Za,centered:tl,getContainer:xl,closable:vt,closeIcon:Fe,modalRender:lt,focusTriggerAfterClose:Et},b.createElement(Vr,Object.assign({},Fr,{confirmPrefixCls:jn}))))},pn=[],br=function(Fr,fs){var jo={};for(var Es in Fr)Object.prototype.hasOwnProperty.call(Fr,Es)&&fs.indexOf(Es)<0&&(jo[Es]=Fr[Es]);if(Fr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xs=0,Es=Object.getOwnPropertySymbols(Fr);xsAn&&An.triggerCancel);Fr.onCancel&&dn&&Fr.onCancel.apply(Fr,[()=>{}].concat((0,y.Z)(si.slice(1))));for(let An=0;An{const tt=(0,Ht.A)(),{getPrefixCls:ht,getIconPrefixCls:vt,getTheme:Fe}=(0,z.w6)(),lt=ht(void 0,ui()),Et=dn||`${lt}-modal`,an=vt(),jn=Fe();let Cr=An;Cr===!1&&(Cr=void 0),(0,I.s)(b.createElement(rs,Object.assign({},Nn,{getContainer:Cr,prefixCls:Et,rootPrefixCls:lt,iconPrefixCls:an,okText:si,locale:tt,theme:jn,cancelText:co||tt.cancelText})),fs)})}function tl(){for(var Qa=arguments.length,si=new Array(Qa),co=0;co{typeof Fr.afterClose=="function"&&Fr.afterClose(),xs.apply(this,si)}}),jo.visible&&delete jo.visible,Za(jo)}function xl(Qa){typeof Qa=="function"?jo=Qa(jo):jo=Object.assign(Object.assign({},jo),Qa),Za(jo)}return Za(jo),pn.push(tl),{destroy:tl,update:xl}}function lo(Fr){return Object.assign(Object.assign({},Fr),{type:"warning"})}function Kr(Fr){return Object.assign(Object.assign({},Fr),{type:"info"})}function ti(Fr){return Object.assign(Object.assign({},Fr),{type:"success"})}function ji(Fr){return Object.assign(Object.assign({},Fr),{type:"error"})}function Tr(Fr){return Object.assign(Object.assign({},Fr),{type:"confirm"})}function Qt(Fr){let{rootPrefixCls:fs}=Fr;Gr=fs}var Gn=m(91202),yi=function(Fr,fs){var jo={};for(var Es in Fr)Object.prototype.hasOwnProperty.call(Fr,Es)&&fs.indexOf(Es)<0&&(jo[Es]=Fr[Es]);if(Fr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xs=0,Es=Object.getOwnPropertySymbols(Fr);xs{const{prefixCls:fs,className:jo,closeIcon:Es,closable:xs,type:Za,title:tl,children:xl}=Fr,Qa=yi(Fr,["prefixCls","className","closeIcon","closable","type","title","children"]),{getPrefixCls:si}=b.useContext(_o.E_),co=si(),dn=fs||si("modal"),[,An]=Un(dn),Nn=`${dn}-confirm`;let tt={};return Za?tt={closable:xs!=null?xs:!1,title:"",footer:"",children:b.createElement(Vr,Object.assign({},Fr,{prefixCls:dn,confirmPrefixCls:Nn,rootPrefixCls:co,content:xl}))}:tt={closable:xs!=null?xs:!0,title:tl,footer:Fr.footer===void 0?b.createElement(tn,Object.assign({},Fr)):Fr.footer,children:xl},b.createElement(gt,Object.assign({prefixCls:dn,className:f()(An,`${dn}-pure-panel`,Za&&Nn,Za&&`${Nn}-${Za}`,jo)},Qa,{closeIcon:Wn(dn,Es),closable:xs},tt))};var Si=(0,Gn.i)(Ln);function tr(){const[Fr,fs]=b.useState([]),jo=b.useCallback(Es=>(fs(xs=>[].concat((0,y.Z)(xs),[Es])),()=>{fs(xs=>xs.filter(Za=>Za!==Es))}),[]);return[Fr,jo]}var vi=m(530),Ni=function(Fr,fs){var jo={};for(var Es in Fr)Object.prototype.hasOwnProperty.call(Fr,Es)&&fs.indexOf(Es)<0&&(jo[Es]=Fr[Es]);if(Fr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xs=0,Es=Object.getOwnPropertySymbols(Fr);xs{var jo,{afterClose:Es,config:xs}=Fr,Za=Ni(Fr,["afterClose","config"]);const[tl,xl]=b.useState(!0),[Qa,si]=b.useState(xs),{direction:co,getPrefixCls:dn}=b.useContext(_o.E_),An=dn("modal"),Nn=dn(),tt=()=>{var lt;Es(),(lt=Qa.afterClose)===null||lt===void 0||lt.call(Qa)},ht=function(){xl(!1);for(var lt=arguments.length,Et=new Array(lt),an=0;anCr&&Cr.triggerCancel);Qa.onCancel&&jn&&Qa.onCancel.apply(Qa,[()=>{}].concat((0,y.Z)(Et.slice(1))))};b.useImperativeHandle(fs,()=>({destroy:ht,update:lt=>{si(Et=>Object.assign(Object.assign({},Et),lt))}}));const vt=(jo=Qa.okCancel)!==null&&jo!==void 0?jo:Qa.type==="confirm",[Fe]=(0,P.Z)("Modal",vi.Z.Modal);return b.createElement(rs,Object.assign({prefixCls:An,rootPrefixCls:Nn},Qa,{close:ht,open:tl,afterClose:tt,okText:Qa.okText||(vt?Fe==null?void 0:Fe.okText:Fe==null?void 0:Fe.justOkText),direction:Qa.direction||co,cancelText:Qa.cancelText||(Fe==null?void 0:Fe.cancelText)},Za))};var qn=b.forwardRef(kr);let ds=0;const _a=b.memo(b.forwardRef((Fr,fs)=>{const[jo,Es]=tr();return b.useImperativeHandle(fs,()=>({patchElement:Es}),[]),b.createElement(b.Fragment,null,jo)}));function da(){const Fr=b.useRef(null),[fs,jo]=b.useState([]);b.useEffect(()=>{fs.length&&((0,y.Z)(fs).forEach(tl=>{tl()}),jo([]))},[fs]);const Es=b.useCallback(Za=>function(xl){var Qa;ds+=1;const si=b.createRef();let co;const dn=new Promise(vt=>{co=vt});let An=!1,Nn;const tt=b.createElement(qn,{key:`modal-${ds}`,config:Za(xl),ref:si,afterClose:()=>{Nn==null||Nn()},isSilent:()=>An,onConfirm:vt=>{co(vt)}});return Nn=(Qa=Fr.current)===null||Qa===void 0?void 0:Qa.patchElement(tt),Nn&&pn.push(Nn),{destroy:()=>{function vt(){var Fe;(Fe=si.current)===null||Fe===void 0||Fe.destroy()}si.current?vt():jo(Fe=>[].concat((0,y.Z)(Fe),[vt]))},update:vt=>{function Fe(){var lt;(lt=si.current)===null||lt===void 0||lt.update(vt)}si.current?Fe():jo(lt=>[].concat((0,y.Z)(lt),[Fe]))},then:vt=>(An=!0,dn.then(vt))}},[]);return[b.useMemo(()=>({info:Es(Kr),success:Es(ti),error:Es(ji),warning:Es(lo),confirm:Es(Tr)}),[]),b.createElement(_a,{key:"modal-holder",ref:Fr})]}var zs=da;function Wa(Fr){return xi(lo(Fr))}const Co=qr;Co.useModal=zs,Co.info=function(fs){return xi(Kr(fs))},Co.success=function(fs){return xi(ti(fs))},Co.error=function(fs){return xi(ji(fs))},Co.warning=Wa,Co.warn=Wa,Co.confirm=function(fs){return xi(Tr(fs))},Co.destroyAll=function(){for(;pn.length;){const fs=pn.pop();fs&&fs()}},Co.config=Qt,Co._InternalPanelDoNotUseOrYouWillBeFired=Si;var cl=Co},75707:function(nt,V,m){"use strict";m.d(V,{A:function(){return N},f:function(){return k}});var y=m(530);let I=Object.assign({},y.Z.Modal),b=[];const z=()=>b.reduce((w,A)=>Object.assign(Object.assign({},w),A),y.Z.Modal);function k(w){if(w){const A=Object.assign({},w);return b.push(A),I=z(),()=>{b=b.filter(C=>C!==A),I=z()}}I=Object.assign({},y.Z.Modal)}function N(){return I}},95088:function(nt,V,m){"use strict";m.d(V,{Z:function(){return Ce}});var y=m(86850),I=m(12124),b=m.n(I),z=m(38251),k=m(41760),N=m(39029),w=m(77617),A=m(99486),C=m(67392),f=m(68404),S=m(66934),P=m(38241),W=m(38115),ne=m(81201),re=m(879),ce=m(530),pe=m(36575),he=m(24577);const fe=Ae=>{const{componentCls:me,iconCls:je,antCls:xe,zIndexPopup:Pt,colorText:ct,colorWarning:He,marginXXS:wt,marginXS:dt,fontSize:Bt,fontWeightStrong:gt,colorTextHeading:_n}=Ae;return{[me]:{zIndex:Pt,[`&${xe}-popover`]:{fontSize:Bt},[`${me}-message`]:{marginBottom:dt,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${me}-message-icon ${je}`]:{color:He,fontSize:Bt,lineHeight:1,marginInlineEnd:dt},[`${me}-title`]:{fontWeight:gt,color:_n,"&:only-child":{fontWeight:"normal"}},[`${me}-description`]:{marginTop:wt,color:ct}},[`${me}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:dt}}}}};var Be=(0,he.Z)("Popconfirm",Ae=>fe(Ae),Ae=>{const{zIndexPopupBase:me}=Ae;return{zIndexPopup:me+60}},{resetStyle:!1}),Ie=function(Ae,me){var je={};for(var xe in Ae)Object.prototype.hasOwnProperty.call(Ae,xe)&&me.indexOf(xe)<0&&(je[xe]=Ae[xe]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,xe=Object.getOwnPropertySymbols(Ae);Pt{const{prefixCls:me,okButtonProps:je,cancelButtonProps:xe,title:Pt,description:ct,cancelText:He,okText:wt,okType:dt="primary",icon:Bt=w.createElement(y.Z,null),showCancel:gt=!0,close:_n,onConfirm:Bn,onCancel:Er,onPopupClick:Yr}=Ae,{getPrefixCls:oi}=w.useContext(C.E_),[to]=(0,re.Z)("Popconfirm",ce.Z.Popconfirm),yo=(0,P.Z)(Pt),yr=(0,P.Z)(ct);return w.createElement("div",{className:`${me}-inner-content`,onClick:Yr},w.createElement("div",{className:`${me}-message`},Bt&&w.createElement("span",{className:`${me}-message-icon`},Bt),w.createElement("div",{className:`${me}-message-text`},yo&&w.createElement("div",{className:b()(`${me}-title`)},yo),yr&&w.createElement("div",{className:`${me}-description`},yr))),w.createElement("div",{className:`${me}-buttons`},gt&&w.createElement(W.ZP,Object.assign({onClick:Er,size:"small"},xe),He!=null?He:to==null?void 0:to.cancelText),w.createElement(S.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,ne.nx)(dt)),je),actionFn:Bn,close:_n,prefixCls:oi("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},wt!=null?wt:to==null?void 0:to.okText)))};var ve=Ae=>{const{prefixCls:me,placement:je,className:xe,style:Pt}=Ae,ct=Ie(Ae,["prefixCls","placement","className","style"]),{getPrefixCls:He}=w.useContext(C.E_),wt=He("popconfirm",me),[dt]=Be(wt);return dt(w.createElement(pe.ZP,{placement:je,className:b()(wt,xe),style:Pt,content:w.createElement(We,Object.assign({prefixCls:wt},ct))}))},ye=function(Ae,me){var je={};for(var xe in Ae)Object.prototype.hasOwnProperty.call(Ae,xe)&&me.indexOf(xe)<0&&(je[xe]=Ae[xe]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,xe=Object.getOwnPropertySymbols(Ae);Pt{const{prefixCls:je,placement:xe="top",trigger:Pt="click",okType:ct="primary",icon:He=w.createElement(y.Z,null),children:wt,overlayClassName:dt,onOpenChange:Bt,onVisibleChange:gt}=Ae,_n=ye(Ae,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:Bn}=w.useContext(C.E_),[Er,Yr]=(0,k.Z)(!1,{value:Ae.open,defaultValue:Ae.defaultOpen}),oi=(Bi,Ci)=>{Yr(Bi,!0),gt==null||gt(Bi),Bt==null||Bt(Bi,Ci)},to=Bi=>{oi(!1,Bi)},yo=Bi=>{var Ci;return(Ci=Ae.onConfirm)===null||Ci===void 0?void 0:Ci.call(void 0,Bi)},yr=Bi=>{var Ci;oi(!1,Bi),(Ci=Ae.onCancel)===null||Ci===void 0||Ci.call(void 0,Bi)},Po=Bi=>{Bi.keyCode===z.Z.ESC&&Er&&oi(!1,Bi)},as=Bi=>{const{disabled:Ci=!1}=Ae;Ci||oi(Bi)},ge=Bn("popconfirm",je),_o=b()(ge,dt),[ci]=Be(ge);return ci(w.createElement(f.Z,Object.assign({},(0,N.Z)(_n,["title"]),{trigger:Pt,placement:xe,onOpenChange:as,open:Er,ref:me,overlayClassName:_o,content:w.createElement(We,Object.assign({okType:ct,icon:He},Ae,{prefixCls:ge,close:to,onConfirm:yo,onCancel:yr})),"data-popover-inject":!0}),(0,A.Tm)(wt,{onKeyDown:Bi=>{var Ci,io;w.isValidElement(wt)&&((io=wt==null?void 0:(Ci=wt.props).onKeyDown)===null||io===void 0||io.call(Ci,Bi)),Po(Bi)}})))});we._InternalPanelDoNotUseOrYouWillBeFired=ve;var Ce=we},36575:function(nt,V,m){"use strict";m.d(V,{t5:function(){return f}});var y=m(12124),I=m.n(y),b=m(34763),z=m(77617),k=m(67392),N=m(38241),w=m(47375),A=function(P,W){var ne={};for(var re in P)Object.prototype.hasOwnProperty.call(P,re)&&W.indexOf(re)<0&&(ne[re]=P[re]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,re=Object.getOwnPropertySymbols(P);ce{if(!(!W&&!ne))return z.createElement(z.Fragment,null,W&&z.createElement("div",{className:`${P}-title`},(0,N.Z)(W)),z.createElement("div",{className:`${P}-inner-content`},(0,N.Z)(ne)))},f=P=>{const{hashId:W,prefixCls:ne,className:re,style:ce,placement:pe="top",title:he,content:fe,children:Be}=P;return z.createElement("div",{className:I()(W,ne,`${ne}-pure`,`${ne}-placement-${pe}`,re),style:ce},z.createElement("div",{className:`${ne}-arrow`}),z.createElement(b.G,Object.assign({},P,{className:W,prefixCls:ne}),Be||C(ne,he,fe)))},S=P=>{const{prefixCls:W}=P,ne=A(P,["prefixCls"]),{getPrefixCls:re}=z.useContext(k.E_),ce=re("popover",W),[pe,he]=(0,w.Z)(ce);return pe(z.createElement(f,Object.assign({},ne,{prefixCls:ce,hashId:he})))};V.ZP=S},68404:function(nt,V,m){"use strict";var y=m(12124),I=m.n(y),b=m(77617),z=m(38241),k=m(26612),N=m(67392),w=m(16175),A=m(36575),C=m(47375),f=function(W,ne){var re={};for(var ce in W)Object.prototype.hasOwnProperty.call(W,ce)&&ne.indexOf(ce)<0&&(re[ce]=W[ce]);if(W!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,ce=Object.getOwnPropertySymbols(W);pe{let{title:ne,content:re,prefixCls:ce}=W;return b.createElement(b.Fragment,null,ne&&b.createElement("div",{className:`${ce}-title`},(0,z.Z)(ne)),b.createElement("div",{className:`${ce}-inner-content`},(0,z.Z)(re)))},P=b.forwardRef((W,ne)=>{const{prefixCls:re,title:ce,content:pe,overlayClassName:he,placement:fe="top",trigger:Be="hover",mouseEnterDelay:Ie=.1,mouseLeaveDelay:We=.1,overlayStyle:De={}}=W,ve=f(W,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:ye}=b.useContext(N.E_),we=ye("popover",re),[Ce,Ae]=(0,C.Z)(we),me=ye(),je=I()(he,Ae);return Ce(b.createElement(w.Z,Object.assign({placement:fe,trigger:Be,mouseEnterDelay:Ie,mouseLeaveDelay:We,overlayStyle:De},ve,{prefixCls:we,overlayClassName:je,ref:ne,overlay:ce||pe?b.createElement(S,{prefixCls:we,title:ce,content:pe}):null,transitionName:(0,k.m)(me,"zoom-big",ve.transitionName),"data-popover-inject":!0})))});P._InternalPanelDoNotUseOrYouWillBeFired=A.ZP,V.Z=P},47375:function(nt,V,m){"use strict";var y=m(92068),I=m(69601),b=m(72881),z=m(35237),k=m(24577),N=m(41788);const w=f=>{const{componentCls:S,popoverColor:P,titleMinWidth:W,fontWeightStrong:ne,popoverPadding:re,boxShadowSecondary:ce,colorTextHeading:pe,borderRadiusLG:he,zIndexPopup:fe,marginXS:Be,colorBgElevated:Ie,popoverBg:We}=f;return[{[S]:Object.assign(Object.assign({},(0,y.Wf)(f)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:fe,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":Ie,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${S}-content`]:{position:"relative"},[`${S}-inner`]:{backgroundColor:We,backgroundClip:"padding-box",borderRadius:he,boxShadow:ce,padding:re},[`${S}-title`]:{minWidth:W,marginBottom:Be,color:pe,fontWeight:ne},[`${S}-inner-content`]:{color:P}})},(0,b.ZP)(f,{colorBg:"var(--antd-arrow-background-color)"}),{[`${S}-pure`]:{position:"relative",maxWidth:"none",margin:f.sizePopupArrow,display:"inline-block",[`${S}-content`]:{display:"inline-block"}}}]},A=f=>{const{componentCls:S}=f;return{[S]:z.i.map(P=>{const W=f[`${P}6`];return{[`&${S}-${P}`]:{"--antd-arrow-background-color":W,[`${S}-inner`]:{backgroundColor:W},[`${S}-arrow`]:{background:"transparent"}}}})}},C=f=>{const{componentCls:S,lineWidth:P,lineType:W,colorSplit:ne,paddingSM:re,controlHeight:ce,fontSize:pe,lineHeight:he,padding:fe}=f,Be=ce-Math.round(pe*he),Ie=Be/2,We=Be/2-P,De=fe;return{[S]:{[`${S}-inner`]:{padding:0},[`${S}-title`]:{margin:0,padding:`${Ie}px ${De}px ${We}px`,borderBottom:`${P}px ${W} ${ne}`},[`${S}-inner-content`]:{padding:`${re}px ${De}px`}}}};V.Z=(0,k.Z)("Popover",f=>{const{colorBgElevated:S,colorText:P,wireframe:W}=f,ne=(0,N.TS)(f,{popoverPadding:12,popoverBg:S,popoverColor:P});return[w(ne),A(ne),W&&C(ne),(0,I._y)(ne,"zoom-big")]},f=>({width:177,minWidth:177,titleMinWidth:177,zIndexPopup:f.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]})},87357:function(nt,V,m){"use strict";m.d(V,{ZP:function(){return Bt}});var y=m(77617),I=m(12124),b=m.n(I),z=m(41760),k=m(5090),N=m(67392),w=m(21843);const A=y.createContext(null),C=A.Provider;var f=A;const S=y.createContext(null),P=S.Provider;var W=m(5630),ne=m(9681),re=m(27724),ce=m(71208),pe=m(81689),he=m(86818),fe=m(92068),Be=m(24577),Ie=m(41788);const We=gt=>{const{componentCls:_n,antCls:Bn}=gt,Er=`${_n}-group`;return{[Er]:Object.assign(Object.assign({},(0,fe.Wf)(gt)),{display:"inline-block",fontSize:0,[`&${Er}-rtl`]:{direction:"rtl"},[`${Bn}-badge ${Bn}-badge-count`]:{zIndex:1},[`> ${Bn}-badge:not(:first-child) > ${Bn}-button-wrapper`]:{borderInlineStart:"none"}})}},De=gt=>{const{componentCls:_n,wrapperMarginInlineEnd:Bn,colorPrimary:Er,radioSize:Yr,motionDurationSlow:oi,motionDurationMid:to,motionEaseInOutCirc:yo,colorBgContainer:yr,colorBorder:Po,lineWidth:as,dotSize:ge,colorBgContainerDisabled:_o,colorTextDisabled:ci,paddingXS:Bi,dotColorDisabled:Ci,lineType:io,radioDotDisabledSize:ln,wireframe:Ve,colorWhite:_t}=gt,xt=`${_n}-inner`;return{[`${_n}-wrapper`]:Object.assign(Object.assign({},(0,fe.Wf)(gt)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:Bn,cursor:"pointer",[`&${_n}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:gt.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${_n}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${as}px ${io} ${Er}`,borderRadius:"50%",visibility:"hidden",content:'""'},[_n]:Object.assign(Object.assign({},(0,fe.Wf)(gt)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${_n}-wrapper:hover &, + &:hover ${xt}`]:{borderColor:Er},[`${_n}-input:focus-visible + ${xt}`]:Object.assign({},(0,fe.oN)(gt)),[`${_n}:hover::after, ${_n}-wrapper:hover &::after`]:{visibility:"visible"},[`${_n}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:Yr,height:Yr,marginBlockStart:Yr/-2,marginInlineStart:Yr/-2,backgroundColor:Ve?Er:_t,borderBlockStart:0,borderInlineStart:0,borderRadius:Yr,transform:"scale(0)",opacity:0,transition:`all ${oi} ${yo}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:Yr,height:Yr,backgroundColor:yr,borderColor:Po,borderStyle:"solid",borderWidth:as,borderRadius:"50%",transition:`all ${to}`},[`${_n}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${_n}-checked`]:{[xt]:{borderColor:Er,backgroundColor:Ve?yr:Er,"&::after":{transform:`scale(${ge/Yr})`,opacity:1,transition:`all ${oi} ${yo}`}}},[`${_n}-disabled`]:{cursor:"not-allowed",[xt]:{backgroundColor:_o,borderColor:Po,cursor:"not-allowed","&::after":{backgroundColor:Ci}},[`${_n}-input`]:{cursor:"not-allowed"},[`${_n}-disabled + span`]:{color:ci,cursor:"not-allowed"},[`&${_n}-checked`]:{[xt]:{"&::after":{transform:`scale(${ln/Yr})`}}}},[`span${_n} + *`]:{paddingInlineStart:Bi,paddingInlineEnd:Bi}})}},ve=gt=>{const{buttonColor:_n,controlHeight:Bn,componentCls:Er,lineWidth:Yr,lineType:oi,colorBorder:to,motionDurationSlow:yo,motionDurationMid:yr,buttonPaddingInline:Po,fontSize:as,buttonBg:ge,fontSizeLG:_o,controlHeightLG:ci,controlHeightSM:Bi,paddingXS:Ci,borderRadius:io,borderRadiusSM:ln,borderRadiusLG:Ve,buttonCheckedBg:_t,buttonSolidCheckedColor:xt,colorTextDisabled:Wt,colorBgContainerDisabled:on,buttonCheckedBgDisabled:Ot,buttonCheckedColorDisabled:Tt,colorPrimary:bt,colorPrimaryHover:Ht,colorPrimaryActive:Wn,buttonSolidCheckedBg:tn,buttonSolidCheckedHoverBg:hr,buttonSolidCheckedActiveBg:Zi}=gt;return{[`${Er}-button-wrapper`]:{position:"relative",display:"inline-block",height:Bn,margin:0,paddingInline:Po,paddingBlock:0,color:_n,fontSize:as,lineHeight:`${Bn-Yr*2}px`,background:ge,border:`${Yr}px ${oi} ${to}`,borderBlockStartWidth:Yr+.02,borderInlineStartWidth:0,borderInlineEndWidth:Yr,cursor:"pointer",transition:[`color ${yr}`,`background ${yr}`,`box-shadow ${yr}`].join(","),a:{color:_n},[`> ${Er}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-Yr,insetInlineStart:-Yr,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:Yr,paddingInline:0,backgroundColor:to,transition:`background-color ${yo}`,content:'""'}},"&:first-child":{borderInlineStart:`${Yr}px ${oi} ${to}`,borderStartStartRadius:io,borderEndStartRadius:io},"&:last-child":{borderStartEndRadius:io,borderEndEndRadius:io},"&:first-child:last-child":{borderRadius:io},[`${Er}-group-large &`]:{height:ci,fontSize:_o,lineHeight:`${ci-Yr*2}px`,"&:first-child":{borderStartStartRadius:Ve,borderEndStartRadius:Ve},"&:last-child":{borderStartEndRadius:Ve,borderEndEndRadius:Ve}},[`${Er}-group-small &`]:{height:Bi,paddingInline:Ci-Yr,paddingBlock:0,lineHeight:`${Bi-Yr*2}px`,"&:first-child":{borderStartStartRadius:ln,borderEndStartRadius:ln},"&:last-child":{borderStartEndRadius:ln,borderEndEndRadius:ln}},"&:hover":{position:"relative",color:bt},"&:has(:focus-visible)":Object.assign({},(0,fe.oN)(gt)),[`${Er}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${Er}-button-wrapper-disabled)`]:{zIndex:1,color:bt,background:_t,borderColor:bt,"&::before":{backgroundColor:bt},"&:first-child":{borderColor:bt},"&:hover":{color:Ht,borderColor:Ht,"&::before":{backgroundColor:Ht}},"&:active":{color:Wn,borderColor:Wn,"&::before":{backgroundColor:Wn}}},[`${Er}-group-solid &-checked:not(${Er}-button-wrapper-disabled)`]:{color:xt,background:tn,borderColor:tn,"&:hover":{color:xt,background:hr,borderColor:hr},"&:active":{color:xt,background:Zi,borderColor:Zi}},"&-disabled":{color:Wt,backgroundColor:on,borderColor:to,cursor:"not-allowed","&:first-child, &:hover":{color:Wt,backgroundColor:on,borderColor:to}},[`&-disabled${Er}-button-wrapper-checked`]:{color:Tt,backgroundColor:Ot,borderColor:to,boxShadow:"none"}}}},ye=gt=>gt-4*2;var we=(0,Be.Z)("Radio",gt=>{const{controlOutline:_n,controlOutlineWidth:Bn,radioSize:Er}=gt,Yr=`0 0 0 ${Bn}px ${_n}`,oi=Yr,to=ye(Er),yo=(0,Ie.TS)(gt,{radioDotDisabledSize:to,radioFocusShadow:Yr,radioButtonFocusShadow:oi});return[We(yo),De(yo),ve(yo)]},gt=>{const{wireframe:_n,padding:Bn,marginXS:Er,lineWidth:Yr,fontSizeLG:oi,colorText:to,colorBgContainer:yo,colorTextDisabled:yr,controlItemBgActiveDisabled:Po,colorTextLightSolid:as,colorPrimary:ge,colorPrimaryHover:_o,colorPrimaryActive:ci}=gt,Bi=4,Ci=oi,io=_n?ye(Ci):Ci-(Bi+Yr)*2;return{radioSize:Ci,dotSize:io,dotColorDisabled:yr,buttonSolidCheckedColor:as,buttonSolidCheckedBg:ge,buttonSolidCheckedHoverBg:_o,buttonSolidCheckedActiveBg:ci,buttonBg:yo,buttonCheckedBg:yo,buttonColor:to,buttonCheckedBgDisabled:Po,buttonCheckedColorDisabled:yr,buttonPaddingInline:Bn-Yr,wrapperMarginInlineEnd:Er}}),Ce=function(gt,_n){var Bn={};for(var Er in gt)Object.prototype.hasOwnProperty.call(gt,Er)&&_n.indexOf(Er)<0&&(Bn[Er]=gt[Er]);if(gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yr=0,Er=Object.getOwnPropertySymbols(gt);Yr{var Bn,Er;const Yr=y.useContext(f),oi=y.useContext(S),{getPrefixCls:to,direction:yo,radio:yr}=y.useContext(N.E_),Po=y.useRef(null),as=(0,ne.sQ)(_n,Po),{isFormItemInput:ge}=y.useContext(he.aM),_o=Wn=>{var tn,hr;(tn=gt.onChange)===null||tn===void 0||tn.call(gt,Wn),(hr=Yr==null?void 0:Yr.onChange)===null||hr===void 0||hr.call(Yr,Wn)},{prefixCls:ci,className:Bi,rootClassName:Ci,children:io,style:ln}=gt,Ve=Ce(gt,["prefixCls","className","rootClassName","children","style"]),_t=to("radio",ci),xt=((Yr==null?void 0:Yr.optionType)||oi)==="button",Wt=xt?`${_t}-button`:_t,[on,Ot]=we(_t),Tt=Object.assign({},Ve),bt=y.useContext(pe.Z);Yr&&(Tt.name=Yr.name,Tt.onChange=_o,Tt.checked=gt.value===Yr.value,Tt.disabled=(Bn=Tt.disabled)!==null&&Bn!==void 0?Bn:Yr.disabled),Tt.disabled=(Er=Tt.disabled)!==null&&Er!==void 0?Er:bt;const Ht=b()(`${Wt}-wrapper`,{[`${Wt}-wrapper-checked`]:Tt.checked,[`${Wt}-wrapper-disabled`]:Tt.disabled,[`${Wt}-wrapper-rtl`]:yo==="rtl",[`${Wt}-wrapper-in-form-item`]:ge},yr==null?void 0:yr.className,Bi,Ci,Ot);return on(y.createElement(re.Z,{component:"Radio",disabled:Tt.disabled},y.createElement("label",{className:Ht,style:Object.assign(Object.assign({},yr==null?void 0:yr.style),ln),onMouseEnter:gt.onMouseEnter,onMouseLeave:gt.onMouseLeave},y.createElement(W.Z,Object.assign({},Tt,{className:b()(Tt.className,!xt&&ce.A),type:"radio",prefixCls:Wt,ref:as})),io!==void 0?y.createElement("span",null,io):null)))};var je=y.forwardRef(Ae);const xe=y.forwardRef((gt,_n)=>{const{getPrefixCls:Bn,direction:Er}=y.useContext(N.E_),[Yr,oi]=(0,z.Z)(gt.defaultValue,{value:gt.value}),to=tn=>{const hr=Yr,Zi=tn.target.value;"value"in gt||oi(Zi);const{onChange:Ri}=gt;Ri&&Zi!==hr&&Ri(tn)},{prefixCls:yo,className:yr,rootClassName:Po,options:as,buttonStyle:ge="outline",disabled:_o,children:ci,size:Bi,style:Ci,id:io,onMouseEnter:ln,onMouseLeave:Ve,onFocus:_t,onBlur:xt}=gt,Wt=Bn("radio",yo),on=`${Wt}-group`,[Ot,Tt]=we(Wt);let bt=ci;as&&as.length>0&&(bt=as.map(tn=>typeof tn=="string"||typeof tn=="number"?y.createElement(je,{key:tn.toString(),prefixCls:Wt,disabled:_o,value:tn,checked:Yr===tn},tn):y.createElement(je,{key:`radio-group-value-options-${tn.value}`,prefixCls:Wt,disabled:tn.disabled||_o,value:tn.value,checked:Yr===tn.value,title:tn.title,style:tn.style,id:tn.id},tn.label)));const Ht=(0,w.Z)(Bi),Wn=b()(on,`${on}-${ge}`,{[`${on}-${Ht}`]:Ht,[`${on}-rtl`]:Er==="rtl"},yr,Po,Tt);return Ot(y.createElement("div",Object.assign({},(0,k.Z)(gt,{aria:!0,data:!0}),{className:Wn,style:Ci,onMouseEnter:ln,onMouseLeave:Ve,onFocus:_t,onBlur:xt,id:io,ref:_n}),y.createElement(C,{value:{onChange:to,value:Yr,disabled:gt.disabled,name:gt.name,optionType:gt.optionType}},bt)))});var Pt=y.memo(xe),ct=function(gt,_n){var Bn={};for(var Er in gt)Object.prototype.hasOwnProperty.call(gt,Er)&&_n.indexOf(Er)<0&&(Bn[Er]=gt[Er]);if(gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yr=0,Er=Object.getOwnPropertySymbols(gt);Yr{const{getPrefixCls:Bn}=y.useContext(N.E_),{prefixCls:Er}=gt,Yr=ct(gt,["prefixCls"]),oi=Bn("radio",Er);return y.createElement(P,{value:"button"},y.createElement(je,Object.assign({prefixCls:oi},Yr,{type:"radio",ref:_n})))};var wt=y.forwardRef(He);const dt=je;dt.Button=wt,dt.Group=Pt,dt.__ANT_RADIO=!0;var Bt=dt},58434:function(nt,V,m){"use strict";m.d(V,{ZP:function(){return ct}});var y=m(77617),I=m(95934),b=m(48796),z=m(86850),k=m(26508),N={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},w=N,A=m(91851),C=function(wt,dt){return y.createElement(A.Z,(0,k.Z)({},wt,{ref:dt,icon:w}))},f=y.forwardRef(C),S=m(12124),P=m.n(S),W=m(67392),re=()=>y.createElement("svg",{width:"252",height:"294"},y.createElement("defs",null,y.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),y.createElement("g",{fill:"none",fillRule:"evenodd"},y.createElement("g",{transform:"translate(0 .012)"},y.createElement("mask",{fill:"#fff"}),y.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),y.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),y.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),y.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),y.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),y.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),y.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),y.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),y.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),y.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),y.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1677ff"}),y.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),y.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),y.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),y.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),y.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),y.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),y.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),y.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),y.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),y.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),y.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),y.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),y.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),y.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),y.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),y.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),y.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),y.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),y.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),y.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),y.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),y.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),y.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),y.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),y.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),y.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),y.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),y.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),y.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),y.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),y.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),pe=()=>y.createElement("svg",{width:"254",height:"294"},y.createElement("defs",null,y.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),y.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),y.createElement("g",{fill:"none",fillRule:"evenodd"},y.createElement("g",{transform:"translate(0 .067)"},y.createElement("mask",{fill:"#fff"}),y.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),y.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),y.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),y.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),y.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),y.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),y.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),y.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),y.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),y.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),y.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),y.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),y.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),y.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),y.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),y.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),y.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),y.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),y.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),y.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),y.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),y.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),y.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),y.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),y.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),y.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),y.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),y.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),y.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),y.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),y.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),y.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),y.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),y.createElement("mask",{fill:"#fff"}),y.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),y.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),y.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),y.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),y.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),y.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),y.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),y.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),y.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),y.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),y.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"}))),he=m(24577),fe=m(41788);const Be=He=>{const{componentCls:wt,lineHeightHeading3:dt,iconCls:Bt,padding:gt,paddingXL:_n,paddingXS:Bn,paddingLG:Er,marginXS:Yr,lineHeight:oi}=He;return{[wt]:{padding:`${Er*2}px ${_n}px`,"&-rtl":{direction:"rtl"}},[`${wt} ${wt}-image`]:{width:He.imageWidth,height:He.imageHeight,margin:"auto"},[`${wt} ${wt}-icon`]:{marginBottom:Er,textAlign:"center",[`& > ${Bt}`]:{fontSize:He.iconFontSize}},[`${wt} ${wt}-title`]:{color:He.colorTextHeading,fontSize:He.titleFontSize,lineHeight:dt,marginBlock:Yr,textAlign:"center"},[`${wt} ${wt}-subtitle`]:{color:He.colorTextDescription,fontSize:He.subtitleFontSize,lineHeight:oi,textAlign:"center"},[`${wt} ${wt}-content`]:{marginTop:Er,padding:`${Er}px ${gt*2.5}px`,backgroundColor:He.colorFillAlter},[`${wt} ${wt}-extra`]:{margin:He.extraMargin,textAlign:"center","& > *":{marginInlineEnd:Bn,"&:last-child":{marginInlineEnd:0}}}}},Ie=He=>{const{componentCls:wt,iconCls:dt}=He;return{[`${wt}-success ${wt}-icon > ${dt}`]:{color:He.resultSuccessIconColor},[`${wt}-error ${wt}-icon > ${dt}`]:{color:He.resultErrorIconColor},[`${wt}-info ${wt}-icon > ${dt}`]:{color:He.resultInfoIconColor},[`${wt}-warning ${wt}-icon > ${dt}`]:{color:He.resultWarningIconColor}}},We=He=>[Be(He),Ie(He)],De=He=>We(He);var ve=(0,he.Z)("Result",He=>{const wt=He.colorInfo,dt=He.colorError,Bt=He.colorSuccess,gt=He.colorWarning,_n=(0,fe.TS)(He,{resultInfoIconColor:wt,resultErrorIconColor:dt,resultSuccessIconColor:Bt,resultWarningIconColor:gt,imageWidth:250,imageHeight:295});return[De(_n)]},He=>({titleFontSize:He.fontSizeHeading3,subtitleFontSize:He.fontSize,iconFontSize:He.fontSizeHeading3*3,extraMargin:`${He.paddingLG}px 0 0 0`})),we=()=>y.createElement("svg",{width:"251",height:"294"},y.createElement("g",{fill:"none",fillRule:"evenodd"},y.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),y.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),y.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),y.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),y.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),y.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),y.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),y.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),y.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),y.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),y.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),y.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),y.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),y.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),y.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),y.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),y.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),y.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),y.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),y.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),y.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),y.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),y.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),y.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),y.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),y.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),y.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),y.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),y.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),y.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),y.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),y.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),y.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),y.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),y.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),y.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),y.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),y.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),y.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"})));const Ce={success:I.Z,error:b.Z,info:z.Z,warning:f},Ae={404:re,500:pe,403:we},me=Object.keys(Ae),je=He=>{let{prefixCls:wt,icon:dt,status:Bt}=He;const gt=P()(`${wt}-icon`);if(me.includes(`${Bt}`)){const Bn=Ae[Bt];return y.createElement("div",{className:`${gt} ${wt}-image`},y.createElement(Bn,null))}const _n=y.createElement(Ce[Bt]);return dt===null||dt===!1?null:y.createElement("div",{className:gt},dt||_n)},xe=He=>{let{prefixCls:wt,extra:dt}=He;return dt?y.createElement("div",{className:`${wt}-extra`},dt):null},Pt=He=>{let{prefixCls:wt,className:dt,rootClassName:Bt,subTitle:gt,title:_n,style:Bn,children:Er,status:Yr="info",icon:oi,extra:to}=He;const{getPrefixCls:yo,direction:yr,result:Po}=y.useContext(W.E_),as=yo("result",wt),[ge,_o]=ve(as),ci=P()(as,`${as}-${Yr}`,dt,Po==null?void 0:Po.className,Bt,{[`${as}-rtl`]:yr==="rtl"},_o),Bi=Object.assign(Object.assign({},Po==null?void 0:Po.style),Bn);return ge(y.createElement("div",{className:ci,style:Bi},y.createElement(je,{prefixCls:as,status:Yr,icon:oi}),y.createElement("div",{className:`${as}-title`},_n),gt&&y.createElement("div",{className:`${as}-subtitle`},gt),y.createElement(xe,{prefixCls:as,extra:to}),Er&&y.createElement("div",{className:`${as}-content`},Er)))};Pt.PRESENTED_IMAGE_403=Ae[403],Pt.PRESENTED_IMAGE_404=Ae[404],Pt.PRESENTED_IMAGE_500=Ae[500];var ct=Pt},29130:function(nt,V,m){"use strict";var y=m(77617),I=m(12124),b=m.n(I),z=m(24955),k=m(39029),N=m(26612),w=m(91202),A=m(5997),C=m(67392),f=m(47316),S=m(81689),P=m(21843),W=m(86818),ne=m(58370),re=m(79857),ce=m(5998),pe=m(20446),he=m(86755),fe=function(ve,ye){var we={};for(var Ce in ve)Object.prototype.hasOwnProperty.call(ve,Ce)&&ye.indexOf(Ce)<0&&(we[Ce]=ve[Ce]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Ce=Object.getOwnPropertySymbols(ve);Ae{var we,{prefixCls:Ce,bordered:Ae=!0,className:me,rootClassName:je,getPopupContainer:xe,popupClassName:Pt,dropdownClassName:ct,listHeight:He=256,placement:wt,listItemHeight:dt=24,size:Bt,disabled:gt,notFoundContent:_n,status:Bn,builtinPlacements:Er,dropdownMatchSelectWidth:Yr,popupMatchSelectWidth:oi,direction:to,style:yo,allowClear:yr}=ve,Po=fe(ve,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:as,getPrefixCls:ge,renderEmpty:_o,direction:ci,virtual:Bi,popupMatchSelectWidth:Ci,popupOverflow:io,select:ln}=y.useContext(C.E_),Ve=ge("select",Ce),_t=ge(),xt=to!=null?to:ci,{compactSize:Wt,compactItemClassnames:on}=(0,ne.ri)(Ve,xt),[Ot,Tt]=(0,re.Z)(Ve),bt=y.useMemo(()=>{const{mode:rn}=Po;if(rn!=="combobox")return rn===Be?"combobox":rn},[Po.mode]),Ht=bt==="multiple"||bt==="tags",Wn=(0,pe.Z)(Po.suffixIcon,Po.showArrow),tn=(we=oi!=null?oi:Yr)!==null&&we!==void 0?we:Ci,{status:hr,hasFeedback:Zi,isFormItemInput:Ri,feedbackIcon:Pi}=y.useContext(W.aM),Wo=(0,A.F)(hr,Bn);let ys;_n!==void 0?ys=_n:bt==="combobox"?ys=null:ys=(_o==null?void 0:_o("Select"))||y.createElement(f.Z,{componentName:"Select"});const{suffixIcon:xn,itemIcon:Hr,removeIcon:Jr,clearIcon:Yi}=(0,he.Z)(Object.assign(Object.assign({},Po),{multiple:Ht,hasFeedback:Zi,feedbackIcon:Pi,showSuffixIcon:Wn,prefixCls:Ve,showArrow:Po.showArrow,componentName:"Select"})),xo=yr===!0?{clearIcon:Yi}:yr,na=(0,k.Z)(Po,["suffixIcon","itemIcon"]),Un=b()(Pt||ct,{[`${Ve}-dropdown-${xt}`]:xt==="rtl"},je,Tt),Xn=(0,P.Z)(rn=>{var Qn;return(Qn=Bt!=null?Bt:Wt)!==null&&Qn!==void 0?Qn:rn}),Mr=y.useContext(S.Z),li=gt!=null?gt:Mr,wr=b()({[`${Ve}-lg`]:Xn==="large",[`${Ve}-sm`]:Xn==="small",[`${Ve}-rtl`]:xt==="rtl",[`${Ve}-borderless`]:!Ae,[`${Ve}-in-form-item`]:Ri},(0,A.Z)(Ve,Wo,Zi),on,ln==null?void 0:ln.className,me,je,Tt),qr=y.useMemo(()=>wt!==void 0?wt:xt==="rtl"?"bottomRight":"bottomLeft",[wt,xt]),ii=(0,ce.Z)(Er,io);return Ot(y.createElement(z.ZP,Object.assign({ref:ye,virtual:Bi,showSearch:ln==null?void 0:ln.showSearch},na,{style:Object.assign(Object.assign({},ln==null?void 0:ln.style),yo),dropdownMatchSelectWidth:tn,builtinPlacements:ii,transitionName:(0,N.m)(_t,"slide-up",Po.transitionName),listHeight:He,listItemHeight:dt,mode:bt,prefixCls:Ve,placement:qr,direction:xt,suffixIcon:xn,menuItemSelectedIcon:Hr,removeIcon:Jr,allowClear:xo,notFoundContent:ys,className:wr,getPopupContainer:xe||as,dropdownClassName:Un,disabled:li})))},We=y.forwardRef(Ie),De=(0,w.Z)(We);We.SECRET_COMBOBOX_MODE_DO_NOT_USE=Be,We.Option=z.Wx,We.OptGroup=z.Xo,We._InternalPanelDoNotUseOrYouWillBeFired=De,V.Z=We},79857:function(nt,V,m){"use strict";m.d(V,{Z:function(){return We}});var y=m(92068),I=m(73973),b=m(41788),z=m(24577),k=m(22759),N=m(40659);const w=De=>{const{optionHeight:ve,optionFontSize:ye,optionLineHeight:we,optionPadding:Ce}=De;return{position:"relative",display:"block",minHeight:ve,padding:Ce,color:De.colorText,fontWeight:"normal",fontSize:ye,lineHeight:we,boxSizing:"border-box"}};var C=De=>{const{antCls:ve,componentCls:ye}=De,we=`${ye}-item`,Ce=`&${ve}-slide-up-enter${ve}-slide-up-enter-active`,Ae=`&${ve}-slide-up-appear${ve}-slide-up-appear-active`,me=`&${ve}-slide-up-leave${ve}-slide-up-leave-active`,je=`${ye}-dropdown-placement-`;return[{[`${ye}-dropdown`]:Object.assign(Object.assign({},(0,y.Wf)(De)),{position:"absolute",top:-9999,zIndex:De.zIndexPopup,boxSizing:"border-box",padding:De.paddingXXS,overflow:"hidden",fontSize:De.fontSize,fontVariant:"initial",backgroundColor:De.colorBgElevated,borderRadius:De.borderRadiusLG,outline:"none",boxShadow:De.boxShadowSecondary,[` + ${Ce}${je}bottomLeft, + ${Ae}${je}bottomLeft `]:{animationName:k.fJ},[` - ${be}${We}topLeft, - ${Ie}${We}topLeft, - ${be}${We}topRight, - ${Ie}${We}topRight - `]:{animationName:k.Qt},[`${me}${We}bottomLeft`]:{animationName:k.Uw},[` - ${me}${We}topLeft, - ${me}${We}topRight - `]:{animationName:k.ly},"&-hidden":{display:"none"},[`${xe}`]:Object.assign(Object.assign({},w(Ee)),{cursor:"pointer",transition:`background ${Ee.motionDurationSlow} ease`,borderRadius:Ee.borderRadiusSM,"&-group":{color:Ee.colorTextDescription,fontSize:Ee.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},y.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${xe}-option-disabled)`]:{backgroundColor:Ee.optionActiveBg},[`&-selected:not(${xe}-option-disabled)`]:{color:Ee.optionSelectedColor,fontWeight:Ee.optionSelectedFontWeight,backgroundColor:Ee.optionSelectedBg,[`${xe}-option-state`]:{color:Ee.colorPrimary}},"&-disabled":{[`&${xe}-option-selected`]:{backgroundColor:Ee.colorBgContainerDisabled},color:Ee.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Ee.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,k.oN)(Ee,"slide-up"),(0,k.oN)(Ee,"slide-down"),(0,N.Fm)(Ee,"move-up"),(0,N.Fm)(Ee,"move-down")]};const f=2,S=Ee=>{let{multipleSelectItemHeight:ge,selectHeight:ye,lineWidth:xe}=Ee;const be=(ye-ge)/2-xe,Ie=Math.ceil(be/2);return[be,Ie]};function P(Ee,ge){const{componentCls:ye,iconCls:xe}=Ee,be=`${ye}-selection-overflow`,Ie=Ee.multipleSelectItemHeight,[me]=S(Ee),We=ge?`${ye}-${ge}`:"";return{[`${ye}-multiple${We}`]:{fontSize:Ee.fontSize,[be]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${ye}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",padding:`${me-f}px ${f*2}px`,borderRadius:Ee.borderRadius,[`${ye}-show-search&`]:{cursor:"text"},[`${ye}-disabled&`]:{background:Ee.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${f}px 0`,lineHeight:`${Ie}px`,visibility:"hidden",content:'"\\a0"'}},[` + ${Ce}${je}topLeft, + ${Ae}${je}topLeft, + ${Ce}${je}topRight, + ${Ae}${je}topRight + `]:{animationName:k.Qt},[`${me}${je}bottomLeft`]:{animationName:k.Uw},[` + ${me}${je}topLeft, + ${me}${je}topRight + `]:{animationName:k.ly},"&-hidden":{display:"none"},[`${we}`]:Object.assign(Object.assign({},w(De)),{cursor:"pointer",transition:`background ${De.motionDurationSlow} ease`,borderRadius:De.borderRadiusSM,"&-group":{color:De.colorTextDescription,fontSize:De.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},y.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${we}-option-disabled)`]:{backgroundColor:De.optionActiveBg},[`&-selected:not(${we}-option-disabled)`]:{color:De.optionSelectedColor,fontWeight:De.optionSelectedFontWeight,backgroundColor:De.optionSelectedBg,[`${we}-option-state`]:{color:De.colorPrimary}},"&-disabled":{[`&${we}-option-selected`]:{backgroundColor:De.colorBgContainerDisabled},color:De.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:De.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,k.oN)(De,"slide-up"),(0,k.oN)(De,"slide-down"),(0,N.Fm)(De,"move-up"),(0,N.Fm)(De,"move-down")]};const f=2,S=De=>{let{multipleSelectItemHeight:ve,selectHeight:ye,lineWidth:we}=De;const Ce=(ye-ve)/2-we,Ae=Math.ceil(Ce/2);return[Ce,Ae]};function P(De,ve){const{componentCls:ye,iconCls:we}=De,Ce=`${ye}-selection-overflow`,Ae=De.multipleSelectItemHeight,[me]=S(De),je=ve?`${ye}-${ve}`:"";return{[`${ye}-multiple${je}`]:{fontSize:De.fontSize,[Ce]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${ye}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",padding:`${me-f}px ${f*2}px`,borderRadius:De.borderRadius,[`${ye}-show-search&`]:{cursor:"text"},[`${ye}-disabled&`]:{background:De.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${f}px 0`,lineHeight:`${Ae}px`,visibility:"hidden",content:'"\\a0"'}},[` &${ye}-show-arrow ${ye}-selector, &${ye}-allow-clear ${ye}-selector - `]:{paddingInlineEnd:Ee.fontSizeIcon+Ee.controlPaddingHorizontal},[`${ye}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Ie,marginTop:f,marginBottom:f,lineHeight:`${Ie-Ee.lineWidth*2}px`,background:Ee.multipleItemBg,border:`${Ee.lineWidth}px ${Ee.lineType} ${Ee.multipleItemBorderColor}`,borderRadius:Ee.borderRadiusSM,cursor:"default",transition:`font-size ${Ee.motionDurationSlow}, line-height ${Ee.motionDurationSlow}, height ${Ee.motionDurationSlow}`,marginInlineEnd:f*2,paddingInlineStart:Ee.paddingXS,paddingInlineEnd:Ee.paddingXS/2,[`${ye}-disabled&`]:{color:Ee.multipleItemColorDisabled,borderColor:Ee.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:Ee.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,y.Ro)()),{display:"inline-flex",alignItems:"center",color:Ee.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${xe}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Ee.colorIconHover}})},[`${be}-item + ${be}-item`]:{[`${ye}-selection-search`]:{marginInlineStart:0}},[`${be}-item-suffix`]:{height:"100%"},[`${ye}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Ee.inputPaddingHorizontalBase-me,[` + `]:{paddingInlineEnd:De.fontSizeIcon+De.controlPaddingHorizontal},[`${ye}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Ae,marginTop:f,marginBottom:f,lineHeight:`${Ae-De.lineWidth*2}px`,background:De.multipleItemBg,border:`${De.lineWidth}px ${De.lineType} ${De.multipleItemBorderColor}`,borderRadius:De.borderRadiusSM,cursor:"default",transition:`font-size ${De.motionDurationSlow}, line-height ${De.motionDurationSlow}, height ${De.motionDurationSlow}`,marginInlineEnd:f*2,paddingInlineStart:De.paddingXS,paddingInlineEnd:De.paddingXS/2,[`${ye}-disabled&`]:{color:De.multipleItemColorDisabled,borderColor:De.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:De.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,y.Ro)()),{display:"inline-flex",alignItems:"center",color:De.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${we}`]:{verticalAlign:"-0.2em"},"&:hover":{color:De.colorIconHover}})},[`${Ce}-item + ${Ce}-item`]:{[`${ye}-selection-search`]:{marginInlineStart:0}},[`${Ce}-item-suffix`]:{height:"100%"},[`${ye}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:De.inputPaddingHorizontalBase-me,[` &-input, &-mirror - `]:{height:Ie,fontFamily:Ee.fontFamily,lineHeight:`${Ie}px`,transition:`all ${Ee.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${ye}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:Ee.inputPaddingHorizontalBase,insetInlineEnd:Ee.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${Ee.motionDurationSlow}`}}}}var re=Ee=>{const{componentCls:ge}=Ee,ye=(0,b.TS)(Ee,{selectHeight:Ee.controlHeightSM,multipleSelectItemHeight:Ee.controlHeightXS,borderRadius:Ee.borderRadiusSM,borderRadiusSM:Ee.borderRadiusXS}),xe=(0,b.TS)(Ee,{fontSize:Ee.fontSizeLG,selectHeight:Ee.controlHeightLG,multipleSelectItemHeight:Ee.multipleItemHeightLG,borderRadius:Ee.borderRadiusLG,borderRadiusSM:Ee.borderRadius}),[,be]=S(Ee);return[P(Ee),P(ye,"sm"),{[`${ge}-multiple${ge}-sm`]:{[`${ge}-selection-placeholder`]:{insetInline:Ee.controlPaddingHorizontalSM-Ee.lineWidth},[`${ge}-selection-search`]:{marginInlineStart:be}}},P(xe,"lg")]};function J(Ee,ge){const{componentCls:ye,inputPaddingHorizontalBase:xe,borderRadius:be}=Ee,Ie=Ee.controlHeight-Ee.lineWidth*2,me=Math.ceil(Ee.fontSize*1.25),We=ge?`${ye}-${ge}`:"";return{[`${ye}-single${We}`]:{fontSize:Ee.fontSize,height:Ee.controlHeight,[`${ye}-selector`]:Object.assign(Object.assign({},(0,y.Wf)(Ee,!0)),{display:"flex",borderRadius:be,[`${ye}-selection-search`]:{position:"absolute",top:0,insetInlineStart:xe,insetInlineEnd:xe,bottom:0,"&-input":{width:"100%"}},[` + `]:{height:Ae,fontFamily:De.fontFamily,lineHeight:`${Ae}px`,transition:`all ${De.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${ye}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:De.inputPaddingHorizontalBase,insetInlineEnd:De.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${De.motionDurationSlow}`}}}}var ne=De=>{const{componentCls:ve}=De,ye=(0,b.TS)(De,{selectHeight:De.controlHeightSM,multipleSelectItemHeight:De.controlHeightXS,borderRadius:De.borderRadiusSM,borderRadiusSM:De.borderRadiusXS}),we=(0,b.TS)(De,{fontSize:De.fontSizeLG,selectHeight:De.controlHeightLG,multipleSelectItemHeight:De.multipleItemHeightLG,borderRadius:De.borderRadiusLG,borderRadiusSM:De.borderRadius}),[,Ce]=S(De);return[P(De),P(ye,"sm"),{[`${ve}-multiple${ve}-sm`]:{[`${ve}-selection-placeholder`]:{insetInline:De.controlPaddingHorizontalSM-De.lineWidth},[`${ve}-selection-search`]:{marginInlineStart:Ce}}},P(we,"lg")]};function re(De,ve){const{componentCls:ye,inputPaddingHorizontalBase:we,borderRadius:Ce}=De,Ae=De.controlHeight-De.lineWidth*2,me=Math.ceil(De.fontSize*1.25),je=ve?`${ye}-${ve}`:"";return{[`${ye}-single${je}`]:{fontSize:De.fontSize,height:De.controlHeight,[`${ye}-selector`]:Object.assign(Object.assign({},(0,y.Wf)(De,!0)),{display:"flex",borderRadius:Ce,[`${ye}-selection-search`]:{position:"absolute",top:0,insetInlineStart:we,insetInlineEnd:we,bottom:0,"&-input":{width:"100%"}},[` ${ye}-selection-item, ${ye}-selection-placeholder - `]:{padding:0,lineHeight:`${Ie}px`,transition:`all ${Ee.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${ye}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${ye}-selection-item:empty:after`,`${ye}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` + `]:{padding:0,lineHeight:`${Ae}px`,transition:`all ${De.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${ye}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${ye}-selection-item:empty:after`,`${ye}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${ye}-show-arrow ${ye}-selection-item, &${ye}-show-arrow ${ye}-selection-placeholder - `]:{paddingInlineEnd:me},[`&${ye}-open ${ye}-selection-item`]:{color:Ee.colorTextPlaceholder},[`&:not(${ye}-customize-input)`]:{[`${ye}-selector`]:{width:"100%",height:"100%",padding:`0 ${xe}px`,[`${ye}-selection-search-input`]:{height:Ie},"&:after":{lineHeight:`${Ie}px`}}},[`&${ye}-customize-input`]:{[`${ye}-selector`]:{"&:after":{display:"none"},[`${ye}-selection-search`]:{position:"static",width:"100%"},[`${ye}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${xe}px`,"&:after":{display:"none"}}}}}}}function ie(Ee){const{componentCls:ge}=Ee,ye=Ee.controlPaddingHorizontalSM-Ee.lineWidth;return[J(Ee),J((0,b.TS)(Ee,{controlHeight:Ee.controlHeightSM,borderRadius:Ee.borderRadiusSM}),"sm"),{[`${ge}-single${ge}-sm`]:{[`&:not(${ge}-customize-input)`]:{[`${ge}-selection-search`]:{insetInlineStart:ye,insetInlineEnd:ye},[`${ge}-selector`]:{padding:`0 ${ye}px`},[`&${ge}-show-arrow ${ge}-selection-search`]:{insetInlineEnd:ye+Ee.fontSize*1.5},[` - &${ge}-show-arrow ${ge}-selection-item, - &${ge}-show-arrow ${ge}-selection-placeholder - `]:{paddingInlineEnd:Ee.fontSize*1.5}}}},J((0,b.TS)(Ee,{controlHeight:Ee.singleItemHeightLG,fontSize:Ee.fontSizeLG,borderRadius:Ee.borderRadiusLG}),"lg")]}const de=Ee=>{const{componentCls:ge,selectorBg:ye}=Ee;return{position:"relative",backgroundColor:ye,border:`${Ee.lineWidth}px ${Ee.lineType} ${Ee.colorBorder}`,transition:`all ${Ee.motionDurationMid} ${Ee.motionEaseInOut}`,input:{cursor:"pointer"},[`${ge}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${ge}-disabled&`]:{color:Ee.colorTextDisabled,background:Ee.colorBgContainerDisabled,cursor:"not-allowed",[`${ge}-multiple&`]:{background:Ee.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},he=function(Ee,ge){let ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:xe,borderHoverColor:be,antCls:Ie,borderActiveColor:me,outlineColor:We,controlOutlineWidth:Ce}=ge,Pt=ye?{[`${xe}-selector`]:{borderColor:me}}:{};return{[Ee]:{[`&:not(${xe}-disabled):not(${xe}-customize-input):not(${Ie}-pagination-size-changer)`]:Object.assign(Object.assign({},Pt),{[`&:hover ${xe}-selector`]:{borderColor:be},[`${xe}-focused& ${xe}-selector`]:{borderColor:me,boxShadow:`0 0 0 ${Ce}px ${We}`,outline:0}})}}},fe=Ee=>{const{componentCls:ge}=Ee;return{[`${ge}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},ke=Ee=>{const{antCls:ge,componentCls:ye,inputPaddingHorizontalBase:xe,iconCls:be}=Ee;return{[ye]:Object.assign(Object.assign({},(0,y.Wf)(Ee)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${ye}-customize-input) ${ye}-selector`]:Object.assign(Object.assign({},de(Ee)),fe(Ee)),[`${ye}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},y.vS),{[`> ${ge}-typography`]:{display:"inline"}}),[`${ye}-selection-placeholder`]:Object.assign(Object.assign({},y.vS),{flex:1,color:Ee.colorTextPlaceholder,pointerEvents:"none"}),[`${ye}-arrow`]:Object.assign(Object.assign({},(0,y.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:xe,height:Ee.fontSizeIcon,marginTop:-Ee.fontSizeIcon/2,color:Ee.colorTextQuaternary,fontSize:Ee.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[be]:{verticalAlign:"top",transition:`transform ${Ee.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${ye}-suffix)`]:{pointerEvents:"auto"}},[`${ye}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${ye}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:xe,zIndex:1,display:"inline-block",width:Ee.fontSizeIcon,height:Ee.fontSizeIcon,marginTop:-Ee.fontSizeIcon/2,color:Ee.colorTextQuaternary,fontSize:Ee.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:Ee.clearBg,cursor:"pointer",opacity:0,transition:`color ${Ee.motionDurationMid} ease, opacity ${Ee.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Ee.colorTextTertiary}},"&:hover":{[`${ye}-clear`]:{opacity:1}}}),[`${ye}-has-feedback`]:{[`${ye}-clear`]:{insetInlineEnd:xe+Ee.fontSize+Ee.paddingXS}}}},we=Ee=>{const{componentCls:ge}=Ee;return[{[ge]:{[`&-borderless ${ge}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${ge}-in-form-item`]:{width:"100%"}}},ke(Ee),ie(Ee),re(Ee),C(Ee),{[`${ge}-rtl`]:{direction:"rtl"}},he(ge,(0,b.TS)(Ee,{borderHoverColor:Ee.colorPrimaryHover,borderActiveColor:Ee.colorPrimary,outlineColor:Ee.controlOutline})),he(`${ge}-status-error`,(0,b.TS)(Ee,{borderHoverColor:Ee.colorErrorHover,borderActiveColor:Ee.colorError,outlineColor:Ee.colorErrorOutline}),!0),he(`${ge}-status-warning`,(0,b.TS)(Ee,{borderHoverColor:Ee.colorWarningHover,borderActiveColor:Ee.colorWarning,outlineColor:Ee.colorWarningOutline}),!0),(0,A.c)(Ee,{borderElCls:`${ge}-selector`,focusElCls:`${ge}-focused`})]};var Ne=(0,z.Z)("Select",(Ee,ge)=>{let{rootPrefixCls:ye}=ge;const xe=(0,b.TS)(Ee,{rootPrefixCls:ye,inputPaddingHorizontalBase:Ee.paddingSM-1,multipleSelectItemHeight:Ee.multipleItemHeight,selectHeight:Ee.controlHeight});return[we(xe)]},Ee=>{const{fontSize:ge,lineHeight:ye,controlHeight:xe,controlPaddingHorizontal:be,zIndexPopupBase:Ie,colorText:me,fontWeightStrong:We,controlItemBgActive:Ce,controlItemBgHover:Pt,colorBgContainer:ct,colorFillSecondary:Ue,controlHeightLG:bt,controlHeightSM:ht,colorBgContainerDisabled:Bt,colorTextDisabled:mt}=Ee;return{zIndexPopup:Ie+50,optionSelectedColor:me,optionSelectedFontWeight:We,optionSelectedBg:Ce,optionActiveBg:Pt,optionPadding:`${(xe-ge*ye)/2}px ${be}px`,optionFontSize:ge,optionLineHeight:ye,optionHeight:xe,selectorBg:ct,clearBg:ct,singleItemHeightLG:bt,multipleItemBg:Ue,multipleItemBorderColor:"transparent",multipleItemHeight:ht,multipleItemHeightLG:xe,multipleSelectorBgDisabled:Bt,multipleItemColorDisabled:mt,multipleItemBorderColorDisabled:"transparent"}})},13458:function(nt,V,m){"use strict";m.d(V,{Z:function(){return A}});const y=b=>{const k={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:b==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},k),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},k),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},k),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},k),{points:["br","tr"],offset:[0,-4]})}};function A(b,z){return b||y(z)}},43277:function(nt,V,m){"use strict";m.d(V,{Z:function(){return I}});var y=m(67294),A=m(35918),b=m(41322),z=m(62208),k=m(58964),N=m(22508),w=m(13805);function I(C){let{suffixIcon:f,clearIcon:S,menuItemSelectedIcon:P,removeIcon:j,loading:re,multiple:J,hasFeedback:ie,prefixCls:de,showSuffixIcon:he,feedbackIcon:fe,showArrow:ke,componentName:we}=C;const Ne=S!=null?S:y.createElement(b.Z,null),Ee=be=>f===null&&!ie&&!ke?null:y.createElement(y.Fragment,null,he!==!1&&be,ie&&fe);let ge=null;if(f!==void 0)ge=Ee(f);else if(re)ge=Ee(y.createElement(N.Z,{spin:!0}));else{const be=`${de}-suffix`;ge=Ie=>{let{open:me,showSearch:We}=Ie;return Ee(me&&We?y.createElement(w.Z,{className:be}):y.createElement(k.Z,{className:be}))}}let ye=null;P!==void 0?ye=P:J?ye=y.createElement(A.Z,null):ye=null;let xe=null;return j!==void 0?xe=j:xe=y.createElement(z.Z,null),{clearIcon:Ne,suffixIcon:ge,itemIcon:ye,removeIcon:xe}}},78642:function(nt,V,m){"use strict";m.d(V,{Z:function(){return y}});function y(A,b){return b!==void 0?b:A!==null}},4173:function(nt,V,m){"use strict";m.d(V,{BR:function(){return S},ri:function(){return f}});var y=m(94184),A=m.n(y),b=m(50344),z=m(67294),k=m(53124),N=m(98675),w=m(51916),I=function(re,J){var ie={};for(var de in re)Object.prototype.hasOwnProperty.call(re,de)&&J.indexOf(de)<0&&(ie[de]=re[de]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,de=Object.getOwnPropertySymbols(re);he{const ie=z.useContext(C),de=z.useMemo(()=>{if(!ie)return"";const{compactDirection:he,isFirstItem:fe,isLastItem:ke}=ie,we=he==="vertical"?"-vertical-":"-";return A()(`${re}-compact${we}item`,{[`${re}-compact${we}first-item`]:fe,[`${re}-compact${we}last-item`]:ke,[`${re}-compact${we}item-rtl`]:J==="rtl"})},[re,J,ie]);return{compactSize:ie==null?void 0:ie.compactSize,compactDirection:ie==null?void 0:ie.compactDirection,compactItemClassnames:de}},S=re=>{let{children:J}=re;return z.createElement(C.Provider,{value:null},J)},P=re=>{var{children:J}=re,ie=I(re,["children"]);return z.createElement(C.Provider,{value:ie},J)},j=re=>{const{getPrefixCls:J,direction:ie}=z.useContext(k.E_),{size:de,direction:he,block:fe,prefixCls:ke,className:we,rootClassName:Ne,children:Ee}=re,ge=I(re,["size","direction","block","prefixCls","className","rootClassName","children"]),ye=(0,N.Z)(ct=>de!=null?de:ct),xe=J("space-compact",ke),[be,Ie]=(0,w.Z)(xe),me=A()(xe,Ie,{[`${xe}-rtl`]:ie==="rtl",[`${xe}-block`]:fe,[`${xe}-vertical`]:he==="vertical"},we,Ne),We=z.useContext(C),Ce=(0,b.Z)(Ee),Pt=z.useMemo(()=>Ce.map((ct,Ue)=>{const bt=ct&&ct.key||`${xe}-item-${Ue}`;return z.createElement(P,{key:bt,compactSize:ye,compactDirection:he,isFirstItem:Ue===0&&(!We||(We==null?void 0:We.isFirstItem)),isLastItem:Ue===Ce.length-1&&(!We||(We==null?void 0:We.isLastItem))},ct)}),[de,Ce,We]);return Ce.length===0?null:be(z.createElement("div",Object.assign({className:me},ge),Pt))};V.ZP=j},78957:function(nt,V,m){"use strict";m.d(V,{Z:function(){return de}});var y=m(67294),A=m(94184),b=m.n(A),z=m(50344);function k(he){return["small","middle","large"].includes(he)}function N(he){return he?typeof he=="number"&&!Number.isNaN(he):!1}var w=m(53124),I=m(4173);const C=y.createContext({latestIndex:0}),f=C.Provider;var P=he=>{let{className:fe,index:ke,children:we,split:Ne,style:Ee}=he;const{latestIndex:ge}=y.useContext(C);return we==null?null:y.createElement(y.Fragment,null,y.createElement("div",{className:fe,style:Ee},we),ke{var ke,we;const{getPrefixCls:Ne,space:Ee,direction:ge}=y.useContext(w.E_),{size:ye=(Ee==null?void 0:Ee.size)||"small",align:xe,className:be,rootClassName:Ie,children:me,direction:We="horizontal",prefixCls:Ce,split:Pt,style:ct,wrap:Ue=!1,classNames:bt,styles:ht}=he,Bt=re(he,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[mt,_n]=Array.isArray(ye)?ye:[ye,ye],Bn=k(_n),Er=k(mt),Yr=N(_n),oi=N(mt),to=(0,z.Z)(me,{keepEmpty:!0}),yo=xe===void 0&&We==="horizontal"?"center":xe,vr=Ne("space",Ce),[Po,ss]=(0,j.Z)(vr),ve=b()(vr,Ee==null?void 0:Ee.className,ss,`${vr}-${We}`,{[`${vr}-rtl`]:ge==="rtl",[`${vr}-align-${yo}`]:yo,[`${vr}-gap-row-${_n}`]:Bn,[`${vr}-gap-col-${mt}`]:Er},be,Ie),_o=b()(`${vr}-item`,(ke=bt==null?void 0:bt.item)!==null&&ke!==void 0?ke:(we=Ee==null?void 0:Ee.classNames)===null||we===void 0?void 0:we.item);let ci=0;const Bi=to.map((ln,Ve)=>{var _t,Ct;ln!=null&&(ci=Ve);const jt=ln&&ln.key||`${_o}-${Ve}`;return y.createElement(P,{className:_o,key:jt,index:Ve,split:Pt,style:(_t=ht==null?void 0:ht.item)!==null&&_t!==void 0?_t:(Ct=Ee==null?void 0:Ee.styles)===null||Ct===void 0?void 0:Ct.item},ln)}),wi=y.useMemo(()=>({latestIndex:ci}),[ci]);if(to.length===0)return null;const io={};return Ue&&(io.flexWrap="wrap"),!Er&&oi&&(io.columnGap=mt),!Bn&&Yr&&(io.rowGap=_n),Po(y.createElement("div",Object.assign({ref:fe,className:ve,style:Object.assign(Object.assign(Object.assign({},io),Ee==null?void 0:Ee.style),ct)},Bt),y.createElement(f,{value:wi},Bi)))});ie.Compact=I.ZP;var de=ie},51916:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(67968),A=m(45503),z=I=>{const{componentCls:C}=I;return{[C]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}};const k=I=>{const{componentCls:C}=I;return{[C]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${C}-item:empty`]:{display:"none"}}}},N=I=>{const{componentCls:C}=I;return{[C]:{"&-gap-row-small":{rowGap:I.spaceGapSmallSize},"&-gap-row-middle":{rowGap:I.spaceGapMiddleSize},"&-gap-row-large":{rowGap:I.spaceGapLargeSize},"&-gap-col-small":{columnGap:I.spaceGapSmallSize},"&-gap-col-middle":{columnGap:I.spaceGapMiddleSize},"&-gap-col-large":{columnGap:I.spaceGapLargeSize}}}};var w=(0,y.Z)("Space",I=>{const C=(0,A.TS)(I,{spaceGapSmallSize:I.paddingXS,spaceGapMiddleSize:I.padding,spaceGapLargeSize:I.paddingLG});return[k(C),N(C),z(C)]},()=>({}),{resetStyle:!1})},75081:function(nt,V,m){"use strict";m.d(V,{Z:function(){return ge}});var y=m(67294),A=m(94184),b=m.n(A),z=m(98423);function k(ye,xe,be){var Ie=be||{},me=Ie.noTrailing,We=me===void 0?!1:me,Ce=Ie.noLeading,Pt=Ce===void 0?!1:Ce,ct=Ie.debounceMode,Ue=ct===void 0?void 0:ct,bt,ht=!1,Bt=0;function mt(){bt&&clearTimeout(bt)}function _n(Er){var Yr=Er||{},oi=Yr.upcomingOnly,to=oi===void 0?!1:oi;mt(),ht=!to}function Bn(){for(var Er=arguments.length,Yr=new Array(Er),oi=0;oiye?Pt?(Bt=Date.now(),We||(bt=setTimeout(Ue?Po:vr,ye))):vr():We!==!0&&(bt=setTimeout(Ue?Po:vr,Ue===void 0?ye-yo:ye))}return Bn.cancel=_n,Bn}function N(ye,xe,be){var Ie=be||{},me=Ie.atBegin,We=me===void 0?!1:me;return k(ye,xe,{debounceMode:We!==!1})}var w=m(96159),I=m(53124),C=m(85731),f=m(14747),S=m(67968),P=m(45503);const j=new C.E4("antSpinMove",{to:{opacity:1}}),re=new C.E4("antRotate",{to:{transform:"rotate(405deg)"}}),J=ye=>({[`${ye.componentCls}`]:Object.assign(Object.assign({},(0,f.Wf)(ye)),{position:"absolute",display:"none",color:ye.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${ye.motionDurationSlow} ${ye.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":{position:"relative",[`> div > ${ye.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:ye.contentHeight,[`${ye.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-ye.dotSize/2},[`${ye.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",paddingTop:(ye.dotSize-ye.fontSize)/2+2,textShadow:`0 1px 2px ${ye.colorBgContainer}`,fontSize:ye.fontSize},[`&${ye.componentCls}-show-text ${ye.componentCls}-dot`]:{marginTop:-(ye.dotSize/2)-10},"&-sm":{[`${ye.componentCls}-dot`]:{margin:-ye.dotSizeSM/2},[`${ye.componentCls}-text`]:{paddingTop:(ye.dotSizeSM-ye.fontSize)/2+2},[`&${ye.componentCls}-show-text ${ye.componentCls}-dot`]:{marginTop:-(ye.dotSizeSM/2)-10}},"&-lg":{[`${ye.componentCls}-dot`]:{margin:-(ye.dotSizeLG/2)},[`${ye.componentCls}-text`]:{paddingTop:(ye.dotSizeLG-ye.fontSize)/2+2},[`&${ye.componentCls}-show-text ${ye.componentCls}-dot`]:{marginTop:-(ye.dotSizeLG/2)-10}}},[`${ye.componentCls}-container`]:{position:"relative",transition:`opacity ${ye.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:ye.colorBgContainer,opacity:0,transition:`all ${ye.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${ye.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none",["&::after"]:{opacity:.4,pointerEvents:"auto"}}},["&-tip"]:{color:ye.spinDotDefault},[`${ye.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:ye.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(ye.dotSize-ye.marginXXS/2)/2,height:(ye.dotSize-ye.marginXXS/2)/2,backgroundColor:ye.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:j,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:re,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${ye.componentCls}-dot`]:{fontSize:ye.dotSizeSM,i:{width:(ye.dotSizeSM-ye.marginXXS/2)/2,height:(ye.dotSizeSM-ye.marginXXS/2)/2}},[`&-lg ${ye.componentCls}-dot`]:{fontSize:ye.dotSizeLG,i:{width:(ye.dotSizeLG-ye.marginXXS)/2,height:(ye.dotSizeLG-ye.marginXXS)/2}},[`&${ye.componentCls}-show-text ${ye.componentCls}-text`]:{display:"block"}})});var ie=(0,S.Z)("Spin",ye=>{const xe=(0,P.TS)(ye,{spinDotDefault:ye.colorTextDescription});return[J(xe)]},ye=>({contentHeight:400,dotSize:ye.controlHeightLG/2,dotSizeSM:ye.controlHeightLG*.35,dotSizeLG:ye.controlHeight})),de=function(ye,xe){var be={};for(var Ie in ye)Object.prototype.hasOwnProperty.call(ye,Ie)&&xe.indexOf(Ie)<0&&(be[Ie]=ye[Ie]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,Ie=Object.getOwnPropertySymbols(ye);me{const{spinPrefixCls:xe,spinning:be=!0,delay:Ie=0,className:me,rootClassName:We,size:Ce="default",tip:Pt,wrapperClassName:ct,style:Ue,children:bt,hashId:ht}=ye,Bt=de(ye,["spinPrefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","hashId"]),[mt,_n]=y.useState(()=>be&&!we(be,Ie));y.useEffect(()=>{if(be){const ss=N(Ie,()=>{_n(!0)});return ss(),()=>{var ve;(ve=ss==null?void 0:ss.cancel)===null||ve===void 0||ve.call(ss)}}_n(!1)},[Ie,be]);const Bn=y.useMemo(()=>typeof bt!="undefined",[bt]),{direction:Er,spin:Yr}=y.useContext(I.E_),oi=b()(xe,Yr==null?void 0:Yr.className,{[`${xe}-sm`]:Ce==="small",[`${xe}-lg`]:Ce==="large",[`${xe}-spinning`]:mt,[`${xe}-show-text`]:!!Pt,[`${xe}-rtl`]:Er==="rtl"},me,We,ht),to=b()(`${xe}-container`,{[`${xe}-blur`]:mt}),yo=(0,z.Z)(Bt,["indicator","prefixCls"]),vr=Object.assign(Object.assign({},Yr==null?void 0:Yr.style),Ue),Po=y.createElement("div",Object.assign({},yo,{style:vr,className:oi,"aria-live":"polite","aria-busy":mt}),ke(xe,ye),Pt&&Bn?y.createElement("div",{className:`${xe}-text`},Pt):null);return Bn?y.createElement("div",Object.assign({},yo,{className:b()(`${xe}-nested-loading`,ct,ht)}),mt&&y.createElement("div",{key:"loading"},Po),y.createElement("div",{className:to,key:"container"},bt)):Po},Ee=ye=>{const{prefixCls:xe}=ye,{getPrefixCls:be}=y.useContext(I.E_),Ie=be("spin",xe),[me,We]=ie(Ie),Ce=Object.assign(Object.assign({},ye),{spinPrefixCls:Ie,hashId:We});return me(y.createElement(Ne,Object.assign({},Ce)))};Ee.setDefaultIndicator=ye=>{fe=ye};var ge=Ee},80110:function(nt,V,m){"use strict";m.d(V,{c:function(){return b}});function y(z,k,N){const{focusElCls:w,focus:I,borderElCls:C}=N,f=C?"> *":"",S=["hover",I?"focus":null,"active"].filter(Boolean).map(P=>`&:${P} ${f}`).join(",");return{[`&-item:not(${k}-last-item)`]:{marginInlineEnd:-z.lineWidth},"&-item":Object.assign(Object.assign({[S]:{zIndex:2}},w?{[`&${w}`]:{zIndex:2}}:{}),{[`&[disabled] ${f}`]:{zIndex:0}})}}function A(z,k,N){const{borderElCls:w}=N,I=w?`> ${w}`:"";return{[`&-item:not(${k}-first-item):not(${k}-last-item) ${I}`]:{borderRadius:0},[`&-item:not(${k}-last-item)${k}-first-item`]:{[`& ${I}, &${z}-sm ${I}, &${z}-lg ${I}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${k}-first-item)${k}-last-item`]:{[`& ${I}, &${z}-sm ${I}, &${z}-lg ${I}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function b(z){let k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:N}=z,w=`${N}-compact`;return{[w]:Object.assign(Object.assign({},y(z,w,k)),A(N,w,k))}}},14747:function(nt,V,m){"use strict";m.d(V,{Lx:function(){return k},Qy:function(){return I},Ro:function(){return b},Wf:function(){return A},dF:function(){return z},du:function(){return N},oN:function(){return w},vS:function(){return y}});const y={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},A=function(C){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:C.colorText,fontSize:C.fontSize,lineHeight:C.lineHeight,listStyle:"none",fontFamily:f?"inherit":C.fontFamily}},b=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),z=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),k=C=>({a:{color:C.colorLink,textDecoration:C.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${C.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:C.colorLinkHover},"&:active":{color:C.colorLinkActive},[`&:active, - &:hover`]:{textDecoration:C.linkHoverDecoration,outline:0},"&:focus":{textDecoration:C.linkFocusDecoration,outline:0},"&[disabled]":{color:C.colorTextDisabled,cursor:"not-allowed"}}}),N=(C,f)=>{const{fontFamily:S,fontSize:P}=C,j=`[class^="${f}"], [class*=" ${f}"]`;return{[j]:{fontFamily:S,fontSize:P,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[j]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},w=C=>({outline:`${C.lineWidthFocus}px solid ${C.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),I=C=>({"&:focus-visible":Object.assign({},w(C))})},33507:function(nt,V){"use strict";const m=y=>({[y.componentCls]:{[`${y.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${y.motionDurationMid} ${y.motionEaseInOut}, + `]:{paddingInlineEnd:me},[`&${ye}-open ${ye}-selection-item`]:{color:De.colorTextPlaceholder},[`&:not(${ye}-customize-input)`]:{[`${ye}-selector`]:{width:"100%",height:"100%",padding:`0 ${we}px`,[`${ye}-selection-search-input`]:{height:Ae},"&:after":{lineHeight:`${Ae}px`}}},[`&${ye}-customize-input`]:{[`${ye}-selector`]:{"&:after":{display:"none"},[`${ye}-selection-search`]:{position:"static",width:"100%"},[`${ye}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${we}px`,"&:after":{display:"none"}}}}}}}function ce(De){const{componentCls:ve}=De,ye=De.controlPaddingHorizontalSM-De.lineWidth;return[re(De),re((0,b.TS)(De,{controlHeight:De.controlHeightSM,borderRadius:De.borderRadiusSM}),"sm"),{[`${ve}-single${ve}-sm`]:{[`&:not(${ve}-customize-input)`]:{[`${ve}-selection-search`]:{insetInlineStart:ye,insetInlineEnd:ye},[`${ve}-selector`]:{padding:`0 ${ye}px`},[`&${ve}-show-arrow ${ve}-selection-search`]:{insetInlineEnd:ye+De.fontSize*1.5},[` + &${ve}-show-arrow ${ve}-selection-item, + &${ve}-show-arrow ${ve}-selection-placeholder + `]:{paddingInlineEnd:De.fontSize*1.5}}}},re((0,b.TS)(De,{controlHeight:De.singleItemHeightLG,fontSize:De.fontSizeLG,borderRadius:De.borderRadiusLG}),"lg")]}const pe=De=>{const{componentCls:ve,selectorBg:ye}=De;return{position:"relative",backgroundColor:ye,border:`${De.lineWidth}px ${De.lineType} ${De.colorBorder}`,transition:`all ${De.motionDurationMid} ${De.motionEaseInOut}`,input:{cursor:"pointer"},[`${ve}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${ve}-disabled&`]:{color:De.colorTextDisabled,background:De.colorBgContainerDisabled,cursor:"not-allowed",[`${ve}-multiple&`]:{background:De.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},he=function(De,ve){let ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:we,borderHoverColor:Ce,antCls:Ae,borderActiveColor:me,outlineColor:je,controlOutlineWidth:xe}=ve,Pt=ye?{[`${we}-selector`]:{borderColor:me}}:{};return{[De]:{[`&:not(${we}-disabled):not(${we}-customize-input):not(${Ae}-pagination-size-changer)`]:Object.assign(Object.assign({},Pt),{[`&:hover ${we}-selector`]:{borderColor:Ce},[`${we}-focused& ${we}-selector`]:{borderColor:me,boxShadow:`0 0 0 ${xe}px ${je}`,outline:0}})}}},fe=De=>{const{componentCls:ve}=De;return{[`${ve}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},Be=De=>{const{antCls:ve,componentCls:ye,inputPaddingHorizontalBase:we,iconCls:Ce}=De;return{[ye]:Object.assign(Object.assign({},(0,y.Wf)(De)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${ye}-customize-input) ${ye}-selector`]:Object.assign(Object.assign({},pe(De)),fe(De)),[`${ye}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},y.vS),{[`> ${ve}-typography`]:{display:"inline"}}),[`${ye}-selection-placeholder`]:Object.assign(Object.assign({},y.vS),{flex:1,color:De.colorTextPlaceholder,pointerEvents:"none"}),[`${ye}-arrow`]:Object.assign(Object.assign({},(0,y.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:we,height:De.fontSizeIcon,marginTop:-De.fontSizeIcon/2,color:De.colorTextQuaternary,fontSize:De.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[Ce]:{verticalAlign:"top",transition:`transform ${De.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${ye}-suffix)`]:{pointerEvents:"auto"}},[`${ye}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${ye}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:we,zIndex:1,display:"inline-block",width:De.fontSizeIcon,height:De.fontSizeIcon,marginTop:-De.fontSizeIcon/2,color:De.colorTextQuaternary,fontSize:De.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:De.clearBg,cursor:"pointer",opacity:0,transition:`color ${De.motionDurationMid} ease, opacity ${De.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:De.colorTextTertiary}},"&:hover":{[`${ye}-clear`]:{opacity:1}}}),[`${ye}-has-feedback`]:{[`${ye}-clear`]:{insetInlineEnd:we+De.fontSize+De.paddingXS}}}},Ie=De=>{const{componentCls:ve}=De;return[{[ve]:{[`&-borderless ${ve}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${ve}-in-form-item`]:{width:"100%"}}},Be(De),ce(De),ne(De),C(De),{[`${ve}-rtl`]:{direction:"rtl"}},he(ve,(0,b.TS)(De,{borderHoverColor:De.colorPrimaryHover,borderActiveColor:De.colorPrimary,outlineColor:De.controlOutline})),he(`${ve}-status-error`,(0,b.TS)(De,{borderHoverColor:De.colorErrorHover,borderActiveColor:De.colorError,outlineColor:De.colorErrorOutline}),!0),he(`${ve}-status-warning`,(0,b.TS)(De,{borderHoverColor:De.colorWarningHover,borderActiveColor:De.colorWarning,outlineColor:De.colorWarningOutline}),!0),(0,I.c)(De,{borderElCls:`${ve}-selector`,focusElCls:`${ve}-focused`})]};var We=(0,z.Z)("Select",(De,ve)=>{let{rootPrefixCls:ye}=ve;const we=(0,b.TS)(De,{rootPrefixCls:ye,inputPaddingHorizontalBase:De.paddingSM-1,multipleSelectItemHeight:De.multipleItemHeight,selectHeight:De.controlHeight});return[Ie(we)]},De=>{const{fontSize:ve,lineHeight:ye,controlHeight:we,controlPaddingHorizontal:Ce,zIndexPopupBase:Ae,colorText:me,fontWeightStrong:je,controlItemBgActive:xe,controlItemBgHover:Pt,colorBgContainer:ct,colorFillSecondary:He,controlHeightLG:wt,controlHeightSM:dt,colorBgContainerDisabled:Bt,colorTextDisabled:gt}=De;return{zIndexPopup:Ae+50,optionSelectedColor:me,optionSelectedFontWeight:je,optionSelectedBg:xe,optionActiveBg:Pt,optionPadding:`${(we-ve*ye)/2}px ${Ce}px`,optionFontSize:ve,optionLineHeight:ye,optionHeight:we,selectorBg:ct,clearBg:ct,singleItemHeightLG:wt,multipleItemBg:He,multipleItemBorderColor:"transparent",multipleItemHeight:dt,multipleItemHeightLG:we,multipleSelectorBgDisabled:Bt,multipleItemColorDisabled:gt,multipleItemBorderColorDisabled:"transparent"}})},5998:function(nt,V,m){"use strict";m.d(V,{Z:function(){return I}});const y=b=>{const k={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:b==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},k),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},k),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},k),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},k),{points:["br","tr"],offset:[0,-4]})}};function I(b,z){return b||y(z)}},86755:function(nt,V,m){"use strict";m.d(V,{Z:function(){return A}});var y=m(77617),I=m(75769),b=m(48796),z=m(49934),k=m(42884),N=m(38521),w=m(46820);function A(C){let{suffixIcon:f,clearIcon:S,menuItemSelectedIcon:P,removeIcon:W,loading:ne,multiple:re,hasFeedback:ce,prefixCls:pe,showSuffixIcon:he,feedbackIcon:fe,showArrow:Be,componentName:Ie}=C;const We=S!=null?S:y.createElement(b.Z,null),De=Ce=>f===null&&!ce&&!Be?null:y.createElement(y.Fragment,null,he!==!1&&Ce,ce&&fe);let ve=null;if(f!==void 0)ve=De(f);else if(ne)ve=De(y.createElement(N.Z,{spin:!0}));else{const Ce=`${pe}-suffix`;ve=Ae=>{let{open:me,showSearch:je}=Ae;return De(me&&je?y.createElement(w.Z,{className:Ce}):y.createElement(k.Z,{className:Ce}))}}let ye=null;P!==void 0?ye=P:re?ye=y.createElement(I.Z,null):ye=null;let we=null;return W!==void 0?we=W:we=y.createElement(z.Z,null),{clearIcon:We,suffixIcon:ve,itemIcon:ye,removeIcon:we}}},20446:function(nt,V,m){"use strict";m.d(V,{Z:function(){return y}});function y(I,b){return b!==void 0?b:I!==null}},58370:function(nt,V,m){"use strict";m.d(V,{BR:function(){return S},ri:function(){return f}});var y=m(12124),I=m.n(y),b=m(38930),z=m(77617),k=m(67392),N=m(21843),w=m(23268),A=function(ne,re){var ce={};for(var pe in ne)Object.prototype.hasOwnProperty.call(ne,pe)&&re.indexOf(pe)<0&&(ce[pe]=ne[pe]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,pe=Object.getOwnPropertySymbols(ne);he{const ce=z.useContext(C),pe=z.useMemo(()=>{if(!ce)return"";const{compactDirection:he,isFirstItem:fe,isLastItem:Be}=ce,Ie=he==="vertical"?"-vertical-":"-";return I()(`${ne}-compact${Ie}item`,{[`${ne}-compact${Ie}first-item`]:fe,[`${ne}-compact${Ie}last-item`]:Be,[`${ne}-compact${Ie}item-rtl`]:re==="rtl"})},[ne,re,ce]);return{compactSize:ce==null?void 0:ce.compactSize,compactDirection:ce==null?void 0:ce.compactDirection,compactItemClassnames:pe}},S=ne=>{let{children:re}=ne;return z.createElement(C.Provider,{value:null},re)},P=ne=>{var{children:re}=ne,ce=A(ne,["children"]);return z.createElement(C.Provider,{value:ce},re)},W=ne=>{const{getPrefixCls:re,direction:ce}=z.useContext(k.E_),{size:pe,direction:he,block:fe,prefixCls:Be,className:Ie,rootClassName:We,children:De}=ne,ve=A(ne,["size","direction","block","prefixCls","className","rootClassName","children"]),ye=(0,N.Z)(ct=>pe!=null?pe:ct),we=re("space-compact",Be),[Ce,Ae]=(0,w.Z)(we),me=I()(we,Ae,{[`${we}-rtl`]:ce==="rtl",[`${we}-block`]:fe,[`${we}-vertical`]:he==="vertical"},Ie,We),je=z.useContext(C),xe=(0,b.Z)(De),Pt=z.useMemo(()=>xe.map((ct,He)=>{const wt=ct&&ct.key||`${we}-item-${He}`;return z.createElement(P,{key:wt,compactSize:ye,compactDirection:he,isFirstItem:He===0&&(!je||(je==null?void 0:je.isFirstItem)),isLastItem:He===xe.length-1&&(!je||(je==null?void 0:je.isLastItem))},ct)}),[pe,xe,je]);return xe.length===0?null:Ce(z.createElement("div",Object.assign({className:me},ve),Pt))};V.ZP=W},31045:function(nt,V,m){"use strict";m.d(V,{Z:function(){return pe}});var y=m(77617),I=m(12124),b=m.n(I),z=m(38930);function k(he){return["small","middle","large"].includes(he)}function N(he){return he?typeof he=="number"&&!Number.isNaN(he):!1}var w=m(67392),A=m(58370);const C=y.createContext({latestIndex:0}),f=C.Provider;var P=he=>{let{className:fe,index:Be,children:Ie,split:We,style:De}=he;const{latestIndex:ve}=y.useContext(C);return Ie==null?null:y.createElement(y.Fragment,null,y.createElement("div",{className:fe,style:De},Ie),Be{var Be,Ie;const{getPrefixCls:We,space:De,direction:ve}=y.useContext(w.E_),{size:ye=(De==null?void 0:De.size)||"small",align:we,className:Ce,rootClassName:Ae,children:me,direction:je="horizontal",prefixCls:xe,split:Pt,style:ct,wrap:He=!1,classNames:wt,styles:dt}=he,Bt=ne(he,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[gt,_n]=Array.isArray(ye)?ye:[ye,ye],Bn=k(_n),Er=k(gt),Yr=N(_n),oi=N(gt),to=(0,z.Z)(me,{keepEmpty:!0}),yo=we===void 0&&je==="horizontal"?"center":we,yr=We("space",xe),[Po,as]=(0,W.Z)(yr),ge=b()(yr,De==null?void 0:De.className,as,`${yr}-${je}`,{[`${yr}-rtl`]:ve==="rtl",[`${yr}-align-${yo}`]:yo,[`${yr}-gap-row-${_n}`]:Bn,[`${yr}-gap-col-${gt}`]:Er},Ce,Ae),_o=b()(`${yr}-item`,(Be=wt==null?void 0:wt.item)!==null&&Be!==void 0?Be:(Ie=De==null?void 0:De.classNames)===null||Ie===void 0?void 0:Ie.item);let ci=0;const Bi=to.map((ln,Ve)=>{var _t,xt;ln!=null&&(ci=Ve);const Wt=ln&&ln.key||`${_o}-${Ve}`;return y.createElement(P,{className:_o,key:Wt,index:Ve,split:Pt,style:(_t=dt==null?void 0:dt.item)!==null&&_t!==void 0?_t:(xt=De==null?void 0:De.styles)===null||xt===void 0?void 0:xt.item},ln)}),Ci=y.useMemo(()=>({latestIndex:ci}),[ci]);if(to.length===0)return null;const io={};return He&&(io.flexWrap="wrap"),!Er&&oi&&(io.columnGap=gt),!Bn&&Yr&&(io.rowGap=_n),Po(y.createElement("div",Object.assign({ref:fe,className:ge,style:Object.assign(Object.assign(Object.assign({},io),De==null?void 0:De.style),ct)},Bt),y.createElement(f,{value:Ci},Bi)))});ce.Compact=A.ZP;var pe=ce},23268:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(24577),I=m(41788),z=A=>{const{componentCls:C}=A;return{[C]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}};const k=A=>{const{componentCls:C}=A;return{[C]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${C}-item:empty`]:{display:"none"}}}},N=A=>{const{componentCls:C}=A;return{[C]:{"&-gap-row-small":{rowGap:A.spaceGapSmallSize},"&-gap-row-middle":{rowGap:A.spaceGapMiddleSize},"&-gap-row-large":{rowGap:A.spaceGapLargeSize},"&-gap-col-small":{columnGap:A.spaceGapSmallSize},"&-gap-col-middle":{columnGap:A.spaceGapMiddleSize},"&-gap-col-large":{columnGap:A.spaceGapLargeSize}}}};var w=(0,y.Z)("Space",A=>{const C=(0,I.TS)(A,{spaceGapSmallSize:A.paddingXS,spaceGapMiddleSize:A.padding,spaceGapLargeSize:A.paddingLG});return[k(C),N(C),z(C)]},()=>({}),{resetStyle:!1})},63732:function(nt,V,m){"use strict";m.d(V,{Z:function(){return ve}});var y=m(77617),I=m(12124),b=m.n(I),z=m(39029);function k(ye,we,Ce){var Ae=Ce||{},me=Ae.noTrailing,je=me===void 0?!1:me,xe=Ae.noLeading,Pt=xe===void 0?!1:xe,ct=Ae.debounceMode,He=ct===void 0?void 0:ct,wt,dt=!1,Bt=0;function gt(){wt&&clearTimeout(wt)}function _n(Er){var Yr=Er||{},oi=Yr.upcomingOnly,to=oi===void 0?!1:oi;gt(),dt=!to}function Bn(){for(var Er=arguments.length,Yr=new Array(Er),oi=0;oiye?Pt?(Bt=Date.now(),je||(wt=setTimeout(He?Po:yr,ye))):yr():je!==!0&&(wt=setTimeout(He?Po:yr,He===void 0?ye-yo:ye))}return Bn.cancel=_n,Bn}function N(ye,we,Ce){var Ae=Ce||{},me=Ae.atBegin,je=me===void 0?!1:me;return k(ye,we,{debounceMode:je!==!1})}var w=m(99486),A=m(67392),C=m(84608),f=m(92068),S=m(24577),P=m(41788);const W=new C.E4("antSpinMove",{to:{opacity:1}}),ne=new C.E4("antRotate",{to:{transform:"rotate(405deg)"}}),re=ye=>({[`${ye.componentCls}`]:Object.assign(Object.assign({},(0,f.Wf)(ye)),{position:"absolute",display:"none",color:ye.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${ye.motionDurationSlow} ${ye.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":{position:"relative",[`> div > ${ye.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:ye.contentHeight,[`${ye.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-ye.dotSize/2},[`${ye.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",paddingTop:(ye.dotSize-ye.fontSize)/2+2,textShadow:`0 1px 2px ${ye.colorBgContainer}`,fontSize:ye.fontSize},[`&${ye.componentCls}-show-text ${ye.componentCls}-dot`]:{marginTop:-(ye.dotSize/2)-10},"&-sm":{[`${ye.componentCls}-dot`]:{margin:-ye.dotSizeSM/2},[`${ye.componentCls}-text`]:{paddingTop:(ye.dotSizeSM-ye.fontSize)/2+2},[`&${ye.componentCls}-show-text ${ye.componentCls}-dot`]:{marginTop:-(ye.dotSizeSM/2)-10}},"&-lg":{[`${ye.componentCls}-dot`]:{margin:-(ye.dotSizeLG/2)},[`${ye.componentCls}-text`]:{paddingTop:(ye.dotSizeLG-ye.fontSize)/2+2},[`&${ye.componentCls}-show-text ${ye.componentCls}-dot`]:{marginTop:-(ye.dotSizeLG/2)-10}}},[`${ye.componentCls}-container`]:{position:"relative",transition:`opacity ${ye.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:ye.colorBgContainer,opacity:0,transition:`all ${ye.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${ye.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none",["&::after"]:{opacity:.4,pointerEvents:"auto"}}},["&-tip"]:{color:ye.spinDotDefault},[`${ye.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:ye.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(ye.dotSize-ye.marginXXS/2)/2,height:(ye.dotSize-ye.marginXXS/2)/2,backgroundColor:ye.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:W,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:ne,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${ye.componentCls}-dot`]:{fontSize:ye.dotSizeSM,i:{width:(ye.dotSizeSM-ye.marginXXS/2)/2,height:(ye.dotSizeSM-ye.marginXXS/2)/2}},[`&-lg ${ye.componentCls}-dot`]:{fontSize:ye.dotSizeLG,i:{width:(ye.dotSizeLG-ye.marginXXS)/2,height:(ye.dotSizeLG-ye.marginXXS)/2}},[`&${ye.componentCls}-show-text ${ye.componentCls}-text`]:{display:"block"}})});var ce=(0,S.Z)("Spin",ye=>{const we=(0,P.TS)(ye,{spinDotDefault:ye.colorTextDescription});return[re(we)]},ye=>({contentHeight:400,dotSize:ye.controlHeightLG/2,dotSizeSM:ye.controlHeightLG*.35,dotSizeLG:ye.controlHeight})),pe=function(ye,we){var Ce={};for(var Ae in ye)Object.prototype.hasOwnProperty.call(ye,Ae)&&we.indexOf(Ae)<0&&(Ce[Ae]=ye[Ae]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,Ae=Object.getOwnPropertySymbols(ye);me{const{spinPrefixCls:we,spinning:Ce=!0,delay:Ae=0,className:me,rootClassName:je,size:xe="default",tip:Pt,wrapperClassName:ct,style:He,children:wt,hashId:dt}=ye,Bt=pe(ye,["spinPrefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","hashId"]),[gt,_n]=y.useState(()=>Ce&&!Ie(Ce,Ae));y.useEffect(()=>{if(Ce){const as=N(Ae,()=>{_n(!0)});return as(),()=>{var ge;(ge=as==null?void 0:as.cancel)===null||ge===void 0||ge.call(as)}}_n(!1)},[Ae,Ce]);const Bn=y.useMemo(()=>typeof wt!="undefined",[wt]),{direction:Er,spin:Yr}=y.useContext(A.E_),oi=b()(we,Yr==null?void 0:Yr.className,{[`${we}-sm`]:xe==="small",[`${we}-lg`]:xe==="large",[`${we}-spinning`]:gt,[`${we}-show-text`]:!!Pt,[`${we}-rtl`]:Er==="rtl"},me,je,dt),to=b()(`${we}-container`,{[`${we}-blur`]:gt}),yo=(0,z.Z)(Bt,["indicator","prefixCls"]),yr=Object.assign(Object.assign({},Yr==null?void 0:Yr.style),He),Po=y.createElement("div",Object.assign({},yo,{style:yr,className:oi,"aria-live":"polite","aria-busy":gt}),Be(we,ye),Pt&&Bn?y.createElement("div",{className:`${we}-text`},Pt):null);return Bn?y.createElement("div",Object.assign({},yo,{className:b()(`${we}-nested-loading`,ct,dt)}),gt&&y.createElement("div",{key:"loading"},Po),y.createElement("div",{className:to,key:"container"},wt)):Po},De=ye=>{const{prefixCls:we}=ye,{getPrefixCls:Ce}=y.useContext(A.E_),Ae=Ce("spin",we),[me,je]=ce(Ae),xe=Object.assign(Object.assign({},ye),{spinPrefixCls:Ae,hashId:je});return me(y.createElement(We,Object.assign({},xe)))};De.setDefaultIndicator=ye=>{fe=ye};var ve=De},73973:function(nt,V,m){"use strict";m.d(V,{c:function(){return b}});function y(z,k,N){const{focusElCls:w,focus:A,borderElCls:C}=N,f=C?"> *":"",S=["hover",A?"focus":null,"active"].filter(Boolean).map(P=>`&:${P} ${f}`).join(",");return{[`&-item:not(${k}-last-item)`]:{marginInlineEnd:-z.lineWidth},"&-item":Object.assign(Object.assign({[S]:{zIndex:2}},w?{[`&${w}`]:{zIndex:2}}:{}),{[`&[disabled] ${f}`]:{zIndex:0}})}}function I(z,k,N){const{borderElCls:w}=N,A=w?`> ${w}`:"";return{[`&-item:not(${k}-first-item):not(${k}-last-item) ${A}`]:{borderRadius:0},[`&-item:not(${k}-last-item)${k}-first-item`]:{[`& ${A}, &${z}-sm ${A}, &${z}-lg ${A}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${k}-first-item)${k}-last-item`]:{[`& ${A}, &${z}-sm ${A}, &${z}-lg ${A}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function b(z){let k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:N}=z,w=`${N}-compact`;return{[w]:Object.assign(Object.assign({},y(z,w,k)),I(N,w,k))}}},92068:function(nt,V,m){"use strict";m.d(V,{Lx:function(){return k},Qy:function(){return A},Ro:function(){return b},Wf:function(){return I},dF:function(){return z},du:function(){return N},oN:function(){return w},vS:function(){return y}});const y={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},I=function(C){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:C.colorText,fontSize:C.fontSize,lineHeight:C.lineHeight,listStyle:"none",fontFamily:f?"inherit":C.fontFamily}},b=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),z=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),k=C=>({a:{color:C.colorLink,textDecoration:C.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${C.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:C.colorLinkHover},"&:active":{color:C.colorLinkActive},[`&:active, + &:hover`]:{textDecoration:C.linkHoverDecoration,outline:0},"&:focus":{textDecoration:C.linkFocusDecoration,outline:0},"&[disabled]":{color:C.colorTextDisabled,cursor:"not-allowed"}}}),N=(C,f)=>{const{fontFamily:S,fontSize:P}=C,W=`[class^="${f}"], [class*=" ${f}"]`;return{[W]:{fontFamily:S,fontSize:P,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[W]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},w=C=>({outline:`${C.lineWidthFocus}px solid ${C.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),A=C=>({"&:focus-visible":Object.assign({},w(C))})},53710:function(nt,V){"use strict";const m=y=>({[y.componentCls]:{[`${y.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${y.motionDurationMid} ${y.motionEaseInOut}, opacity ${y.motionDurationMid} ${y.motionEaseInOut} !important`}},[`${y.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${y.motionDurationMid} ${y.motionEaseInOut}, - opacity ${y.motionDurationMid} ${y.motionEaseInOut} !important`}}});V.Z=m},16932:function(nt,V,m){"use strict";m.d(V,{J$:function(){return k}});var y=m(85731),A=m(93590);const b=new y.E4("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),z=new y.E4("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),k=function(N){let w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:I}=N,C=`${I}-fade`,f=w?"&":"";return[(0,A.R)(C,b,z,N.motionDurationMid,w),{[` + opacity ${y.motionDurationMid} ${y.motionEaseInOut} !important`}}});V.Z=m},42402:function(nt,V,m){"use strict";m.d(V,{J$:function(){return k}});var y=m(84608),I=m(73661);const b=new y.E4("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),z=new y.E4("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),k=function(N){let w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:A}=N,C=`${A}-fade`,f=w?"&":"";return[(0,I.R)(C,b,z,N.motionDurationMid,w),{[` ${f}${C}-enter, ${f}${C}-appear - `]:{opacity:0,animationTimingFunction:"linear"},[`${f}${C}-leave`]:{animationTimingFunction:"linear"}}]}},93590:function(nt,V,m){"use strict";m.d(V,{R:function(){return b}});const y=z=>({animationDuration:z,animationFillMode:"both"}),A=z=>({animationDuration:z,animationFillMode:"both"}),b=function(z,k,N,w){const C=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` + `]:{opacity:0,animationTimingFunction:"linear"},[`${f}${C}-leave`]:{animationTimingFunction:"linear"}}]}},73661:function(nt,V,m){"use strict";m.d(V,{R:function(){return b}});const y=z=>({animationDuration:z,animationFillMode:"both"}),I=z=>({animationDuration:z,animationFillMode:"both"}),b=function(z,k,N,w){const C=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` ${C}${z}-enter, ${C}${z}-appear - `]:Object.assign(Object.assign({},y(w)),{animationPlayState:"paused"}),[`${C}${z}-leave`]:Object.assign(Object.assign({},A(w)),{animationPlayState:"paused"}),[` + `]:Object.assign(Object.assign({},y(w)),{animationPlayState:"paused"}),[`${C}${z}-leave`]:Object.assign(Object.assign({},I(w)),{animationPlayState:"paused"}),[` ${C}${z}-enter${z}-enter-active, ${C}${z}-appear${z}-appear-active - `]:{animationName:k,animationPlayState:"running"},[`${C}${z}-leave${z}-leave-active`]:{animationName:N,animationPlayState:"running",pointerEvents:"none"}}}},33297:function(nt,V,m){"use strict";m.d(V,{Fm:function(){return P}});var y=m(85731),A=m(93590);const b=new y.E4("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),z=new y.E4("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),k=new y.E4("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),N=new y.E4("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),w=new y.E4("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),I=new y.E4("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),C=new y.E4("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),f=new y.E4("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),S={"move-up":{inKeyframes:C,outKeyframes:f},"move-down":{inKeyframes:b,outKeyframes:z},"move-left":{inKeyframes:k,outKeyframes:N},"move-right":{inKeyframes:w,outKeyframes:I}},P=(j,re)=>{const{antCls:J}=j,ie=`${J}-${re}`,{inKeyframes:de,outKeyframes:he}=S[re];return[(0,A.R)(ie,de,he,j.motionDurationMid),{[` - ${ie}-enter, - ${ie}-appear - `]:{opacity:0,animationTimingFunction:j.motionEaseOutCirc},[`${ie}-leave`]:{animationTimingFunction:j.motionEaseInOutCirc}}]}},67771:function(nt,V,m){"use strict";m.d(V,{Qt:function(){return k},Uw:function(){return z},fJ:function(){return b},ly:function(){return N},oN:function(){return P}});var y=m(85731),A=m(93590);const b=new y.E4("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),z=new y.E4("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),k=new y.E4("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),N=new y.E4("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),w=new y.E4("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),I=new y.E4("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),C=new y.E4("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),f=new y.E4("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),S={"slide-up":{inKeyframes:b,outKeyframes:z},"slide-down":{inKeyframes:k,outKeyframes:N},"slide-left":{inKeyframes:w,outKeyframes:I},"slide-right":{inKeyframes:C,outKeyframes:f}},P=(j,re)=>{const{antCls:J}=j,ie=`${J}-${re}`,{inKeyframes:de,outKeyframes:he}=S[re];return[(0,A.R)(ie,de,he,j.motionDurationMid),{[` - ${ie}-enter, - ${ie}-appear - `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:j.motionEaseOutQuint,["&-prepare"]:{transform:"scale(1)"}},[`${ie}-leave`]:{animationTimingFunction:j.motionEaseInQuint}}]}},50438:function(nt,V,m){"use strict";m.d(V,{_y:function(){return ie},kr:function(){return b}});var y=m(85731),A=m(93590);const b=new y.E4("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),z=new y.E4("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),k=new y.E4("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),N=new y.E4("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),w=new y.E4("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),I=new y.E4("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),C=new y.E4("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),f=new y.E4("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),S=new y.E4("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),P=new y.E4("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),j=new y.E4("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),re=new y.E4("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),J={zoom:{inKeyframes:b,outKeyframes:z},"zoom-big":{inKeyframes:k,outKeyframes:N},"zoom-big-fast":{inKeyframes:k,outKeyframes:N},"zoom-left":{inKeyframes:C,outKeyframes:f},"zoom-right":{inKeyframes:S,outKeyframes:P},"zoom-up":{inKeyframes:w,outKeyframes:I},"zoom-down":{inKeyframes:j,outKeyframes:re}},ie=(de,he)=>{const{antCls:fe}=de,ke=`${fe}-${he}`,{inKeyframes:we,outKeyframes:Ne}=J[he];return[(0,A.R)(ke,we,Ne,he==="zoom-big-fast"?de.motionDurationFast:de.motionDurationMid),{[` - ${ke}-enter, - ${ke}-appear - `]:{transform:"scale(0)",opacity:0,animationTimingFunction:de.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${ke}-leave`]:{animationTimingFunction:de.motionEaseInOutCirc}}]}},49867:function(nt,V,m){"use strict";m.d(V,{N:function(){return y}});const y=A=>({color:A.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${A.motionDurationSlow}`,"&:focus, &:hover":{color:A.colorLinkHover},"&:active":{color:A.colorLinkActive}})},77786:function(nt,V,m){"use strict";m.d(V,{qN:function(){return A},ZP:function(){return k},fS:function(){return b}});const y=(N,w,I,C,f)=>{const S=N/2,P=0,j=S,re=I*1/Math.sqrt(2),J=S-I*(1-1/Math.sqrt(2)),ie=S-w*(1/Math.sqrt(2)),de=I*(Math.sqrt(2)-1)+w*(1/Math.sqrt(2)),he=2*S-ie,fe=de,ke=2*S-re,we=J,Ne=2*S-P,Ee=j,ge=S*Math.sqrt(2)+I*(Math.sqrt(2)-2),ye=I*(Math.sqrt(2)-1);return{pointerEvents:"none",width:N,height:N,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:N,height:N/2,background:C,clipPath:{_multi_value_:!0,value:[`polygon(${ye}px 100%, 50% ${ye}px, ${2*S-ye}px 100%, ${ye}px 100%)`,`path('M ${P} ${j} A ${I} ${I} 0 0 0 ${re} ${J} L ${ie} ${de} A ${w} ${w} 0 0 1 ${he} ${fe} L ${ke} ${we} A ${I} ${I} 0 0 0 ${Ne} ${Ee} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:ge,height:ge,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${w}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:f,zIndex:0,background:"transparent"}}},A=8;function b(N){const w=A,{contentRadius:I,limitVerticalRadius:C}=N,f=I>12?I+2:12;return{dropdownArrowOffset:f,dropdownArrowOffsetVertical:C?w:f}}function z(N,w){return N?w:{}}function k(N,w){const{componentCls:I,sizePopupArrow:C,borderRadiusXS:f,borderRadiusOuter:S,boxShadowPopoverArrow:P}=N,{colorBg:j,contentRadius:re=N.borderRadiusLG,limitVerticalRadius:J,arrowDistance:ie=0,arrowPlacement:de={left:!0,right:!0,top:!0,bottom:!0}}=w,{dropdownArrowOffsetVertical:he,dropdownArrowOffset:fe}=b({contentRadius:re,limitVerticalRadius:J});return{[I]:Object.assign(Object.assign(Object.assign(Object.assign({[`${I}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},y(C,f,S,j,P)),{"&:before":{background:j}})]},z(!!de.top,{[[`&-placement-top ${I}-arrow`,`&-placement-topLeft ${I}-arrow`,`&-placement-topRight ${I}-arrow`].join(",")]:{bottom:ie,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${I}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${I}-arrow`]:{left:{_skip_check_:!0,value:fe}},[`&-placement-topRight ${I}-arrow`]:{right:{_skip_check_:!0,value:fe}}})),z(!!de.bottom,{[[`&-placement-bottom ${I}-arrow`,`&-placement-bottomLeft ${I}-arrow`,`&-placement-bottomRight ${I}-arrow`].join(",")]:{top:ie,transform:"translateY(-100%)"},[`&-placement-bottom ${I}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${I}-arrow`]:{left:{_skip_check_:!0,value:fe}},[`&-placement-bottomRight ${I}-arrow`]:{right:{_skip_check_:!0,value:fe}}})),z(!!de.left,{[[`&-placement-left ${I}-arrow`,`&-placement-leftTop ${I}-arrow`,`&-placement-leftBottom ${I}-arrow`].join(",")]:{right:{_skip_check_:!0,value:ie},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${I}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${I}-arrow`]:{top:he},[`&-placement-leftBottom ${I}-arrow`]:{bottom:he}})),z(!!de.right,{[[`&-placement-right ${I}-arrow`,`&-placement-rightTop ${I}-arrow`,`&-placement-rightBottom ${I}-arrow`].join(",")]:{left:{_skip_check_:!0,value:ie},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${I}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${I}-arrow`]:{top:he},[`&-placement-rightBottom ${I}-arrow`]:{bottom:he}}))}}},72269:function(nt,V,m){"use strict";m.d(V,{Z:function(){return We}});var y=m(67294),A=m(22508),b=m(94184),z=m.n(b),k=m(87462),N=m(4942),w=m(97685),I=m(91),C=m(21770),f=m(15105),S=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],P=y.forwardRef(function(Ce,Pt){var ct,Ue=Ce.prefixCls,bt=Ue===void 0?"rc-switch":Ue,ht=Ce.className,Bt=Ce.checked,mt=Ce.defaultChecked,_n=Ce.disabled,Bn=Ce.loadingIcon,Er=Ce.checkedChildren,Yr=Ce.unCheckedChildren,oi=Ce.onClick,to=Ce.onChange,yo=Ce.onKeyDown,vr=(0,I.Z)(Ce,S),Po=(0,C.Z)(!1,{value:Bt,defaultValue:mt}),ss=(0,w.Z)(Po,2),ve=ss[0],_o=ss[1];function ci(ln,Ve){var _t=ve;return _n||(_t=ln,_o(_t),to==null||to(_t,Ve)),_t}function Bi(ln){ln.which===f.Z.LEFT?ci(!1,ln):ln.which===f.Z.RIGHT&&ci(!0,ln),yo==null||yo(ln)}function wi(ln){var Ve=ci(!ve,ln);oi==null||oi(Ve,ln)}var io=z()(bt,ht,(ct={},(0,N.Z)(ct,"".concat(bt,"-checked"),ve),(0,N.Z)(ct,"".concat(bt,"-disabled"),_n),ct));return y.createElement("button",(0,k.Z)({},vr,{type:"button",role:"switch","aria-checked":ve,disabled:_n,className:io,ref:Pt,onKeyDown:Bi,onClick:wi}),Bn,y.createElement("span",{className:"".concat(bt,"-inner")},y.createElement("span",{className:"".concat(bt,"-inner-checked")},Er),y.createElement("span",{className:"".concat(bt,"-inner-unchecked")},Yr)))});P.displayName="Switch";var j=P,re=m(45353),J=m(53124),ie=m(98866),de=m(98675),he=m(10274),fe=m(14747),ke=m(67968),we=m(45503);const Ne=Ce=>{const{componentCls:Pt,trackHeightSM:ct,trackPadding:Ue,trackMinWidthSM:bt,innerMinMarginSM:ht,innerMaxMarginSM:Bt,handleSizeSM:mt}=Ce,_n=`${Pt}-inner`;return{[Pt]:{[`&${Pt}-small`]:{minWidth:bt,height:ct,lineHeight:`${ct}px`,[`${Pt}-inner`]:{paddingInlineStart:Bt,paddingInlineEnd:ht,[`${_n}-checked`]:{marginInlineStart:`calc(-100% + ${mt+Ue*2}px - ${Bt*2}px)`,marginInlineEnd:`calc(100% - ${mt+Ue*2}px + ${Bt*2}px)`},[`${_n}-unchecked`]:{marginTop:-ct,marginInlineStart:0,marginInlineEnd:0}},[`${Pt}-handle`]:{width:mt,height:mt},[`${Pt}-loading-icon`]:{top:(mt-Ce.switchLoadingIconSize)/2,fontSize:Ce.switchLoadingIconSize},[`&${Pt}-checked`]:{[`${Pt}-inner`]:{paddingInlineStart:ht,paddingInlineEnd:Bt,[`${_n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${_n}-unchecked`]:{marginInlineStart:`calc(100% - ${mt+Ue*2}px + ${Bt*2}px)`,marginInlineEnd:`calc(-100% + ${mt+Ue*2}px - ${Bt*2}px)`}},[`${Pt}-handle`]:{insetInlineStart:`calc(100% - ${mt+Ue}px)`}},[`&:not(${Pt}-disabled):active`]:{[`&:not(${Pt}-checked) ${_n}`]:{[`${_n}-unchecked`]:{marginInlineStart:Ce.marginXXS/2,marginInlineEnd:-Ce.marginXXS/2}},[`&${Pt}-checked ${_n}`]:{[`${_n}-checked`]:{marginInlineStart:-Ce.marginXXS/2,marginInlineEnd:Ce.marginXXS/2}}}}}}},Ee=Ce=>{const{componentCls:Pt,handleSize:ct}=Ce;return{[Pt]:{[`${Pt}-loading-icon${Ce.iconCls}`]:{position:"relative",top:(ct-Ce.fontSize)/2,color:Ce.switchLoadingIconColor,verticalAlign:"top"},[`&${Pt}-checked ${Pt}-loading-icon`]:{color:Ce.switchColor}}}},ge=Ce=>{const{componentCls:Pt,motion:ct,trackPadding:Ue,handleBg:bt,handleShadow:ht,handleSize:Bt}=Ce,mt=`${Pt}-handle`;return{[Pt]:{[mt]:{position:"absolute",top:Ue,insetInlineStart:Ue,width:Bt,height:Bt,transition:`all ${Ce.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:bt,borderRadius:Bt/2,boxShadow:ht,transition:`all ${Ce.switchDuration} ease-in-out`,content:'""'}},[`&${Pt}-checked ${mt}`]:{insetInlineStart:`calc(100% - ${Bt+Ue}px)`},[`&:not(${Pt}-disabled):active`]:ct?{[`${mt}::before`]:{insetInlineEnd:Ce.switchHandleActiveInset,insetInlineStart:0},[`&${Pt}-checked ${mt}::before`]:{insetInlineEnd:0,insetInlineStart:Ce.switchHandleActiveInset}}:{}}}},ye=Ce=>{const{componentCls:Pt,trackHeight:ct,trackPadding:Ue,innerMinMargin:bt,innerMaxMargin:ht,handleSize:Bt}=Ce,mt=`${Pt}-inner`;return{[Pt]:{[mt]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:ht,paddingInlineEnd:bt,transition:`padding-inline-start ${Ce.switchDuration} ease-in-out, padding-inline-end ${Ce.switchDuration} ease-in-out`,[`${mt}-checked, ${mt}-unchecked`]:{display:"block",color:Ce.colorTextLightSolid,fontSize:Ce.fontSizeSM,transition:`margin-inline-start ${Ce.switchDuration} ease-in-out, margin-inline-end ${Ce.switchDuration} ease-in-out`,pointerEvents:"none"},[`${mt}-checked`]:{marginInlineStart:`calc(-100% + ${Bt+Ue*2}px - ${ht*2}px)`,marginInlineEnd:`calc(100% - ${Bt+Ue*2}px + ${ht*2}px)`},[`${mt}-unchecked`]:{marginTop:-ct,marginInlineStart:0,marginInlineEnd:0}},[`&${Pt}-checked ${mt}`]:{paddingInlineStart:bt,paddingInlineEnd:ht,[`${mt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${mt}-unchecked`]:{marginInlineStart:`calc(100% - ${Bt+Ue*2}px + ${ht*2}px)`,marginInlineEnd:`calc(-100% + ${Bt+Ue*2}px - ${ht*2}px)`}},[`&:not(${Pt}-disabled):active`]:{[`&:not(${Pt}-checked) ${mt}`]:{[`${mt}-unchecked`]:{marginInlineStart:Ue*2,marginInlineEnd:-Ue*2}},[`&${Pt}-checked ${mt}`]:{[`${mt}-checked`]:{marginInlineStart:-Ue*2,marginInlineEnd:Ue*2}}}}}},xe=Ce=>{const{componentCls:Pt,trackHeight:ct,trackMinWidth:Ue}=Ce;return{[Pt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,fe.Wf)(Ce)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Ue,height:ct,lineHeight:`${ct}px`,verticalAlign:"middle",background:Ce.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Ce.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Pt}-disabled)`]:{background:Ce.colorTextTertiary}}),(0,fe.Qy)(Ce)),{[`&${Pt}-checked`]:{background:Ce.switchColor,[`&:hover:not(${Pt}-disabled)`]:{background:Ce.colorPrimaryHover}},[`&${Pt}-loading, &${Pt}-disabled`]:{cursor:"not-allowed",opacity:Ce.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Pt}-rtl`]:{direction:"rtl"}})}};var be=(0,ke.Z)("Switch",Ce=>{const Pt=(0,we.TS)(Ce,{switchDuration:Ce.motionDurationMid,switchColor:Ce.colorPrimary,switchDisabledOpacity:Ce.opacityLoading,switchLoadingIconSize:Ce.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${Ce.opacityLoading})`,switchHandleActiveInset:"-30%"});return[xe(Pt),ye(Pt),ge(Pt),Ee(Pt),Ne(Pt)]},Ce=>{const{fontSize:Pt,lineHeight:ct,controlHeight:Ue,colorWhite:bt}=Ce,ht=Pt*ct,Bt=Ue/2,mt=2,_n=ht-mt*2,Bn=Bt-mt*2;return{trackHeight:ht,trackHeightSM:Bt,trackMinWidth:_n*2+mt*4,trackMinWidthSM:Bn*2+mt*2,trackPadding:mt,handleBg:bt,handleSize:_n,handleSizeSM:Bn,handleShadow:`0 2px 4px 0 ${new he.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:_n/2,innerMaxMargin:_n+mt+mt*2,innerMinMarginSM:Bn/2,innerMaxMarginSM:Bn+mt+mt*2}}),Ie=function(Ce,Pt){var ct={};for(var Ue in Ce)Object.prototype.hasOwnProperty.call(Ce,Ue)&&Pt.indexOf(Ue)<0&&(ct[Ue]=Ce[Ue]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,Ue=Object.getOwnPropertySymbols(Ce);bt{const{prefixCls:ct,size:Ue,disabled:bt,loading:ht,className:Bt,rootClassName:mt,style:_n}=Ce,Bn=Ie(Ce,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:Er,direction:Yr,switch:oi}=y.useContext(J.E_),to=y.useContext(ie.Z),yo=(bt!=null?bt:to)||ht,vr=Er("switch",ct),Po=y.createElement("div",{className:`${vr}-handle`},ht&&y.createElement(A.Z,{className:`${vr}-loading-icon`})),[ss,ve]=be(vr),_o=(0,de.Z)(Ue),ci=z()(oi==null?void 0:oi.className,{[`${vr}-small`]:_o==="small",[`${vr}-loading`]:ht,[`${vr}-rtl`]:Yr==="rtl"},Bt,mt,ve),Bi=Object.assign(Object.assign({},oi==null?void 0:oi.style),_n);return ss(y.createElement(re.Z,{component:"Switch"},y.createElement(j,Object.assign({},Bn,{prefixCls:vr,className:ci,style:Bi,disabled:yo,ref:Pt,loadingIcon:Po}))))});me.__ANT_SWITCH=!0;var We=me},11702:function(nt,V,m){"use strict";m.d(V,{Z:function(){return Ls}});var y={},A="rc-table-internal-hook",b=m(97685),z=m(66680),k=m(8410),N=m(91881),w=m(67294),I=m(73935);function C(Ye){var gt=w.createContext(void 0),Ft=function($t){var Gt=$t.value,Pr=$t.children,Tn=w.useRef(Gt);Tn.current=Gt;var Sn=w.useState(function(){return{getValue:function(){return Tn.current},listeners:new Set}}),cn=(0,b.Z)(Sn,1),qn=cn[0];return(0,k.Z)(function(){(0,I.unstable_batchedUpdates)(function(){qn.listeners.forEach(function(br){br(Gt)})})},[Gt]),w.createElement(gt.Provider,{value:qn},Pr)};return{Context:gt,Provider:Ft,defaultValue:Ye}}function f(Ye,gt){var Ft=(0,z.Z)(typeof gt=="function"?gt:function(br){if(gt===void 0)return br;if(!Array.isArray(gt))return br[gt];var So={};return gt.forEach(function(kt){So[kt]=br[kt]}),So}),Dt=w.useContext(Ye==null?void 0:Ye.Context),$t=Dt||{},Gt=$t.listeners,Pr=$t.getValue,Tn=w.useRef();Tn.current=Ft(Dt?Pr():Ye==null?void 0:Ye.defaultValue);var Sn=w.useState({}),cn=(0,b.Z)(Sn,2),qn=cn[1];return(0,k.Z)(function(){if(!Dt)return;function br(So){var kt=Ft(So);(0,N.Z)(Tn.current,kt,!0)||qn({})}return Gt.add(br),function(){Gt.delete(br)}},[Dt]),Tn.current}var S=m(87462),P=m(42550);function j(){var Ye=w.createContext(null);function gt(){return w.useContext(Ye)}function Ft($t,Gt){var Pr=(0,P.Yr)($t),Tn=function(cn,qn){var br=Pr?{ref:qn}:{},So=w.useRef(0),kt=w.useRef(cn),er=gt();return er!==null?w.createElement($t,(0,S.Z)({},cn,br)):((!Gt||Gt(kt.current,cn))&&(So.current+=1),kt.current=cn,w.createElement(Ye.Provider,{value:So.current},w.createElement($t,(0,S.Z)({},cn,br))))};return Pr?w.forwardRef(Tn):Tn}function Dt($t,Gt){var Pr=(0,P.Yr)($t),Tn=function(cn,qn){var br=Pr?{ref:qn}:{};return gt(),w.createElement($t,(0,S.Z)({},cn,br))};return Pr?w.memo(w.forwardRef(Tn),Gt):w.memo(Tn,Gt)}return{makeImmutable:Ft,responseImmutable:Dt,useImmutableMark:gt}}var re=j(),J=re.makeImmutable,ie=re.responseImmutable,de=re.useImmutableMark,he=j(),fe=he.makeImmutable,ke=he.responseImmutable,we=he.useImmutableMark,Ne=C(),Ee=Ne;function ge(Ye,gt){var Ft=w.useRef(0);Ft.current+=1;var Dt=w.useRef(Ye),$t=[];Object.keys(Ye||{}).map(function(Pr){var Tn;(Ye==null?void 0:Ye[Pr])!==((Tn=Dt.current)===null||Tn===void 0?void 0:Tn[Pr])&&$t.push(Pr)}),Dt.current=Ye;var Gt=w.useRef([]);return $t.length&&(Gt.current=$t),w.useDebugValue(Ft.current),w.useDebugValue(Gt.current.join(", ")),gt&&console.log("".concat(gt,":"),Ft.current,Gt.current),Ft.current}var ye=null,xe=w.memo(function(){var Ye=ge();return w.createElement("h1",null,"Render Times: ",Ye)});xe.displayName="RenderBlock";var be=m(71002),Ie=m(1413),me=m(4942),We=m(94184),Ce=m.n(We),Pt=m(56982),ct=m(88306),Ue=m(80334),bt=w.createContext({renderWithProps:!1}),ht=bt,Bt="RC_TABLE_KEY";function mt(Ye){return Ye==null?[]:Array.isArray(Ye)?Ye:[Ye]}function _n(Ye){var gt=[],Ft={};return Ye.forEach(function(Dt){for(var $t=Dt||{},Gt=$t.key,Pr=$t.dataIndex,Tn=Gt||mt(Pr).join("-")||Bt;Ft[Tn];)Tn="".concat(Tn,"_next");Ft[Tn]=!0,gt.push(Tn)}),gt}function Bn(Ye){return Ye!=null}function Er(Ye){return Ye&&(0,be.Z)(Ye)==="object"&&!Array.isArray(Ye)&&!w.isValidElement(Ye)}function Yr(Ye,gt,Ft,Dt,$t,Gt){var Pr=w.useContext(ht),Tn=we(),Sn=(0,Pt.Z)(function(){if(Bn(Dt))return[Dt];var cn=gt==null||gt===""?[]:Array.isArray(gt)?gt:[gt],qn=(0,ct.Z)(Ye,cn),br=qn,So=void 0;if($t){var kt=$t(qn,Ye,Ft);Er(kt)?(br=kt.children,So=kt.props,Pr.renderWithProps=!0):br=kt}return[br,So]},[Tn,Ye,Dt,gt,$t,Ft],function(cn,qn){if(Gt){var br=(0,b.Z)(cn,2),So=br[1],kt=(0,b.Z)(qn,2),er=kt[1];return Gt(er,So)}return Pr.renderWithProps?!0:!(0,N.Z)(cn,qn,!0)});return Sn}function oi(Ye,gt,Ft,Dt){var $t=Ye+gt-1;return Ye<=Dt&&$t>=Ft}function to(Ye,gt){return f(Ee,function(Ft){var Dt=oi(Ye,gt||1,Ft.hoverStartRow,Ft.hoverEndRow);return[Dt,Ft.onHover]})}var yo=function(gt){var Ft=gt.ellipsis,Dt=gt.rowType,$t=gt.children,Gt,Pr=Ft===!0?{showTitle:!0}:Ft;return Pr&&(Pr.showTitle||Dt==="header")&&(typeof $t=="string"||typeof $t=="number"?Gt=$t.toString():w.isValidElement($t)&&typeof $t.props.children=="string"&&(Gt=$t.props.children)),Gt};function vr(Ye){var gt,Ft,Dt,$t,Gt,Pr,Tn,Sn,cn=Ye.component,qn=Ye.children,br=Ye.ellipsis,So=Ye.scope,kt=Ye.prefixCls,er=Ye.className,An=Ye.align,rr=Ye.record,cr=Ye.render,Br=Ye.dataIndex,Ai=Ye.renderIndex,De=Ye.shouldCellUpdate,Zo=Ye.index,js=Ye.rowType,ba=Ye.colSpan,sa=Ye.rowSpan,Ps=Ye.fixLeft,ha=Ye.fixRight,To=Ye.firstFixLeft,ir=Ye.lastFixLeft,xi=Ye.firstFixRight,ji=Ye.lastFixRight,is=Ye.appendNode,Ds=Ye.additionalProps,aa=Ds===void 0?{}:Ds,Ho=Ye.isSticky,or="".concat(kt,"-cell"),eo=f(Ee,["supportSticky","allColumnsFixedLeft"]),vs=eo.supportSticky,ul=eo.allColumnsFixedLeft,Dl=Yr(rr,Br,Ai,qn,cr,De),Oa=(0,b.Z)(Dl,2),_s=Oa[0],wl=Oa[1],nl={},mc=typeof Ps=="number"&&vs,pl=typeof ha=="number"&&vs;mc&&(nl.position="sticky",nl.left=Ps),pl&&(nl.position="sticky",nl.right=ha);var ic=(gt=(Ft=(Dt=wl==null?void 0:wl.colSpan)!==null&&Dt!==void 0?Dt:aa.colSpan)!==null&&Ft!==void 0?Ft:ba)!==null&>!==void 0?gt:1,va=($t=(Gt=(Pr=wl==null?void 0:wl.rowSpan)!==null&&Pr!==void 0?Pr:aa.rowSpan)!==null&&Gt!==void 0?Gt:sa)!==null&&$t!==void 0?$t:1,qu=to(Zo,va),$l=(0,b.Z)(qu,2),su=$l[0],tu=$l[1],Gs=function(ei){var Li;rr&&tu(Zo,Zo+va-1),aa==null||(Li=aa.onMouseEnter)===null||Li===void 0||Li.call(aa,ei)},Kc=function(ei){var Li;rr&&tu(-1,-1),aa==null||(Li=aa.onMouseLeave)===null||Li===void 0||Li.call(aa,ei)};if(ic===0||va===0)return null;var Le=(Tn=aa.title)!==null&&Tn!==void 0?Tn:yo({rowType:js,ellipsis:br,children:_s}),Oe=Ce()(or,er,(Sn={},(0,me.Z)(Sn,"".concat(or,"-fix-left"),mc&&vs),(0,me.Z)(Sn,"".concat(or,"-fix-left-first"),To&&vs),(0,me.Z)(Sn,"".concat(or,"-fix-left-last"),ir&&vs),(0,me.Z)(Sn,"".concat(or,"-fix-left-all"),ir&&ul&&vs),(0,me.Z)(Sn,"".concat(or,"-fix-right"),pl&&vs),(0,me.Z)(Sn,"".concat(or,"-fix-right-first"),xi&&vs),(0,me.Z)(Sn,"".concat(or,"-fix-right-last"),ji&&vs),(0,me.Z)(Sn,"".concat(or,"-ellipsis"),br),(0,me.Z)(Sn,"".concat(or,"-with-append"),is),(0,me.Z)(Sn,"".concat(or,"-fix-sticky"),(mc||pl)&&Ho&&vs),(0,me.Z)(Sn,"".concat(or,"-row-hover"),!wl&&su),Sn),aa.className,wl==null?void 0:wl.className),et={};An&&(et.textAlign=An);var hn=(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},nl),aa.style),et),wl==null?void 0:wl.style),Lr=_s;return(0,be.Z)(Lr)==="object"&&!Array.isArray(Lr)&&!w.isValidElement(Lr)&&(Lr=null),br&&(ir||xi)&&(Lr=w.createElement("span",{className:"".concat(or,"-content")},Lr)),w.createElement(cn,(0,S.Z)({},wl,aa,{className:Oe,style:hn,title:Le,scope:So,onMouseEnter:Gs,onMouseLeave:Kc,colSpan:ic!==1?ic:null,rowSpan:va!==1?va:null}),is,Lr)}var Po=w.memo(vr);function ss(Ye,gt,Ft,Dt,$t,Gt){var Pr=Ft[Ye]||{},Tn=Ft[gt]||{},Sn,cn;Pr.fixed==="left"?Sn=Dt.left[$t==="rtl"?gt:Ye]:Tn.fixed==="right"&&(cn=Dt.right[$t==="rtl"?Ye:gt]);var qn=!1,br=!1,So=!1,kt=!1,er=Ft[gt+1],An=Ft[Ye-1],rr=!(Gt!=null&&Gt.children);if($t==="rtl"){if(Sn!==void 0){var cr=An&&An.fixed==="left";kt=!cr&&rr}else if(cn!==void 0){var Br=er&&er.fixed==="right";So=!Br&&rr}}else if(Sn!==void 0){var Ai=er&&er.fixed==="left";qn=!Ai&&rr}else if(cn!==void 0){var De=An&&An.fixed==="right";br=!De&&rr}return{fixLeft:Sn,fixRight:cn,lastFixLeft:qn,firstFixRight:br,lastFixRight:So,firstFixLeft:kt,isSticky:Dt.isSticky}}var ve=w.createContext({}),_o=ve;function ci(Ye){var gt=Ye.className,Ft=Ye.index,Dt=Ye.children,$t=Ye.colSpan,Gt=$t===void 0?1:$t,Pr=Ye.rowSpan,Tn=Ye.align,Sn=f(Ee,["prefixCls","direction"]),cn=Sn.prefixCls,qn=Sn.direction,br=w.useContext(_o),So=br.scrollColumnIndex,kt=br.stickyOffsets,er=br.flattenColumns,An=br.columns,rr=Ft+Gt-1,cr=rr+1===So?Gt+1:Gt,Br=ss(Ft,Ft+cr-1,er,kt,qn,An==null?void 0:An[Ft]);return w.createElement(Po,(0,S.Z)({className:gt,index:Ft,component:"td",prefixCls:cn,record:null,dataIndex:null,align:Tn,colSpan:cr,rowSpan:Pr,render:function(){return Dt}},Br))}var Bi=m(91),wi=["children"];function io(Ye){var gt=Ye.children,Ft=(0,Bi.Z)(Ye,wi);return w.createElement("tr",Ft,gt)}function ln(Ye){var gt=Ye.children;return gt}ln.Row=io,ln.Cell=ci;var Ve=ln;function _t(Ye){var gt=Ye.children,Ft=Ye.stickyOffsets,Dt=Ye.flattenColumns,$t=Ye.columns,Gt=f(Ee,"prefixCls"),Pr=Dt.length-1,Tn=Dt[Pr],Sn=w.useMemo(function(){return{stickyOffsets:Ft,flattenColumns:Dt,scrollColumnIndex:Tn!=null&&Tn.scrollbar?Pr:null,columns:$t}},[Tn,Dt,Pr,Ft,$t]);return w.createElement(_o.Provider,{value:Sn},w.createElement("tfoot",{className:"".concat(Gt,"-summary")},gt))}var Ct=ke(_t),jt=Ve,on=m(56790),Ot=m(48555),Tt=m(5110),xt=m(79370),Ht=m(74204),Zn=m(64217);function tn(Ye,gt,Ft,Dt,$t,Gt,Pr){Ye.push({record:gt,indent:Ft,index:Pr});var Tn=Gt(gt),Sn=$t==null?void 0:$t.has(Tn);if(gt&&Array.isArray(gt[Dt])&&Sn)for(var cn=0;cn1?To-1:0),xi=1;xi=0;Tn-=1){var Sn=gt[Tn],cn=Ft&&Ft[Tn],qn=cn&&cn[Vn];if(Sn||qn||Pr){var br=qn||{},So=br.columnType,kt=(0,Bi.Z)(br,Mr);$t.unshift(w.createElement("col",(0,S.Z)({key:Tn,style:{width:Sn}},kt))),Pr=!0}}return w.createElement("colgroup",null,$t)}var Cr=li,qr=m(74902),ii=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function rn(Ye,gt){return(0,w.useMemo)(function(){for(var Ft=[],Dt=0;Dt1?"colgroup":"col":null,ellipsis:rr.ellipsis,align:rr.align,component:rr.title?Gt:Pr,prefixCls:qn,key:kt[An]},cr,{additionalProps:Br,rowType:"header"}))}))}so.displayName="HeaderRow";var rs=so;function zt(Ye){var gt=[];function Ft(Pr,Tn){var Sn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;gt[Sn]=gt[Sn]||[];var cn=Tn,qn=Pr.filter(Boolean).map(function(br){var So={key:br.key,className:br.className||"",children:br.title,column:br,colStart:cn},kt=1,er=br.children;return er&&er.length>0&&(kt=Ft(er,cn,Sn+1).reduce(function(An,rr){return An+rr},0),So.hasSubColumns=!0),"colSpan"in br&&(kt=br.colSpan),"rowSpan"in br&&(So.rowSpan=br.rowSpan),So.colSpan=kt,So.colEnd=So.colStart+kt-1,gt[Sn].push(So),cn+=kt,kt});return qn}Ft(Ye,0);for(var Dt=gt.length,$t=function(Tn){gt[Tn].forEach(function(Sn){!("rowSpan"in Sn)&&!Sn.hasSubColumns&&(Sn.rowSpan=Dt-Tn)})},Gt=0;Gt1&&arguments[1]!==void 0?arguments[1]:"";return typeof gt=="number"?gt:gt.endsWith("%")?Ye*parseFloat(gt)/100:null}function Ci(Ye,gt,Ft){return w.useMemo(function(){if(gt&>>0){var Dt=0,$t=0;Ye.forEach(function(So){var kt=ui(gt,So.width);kt?Dt+=kt:$t+=1});var Gt=Math.max(gt-Dt,$t),Pr=$t,Tn=Gt/$t,Sn=0,cn=Ye.map(function(So){var kt=(0,Ie.Z)({},So),er=ui(gt,kt.width);if(er)kt.width=er;else{var An=Math.floor(Tn);kt.width=Pr===1?Gt:An,Gt-=An,Pr-=1}return Sn+=kt.width,kt}),qn=Math.max(gt,Ft);if(Sn1&&arguments[1]!==void 0?arguments[1]:"key";return Ye.filter(function(Ft){return Ft&&(0,be.Z)(Ft)==="object"}).reduce(function(Ft,Dt,$t){var Gt=Dt.fixed,Pr=Gt===!0?"left":Gt,Tn="".concat(gt,"-").concat($t),Sn=Dt.children;return Sn&&Sn.length>0?[].concat((0,qr.Z)(Ft),(0,qr.Z)(Wi(Sn,Tn).map(function(cn){return(0,Ie.Z)({fixed:Pr},cn)}))):[].concat((0,qr.Z)(Ft),[(0,Ie.Z)((0,Ie.Z)({key:Tn},Dt),{},{fixed:Pr})])},[])}function Tr(Ye){for(var gt=!0,Ft=0;Ft=0;Gt-=1){var Pr=Ye[Gt];if($t&&Pr.fixed!=="right")$t=!1;else if(!$t&&Pr.fixed==="right"){warning(!1,"Index ".concat(Gt+1," of `columns` missing `fixed='right'` prop."));break}}}function Qt(Ye){return Ye.map(function(gt){var Ft=gt.fixed,Dt=(0,Bi.Z)(gt,Kr),$t=Ft;return Ft==="left"?$t="right":Ft==="right"&&($t="left"),(0,Ie.Z)({fixed:$t},Dt)})}function Gn(Ye,gt){var Ft=Ye.prefixCls,Dt=Ye.columns,$t=Ye.children,Gt=Ye.expandable,Pr=Ye.expandedKeys,Tn=Ye.columnTitle,Sn=Ye.getRowKey,cn=Ye.onTriggerExpand,qn=Ye.expandIcon,br=Ye.rowExpandable,So=Ye.expandIconColumnIndex,kt=Ye.direction,er=Ye.expandRowByClick,An=Ye.columnWidth,rr=Ye.fixed,cr=Ye.scrollWidth,Br=Ye.clientWidth,Ai=w.useMemo(function(){return Dt||ti($t)},[Dt,$t]),De=w.useMemo(function(){if(Gt){var To,ir=Ai.slice();if(!ir.includes(y)){var xi=So||0;xi>=0&&ir.splice(xi,0,y)}var ji=ir.indexOf(y);ir=ir.filter(function(Ho,or){return Ho!==y||or===ji});var is=Ai[ji],Ds;(rr==="left"||rr)&&!So?Ds="left":(rr==="right"||rr)&&So===Ai.length?Ds="right":Ds=is?is.fixed:null;var aa=(To={},(0,me.Z)(To,Vn,{className:"".concat(Ft,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,me.Z)(To,"title",Tn),(0,me.Z)(To,"fixed",Ds),(0,me.Z)(To,"className","".concat(Ft,"-row-expand-icon-cell")),(0,me.Z)(To,"width",An),(0,me.Z)(To,"render",function(or,eo,vs){var ul=Sn(eo,vs),Dl=Pr.has(ul),Oa=br?br(eo):!0,_s=qn({prefixCls:Ft,expanded:Dl,expandable:Oa,record:eo,onExpand:cn});return er?w.createElement("span",{onClick:function(nl){return nl.stopPropagation()}},_s):_s}),To);return ir.map(function(Ho){return Ho===y?aa:Ho})}return Ai.filter(function(Ho){return Ho!==y})},[Gt,Ai,Sn,Pr,qn,kt]),Zo=w.useMemo(function(){var To=De;return gt&&(To=gt(To)),To.length||(To=[{render:function(){return null}}]),To},[gt,De,kt]),js=w.useMemo(function(){return kt==="rtl"?Qt(Wi(Zo)):Wi(Zo)},[Zo,kt,cr]),ba=Ci(js,cr,Br),sa=(0,b.Z)(ba,2),Ps=sa[0],ha=sa[1];return[Zo,Ps,ha]}var yi=Gn;function Ln(Ye){var gt,Ft=Ye.prefixCls,Dt=Ye.record,$t=Ye.onExpand,Gt=Ye.expanded,Pr=Ye.expandable,Tn="".concat(Ft,"-row-expand-icon");if(!Pr)return w.createElement("span",{className:Ce()(Tn,"".concat(Ft,"-row-spaced"))});var Sn=function(qn){$t(Dt,qn),qn.stopPropagation()};return w.createElement("span",{className:Ce()(Tn,(gt={},(0,me.Z)(gt,"".concat(Ft,"-row-expanded"),Gt),(0,me.Z)(gt,"".concat(Ft,"-row-collapsed"),!Gt),gt)),onClick:Sn})}function Si(Ye,gt,Ft){var Dt=[];function $t(Gt){(Gt||[]).forEach(function(Pr,Tn){Dt.push(gt(Pr,Tn)),$t(Pr[Ft])})}return $t(Ye),Dt}function tr(Ye,gt,Ft){var Dt=Xn(Ye),$t=Dt.expandIcon,Gt=Dt.expandedRowKeys,Pr=Dt.defaultExpandedRowKeys,Tn=Dt.defaultExpandAllRows,Sn=Dt.expandedRowRender,cn=Dt.onExpand,qn=Dt.onExpandedRowsChange,br=Dt.childrenColumnName,So=$t||Ln,kt=br||"children",er=w.useMemo(function(){return Sn?"row":Ye.expandable&&Ye.internalHooks===A&&Ye.expandable.__PARENT_RENDER_ICON__||gt.some(function(Zo){return Zo&&(0,be.Z)(Zo)==="object"&&Zo[kt]})?"nest":!1},[!!Sn,gt]),An=w.useState(function(){return Pr||(Tn?Si(gt,Ft,kt):[])}),rr=(0,b.Z)(An,2),cr=rr[0],Br=rr[1],Ai=w.useMemo(function(){return new Set(Gt||cr||[])},[Gt,cr]),De=w.useCallback(function(Zo){var js=Ft(Zo,gt.indexOf(Zo)),ba,sa=Ai.has(js);sa?(Ai.delete(js),ba=(0,qr.Z)(Ai)):ba=[].concat((0,qr.Z)(Ai),[js]),Br(ba),cn&&cn(!sa,Zo),qn&&qn(ba)},[Ft,Ai,gt,cn,qn]);return[Dt,er,Ai,So,kt,De]}function vi(Ye,gt,Ft,Dt){var $t=Ye.map(function(Gt,Pr){return ss(Pr,Pr,Ye,gt,Ft,Dt==null?void 0:Dt[Pr])});return(0,Pt.Z)(function(){return $t},[$t],function(Gt,Pr){return!(0,N.Z)(Gt,Pr)})}function Ni(Ye){var gt=(0,w.useRef)(Ye),Ft=(0,w.useState)({}),Dt=(0,b.Z)(Ft,2),$t=Dt[1],Gt=(0,w.useRef)(null),Pr=(0,w.useRef)([]);function Tn(Sn){Pr.current.push(Sn);var cn=Promise.resolve();Gt.current=cn,cn.then(function(){if(Gt.current===cn){var qn=Pr.current,br=gt.current;Pr.current=[],qn.forEach(function(So){gt.current=So(gt.current)}),Gt.current=null,br!==gt.current&&$t({})}})}return(0,w.useEffect)(function(){return function(){Gt.current=null}},[]),[gt.current,Tn]}function kr(Ye){var gt=(0,w.useRef)(Ye||null),Ft=(0,w.useRef)();function Dt(){window.clearTimeout(Ft.current)}function $t(Pr){gt.current=Pr,Dt(),Ft.current=window.setTimeout(function(){gt.current=null,Ft.current=void 0},100)}function Gt(){return gt.current}return(0,w.useEffect)(function(){return Dt},[]),[$t,Gt]}function Qn(){var Ye=w.useState(-1),gt=(0,b.Z)(Ye,2),Ft=gt[0],Dt=gt[1],$t=w.useState(-1),Gt=(0,b.Z)($t,2),Pr=Gt[0],Tn=Gt[1],Sn=w.useCallback(function(cn,qn){Dt(cn),Tn(qn)},[]);return[Ft,Pr,Sn]}var ds=m(98924),_a=(0,ds.Z)()?window:null;function da(Ye,gt){var Ft=(0,be.Z)(Ye)==="object"?Ye:{},Dt=Ft.offsetHeader,$t=Dt===void 0?0:Dt,Gt=Ft.offsetSummary,Pr=Gt===void 0?0:Gt,Tn=Ft.offsetScroll,Sn=Tn===void 0?0:Tn,cn=Ft.getContainer,qn=cn===void 0?function(){return _a}:cn,br=qn()||_a;return w.useMemo(function(){var So=!!Ye;return{isSticky:So,stickyClassName:So?"".concat(gt,"-sticky-holder"):"",offsetHeader:$t,offsetSummary:Pr,offsetScroll:Sn,container:br}},[Sn,$t,Pr,gt,br])}function zs(Ye,gt,Ft){var Dt=(0,w.useMemo)(function(){for(var $t=[],Gt=[],Pr=0,Tn=0,Sn=0;Sn=br&&(aa=br-So),Pr({scrollLeft:aa/br*(qn+2)}),Br.current.x=xi.pageX},ha=function(){if(Gt.current){var xi=Nn(Gt.current).top,ji=xi+Gt.current.offsetHeight,is=Sn===window?document.documentElement.scrollTop+window.innerHeight:Nn(Sn).top+Sn.clientHeight;ji-(0,Ht.Z)()<=is||xi>=is-Tn?cr(function(Ds){return(0,Ie.Z)((0,Ie.Z)({},Ds),{},{isHiddenScrollBar:!0})}):cr(function(Ds){return(0,Ie.Z)((0,Ie.Z)({},Ds),{},{isHiddenScrollBar:!1})})}},To=function(xi){cr(function(ji){return(0,Ie.Z)((0,Ie.Z)({},ji),{},{scrollLeft:xi/qn*br||0})})};return w.useImperativeHandle(Ft,function(){return{setScrollLeft:To}}),w.useEffect(function(){var ir=Fr(document.body,"mouseup",ba,!1),xi=Fr(document.body,"mousemove",Ps,!1);return ha(),function(){ir.remove(),xi.remove()}},[So,Zo]),w.useEffect(function(){var ir=Fr(Sn,"scroll",ha,!1),xi=Fr(window,"resize",ha,!1);return function(){ir.remove(),xi.remove()}},[Sn]),w.useEffect(function(){rr.isHiddenScrollBar||cr(function(ir){var xi=Gt.current;return xi?(0,Ie.Z)((0,Ie.Z)({},ir),{},{scrollLeft:xi.scrollLeft/xi.scrollWidth*xi.clientWidth}):ir})},[rr.isHiddenScrollBar]),qn<=br||!So||rr.isHiddenScrollBar?null:w.createElement("div",{style:{height:(0,Ht.Z)(),width:br,bottom:Tn},className:"".concat(cn,"-sticky-scroll")},w.createElement("div",{onMouseDown:sa,ref:kt,className:Ce()("".concat(cn,"-sticky-scroll-bar"),(0,me.Z)({},"".concat(cn,"-sticky-scroll-bar-active"),Zo)),style:{width:"".concat(So,"px"),transform:"translate3d(".concat(rr.scrollLeft,"px, 0, 0)")}}))},dt=w.forwardRef(tt);function vt(Ye){return null}var ze=vt;function lt(Ye){return null}var Et=lt,an="rc-table",jn=[],xr={};function Ti(){return"No Data"}function $i(Ye){var gt,Ft=(0,Ie.Z)({rowKey:"key",prefixCls:an,emptyText:Ti},Ye),Dt=Ft.prefixCls,$t=Ft.className,Gt=Ft.rowClassName,Pr=Ft.style,Tn=Ft.data,Sn=Ft.rowKey,cn=Ft.scroll,qn=Ft.tableLayout,br=Ft.direction,So=Ft.title,kt=Ft.footer,er=Ft.summary,An=Ft.caption,rr=Ft.id,cr=Ft.showHeader,Br=Ft.components,Ai=Ft.emptyText,De=Ft.onRow,Zo=Ft.onHeaderRow,js=Ft.internalHooks,ba=Ft.transformColumns,sa=Ft.internalRefs,Ps=Ft.tailor,ha=Ft.getContainerWidth,To=Ft.sticky,ir=Tn||jn,xi=!!ir.length,ji=js===A,is=w.useCallback(function(xc,fh){return(0,ct.Z)(Br,xc)||fh},[Br]),Ds=w.useMemo(function(){return typeof Sn=="function"?Sn:function(xc){var fh=xc&&xc[Sn];return fh}},[Sn]),aa=is(["body"]),Ho=Qn(),or=(0,b.Z)(Ho,3),eo=or[0],vs=or[1],ul=or[2],Dl=tr(Ft,ir,Ds),Oa=(0,b.Z)(Dl,6),_s=Oa[0],wl=Oa[1],nl=Oa[2],mc=Oa[3],pl=Oa[4],ic=Oa[5],va=cn==null?void 0:cn.x,qu=w.useState(0),$l=(0,b.Z)(qu,2),su=$l[0],tu=$l[1],Gs=yi((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},Ft),_s),{},{expandable:!!_s.expandedRowRender,columnTitle:_s.columnTitle,expandedKeys:nl,getRowKey:Ds,onTriggerExpand:ic,expandIcon:mc,expandIconColumnIndex:_s.expandIconColumnIndex,direction:br,scrollWidth:ji&&Ps&&typeof va=="number"?va:null,clientWidth:su}),ji?ba:null),Kc=(0,b.Z)(Gs,3),Le=Kc[0],Oe=Kc[1],et=Kc[2],hn=et!=null?et:va,Lr=w.useMemo(function(){return{columns:Le,flattenColumns:Oe}},[Le,Oe]),Cn=w.useRef(),ei=w.useRef(),Li=w.useRef(),ps=w.useRef(),xa=w.useRef(),Sa=w.useState(!1),_l=(0,b.Z)(Sa,2),Ql=_l[0],Ju=_l[1],ws=w.useState(!1),Ha=(0,b.Z)(ws,2),gr=Ha[0],Ka=Ha[1],Ca=Ni(new Map),Du=(0,b.Z)(Ca,2),jc=Du[0],Qo=Du[1],Do=_n(Oe),As=Do.map(function(xc){return jc.get(xc)}),wa=w.useMemo(function(){return As},[As.join("_")]),Pa=ja(wa,Oe.length,br),Fs=cn&&Bn(cn.y),gs=cn&&Bn(hn)||!!_s.fixed,Xi=gs&&Oe.some(function(xc){var fh=xc.fixed;return fh}),sr=w.useRef(),Rr=da(To,Dt),gi=Rr.isSticky,ls=Rr.offsetHeader,bs=Rr.offsetSummary,Pl=Rr.offsetScroll,Ys=Rr.stickyClassName,vl=Rr.container,mu=w.useMemo(function(){return er==null?void 0:er(ir)},[er,ir]),hc=(Fs||gi)&&w.isValidElement(mu)&&mu.type===Ve&&mu.props.fixed,ud,Oo,jd;Fs&&(Oo={overflowY:"scroll",maxHeight:cn.y}),gs&&(ud={overflowX:"auto"},Fs||(Oo={overflowY:"hidden"}),jd={width:hn===!0?"auto":hn,minWidth:"100%"});var pd=w.useCallback(function(xc,fh){(0,Tt.Z)(Cn.current)&&Qo(function(Gd){if(Gd.get(xc)!==fh){var _=new Map(Gd);return _.set(xc,fh),_}return Gd})},[]),up=kr(null),eg=(0,b.Z)(up,2),Gg=eg[0],Pm=eg[1];function Nm(xc,fh){fh&&(typeof fh=="function"?fh(xc):fh.scrollLeft!==xc&&(fh.scrollLeft=xc,fh.scrollLeft!==xc&&setTimeout(function(){fh.scrollLeft=xc},0)))}var Hm=(0,z.Z)(function(xc){var fh=xc.currentTarget,Gd=xc.scrollLeft,_=br==="rtl",R=typeof Gd=="number"?Gd:fh.scrollLeft,Z=fh||xr;if(!Pm()||Pm()===Z){var ue;Gg(Z),Nm(R,ei.current),Nm(R,Li.current),Nm(R,xa.current),Nm(R,(ue=sr.current)===null||ue===void 0?void 0:ue.setScrollLeft)}var Pe=fh||ei.current;if(Pe){var Qe=Pe.scrollWidth,wt=Pe.clientWidth;if(Qe===wt){Ju(!1),Ka(!1);return}_?(Ju(-R0)):(Ju(R>0),Ka(R1?An-xi:0,is=(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},ba),Sn),{},{flex:"0 0 ".concat(xi,"px"),width:"".concat(xi,"px"),marginRight:ji,pointerEvents:"auto"}),Ds=w.useMemo(function(){return qn?To<=1:Ps===0||To===0||To>1},[To,Ps,qn]);Ds?is.visibility="hidden":qn&&(is.height=br==null?void 0:br(To));var aa=Ds?function(){return null}:So,Ho={};return(To===0||Ps===0)&&(Ho.rowSpan=1,Ho.colSpan=1),w.createElement(Po,(0,S.Z)({className:Ce()(er,cn),ellipsis:Ft.ellipsis,align:Ft.align,scope:Ft.rowScope,component:"div",prefixCls:gt.prefixCls,key:Ai,record:Tn,index:Gt,renderIndex:Pr,dataIndex:kt,render:aa,shouldCellUpdate:Ft.shouldCellUpdate},De,{appendNode:Zo,additionalProps:(0,Ie.Z)((0,Ie.Z)({},js),{},{style:is},Ho)}))}var fa=ea,Bl=["data","index","className","rowKey","style","extra","getHeight"],Ma=w.forwardRef(function(Ye,gt){var Ft=Ye.data,Dt=Ye.index,$t=Ye.className,Gt=Ye.rowKey,Pr=Ye.style,Tn=Ye.extra,Sn=Ye.getHeight,cn=(0,Bi.Z)(Ye,Bl),qn=Ft.record,br=Ft.indent,So=Ft.index,kt=f(Ee,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),er=kt.scrollX,An=kt.flattenColumns,rr=kt.prefixCls,cr=kt.fixColumn,Br=kt.componentWidth,Ai=Zi(qn,Gt,Dt,br),De=Ai.rowSupportExpand,Zo=Ai.expanded,js=Ai.rowProps,ba=Ai.expandedRowRender,sa=Ai.expandedRowClassName,Ps;if(De&&Zo){var ha=ba(qn,Dt,br+1,Zo),To=sa==null?void 0:sa(qn,Dt,br),ir={};cr&&(ir={style:(0,me.Z)({},"--virtual-width","".concat(Br,"px"))});var xi="".concat(rr,"-expanded-row-cell");Ps=w.createElement("div",{className:Ce()("".concat(rr,"-expanded-row"),"".concat(rr,"-expanded-row-level-").concat(br+1),To)},w.createElement(Po,{component:"div",prefixCls:rr,className:Ce()(xi,(0,me.Z)({},"".concat(xi,"-fixed"),cr)),additionalProps:ir},ha))}var ji=(0,Ie.Z)((0,Ie.Z)({},Pr),{},{width:er});Tn&&(ji.position="absolute",ji.pointerEvents="none");var is=w.createElement("div",(0,S.Z)({},js,cn,{ref:De?null:gt,className:Ce()($t,"".concat(rr,"-row"),js==null?void 0:js.className,(0,me.Z)({},"".concat(rr,"-row-extra"),Tn)),style:(0,Ie.Z)((0,Ie.Z)({},ji),js==null?void 0:js.style)}),An.map(function(Ds,aa){return w.createElement(fa,{key:aa,rowInfo:Ai,column:Ds,colIndex:aa,indent:br,index:Dt,renderIndex:So,record:qn,inverse:Tn,getHeight:Sn})}));return De?w.createElement("div",{ref:gt},is,Ps):is}),gl=ke(Ma),ia=gl,Nl=w.forwardRef(function(Ye,gt){var Ft=Ye.data,Dt=Ye.onScroll,$t=f(Ee,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),Gt=$t.flattenColumns,Pr=$t.onColumnResize,Tn=$t.getRowKey,Sn=$t.expandedKeys,cn=$t.prefixCls,qn=$t.childrenColumnName,br=$t.emptyNode,So=$t.scrollX,kt=f(pa),er=kt.sticky,An=kt.scrollY,rr=kt.listItemHeight,cr=w.useRef(),Br=hr(Ft,qn,Sn,Tn),Ai=w.useMemo(function(){var To=0;return Gt.map(function(ir){var xi=ir.width,ji=ir.key;return To+=xi,[ji,xi,To]})},[Gt]),De=w.useMemo(function(){return Ai.map(function(To){return To[2]})},[Ai]);w.useEffect(function(){Ai.forEach(function(To){var ir=(0,b.Z)(To,2),xi=ir[0],ji=ir[1];Pr(xi,ji)})},[Ai]),w.useImperativeHandle(gt,function(){var To={};return Object.defineProperty(To,"scrollLeft",{get:function(){var xi;return((xi=cr.current)===null||xi===void 0?void 0:xi.getScrollInfo().x)||0},set:function(xi){var ji;(ji=cr.current)===null||ji===void 0||ji.scrollTo({left:xi})}}),To});var Zo=function(ir,xi){var ji,is=(ji=Br[xi])===null||ji===void 0?void 0:ji.record,Ds=ir.onCell;if(Ds){var aa,Ho=Ds(is,xi);return(aa=Ho==null?void 0:Ho.rowSpan)!==null&&aa!==void 0?aa:1}return 1},js=function(ir){var xi=ir.start,ji=ir.end,is=ir.getSize,Ds=ir.offsetY;if(ji<0)return null;for(var aa=Gt.filter(function(qu){return Zo(qu,xi)===0}),Ho=xi,or=function($l){if(aa=aa.filter(function(su){return Zo(su,$l)===0}),!aa.length)return Ho=$l,"break"},eo=xi;eo>=0;eo-=1){var vs=or(eo);if(vs==="break")break}for(var ul=Gt.filter(function(qu){return Zo(qu,ji)!==1}),Dl=ji,Oa=function($l){if(ul=ul.filter(function(su){return Zo(su,$l)!==1}),!ul.length)return Dl=Math.max($l-1,ji),"break"},_s=ji;_s1})&&nl.push($l)},pl=Ho;pl<=Dl;pl+=1)var ic=mc(pl);var va=nl.map(function(qu){var $l=Br[qu],su=Tn($l.record,qu),tu=function(Le){var Oe=qu+Le-1,et=Tn(Br[Oe].record,Oe),hn=is(su,et);return hn.bottom-hn.top},Gs=is(su);return w.createElement(ia,{key:qu,data:$l,rowKey:su,index:qu,style:{top:-Ds+Gs.top},extra:!0,getHeight:tu})});return va},ba=w.useMemo(function(){return{columnsOffset:De}},[De]),sa="".concat(cn,"-tbody"),Ps;if(Br.length){var ha={};er&&(ha.position="sticky",ha.bottom=0,(0,be.Z)(er)==="object"&&er.offsetScroll&&(ha.bottom=er.offsetScroll)),Ps=w.createElement(Os.Z,{fullHeight:!1,ref:cr,styles:{horizontalScrollBar:ha},className:Ce()(sa,"".concat(sa,"-virtual")),height:An,itemHeight:rr||24,data:Br,itemKey:function(ir){return Tn(ir.record)},scrollWidth:So,onVirtualScroll:function(ir){var xi=ir.x;Dt({scrollLeft:xi})},extraRender:js},function(To,ir,xi){var ji=Tn(To.record,ir);return w.createElement(ia,(0,S.Z)({data:To,rowKey:ji,index:ir},xi))})}else Ps=w.createElement("div",{className:Ce()("".concat(cn,"-placeholder"))},w.createElement(Po,{component:"div",prefixCls:cn},br));return w.createElement(no.Provider,{value:ba},Ps)}),cs=ke(Nl),zi=cs,Ji=function(gt,Ft){var Dt=Ft.ref,$t=Ft.onScroll;return w.createElement(zi,{ref:Dt,data:gt,onScroll:$t})};function ta(Ye){var gt=Ye.columns,Ft=Ye.scroll,Dt=Ye.sticky,$t=Ye.prefixCls,Gt=$t===void 0?an:$t,Pr=Ye.className,Tn=Ye.listItemHeight,Sn=Ft||{},cn=Sn.x,qn=Sn.y;typeof cn!="number"&&(cn=1),typeof qn!="number"&&(qn=500);var br=w.useMemo(function(){return{sticky:Dt,scrollY:qn,listItemHeight:Tn}},[Dt,qn,Tn]);return w.createElement(pa.Provider,{value:br},w.createElement(ks,(0,S.Z)({},Ye,{className:Ce()(Pr,"".concat(Gt,"-virtual")),scroll:(0,Ie.Z)((0,Ie.Z)({},Ft),{},{x:cn}),components:{body:Ji},columns:gt,internalHooks:A,tailor:!0})))}function ms(Ye){return fe(ta,Ye)}var Ua=ms(),ju=null;function rc(Ye){return null}var Pc=rc;function ho(Ye){return null}var qi=ho,os=m(98423),$n=m(75164);function mr(Ye,gt,Ft,Dt){const $t=Ft-gt;return Ye/=Dt/2,Ye<1?$t/2*Ye*Ye*Ye+gt:$t/2*((Ye-=2)*Ye*Ye+2)+gt}function Qr(Ye){return Ye!=null&&Ye===Ye.window}function ni(Ye,gt){var Ft,Dt;if(typeof window=="undefined")return 0;const $t=gt?"scrollTop":"scrollLeft";let Gt=0;return Qr(Ye)?Gt=Ye[gt?"pageYOffset":"pageXOffset"]:Ye instanceof Document?Gt=Ye.documentElement[$t]:(Ye instanceof HTMLElement||Ye)&&(Gt=Ye[$t]),Ye&&!Qr(Ye)&&typeof Gt!="number"&&(Gt=(Dt=((Ft=Ye.ownerDocument)!==null&&Ft!==void 0?Ft:Ye).documentElement)===null||Dt===void 0?void 0:Dt[$t]),Gt}function Ki(Ye){let gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:Ft=()=>window,callback:Dt,duration:$t=450}=gt,Gt=Ft(),Pr=ni(Gt,!0),Tn=Date.now(),Sn=()=>{const qn=Date.now()-Tn,br=mr(qn>$t?$t:qn,Pr,Ye,$t);Qr(Gt)?Gt.scrollTo(window.pageXOffset,br):Gt instanceof Document||Gt.constructor.name==="HTMLDocument"?Gt.documentElement.scrollTop=br:Gt.scrollTop=br,qn<$t?(0,$n.Z)(Sn):typeof Dt=="function"&&Dt()};(0,$n.Z)(Sn)}var ro=m(27288),Ei=m(53124),ns=m(88258),ua=m(98675),Na=m(25378),cl=m(88526),Zl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},Ml=Zl,Wa=m(93771),ku=function(gt,Ft){return w.createElement(Wa.Z,(0,S.Z)({},gt,{ref:Ft,icon:Ml}))},Xs=w.forwardRef(ku),Ya={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},qa=Ya,Hl=function(gt,Ft){return w.createElement(Wa.Z,(0,S.Z)({},gt,{ref:Ft,icon:qa}))},Jl=w.forwardRef(Hl),vu=m(62946),au=m(68843),bn=m(15671),Eu=m(43144),ts=m(60136),Vs=m(29388),ma={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},Il=ma,El={items_per_page:"\u6761/\u9875",jump_to:"\u8DF3\u81F3",jump_to_confirm:"\u786E\u5B9A",page:"\u9875",prev_page:"\u4E0A\u4E00\u9875",next_page:"\u4E0B\u4E00\u9875",prev_5:"\u5411\u524D 5 \u9875",next_5:"\u5411\u540E 5 \u9875",prev_3:"\u5411\u524D 3 \u9875",next_3:"\u5411\u540E 3 \u9875",page_size:"\u9875\u7801"},ml=function(Ye){(0,ts.Z)(Ft,Ye);var gt=(0,Vs.Z)(Ft);function Ft(){var Dt;(0,bn.Z)(this,Ft);for(var $t=arguments.length,Gt=new Array($t),Pr=0;Pr<$t;Pr++)Gt[Pr]=arguments[Pr];return Dt=gt.call.apply(gt,[this].concat(Gt)),Dt.state={goInputText:""},Dt.getValidValue=function(){var Tn=Dt.state.goInputText;return!Tn||Number.isNaN(Tn)?void 0:Number(Tn)},Dt.buildOptionText=function(Tn){return"".concat(Tn," ").concat(Dt.props.locale.items_per_page)},Dt.changeSize=function(Tn){Dt.props.changeSize(Number(Tn))},Dt.handleChange=function(Tn){Dt.setState({goInputText:Tn.target.value})},Dt.handleBlur=function(Tn){var Sn=Dt.props,cn=Sn.goButton,qn=Sn.quickGo,br=Sn.rootPrefixCls,So=Dt.state.goInputText;cn||So===""||(Dt.setState({goInputText:""}),!(Tn.relatedTarget&&(Tn.relatedTarget.className.indexOf("".concat(br,"-item-link"))>=0||Tn.relatedTarget.className.indexOf("".concat(br,"-item"))>=0))&&qn(Dt.getValidValue()))},Dt.go=function(Tn){var Sn=Dt.state.goInputText;Sn!==""&&(Tn.keyCode===Il.ENTER||Tn.type==="click")&&(Dt.setState({goInputText:""}),Dt.props.quickGo(Dt.getValidValue()))},Dt}return(0,Eu.Z)(Ft,[{key:"getPageSizeOptions",value:function(){var $t=this.props,Gt=$t.pageSize,Pr=$t.pageSizeOptions;return Pr.some(function(Tn){return Tn.toString()===Gt.toString()})?Pr:Pr.concat([Gt.toString()]).sort(function(Tn,Sn){var cn=Number.isNaN(Number(Tn))?0:Number(Tn),qn=Number.isNaN(Number(Sn))?0:Number(Sn);return cn-qn})}},{key:"render",value:function(){var $t=this,Gt=this.props,Pr=Gt.pageSize,Tn=Gt.locale,Sn=Gt.rootPrefixCls,cn=Gt.changeSize,qn=Gt.quickGo,br=Gt.goButton,So=Gt.selectComponentClass,kt=Gt.buildOptionText,er=Gt.selectPrefixCls,An=Gt.disabled,rr=this.state.goInputText,cr="".concat(Sn,"-options"),Br=So,Ai=null,De=null,Zo=null;if(!cn&&!qn)return null;var js=this.getPageSizeOptions();if(cn&&Br){var ba=js.map(function(sa,Ps){return w.createElement(Br.Option,{key:Ps,value:sa.toString()},(kt||$t.buildOptionText)(sa))});Ai=w.createElement(Br,{disabled:An,prefixCls:er,showSearch:!1,className:"".concat(cr,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Pr||js[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Ps){return Ps.parentNode},"aria-label":Tn.page_size,defaultOpen:!1},ba)}return qn&&(br&&(Zo=typeof br=="boolean"?w.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:An,className:"".concat(cr,"-quick-jumper-button")},Tn.jump_to_confirm):w.createElement("span",{onClick:this.go,onKeyUp:this.go},br)),De=w.createElement("div",{className:"".concat(cr,"-quick-jumper")},Tn.jump_to,w.createElement("input",{disabled:An,type:"text",value:rr,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Tn.page}),Tn.page,Zo)),w.createElement("li",{className:"".concat(cr)},Ai,De)}}]),Ft}(w.Component);ml.defaultProps={pageSizeOptions:["10","20","50","100"]};var fu=ml,Fu=function(gt){var Ft,Dt=gt.rootPrefixCls,$t=gt.page,Gt=gt.active,Pr=gt.className,Tn=gt.showTitle,Sn=gt.onClick,cn=gt.onKeyPress,qn=gt.itemRender,br="".concat(Dt,"-item"),So=Ce()(br,"".concat(br,"-").concat($t),(Ft={},(0,me.Z)(Ft,"".concat(br,"-active"),Gt),(0,me.Z)(Ft,"".concat(br,"-disabled"),!$t),(0,me.Z)(Ft,gt.className,Pr),Ft)),kt=function(){Sn($t)},er=function(cr){cn(cr,Sn,$t)},An=qn($t,"page",w.createElement("a",{rel:"nofollow"},$t));return An?w.createElement("li",{title:Tn?$t.toString():null,className:So,onClick:kt,onKeyPress:er,tabIndex:0},An):null},lc=Fu;function Ic(){}function Uc(Ye){var gt=Number(Ye);return typeof gt=="number"&&!Number.isNaN(gt)&&isFinite(gt)&&Math.floor(gt)===gt}var zd=function(gt,Ft,Dt){return Dt};function th(Ye,gt,Ft){var Dt=typeof Ye=="undefined"?gt.pageSize:Ye;return Math.floor((Ft.total-1)/Dt)+1}var Xd=function(Ye){(0,ts.Z)(Ft,Ye);var gt=(0,Vs.Z)(Ft);function Ft(Dt){var $t;(0,bn.Z)(this,Ft),$t=gt.call(this,Dt),$t.paginationNode=w.createRef(),$t.getJumpPrevPage=function(){return Math.max(1,$t.state.current-($t.props.showLessItems?3:5))},$t.getJumpNextPage=function(){return Math.min(th(void 0,$t.state,$t.props),$t.state.current+($t.props.showLessItems?3:5))},$t.getItemIcon=function(cn,qn){var br=$t.props.prefixCls,So=cn||w.createElement("button",{type:"button","aria-label":qn,className:"".concat(br,"-item-link")});return typeof cn=="function"&&(So=w.createElement(cn,(0,Ie.Z)({},$t.props))),So},$t.isValid=function(cn){var qn=$t.props.total;return Uc(cn)&&cn!==$t.state.current&&Uc(qn)&&qn>0},$t.shouldDisplayQuickJumper=function(){var cn=$t.props,qn=cn.showQuickJumper,br=cn.total,So=$t.state.pageSize;return br<=So?!1:qn},$t.handleKeyDown=function(cn){(cn.keyCode===Il.ARROW_UP||cn.keyCode===Il.ARROW_DOWN)&&cn.preventDefault()},$t.handleKeyUp=function(cn){var qn=$t.getValidValue(cn),br=$t.state.currentInputValue;qn!==br&&$t.setState({currentInputValue:qn}),cn.keyCode===Il.ENTER?$t.handleChange(qn):cn.keyCode===Il.ARROW_UP?$t.handleChange(qn-1):cn.keyCode===Il.ARROW_DOWN&&$t.handleChange(qn+1)},$t.handleBlur=function(cn){var qn=$t.getValidValue(cn);$t.handleChange(qn)},$t.changePageSize=function(cn){var qn=$t.state.current,br=th(cn,$t.state,$t.props);qn=qn>br?br:qn,br===0&&(qn=$t.state.current),typeof cn=="number"&&("pageSize"in $t.props||$t.setState({pageSize:cn}),"current"in $t.props||$t.setState({current:qn,currentInputValue:qn})),$t.props.onShowSizeChange(qn,cn),"onChange"in $t.props&&$t.props.onChange&&$t.props.onChange(qn,cn)},$t.handleChange=function(cn){var qn=$t.props,br=qn.disabled,So=qn.onChange,kt=$t.state,er=kt.pageSize,An=kt.current,rr=kt.currentInputValue;if($t.isValid(cn)&&!br){var cr=th(void 0,$t.state,$t.props),Br=cn;return cn>cr?Br=cr:cn<1&&(Br=1),"current"in $t.props||$t.setState({current:Br}),Br!==rr&&$t.setState({currentInputValue:Br}),So(Br,er),Br}return An},$t.prev=function(){$t.hasPrev()&&$t.handleChange($t.state.current-1)},$t.next=function(){$t.hasNext()&&$t.handleChange($t.state.current+1)},$t.jumpPrev=function(){$t.handleChange($t.getJumpPrevPage())},$t.jumpNext=function(){$t.handleChange($t.getJumpNextPage())},$t.hasPrev=function(){return $t.state.current>1},$t.hasNext=function(){return $t.state.current2?br-2:0),kt=2;kt=Pr?Sn=Pr:Sn=Number(Gt),Sn}},{key:"getShowSizeChanger",value:function(){var $t=this.props,Gt=$t.showSizeChanger,Pr=$t.total,Tn=$t.totalBoundaryShowSizeChanger;return typeof Gt!="undefined"?Gt:Pr>Tn}},{key:"render",value:function(){var $t=this.props,Gt=$t.prefixCls,Pr=$t.className,Tn=$t.style,Sn=$t.disabled,cn=$t.hideOnSinglePage,qn=$t.total,br=$t.locale,So=$t.showQuickJumper,kt=$t.showLessItems,er=$t.showTitle,An=$t.showTotal,rr=$t.simple,cr=$t.itemRender,Br=$t.showPrevNextJumpers,Ai=$t.jumpPrevIcon,De=$t.jumpNextIcon,Zo=$t.selectComponentClass,js=$t.selectPrefixCls,ba=$t.pageSizeOptions,sa=this.state,Ps=sa.current,ha=sa.pageSize,To=sa.currentInputValue;if(cn===!0&&qn<=ha)return null;var ir=th(void 0,this.state,this.props),xi=[],ji=null,is=null,Ds=null,aa=null,Ho=null,or=So&&So.goButton,eo=kt?1:2,vs=Ps-1>0?Ps-1:0,ul=Ps+1qn?qn:Ps*ha]));if(rr){or&&(typeof or=="boolean"?Ho=w.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},br.jump_to_confirm):Ho=w.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},or),Ho=w.createElement("li",{title:er?"".concat(br.jump_to).concat(Ps,"/").concat(ir):null,className:"".concat(Gt,"-simple-pager")},Ho));var _s=this.renderPrev(vs);return w.createElement("ul",(0,S.Z)({className:Ce()(Gt,"".concat(Gt,"-simple"),(0,me.Z)({},"".concat(Gt,"-disabled"),Sn),Pr),style:Tn,ref:this.paginationNode},Dl),Oa,_s?w.createElement("li",{title:er?br.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Ce()("".concat(Gt,"-prev"),(0,me.Z)({},"".concat(Gt,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},_s):null,w.createElement("li",{title:er?"".concat(Ps,"/").concat(ir):null,className:"".concat(Gt,"-simple-pager")},w.createElement("input",{type:"text",value:To,disabled:Sn,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),w.createElement("span",{className:"".concat(Gt,"-slash")},"/"),ir),w.createElement("li",{title:er?br.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Ce()("".concat(Gt,"-next"),(0,me.Z)({},"".concat(Gt,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(ul)),Ho)}if(ir<=3+eo*2){var wl={locale:br,rootPrefixCls:Gt,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:er,itemRender:cr};ir||xi.push(w.createElement(lc,(0,S.Z)({},wl,{key:"noPager",page:1,className:"".concat(Gt,"-item-disabled")})));for(var nl=1;nl<=ir;nl+=1){var mc=Ps===nl;xi.push(w.createElement(lc,(0,S.Z)({},wl,{key:nl,page:nl,active:mc})))}}else{var pl=kt?br.prev_3:br.prev_5,ic=kt?br.next_3:br.next_5,va=cr(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Ai,"prev page")),qu=cr(this.getJumpNextPage(),"jump-next",this.getItemIcon(De,"next page"));Br&&(ji=va?w.createElement("li",{title:er?pl:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:Ce()("".concat(Gt,"-jump-prev"),(0,me.Z)({},"".concat(Gt,"-jump-prev-custom-icon"),!!Ai))},va):null,is=qu?w.createElement("li",{title:er?ic:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Ce()("".concat(Gt,"-jump-next"),(0,me.Z)({},"".concat(Gt,"-jump-next-custom-icon"),!!De))},qu):null),aa=w.createElement(lc,{locale:br,last:!0,rootPrefixCls:Gt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ir,page:ir,active:!1,showTitle:er,itemRender:cr}),Ds=w.createElement(lc,{locale:br,rootPrefixCls:Gt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:er,itemRender:cr});var $l=Math.max(1,Ps-eo),su=Math.min(Ps+eo,ir);Ps-1<=eo&&(su=1+eo*2),ir-Ps<=eo&&($l=ir-eo*2);for(var tu=$l;tu<=su;tu+=1){var Gs=Ps===tu;xi.push(w.createElement(lc,{locale:br,rootPrefixCls:Gt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:tu,page:tu,active:Gs,showTitle:er,itemRender:cr}))}Ps-1>=eo*2&&Ps!==1+2&&(xi[0]=(0,w.cloneElement)(xi[0],{className:"".concat(Gt,"-item-after-jump-prev")}),xi.unshift(ji)),ir-Ps>=eo*2&&Ps!==ir-2&&(xi[xi.length-1]=(0,w.cloneElement)(xi[xi.length-1],{className:"".concat(Gt,"-item-before-jump-next")}),xi.push(is)),$l!==1&&xi.unshift(Ds),su!==ir&&xi.push(aa)}var Kc=!this.hasPrev()||!ir,Le=!this.hasNext()||!ir,Oe=this.renderPrev(vs),et=this.renderNext(ul);return w.createElement("ul",(0,S.Z)({className:Ce()(Gt,Pr,(0,me.Z)({},"".concat(Gt,"-disabled"),Sn)),style:Tn,ref:this.paginationNode},Dl),Oa,Oe?w.createElement("li",{title:er?br.prev_page:null,onClick:this.prev,tabIndex:Kc?null:0,onKeyPress:this.runIfEnterPrev,className:Ce()("".concat(Gt,"-prev"),(0,me.Z)({},"".concat(Gt,"-disabled"),Kc)),"aria-disabled":Kc},Oe):null,xi,et?w.createElement("li",{title:er?br.next_page:null,onClick:this.next,tabIndex:Le?null:0,onKeyPress:this.runIfEnterNext,className:Ce()("".concat(Gt,"-next"),(0,me.Z)({},"".concat(Gt,"-disabled"),Le)),"aria-disabled":Le},et):null,w.createElement(fu,{disabled:Sn,locale:br,rootPrefixCls:Gt,selectComponentClass:Zo,selectPrefixCls:js,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Ps,pageSize:ha,pageSizeOptions:ba,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:or}))}}],[{key:"getDerivedStateFromProps",value:function($t,Gt){var Pr={};if("current"in $t&&(Pr.current=$t.current,$t.current!==Gt.current&&(Pr.currentInputValue=Pr.current)),"pageSize"in $t&&$t.pageSize!==Gt.pageSize){var Tn=Gt.current,Sn=th($t.pageSize,Gt,$t);Tn=Tn>Sn?Sn:Tn,"current"in $t||(Pr.current=Tn,Pr.currentInputValue=Tn),Pr.pageSize=$t.pageSize}return Pr}}]),Ft}(w.Component);Xd.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Ic,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Ic,locale:El,style:{},itemRender:zd,totalBoundaryShowSizeChanger:50};var sd=Xd,Mu=m(62906),Fc=m(10110),hd=m(34041);const vd=Ye=>w.createElement(hd.Z,Object.assign({},Ye,{showSearch:!0,size:"small"})),Yd=Ye=>w.createElement(hd.Z,Object.assign({},Ye,{showSearch:!0,size:"middle"}));vd.Option=hd.Z.Option,Yd.Option=hd.Z.Option;var nh=m(47673),Wd=m(14747),yh=m(67968),id=m(45503);const nd=Ye=>{const{componentCls:gt}=Ye;return{[`${gt}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${gt}-item-link`]:{color:Ye.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${gt}-item-link`]:{color:Ye.colorTextDisabled,cursor:"not-allowed"}}},[`&${gt}-disabled`]:{cursor:"not-allowed",[`${gt}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Ye.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Ye.colorBorder,backgroundColor:Ye.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Ye.itemActiveBgDisabled},a:{color:Ye.itemActiveColorDisabled}}},[`${gt}-item-link`]:{color:Ye.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${gt}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${gt}-simple-pager`]:{color:Ye.colorTextDisabled},[`${gt}-jump-prev, ${gt}-jump-next`]:{[`${gt}-item-link-icon`]:{opacity:0},[`${gt}-item-ellipsis`]:{opacity:1}}},[`&${gt}-simple`]:{[`${gt}-prev, ${gt}-next`]:{[`&${gt}-disabled ${gt}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Pf=Ye=>{const{componentCls:gt}=Ye;return{[`&${gt}-mini ${gt}-total-text, &${gt}-mini ${gt}-simple-pager`]:{height:Ye.itemSizeSM,lineHeight:`${Ye.itemSizeSM}px`},[`&${gt}-mini ${gt}-item`]:{minWidth:Ye.itemSizeSM,height:Ye.itemSizeSM,margin:0,lineHeight:`${Ye.itemSizeSM-2}px`},[`&${gt}-mini:not(${gt}-disabled) ${gt}-item:not(${gt}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:Ye.colorBgTextHover},"&:active":{backgroundColor:Ye.colorBgTextActive}},[`&${gt}-mini ${gt}-prev, &${gt}-mini ${gt}-next`]:{minWidth:Ye.itemSizeSM,height:Ye.itemSizeSM,margin:0,lineHeight:`${Ye.itemSizeSM}px`},[`&${gt}-mini:not(${gt}-disabled)`]:{[`${gt}-prev, ${gt}-next`]:{[`&:hover ${gt}-item-link`]:{backgroundColor:Ye.colorBgTextHover},[`&:active ${gt}-item-link`]:{backgroundColor:Ye.colorBgTextActive},[`&${gt}-disabled:hover ${gt}-item-link`]:{backgroundColor:"transparent"}}},[` - &${gt}-mini ${gt}-prev ${gt}-item-link, - &${gt}-mini ${gt}-next ${gt}-item-link - `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Ye.itemSizeSM,lineHeight:`${Ye.itemSizeSM}px`}},[`&${gt}-mini ${gt}-jump-prev, &${gt}-mini ${gt}-jump-next`]:{height:Ye.itemSizeSM,marginInlineEnd:0,lineHeight:`${Ye.itemSizeSM}px`},[`&${gt}-mini ${gt}-options`]:{marginInlineStart:Ye.paginationMiniOptionsMarginInlineStart,["&-size-changer"]:{top:Ye.miniOptionsSizeChangerTop},["&-quick-jumper"]:{height:Ye.itemSizeSM,lineHeight:`${Ye.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,nh.x0)(Ye)),{width:Ye.paginationMiniQuickJumperInputWidth,height:Ye.controlHeightSM})}}}},Jd=Ye=>{const{componentCls:gt}=Ye;return{[` - &${gt}-simple ${gt}-prev, - &${gt}-simple ${gt}-next - `]:{height:Ye.itemSizeSM,lineHeight:`${Ye.itemSizeSM}px`,verticalAlign:"top",[`${gt}-item-link`]:{height:Ye.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Ye.colorBgTextHover},"&:active":{backgroundColor:Ye.colorBgTextActive},"&::after":{height:Ye.itemSizeSM,lineHeight:`${Ye.itemSizeSM}px`}}},[`&${gt}-simple ${gt}-simple-pager`]:{display:"inline-block",height:Ye.itemSizeSM,marginInlineEnd:Ye.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:Ye.marginXS,padding:`0 ${Ye.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:Ye.itemInputBg,border:`${Ye.lineWidth}px ${Ye.lineType} ${Ye.colorBorder}`,borderRadius:Ye.borderRadius,outline:"none",transition:`border-color ${Ye.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Ye.colorPrimary},"&:focus":{borderColor:Ye.colorPrimaryHover,boxShadow:`${Ye.inputOutlineOffset}px 0 ${Ye.controlOutlineWidth}px ${Ye.controlOutline}`},"&[disabled]":{color:Ye.colorTextDisabled,backgroundColor:Ye.colorBgContainerDisabled,borderColor:Ye.colorBorder,cursor:"not-allowed"}}}}},cc=Ye=>{const{componentCls:gt}=Ye;return{[`${gt}-jump-prev, ${gt}-jump-next`]:{outline:0,[`${gt}-item-container`]:{position:"relative",[`${gt}-item-link-icon`]:{color:Ye.colorPrimary,fontSize:Ye.fontSizeSM,opacity:0,transition:`all ${Ye.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${gt}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Ye.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:Ye.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Ye.paginationEllipsisTextIndent,opacity:1,transition:`all ${Ye.motionDurationMid}`}},"&:hover":{[`${gt}-item-link-icon`]:{opacity:1},[`${gt}-item-ellipsis`]:{opacity:0}}},[` - ${gt}-prev, - ${gt}-jump-prev, - ${gt}-jump-next + `]:{animationName:k,animationPlayState:"running"},[`${C}${z}-leave${z}-leave-active`]:{animationName:N,animationPlayState:"running",pointerEvents:"none"}}}},40659:function(nt,V,m){"use strict";m.d(V,{Fm:function(){return P}});var y=m(84608),I=m(73661);const b=new y.E4("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),z=new y.E4("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),k=new y.E4("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),N=new y.E4("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),w=new y.E4("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),A=new y.E4("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),C=new y.E4("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),f=new y.E4("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),S={"move-up":{inKeyframes:C,outKeyframes:f},"move-down":{inKeyframes:b,outKeyframes:z},"move-left":{inKeyframes:k,outKeyframes:N},"move-right":{inKeyframes:w,outKeyframes:A}},P=(W,ne)=>{const{antCls:re}=W,ce=`${re}-${ne}`,{inKeyframes:pe,outKeyframes:he}=S[ne];return[(0,I.R)(ce,pe,he,W.motionDurationMid),{[` + ${ce}-enter, + ${ce}-appear + `]:{opacity:0,animationTimingFunction:W.motionEaseOutCirc},[`${ce}-leave`]:{animationTimingFunction:W.motionEaseInOutCirc}}]}},22759:function(nt,V,m){"use strict";m.d(V,{Qt:function(){return k},Uw:function(){return z},fJ:function(){return b},ly:function(){return N},oN:function(){return P}});var y=m(84608),I=m(73661);const b=new y.E4("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),z=new y.E4("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),k=new y.E4("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),N=new y.E4("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),w=new y.E4("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),A=new y.E4("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),C=new y.E4("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),f=new y.E4("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),S={"slide-up":{inKeyframes:b,outKeyframes:z},"slide-down":{inKeyframes:k,outKeyframes:N},"slide-left":{inKeyframes:w,outKeyframes:A},"slide-right":{inKeyframes:C,outKeyframes:f}},P=(W,ne)=>{const{antCls:re}=W,ce=`${re}-${ne}`,{inKeyframes:pe,outKeyframes:he}=S[ne];return[(0,I.R)(ce,pe,he,W.motionDurationMid),{[` + ${ce}-enter, + ${ce}-appear + `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:W.motionEaseOutQuint,["&-prepare"]:{transform:"scale(1)"}},[`${ce}-leave`]:{animationTimingFunction:W.motionEaseInQuint}}]}},69601:function(nt,V,m){"use strict";m.d(V,{_y:function(){return ce},kr:function(){return b}});var y=m(84608),I=m(73661);const b=new y.E4("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),z=new y.E4("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),k=new y.E4("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),N=new y.E4("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),w=new y.E4("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),A=new y.E4("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),C=new y.E4("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),f=new y.E4("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),S=new y.E4("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),P=new y.E4("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),W=new y.E4("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),ne=new y.E4("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),re={zoom:{inKeyframes:b,outKeyframes:z},"zoom-big":{inKeyframes:k,outKeyframes:N},"zoom-big-fast":{inKeyframes:k,outKeyframes:N},"zoom-left":{inKeyframes:C,outKeyframes:f},"zoom-right":{inKeyframes:S,outKeyframes:P},"zoom-up":{inKeyframes:w,outKeyframes:A},"zoom-down":{inKeyframes:W,outKeyframes:ne}},ce=(pe,he)=>{const{antCls:fe}=pe,Be=`${fe}-${he}`,{inKeyframes:Ie,outKeyframes:We}=re[he];return[(0,I.R)(Be,Ie,We,he==="zoom-big-fast"?pe.motionDurationFast:pe.motionDurationMid),{[` + ${Be}-enter, + ${Be}-appear + `]:{transform:"scale(0)",opacity:0,animationTimingFunction:pe.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${Be}-leave`]:{animationTimingFunction:pe.motionEaseInOutCirc}}]}},24967:function(nt,V,m){"use strict";m.d(V,{N:function(){return y}});const y=I=>({color:I.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${I.motionDurationSlow}`,"&:focus, &:hover":{color:I.colorLinkHover},"&:active":{color:I.colorLinkActive}})},72881:function(nt,V,m){"use strict";m.d(V,{qN:function(){return I},ZP:function(){return k},fS:function(){return b}});const y=(N,w,A,C,f)=>{const S=N/2,P=0,W=S,ne=A*1/Math.sqrt(2),re=S-A*(1-1/Math.sqrt(2)),ce=S-w*(1/Math.sqrt(2)),pe=A*(Math.sqrt(2)-1)+w*(1/Math.sqrt(2)),he=2*S-ce,fe=pe,Be=2*S-ne,Ie=re,We=2*S-P,De=W,ve=S*Math.sqrt(2)+A*(Math.sqrt(2)-2),ye=A*(Math.sqrt(2)-1);return{pointerEvents:"none",width:N,height:N,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:N,height:N/2,background:C,clipPath:{_multi_value_:!0,value:[`polygon(${ye}px 100%, 50% ${ye}px, ${2*S-ye}px 100%, ${ye}px 100%)`,`path('M ${P} ${W} A ${A} ${A} 0 0 0 ${ne} ${re} L ${ce} ${pe} A ${w} ${w} 0 0 1 ${he} ${fe} L ${Be} ${Ie} A ${A} ${A} 0 0 0 ${We} ${De} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:ve,height:ve,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${w}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:f,zIndex:0,background:"transparent"}}},I=8;function b(N){const w=I,{contentRadius:A,limitVerticalRadius:C}=N,f=A>12?A+2:12;return{dropdownArrowOffset:f,dropdownArrowOffsetVertical:C?w:f}}function z(N,w){return N?w:{}}function k(N,w){const{componentCls:A,sizePopupArrow:C,borderRadiusXS:f,borderRadiusOuter:S,boxShadowPopoverArrow:P}=N,{colorBg:W,contentRadius:ne=N.borderRadiusLG,limitVerticalRadius:re,arrowDistance:ce=0,arrowPlacement:pe={left:!0,right:!0,top:!0,bottom:!0}}=w,{dropdownArrowOffsetVertical:he,dropdownArrowOffset:fe}=b({contentRadius:ne,limitVerticalRadius:re});return{[A]:Object.assign(Object.assign(Object.assign(Object.assign({[`${A}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},y(C,f,S,W,P)),{"&:before":{background:W}})]},z(!!pe.top,{[[`&-placement-top ${A}-arrow`,`&-placement-topLeft ${A}-arrow`,`&-placement-topRight ${A}-arrow`].join(",")]:{bottom:ce,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${A}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${A}-arrow`]:{left:{_skip_check_:!0,value:fe}},[`&-placement-topRight ${A}-arrow`]:{right:{_skip_check_:!0,value:fe}}})),z(!!pe.bottom,{[[`&-placement-bottom ${A}-arrow`,`&-placement-bottomLeft ${A}-arrow`,`&-placement-bottomRight ${A}-arrow`].join(",")]:{top:ce,transform:"translateY(-100%)"},[`&-placement-bottom ${A}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${A}-arrow`]:{left:{_skip_check_:!0,value:fe}},[`&-placement-bottomRight ${A}-arrow`]:{right:{_skip_check_:!0,value:fe}}})),z(!!pe.left,{[[`&-placement-left ${A}-arrow`,`&-placement-leftTop ${A}-arrow`,`&-placement-leftBottom ${A}-arrow`].join(",")]:{right:{_skip_check_:!0,value:ce},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${A}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${A}-arrow`]:{top:he},[`&-placement-leftBottom ${A}-arrow`]:{bottom:he}})),z(!!pe.right,{[[`&-placement-right ${A}-arrow`,`&-placement-rightTop ${A}-arrow`,`&-placement-rightBottom ${A}-arrow`].join(",")]:{left:{_skip_check_:!0,value:ce},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${A}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${A}-arrow`]:{top:he},[`&-placement-rightBottom ${A}-arrow`]:{bottom:he}}))}}},60254:function(nt,V,m){"use strict";m.d(V,{Z:function(){return je}});var y=m(77617),I=m(38521),b=m(12124),z=m.n(b),k=m(26508),N=m(80268),w=m(39718),A=m(52528),C=m(41760),f=m(38251),S=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],P=y.forwardRef(function(xe,Pt){var ct,He=xe.prefixCls,wt=He===void 0?"rc-switch":He,dt=xe.className,Bt=xe.checked,gt=xe.defaultChecked,_n=xe.disabled,Bn=xe.loadingIcon,Er=xe.checkedChildren,Yr=xe.unCheckedChildren,oi=xe.onClick,to=xe.onChange,yo=xe.onKeyDown,yr=(0,A.Z)(xe,S),Po=(0,C.Z)(!1,{value:Bt,defaultValue:gt}),as=(0,w.Z)(Po,2),ge=as[0],_o=as[1];function ci(ln,Ve){var _t=ge;return _n||(_t=ln,_o(_t),to==null||to(_t,Ve)),_t}function Bi(ln){ln.which===f.Z.LEFT?ci(!1,ln):ln.which===f.Z.RIGHT&&ci(!0,ln),yo==null||yo(ln)}function Ci(ln){var Ve=ci(!ge,ln);oi==null||oi(Ve,ln)}var io=z()(wt,dt,(ct={},(0,N.Z)(ct,"".concat(wt,"-checked"),ge),(0,N.Z)(ct,"".concat(wt,"-disabled"),_n),ct));return y.createElement("button",(0,k.Z)({},yr,{type:"button",role:"switch","aria-checked":ge,disabled:_n,className:io,ref:Pt,onKeyDown:Bi,onClick:Ci}),Bn,y.createElement("span",{className:"".concat(wt,"-inner")},y.createElement("span",{className:"".concat(wt,"-inner-checked")},Er),y.createElement("span",{className:"".concat(wt,"-inner-unchecked")},Yr)))});P.displayName="Switch";var W=P,ne=m(27724),re=m(67392),ce=m(81689),pe=m(21843),he=m(64993),fe=m(92068),Be=m(24577),Ie=m(41788);const We=xe=>{const{componentCls:Pt,trackHeightSM:ct,trackPadding:He,trackMinWidthSM:wt,innerMinMarginSM:dt,innerMaxMarginSM:Bt,handleSizeSM:gt}=xe,_n=`${Pt}-inner`;return{[Pt]:{[`&${Pt}-small`]:{minWidth:wt,height:ct,lineHeight:`${ct}px`,[`${Pt}-inner`]:{paddingInlineStart:Bt,paddingInlineEnd:dt,[`${_n}-checked`]:{marginInlineStart:`calc(-100% + ${gt+He*2}px - ${Bt*2}px)`,marginInlineEnd:`calc(100% - ${gt+He*2}px + ${Bt*2}px)`},[`${_n}-unchecked`]:{marginTop:-ct,marginInlineStart:0,marginInlineEnd:0}},[`${Pt}-handle`]:{width:gt,height:gt},[`${Pt}-loading-icon`]:{top:(gt-xe.switchLoadingIconSize)/2,fontSize:xe.switchLoadingIconSize},[`&${Pt}-checked`]:{[`${Pt}-inner`]:{paddingInlineStart:dt,paddingInlineEnd:Bt,[`${_n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${_n}-unchecked`]:{marginInlineStart:`calc(100% - ${gt+He*2}px + ${Bt*2}px)`,marginInlineEnd:`calc(-100% + ${gt+He*2}px - ${Bt*2}px)`}},[`${Pt}-handle`]:{insetInlineStart:`calc(100% - ${gt+He}px)`}},[`&:not(${Pt}-disabled):active`]:{[`&:not(${Pt}-checked) ${_n}`]:{[`${_n}-unchecked`]:{marginInlineStart:xe.marginXXS/2,marginInlineEnd:-xe.marginXXS/2}},[`&${Pt}-checked ${_n}`]:{[`${_n}-checked`]:{marginInlineStart:-xe.marginXXS/2,marginInlineEnd:xe.marginXXS/2}}}}}}},De=xe=>{const{componentCls:Pt,handleSize:ct}=xe;return{[Pt]:{[`${Pt}-loading-icon${xe.iconCls}`]:{position:"relative",top:(ct-xe.fontSize)/2,color:xe.switchLoadingIconColor,verticalAlign:"top"},[`&${Pt}-checked ${Pt}-loading-icon`]:{color:xe.switchColor}}}},ve=xe=>{const{componentCls:Pt,motion:ct,trackPadding:He,handleBg:wt,handleShadow:dt,handleSize:Bt}=xe,gt=`${Pt}-handle`;return{[Pt]:{[gt]:{position:"absolute",top:He,insetInlineStart:He,width:Bt,height:Bt,transition:`all ${xe.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:wt,borderRadius:Bt/2,boxShadow:dt,transition:`all ${xe.switchDuration} ease-in-out`,content:'""'}},[`&${Pt}-checked ${gt}`]:{insetInlineStart:`calc(100% - ${Bt+He}px)`},[`&:not(${Pt}-disabled):active`]:ct?{[`${gt}::before`]:{insetInlineEnd:xe.switchHandleActiveInset,insetInlineStart:0},[`&${Pt}-checked ${gt}::before`]:{insetInlineEnd:0,insetInlineStart:xe.switchHandleActiveInset}}:{}}}},ye=xe=>{const{componentCls:Pt,trackHeight:ct,trackPadding:He,innerMinMargin:wt,innerMaxMargin:dt,handleSize:Bt}=xe,gt=`${Pt}-inner`;return{[Pt]:{[gt]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:dt,paddingInlineEnd:wt,transition:`padding-inline-start ${xe.switchDuration} ease-in-out, padding-inline-end ${xe.switchDuration} ease-in-out`,[`${gt}-checked, ${gt}-unchecked`]:{display:"block",color:xe.colorTextLightSolid,fontSize:xe.fontSizeSM,transition:`margin-inline-start ${xe.switchDuration} ease-in-out, margin-inline-end ${xe.switchDuration} ease-in-out`,pointerEvents:"none"},[`${gt}-checked`]:{marginInlineStart:`calc(-100% + ${Bt+He*2}px - ${dt*2}px)`,marginInlineEnd:`calc(100% - ${Bt+He*2}px + ${dt*2}px)`},[`${gt}-unchecked`]:{marginTop:-ct,marginInlineStart:0,marginInlineEnd:0}},[`&${Pt}-checked ${gt}`]:{paddingInlineStart:wt,paddingInlineEnd:dt,[`${gt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${gt}-unchecked`]:{marginInlineStart:`calc(100% - ${Bt+He*2}px + ${dt*2}px)`,marginInlineEnd:`calc(-100% + ${Bt+He*2}px - ${dt*2}px)`}},[`&:not(${Pt}-disabled):active`]:{[`&:not(${Pt}-checked) ${gt}`]:{[`${gt}-unchecked`]:{marginInlineStart:He*2,marginInlineEnd:-He*2}},[`&${Pt}-checked ${gt}`]:{[`${gt}-checked`]:{marginInlineStart:-He*2,marginInlineEnd:He*2}}}}}},we=xe=>{const{componentCls:Pt,trackHeight:ct,trackMinWidth:He}=xe;return{[Pt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,fe.Wf)(xe)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:He,height:ct,lineHeight:`${ct}px`,verticalAlign:"middle",background:xe.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${xe.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Pt}-disabled)`]:{background:xe.colorTextTertiary}}),(0,fe.Qy)(xe)),{[`&${Pt}-checked`]:{background:xe.switchColor,[`&:hover:not(${Pt}-disabled)`]:{background:xe.colorPrimaryHover}},[`&${Pt}-loading, &${Pt}-disabled`]:{cursor:"not-allowed",opacity:xe.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Pt}-rtl`]:{direction:"rtl"}})}};var Ce=(0,Be.Z)("Switch",xe=>{const Pt=(0,Ie.TS)(xe,{switchDuration:xe.motionDurationMid,switchColor:xe.colorPrimary,switchDisabledOpacity:xe.opacityLoading,switchLoadingIconSize:xe.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${xe.opacityLoading})`,switchHandleActiveInset:"-30%"});return[we(Pt),ye(Pt),ve(Pt),De(Pt),We(Pt)]},xe=>{const{fontSize:Pt,lineHeight:ct,controlHeight:He,colorWhite:wt}=xe,dt=Pt*ct,Bt=He/2,gt=2,_n=dt-gt*2,Bn=Bt-gt*2;return{trackHeight:dt,trackHeightSM:Bt,trackMinWidth:_n*2+gt*4,trackMinWidthSM:Bn*2+gt*2,trackPadding:gt,handleBg:wt,handleSize:_n,handleSizeSM:Bn,handleShadow:`0 2px 4px 0 ${new he.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:_n/2,innerMaxMargin:_n+gt+gt*2,innerMinMarginSM:Bn/2,innerMaxMarginSM:Bn+gt+gt*2}}),Ae=function(xe,Pt){var ct={};for(var He in xe)Object.prototype.hasOwnProperty.call(xe,He)&&Pt.indexOf(He)<0&&(ct[He]=xe[He]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wt=0,He=Object.getOwnPropertySymbols(xe);wt{const{prefixCls:ct,size:He,disabled:wt,loading:dt,className:Bt,rootClassName:gt,style:_n}=xe,Bn=Ae(xe,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:Er,direction:Yr,switch:oi}=y.useContext(re.E_),to=y.useContext(ce.Z),yo=(wt!=null?wt:to)||dt,yr=Er("switch",ct),Po=y.createElement("div",{className:`${yr}-handle`},dt&&y.createElement(I.Z,{className:`${yr}-loading-icon`})),[as,ge]=Ce(yr),_o=(0,pe.Z)(He),ci=z()(oi==null?void 0:oi.className,{[`${yr}-small`]:_o==="small",[`${yr}-loading`]:dt,[`${yr}-rtl`]:Yr==="rtl"},Bt,gt,ge),Bi=Object.assign(Object.assign({},oi==null?void 0:oi.style),_n);return as(y.createElement(ne.Z,{component:"Switch"},y.createElement(W,Object.assign({},Bn,{prefixCls:yr,className:ci,style:Bi,disabled:yo,ref:Pt,loadingIcon:Po}))))});me.__ANT_SWITCH=!0;var je=me},2815:function(nt,V,m){"use strict";m.d(V,{Z:function(){return Ls}});var y={},I="rc-table-internal-hook",b=m(39718),z=m(61759),k=m(62305),N=m(68554),w=m(77617),A=m(79161);function C(Ye){var mt=w.createContext(void 0),Ft=function($t){var Gt=$t.value,Pr=$t.children,Dn=w.useRef(Gt);Dn.current=Gt;var Sn=w.useState(function(){return{getValue:function(){return Dn.current},listeners:new Set}}),cn=(0,b.Z)(Sn,1),Jn=cn[0];return(0,k.Z)(function(){(0,A.unstable_batchedUpdates)(function(){Jn.listeners.forEach(function(xr){xr(Gt)})})},[Gt]),w.createElement(mt.Provider,{value:Jn},Pr)};return{Context:mt,Provider:Ft,defaultValue:Ye}}function f(Ye,mt){var Ft=(0,z.Z)(typeof mt=="function"?mt:function(xr){if(mt===void 0)return xr;if(!Array.isArray(mt))return xr[mt];var So={};return mt.forEach(function(kt){So[kt]=xr[kt]}),So}),Dt=w.useContext(Ye==null?void 0:Ye.Context),$t=Dt||{},Gt=$t.listeners,Pr=$t.getValue,Dn=w.useRef();Dn.current=Ft(Dt?Pr():Ye==null?void 0:Ye.defaultValue);var Sn=w.useState({}),cn=(0,b.Z)(Sn,2),Jn=cn[1];return(0,k.Z)(function(){if(!Dt)return;function xr(So){var kt=Ft(So);(0,N.Z)(Dn.current,kt,!0)||Jn({})}return Gt.add(xr),function(){Gt.delete(xr)}},[Dt]),Dn.current}var S=m(26508),P=m(9681);function W(){var Ye=w.createContext(null);function mt(){return w.useContext(Ye)}function Ft($t,Gt){var Pr=(0,P.Yr)($t),Dn=function(cn,Jn){var xr=Pr?{ref:Jn}:{},So=w.useRef(0),kt=w.useRef(cn),er=mt();return er!==null?w.createElement($t,(0,S.Z)({},cn,xr)):((!Gt||Gt(kt.current,cn))&&(So.current+=1),kt.current=cn,w.createElement(Ye.Provider,{value:So.current},w.createElement($t,(0,S.Z)({},cn,xr))))};return Pr?w.forwardRef(Dn):Dn}function Dt($t,Gt){var Pr=(0,P.Yr)($t),Dn=function(cn,Jn){var xr=Pr?{ref:Jn}:{};return mt(),w.createElement($t,(0,S.Z)({},cn,xr))};return Pr?w.memo(w.forwardRef(Dn),Gt):w.memo(Dn,Gt)}return{makeImmutable:Ft,responseImmutable:Dt,useImmutableMark:mt}}var ne=W(),re=ne.makeImmutable,ce=ne.responseImmutable,pe=ne.useImmutableMark,he=W(),fe=he.makeImmutable,Be=he.responseImmutable,Ie=he.useImmutableMark,We=C(),De=We;function ve(Ye,mt){var Ft=w.useRef(0);Ft.current+=1;var Dt=w.useRef(Ye),$t=[];Object.keys(Ye||{}).map(function(Pr){var Dn;(Ye==null?void 0:Ye[Pr])!==((Dn=Dt.current)===null||Dn===void 0?void 0:Dn[Pr])&&$t.push(Pr)}),Dt.current=Ye;var Gt=w.useRef([]);return $t.length&&(Gt.current=$t),w.useDebugValue(Ft.current),w.useDebugValue(Gt.current.join(", ")),mt&&console.log("".concat(mt,":"),Ft.current,Gt.current),Ft.current}var ye=null,we=w.memo(function(){var Ye=ve();return w.createElement("h1",null,"Render Times: ",Ye)});we.displayName="RenderBlock";var Ce=m(91002),Ae=m(74710),me=m(80268),je=m(12124),xe=m.n(je),Pt=m(79102),ct=m(84249),He=m(46644),wt=w.createContext({renderWithProps:!1}),dt=wt,Bt="RC_TABLE_KEY";function gt(Ye){return Ye==null?[]:Array.isArray(Ye)?Ye:[Ye]}function _n(Ye){var mt=[],Ft={};return Ye.forEach(function(Dt){for(var $t=Dt||{},Gt=$t.key,Pr=$t.dataIndex,Dn=Gt||gt(Pr).join("-")||Bt;Ft[Dn];)Dn="".concat(Dn,"_next");Ft[Dn]=!0,mt.push(Dn)}),mt}function Bn(Ye){return Ye!=null}function Er(Ye){return Ye&&(0,Ce.Z)(Ye)==="object"&&!Array.isArray(Ye)&&!w.isValidElement(Ye)}function Yr(Ye,mt,Ft,Dt,$t,Gt){var Pr=w.useContext(dt),Dn=Ie(),Sn=(0,Pt.Z)(function(){if(Bn(Dt))return[Dt];var cn=mt==null||mt===""?[]:Array.isArray(mt)?mt:[mt],Jn=(0,ct.Z)(Ye,cn),xr=Jn,So=void 0;if($t){var kt=$t(Jn,Ye,Ft);Er(kt)?(xr=kt.children,So=kt.props,Pr.renderWithProps=!0):xr=kt}return[xr,So]},[Dn,Ye,Dt,mt,$t,Ft],function(cn,Jn){if(Gt){var xr=(0,b.Z)(cn,2),So=xr[1],kt=(0,b.Z)(Jn,2),er=kt[1];return Gt(er,So)}return Pr.renderWithProps?!0:!(0,N.Z)(cn,Jn,!0)});return Sn}function oi(Ye,mt,Ft,Dt){var $t=Ye+mt-1;return Ye<=Dt&&$t>=Ft}function to(Ye,mt){return f(De,function(Ft){var Dt=oi(Ye,mt||1,Ft.hoverStartRow,Ft.hoverEndRow);return[Dt,Ft.onHover]})}var yo=function(mt){var Ft=mt.ellipsis,Dt=mt.rowType,$t=mt.children,Gt,Pr=Ft===!0?{showTitle:!0}:Ft;return Pr&&(Pr.showTitle||Dt==="header")&&(typeof $t=="string"||typeof $t=="number"?Gt=$t.toString():w.isValidElement($t)&&typeof $t.props.children=="string"&&(Gt=$t.props.children)),Gt};function yr(Ye){var mt,Ft,Dt,$t,Gt,Pr,Dn,Sn,cn=Ye.component,Jn=Ye.children,xr=Ye.ellipsis,So=Ye.scope,kt=Ye.prefixCls,er=Ye.className,In=Ye.align,rr=Ye.record,cr=Ye.render,Br=Ye.dataIndex,Ai=Ye.renderIndex,Ee=Ye.shouldCellUpdate,Zo=Ye.index,Ws=Ye.rowType,ba=Ye.colSpan,aa=Ye.rowSpan,Ps=Ye.fixLeft,ha=Ye.fixRight,To=Ye.firstFixLeft,ir=Ye.lastFixLeft,bi=Ye.firstFixRight,Wi=Ye.lastFixRight,os=Ye.appendNode,Ds=Ye.additionalProps,la=Ds===void 0?{}:Ds,Ho=Ye.isSticky,or="".concat(kt,"-cell"),eo=f(De,["supportSticky","allColumnsFixedLeft"]),vs=eo.supportSticky,ll=eo.allColumnsFixedLeft,Dl=Yr(rr,Br,Ai,Jn,cr,Ee),Oa=(0,b.Z)(Dl,2),_s=Oa[0],wl=Oa[1],nl={},mc=typeof Ps=="number"&&vs,fl=typeof ha=="number"&&vs;mc&&(nl.position="sticky",nl.left=Ps),fl&&(nl.position="sticky",nl.right=ha);var oc=(mt=(Ft=(Dt=wl==null?void 0:wl.colSpan)!==null&&Dt!==void 0?Dt:la.colSpan)!==null&&Ft!==void 0?Ft:ba)!==null&&mt!==void 0?mt:1,va=($t=(Gt=(Pr=wl==null?void 0:wl.rowSpan)!==null&&Pr!==void 0?Pr:la.rowSpan)!==null&&Gt!==void 0?Gt:aa)!==null&&$t!==void 0?$t:1,qu=to(Zo,va),$l=(0,b.Z)(qu,2),su=$l[0],tu=$l[1],Gs=function(ei){var Li;rr&&tu(Zo,Zo+va-1),la==null||(Li=la.onMouseEnter)===null||Li===void 0||Li.call(la,ei)},Gc=function(ei){var Li;rr&&tu(-1,-1),la==null||(Li=la.onMouseLeave)===null||Li===void 0||Li.call(la,ei)};if(oc===0||va===0)return null;var Le=(Dn=la.title)!==null&&Dn!==void 0?Dn:yo({rowType:Ws,ellipsis:xr,children:_s}),Me=xe()(or,er,(Sn={},(0,me.Z)(Sn,"".concat(or,"-fix-left"),mc&&vs),(0,me.Z)(Sn,"".concat(or,"-fix-left-first"),To&&vs),(0,me.Z)(Sn,"".concat(or,"-fix-left-last"),ir&&vs),(0,me.Z)(Sn,"".concat(or,"-fix-left-all"),ir&&ll&&vs),(0,me.Z)(Sn,"".concat(or,"-fix-right"),fl&&vs),(0,me.Z)(Sn,"".concat(or,"-fix-right-first"),bi&&vs),(0,me.Z)(Sn,"".concat(or,"-fix-right-last"),Wi&&vs),(0,me.Z)(Sn,"".concat(or,"-ellipsis"),xr),(0,me.Z)(Sn,"".concat(or,"-with-append"),os),(0,me.Z)(Sn,"".concat(or,"-fix-sticky"),(mc||fl)&&Ho&&vs),(0,me.Z)(Sn,"".concat(or,"-row-hover"),!wl&&su),Sn),la.className,wl==null?void 0:wl.className),et={};In&&(et.textAlign=In);var hn=(0,Ae.Z)((0,Ae.Z)((0,Ae.Z)((0,Ae.Z)({},nl),la.style),et),wl==null?void 0:wl.style),Lr=_s;return(0,Ce.Z)(Lr)==="object"&&!Array.isArray(Lr)&&!w.isValidElement(Lr)&&(Lr=null),xr&&(ir||bi)&&(Lr=w.createElement("span",{className:"".concat(or,"-content")},Lr)),w.createElement(cn,(0,S.Z)({},wl,la,{className:Me,style:hn,title:Le,scope:So,onMouseEnter:Gs,onMouseLeave:Gc,colSpan:oc!==1?oc:null,rowSpan:va!==1?va:null}),os,Lr)}var Po=w.memo(yr);function as(Ye,mt,Ft,Dt,$t,Gt){var Pr=Ft[Ye]||{},Dn=Ft[mt]||{},Sn,cn;Pr.fixed==="left"?Sn=Dt.left[$t==="rtl"?mt:Ye]:Dn.fixed==="right"&&(cn=Dt.right[$t==="rtl"?Ye:mt]);var Jn=!1,xr=!1,So=!1,kt=!1,er=Ft[mt+1],In=Ft[Ye-1],rr=!(Gt!=null&&Gt.children);if($t==="rtl"){if(Sn!==void 0){var cr=In&&In.fixed==="left";kt=!cr&&rr}else if(cn!==void 0){var Br=er&&er.fixed==="right";So=!Br&&rr}}else if(Sn!==void 0){var Ai=er&&er.fixed==="left";Jn=!Ai&&rr}else if(cn!==void 0){var Ee=In&&In.fixed==="right";xr=!Ee&&rr}return{fixLeft:Sn,fixRight:cn,lastFixLeft:Jn,firstFixRight:xr,lastFixRight:So,firstFixLeft:kt,isSticky:Dt.isSticky}}var ge=w.createContext({}),_o=ge;function ci(Ye){var mt=Ye.className,Ft=Ye.index,Dt=Ye.children,$t=Ye.colSpan,Gt=$t===void 0?1:$t,Pr=Ye.rowSpan,Dn=Ye.align,Sn=f(De,["prefixCls","direction"]),cn=Sn.prefixCls,Jn=Sn.direction,xr=w.useContext(_o),So=xr.scrollColumnIndex,kt=xr.stickyOffsets,er=xr.flattenColumns,In=xr.columns,rr=Ft+Gt-1,cr=rr+1===So?Gt+1:Gt,Br=as(Ft,Ft+cr-1,er,kt,Jn,In==null?void 0:In[Ft]);return w.createElement(Po,(0,S.Z)({className:mt,index:Ft,component:"td",prefixCls:cn,record:null,dataIndex:null,align:Dn,colSpan:cr,rowSpan:Pr,render:function(){return Dt}},Br))}var Bi=m(52528),Ci=["children"];function io(Ye){var mt=Ye.children,Ft=(0,Bi.Z)(Ye,Ci);return w.createElement("tr",Ft,mt)}function ln(Ye){var mt=Ye.children;return mt}ln.Row=io,ln.Cell=ci;var Ve=ln;function _t(Ye){var mt=Ye.children,Ft=Ye.stickyOffsets,Dt=Ye.flattenColumns,$t=Ye.columns,Gt=f(De,"prefixCls"),Pr=Dt.length-1,Dn=Dt[Pr],Sn=w.useMemo(function(){return{stickyOffsets:Ft,flattenColumns:Dt,scrollColumnIndex:Dn!=null&&Dn.scrollbar?Pr:null,columns:$t}},[Dn,Dt,Pr,Ft,$t]);return w.createElement(_o.Provider,{value:Sn},w.createElement("tfoot",{className:"".concat(Gt,"-summary")},mt))}var xt=Be(_t),Wt=Ve,on=m(95470),Ot=m(28647),Tt=m(64630),bt=m(8339),Ht=m(9001),Wn=m(5090);function tn(Ye,mt,Ft,Dt,$t,Gt,Pr){Ye.push({record:mt,indent:Ft,index:Pr});var Dn=Gt(mt),Sn=$t==null?void 0:$t.has(Dn);if(mt&&Array.isArray(mt[Dt])&&Sn)for(var cn=0;cn1?To-1:0),bi=1;bi=0;Dn-=1){var Sn=mt[Dn],cn=Ft&&Ft[Dn],Jn=cn&&cn[Un];if(Sn||Jn||Pr){var xr=Jn||{},So=xr.columnType,kt=(0,Bi.Z)(xr,Mr);$t.unshift(w.createElement("col",(0,S.Z)({key:Dn,style:{width:Sn}},kt))),Pr=!0}}return w.createElement("colgroup",null,$t)}var wr=li,qr=m(42371),ii=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function rn(Ye,mt){return(0,w.useMemo)(function(){for(var Ft=[],Dt=0;Dt1?"colgroup":"col":null,ellipsis:rr.ellipsis,align:rr.align,component:rr.title?Gt:Pr,prefixCls:Jn,key:kt[In]},cr,{additionalProps:Br,rowType:"header"}))}))}so.displayName="HeaderRow";var rs=so;function zt(Ye){var mt=[];function Ft(Pr,Dn){var Sn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;mt[Sn]=mt[Sn]||[];var cn=Dn,Jn=Pr.filter(Boolean).map(function(xr){var So={key:xr.key,className:xr.className||"",children:xr.title,column:xr,colStart:cn},kt=1,er=xr.children;return er&&er.length>0&&(kt=Ft(er,cn,Sn+1).reduce(function(In,rr){return In+rr},0),So.hasSubColumns=!0),"colSpan"in xr&&(kt=xr.colSpan),"rowSpan"in xr&&(So.rowSpan=xr.rowSpan),So.colSpan=kt,So.colEnd=So.colStart+kt-1,mt[Sn].push(So),cn+=kt,kt});return Jn}Ft(Ye,0);for(var Dt=mt.length,$t=function(Dn){mt[Dn].forEach(function(Sn){!("rowSpan"in Sn)&&!Sn.hasSubColumns&&(Sn.rowSpan=Dt-Dn)})},Gt=0;Gt1&&arguments[1]!==void 0?arguments[1]:"";return typeof mt=="number"?mt:mt.endsWith("%")?Ye*parseFloat(mt)/100:null}function xi(Ye,mt,Ft){return w.useMemo(function(){if(mt&&mt>0){var Dt=0,$t=0;Ye.forEach(function(So){var kt=ui(mt,So.width);kt?Dt+=kt:$t+=1});var Gt=Math.max(mt-Dt,$t),Pr=$t,Dn=Gt/$t,Sn=0,cn=Ye.map(function(So){var kt=(0,Ae.Z)({},So),er=ui(mt,kt.width);if(er)kt.width=er;else{var In=Math.floor(Dn);kt.width=Pr===1?Gt:In,Gt-=In,Pr-=1}return Sn+=kt.width,kt}),Jn=Math.max(mt,Ft);if(Sn1&&arguments[1]!==void 0?arguments[1]:"key";return Ye.filter(function(Ft){return Ft&&(0,Ce.Z)(Ft)==="object"}).reduce(function(Ft,Dt,$t){var Gt=Dt.fixed,Pr=Gt===!0?"left":Gt,Dn="".concat(mt,"-").concat($t),Sn=Dt.children;return Sn&&Sn.length>0?[].concat((0,qr.Z)(Ft),(0,qr.Z)(ji(Sn,Dn).map(function(cn){return(0,Ae.Z)({fixed:Pr},cn)}))):[].concat((0,qr.Z)(Ft),[(0,Ae.Z)((0,Ae.Z)({key:Dn},Dt),{},{fixed:Pr})])},[])}function Tr(Ye){for(var mt=!0,Ft=0;Ft=0;Gt-=1){var Pr=Ye[Gt];if($t&&Pr.fixed!=="right")$t=!1;else if(!$t&&Pr.fixed==="right"){warning(!1,"Index ".concat(Gt+1," of `columns` missing `fixed='right'` prop."));break}}}function Qt(Ye){return Ye.map(function(mt){var Ft=mt.fixed,Dt=(0,Bi.Z)(mt,Kr),$t=Ft;return Ft==="left"?$t="right":Ft==="right"&&($t="left"),(0,Ae.Z)({fixed:$t},Dt)})}function Gn(Ye,mt){var Ft=Ye.prefixCls,Dt=Ye.columns,$t=Ye.children,Gt=Ye.expandable,Pr=Ye.expandedKeys,Dn=Ye.columnTitle,Sn=Ye.getRowKey,cn=Ye.onTriggerExpand,Jn=Ye.expandIcon,xr=Ye.rowExpandable,So=Ye.expandIconColumnIndex,kt=Ye.direction,er=Ye.expandRowByClick,In=Ye.columnWidth,rr=Ye.fixed,cr=Ye.scrollWidth,Br=Ye.clientWidth,Ai=w.useMemo(function(){return Dt||ti($t)},[Dt,$t]),Ee=w.useMemo(function(){if(Gt){var To,ir=Ai.slice();if(!ir.includes(y)){var bi=So||0;bi>=0&&ir.splice(bi,0,y)}var Wi=ir.indexOf(y);ir=ir.filter(function(Ho,or){return Ho!==y||or===Wi});var os=Ai[Wi],Ds;(rr==="left"||rr)&&!So?Ds="left":(rr==="right"||rr)&&So===Ai.length?Ds="right":Ds=os?os.fixed:null;var la=(To={},(0,me.Z)(To,Un,{className:"".concat(Ft,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,me.Z)(To,"title",Dn),(0,me.Z)(To,"fixed",Ds),(0,me.Z)(To,"className","".concat(Ft,"-row-expand-icon-cell")),(0,me.Z)(To,"width",In),(0,me.Z)(To,"render",function(or,eo,vs){var ll=Sn(eo,vs),Dl=Pr.has(ll),Oa=xr?xr(eo):!0,_s=Jn({prefixCls:Ft,expanded:Dl,expandable:Oa,record:eo,onExpand:cn});return er?w.createElement("span",{onClick:function(nl){return nl.stopPropagation()}},_s):_s}),To);return ir.map(function(Ho){return Ho===y?la:Ho})}return Ai.filter(function(Ho){return Ho!==y})},[Gt,Ai,Sn,Pr,Jn,kt]),Zo=w.useMemo(function(){var To=Ee;return mt&&(To=mt(To)),To.length||(To=[{render:function(){return null}}]),To},[mt,Ee,kt]),Ws=w.useMemo(function(){return kt==="rtl"?Qt(ji(Zo)):ji(Zo)},[Zo,kt,cr]),ba=xi(Ws,cr,Br),aa=(0,b.Z)(ba,2),Ps=aa[0],ha=aa[1];return[Zo,Ps,ha]}var yi=Gn;function Ln(Ye){var mt,Ft=Ye.prefixCls,Dt=Ye.record,$t=Ye.onExpand,Gt=Ye.expanded,Pr=Ye.expandable,Dn="".concat(Ft,"-row-expand-icon");if(!Pr)return w.createElement("span",{className:xe()(Dn,"".concat(Ft,"-row-spaced"))});var Sn=function(Jn){$t(Dt,Jn),Jn.stopPropagation()};return w.createElement("span",{className:xe()(Dn,(mt={},(0,me.Z)(mt,"".concat(Ft,"-row-expanded"),Gt),(0,me.Z)(mt,"".concat(Ft,"-row-collapsed"),!Gt),mt)),onClick:Sn})}function Si(Ye,mt,Ft){var Dt=[];function $t(Gt){(Gt||[]).forEach(function(Pr,Dn){Dt.push(mt(Pr,Dn)),$t(Pr[Ft])})}return $t(Ye),Dt}function tr(Ye,mt,Ft){var Dt=Xn(Ye),$t=Dt.expandIcon,Gt=Dt.expandedRowKeys,Pr=Dt.defaultExpandedRowKeys,Dn=Dt.defaultExpandAllRows,Sn=Dt.expandedRowRender,cn=Dt.onExpand,Jn=Dt.onExpandedRowsChange,xr=Dt.childrenColumnName,So=$t||Ln,kt=xr||"children",er=w.useMemo(function(){return Sn?"row":Ye.expandable&&Ye.internalHooks===I&&Ye.expandable.__PARENT_RENDER_ICON__||mt.some(function(Zo){return Zo&&(0,Ce.Z)(Zo)==="object"&&Zo[kt]})?"nest":!1},[!!Sn,mt]),In=w.useState(function(){return Pr||(Dn?Si(mt,Ft,kt):[])}),rr=(0,b.Z)(In,2),cr=rr[0],Br=rr[1],Ai=w.useMemo(function(){return new Set(Gt||cr||[])},[Gt,cr]),Ee=w.useCallback(function(Zo){var Ws=Ft(Zo,mt.indexOf(Zo)),ba,aa=Ai.has(Ws);aa?(Ai.delete(Ws),ba=(0,qr.Z)(Ai)):ba=[].concat((0,qr.Z)(Ai),[Ws]),Br(ba),cn&&cn(!aa,Zo),Jn&&Jn(ba)},[Ft,Ai,mt,cn,Jn]);return[Dt,er,Ai,So,kt,Ee]}function vi(Ye,mt,Ft,Dt){var $t=Ye.map(function(Gt,Pr){return as(Pr,Pr,Ye,mt,Ft,Dt==null?void 0:Dt[Pr])});return(0,Pt.Z)(function(){return $t},[$t],function(Gt,Pr){return!(0,N.Z)(Gt,Pr)})}function Ni(Ye){var mt=(0,w.useRef)(Ye),Ft=(0,w.useState)({}),Dt=(0,b.Z)(Ft,2),$t=Dt[1],Gt=(0,w.useRef)(null),Pr=(0,w.useRef)([]);function Dn(Sn){Pr.current.push(Sn);var cn=Promise.resolve();Gt.current=cn,cn.then(function(){if(Gt.current===cn){var Jn=Pr.current,xr=mt.current;Pr.current=[],Jn.forEach(function(So){mt.current=So(mt.current)}),Gt.current=null,xr!==mt.current&&$t({})}})}return(0,w.useEffect)(function(){return function(){Gt.current=null}},[]),[mt.current,Dn]}function kr(Ye){var mt=(0,w.useRef)(Ye||null),Ft=(0,w.useRef)();function Dt(){window.clearTimeout(Ft.current)}function $t(Pr){mt.current=Pr,Dt(),Ft.current=window.setTimeout(function(){mt.current=null,Ft.current=void 0},100)}function Gt(){return mt.current}return(0,w.useEffect)(function(){return Dt},[]),[$t,Gt]}function qn(){var Ye=w.useState(-1),mt=(0,b.Z)(Ye,2),Ft=mt[0],Dt=mt[1],$t=w.useState(-1),Gt=(0,b.Z)($t,2),Pr=Gt[0],Dn=Gt[1],Sn=w.useCallback(function(cn,Jn){Dt(cn),Dn(Jn)},[]);return[Ft,Pr,Sn]}var ds=m(53261),_a=(0,ds.Z)()?window:null;function da(Ye,mt){var Ft=(0,Ce.Z)(Ye)==="object"?Ye:{},Dt=Ft.offsetHeader,$t=Dt===void 0?0:Dt,Gt=Ft.offsetSummary,Pr=Gt===void 0?0:Gt,Dn=Ft.offsetScroll,Sn=Dn===void 0?0:Dn,cn=Ft.getContainer,Jn=cn===void 0?function(){return _a}:cn,xr=Jn()||_a;return w.useMemo(function(){var So=!!Ye;return{isSticky:So,stickyClassName:So?"".concat(mt,"-sticky-holder"):"",offsetHeader:$t,offsetSummary:Pr,offsetScroll:Sn,container:xr}},[Sn,$t,Pr,mt,xr])}function zs(Ye,mt,Ft){var Dt=(0,w.useMemo)(function(){for(var $t=[],Gt=[],Pr=0,Dn=0,Sn=0;Sn=xr&&(la=xr-So),Pr({scrollLeft:la/xr*(Jn+2)}),Br.current.x=bi.pageX},ha=function(){if(Gt.current){var bi=Nn(Gt.current).top,Wi=bi+Gt.current.offsetHeight,os=Sn===window?document.documentElement.scrollTop+window.innerHeight:Nn(Sn).top+Sn.clientHeight;Wi-(0,Ht.Z)()<=os||bi>=os-Dn?cr(function(Ds){return(0,Ae.Z)((0,Ae.Z)({},Ds),{},{isHiddenScrollBar:!0})}):cr(function(Ds){return(0,Ae.Z)((0,Ae.Z)({},Ds),{},{isHiddenScrollBar:!1})})}},To=function(bi){cr(function(Wi){return(0,Ae.Z)((0,Ae.Z)({},Wi),{},{scrollLeft:bi/Jn*xr||0})})};return w.useImperativeHandle(Ft,function(){return{setScrollLeft:To}}),w.useEffect(function(){var ir=Fr(document.body,"mouseup",ba,!1),bi=Fr(document.body,"mousemove",Ps,!1);return ha(),function(){ir.remove(),bi.remove()}},[So,Zo]),w.useEffect(function(){var ir=Fr(Sn,"scroll",ha,!1),bi=Fr(window,"resize",ha,!1);return function(){ir.remove(),bi.remove()}},[Sn]),w.useEffect(function(){rr.isHiddenScrollBar||cr(function(ir){var bi=Gt.current;return bi?(0,Ae.Z)((0,Ae.Z)({},ir),{},{scrollLeft:bi.scrollLeft/bi.scrollWidth*bi.clientWidth}):ir})},[rr.isHiddenScrollBar]),Jn<=xr||!So||rr.isHiddenScrollBar?null:w.createElement("div",{style:{height:(0,Ht.Z)(),width:xr,bottom:Dn},className:"".concat(cn,"-sticky-scroll")},w.createElement("div",{onMouseDown:aa,ref:kt,className:xe()("".concat(cn,"-sticky-scroll-bar"),(0,me.Z)({},"".concat(cn,"-sticky-scroll-bar-active"),Zo)),style:{width:"".concat(So,"px"),transform:"translate3d(".concat(rr.scrollLeft,"px, 0, 0)")}}))},ht=w.forwardRef(tt);function vt(Ye){return null}var Fe=vt;function lt(Ye){return null}var Et=lt,an="rc-table",jn=[],Cr={};function Ti(){return"No Data"}function $i(Ye){var mt,Ft=(0,Ae.Z)({rowKey:"key",prefixCls:an,emptyText:Ti},Ye),Dt=Ft.prefixCls,$t=Ft.className,Gt=Ft.rowClassName,Pr=Ft.style,Dn=Ft.data,Sn=Ft.rowKey,cn=Ft.scroll,Jn=Ft.tableLayout,xr=Ft.direction,So=Ft.title,kt=Ft.footer,er=Ft.summary,In=Ft.caption,rr=Ft.id,cr=Ft.showHeader,Br=Ft.components,Ai=Ft.emptyText,Ee=Ft.onRow,Zo=Ft.onHeaderRow,Ws=Ft.internalHooks,ba=Ft.transformColumns,aa=Ft.internalRefs,Ps=Ft.tailor,ha=Ft.getContainerWidth,To=Ft.sticky,ir=Dn||jn,bi=!!ir.length,Wi=Ws===I,os=w.useCallback(function(xc,hh){return(0,ct.Z)(Br,xc)||hh},[Br]),Ds=w.useMemo(function(){return typeof Sn=="function"?Sn:function(xc){var hh=xc&&xc[Sn];return hh}},[Sn]),la=os(["body"]),Ho=qn(),or=(0,b.Z)(Ho,3),eo=or[0],vs=or[1],ll=or[2],Dl=tr(Ft,ir,Ds),Oa=(0,b.Z)(Dl,6),_s=Oa[0],wl=Oa[1],nl=Oa[2],mc=Oa[3],fl=Oa[4],oc=Oa[5],va=cn==null?void 0:cn.x,qu=w.useState(0),$l=(0,b.Z)(qu,2),su=$l[0],tu=$l[1],Gs=yi((0,Ae.Z)((0,Ae.Z)((0,Ae.Z)({},Ft),_s),{},{expandable:!!_s.expandedRowRender,columnTitle:_s.columnTitle,expandedKeys:nl,getRowKey:Ds,onTriggerExpand:oc,expandIcon:mc,expandIconColumnIndex:_s.expandIconColumnIndex,direction:xr,scrollWidth:Wi&&Ps&&typeof va=="number"?va:null,clientWidth:su}),Wi?ba:null),Gc=(0,b.Z)(Gs,3),Le=Gc[0],Me=Gc[1],et=Gc[2],hn=et!=null?et:va,Lr=w.useMemo(function(){return{columns:Le,flattenColumns:Me}},[Le,Me]),Cn=w.useRef(),ei=w.useRef(),Li=w.useRef(),ps=w.useRef(),xa=w.useRef(),Sa=w.useState(!1),_l=(0,b.Z)(Sa,2),Ql=_l[0],Ju=_l[1],ws=w.useState(!1),Ha=(0,b.Z)(ws,2),gr=Ha[0],Ka=Ha[1],Ca=Ni(new Map),Du=(0,b.Z)(Ca,2),Wc=Du[0],Qo=Du[1],Do=_n(Me),As=Do.map(function(xc){return Wc.get(xc)}),wa=w.useMemo(function(){return As},[As.join("_")]),ka=Wa(wa,Me.length,xr),Fs=cn&&Bn(cn.y),gs=cn&&Bn(hn)||!!_s.fixed,Xi=gs&&Me.some(function(xc){var hh=xc.fixed;return hh}),sr=w.useRef(),Rr=da(To,Dt),gi=Rr.isSticky,ls=Rr.offsetHeader,bs=Rr.offsetSummary,Pl=Rr.offsetScroll,Ys=Rr.stickyClassName,ml=Rr.container,mu=w.useMemo(function(){return er==null?void 0:er(ir)},[er,ir]),hc=(Fs||gi)&&w.isValidElement(mu)&&mu.type===Ve&&mu.props.fixed,cd,Oo,Wd;Fs&&(Oo={overflowY:"scroll",maxHeight:cn.y}),gs&&(cd={overflowX:"auto"},Fs||(Oo={overflowY:"hidden"}),Wd={width:hn===!0?"auto":hn,minWidth:"100%"});var fd=w.useCallback(function(xc,hh){(0,Tt.Z)(Cn.current)&&Qo(function(Gd){if(Gd.get(xc)!==hh){var _=new Map(Gd);return _.set(xc,hh),_}return Gd})},[]),lp=kr(null),Qp=(0,b.Z)(lp,2),Xg=Qp[0],Pm=Qp[1];function Rm(xc,hh){hh&&(typeof hh=="function"?hh(xc):hh.scrollLeft!==xc&&(hh.scrollLeft=xc,hh.scrollLeft!==xc&&setTimeout(function(){hh.scrollLeft=xc},0)))}var Vm=(0,z.Z)(function(xc){var hh=xc.currentTarget,Gd=xc.scrollLeft,_=xr==="rtl",R=typeof Gd=="number"?Gd:hh.scrollLeft,G=hh||Cr;if(!Pm()||Pm()===G){var le;Xg(G),Rm(R,ei.current),Rm(R,Li.current),Rm(R,xa.current),Rm(R,(le=sr.current)===null||le===void 0?void 0:le.setScrollLeft)}var ke=hh||ei.current;if(ke){var Qe=ke.scrollWidth,Ct=ke.clientWidth;if(Qe===Ct){Ju(!1),Ka(!1);return}_?(Ju(-R0)):(Ju(R>0),Ka(R1?In-bi:0,os=(0,Ae.Z)((0,Ae.Z)((0,Ae.Z)({},ba),Sn),{},{flex:"0 0 ".concat(bi,"px"),width:"".concat(bi,"px"),marginRight:Wi,pointerEvents:"auto"}),Ds=w.useMemo(function(){return Jn?To<=1:Ps===0||To===0||To>1},[To,Ps,Jn]);Ds?os.visibility="hidden":Jn&&(os.height=xr==null?void 0:xr(To));var la=Ds?function(){return null}:So,Ho={};return(To===0||Ps===0)&&(Ho.rowSpan=1,Ho.colSpan=1),w.createElement(Po,(0,S.Z)({className:xe()(er,cn),ellipsis:Ft.ellipsis,align:Ft.align,scope:Ft.rowScope,component:"div",prefixCls:mt.prefixCls,key:Ai,record:Dn,index:Gt,renderIndex:Pr,dataIndex:kt,render:la,shouldCellUpdate:Ft.shouldCellUpdate},Ee,{appendNode:Zo,additionalProps:(0,Ae.Z)((0,Ae.Z)({},Ws),{},{style:os},Ho)}))}var fa=ea,Bl=["data","index","className","rowKey","style","extra","getHeight"],Ma=w.forwardRef(function(Ye,mt){var Ft=Ye.data,Dt=Ye.index,$t=Ye.className,Gt=Ye.rowKey,Pr=Ye.style,Dn=Ye.extra,Sn=Ye.getHeight,cn=(0,Bi.Z)(Ye,Bl),Jn=Ft.record,xr=Ft.indent,So=Ft.index,kt=f(De,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),er=kt.scrollX,In=kt.flattenColumns,rr=kt.prefixCls,cr=kt.fixColumn,Br=kt.componentWidth,Ai=Zi(Jn,Gt,Dt,xr),Ee=Ai.rowSupportExpand,Zo=Ai.expanded,Ws=Ai.rowProps,ba=Ai.expandedRowRender,aa=Ai.expandedRowClassName,Ps;if(Ee&&Zo){var ha=ba(Jn,Dt,xr+1,Zo),To=aa==null?void 0:aa(Jn,Dt,xr),ir={};cr&&(ir={style:(0,me.Z)({},"--virtual-width","".concat(Br,"px"))});var bi="".concat(rr,"-expanded-row-cell");Ps=w.createElement("div",{className:xe()("".concat(rr,"-expanded-row"),"".concat(rr,"-expanded-row-level-").concat(xr+1),To)},w.createElement(Po,{component:"div",prefixCls:rr,className:xe()(bi,(0,me.Z)({},"".concat(bi,"-fixed"),cr)),additionalProps:ir},ha))}var Wi=(0,Ae.Z)((0,Ae.Z)({},Pr),{},{width:er});Dn&&(Wi.position="absolute",Wi.pointerEvents="none");var os=w.createElement("div",(0,S.Z)({},Ws,cn,{ref:Ee?null:mt,className:xe()($t,"".concat(rr,"-row"),Ws==null?void 0:Ws.className,(0,me.Z)({},"".concat(rr,"-row-extra"),Dn)),style:(0,Ae.Z)((0,Ae.Z)({},Wi),Ws==null?void 0:Ws.style)}),In.map(function(Ds,la){return w.createElement(fa,{key:la,rowInfo:Ai,column:Ds,colIndex:la,indent:xr,index:Dt,renderIndex:So,record:Jn,inverse:Dn,getHeight:Sn})}));return Ee?w.createElement("div",{ref:mt},os,Ps):os}),pl=Be(Ma),oa=pl,Nl=w.forwardRef(function(Ye,mt){var Ft=Ye.data,Dt=Ye.onScroll,$t=f(De,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),Gt=$t.flattenColumns,Pr=$t.onColumnResize,Dn=$t.getRowKey,Sn=$t.expandedKeys,cn=$t.prefixCls,Jn=$t.childrenColumnName,xr=$t.emptyNode,So=$t.scrollX,kt=f(pa),er=kt.sticky,In=kt.scrollY,rr=kt.listItemHeight,cr=w.useRef(),Br=hr(Ft,Jn,Sn,Dn),Ai=w.useMemo(function(){var To=0;return Gt.map(function(ir){var bi=ir.width,Wi=ir.key;return To+=bi,[Wi,bi,To]})},[Gt]),Ee=w.useMemo(function(){return Ai.map(function(To){return To[2]})},[Ai]);w.useEffect(function(){Ai.forEach(function(To){var ir=(0,b.Z)(To,2),bi=ir[0],Wi=ir[1];Pr(bi,Wi)})},[Ai]),w.useImperativeHandle(mt,function(){var To={};return Object.defineProperty(To,"scrollLeft",{get:function(){var bi;return((bi=cr.current)===null||bi===void 0?void 0:bi.getScrollInfo().x)||0},set:function(bi){var Wi;(Wi=cr.current)===null||Wi===void 0||Wi.scrollTo({left:bi})}}),To});var Zo=function(ir,bi){var Wi,os=(Wi=Br[bi])===null||Wi===void 0?void 0:Wi.record,Ds=ir.onCell;if(Ds){var la,Ho=Ds(os,bi);return(la=Ho==null?void 0:Ho.rowSpan)!==null&&la!==void 0?la:1}return 1},Ws=function(ir){var bi=ir.start,Wi=ir.end,os=ir.getSize,Ds=ir.offsetY;if(Wi<0)return null;for(var la=Gt.filter(function(qu){return Zo(qu,bi)===0}),Ho=bi,or=function($l){if(la=la.filter(function(su){return Zo(su,$l)===0}),!la.length)return Ho=$l,"break"},eo=bi;eo>=0;eo-=1){var vs=or(eo);if(vs==="break")break}for(var ll=Gt.filter(function(qu){return Zo(qu,Wi)!==1}),Dl=Wi,Oa=function($l){if(ll=ll.filter(function(su){return Zo(su,$l)!==1}),!ll.length)return Dl=Math.max($l-1,Wi),"break"},_s=Wi;_s1})&&nl.push($l)},fl=Ho;fl<=Dl;fl+=1)var oc=mc(fl);var va=nl.map(function(qu){var $l=Br[qu],su=Dn($l.record,qu),tu=function(Le){var Me=qu+Le-1,et=Dn(Br[Me].record,Me),hn=os(su,et);return hn.bottom-hn.top},Gs=os(su);return w.createElement(oa,{key:qu,data:$l,rowKey:su,index:qu,style:{top:-Ds+Gs.top},extra:!0,getHeight:tu})});return va},ba=w.useMemo(function(){return{columnsOffset:Ee}},[Ee]),aa="".concat(cn,"-tbody"),Ps;if(Br.length){var ha={};er&&(ha.position="sticky",ha.bottom=0,(0,Ce.Z)(er)==="object"&&er.offsetScroll&&(ha.bottom=er.offsetScroll)),Ps=w.createElement(Os.Z,{fullHeight:!1,ref:cr,styles:{horizontalScrollBar:ha},className:xe()(aa,"".concat(aa,"-virtual")),height:In,itemHeight:rr||24,data:Br,itemKey:function(ir){return Dn(ir.record)},scrollWidth:So,onVirtualScroll:function(ir){var bi=ir.x;Dt({scrollLeft:bi})},extraRender:Ws},function(To,ir,bi){var Wi=Dn(To.record,ir);return w.createElement(oa,(0,S.Z)({data:To,rowKey:Wi,index:ir},bi))})}else Ps=w.createElement("div",{className:xe()("".concat(cn,"-placeholder"))},w.createElement(Po,{component:"div",prefixCls:cn},xr));return w.createElement(no.Provider,{value:ba},Ps)}),cs=Be(Nl),zi=cs,qi=function(mt,Ft){var Dt=Ft.ref,$t=Ft.onScroll;return w.createElement(zi,{ref:Dt,data:mt,onScroll:$t})};function ta(Ye){var mt=Ye.columns,Ft=Ye.scroll,Dt=Ye.sticky,$t=Ye.prefixCls,Gt=$t===void 0?an:$t,Pr=Ye.className,Dn=Ye.listItemHeight,Sn=Ft||{},cn=Sn.x,Jn=Sn.y;typeof cn!="number"&&(cn=1),typeof Jn!="number"&&(Jn=500);var xr=w.useMemo(function(){return{sticky:Dt,scrollY:Jn,listItemHeight:Dn}},[Dt,Jn,Dn]);return w.createElement(pa.Provider,{value:xr},w.createElement(ks,(0,S.Z)({},Ye,{className:xe()(Pr,"".concat(Gt,"-virtual")),scroll:(0,Ae.Z)((0,Ae.Z)({},Ft),{},{x:cn}),components:{body:qi},columns:mt,internalHooks:I,tailor:!0})))}function ms(Ye){return fe(ta,Ye)}var Ua=ms(),$u=null;function rc(Ye){return null}var Pc=rc;function ho(Ye){return null}var Ji=ho,ss=m(39029),$n=m(28637);function mr(Ye,mt,Ft,Dt){const $t=Ft-mt;return Ye/=Dt/2,Ye<1?$t/2*Ye*Ye*Ye+mt:$t/2*((Ye-=2)*Ye*Ye+2)+mt}function Qr(Ye){return Ye!=null&&Ye===Ye.window}function ni(Ye,mt){var Ft,Dt;if(typeof window=="undefined")return 0;const $t=mt?"scrollTop":"scrollLeft";let Gt=0;return Qr(Ye)?Gt=Ye[mt?"pageYOffset":"pageXOffset"]:Ye instanceof Document?Gt=Ye.documentElement[$t]:(Ye instanceof HTMLElement||Ye)&&(Gt=Ye[$t]),Ye&&!Qr(Ye)&&typeof Gt!="number"&&(Gt=(Dt=((Ft=Ye.ownerDocument)!==null&&Ft!==void 0?Ft:Ye).documentElement)===null||Dt===void 0?void 0:Dt[$t]),Gt}function Ki(Ye){let mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:Ft=()=>window,callback:Dt,duration:$t=450}=mt,Gt=Ft(),Pr=ni(Gt,!0),Dn=Date.now(),Sn=()=>{const Jn=Date.now()-Dn,xr=mr(Jn>$t?$t:Jn,Pr,Ye,$t);Qr(Gt)?Gt.scrollTo(window.pageXOffset,xr):Gt instanceof Document||Gt.constructor.name==="HTMLDocument"?Gt.documentElement.scrollTop=xr:Gt.scrollTop=xr,Jn<$t?(0,$n.Z)(Sn):typeof Dt=="function"&&Dt()};(0,$n.Z)(Sn)}var ro=m(40869),Ei=m(67392),ns=m(47316),ca=m(21843),Na=m(65018),ul=m(530),Hl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},Ml=Hl,ja=m(91851),Pu=function(mt,Ft){return w.createElement(ja.Z,(0,S.Z)({},mt,{ref:Ft,icon:Ml}))},Xs=w.forwardRef(Pu),Ya={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},qa=Ya,Ul=function(mt,Ft){return w.createElement(ja.Z,(0,S.Z)({},mt,{ref:Ft,icon:qa}))},ql=w.forwardRef(Ul),vu=m(52063),au=m(22311),bn=m(74809),Eu=m(57338),ts=m(29161),Vs=m(12826),ma={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},Il=ma,El={items_per_page:"\u6761/\u9875",jump_to:"\u8DF3\u81F3",jump_to_confirm:"\u786E\u5B9A",page:"\u9875",prev_page:"\u4E0A\u4E00\u9875",next_page:"\u4E0B\u4E00\u9875",prev_5:"\u5411\u524D 5 \u9875",next_5:"\u5411\u540E 5 \u9875",prev_3:"\u5411\u524D 3 \u9875",next_3:"\u5411\u540E 3 \u9875",page_size:"\u9875\u7801"},gl=function(Ye){(0,ts.Z)(Ft,Ye);var mt=(0,Vs.Z)(Ft);function Ft(){var Dt;(0,bn.Z)(this,Ft);for(var $t=arguments.length,Gt=new Array($t),Pr=0;Pr<$t;Pr++)Gt[Pr]=arguments[Pr];return Dt=mt.call.apply(mt,[this].concat(Gt)),Dt.state={goInputText:""},Dt.getValidValue=function(){var Dn=Dt.state.goInputText;return!Dn||Number.isNaN(Dn)?void 0:Number(Dn)},Dt.buildOptionText=function(Dn){return"".concat(Dn," ").concat(Dt.props.locale.items_per_page)},Dt.changeSize=function(Dn){Dt.props.changeSize(Number(Dn))},Dt.handleChange=function(Dn){Dt.setState({goInputText:Dn.target.value})},Dt.handleBlur=function(Dn){var Sn=Dt.props,cn=Sn.goButton,Jn=Sn.quickGo,xr=Sn.rootPrefixCls,So=Dt.state.goInputText;cn||So===""||(Dt.setState({goInputText:""}),!(Dn.relatedTarget&&(Dn.relatedTarget.className.indexOf("".concat(xr,"-item-link"))>=0||Dn.relatedTarget.className.indexOf("".concat(xr,"-item"))>=0))&&Jn(Dt.getValidValue()))},Dt.go=function(Dn){var Sn=Dt.state.goInputText;Sn!==""&&(Dn.keyCode===Il.ENTER||Dn.type==="click")&&(Dt.setState({goInputText:""}),Dt.props.quickGo(Dt.getValidValue()))},Dt}return(0,Eu.Z)(Ft,[{key:"getPageSizeOptions",value:function(){var $t=this.props,Gt=$t.pageSize,Pr=$t.pageSizeOptions;return Pr.some(function(Dn){return Dn.toString()===Gt.toString()})?Pr:Pr.concat([Gt.toString()]).sort(function(Dn,Sn){var cn=Number.isNaN(Number(Dn))?0:Number(Dn),Jn=Number.isNaN(Number(Sn))?0:Number(Sn);return cn-Jn})}},{key:"render",value:function(){var $t=this,Gt=this.props,Pr=Gt.pageSize,Dn=Gt.locale,Sn=Gt.rootPrefixCls,cn=Gt.changeSize,Jn=Gt.quickGo,xr=Gt.goButton,So=Gt.selectComponentClass,kt=Gt.buildOptionText,er=Gt.selectPrefixCls,In=Gt.disabled,rr=this.state.goInputText,cr="".concat(Sn,"-options"),Br=So,Ai=null,Ee=null,Zo=null;if(!cn&&!Jn)return null;var Ws=this.getPageSizeOptions();if(cn&&Br){var ba=Ws.map(function(aa,Ps){return w.createElement(Br.Option,{key:Ps,value:aa.toString()},(kt||$t.buildOptionText)(aa))});Ai=w.createElement(Br,{disabled:In,prefixCls:er,showSearch:!1,className:"".concat(cr,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Pr||Ws[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Ps){return Ps.parentNode},"aria-label":Dn.page_size,defaultOpen:!1},ba)}return Jn&&(xr&&(Zo=typeof xr=="boolean"?w.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:In,className:"".concat(cr,"-quick-jumper-button")},Dn.jump_to_confirm):w.createElement("span",{onClick:this.go,onKeyUp:this.go},xr)),Ee=w.createElement("div",{className:"".concat(cr,"-quick-jumper")},Dn.jump_to,w.createElement("input",{disabled:In,type:"text",value:rr,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Dn.page}),Dn.page,Zo)),w.createElement("li",{className:"".concat(cr)},Ai,Ee)}}]),Ft}(w.Component);gl.defaultProps={pageSizeOptions:["10","20","50","100"]};var fu=gl,Nu=function(mt){var Ft,Dt=mt.rootPrefixCls,$t=mt.page,Gt=mt.active,Pr=mt.className,Dn=mt.showTitle,Sn=mt.onClick,cn=mt.onKeyPress,Jn=mt.itemRender,xr="".concat(Dt,"-item"),So=xe()(xr,"".concat(xr,"-").concat($t),(Ft={},(0,me.Z)(Ft,"".concat(xr,"-active"),Gt),(0,me.Z)(Ft,"".concat(xr,"-disabled"),!$t),(0,me.Z)(Ft,mt.className,Pr),Ft)),kt=function(){Sn($t)},er=function(cr){cn(cr,Sn,$t)},In=Jn($t,"page",w.createElement("a",{rel:"nofollow"},$t));return In?w.createElement("li",{title:Dn?$t.toString():null,className:So,onClick:kt,onKeyPress:er,tabIndex:0},In):null},lc=Nu;function Ic(){}function Vc(Ye){var mt=Number(Ye);return typeof mt=="number"&&!Number.isNaN(mt)&&isFinite(mt)&&Math.floor(mt)===mt}var zd=function(mt,Ft,Dt){return Dt};function eh(Ye,mt,Ft){var Dt=typeof Ye=="undefined"?mt.pageSize:Ye;return Math.floor((Ft.total-1)/Dt)+1}var Kd=function(Ye){(0,ts.Z)(Ft,Ye);var mt=(0,Vs.Z)(Ft);function Ft(Dt){var $t;(0,bn.Z)(this,Ft),$t=mt.call(this,Dt),$t.paginationNode=w.createRef(),$t.getJumpPrevPage=function(){return Math.max(1,$t.state.current-($t.props.showLessItems?3:5))},$t.getJumpNextPage=function(){return Math.min(eh(void 0,$t.state,$t.props),$t.state.current+($t.props.showLessItems?3:5))},$t.getItemIcon=function(cn,Jn){var xr=$t.props.prefixCls,So=cn||w.createElement("button",{type:"button","aria-label":Jn,className:"".concat(xr,"-item-link")});return typeof cn=="function"&&(So=w.createElement(cn,(0,Ae.Z)({},$t.props))),So},$t.isValid=function(cn){var Jn=$t.props.total;return Vc(cn)&&cn!==$t.state.current&&Vc(Jn)&&Jn>0},$t.shouldDisplayQuickJumper=function(){var cn=$t.props,Jn=cn.showQuickJumper,xr=cn.total,So=$t.state.pageSize;return xr<=So?!1:Jn},$t.handleKeyDown=function(cn){(cn.keyCode===Il.ARROW_UP||cn.keyCode===Il.ARROW_DOWN)&&cn.preventDefault()},$t.handleKeyUp=function(cn){var Jn=$t.getValidValue(cn),xr=$t.state.currentInputValue;Jn!==xr&&$t.setState({currentInputValue:Jn}),cn.keyCode===Il.ENTER?$t.handleChange(Jn):cn.keyCode===Il.ARROW_UP?$t.handleChange(Jn-1):cn.keyCode===Il.ARROW_DOWN&&$t.handleChange(Jn+1)},$t.handleBlur=function(cn){var Jn=$t.getValidValue(cn);$t.handleChange(Jn)},$t.changePageSize=function(cn){var Jn=$t.state.current,xr=eh(cn,$t.state,$t.props);Jn=Jn>xr?xr:Jn,xr===0&&(Jn=$t.state.current),typeof cn=="number"&&("pageSize"in $t.props||$t.setState({pageSize:cn}),"current"in $t.props||$t.setState({current:Jn,currentInputValue:Jn})),$t.props.onShowSizeChange(Jn,cn),"onChange"in $t.props&&$t.props.onChange&&$t.props.onChange(Jn,cn)},$t.handleChange=function(cn){var Jn=$t.props,xr=Jn.disabled,So=Jn.onChange,kt=$t.state,er=kt.pageSize,In=kt.current,rr=kt.currentInputValue;if($t.isValid(cn)&&!xr){var cr=eh(void 0,$t.state,$t.props),Br=cn;return cn>cr?Br=cr:cn<1&&(Br=1),"current"in $t.props||$t.setState({current:Br}),Br!==rr&&$t.setState({currentInputValue:Br}),So(Br,er),Br}return In},$t.prev=function(){$t.hasPrev()&&$t.handleChange($t.state.current-1)},$t.next=function(){$t.hasNext()&&$t.handleChange($t.state.current+1)},$t.jumpPrev=function(){$t.handleChange($t.getJumpPrevPage())},$t.jumpNext=function(){$t.handleChange($t.getJumpNextPage())},$t.hasPrev=function(){return $t.state.current>1},$t.hasNext=function(){return $t.state.current2?xr-2:0),kt=2;kt=Pr?Sn=Pr:Sn=Number(Gt),Sn}},{key:"getShowSizeChanger",value:function(){var $t=this.props,Gt=$t.showSizeChanger,Pr=$t.total,Dn=$t.totalBoundaryShowSizeChanger;return typeof Gt!="undefined"?Gt:Pr>Dn}},{key:"render",value:function(){var $t=this.props,Gt=$t.prefixCls,Pr=$t.className,Dn=$t.style,Sn=$t.disabled,cn=$t.hideOnSinglePage,Jn=$t.total,xr=$t.locale,So=$t.showQuickJumper,kt=$t.showLessItems,er=$t.showTitle,In=$t.showTotal,rr=$t.simple,cr=$t.itemRender,Br=$t.showPrevNextJumpers,Ai=$t.jumpPrevIcon,Ee=$t.jumpNextIcon,Zo=$t.selectComponentClass,Ws=$t.selectPrefixCls,ba=$t.pageSizeOptions,aa=this.state,Ps=aa.current,ha=aa.pageSize,To=aa.currentInputValue;if(cn===!0&&Jn<=ha)return null;var ir=eh(void 0,this.state,this.props),bi=[],Wi=null,os=null,Ds=null,la=null,Ho=null,or=So&&So.goButton,eo=kt?1:2,vs=Ps-1>0?Ps-1:0,ll=Ps+1Jn?Jn:Ps*ha]));if(rr){or&&(typeof or=="boolean"?Ho=w.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},xr.jump_to_confirm):Ho=w.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},or),Ho=w.createElement("li",{title:er?"".concat(xr.jump_to).concat(Ps,"/").concat(ir):null,className:"".concat(Gt,"-simple-pager")},Ho));var _s=this.renderPrev(vs);return w.createElement("ul",(0,S.Z)({className:xe()(Gt,"".concat(Gt,"-simple"),(0,me.Z)({},"".concat(Gt,"-disabled"),Sn),Pr),style:Dn,ref:this.paginationNode},Dl),Oa,_s?w.createElement("li",{title:er?xr.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:xe()("".concat(Gt,"-prev"),(0,me.Z)({},"".concat(Gt,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},_s):null,w.createElement("li",{title:er?"".concat(Ps,"/").concat(ir):null,className:"".concat(Gt,"-simple-pager")},w.createElement("input",{type:"text",value:To,disabled:Sn,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),w.createElement("span",{className:"".concat(Gt,"-slash")},"/"),ir),w.createElement("li",{title:er?xr.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:xe()("".concat(Gt,"-next"),(0,me.Z)({},"".concat(Gt,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(ll)),Ho)}if(ir<=3+eo*2){var wl={locale:xr,rootPrefixCls:Gt,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:er,itemRender:cr};ir||bi.push(w.createElement(lc,(0,S.Z)({},wl,{key:"noPager",page:1,className:"".concat(Gt,"-item-disabled")})));for(var nl=1;nl<=ir;nl+=1){var mc=Ps===nl;bi.push(w.createElement(lc,(0,S.Z)({},wl,{key:nl,page:nl,active:mc})))}}else{var fl=kt?xr.prev_3:xr.prev_5,oc=kt?xr.next_3:xr.next_5,va=cr(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Ai,"prev page")),qu=cr(this.getJumpNextPage(),"jump-next",this.getItemIcon(Ee,"next page"));Br&&(Wi=va?w.createElement("li",{title:er?fl:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:xe()("".concat(Gt,"-jump-prev"),(0,me.Z)({},"".concat(Gt,"-jump-prev-custom-icon"),!!Ai))},va):null,os=qu?w.createElement("li",{title:er?oc:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:xe()("".concat(Gt,"-jump-next"),(0,me.Z)({},"".concat(Gt,"-jump-next-custom-icon"),!!Ee))},qu):null),la=w.createElement(lc,{locale:xr,last:!0,rootPrefixCls:Gt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ir,page:ir,active:!1,showTitle:er,itemRender:cr}),Ds=w.createElement(lc,{locale:xr,rootPrefixCls:Gt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:er,itemRender:cr});var $l=Math.max(1,Ps-eo),su=Math.min(Ps+eo,ir);Ps-1<=eo&&(su=1+eo*2),ir-Ps<=eo&&($l=ir-eo*2);for(var tu=$l;tu<=su;tu+=1){var Gs=Ps===tu;bi.push(w.createElement(lc,{locale:xr,rootPrefixCls:Gt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:tu,page:tu,active:Gs,showTitle:er,itemRender:cr}))}Ps-1>=eo*2&&Ps!==1+2&&(bi[0]=(0,w.cloneElement)(bi[0],{className:"".concat(Gt,"-item-after-jump-prev")}),bi.unshift(Wi)),ir-Ps>=eo*2&&Ps!==ir-2&&(bi[bi.length-1]=(0,w.cloneElement)(bi[bi.length-1],{className:"".concat(Gt,"-item-before-jump-next")}),bi.push(os)),$l!==1&&bi.unshift(Ds),su!==ir&&bi.push(la)}var Gc=!this.hasPrev()||!ir,Le=!this.hasNext()||!ir,Me=this.renderPrev(vs),et=this.renderNext(ll);return w.createElement("ul",(0,S.Z)({className:xe()(Gt,Pr,(0,me.Z)({},"".concat(Gt,"-disabled"),Sn)),style:Dn,ref:this.paginationNode},Dl),Oa,Me?w.createElement("li",{title:er?xr.prev_page:null,onClick:this.prev,tabIndex:Gc?null:0,onKeyPress:this.runIfEnterPrev,className:xe()("".concat(Gt,"-prev"),(0,me.Z)({},"".concat(Gt,"-disabled"),Gc)),"aria-disabled":Gc},Me):null,bi,et?w.createElement("li",{title:er?xr.next_page:null,onClick:this.next,tabIndex:Le?null:0,onKeyPress:this.runIfEnterNext,className:xe()("".concat(Gt,"-next"),(0,me.Z)({},"".concat(Gt,"-disabled"),Le)),"aria-disabled":Le},et):null,w.createElement(fu,{disabled:Sn,locale:xr,rootPrefixCls:Gt,selectComponentClass:Zo,selectPrefixCls:Ws,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Ps,pageSize:ha,pageSizeOptions:ba,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:or}))}}],[{key:"getDerivedStateFromProps",value:function($t,Gt){var Pr={};if("current"in $t&&(Pr.current=$t.current,$t.current!==Gt.current&&(Pr.currentInputValue=Pr.current)),"pageSize"in $t&&$t.pageSize!==Gt.pageSize){var Dn=Gt.current,Sn=eh($t.pageSize,Gt,$t);Dn=Dn>Sn?Sn:Dn,"current"in $t||(Pr.current=Dn,Pr.currentInputValue=Dn),Pr.pageSize=$t.pageSize}return Pr}}]),Ft}(w.Component);Kd.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Ic,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Ic,locale:El,style:{},itemRender:zd,totalBoundaryShowSizeChanger:50};var ad=Kd,ku=m(22075),Fc=m(879),dd=m(29130);const vd=Ye=>w.createElement(dd.Z,Object.assign({},Ye,{showSearch:!0,size:"small"})),Xd=Ye=>w.createElement(dd.Z,Object.assign({},Ye,{showSearch:!0,size:"middle"}));vd.Option=dd.Z.Option,Xd.Option=dd.Z.Option;var th=m(89746),jd=m(92068),vh=m(24577),id=m(41788);const nd=Ye=>{const{componentCls:mt}=Ye;return{[`${mt}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${mt}-item-link`]:{color:Ye.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${mt}-item-link`]:{color:Ye.colorTextDisabled,cursor:"not-allowed"}}},[`&${mt}-disabled`]:{cursor:"not-allowed",[`${mt}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Ye.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Ye.colorBorder,backgroundColor:Ye.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Ye.itemActiveBgDisabled},a:{color:Ye.itemActiveColorDisabled}}},[`${mt}-item-link`]:{color:Ye.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${mt}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${mt}-simple-pager`]:{color:Ye.colorTextDisabled},[`${mt}-jump-prev, ${mt}-jump-next`]:{[`${mt}-item-link-icon`]:{opacity:0},[`${mt}-item-ellipsis`]:{opacity:1}}},[`&${mt}-simple`]:{[`${mt}-prev, ${mt}-next`]:{[`&${mt}-disabled ${mt}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Pf=Ye=>{const{componentCls:mt}=Ye;return{[`&${mt}-mini ${mt}-total-text, &${mt}-mini ${mt}-simple-pager`]:{height:Ye.itemSizeSM,lineHeight:`${Ye.itemSizeSM}px`},[`&${mt}-mini ${mt}-item`]:{minWidth:Ye.itemSizeSM,height:Ye.itemSizeSM,margin:0,lineHeight:`${Ye.itemSizeSM-2}px`},[`&${mt}-mini:not(${mt}-disabled) ${mt}-item:not(${mt}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:Ye.colorBgTextHover},"&:active":{backgroundColor:Ye.colorBgTextActive}},[`&${mt}-mini ${mt}-prev, &${mt}-mini ${mt}-next`]:{minWidth:Ye.itemSizeSM,height:Ye.itemSizeSM,margin:0,lineHeight:`${Ye.itemSizeSM}px`},[`&${mt}-mini:not(${mt}-disabled)`]:{[`${mt}-prev, ${mt}-next`]:{[`&:hover ${mt}-item-link`]:{backgroundColor:Ye.colorBgTextHover},[`&:active ${mt}-item-link`]:{backgroundColor:Ye.colorBgTextActive},[`&${mt}-disabled:hover ${mt}-item-link`]:{backgroundColor:"transparent"}}},[` + &${mt}-mini ${mt}-prev ${mt}-item-link, + &${mt}-mini ${mt}-next ${mt}-item-link + `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Ye.itemSizeSM,lineHeight:`${Ye.itemSizeSM}px`}},[`&${mt}-mini ${mt}-jump-prev, &${mt}-mini ${mt}-jump-next`]:{height:Ye.itemSizeSM,marginInlineEnd:0,lineHeight:`${Ye.itemSizeSM}px`},[`&${mt}-mini ${mt}-options`]:{marginInlineStart:Ye.paginationMiniOptionsMarginInlineStart,["&-size-changer"]:{top:Ye.miniOptionsSizeChangerTop},["&-quick-jumper"]:{height:Ye.itemSizeSM,lineHeight:`${Ye.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,th.x0)(Ye)),{width:Ye.paginationMiniQuickJumperInputWidth,height:Ye.controlHeightSM})}}}},qd=Ye=>{const{componentCls:mt}=Ye;return{[` + &${mt}-simple ${mt}-prev, + &${mt}-simple ${mt}-next + `]:{height:Ye.itemSizeSM,lineHeight:`${Ye.itemSizeSM}px`,verticalAlign:"top",[`${mt}-item-link`]:{height:Ye.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Ye.colorBgTextHover},"&:active":{backgroundColor:Ye.colorBgTextActive},"&::after":{height:Ye.itemSizeSM,lineHeight:`${Ye.itemSizeSM}px`}}},[`&${mt}-simple ${mt}-simple-pager`]:{display:"inline-block",height:Ye.itemSizeSM,marginInlineEnd:Ye.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:Ye.marginXS,padding:`0 ${Ye.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:Ye.itemInputBg,border:`${Ye.lineWidth}px ${Ye.lineType} ${Ye.colorBorder}`,borderRadius:Ye.borderRadius,outline:"none",transition:`border-color ${Ye.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Ye.colorPrimary},"&:focus":{borderColor:Ye.colorPrimaryHover,boxShadow:`${Ye.inputOutlineOffset}px 0 ${Ye.controlOutlineWidth}px ${Ye.controlOutline}`},"&[disabled]":{color:Ye.colorTextDisabled,backgroundColor:Ye.colorBgContainerDisabled,borderColor:Ye.colorBorder,cursor:"not-allowed"}}}}},cc=Ye=>{const{componentCls:mt}=Ye;return{[`${mt}-jump-prev, ${mt}-jump-next`]:{outline:0,[`${mt}-item-container`]:{position:"relative",[`${mt}-item-link-icon`]:{color:Ye.colorPrimary,fontSize:Ye.fontSizeSM,opacity:0,transition:`all ${Ye.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${mt}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Ye.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:Ye.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Ye.paginationEllipsisTextIndent,opacity:1,transition:`all ${Ye.motionDurationMid}`}},"&:hover":{[`${mt}-item-link-icon`]:{opacity:1},[`${mt}-item-ellipsis`]:{opacity:0}}},[` + ${mt}-prev, + ${mt}-jump-prev, + ${mt}-jump-next `]:{marginInlineEnd:Ye.marginXS},[` - ${gt}-prev, - ${gt}-next, - ${gt}-jump-prev, - ${gt}-jump-next - `]:{display:"inline-block",minWidth:Ye.itemSize,height:Ye.itemSize,color:Ye.colorText,fontFamily:Ye.fontFamily,lineHeight:`${Ye.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Ye.borderRadius,cursor:"pointer",transition:`all ${Ye.motionDurationMid}`},[`${gt}-prev, ${gt}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:Ye.colorText,cursor:"pointer",userSelect:"none"},[`${gt}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Ye.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Ye.lineWidth}px ${Ye.lineType} transparent`,borderRadius:Ye.borderRadius,outline:"none",transition:`all ${Ye.motionDurationMid}`},[`&:hover ${gt}-item-link`]:{backgroundColor:Ye.colorBgTextHover},[`&:active ${gt}-item-link`]:{backgroundColor:Ye.colorBgTextActive},[`&${gt}-disabled:hover`]:{[`${gt}-item-link`]:{backgroundColor:"transparent"}}},[`${gt}-slash`]:{marginInlineEnd:Ye.paginationSlashMarginInlineEnd,marginInlineStart:Ye.paginationSlashMarginInlineStart},[`${gt}-options`]:{display:"inline-block",marginInlineStart:Ye.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Ye.controlHeight,marginInlineStart:Ye.marginXS,lineHeight:`${Ye.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,nh.ik)(Ye)),{width:Ye.controlHeightLG*1.25,height:Ye.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Ye.marginXS,marginInlineEnd:Ye.marginXS})}}}},Yc=Ye=>{const{componentCls:gt}=Ye;return{[`${gt}-item`]:{display:"inline-block",minWidth:Ye.itemSize,height:Ye.itemSize,marginInlineEnd:Ye.marginXS,fontFamily:Ye.fontFamily,lineHeight:`${Ye.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${Ye.lineWidth}px ${Ye.lineType} transparent`,borderRadius:Ye.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Ye.paginationItemPaddingInline}px`,color:Ye.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${gt}-item-active)`]:{"&:hover":{transition:`all ${Ye.motionDurationMid}`,backgroundColor:Ye.colorBgTextHover},"&:active":{backgroundColor:Ye.colorBgTextActive}},"&-active":{fontWeight:Ye.fontWeightStrong,backgroundColor:Ye.itemActiveBg,borderColor:Ye.colorPrimary,a:{color:Ye.colorPrimary},"&:hover":{borderColor:Ye.colorPrimaryHover},"&:hover a":{color:Ye.colorPrimaryHover}}}}},Wh=Ye=>{const{componentCls:gt}=Ye;return{[gt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Wd.Wf)(Ye)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${gt}-total-text`]:{display:"inline-block",height:Ye.itemSize,marginInlineEnd:Ye.marginXS,lineHeight:`${Ye.itemSize-2}px`,verticalAlign:"middle"}}),Yc(Ye)),cc(Ye)),Jd(Ye)),Pf(Ye)),nd(Ye)),{[`@media only screen and (max-width: ${Ye.screenLG}px)`]:{[`${gt}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Ye.screenSM}px)`]:{[`${gt}-options`]:{display:"none"}}}),[`&${Ye.componentCls}-rtl`]:{direction:"rtl"}}},uf=Ye=>{const{componentCls:gt}=Ye;return{[`${gt}${gt}-disabled:not(${gt}-mini)`]:{"&, &:hover":{[`${gt}-item-link`]:{borderColor:Ye.colorBorder}},"&:focus-visible":{[`${gt}-item-link`]:{borderColor:Ye.colorBorder}},[`${gt}-item, ${gt}-item-link`]:{backgroundColor:Ye.colorBgContainerDisabled,borderColor:Ye.colorBorder,[`&:hover:not(${gt}-item-active)`]:{backgroundColor:Ye.colorBgContainerDisabled,borderColor:Ye.colorBorder,a:{color:Ye.colorTextDisabled}},[`&${gt}-item-active`]:{backgroundColor:Ye.itemActiveBgDisabled}},[`${gt}-prev, ${gt}-next`]:{"&:hover button":{backgroundColor:Ye.colorBgContainerDisabled,borderColor:Ye.colorBorder,color:Ye.colorTextDisabled},[`${gt}-item-link`]:{backgroundColor:Ye.colorBgContainerDisabled,borderColor:Ye.colorBorder}}},[`${gt}:not(${gt}-mini)`]:{[`${gt}-prev, ${gt}-next`]:{"&:hover button":{borderColor:Ye.colorPrimaryHover,backgroundColor:Ye.itemBg},[`${gt}-item-link`]:{backgroundColor:Ye.itemLinkBg,borderColor:Ye.colorBorder},[`&:hover ${gt}-item-link`]:{borderColor:Ye.colorPrimary,backgroundColor:Ye.itemBg,color:Ye.colorPrimary},[`&${gt}-disabled`]:{[`${gt}-item-link`]:{borderColor:Ye.colorBorder,color:Ye.colorTextDisabled}}},[`${gt}-item`]:{backgroundColor:Ye.itemBg,border:`${Ye.lineWidth}px ${Ye.lineType} ${Ye.colorBorder}`,[`&:hover:not(${gt}-item-active)`]:{borderColor:Ye.colorPrimary,backgroundColor:Ye.itemBg,a:{color:Ye.colorPrimary}},"&-active":{borderColor:Ye.colorPrimary}}}}},Lh=Ye=>{const{componentCls:gt}=Ye;return{[`${gt}:not(${gt}-disabled)`]:{[`${gt}-item`]:Object.assign({},(0,Wd.Qy)(Ye)),[`${gt}-jump-prev, ${gt}-jump-next`]:{"&:focus-visible":Object.assign({[`${gt}-item-link-icon`]:{opacity:1},[`${gt}-item-ellipsis`]:{opacity:0}},(0,Wd.oN)(Ye))},[`${gt}-prev, ${gt}-next`]:{[`&:focus-visible ${gt}-item-link`]:Object.assign({},(0,Wd.oN)(Ye))}}}};var Sf=(0,yh.Z)("Pagination",Ye=>{const gt=(0,id.TS)(Ye,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Ye.marginXXS/2,paginationMiniQuickJumperInputWidth:Ye.controlHeightLG*1.1,paginationItemPaddingInline:Ye.marginXXS*1.5,paginationEllipsisLetterSpacing:Ye.marginXXS/2,paginationSlashMarginInlineStart:Ye.marginXXS,paginationSlashMarginInlineEnd:Ye.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,nh.e5)(Ye),(0,nh.TM)(Ye));return[Wh(gt),Lh(gt),Ye.wireframe&&uf(gt)]},Ye=>({itemBg:Ye.colorBgContainer,itemSize:Ye.controlHeight,itemSizeSM:Ye.controlHeightSM,itemActiveBg:Ye.colorBgContainer,itemLinkBg:Ye.colorBgContainer,itemActiveColorDisabled:Ye.colorTextDisabled,itemActiveBgDisabled:Ye.controlItemBgActiveDisabled,itemInputBg:Ye.colorBgContainer,miniOptionsSizeChangerTop:0})),xp=function(Ye,gt){var Ft={};for(var Dt in Ye)Object.prototype.hasOwnProperty.call(Ye,Dt)&>.indexOf(Dt)<0&&(Ft[Dt]=Ye[Dt]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Dt=Object.getOwnPropertySymbols(Ye);$t{const{prefixCls:gt,selectPrefixCls:Ft,className:Dt,rootClassName:$t,style:Gt,size:Pr,locale:Tn,selectComponentClass:Sn,responsive:cn,showSizeChanger:qn}=Ye,br=xp(Ye,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:So}=(0,Na.Z)(cn),{getPrefixCls:kt,direction:er,pagination:An={}}=w.useContext(Ei.E_),rr=kt("pagination",gt),[cr,Br]=Sf(rr),Ai=qn!=null?qn:An.showSizeChanger,De=w.useMemo(()=>{const ir=w.createElement("span",{className:`${rr}-item-ellipsis`},"\u2022\u2022\u2022"),xi=w.createElement("button",{className:`${rr}-item-link`,type:"button",tabIndex:-1},er==="rtl"?w.createElement(au.Z,null):w.createElement(vu.Z,null)),ji=w.createElement("button",{className:`${rr}-item-link`,type:"button",tabIndex:-1},er==="rtl"?w.createElement(vu.Z,null):w.createElement(au.Z,null)),is=w.createElement("a",{className:`${rr}-item-link`},w.createElement("div",{className:`${rr}-item-container`},er==="rtl"?w.createElement(Jl,{className:`${rr}-item-link-icon`}):w.createElement(Xs,{className:`${rr}-item-link-icon`}),ir)),Ds=w.createElement("a",{className:`${rr}-item-link`},w.createElement("div",{className:`${rr}-item-container`},er==="rtl"?w.createElement(Xs,{className:`${rr}-item-link-icon`}):w.createElement(Jl,{className:`${rr}-item-link-icon`}),ir));return{prevIcon:xi,nextIcon:ji,jumpPrevIcon:is,jumpNextIcon:Ds}},[er,rr]),[Zo]=(0,Fc.Z)("Pagination",Mu.Z),js=Object.assign(Object.assign({},Zo),Tn),ba=(0,ua.Z)(Pr),sa=ba==="small"||!!(So&&!ba&&cn),Ps=kt("select",Ft),ha=Ce()({[`${rr}-mini`]:sa,[`${rr}-rtl`]:er==="rtl"},An==null?void 0:An.className,Dt,$t,Br),To=Object.assign(Object.assign({},An==null?void 0:An.style),Gt);return cr(w.createElement(sd,Object.assign({},De,br,{style:To,prefixCls:rr,selectPrefixCls:Ps,className:ha,selectComponentClass:Sn||(sa?vd:Yd),locale:js,showSizeChanger:Ai})))},Th=ch,yu=m(75081),ff=m(25976);function Ja(Ye){return function(Ft){let{prefixCls:Dt,onExpand:$t,record:Gt,expanded:Pr,expandable:Tn}=Ft;const Sn=`${Dt}-row-expand-icon`;return w.createElement("button",{type:"button",onClick:cn=>{$t(Gt,cn),cn.stopPropagation()},className:Ce()(Sn,{[`${Sn}-spaced`]:!Tn,[`${Sn}-expanded`]:Tn&&Pr,[`${Sn}-collapsed`]:Tn&&!Pr}),"aria-label":Pr?Ye.collapse:Ye.expand,"aria-expanded":Pr})}}var Bu=Ja;function wd(Ye){return(Ft,Dt)=>{const $t=Ft.querySelector(`.${Ye}-container`);let Gt=Dt;if($t){const Pr=getComputedStyle($t),Tn=parseInt(Pr.borderLeftWidth,10),Sn=parseInt(Pr.borderRightWidth,10);Gt=Dt-Tn-Sn}return Gt}}function qd(Ye,gt){return"key"in Ye&&Ye.key!==void 0&&Ye.key!==null?Ye.key:Ye.dataIndex?Array.isArray(Ye.dataIndex)?Ye.dataIndex.join("."):Ye.dataIndex:gt}function Ba(Ye,gt){return gt?`${gt}-${Ye}`:`${Ye}`}function ru(Ye,gt){return typeof Ye=="function"?Ye(gt):Ye}function zl(Ye,gt){const Ft=ru(Ye,gt);return Object.prototype.toString.call(Ft)==="[object Object]"?"":Ft}var Au=m(98851),Uu=function(gt,Ft){return w.createElement(Wa.Z,(0,S.Z)({},gt,{ref:Ft,icon:Au.Z}))},Vd=w.forwardRef(Uu),Ud=m(57838);function sh(Ye){const gt=w.useRef(Ye),Ft=(0,Ud.Z)();return[()=>gt.current,Dt=>{gt.current=Dt,Ft()}]}var Vf=m(15867),vf=m(84567),Uh=m(83159),kf=m(32983),Bh=m(82610),Kf=m(76529),ah=m(78045),ed=m(97326),Vh=m(15105),Kh=w.createContext(null);function cf(Ye){var gt=Ye.dropPosition,Ft=Ye.dropLevelOffset,Dt=Ye.indent,$t={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(gt){case-1:$t.top=0,$t.left=-Ft*Dt;break;case 1:$t.bottom=0,$t.left=-Ft*Dt;break;case 0:$t.bottom=0,$t.left=Dt;break}return w.createElement("div",{style:$t})}var Qc=m(36459),ka=m(82225),as=function(gt){for(var Ft=gt.prefixCls,Dt=gt.level,$t=gt.isStart,Gt=gt.isEnd,Pr="".concat(Ft,"-indent-unit"),Tn=[],Sn=0;Sn0&&arguments[0]!==void 0?arguments[0]:[],gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ft=Ye.length,Dt=gt.length;if(Math.abs(Ft-Dt)!==1)return{add:!1,key:null};function $t(Gt,Pr){var Tn=new Map;Gt.forEach(function(cn){Tn.set(cn,!0)});var Sn=Pr.filter(function(cn){return!Tn.has(cn)});return Sn.length===1?Sn[0]:null}return Ft ").concat(gt);return gt}var Af=w.forwardRef(function(Ye,gt){var Ft=Ye.prefixCls,Dt=Ye.data,$t=Ye.selectable,Gt=Ye.checkable,Pr=Ye.expandedKeys,Tn=Ye.selectedKeys,Sn=Ye.checkedKeys,cn=Ye.loadedKeys,qn=Ye.loadingKeys,br=Ye.halfCheckedKeys,So=Ye.keyEntities,kt=Ye.disabled,er=Ye.dragging,An=Ye.dragOverNodeKey,rr=Ye.dropPosition,cr=Ye.motion,Br=Ye.height,Ai=Ye.itemHeight,De=Ye.virtual,Zo=Ye.focusable,js=Ye.activeItem,ba=Ye.focused,sa=Ye.tabIndex,Ps=Ye.onKeyDown,ha=Ye.onFocus,To=Ye.onBlur,ir=Ye.onActiveChange,xi=Ye.onListChangeStart,ji=Ye.onListChangeEnd,is=(0,Bi.Z)(Ye,Np),Ds=w.useRef(null),aa=w.useRef(null);w.useImperativeHandle(gt,function(){return{scrollTo:function(Cn){Ds.current.scrollTo(Cn)},getIndentWidth:function(){return aa.current.offsetWidth}}});var Ho=w.useState(Pr),or=(0,b.Z)(Ho,2),eo=or[0],vs=or[1],ul=w.useState(Dt),Dl=(0,b.Z)(ul,2),Oa=Dl[0],_s=Dl[1],wl=w.useState(Dt),nl=(0,b.Z)(wl,2),mc=nl[0],pl=nl[1],ic=w.useState([]),va=(0,b.Z)(ic,2),qu=va[0],$l=va[1],su=w.useState(null),tu=(0,b.Z)(su,2),Gs=tu[0],Kc=tu[1],Le=w.useRef(Dt);Le.current=Dt;function Oe(){var Lr=Le.current;_s(Lr),pl(Lr),$l([]),Kc(null),ji()}(0,k.Z)(function(){vs(Pr);var Lr=Uf(eo,Pr);if(Lr.key!==null)if(Lr.add){var Cn=Oa.findIndex(function(_l){var Ql=_l.key;return Ql===Lr.key}),ei=Ff(Pd(Oa,Dt,Lr.key),De,Br,Ai),Li=Oa.slice();Li.splice(Cn+1,0,of),pl(Li),$l(ei),Kc("show")}else{var ps=Dt.findIndex(function(_l){var Ql=_l.key;return Ql===Lr.key}),xa=Ff(Pd(Dt,Oa,Lr.key),De,Br,Ai),Sa=Dt.slice();Sa.splice(ps+1,0,of),pl(Sa),$l(xa),Kc("hide")}else Oa!==Dt&&(_s(Dt),pl(Dt))},[Pr,Dt]),w.useEffect(function(){er||Oe()},[er]);var et=cr?mc:Dt,hn={expandedKeys:Pr,selectedKeys:Tn,loadedKeys:cn,loadingKeys:qn,checkedKeys:Sn,halfCheckedKeys:br,dragOverNodeKey:An,dropPosition:rr,keyEntities:So};return w.createElement(w.Fragment,null,ba&&js&&w.createElement("span",{style:$p,"aria-live":"assertive"},mp(js)),w.createElement("div",null,w.createElement("input",{style:$p,disabled:Zo===!1||kt,tabIndex:Zo!==!1?sa:null,onKeyDown:Ps,onFocus:ha,onBlur:To,value:"",onChange:ag,"aria-label":"for screen reader"})),w.createElement("div",{className:"".concat(Ft,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},w.createElement("div",{className:"".concat(Ft,"-indent")},w.createElement("div",{ref:aa,className:"".concat(Ft,"-indent-unit")}))),w.createElement(Os.Z,(0,S.Z)({},is,{data:et,itemKey:iu,height:Br,fullHeight:!1,virtual:De,itemHeight:Ai,prefixCls:"".concat(Ft,"-list"),ref:Ds,onVisibleChange:function(Cn,ei){var Li=new Set(Cn),ps=ei.filter(function(xa){return!Li.has(xa)});ps.some(function(xa){return iu(xa)===Md})&&Oe()}}),function(Lr){var Cn=Lr.pos,ei=(0,S.Z)({},((0,Qc.Z)(Lr.data),Lr.data)),Li=Lr.title,ps=Lr.key,xa=Lr.isStart,Sa=Lr.isEnd,_l=(0,bc.km)(ps,Cn);delete ei.key,delete ei.children;var Ql=(0,bc.H8)(_l,hn);return w.createElement(Cp,(0,S.Z)({},ei,Ql,{title:Li,active:!!js&&ps===js.key,pos:Cn,data:Lr.data,isStart:xa,isEnd:Sa,motion:cr,motionNodes:ps===Md?qu:null,motionType:Gs,onMotionStart:xi,onMotionEnd:Oe,treeNodeRequiredProps:hn,onMouseMove:function(){ir(null)}}))}))});Af.displayName="NodeList";var np=Af,Od=null;function td(Ye,gt){if(!Ye)return[];var Ft=Ye.slice(),Dt=Ft.indexOf(gt);return Dt>=0&&Ft.splice(Dt,1),Ft}function Tp(Ye,gt){var Ft=(Ye||[]).slice();return Ft.indexOf(gt)===-1&&Ft.push(gt),Ft}function _f(Ye){return Ye.split("-")}function Hh(Ye,gt){var Ft=[],Dt=(0,Qi.Z)(gt,Ye);function $t(){var Gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Gt.forEach(function(Pr){var Tn=Pr.key,Sn=Pr.children;Ft.push(Tn),$t(Sn)})}return $t(Dt.children),Ft}function Dp(Ye){if(Ye.parent){var gt=_f(Ye.pos);return Number(gt[gt.length-1])===Ye.parent.children.length-1}return!1}function Vp(Ye){var gt=_f(Ye.pos);return Number(gt[gt.length-1])===0}function Cd(Ye,gt,Ft,Dt,$t,Gt,Pr,Tn,Sn,cn){var qn,br=Ye.clientX,So=Ye.clientY,kt=Ye.target.getBoundingClientRect(),er=kt.top,An=kt.height,rr=(cn==="rtl"?-1:1)*((($t==null?void 0:$t.x)||0)-br),cr=(rr-12)/Dt,Br=(0,Qi.Z)(Tn,Ft.props.eventKey);if(So-1.5?Gt({dragNode:ir,dropNode:xi,dropPosition:1})?Ps=1:ji=!1:Gt({dragNode:ir,dropNode:xi,dropPosition:0})?Ps=0:Gt({dragNode:ir,dropNode:xi,dropPosition:1})?Ps=1:ji=!1:Gt({dragNode:ir,dropNode:xi,dropPosition:1})?Ps=1:ji=!1,{dropPosition:Ps,dropLevelOffset:ha,dropTargetKey:Br.key,dropTargetPos:Br.pos,dragOverNodeKey:sa,dropContainerKey:Ps===0?null:((qn=Br.parent)===null||qn===void 0?void 0:qn.key)||null,dropAllowed:ji}}function qh(Ye,gt){if(Ye){var Ft=gt.multiple;return Ft?Ye.slice():Ye.length?[Ye[0]]:Ye}}var kh=function(gt){return gt};function _h(Ye,gt){if(!Ye)return[];var Ft=gt||{},Dt=Ft.processProps,$t=Dt===void 0?kh:Dt,Gt=Array.isArray(Ye)?Ye:[Ye];return Gt.map(function(Pr){var Tn=Pr.children,Sn=_objectWithoutProperties(Pr,Od),cn=_h(Tn,gt);return React.createElement(TreeNode,_extends({key:Sn.key},$t(Sn)),cn)})}function Bf(Ye){if(!Ye)return null;var gt;if(Array.isArray(Ye))gt={checkedKeys:Ye,halfCheckedKeys:void 0};else if((0,be.Z)(Ye)==="object")gt={checkedKeys:Ye.checked||void 0,halfCheckedKeys:Ye.halfChecked||void 0};else return(0,Ue.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return gt}function bd(Ye,gt){var Ft=new Set;function Dt($t){if(!Ft.has($t)){var Gt=(0,Qi.Z)(gt,$t);if(Gt){Ft.add($t);var Pr=Gt.parent,Tn=Gt.node;Tn.disabled||Pr&&Dt(Pr.key)}}}return(Ye||[]).forEach(function($t){Dt($t)}),(0,qr.Z)(Ft)}var $c=m(17341),Hd=10,vh=function(Ye){(0,ts.Z)(Ft,Ye);var gt=(0,Vs.Z)(Ft);function Ft(){var Dt;(0,bn.Z)(this,Ft);for(var $t=arguments.length,Gt=new Array($t),Pr=0;Pr<$t;Pr++)Gt[Pr]=arguments[Pr];return Dt=gt.call.apply(gt,[this].concat(Gt)),Dt.destroyed=!1,Dt.delayedDragEnterLogic=void 0,Dt.loadingRetryTimes={},Dt.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,bc.w$)()},Dt.dragStartMousePosition=null,Dt.dragNode=void 0,Dt.currentMouseOverDroppableNodeKey=null,Dt.listRef=w.createRef(),Dt.onNodeDragStart=function(Tn,Sn){var cn=Dt.state,qn=cn.expandedKeys,br=cn.keyEntities,So=Dt.props.onDragStart,kt=Sn.props.eventKey;Dt.dragNode=Sn,Dt.dragStartMousePosition={x:Tn.clientX,y:Tn.clientY};var er=td(qn,kt);Dt.setState({draggingNodeKey:kt,dragChildrenKeys:Hh(kt,br),indent:Dt.listRef.current.getIndentWidth()}),Dt.setExpandedKeys(er),window.addEventListener("dragend",Dt.onWindowDragEnd),So==null||So({event:Tn,node:(0,bc.F)(Sn.props)})},Dt.onNodeDragEnter=function(Tn,Sn){var cn=Dt.state,qn=cn.expandedKeys,br=cn.keyEntities,So=cn.dragChildrenKeys,kt=cn.flattenNodes,er=cn.indent,An=Dt.props,rr=An.onDragEnter,cr=An.onExpand,Br=An.allowDrop,Ai=An.direction,De=Sn.props,Zo=De.pos,js=De.eventKey,ba=(0,ed.Z)(Dt),sa=ba.dragNode;if(Dt.currentMouseOverDroppableNodeKey!==js&&(Dt.currentMouseOverDroppableNodeKey=js),!sa){Dt.resetDragState();return}var Ps=Cd(Tn,sa,Sn,er,Dt.dragStartMousePosition,Br,kt,br,qn,Ai),ha=Ps.dropPosition,To=Ps.dropLevelOffset,ir=Ps.dropTargetKey,xi=Ps.dropContainerKey,ji=Ps.dropTargetPos,is=Ps.dropAllowed,Ds=Ps.dragOverNodeKey;if(So.indexOf(ir)!==-1||!is){Dt.resetDragState();return}if(Dt.delayedDragEnterLogic||(Dt.delayedDragEnterLogic={}),Object.keys(Dt.delayedDragEnterLogic).forEach(function(aa){clearTimeout(Dt.delayedDragEnterLogic[aa])}),sa.props.eventKey!==Sn.props.eventKey&&(Tn.persist(),Dt.delayedDragEnterLogic[Zo]=window.setTimeout(function(){if(Dt.state.draggingNodeKey!==null){var aa=(0,qr.Z)(qn),Ho=(0,Qi.Z)(br,Sn.props.eventKey);Ho&&(Ho.children||[]).length&&(aa=Tp(qn,Sn.props.eventKey)),"expandedKeys"in Dt.props||Dt.setExpandedKeys(aa),cr==null||cr(aa,{node:(0,bc.F)(Sn.props),expanded:!0,nativeEvent:Tn.nativeEvent})}},800)),sa.props.eventKey===ir&&To===0){Dt.resetDragState();return}Dt.setState({dragOverNodeKey:Ds,dropPosition:ha,dropLevelOffset:To,dropTargetKey:ir,dropContainerKey:xi,dropTargetPos:ji,dropAllowed:is}),rr==null||rr({event:Tn,node:(0,bc.F)(Sn.props),expandedKeys:qn})},Dt.onNodeDragOver=function(Tn,Sn){var cn=Dt.state,qn=cn.dragChildrenKeys,br=cn.flattenNodes,So=cn.keyEntities,kt=cn.expandedKeys,er=cn.indent,An=Dt.props,rr=An.onDragOver,cr=An.allowDrop,Br=An.direction,Ai=(0,ed.Z)(Dt),De=Ai.dragNode;if(De){var Zo=Cd(Tn,De,Sn,er,Dt.dragStartMousePosition,cr,br,So,kt,Br),js=Zo.dropPosition,ba=Zo.dropLevelOffset,sa=Zo.dropTargetKey,Ps=Zo.dropContainerKey,ha=Zo.dropAllowed,To=Zo.dropTargetPos,ir=Zo.dragOverNodeKey;qn.indexOf(sa)!==-1||!ha||(De.props.eventKey===sa&&ba===0?Dt.state.dropPosition===null&&Dt.state.dropLevelOffset===null&&Dt.state.dropTargetKey===null&&Dt.state.dropContainerKey===null&&Dt.state.dropTargetPos===null&&Dt.state.dropAllowed===!1&&Dt.state.dragOverNodeKey===null||Dt.resetDragState():js===Dt.state.dropPosition&&ba===Dt.state.dropLevelOffset&&sa===Dt.state.dropTargetKey&&Ps===Dt.state.dropContainerKey&&To===Dt.state.dropTargetPos&&ha===Dt.state.dropAllowed&&ir===Dt.state.dragOverNodeKey||Dt.setState({dropPosition:js,dropLevelOffset:ba,dropTargetKey:sa,dropContainerKey:Ps,dropTargetPos:To,dropAllowed:ha,dragOverNodeKey:ir}),rr==null||rr({event:Tn,node:(0,bc.F)(Sn.props)}))}},Dt.onNodeDragLeave=function(Tn,Sn){Dt.currentMouseOverDroppableNodeKey===Sn.props.eventKey&&!Tn.currentTarget.contains(Tn.relatedTarget)&&(Dt.resetDragState(),Dt.currentMouseOverDroppableNodeKey=null);var cn=Dt.props.onDragLeave;cn==null||cn({event:Tn,node:(0,bc.F)(Sn.props)})},Dt.onWindowDragEnd=function(Tn){Dt.onNodeDragEnd(Tn,null,!0),window.removeEventListener("dragend",Dt.onWindowDragEnd)},Dt.onNodeDragEnd=function(Tn,Sn){var cn=Dt.props.onDragEnd;Dt.setState({dragOverNodeKey:null}),Dt.cleanDragState(),cn==null||cn({event:Tn,node:(0,bc.F)(Sn.props)}),Dt.dragNode=null,window.removeEventListener("dragend",Dt.onWindowDragEnd)},Dt.onNodeDrop=function(Tn,Sn){var cn,qn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,br=Dt.state,So=br.dragChildrenKeys,kt=br.dropPosition,er=br.dropTargetKey,An=br.dropTargetPos,rr=br.dropAllowed;if(rr){var cr=Dt.props.onDrop;if(Dt.setState({dragOverNodeKey:null}),Dt.cleanDragState(),er!==null){var Br=(0,Ie.Z)((0,Ie.Z)({},(0,bc.H8)(er,Dt.getTreeNodeRequiredProps())),{},{active:((cn=Dt.getActiveItem())===null||cn===void 0?void 0:cn.key)===er,data:(0,Qi.Z)(Dt.state.keyEntities,er).node}),Ai=So.indexOf(er)!==-1;(0,Ue.ZP)(!Ai,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var De=_f(An),Zo={event:Tn,node:(0,bc.F)(Br),dragNode:Dt.dragNode?(0,bc.F)(Dt.dragNode.props):null,dragNodesKeys:[Dt.dragNode.props.eventKey].concat(So),dropToGap:kt!==0,dropPosition:kt+Number(De[De.length-1])};qn||cr==null||cr(Zo),Dt.dragNode=null}}},Dt.cleanDragState=function(){var Tn=Dt.state.draggingNodeKey;Tn!==null&&Dt.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Dt.dragStartMousePosition=null,Dt.currentMouseOverDroppableNodeKey=null},Dt.triggerExpandActionExpand=function(Tn,Sn){var cn=Dt.state,qn=cn.expandedKeys,br=cn.flattenNodes,So=Sn.expanded,kt=Sn.key,er=Sn.isLeaf;if(!(er||Tn.shiftKey||Tn.metaKey||Tn.ctrlKey)){var An=br.filter(function(cr){return cr.key===kt})[0],rr=(0,bc.F)((0,Ie.Z)((0,Ie.Z)({},(0,bc.H8)(kt,Dt.getTreeNodeRequiredProps())),{},{data:An.data}));Dt.setExpandedKeys(So?td(qn,kt):Tp(qn,kt)),Dt.onNodeExpand(Tn,rr)}},Dt.onNodeClick=function(Tn,Sn){var cn=Dt.props,qn=cn.onClick,br=cn.expandAction;br==="click"&&Dt.triggerExpandActionExpand(Tn,Sn),qn==null||qn(Tn,Sn)},Dt.onNodeDoubleClick=function(Tn,Sn){var cn=Dt.props,qn=cn.onDoubleClick,br=cn.expandAction;br==="doubleClick"&&Dt.triggerExpandActionExpand(Tn,Sn),qn==null||qn(Tn,Sn)},Dt.onNodeSelect=function(Tn,Sn){var cn=Dt.state.selectedKeys,qn=Dt.state,br=qn.keyEntities,So=qn.fieldNames,kt=Dt.props,er=kt.onSelect,An=kt.multiple,rr=Sn.selected,cr=Sn[So.key],Br=!rr;Br?An?cn=Tp(cn,cr):cn=[cr]:cn=td(cn,cr);var Ai=cn.map(function(De){var Zo=(0,Qi.Z)(br,De);return Zo?Zo.node:null}).filter(function(De){return De});Dt.setUncontrolledState({selectedKeys:cn}),er==null||er(cn,{event:"select",selected:Br,node:Sn,selectedNodes:Ai,nativeEvent:Tn.nativeEvent})},Dt.onNodeCheck=function(Tn,Sn,cn){var qn=Dt.state,br=qn.keyEntities,So=qn.checkedKeys,kt=qn.halfCheckedKeys,er=Dt.props,An=er.checkStrictly,rr=er.onCheck,cr=Sn.key,Br,Ai={event:"check",node:Sn,checked:cn,nativeEvent:Tn.nativeEvent};if(An){var De=cn?Tp(So,cr):td(So,cr),Zo=td(kt,cr);Br={checked:De,halfChecked:Zo},Ai.checkedNodes=De.map(function(To){return(0,Qi.Z)(br,To)}).filter(function(To){return To}).map(function(To){return To.node}),Dt.setUncontrolledState({checkedKeys:De})}else{var js=(0,$c.S)([].concat((0,qr.Z)(So),[cr]),!0,br),ba=js.checkedKeys,sa=js.halfCheckedKeys;if(!cn){var Ps=new Set(ba);Ps.delete(cr);var ha=(0,$c.S)(Array.from(Ps),{checked:!1,halfCheckedKeys:sa},br);ba=ha.checkedKeys,sa=ha.halfCheckedKeys}Br=ba,Ai.checkedNodes=[],Ai.checkedNodesPositions=[],Ai.halfCheckedKeys=sa,ba.forEach(function(To){var ir=(0,Qi.Z)(br,To);if(ir){var xi=ir.node,ji=ir.pos;Ai.checkedNodes.push(xi),Ai.checkedNodesPositions.push({node:xi,pos:ji})}}),Dt.setUncontrolledState({checkedKeys:ba},!1,{halfCheckedKeys:sa})}rr==null||rr(Br,Ai)},Dt.onNodeLoad=function(Tn){var Sn=Tn.key,cn=new Promise(function(qn,br){Dt.setState(function(So){var kt=So.loadedKeys,er=kt===void 0?[]:kt,An=So.loadingKeys,rr=An===void 0?[]:An,cr=Dt.props,Br=cr.loadData,Ai=cr.onLoad;if(!Br||er.indexOf(Sn)!==-1||rr.indexOf(Sn)!==-1)return null;var De=Br(Tn);return De.then(function(){var Zo=Dt.state.loadedKeys,js=Tp(Zo,Sn);Ai==null||Ai(js,{event:"load",node:Tn}),Dt.setUncontrolledState({loadedKeys:js}),Dt.setState(function(ba){return{loadingKeys:td(ba.loadingKeys,Sn)}}),qn()}).catch(function(Zo){if(Dt.setState(function(ba){return{loadingKeys:td(ba.loadingKeys,Sn)}}),Dt.loadingRetryTimes[Sn]=(Dt.loadingRetryTimes[Sn]||0)+1,Dt.loadingRetryTimes[Sn]>=Hd){var js=Dt.state.loadedKeys;(0,Ue.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Dt.setUncontrolledState({loadedKeys:Tp(js,Sn)}),qn()}br(Zo)}),{loadingKeys:Tp(rr,Sn)}})});return cn.catch(function(){}),cn},Dt.onNodeMouseEnter=function(Tn,Sn){var cn=Dt.props.onMouseEnter;cn==null||cn({event:Tn,node:Sn})},Dt.onNodeMouseLeave=function(Tn,Sn){var cn=Dt.props.onMouseLeave;cn==null||cn({event:Tn,node:Sn})},Dt.onNodeContextMenu=function(Tn,Sn){var cn=Dt.props.onRightClick;cn&&(Tn.preventDefault(),cn({event:Tn,node:Sn}))},Dt.onFocus=function(){var Tn=Dt.props.onFocus;Dt.setState({focused:!0});for(var Sn=arguments.length,cn=new Array(Sn),qn=0;qn1&&arguments[1]!==void 0?arguments[1]:!1,cn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Dt.destroyed){var qn=!1,br=!0,So={};Object.keys(Tn).forEach(function(kt){if(kt in Dt.props){br=!1;return}qn=!0,So[kt]=Tn[kt]}),qn&&(!Sn||br)&&Dt.setState((0,Ie.Z)((0,Ie.Z)({},So),cn))}},Dt.scrollTo=function(Tn){Dt.listRef.current.scrollTo(Tn)},Dt}return(0,Eu.Z)(Ft,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var $t=this.props.activeKey;$t!==void 0&&$t!==this.state.activeKey&&(this.setState({activeKey:$t}),$t!==null&&this.scrollTo({key:$t}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var $t,Gt=this.state,Pr=Gt.focused,Tn=Gt.flattenNodes,Sn=Gt.keyEntities,cn=Gt.draggingNodeKey,qn=Gt.activeKey,br=Gt.dropLevelOffset,So=Gt.dropContainerKey,kt=Gt.dropTargetKey,er=Gt.dropPosition,An=Gt.dragOverNodeKey,rr=Gt.indent,cr=this.props,Br=cr.prefixCls,Ai=cr.className,De=cr.style,Zo=cr.showLine,js=cr.focusable,ba=cr.tabIndex,sa=ba===void 0?0:ba,Ps=cr.selectable,ha=cr.showIcon,To=cr.icon,ir=cr.switcherIcon,xi=cr.draggable,ji=cr.checkable,is=cr.checkStrictly,Ds=cr.disabled,aa=cr.motion,Ho=cr.loadData,or=cr.filterTreeNode,eo=cr.height,vs=cr.itemHeight,ul=cr.virtual,Dl=cr.titleRender,Oa=cr.dropIndicatorRender,_s=cr.onContextMenu,wl=cr.onScroll,nl=cr.direction,mc=cr.rootClassName,pl=cr.rootStyle,ic=(0,Zn.Z)(this.props,{aria:!0,data:!0}),va;return xi&&((0,be.Z)(xi)==="object"?va=xi:typeof xi=="function"?va={nodeDraggable:xi}:va={}),w.createElement(Kh.Provider,{value:{prefixCls:Br,selectable:Ps,showIcon:ha,icon:To,switcherIcon:ir,draggable:va,draggingNodeKey:cn,checkable:ji,checkStrictly:is,disabled:Ds,keyEntities:Sn,dropLevelOffset:br,dropContainerKey:So,dropTargetKey:kt,dropPosition:er,dragOverNodeKey:An,indent:rr,direction:nl,dropIndicatorRender:Oa,loadData:Ho,filterTreeNode:or,titleRender:Dl,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},w.createElement("div",{role:"tree",className:Ce()(Br,Ai,mc,($t={},(0,me.Z)($t,"".concat(Br,"-show-line"),Zo),(0,me.Z)($t,"".concat(Br,"-focused"),Pr),(0,me.Z)($t,"".concat(Br,"-active-focused"),qn!==null),$t)),style:pl},w.createElement(np,(0,S.Z)({ref:this.listRef,prefixCls:Br,style:De,data:Tn,disabled:Ds,selectable:Ps,checkable:!!ji,motion:aa,dragging:cn!==null,height:eo,itemHeight:vs,virtual:ul,focusable:js,focused:Pr,tabIndex:sa,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:_s,onScroll:wl},this.getTreeNodeRequiredProps(),ic))))}}],[{key:"getDerivedStateFromProps",value:function($t,Gt){var Pr=Gt.prevProps,Tn={prevProps:$t};function Sn(js){return!Pr&&js in $t||Pr&&Pr[js]!==$t[js]}var cn,qn=Gt.fieldNames;if(Sn("fieldNames")&&(qn=(0,bc.w$)($t.fieldNames),Tn.fieldNames=qn),Sn("treeData")?cn=$t.treeData:Sn("children")&&((0,Ue.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),cn=(0,bc.zn)($t.children)),cn){Tn.treeData=cn;var br=(0,bc.I8)(cn,{fieldNames:qn});Tn.keyEntities=(0,Ie.Z)((0,me.Z)({},Md,Ih),br.keyEntities)}var So=Tn.keyEntities||Gt.keyEntities;if(Sn("expandedKeys")||Pr&&Sn("autoExpandParent"))Tn.expandedKeys=$t.autoExpandParent||!Pr&&$t.defaultExpandParent?bd($t.expandedKeys,So):$t.expandedKeys;else if(!Pr&&$t.defaultExpandAll){var kt=(0,Ie.Z)({},So);delete kt[Md],Tn.expandedKeys=Object.keys(kt).map(function(js){return kt[js].key})}else!Pr&&$t.defaultExpandedKeys&&(Tn.expandedKeys=$t.autoExpandParent||$t.defaultExpandParent?bd($t.defaultExpandedKeys,So):$t.defaultExpandedKeys);if(Tn.expandedKeys||delete Tn.expandedKeys,cn||Tn.expandedKeys){var er=(0,bc.oH)(cn||Gt.treeData,Tn.expandedKeys||Gt.expandedKeys,qn);Tn.flattenNodes=er}if($t.selectable&&(Sn("selectedKeys")?Tn.selectedKeys=qh($t.selectedKeys,$t):!Pr&&$t.defaultSelectedKeys&&(Tn.selectedKeys=qh($t.defaultSelectedKeys,$t))),$t.checkable){var An;if(Sn("checkedKeys")?An=Bf($t.checkedKeys)||{}:!Pr&&$t.defaultCheckedKeys?An=Bf($t.defaultCheckedKeys)||{}:cn&&(An=Bf($t.checkedKeys)||{checkedKeys:Gt.checkedKeys,halfCheckedKeys:Gt.halfCheckedKeys}),An){var rr=An,cr=rr.checkedKeys,Br=cr===void 0?[]:cr,Ai=rr.halfCheckedKeys,De=Ai===void 0?[]:Ai;if(!$t.checkStrictly){var Zo=(0,$c.S)(Br,!0,So);Br=Zo.checkedKeys,De=Zo.halfCheckedKeys}Tn.checkedKeys=Br,Tn.halfCheckedKeys=De}}return Sn("loadedKeys")&&(Tn.loadedKeys=$t.loadedKeys),Tn}}]),Ft}(w.Component);vh.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:cf,allowDrop:function(){return!0},expandAction:!1},vh.TreeNode=Ah;var wo=vh,D=wo,F={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},q=F,ae=function(gt,Ft){return w.createElement(Wa.Z,(0,S.Z)({},gt,{ref:Ft,icon:q}))},He=w.forwardRef(ae),qt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},zn=qt,di=function(gt,Ft){return w.createElement(Wa.Z,(0,S.Z)({},gt,{ref:Ft,icon:zn}))},Uo=w.forwardRef(di),la={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},Cl=la,Ll=function(gt,Ft){return w.createElement(Wa.Z,(0,S.Z)({},gt,{ref:Ft,icon:Cl}))},zu=w.forwardRef(Ll),Iu={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},pc=Iu,zc=function(gt,Ft){return w.createElement(Wa.Z,(0,S.Z)({},gt,{ref:Ft,icon:pc}))},Rd=w.forwardRef(zc),X=m(33603),ne=m(85731),Q=m(63185),le=m(33507);const it=new ne.E4("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Rt=(Ye,gt)=>({[`.${Ye}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${gt.motionDurationSlow}`}}}),en=(Ye,gt)=>({[`.${Ye}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:gt.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${gt.lineWidthBold}px solid ${gt.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Yn=(Ye,gt)=>{const{treeCls:Ft,treeNodeCls:Dt,treeNodePadding:$t,titleHeight:Gt,nodeSelectedBg:Pr,nodeHoverBg:Tn}=gt,Sn=gt.paddingXS;return{[Ft]:Object.assign(Object.assign({},(0,Wd.Wf)(gt)),{background:gt.colorBgContainer,borderRadius:gt.borderRadius,transition:`background-color ${gt.motionDurationSlow}`,[`&${Ft}-rtl`]:{[`${Ft}-switcher`]:{"&_close":{[`${Ft}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${Ft}-active-focused)`]:Object.assign({},(0,Wd.oN)(gt)),[`${Ft}-list-holder-inner`]:{alignItems:"flex-start"},[`&${Ft}-block-node`]:{[`${Ft}-list-holder-inner`]:{alignItems:"stretch",[`${Ft}-node-content-wrapper`]:{flex:"auto"},[`${Dt}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:$t,insetInlineStart:0,border:`1px solid ${gt.colorPrimary}`,opacity:0,animationName:it,animationDuration:gt.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${Dt}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${$t}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${Ft}-node-content-wrapper`]:{color:gt.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${Ft}-node-content-wrapper`]:Object.assign({},(0,Wd.oN)(gt)),[`&:not(${Dt}-disabled).filter-node ${Ft}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${Ft}-draggable-icon`]:{flexShrink:0,width:Gt,lineHeight:`${Gt}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${gt.motionDurationSlow}`,[`${Dt}:hover &`]:{opacity:.45}},[`&${Dt}-disabled`]:{[`${Ft}-draggable-icon`]:{visibility:"hidden"}}}},[`${Ft}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:Gt}},[`${Ft}-draggable-icon`]:{visibility:"hidden"},[`${Ft}-switcher`]:Object.assign(Object.assign({},Rt(Ye,gt)),{position:"relative",flex:"none",alignSelf:"stretch",width:Gt,margin:0,lineHeight:`${Gt}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${Ft}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:gt.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Gt/2,bottom:-$t,marginInlineStart:-1,borderInlineEnd:`1px solid ${gt.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:Gt/2*.8,height:Gt/2,borderBottom:`1px solid ${gt.colorBorder}`,content:'""'}}}),[`${Ft}-checkbox`]:{top:"initial",marginInlineEnd:Sn,alignSelf:"flex-start",marginTop:gt.marginXXS},[`${Ft}-node-content-wrapper, ${Ft}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:Gt,margin:0,padding:`0 ${gt.paddingXS/2}px`,color:"inherit",lineHeight:`${Gt}px`,background:"transparent",borderRadius:gt.borderRadius,cursor:"pointer",transition:`all ${gt.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:Tn},[`&${Ft}-node-selected`]:{backgroundColor:Pr},[`${Ft}-iconEle`]:{display:"inline-block",width:Gt,height:Gt,lineHeight:`${Gt}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${Ft}-unselectable ${Ft}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${Ft}-node-content-wrapper`]:Object.assign({lineHeight:`${Gt}px`,userSelect:"none"},en(Ye,gt)),[`${Dt}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${gt.colorPrimary}`}},"&-show-line":{[`${Ft}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Gt/2,bottom:-$t,borderInlineEnd:`1px solid ${gt.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${Ft}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${Dt}-leaf-last`]:{[`${Ft}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${Gt/2}px !important`}}}}})}},Zr=Ye=>{const{treeCls:gt,treeNodeCls:Ft,treeNodePadding:Dt,directoryNodeSelectedBg:$t,directoryNodeSelectedColor:Gt}=Ye;return{[`${gt}${gt}-directory`]:{[Ft]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:Dt,insetInlineStart:0,transition:`background-color ${Ye.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:Ye.controlItemBgHover}},"> *":{zIndex:1},[`${gt}-switcher`]:{transition:`color ${Ye.motionDurationMid}`},[`${gt}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${gt}-node-selected`]:{color:Gt,background:"transparent"}},"&-selected":{[` + ${mt}-prev, + ${mt}-next, + ${mt}-jump-prev, + ${mt}-jump-next + `]:{display:"inline-block",minWidth:Ye.itemSize,height:Ye.itemSize,color:Ye.colorText,fontFamily:Ye.fontFamily,lineHeight:`${Ye.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Ye.borderRadius,cursor:"pointer",transition:`all ${Ye.motionDurationMid}`},[`${mt}-prev, ${mt}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:Ye.colorText,cursor:"pointer",userSelect:"none"},[`${mt}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Ye.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Ye.lineWidth}px ${Ye.lineType} transparent`,borderRadius:Ye.borderRadius,outline:"none",transition:`all ${Ye.motionDurationMid}`},[`&:hover ${mt}-item-link`]:{backgroundColor:Ye.colorBgTextHover},[`&:active ${mt}-item-link`]:{backgroundColor:Ye.colorBgTextActive},[`&${mt}-disabled:hover`]:{[`${mt}-item-link`]:{backgroundColor:"transparent"}}},[`${mt}-slash`]:{marginInlineEnd:Ye.paginationSlashMarginInlineEnd,marginInlineStart:Ye.paginationSlashMarginInlineStart},[`${mt}-options`]:{display:"inline-block",marginInlineStart:Ye.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Ye.controlHeight,marginInlineStart:Ye.marginXS,lineHeight:`${Ye.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,th.ik)(Ye)),{width:Ye.controlHeightLG*1.25,height:Ye.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Ye.marginXS,marginInlineEnd:Ye.marginXS})}}}},Xc=Ye=>{const{componentCls:mt}=Ye;return{[`${mt}-item`]:{display:"inline-block",minWidth:Ye.itemSize,height:Ye.itemSize,marginInlineEnd:Ye.marginXS,fontFamily:Ye.fontFamily,lineHeight:`${Ye.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${Ye.lineWidth}px ${Ye.lineType} transparent`,borderRadius:Ye.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Ye.paginationItemPaddingInline}px`,color:Ye.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${mt}-item-active)`]:{"&:hover":{transition:`all ${Ye.motionDurationMid}`,backgroundColor:Ye.colorBgTextHover},"&:active":{backgroundColor:Ye.colorBgTextActive}},"&-active":{fontWeight:Ye.fontWeightStrong,backgroundColor:Ye.itemActiveBg,borderColor:Ye.colorPrimary,a:{color:Ye.colorPrimary},"&:hover":{borderColor:Ye.colorPrimaryHover},"&:hover a":{color:Ye.colorPrimaryHover}}}}},jh=Ye=>{const{componentCls:mt}=Ye;return{[mt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,jd.Wf)(Ye)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${mt}-total-text`]:{display:"inline-block",height:Ye.itemSize,marginInlineEnd:Ye.marginXS,lineHeight:`${Ye.itemSize-2}px`,verticalAlign:"middle"}}),Xc(Ye)),cc(Ye)),qd(Ye)),Pf(Ye)),nd(Ye)),{[`@media only screen and (max-width: ${Ye.screenLG}px)`]:{[`${mt}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Ye.screenSM}px)`]:{[`${mt}-options`]:{display:"none"}}}),[`&${Ye.componentCls}-rtl`]:{direction:"rtl"}}},uf=Ye=>{const{componentCls:mt}=Ye;return{[`${mt}${mt}-disabled:not(${mt}-mini)`]:{"&, &:hover":{[`${mt}-item-link`]:{borderColor:Ye.colorBorder}},"&:focus-visible":{[`${mt}-item-link`]:{borderColor:Ye.colorBorder}},[`${mt}-item, ${mt}-item-link`]:{backgroundColor:Ye.colorBgContainerDisabled,borderColor:Ye.colorBorder,[`&:hover:not(${mt}-item-active)`]:{backgroundColor:Ye.colorBgContainerDisabled,borderColor:Ye.colorBorder,a:{color:Ye.colorTextDisabled}},[`&${mt}-item-active`]:{backgroundColor:Ye.itemActiveBgDisabled}},[`${mt}-prev, ${mt}-next`]:{"&:hover button":{backgroundColor:Ye.colorBgContainerDisabled,borderColor:Ye.colorBorder,color:Ye.colorTextDisabled},[`${mt}-item-link`]:{backgroundColor:Ye.colorBgContainerDisabled,borderColor:Ye.colorBorder}}},[`${mt}:not(${mt}-mini)`]:{[`${mt}-prev, ${mt}-next`]:{"&:hover button":{borderColor:Ye.colorPrimaryHover,backgroundColor:Ye.itemBg},[`${mt}-item-link`]:{backgroundColor:Ye.itemLinkBg,borderColor:Ye.colorBorder},[`&:hover ${mt}-item-link`]:{borderColor:Ye.colorPrimary,backgroundColor:Ye.itemBg,color:Ye.colorPrimary},[`&${mt}-disabled`]:{[`${mt}-item-link`]:{borderColor:Ye.colorBorder,color:Ye.colorTextDisabled}}},[`${mt}-item`]:{backgroundColor:Ye.itemBg,border:`${Ye.lineWidth}px ${Ye.lineType} ${Ye.colorBorder}`,[`&:hover:not(${mt}-item-active)`]:{borderColor:Ye.colorPrimary,backgroundColor:Ye.itemBg,a:{color:Ye.colorPrimary}},"&-active":{borderColor:Ye.colorPrimary}}}}},Lh=Ye=>{const{componentCls:mt}=Ye;return{[`${mt}:not(${mt}-disabled)`]:{[`${mt}-item`]:Object.assign({},(0,jd.Qy)(Ye)),[`${mt}-jump-prev, ${mt}-jump-next`]:{"&:focus-visible":Object.assign({[`${mt}-item-link-icon`]:{opacity:1},[`${mt}-item-ellipsis`]:{opacity:0}},(0,jd.oN)(Ye))},[`${mt}-prev, ${mt}-next`]:{[`&:focus-visible ${mt}-item-link`]:Object.assign({},(0,jd.oN)(Ye))}}}};var Sf=(0,vh.Z)("Pagination",Ye=>{const mt=(0,id.TS)(Ye,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Ye.marginXXS/2,paginationMiniQuickJumperInputWidth:Ye.controlHeightLG*1.1,paginationItemPaddingInline:Ye.marginXXS*1.5,paginationEllipsisLetterSpacing:Ye.marginXXS/2,paginationSlashMarginInlineStart:Ye.marginXXS,paginationSlashMarginInlineEnd:Ye.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,th.e5)(Ye),(0,th.TM)(Ye));return[jh(mt),Lh(mt),Ye.wireframe&&uf(mt)]},Ye=>({itemBg:Ye.colorBgContainer,itemSize:Ye.controlHeight,itemSizeSM:Ye.controlHeightSM,itemActiveBg:Ye.colorBgContainer,itemLinkBg:Ye.colorBgContainer,itemActiveColorDisabled:Ye.colorTextDisabled,itemActiveBgDisabled:Ye.controlItemBgActiveDisabled,itemInputBg:Ye.colorBgContainer,miniOptionsSizeChangerTop:0})),Cp=function(Ye,mt){var Ft={};for(var Dt in Ye)Object.prototype.hasOwnProperty.call(Ye,Dt)&&mt.indexOf(Dt)<0&&(Ft[Dt]=Ye[Dt]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Dt=Object.getOwnPropertySymbols(Ye);$t{const{prefixCls:mt,selectPrefixCls:Ft,className:Dt,rootClassName:$t,style:Gt,size:Pr,locale:Dn,selectComponentClass:Sn,responsive:cn,showSizeChanger:Jn}=Ye,xr=Cp(Ye,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:So}=(0,Na.Z)(cn),{getPrefixCls:kt,direction:er,pagination:In={}}=w.useContext(Ei.E_),rr=kt("pagination",mt),[cr,Br]=Sf(rr),Ai=Jn!=null?Jn:In.showSizeChanger,Ee=w.useMemo(()=>{const ir=w.createElement("span",{className:`${rr}-item-ellipsis`},"\u2022\u2022\u2022"),bi=w.createElement("button",{className:`${rr}-item-link`,type:"button",tabIndex:-1},er==="rtl"?w.createElement(au.Z,null):w.createElement(vu.Z,null)),Wi=w.createElement("button",{className:`${rr}-item-link`,type:"button",tabIndex:-1},er==="rtl"?w.createElement(vu.Z,null):w.createElement(au.Z,null)),os=w.createElement("a",{className:`${rr}-item-link`},w.createElement("div",{className:`${rr}-item-container`},er==="rtl"?w.createElement(ql,{className:`${rr}-item-link-icon`}):w.createElement(Xs,{className:`${rr}-item-link-icon`}),ir)),Ds=w.createElement("a",{className:`${rr}-item-link`},w.createElement("div",{className:`${rr}-item-container`},er==="rtl"?w.createElement(Xs,{className:`${rr}-item-link-icon`}):w.createElement(ql,{className:`${rr}-item-link-icon`}),ir));return{prevIcon:bi,nextIcon:Wi,jumpPrevIcon:os,jumpNextIcon:Ds}},[er,rr]),[Zo]=(0,Fc.Z)("Pagination",ku.Z),Ws=Object.assign(Object.assign({},Zo),Dn),ba=(0,ca.Z)(Pr),aa=ba==="small"||!!(So&&!ba&&cn),Ps=kt("select",Ft),ha=xe()({[`${rr}-mini`]:aa,[`${rr}-rtl`]:er==="rtl"},In==null?void 0:In.className,Dt,$t,Br),To=Object.assign(Object.assign({},In==null?void 0:In.style),Gt);return cr(w.createElement(ad,Object.assign({},Ee,xr,{style:To,prefixCls:rr,selectPrefixCls:Ps,className:ha,selectComponentClass:Sn||(aa?vd:Xd),locale:Ws,showSizeChanger:Ai})))},Th=uh,yu=m(63732),ff=m(99737);function Ja(Ye){return function(Ft){let{prefixCls:Dt,onExpand:$t,record:Gt,expanded:Pr,expandable:Dn}=Ft;const Sn=`${Dt}-row-expand-icon`;return w.createElement("button",{type:"button",onClick:cn=>{$t(Gt,cn),cn.stopPropagation()},className:xe()(Sn,{[`${Sn}-spaced`]:!Dn,[`${Sn}-expanded`]:Dn&&Pr,[`${Sn}-collapsed`]:Dn&&!Pr}),"aria-label":Pr?Ye.collapse:Ye.expand,"aria-expanded":Pr})}}var Fu=Ja;function wd(Ye){return(Ft,Dt)=>{const $t=Ft.querySelector(`.${Ye}-container`);let Gt=Dt;if($t){const Pr=getComputedStyle($t),Dn=parseInt(Pr.borderLeftWidth,10),Sn=parseInt(Pr.borderRightWidth,10);Gt=Dt-Dn-Sn}return Gt}}function Yd(Ye,mt){return"key"in Ye&&Ye.key!==void 0&&Ye.key!==null?Ye.key:Ye.dataIndex?Array.isArray(Ye.dataIndex)?Ye.dataIndex.join("."):Ye.dataIndex:mt}function Ba(Ye,mt){return mt?`${mt}-${Ye}`:`${Ye}`}function ru(Ye,mt){return typeof Ye=="function"?Ye(mt):Ye}function zl(Ye,mt){const Ft=ru(Ye,mt);return Object.prototype.toString.call(Ft)==="[object Object]"?"":Ft}var Au=m(58825),Vu=function(mt,Ft){return w.createElement(ja.Z,(0,S.Z)({},mt,{ref:Ft,icon:Au.Z}))},Vd=w.forwardRef(Vu),Ud=m(73962);function oh(Ye){const mt=w.useRef(Ye),Ft=(0,Ud.Z)();return[()=>mt.current,Dt=>{mt.current=Dt,Ft()}]}var Vf=m(38115),yf=m(14604),Uh=m(30899),kf=m(94823),Bh=m(7205),Kf=m(63044),sh=m(87357),ed=m(9967),Vh=m(38251),Kh=w.createContext(null);function cf(Ye){var mt=Ye.dropPosition,Ft=Ye.dropLevelOffset,Dt=Ye.indent,$t={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(mt){case-1:$t.top=0,$t.left=-Ft*Dt;break;case 1:$t.bottom=0,$t.left=-Ft*Dt;break;case 0:$t.bottom=0,$t.left=Dt;break}return w.createElement("div",{style:$t})}var Qc=m(71686),Pa=m(44516),is=function(mt){for(var Ft=mt.prefixCls,Dt=mt.level,$t=mt.isStart,Gt=mt.isEnd,Pr="".concat(Ft,"-indent-unit"),Dn=[],Sn=0;Sn0&&arguments[0]!==void 0?arguments[0]:[],mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ft=Ye.length,Dt=mt.length;if(Math.abs(Ft-Dt)!==1)return{add:!1,key:null};function $t(Gt,Pr){var Dn=new Map;Gt.forEach(function(cn){Dn.set(cn,!0)});var Sn=Pr.filter(function(cn){return!Dn.has(cn)});return Sn.length===1?Sn[0]:null}return Ft ").concat(mt);return mt}var Af=w.forwardRef(function(Ye,mt){var Ft=Ye.prefixCls,Dt=Ye.data,$t=Ye.selectable,Gt=Ye.checkable,Pr=Ye.expandedKeys,Dn=Ye.selectedKeys,Sn=Ye.checkedKeys,cn=Ye.loadedKeys,Jn=Ye.loadingKeys,xr=Ye.halfCheckedKeys,So=Ye.keyEntities,kt=Ye.disabled,er=Ye.dragging,In=Ye.dragOverNodeKey,rr=Ye.dropPosition,cr=Ye.motion,Br=Ye.height,Ai=Ye.itemHeight,Ee=Ye.virtual,Zo=Ye.focusable,Ws=Ye.activeItem,ba=Ye.focused,aa=Ye.tabIndex,Ps=Ye.onKeyDown,ha=Ye.onFocus,To=Ye.onBlur,ir=Ye.onActiveChange,bi=Ye.onListChangeStart,Wi=Ye.onListChangeEnd,os=(0,Bi.Z)(Ye,Np),Ds=w.useRef(null),la=w.useRef(null);w.useImperativeHandle(mt,function(){return{scrollTo:function(Cn){Ds.current.scrollTo(Cn)},getIndentWidth:function(){return la.current.offsetWidth}}});var Ho=w.useState(Pr),or=(0,b.Z)(Ho,2),eo=or[0],vs=or[1],ll=w.useState(Dt),Dl=(0,b.Z)(ll,2),Oa=Dl[0],_s=Dl[1],wl=w.useState(Dt),nl=(0,b.Z)(wl,2),mc=nl[0],fl=nl[1],oc=w.useState([]),va=(0,b.Z)(oc,2),qu=va[0],$l=va[1],su=w.useState(null),tu=(0,b.Z)(su,2),Gs=tu[0],Gc=tu[1],Le=w.useRef(Dt);Le.current=Dt;function Me(){var Lr=Le.current;_s(Lr),fl(Lr),$l([]),Gc(null),Wi()}(0,k.Z)(function(){vs(Pr);var Lr=Uf(eo,Pr);if(Lr.key!==null)if(Lr.add){var Cn=Oa.findIndex(function(_l){var Ql=_l.key;return Ql===Lr.key}),ei=Ff(Pd(Oa,Dt,Lr.key),Ee,Br,Ai),Li=Oa.slice();Li.splice(Cn+1,0,of),fl(Li),$l(ei),Gc("show")}else{var ps=Dt.findIndex(function(_l){var Ql=_l.key;return Ql===Lr.key}),xa=Ff(Pd(Dt,Oa,Lr.key),Ee,Br,Ai),Sa=Dt.slice();Sa.splice(ps+1,0,of),fl(Sa),$l(xa),Gc("hide")}else Oa!==Dt&&(_s(Dt),fl(Dt))},[Pr,Dt]),w.useEffect(function(){er||Me()},[er]);var et=cr?mc:Dt,hn={expandedKeys:Pr,selectedKeys:Dn,loadedKeys:cn,loadingKeys:Jn,checkedKeys:Sn,halfCheckedKeys:xr,dragOverNodeKey:In,dropPosition:rr,keyEntities:So};return w.createElement(w.Fragment,null,ba&&Ws&&w.createElement("span",{style:$p,"aria-live":"assertive"},mp(Ws)),w.createElement("div",null,w.createElement("input",{style:$p,disabled:Zo===!1||kt,tabIndex:Zo!==!1?aa:null,onKeyDown:Ps,onFocus:ha,onBlur:To,value:"",onChange:ag,"aria-label":"for screen reader"})),w.createElement("div",{className:"".concat(Ft,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},w.createElement("div",{className:"".concat(Ft,"-indent")},w.createElement("div",{ref:la,className:"".concat(Ft,"-indent-unit")}))),w.createElement(Os.Z,(0,S.Z)({},os,{data:et,itemKey:iu,height:Br,fullHeight:!1,virtual:Ee,itemHeight:Ai,prefixCls:"".concat(Ft,"-list"),ref:Ds,onVisibleChange:function(Cn,ei){var Li=new Set(Cn),ps=ei.filter(function(xa){return!Li.has(xa)});ps.some(function(xa){return iu(xa)===Md})&&Me()}}),function(Lr){var Cn=Lr.pos,ei=(0,S.Z)({},((0,Qc.Z)(Lr.data),Lr.data)),Li=Lr.title,ps=Lr.key,xa=Lr.isStart,Sa=Lr.isEnd,_l=(0,bc.km)(ps,Cn);delete ei.key,delete ei.children;var Ql=(0,bc.H8)(_l,hn);return w.createElement(wp,(0,S.Z)({},ei,Ql,{title:Li,active:!!Ws&&ps===Ws.key,pos:Cn,data:Lr.data,isStart:xa,isEnd:Sa,motion:cr,motionNodes:ps===Md?qu:null,motionType:Gs,onMotionStart:bi,onMotionEnd:Me,treeNodeRequiredProps:hn,onMouseMove:function(){ir(null)}}))}))});Af.displayName="NodeList";var np=Af,Od=null;function td(Ye,mt){if(!Ye)return[];var Ft=Ye.slice(),Dt=Ft.indexOf(mt);return Dt>=0&&Ft.splice(Dt,1),Ft}function Dp(Ye,mt){var Ft=(Ye||[]).slice();return Ft.indexOf(mt)===-1&&Ft.push(mt),Ft}function _f(Ye){return Ye.split("-")}function Hh(Ye,mt){var Ft=[],Dt=(0,Qi.Z)(mt,Ye);function $t(){var Gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Gt.forEach(function(Pr){var Dn=Pr.key,Sn=Pr.children;Ft.push(Dn),$t(Sn)})}return $t(Dt.children),Ft}function Ap(Ye){if(Ye.parent){var mt=_f(Ye.pos);return Number(mt[mt.length-1])===Ye.parent.children.length-1}return!1}function Vp(Ye){var mt=_f(Ye.pos);return Number(mt[mt.length-1])===0}function Cd(Ye,mt,Ft,Dt,$t,Gt,Pr,Dn,Sn,cn){var Jn,xr=Ye.clientX,So=Ye.clientY,kt=Ye.target.getBoundingClientRect(),er=kt.top,In=kt.height,rr=(cn==="rtl"?-1:1)*((($t==null?void 0:$t.x)||0)-xr),cr=(rr-12)/Dt,Br=(0,Qi.Z)(Dn,Ft.props.eventKey);if(So-1.5?Gt({dragNode:ir,dropNode:bi,dropPosition:1})?Ps=1:Wi=!1:Gt({dragNode:ir,dropNode:bi,dropPosition:0})?Ps=0:Gt({dragNode:ir,dropNode:bi,dropPosition:1})?Ps=1:Wi=!1:Gt({dragNode:ir,dropNode:bi,dropPosition:1})?Ps=1:Wi=!1,{dropPosition:Ps,dropLevelOffset:ha,dropTargetKey:Br.key,dropTargetPos:Br.pos,dragOverNodeKey:aa,dropContainerKey:Ps===0?null:((Jn=Br.parent)===null||Jn===void 0?void 0:Jn.key)||null,dropAllowed:Wi}}function Jh(Ye,mt){if(Ye){var Ft=mt.multiple;return Ft?Ye.slice():Ye.length?[Ye[0]]:Ye}}var kh=function(mt){return mt};function yh(Ye,mt){if(!Ye)return[];var Ft=mt||{},Dt=Ft.processProps,$t=Dt===void 0?kh:Dt,Gt=Array.isArray(Ye)?Ye:[Ye];return Gt.map(function(Pr){var Dn=Pr.children,Sn=_objectWithoutProperties(Pr,Od),cn=yh(Dn,mt);return React.createElement(TreeNode,_extends({key:Sn.key},$t(Sn)),cn)})}function Bf(Ye){if(!Ye)return null;var mt;if(Array.isArray(Ye))mt={checkedKeys:Ye,halfCheckedKeys:void 0};else if((0,Ce.Z)(Ye)==="object")mt={checkedKeys:Ye.checked||void 0,halfCheckedKeys:Ye.halfChecked||void 0};else return(0,He.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return mt}function bd(Ye,mt){var Ft=new Set;function Dt($t){if(!Ft.has($t)){var Gt=(0,Qi.Z)(mt,$t);if(Gt){Ft.add($t);var Pr=Gt.parent,Dn=Gt.node;Dn.disabled||Pr&&Dt(Pr.key)}}}return(Ye||[]).forEach(function($t){Dt($t)}),(0,qr.Z)(Ft)}var $c=m(90782),Hd=10,mh=function(Ye){(0,ts.Z)(Ft,Ye);var mt=(0,Vs.Z)(Ft);function Ft(){var Dt;(0,bn.Z)(this,Ft);for(var $t=arguments.length,Gt=new Array($t),Pr=0;Pr<$t;Pr++)Gt[Pr]=arguments[Pr];return Dt=mt.call.apply(mt,[this].concat(Gt)),Dt.destroyed=!1,Dt.delayedDragEnterLogic=void 0,Dt.loadingRetryTimes={},Dt.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,bc.w$)()},Dt.dragStartMousePosition=null,Dt.dragNode=void 0,Dt.currentMouseOverDroppableNodeKey=null,Dt.listRef=w.createRef(),Dt.onNodeDragStart=function(Dn,Sn){var cn=Dt.state,Jn=cn.expandedKeys,xr=cn.keyEntities,So=Dt.props.onDragStart,kt=Sn.props.eventKey;Dt.dragNode=Sn,Dt.dragStartMousePosition={x:Dn.clientX,y:Dn.clientY};var er=td(Jn,kt);Dt.setState({draggingNodeKey:kt,dragChildrenKeys:Hh(kt,xr),indent:Dt.listRef.current.getIndentWidth()}),Dt.setExpandedKeys(er),window.addEventListener("dragend",Dt.onWindowDragEnd),So==null||So({event:Dn,node:(0,bc.F)(Sn.props)})},Dt.onNodeDragEnter=function(Dn,Sn){var cn=Dt.state,Jn=cn.expandedKeys,xr=cn.keyEntities,So=cn.dragChildrenKeys,kt=cn.flattenNodes,er=cn.indent,In=Dt.props,rr=In.onDragEnter,cr=In.onExpand,Br=In.allowDrop,Ai=In.direction,Ee=Sn.props,Zo=Ee.pos,Ws=Ee.eventKey,ba=(0,ed.Z)(Dt),aa=ba.dragNode;if(Dt.currentMouseOverDroppableNodeKey!==Ws&&(Dt.currentMouseOverDroppableNodeKey=Ws),!aa){Dt.resetDragState();return}var Ps=Cd(Dn,aa,Sn,er,Dt.dragStartMousePosition,Br,kt,xr,Jn,Ai),ha=Ps.dropPosition,To=Ps.dropLevelOffset,ir=Ps.dropTargetKey,bi=Ps.dropContainerKey,Wi=Ps.dropTargetPos,os=Ps.dropAllowed,Ds=Ps.dragOverNodeKey;if(So.indexOf(ir)!==-1||!os){Dt.resetDragState();return}if(Dt.delayedDragEnterLogic||(Dt.delayedDragEnterLogic={}),Object.keys(Dt.delayedDragEnterLogic).forEach(function(la){clearTimeout(Dt.delayedDragEnterLogic[la])}),aa.props.eventKey!==Sn.props.eventKey&&(Dn.persist(),Dt.delayedDragEnterLogic[Zo]=window.setTimeout(function(){if(Dt.state.draggingNodeKey!==null){var la=(0,qr.Z)(Jn),Ho=(0,Qi.Z)(xr,Sn.props.eventKey);Ho&&(Ho.children||[]).length&&(la=Dp(Jn,Sn.props.eventKey)),"expandedKeys"in Dt.props||Dt.setExpandedKeys(la),cr==null||cr(la,{node:(0,bc.F)(Sn.props),expanded:!0,nativeEvent:Dn.nativeEvent})}},800)),aa.props.eventKey===ir&&To===0){Dt.resetDragState();return}Dt.setState({dragOverNodeKey:Ds,dropPosition:ha,dropLevelOffset:To,dropTargetKey:ir,dropContainerKey:bi,dropTargetPos:Wi,dropAllowed:os}),rr==null||rr({event:Dn,node:(0,bc.F)(Sn.props),expandedKeys:Jn})},Dt.onNodeDragOver=function(Dn,Sn){var cn=Dt.state,Jn=cn.dragChildrenKeys,xr=cn.flattenNodes,So=cn.keyEntities,kt=cn.expandedKeys,er=cn.indent,In=Dt.props,rr=In.onDragOver,cr=In.allowDrop,Br=In.direction,Ai=(0,ed.Z)(Dt),Ee=Ai.dragNode;if(Ee){var Zo=Cd(Dn,Ee,Sn,er,Dt.dragStartMousePosition,cr,xr,So,kt,Br),Ws=Zo.dropPosition,ba=Zo.dropLevelOffset,aa=Zo.dropTargetKey,Ps=Zo.dropContainerKey,ha=Zo.dropAllowed,To=Zo.dropTargetPos,ir=Zo.dragOverNodeKey;Jn.indexOf(aa)!==-1||!ha||(Ee.props.eventKey===aa&&ba===0?Dt.state.dropPosition===null&&Dt.state.dropLevelOffset===null&&Dt.state.dropTargetKey===null&&Dt.state.dropContainerKey===null&&Dt.state.dropTargetPos===null&&Dt.state.dropAllowed===!1&&Dt.state.dragOverNodeKey===null||Dt.resetDragState():Ws===Dt.state.dropPosition&&ba===Dt.state.dropLevelOffset&&aa===Dt.state.dropTargetKey&&Ps===Dt.state.dropContainerKey&&To===Dt.state.dropTargetPos&&ha===Dt.state.dropAllowed&&ir===Dt.state.dragOverNodeKey||Dt.setState({dropPosition:Ws,dropLevelOffset:ba,dropTargetKey:aa,dropContainerKey:Ps,dropTargetPos:To,dropAllowed:ha,dragOverNodeKey:ir}),rr==null||rr({event:Dn,node:(0,bc.F)(Sn.props)}))}},Dt.onNodeDragLeave=function(Dn,Sn){Dt.currentMouseOverDroppableNodeKey===Sn.props.eventKey&&!Dn.currentTarget.contains(Dn.relatedTarget)&&(Dt.resetDragState(),Dt.currentMouseOverDroppableNodeKey=null);var cn=Dt.props.onDragLeave;cn==null||cn({event:Dn,node:(0,bc.F)(Sn.props)})},Dt.onWindowDragEnd=function(Dn){Dt.onNodeDragEnd(Dn,null,!0),window.removeEventListener("dragend",Dt.onWindowDragEnd)},Dt.onNodeDragEnd=function(Dn,Sn){var cn=Dt.props.onDragEnd;Dt.setState({dragOverNodeKey:null}),Dt.cleanDragState(),cn==null||cn({event:Dn,node:(0,bc.F)(Sn.props)}),Dt.dragNode=null,window.removeEventListener("dragend",Dt.onWindowDragEnd)},Dt.onNodeDrop=function(Dn,Sn){var cn,Jn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,xr=Dt.state,So=xr.dragChildrenKeys,kt=xr.dropPosition,er=xr.dropTargetKey,In=xr.dropTargetPos,rr=xr.dropAllowed;if(rr){var cr=Dt.props.onDrop;if(Dt.setState({dragOverNodeKey:null}),Dt.cleanDragState(),er!==null){var Br=(0,Ae.Z)((0,Ae.Z)({},(0,bc.H8)(er,Dt.getTreeNodeRequiredProps())),{},{active:((cn=Dt.getActiveItem())===null||cn===void 0?void 0:cn.key)===er,data:(0,Qi.Z)(Dt.state.keyEntities,er).node}),Ai=So.indexOf(er)!==-1;(0,He.ZP)(!Ai,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Ee=_f(In),Zo={event:Dn,node:(0,bc.F)(Br),dragNode:Dt.dragNode?(0,bc.F)(Dt.dragNode.props):null,dragNodesKeys:[Dt.dragNode.props.eventKey].concat(So),dropToGap:kt!==0,dropPosition:kt+Number(Ee[Ee.length-1])};Jn||cr==null||cr(Zo),Dt.dragNode=null}}},Dt.cleanDragState=function(){var Dn=Dt.state.draggingNodeKey;Dn!==null&&Dt.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Dt.dragStartMousePosition=null,Dt.currentMouseOverDroppableNodeKey=null},Dt.triggerExpandActionExpand=function(Dn,Sn){var cn=Dt.state,Jn=cn.expandedKeys,xr=cn.flattenNodes,So=Sn.expanded,kt=Sn.key,er=Sn.isLeaf;if(!(er||Dn.shiftKey||Dn.metaKey||Dn.ctrlKey)){var In=xr.filter(function(cr){return cr.key===kt})[0],rr=(0,bc.F)((0,Ae.Z)((0,Ae.Z)({},(0,bc.H8)(kt,Dt.getTreeNodeRequiredProps())),{},{data:In.data}));Dt.setExpandedKeys(So?td(Jn,kt):Dp(Jn,kt)),Dt.onNodeExpand(Dn,rr)}},Dt.onNodeClick=function(Dn,Sn){var cn=Dt.props,Jn=cn.onClick,xr=cn.expandAction;xr==="click"&&Dt.triggerExpandActionExpand(Dn,Sn),Jn==null||Jn(Dn,Sn)},Dt.onNodeDoubleClick=function(Dn,Sn){var cn=Dt.props,Jn=cn.onDoubleClick,xr=cn.expandAction;xr==="doubleClick"&&Dt.triggerExpandActionExpand(Dn,Sn),Jn==null||Jn(Dn,Sn)},Dt.onNodeSelect=function(Dn,Sn){var cn=Dt.state.selectedKeys,Jn=Dt.state,xr=Jn.keyEntities,So=Jn.fieldNames,kt=Dt.props,er=kt.onSelect,In=kt.multiple,rr=Sn.selected,cr=Sn[So.key],Br=!rr;Br?In?cn=Dp(cn,cr):cn=[cr]:cn=td(cn,cr);var Ai=cn.map(function(Ee){var Zo=(0,Qi.Z)(xr,Ee);return Zo?Zo.node:null}).filter(function(Ee){return Ee});Dt.setUncontrolledState({selectedKeys:cn}),er==null||er(cn,{event:"select",selected:Br,node:Sn,selectedNodes:Ai,nativeEvent:Dn.nativeEvent})},Dt.onNodeCheck=function(Dn,Sn,cn){var Jn=Dt.state,xr=Jn.keyEntities,So=Jn.checkedKeys,kt=Jn.halfCheckedKeys,er=Dt.props,In=er.checkStrictly,rr=er.onCheck,cr=Sn.key,Br,Ai={event:"check",node:Sn,checked:cn,nativeEvent:Dn.nativeEvent};if(In){var Ee=cn?Dp(So,cr):td(So,cr),Zo=td(kt,cr);Br={checked:Ee,halfChecked:Zo},Ai.checkedNodes=Ee.map(function(To){return(0,Qi.Z)(xr,To)}).filter(function(To){return To}).map(function(To){return To.node}),Dt.setUncontrolledState({checkedKeys:Ee})}else{var Ws=(0,$c.S)([].concat((0,qr.Z)(So),[cr]),!0,xr),ba=Ws.checkedKeys,aa=Ws.halfCheckedKeys;if(!cn){var Ps=new Set(ba);Ps.delete(cr);var ha=(0,$c.S)(Array.from(Ps),{checked:!1,halfCheckedKeys:aa},xr);ba=ha.checkedKeys,aa=ha.halfCheckedKeys}Br=ba,Ai.checkedNodes=[],Ai.checkedNodesPositions=[],Ai.halfCheckedKeys=aa,ba.forEach(function(To){var ir=(0,Qi.Z)(xr,To);if(ir){var bi=ir.node,Wi=ir.pos;Ai.checkedNodes.push(bi),Ai.checkedNodesPositions.push({node:bi,pos:Wi})}}),Dt.setUncontrolledState({checkedKeys:ba},!1,{halfCheckedKeys:aa})}rr==null||rr(Br,Ai)},Dt.onNodeLoad=function(Dn){var Sn=Dn.key,cn=new Promise(function(Jn,xr){Dt.setState(function(So){var kt=So.loadedKeys,er=kt===void 0?[]:kt,In=So.loadingKeys,rr=In===void 0?[]:In,cr=Dt.props,Br=cr.loadData,Ai=cr.onLoad;if(!Br||er.indexOf(Sn)!==-1||rr.indexOf(Sn)!==-1)return null;var Ee=Br(Dn);return Ee.then(function(){var Zo=Dt.state.loadedKeys,Ws=Dp(Zo,Sn);Ai==null||Ai(Ws,{event:"load",node:Dn}),Dt.setUncontrolledState({loadedKeys:Ws}),Dt.setState(function(ba){return{loadingKeys:td(ba.loadingKeys,Sn)}}),Jn()}).catch(function(Zo){if(Dt.setState(function(ba){return{loadingKeys:td(ba.loadingKeys,Sn)}}),Dt.loadingRetryTimes[Sn]=(Dt.loadingRetryTimes[Sn]||0)+1,Dt.loadingRetryTimes[Sn]>=Hd){var Ws=Dt.state.loadedKeys;(0,He.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Dt.setUncontrolledState({loadedKeys:Dp(Ws,Sn)}),Jn()}xr(Zo)}),{loadingKeys:Dp(rr,Sn)}})});return cn.catch(function(){}),cn},Dt.onNodeMouseEnter=function(Dn,Sn){var cn=Dt.props.onMouseEnter;cn==null||cn({event:Dn,node:Sn})},Dt.onNodeMouseLeave=function(Dn,Sn){var cn=Dt.props.onMouseLeave;cn==null||cn({event:Dn,node:Sn})},Dt.onNodeContextMenu=function(Dn,Sn){var cn=Dt.props.onRightClick;cn&&(Dn.preventDefault(),cn({event:Dn,node:Sn}))},Dt.onFocus=function(){var Dn=Dt.props.onFocus;Dt.setState({focused:!0});for(var Sn=arguments.length,cn=new Array(Sn),Jn=0;Jn1&&arguments[1]!==void 0?arguments[1]:!1,cn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Dt.destroyed){var Jn=!1,xr=!0,So={};Object.keys(Dn).forEach(function(kt){if(kt in Dt.props){xr=!1;return}Jn=!0,So[kt]=Dn[kt]}),Jn&&(!Sn||xr)&&Dt.setState((0,Ae.Z)((0,Ae.Z)({},So),cn))}},Dt.scrollTo=function(Dn){Dt.listRef.current.scrollTo(Dn)},Dt}return(0,Eu.Z)(Ft,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var $t=this.props.activeKey;$t!==void 0&&$t!==this.state.activeKey&&(this.setState({activeKey:$t}),$t!==null&&this.scrollTo({key:$t}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var $t,Gt=this.state,Pr=Gt.focused,Dn=Gt.flattenNodes,Sn=Gt.keyEntities,cn=Gt.draggingNodeKey,Jn=Gt.activeKey,xr=Gt.dropLevelOffset,So=Gt.dropContainerKey,kt=Gt.dropTargetKey,er=Gt.dropPosition,In=Gt.dragOverNodeKey,rr=Gt.indent,cr=this.props,Br=cr.prefixCls,Ai=cr.className,Ee=cr.style,Zo=cr.showLine,Ws=cr.focusable,ba=cr.tabIndex,aa=ba===void 0?0:ba,Ps=cr.selectable,ha=cr.showIcon,To=cr.icon,ir=cr.switcherIcon,bi=cr.draggable,Wi=cr.checkable,os=cr.checkStrictly,Ds=cr.disabled,la=cr.motion,Ho=cr.loadData,or=cr.filterTreeNode,eo=cr.height,vs=cr.itemHeight,ll=cr.virtual,Dl=cr.titleRender,Oa=cr.dropIndicatorRender,_s=cr.onContextMenu,wl=cr.onScroll,nl=cr.direction,mc=cr.rootClassName,fl=cr.rootStyle,oc=(0,Wn.Z)(this.props,{aria:!0,data:!0}),va;return bi&&((0,Ce.Z)(bi)==="object"?va=bi:typeof bi=="function"?va={nodeDraggable:bi}:va={}),w.createElement(Kh.Provider,{value:{prefixCls:Br,selectable:Ps,showIcon:ha,icon:To,switcherIcon:ir,draggable:va,draggingNodeKey:cn,checkable:Wi,checkStrictly:os,disabled:Ds,keyEntities:Sn,dropLevelOffset:xr,dropContainerKey:So,dropTargetKey:kt,dropPosition:er,dragOverNodeKey:In,indent:rr,direction:nl,dropIndicatorRender:Oa,loadData:Ho,filterTreeNode:or,titleRender:Dl,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},w.createElement("div",{role:"tree",className:xe()(Br,Ai,mc,($t={},(0,me.Z)($t,"".concat(Br,"-show-line"),Zo),(0,me.Z)($t,"".concat(Br,"-focused"),Pr),(0,me.Z)($t,"".concat(Br,"-active-focused"),Jn!==null),$t)),style:fl},w.createElement(np,(0,S.Z)({ref:this.listRef,prefixCls:Br,style:Ee,data:Dn,disabled:Ds,selectable:Ps,checkable:!!Wi,motion:la,dragging:cn!==null,height:eo,itemHeight:vs,virtual:ll,focusable:Ws,focused:Pr,tabIndex:aa,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:_s,onScroll:wl},this.getTreeNodeRequiredProps(),oc))))}}],[{key:"getDerivedStateFromProps",value:function($t,Gt){var Pr=Gt.prevProps,Dn={prevProps:$t};function Sn(Ws){return!Pr&&Ws in $t||Pr&&Pr[Ws]!==$t[Ws]}var cn,Jn=Gt.fieldNames;if(Sn("fieldNames")&&(Jn=(0,bc.w$)($t.fieldNames),Dn.fieldNames=Jn),Sn("treeData")?cn=$t.treeData:Sn("children")&&((0,He.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),cn=(0,bc.zn)($t.children)),cn){Dn.treeData=cn;var xr=(0,bc.I8)(cn,{fieldNames:Jn});Dn.keyEntities=(0,Ae.Z)((0,me.Z)({},Md,Ih),xr.keyEntities)}var So=Dn.keyEntities||Gt.keyEntities;if(Sn("expandedKeys")||Pr&&Sn("autoExpandParent"))Dn.expandedKeys=$t.autoExpandParent||!Pr&&$t.defaultExpandParent?bd($t.expandedKeys,So):$t.expandedKeys;else if(!Pr&&$t.defaultExpandAll){var kt=(0,Ae.Z)({},So);delete kt[Md],Dn.expandedKeys=Object.keys(kt).map(function(Ws){return kt[Ws].key})}else!Pr&&$t.defaultExpandedKeys&&(Dn.expandedKeys=$t.autoExpandParent||$t.defaultExpandParent?bd($t.defaultExpandedKeys,So):$t.defaultExpandedKeys);if(Dn.expandedKeys||delete Dn.expandedKeys,cn||Dn.expandedKeys){var er=(0,bc.oH)(cn||Gt.treeData,Dn.expandedKeys||Gt.expandedKeys,Jn);Dn.flattenNodes=er}if($t.selectable&&(Sn("selectedKeys")?Dn.selectedKeys=Jh($t.selectedKeys,$t):!Pr&&$t.defaultSelectedKeys&&(Dn.selectedKeys=Jh($t.defaultSelectedKeys,$t))),$t.checkable){var In;if(Sn("checkedKeys")?In=Bf($t.checkedKeys)||{}:!Pr&&$t.defaultCheckedKeys?In=Bf($t.defaultCheckedKeys)||{}:cn&&(In=Bf($t.checkedKeys)||{checkedKeys:Gt.checkedKeys,halfCheckedKeys:Gt.halfCheckedKeys}),In){var rr=In,cr=rr.checkedKeys,Br=cr===void 0?[]:cr,Ai=rr.halfCheckedKeys,Ee=Ai===void 0?[]:Ai;if(!$t.checkStrictly){var Zo=(0,$c.S)(Br,!0,So);Br=Zo.checkedKeys,Ee=Zo.halfCheckedKeys}Dn.checkedKeys=Br,Dn.halfCheckedKeys=Ee}}return Sn("loadedKeys")&&(Dn.loadedKeys=$t.loadedKeys),Dn}}]),Ft}(w.Component);mh.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:cf,allowDrop:function(){return!0},expandAction:!1},mh.TreeNode=Ah;var wo=mh,D=wo,F={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},q=F,se=function(mt,Ft){return w.createElement(ja.Z,(0,S.Z)({},mt,{ref:Ft,icon:q}))},Ue=w.forwardRef(se),qt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},zn=qt,di=function(mt,Ft){return w.createElement(ja.Z,(0,S.Z)({},mt,{ref:Ft,icon:zn}))},Uo=w.forwardRef(di),ua={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},Cl=ua,Ll=function(mt,Ft){return w.createElement(ja.Z,(0,S.Z)({},mt,{ref:Ft,icon:Cl}))},Bu=w.forwardRef(Ll),Iu={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},pc=Iu,zc=function(mt,Ft){return w.createElement(ja.Z,(0,S.Z)({},mt,{ref:Ft,icon:pc}))},Rd=w.forwardRef(zc),X=m(26612),te=m(84608),J=m(79148),ae=m(53710);const it=new te.E4("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Rt=(Ye,mt)=>({[`.${Ye}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${mt.motionDurationSlow}`}}}),en=(Ye,mt)=>({[`.${Ye}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:mt.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${mt.lineWidthBold}px solid ${mt.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Yn=(Ye,mt)=>{const{treeCls:Ft,treeNodeCls:Dt,treeNodePadding:$t,titleHeight:Gt,nodeSelectedBg:Pr,nodeHoverBg:Dn}=mt,Sn=mt.paddingXS;return{[Ft]:Object.assign(Object.assign({},(0,jd.Wf)(mt)),{background:mt.colorBgContainer,borderRadius:mt.borderRadius,transition:`background-color ${mt.motionDurationSlow}`,[`&${Ft}-rtl`]:{[`${Ft}-switcher`]:{"&_close":{[`${Ft}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${Ft}-active-focused)`]:Object.assign({},(0,jd.oN)(mt)),[`${Ft}-list-holder-inner`]:{alignItems:"flex-start"},[`&${Ft}-block-node`]:{[`${Ft}-list-holder-inner`]:{alignItems:"stretch",[`${Ft}-node-content-wrapper`]:{flex:"auto"},[`${Dt}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:$t,insetInlineStart:0,border:`1px solid ${mt.colorPrimary}`,opacity:0,animationName:it,animationDuration:mt.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${Dt}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${$t}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${Ft}-node-content-wrapper`]:{color:mt.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${Ft}-node-content-wrapper`]:Object.assign({},(0,jd.oN)(mt)),[`&:not(${Dt}-disabled).filter-node ${Ft}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${Ft}-draggable-icon`]:{flexShrink:0,width:Gt,lineHeight:`${Gt}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${mt.motionDurationSlow}`,[`${Dt}:hover &`]:{opacity:.45}},[`&${Dt}-disabled`]:{[`${Ft}-draggable-icon`]:{visibility:"hidden"}}}},[`${Ft}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:Gt}},[`${Ft}-draggable-icon`]:{visibility:"hidden"},[`${Ft}-switcher`]:Object.assign(Object.assign({},Rt(Ye,mt)),{position:"relative",flex:"none",alignSelf:"stretch",width:Gt,margin:0,lineHeight:`${Gt}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${Ft}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:mt.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Gt/2,bottom:-$t,marginInlineStart:-1,borderInlineEnd:`1px solid ${mt.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:Gt/2*.8,height:Gt/2,borderBottom:`1px solid ${mt.colorBorder}`,content:'""'}}}),[`${Ft}-checkbox`]:{top:"initial",marginInlineEnd:Sn,alignSelf:"flex-start",marginTop:mt.marginXXS},[`${Ft}-node-content-wrapper, ${Ft}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:Gt,margin:0,padding:`0 ${mt.paddingXS/2}px`,color:"inherit",lineHeight:`${Gt}px`,background:"transparent",borderRadius:mt.borderRadius,cursor:"pointer",transition:`all ${mt.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:Dn},[`&${Ft}-node-selected`]:{backgroundColor:Pr},[`${Ft}-iconEle`]:{display:"inline-block",width:Gt,height:Gt,lineHeight:`${Gt}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${Ft}-unselectable ${Ft}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${Ft}-node-content-wrapper`]:Object.assign({lineHeight:`${Gt}px`,userSelect:"none"},en(Ye,mt)),[`${Dt}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${mt.colorPrimary}`}},"&-show-line":{[`${Ft}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Gt/2,bottom:-$t,borderInlineEnd:`1px solid ${mt.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${Ft}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${Dt}-leaf-last`]:{[`${Ft}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${Gt/2}px !important`}}}}})}},Zr=Ye=>{const{treeCls:mt,treeNodeCls:Ft,treeNodePadding:Dt,directoryNodeSelectedBg:$t,directoryNodeSelectedColor:Gt}=Ye;return{[`${mt}${mt}-directory`]:{[Ft]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:Dt,insetInlineStart:0,transition:`background-color ${Ye.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:Ye.controlItemBgHover}},"> *":{zIndex:1},[`${mt}-switcher`]:{transition:`color ${Ye.motionDurationMid}`},[`${mt}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${mt}-node-selected`]:{color:Gt,background:"transparent"}},"&-selected":{[` &:hover::before, &::before - `]:{background:$t},[`${gt}-switcher`]:{color:Gt},[`${gt}-node-content-wrapper`]:{color:Gt,background:"transparent"}}}}}},fr=(Ye,gt)=>{const Ft=`.${Ye}`,Dt=`${Ft}-treenode`,$t=gt.paddingXS/2,Gt=(0,id.TS)(gt,{treeCls:Ft,treeNodeCls:Dt,treeNodePadding:$t});return[Yn(Ye,Gt),Zr(Gt)]},es=Ye=>{const{controlHeightSM:gt}=Ye;return{titleHeight:gt,nodeHoverBg:Ye.controlItemBgHover,nodeSelectedBg:Ye.controlItemBgActive}};var Xo=(0,yh.Z)("Tree",(Ye,gt)=>{let{prefixCls:Ft}=gt;return[{[Ye.componentCls]:(0,Q.C2)(`${Ft}-checkbox`,Ye)},fr(Ft,Ye),(0,le.Z)(Ye)]},Ye=>{const{colorTextLightSolid:gt,colorPrimary:Ft}=Ye;return Object.assign(Object.assign({},es(Ye)),{directoryNodeSelectedColor:gt,directoryNodeSelectedBg:Ft})});const Ss=4;function oa(Ye){const{dropPosition:gt,dropLevelOffset:Ft,prefixCls:Dt,indent:$t,direction:Gt="ltr"}=Ye,Pr=Gt==="ltr"?"left":"right",Tn=Gt==="ltr"?"right":"left",Sn={[Pr]:-Ft*$t+Ss,[Tn]:0};switch(gt){case-1:Sn.top=-3;break;case 1:Sn.bottom=-3;break;default:Sn.bottom=-3,Sn[Pr]=$t+Ss;break}return w.createElement("div",{style:Sn,className:`${Dt}-drop-indicator`})}var qs={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},Wo=qs,Ws=function(gt,Ft){return w.createElement(Wa.Z,(0,S.Z)({},gt,{ref:Ft,icon:Wo}))},za=w.forwardRef(Ws),yl=m(22508),nu={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},xu=nu,Tu=function(gt,Ft){return w.createElement(Wa.Z,(0,S.Z)({},gt,{ref:Ft,icon:xu}))},Cu=w.forwardRef(Tu),dc=m(43114),Zc=function(gt,Ft){return w.createElement(Wa.Z,(0,S.Z)({},gt,{ref:Ft,icon:dc.Z}))},wc=w.forwardRef(Zc),fd=m(96159),dh=Ye=>{const{prefixCls:gt,switcherIcon:Ft,treeNodeProps:Dt,showLine:$t}=Ye,{isLeaf:Gt,expanded:Pr,loading:Tn}=Dt;if(Tn)return w.createElement(yl.Z,{className:`${gt}-switcher-loading-icon`});let Sn;if($t&&typeof $t=="object"&&(Sn=$t.showLeafIcon),Gt){if(!$t)return null;if(typeof Sn!="boolean"&&Sn){const br=typeof Sn=="function"?Sn(Dt):Sn,So=`${gt}-switcher-line-custom-icon`;return(0,fd.l$)(br)?(0,fd.Tm)(br,{className:Ce()(br.props.className||"",So)}):br}return Sn?w.createElement(He,{className:`${gt}-switcher-line-icon`}):w.createElement("span",{className:`${gt}-switcher-leaf-line`})}const cn=`${gt}-switcher-icon`,qn=typeof Ft=="function"?Ft(Dt):Ft;return(0,fd.l$)(qn)?(0,fd.Tm)(qn,{className:Ce()(qn.props.className||"",cn)}):qn!==void 0?qn:$t?Pr?w.createElement(Cu,{className:`${gt}-switcher-line-icon`}):w.createElement(wc,{className:`${gt}-switcher-line-icon`}):w.createElement(za,{className:cn})},Xh=w.forwardRef((Ye,gt)=>{const{getPrefixCls:Ft,direction:Dt,virtual:$t,tree:Gt}=w.useContext(Ei.E_),{prefixCls:Pr,className:Tn,showIcon:Sn=!1,showLine:cn,switcherIcon:qn,blockNode:br=!1,children:So,checkable:kt=!1,selectable:er=!0,draggable:An,motion:rr,style:cr}=Ye,Br=Ft("tree",Pr),Ai=Ft(),De=rr!=null?rr:Object.assign(Object.assign({},(0,X.Z)(Ai)),{motionAppear:!1}),Zo=Object.assign(Object.assign({},Ye),{checkable:kt,selectable:er,showIcon:Sn,motion:De,blockNode:br,showLine:!!cn,dropIndicatorRender:oa}),[js,ba]=Xo(Br),sa=w.useMemo(()=>{if(!An)return!1;let ha={};switch(typeof An){case"function":ha.nodeDraggable=An;break;case"object":ha=Object.assign({},An);break;default:break}return ha.icon!==!1&&(ha.icon=ha.icon||w.createElement(Rd,null)),ha},[An]),Ps=ha=>w.createElement(dh,{prefixCls:Br,switcherIcon:qn,treeNodeProps:ha,showLine:cn});return js(w.createElement(D,Object.assign({itemHeight:20,ref:gt,virtual:$t},Zo,{style:Object.assign(Object.assign({},Gt==null?void 0:Gt.style),cr),prefixCls:Br,className:Ce()({[`${Br}-icon-hide`]:!Sn,[`${Br}-block-node`]:br,[`${Br}-unselectable`]:!er,[`${Br}-rtl`]:Dt==="rtl"},Gt==null?void 0:Gt.className,Tn,ba),direction:Dt,checkable:kt&&w.createElement("span",{className:`${Br}-checkbox-inner`}),selectable:er,switcherIcon:Ps,draggable:sa}),So))}),Nc;(function(Ye){Ye[Ye.None=0]="None",Ye[Ye.Start=1]="Start",Ye[Ye.End=2]="End"})(Nc||(Nc={}));function Hc(Ye,gt,Ft){const{key:Dt,children:$t}=Ft;function Gt(Pr){const Tn=Pr[Dt],Sn=Pr[$t];gt(Tn,Pr)!==!1&&Hc(Sn||[],gt,Ft)}Ye.forEach(Gt)}function tf(Ye){let{treeData:gt,expandedKeys:Ft,startKey:Dt,endKey:$t,fieldNames:Gt}=Ye;const Pr=[];let Tn=Nc.None;if(Dt&&Dt===$t)return[Dt];if(!Dt||!$t)return[];function Sn(cn){return cn===Dt||cn===$t}return Hc(gt,cn=>{if(Tn===Nc.End)return!1;if(Sn(cn)){if(Pr.push(cn),Tn===Nc.None)Tn=Nc.Start;else if(Tn===Nc.Start)return Tn=Nc.End,!1}else Tn===Nc.Start&&Pr.push(cn);return Ft.includes(cn)},(0,bc.w$)(Gt)),Pr}function hh(Ye,gt,Ft){const Dt=(0,qr.Z)(gt),$t=[];return Hc(Ye,(Gt,Pr)=>{const Tn=Dt.indexOf(Gt);return Tn!==-1&&($t.push(Pr),Dt.splice(Tn,1)),!!Dt.length},(0,bc.w$)(Ft)),$t}var rh=function(Ye,gt){var Ft={};for(var Dt in Ye)Object.prototype.hasOwnProperty.call(Ye,Dt)&>.indexOf(Dt)<0&&(Ft[Dt]=Ye[Dt]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Dt=Object.getOwnPropertySymbols(Ye);$t{var{defaultExpandAll:Ft,defaultExpandParent:Dt,defaultExpandedKeys:$t}=Ye,Gt=rh(Ye,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Pr=w.useRef(),Tn=w.useRef(),Sn=()=>{const{keyEntities:sa}=(0,bc.I8)(bh(Gt));let Ps;return Ft?Ps=Object.keys(sa):Dt?Ps=bd(Gt.expandedKeys||$t||[],sa):Ps=Gt.expandedKeys||$t,Ps},[cn,qn]=w.useState(Gt.selectedKeys||Gt.defaultSelectedKeys||[]),[br,So]=w.useState(()=>Sn());w.useEffect(()=>{"selectedKeys"in Gt&&qn(Gt.selectedKeys)},[Gt.selectedKeys]),w.useEffect(()=>{"expandedKeys"in Gt&&So(Gt.expandedKeys)},[Gt.expandedKeys]);const kt=(sa,Ps)=>{var ha;return"expandedKeys"in Gt||So(sa),(ha=Gt.onExpand)===null||ha===void 0?void 0:ha.call(Gt,sa,Ps)},er=(sa,Ps)=>{var ha;const{multiple:To,fieldNames:ir}=Gt,{node:xi,nativeEvent:ji}=Ps,{key:is=""}=xi,Ds=bh(Gt),aa=Object.assign(Object.assign({},Ps),{selected:!0}),Ho=(ji==null?void 0:ji.ctrlKey)||(ji==null?void 0:ji.metaKey),or=ji==null?void 0:ji.shiftKey;let eo;To&&Ho?(eo=sa,Pr.current=is,Tn.current=eo,aa.selectedNodes=hh(Ds,eo,ir)):To&&or?(eo=Array.from(new Set([].concat((0,qr.Z)(Tn.current||[]),(0,qr.Z)(tf({treeData:Ds,expandedKeys:br,startKey:is,endKey:Pr.current,fieldNames:ir}))))),aa.selectedNodes=hh(Ds,eo,ir)):(eo=[is],Pr.current=is,Tn.current=eo,aa.selectedNodes=hh(Ds,eo,ir)),(ha=Gt.onSelect)===null||ha===void 0||ha.call(Gt,eo,aa),"selectedKeys"in Gt||qn(eo)},{getPrefixCls:An,direction:rr}=w.useContext(Ei.E_),{prefixCls:cr,className:Br,showIcon:Ai=!0,expandAction:De="click"}=Gt,Zo=rh(Gt,["prefixCls","className","showIcon","expandAction"]),js=An("tree",cr),ba=Ce()(`${js}-directory`,{[`${js}-directory-rtl`]:rr==="rtl"},Br);return w.createElement(Xh,Object.assign({icon:zh,ref:gt,blockNode:!0},Zo,{showIcon:Ai,expandAction:De,prefixCls:js,className:ba,expandedKeys:br,selectedKeys:cn,onSelect:er,onExpand:kt}))};var Wp=w.forwardRef(Mh);const vp=Xh;vp.DirectoryTree=Wp,vp.TreeNode=Ah;var Gc=vp,Oc=m(13805),ad=m(75008);function yd(Ye){let{value:gt,onChange:Ft,filterSearch:Dt,tablePrefixCls:$t,locale:Gt}=Ye;return Dt?w.createElement("div",{className:`${$t}-filter-dropdown-search`},w.createElement(ad.Z,{prefix:w.createElement(Oc.Z,null),placeholder:Gt.filterSearchPlaceholder,onChange:Ft,value:gt,htmlSize:1,className:`${$t}-filter-dropdown-search-input`})):null}var Bd=yd;const Dc=Ye=>{const{keyCode:gt}=Ye;gt===Vh.Z.ENTER&&Ye.stopPropagation()};var ld=w.forwardRef((Ye,gt)=>w.createElement("div",{className:Ye.className,onClick:Ft=>Ft.stopPropagation(),onKeyDown:Dc,ref:gt},Ye.children));function Sc(Ye){let gt=[];return(Ye||[]).forEach(Ft=>{let{value:Dt,children:$t}=Ft;gt.push(Dt),$t&&(gt=[].concat((0,qr.Z)(gt),(0,qr.Z)(Sc($t))))}),gt}function Io(Ye){return Ye.some(gt=>{let{children:Ft}=gt;return Ft})}function Hg(Ye,gt){return typeof gt=="string"||typeof gt=="number"?gt==null?void 0:gt.toString().toLowerCase().includes(Ye.trim().toLowerCase()):!1}function Zp(Ye){let{filters:gt,prefixCls:Ft,filteredKeys:Dt,filterMultiple:$t,searchValue:Gt,filterSearch:Pr}=Ye;return gt.map((Tn,Sn)=>{const cn=String(Tn.value);if(Tn.children)return{key:cn||Sn,label:Tn.text,popupClassName:`${Ft}-dropdown-submenu`,children:Zp({filters:Tn.children,prefixCls:Ft,filteredKeys:Dt,filterMultiple:$t,searchValue:Gt,filterSearch:Pr})};const qn=$t?vf.Z:ah.ZP,br={key:Tn.value!==void 0?cn:Sn,label:w.createElement(w.Fragment,null,w.createElement(qn,{checked:Dt.includes(cn)}),w.createElement("span",null,Tn.text))};return Gt.trim()?typeof Pr=="function"?Pr(Gt,Tn)?br:null:Hg(Gt,Tn.text)?br:null:br})}function vm(Ye){return Ye||[]}function Fm(Ye){var gt,Ft;const{tablePrefixCls:Dt,prefixCls:$t,column:Gt,dropdownPrefixCls:Pr,columnKey:Tn,filterMultiple:Sn,filterMode:cn="menu",filterSearch:qn=!1,filterState:br,triggerFilter:So,locale:kt,children:er,getPopupContainer:An}=Ye,{filterDropdownOpen:rr,onFilterDropdownOpenChange:cr,filterResetToDefaultFilteredValue:Br,defaultFilteredValue:Ai,filterDropdownVisible:De,onFilterDropdownVisibleChange:Zo}=Gt,[js,ba]=w.useState(!1),sa=!!(br&&(!((gt=br.filteredKeys)===null||gt===void 0)&>.length||br.forceFiltered)),Ps=tu=>{ba(tu),cr==null||cr(tu),Zo==null||Zo(tu)},ha=(Ft=rr!=null?rr:De)!==null&&Ft!==void 0?Ft:js,To=br==null?void 0:br.filteredKeys,[ir,xi]=sh(vm(To)),ji=tu=>{let{selectedKeys:Gs}=tu;xi(Gs)},is=(tu,Gs)=>{let{node:Kc,checked:Le}=Gs;ji(Sn?{selectedKeys:tu}:{selectedKeys:Le&&Kc.key?[Kc.key]:[]})};w.useEffect(()=>{js&&ji({selectedKeys:vm(To)})},[To]);const[Ds,aa]=w.useState([]),Ho=tu=>{aa(tu)},[or,eo]=w.useState(""),vs=tu=>{const{value:Gs}=tu.target;eo(Gs)};w.useEffect(()=>{js||eo("")},[js]);const ul=tu=>{const Gs=tu&&tu.length?tu:null;if(Gs===null&&(!br||!br.filteredKeys)||(0,N.Z)(Gs,br==null?void 0:br.filteredKeys,!0))return null;So({column:Gt,key:Tn,filteredKeys:Gs})},Dl=()=>{Ps(!1),ul(ir())},Oa=function(){let{confirm:tu,closeDropdown:Gs}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};tu&&ul([]),Gs&&Ps(!1),eo(""),xi(Br?(Ai||[]).map(Kc=>String(Kc)):[])},_s=function(){let{closeDropdown:tu}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};tu&&Ps(!1),ul(ir())},wl=tu=>{tu&&To!==void 0&&xi(vm(To)),Ps(tu),!tu&&!Gt.filterDropdown&&Dl()},nl=Ce()({[`${Pr}-menu-without-submenu`]:!Io(Gt.filters||[])}),mc=tu=>{if(tu.target.checked){const Gs=Sc(Gt==null?void 0:Gt.filters).map(Kc=>String(Kc));xi(Gs)}else xi([])},pl=tu=>{let{filters:Gs}=tu;return(Gs||[]).map((Kc,Le)=>{const Oe=String(Kc.value),et={title:Kc.text,key:Kc.value!==void 0?Oe:String(Le)};return Kc.children&&(et.children=pl({filters:Kc.children})),et})},ic=tu=>{var Gs;return Object.assign(Object.assign({},tu),{text:tu.title,value:tu.key,children:((Gs=tu.children)===null||Gs===void 0?void 0:Gs.map(Kc=>ic(Kc)))||[]})};let va;if(typeof Gt.filterDropdown=="function")va=Gt.filterDropdown({prefixCls:`${Pr}-custom`,setSelectedKeys:tu=>ji({selectedKeys:tu}),selectedKeys:ir(),confirm:_s,clearFilters:Oa,filters:Gt.filters,visible:ha,close:()=>{Ps(!1)}});else if(Gt.filterDropdown)va=Gt.filterDropdown;else{const tu=ir()||[],Gs=()=>(Gt.filters||[]).length===0?w.createElement(kf.Z,{image:kf.Z.PRESENTED_IMAGE_SIMPLE,description:kt.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):cn==="tree"?w.createElement(w.Fragment,null,w.createElement(Bd,{filterSearch:qn,value:or,onChange:vs,tablePrefixCls:Dt,locale:kt}),w.createElement("div",{className:`${Dt}-filter-dropdown-tree`},Sn?w.createElement(vf.Z,{checked:tu.length===Sc(Gt.filters).length,indeterminate:tu.length>0&&tu.lengthtypeof qn=="function"?qn(or,ic(Le)):Hg(or,Le.title):void 0}))):w.createElement(w.Fragment,null,w.createElement(Bd,{filterSearch:qn,value:or,onChange:vs,tablePrefixCls:Dt,locale:kt}),w.createElement(Bh.Z,{selectable:!0,multiple:Sn,prefixCls:`${Pr}-menu`,className:nl,onSelect:ji,onDeselect:ji,selectedKeys:tu,getPopupContainer:An,openKeys:Ds,onOpenChange:Ho,items:Zp({filters:Gt.filters||[],filterSearch:qn,prefixCls:$t,filteredKeys:ir(),filterMultiple:Sn,searchValue:or})})),Kc=()=>Br?(0,N.Z)((Ai||[]).map(Le=>String(Le)),tu,!0):tu.length===0;va=w.createElement(w.Fragment,null,Gs(),w.createElement("div",{className:`${$t}-dropdown-btns`},w.createElement(Vf.ZP,{type:"link",size:"small",disabled:Kc(),onClick:()=>Oa()},kt.filterReset),w.createElement(Vf.ZP,{type:"primary",size:"small",onClick:Dl},kt.filterConfirm)))}Gt.filterDropdown&&(va=w.createElement(Kf.J,{selectable:void 0},va));const qu=()=>w.createElement(ld,{className:`${$t}-dropdown`},va);let $l;typeof Gt.filterIcon=="function"?$l=Gt.filterIcon(sa):Gt.filterIcon?$l=Gt.filterIcon:$l=w.createElement(Vd,null);const{direction:su}=w.useContext(Ei.E_);return w.createElement("div",{className:`${$t}-column`},w.createElement("span",{className:`${Dt}-column-title`},er),w.createElement(Uh.Z,{dropdownRender:qu,trigger:["click"],open:ha,onOpenChange:wl,getPopupContainer:An,placement:su==="rtl"?"bottomLeft":"bottomRight"},w.createElement("span",{role:"button",tabIndex:-1,className:Ce()(`${$t}-trigger`,{active:sa}),onClick:tu=>{tu.stopPropagation()}},$l)))}var Zd=Fm;function Fp(Ye,gt,Ft){let Dt=[];return(Ye||[]).forEach(($t,Gt)=>{var Pr;const Tn=Ba(Gt,Ft);if($t.filters||"filterDropdown"in $t||"onFilter"in $t)if("filteredValue"in $t){let Sn=$t.filteredValue;"filterDropdown"in $t||(Sn=(Pr=Sn==null?void 0:Sn.map(String))!==null&&Pr!==void 0?Pr:Sn),Dt.push({column:$t,key:qd($t,Tn),filteredKeys:Sn,forceFiltered:$t.filtered})}else Dt.push({column:$t,key:qd($t,Tn),filteredKeys:gt&&$t.defaultFilteredValue?$t.defaultFilteredValue:void 0,forceFiltered:$t.filtered});"children"in $t&&(Dt=[].concat((0,qr.Z)(Dt),(0,qr.Z)(Fp($t.children,gt,Tn))))}),Dt}function zf(Ye,gt,Ft,Dt,$t,Gt,Pr,Tn){return Ft.map((Sn,cn)=>{const qn=Ba(cn,Tn),{filterMultiple:br=!0,filterMode:So,filterSearch:kt}=Sn;let er=Sn;if(er.filters||er.filterDropdown){const An=qd(er,qn),rr=Dt.find(cr=>{let{key:Br}=cr;return An===Br});er=Object.assign(Object.assign({},er),{title:cr=>w.createElement(Zd,{tablePrefixCls:Ye,prefixCls:`${Ye}-filter`,dropdownPrefixCls:gt,column:er,columnKey:An,filterState:rr,filterMultiple:br,filterMode:So,filterSearch:kt,triggerFilter:Gt,locale:$t,getPopupContainer:Pr},ru(Sn.title,cr))})}return"children"in er&&(er=Object.assign(Object.assign({},er),{children:zf(Ye,gt,er.children,Dt,$t,Gt,Pr,qn)})),er})}function bf(Ye){const gt={};return Ye.forEach(Ft=>{let{key:Dt,filteredKeys:$t,column:Gt}=Ft;const Pr=Dt,{filters:Tn,filterDropdown:Sn}=Gt;if(Sn)gt[Pr]=$t||null;else if(Array.isArray($t)){const cn=Sc(Tn);gt[Pr]=cn.filter(qn=>$t.includes(String(qn)))}else gt[Pr]=null}),gt}function Qp(Ye,gt){return gt.reduce((Ft,Dt)=>{const{column:{onFilter:$t,filters:Gt},filteredKeys:Pr}=Dt;return $t&&Pr&&Pr.length?Ft.filter(Tn=>Pr.some(Sn=>{const cn=Sc(Gt),qn=cn.findIndex(So=>String(So)===String(Sn)),br=qn!==-1?cn[qn]:Sn;return $t(br,Tn)})):Ft},Ye)}const Bp=Ye=>Ye.flatMap(gt=>"children"in gt?[gt].concat((0,qr.Z)(Bp(gt.children||[]))):[gt]);function Hf(Ye){let{prefixCls:gt,dropdownPrefixCls:Ft,mergedColumns:Dt,onFilterChange:$t,getPopupContainer:Gt,locale:Pr}=Ye;const Tn=(0,ro.ln)("Table"),Sn=w.useMemo(()=>Bp(Dt||[]),[Dt]),[cn,qn]=w.useState(()=>Fp(Sn,!0)),br=w.useMemo(()=>{const An=Fp(Sn,!1);if(An.length===0)return An;let rr=!0,cr=!0;if(An.forEach(Br=>{let{filteredKeys:Ai}=Br;Ai!==void 0?rr=!1:cr=!1}),rr){const Br=(Sn||[]).map((Ai,De)=>qd(Ai,Ba(De)));return cn.filter(Ai=>{let{key:De}=Ai;return Br.includes(De)}).map(Ai=>{const De=Sn[Br.findIndex(Zo=>Zo===Ai.key)];return Object.assign(Object.assign({},Ai),{column:Object.assign(Object.assign({},Ai.column),De),forceFiltered:De.filtered})})}return An},[Sn,cn]),So=w.useMemo(()=>bf(br),[br]),kt=An=>{const rr=br.filter(cr=>{let{key:Br}=cr;return Br!==An.key});rr.push(An),qn(rr),$t(bf(rr),rr)};return[An=>zf(gt,Ft,An,br,Pr,kt,Gt),br,So]}var df=Hf;function af(Ye,gt,Ft){const Dt=w.useRef({});function $t(Gt){if(!Dt.current||Dt.current.data!==Ye||Dt.current.childrenColumnName!==gt||Dt.current.getRowKey!==Ft){let Tn=function(Sn){Sn.forEach((cn,qn)=>{const br=Ft(cn,qn);Pr.set(br,cn),cn&&typeof cn=="object"&> in cn&&Tn(cn[gt]||[])})};const Pr=new Map;Tn(Ye),Dt.current={data:Ye,childrenColumnName:gt,kvMap:Pr,getRowKey:Ft}}return Dt.current.kvMap.get(Gt)}return[$t]}function jg(){const Ye=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let gt=1;gt{const $t=Ft[Dt];$t!==void 0&&(Ye[Dt]=$t)})}return Ye}var lp=jg,lg=function(Ye,gt){var Ft={};for(var Dt in Ye)Object.prototype.hasOwnProperty.call(Ye,Dt)&>.indexOf(Dt)<0&&(Ft[Dt]=Ye[Dt]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Dt=Object.getOwnPropertySymbols(Ye);$t{const Gt=Ye[$t];typeof Gt!="function"&&(Ft[$t]=Gt)}),Ft}function Im(Ye,gt,Ft){const Dt=Ft&&typeof Ft=="object"?Ft:{},{total:$t=0}=Dt,Gt=lg(Dt,["total"]),[Pr,Tn]=(0,w.useState)(()=>({current:"defaultCurrent"in Gt?Gt.defaultCurrent:1,pageSize:"defaultPageSize"in Gt?Gt.defaultPageSize:Id})),Sn=lp(Pr,Gt,{total:$t>0?$t:Ye}),cn=Math.ceil(($t||Ye)/Sn.pageSize);Sn.current>cn&&(Sn.current=cn||1);const qn=(So,kt)=>{Tn({current:So!=null?So:1,pageSize:kt||Sn.pageSize})},br=(So,kt)=>{var er;Ft&&((er=Ft.onChange)===null||er===void 0||er.call(Ft,So,kt)),qn(So,kt),gt(So,kt||(Sn==null?void 0:Sn.pageSize))};return Ft===!1?[{},()=>{}]:[Object.assign(Object.assign({},Sn),{onChange:br}),qn]}var jm=Im,im=m(58964),wm=m(21770);const ym={},Lg="SELECT_ALL",ug="SELECT_INVERT",om="SELECT_NONE",Qg=[],Lm=(Ye,gt)=>{let Ft=[];return(gt||[]).forEach(Dt=>{Ft.push(Dt),Dt&&typeof Dt=="object"&&Ye in Dt&&(Ft=[].concat((0,qr.Z)(Ft),(0,qr.Z)(Lm(Ye,Dt[Ye]))))}),Ft};var Sg=(Ye,gt)=>{const{preserveSelectedRowKeys:Ft,selectedRowKeys:Dt,defaultSelectedRowKeys:$t,getCheckboxProps:Gt,onChange:Pr,onSelect:Tn,onSelectAll:Sn,onSelectInvert:cn,onSelectNone:qn,onSelectMultiple:br,columnWidth:So,type:kt,selections:er,fixed:An,renderCell:rr,hideSelectAll:cr,checkStrictly:Br=!0}=gt||{},{prefixCls:Ai,data:De,pageData:Zo,getRecordByKey:js,getRowKey:ba,expandType:sa,childrenColumnName:Ps,locale:ha,getPopupContainer:To}=Ye,ir=(0,ro.ln)("Table"),[xi,ji]=(0,wm.Z)(Dt||$t||Qg,{value:Dt}),is=w.useRef(new Map),Ds=(0,w.useCallback)(va=>{if(Ft){const qu=new Map;va.forEach($l=>{let su=js($l);!su&&is.current.has($l)&&(su=is.current.get($l)),qu.set($l,su)}),is.current=qu}},[js,Ft]);w.useEffect(()=>{Ds(xi)},[xi]);const{keyEntities:aa}=(0,w.useMemo)(()=>{if(Br)return{keyEntities:null};let va=De;if(Ft){const qu=new Set(De.map((su,tu)=>ba(su,tu))),$l=Array.from(is.current).reduce((su,tu)=>{let[Gs,Kc]=tu;return qu.has(Gs)?su:su.concat(Kc)},[]);va=[].concat((0,qr.Z)(va),(0,qr.Z)($l))}return(0,bc.I8)(va,{externalGetKey:ba,childrenPropName:Ps})},[De,ba,Br,Ps,Ft]),Ho=(0,w.useMemo)(()=>Lm(Ps,Zo),[Ps,Zo]),or=(0,w.useMemo)(()=>{const va=new Map;return Ho.forEach((qu,$l)=>{const su=ba(qu,$l),tu=(Gt?Gt(qu):null)||{};va.set(su,tu)}),va},[Ho,ba,Gt]),eo=(0,w.useCallback)(va=>{var qu;return!!(!((qu=or.get(ba(va)))===null||qu===void 0)&&qu.disabled)},[or,ba]),[vs,ul]=(0,w.useMemo)(()=>{if(Br)return[xi||[],[]];const{checkedKeys:va,halfCheckedKeys:qu}=(0,$c.S)(xi,!0,aa,eo);return[va||[],qu]},[xi,Br,aa,eo]),Dl=(0,w.useMemo)(()=>{const va=kt==="radio"?vs.slice(0,1):vs;return new Set(va)},[vs,kt]),Oa=(0,w.useMemo)(()=>kt==="radio"?new Set:new Set(ul),[ul,kt]),[_s,wl]=(0,w.useState)(null);w.useEffect(()=>{gt||ji(Qg)},[!!gt]);const nl=(0,w.useCallback)((va,qu)=>{let $l,su;Ds(va),Ft?($l=va,su=va.map(tu=>is.current.get(tu))):($l=[],su=[],va.forEach(tu=>{const Gs=js(tu);Gs!==void 0&&($l.push(tu),su.push(Gs))})),ji($l),Pr==null||Pr($l,su,{type:qu})},[ji,js,Pr,Ft]),mc=(0,w.useCallback)((va,qu,$l,su)=>{if(Tn){const tu=$l.map(Gs=>js(Gs));Tn(js(va),qu,tu,su)}nl($l,"single")},[Tn,js,nl]),pl=(0,w.useMemo)(()=>!er||cr?null:(er===!0?[Lg,ug,om]:er).map(qu=>qu===Lg?{key:"all",text:ha.selectionAll,onSelect(){nl(De.map(($l,su)=>ba($l,su)).filter($l=>{const su=or.get($l);return!(su!=null&&su.disabled)||Dl.has($l)}),"all")}}:qu===ug?{key:"invert",text:ha.selectInvert,onSelect(){const $l=new Set(Dl);Zo.forEach((tu,Gs)=>{const Kc=ba(tu,Gs),Le=or.get(Kc);Le!=null&&Le.disabled||($l.has(Kc)?$l.delete(Kc):$l.add(Kc))});const su=Array.from($l);cn&&(ir.deprecated(!1,"onSelectInvert","onChange"),cn(su)),nl(su,"invert")}}:qu===om?{key:"none",text:ha.selectNone,onSelect(){qn==null||qn(),nl(Array.from(Dl).filter($l=>{const su=or.get($l);return su==null?void 0:su.disabled}),"none")}}:qu).map(qu=>Object.assign(Object.assign({},qu),{onSelect:function(){for(var $l,su,tu=arguments.length,Gs=new Array(tu),Kc=0;Kc{var qu;if(!gt)return va.filter(Sa=>Sa!==ym);let $l=(0,qr.Z)(va);const su=new Set(Dl),tu=Ho.map(ba).filter(Sa=>!or.get(Sa).disabled),Gs=tu.every(Sa=>su.has(Sa)),Kc=tu.some(Sa=>su.has(Sa)),Le=()=>{const Sa=[];Gs?tu.forEach(Ql=>{su.delete(Ql),Sa.push(Ql)}):tu.forEach(Ql=>{su.has(Ql)||(su.add(Ql),Sa.push(Ql))});const _l=Array.from(su);Sn==null||Sn(!Gs,_l.map(Ql=>js(Ql)),Sa.map(Ql=>js(Ql))),nl(_l,"all"),wl(null)};let Oe;if(kt!=="radio"){let Sa;if(pl){const Ha={getPopupContainer:To,items:pl.map((gr,Ka)=>{const{key:Ca,text:Du,onSelect:jc}=gr;return{key:Ca!=null?Ca:Ka,onClick:()=>{jc==null||jc(tu)},label:Du}})};Sa=w.createElement("div",{className:`${Ai}-selection-extra`},w.createElement(Uh.Z,{menu:Ha,getPopupContainer:To},w.createElement("span",null,w.createElement(im.Z,null))))}const _l=Ho.map((Ha,gr)=>{const Ka=ba(Ha,gr),Ca=or.get(Ka)||{};return Object.assign({checked:su.has(Ka)},Ca)}).filter(Ha=>{let{disabled:gr}=Ha;return gr}),Ql=!!_l.length&&_l.length===Ho.length,Ju=Ql&&_l.every(Ha=>{let{checked:gr}=Ha;return gr}),ws=Ql&&_l.some(Ha=>{let{checked:gr}=Ha;return gr});Oe=!cr&&w.createElement("div",{className:`${Ai}-selection`},w.createElement(vf.Z,{checked:Ql?Ju:!!Ho.length&&Gs,indeterminate:Ql?!Ju&&ws:!Gs&&Kc,onChange:Le,disabled:Ho.length===0||Ql,"aria-label":Sa?"Custom selection":"Select all",skipGroup:!0}),Sa)}let et;kt==="radio"?et=(Sa,_l,Ql)=>{const Ju=ba(_l,Ql),ws=su.has(Ju);return{node:w.createElement(ah.ZP,Object.assign({},or.get(Ju),{checked:ws,onClick:Ha=>Ha.stopPropagation(),onChange:Ha=>{su.has(Ju)||mc(Ju,!0,[Ju],Ha.nativeEvent)}})),checked:ws}}:et=(Sa,_l,Ql)=>{var Ju;const ws=ba(_l,Ql),Ha=su.has(ws),gr=Oa.has(ws),Ka=or.get(ws);let Ca;return sa==="nest"?Ca=gr:Ca=(Ju=Ka==null?void 0:Ka.indeterminate)!==null&&Ju!==void 0?Ju:gr,{node:w.createElement(vf.Z,Object.assign({},Ka,{indeterminate:Ca,checked:Ha,skipGroup:!0,onClick:Du=>Du.stopPropagation(),onChange:Du=>{let{nativeEvent:jc}=Du;const{shiftKey:Qo}=jc;let Do=-1,As=-1;if(Qo&&Br){const wa=new Set([_s,ws]);tu.some((Pa,Fs)=>{if(wa.has(Pa))if(Do===-1)Do=Fs;else return As=Fs,!0;return!1})}if(As!==-1&&Do!==As&&Br){const wa=tu.slice(Do,As+1),Pa=[];Ha?wa.forEach(gs=>{su.has(gs)&&(Pa.push(gs),su.delete(gs))}):wa.forEach(gs=>{su.has(gs)||(Pa.push(gs),su.add(gs))});const Fs=Array.from(su);br==null||br(!Ha,Fs.map(gs=>js(gs)),Pa.map(gs=>js(gs))),nl(Fs,"multiple")}else{const wa=vs;if(Br){const Pa=Ha?td(wa,ws):Tp(wa,ws);mc(ws,!Ha,Pa,jc)}else{const Pa=(0,$c.S)([].concat((0,qr.Z)(wa),[ws]),!0,aa,eo),{checkedKeys:Fs,halfCheckedKeys:gs}=Pa;let Xi=Fs;if(Ha){const sr=new Set(Fs);sr.delete(ws),Xi=(0,$c.S)(Array.from(sr),{checked:!1,halfCheckedKeys:gs},aa,eo).checkedKeys}mc(ws,!Ha,Xi,jc)}}wl(Ha?null:ws)}})),checked:Ha}};const hn=(Sa,_l,Ql)=>{const{node:Ju,checked:ws}=et(Sa,_l,Ql);return rr?rr(ws,_l,Ql,Ju):Ju};if(!$l.includes(ym))if($l.findIndex(Sa=>{var _l;return((_l=Sa[Vn])===null||_l===void 0?void 0:_l.columnType)==="EXPAND_COLUMN"})===0){const[Sa,..._l]=$l;$l=[Sa,ym].concat((0,qr.Z)(_l))}else $l=[ym].concat((0,qr.Z)($l));const Lr=$l.indexOf(ym);$l=$l.filter((Sa,_l)=>Sa!==ym||_l===Lr);const Cn=$l[Lr-1],ei=$l[Lr+1];let Li=An;Li===void 0&&((ei==null?void 0:ei.fixed)!==void 0?Li=ei.fixed:(Cn==null?void 0:Cn.fixed)!==void 0&&(Li=Cn.fixed)),Li&&Cn&&((qu=Cn[Vn])===null||qu===void 0?void 0:qu.columnType)==="EXPAND_COLUMN"&&Cn.fixed===void 0&&(Cn.fixed=Li);const ps=Ce()(`${Ai}-selection-col`,{[`${Ai}-selection-col-with-dropdown`]:er&&kt==="checkbox"}),xa={fixed:Li,width:So,className:`${Ai}-selection-column`,title:gt.columnTitle||Oe,render:hn,onCell:gt.onCell,[Vn]:{className:ps}};return $l.map(Sa=>Sa===ym?xa:Sa)},[ba,Ho,gt,vs,Dl,Oa,So,pl,sa,_s,or,br,mc,eo]),Dl]},Wm={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},Gp=Wm,P0=function(gt,Ft){return w.createElement(Wa.Z,(0,S.Z)({},gt,{ref:Ft,icon:Gp}))},wp=w.forwardRef(P0),Xf={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},Zh=Xf,a0=function(gt,Ft){return w.createElement(Wa.Z,(0,S.Z)({},gt,{ref:Ft,icon:Zh}))},k0=w.forwardRef(a0),Zg=m(61781);const Vm="ascend",m0="descend";function Gm(Ye){return typeof Ye.sorter=="object"&&typeof Ye.sorter.multiple=="number"?Ye.sorter.multiple:!1}function $d(Ye){return typeof Ye=="function"?Ye:Ye&&typeof Ye=="object"&&Ye.compare?Ye.compare:!1}function Y0(Ye,gt){return gt?Ye[Ye.indexOf(gt)+1]:Ye[0]}function Wg(Ye,gt,Ft){let Dt=[];function $t(Gt,Pr){Dt.push({column:Gt,key:qd(Gt,Pr),multiplePriority:Gm(Gt),sortOrder:Gt.sortOrder})}return(Ye||[]).forEach((Gt,Pr)=>{const Tn=Ba(Pr,Ft);Gt.children?("sortOrder"in Gt&&$t(Gt,Tn),Dt=[].concat((0,qr.Z)(Dt),(0,qr.Z)(Wg(Gt.children,gt,Tn)))):Gt.sorter&&("sortOrder"in Gt?$t(Gt,Tn):gt&&Gt.defaultSortOrder&&Dt.push({column:Gt,key:qd(Gt,Tn),multiplePriority:Gm(Gt),sortOrder:Gt.defaultSortOrder}))}),Dt}function e0(Ye,gt,Ft,Dt,$t,Gt,Pr,Tn){return(gt||[]).map((Sn,cn)=>{const qn=Ba(cn,Tn);let br=Sn;if(br.sorter){const So=br.sortDirections||$t,kt=br.showSorterTooltip===void 0?Pr:br.showSorterTooltip,er=qd(br,qn),An=Ft.find(sa=>{let{key:Ps}=sa;return Ps===er}),rr=An?An.sortOrder:null,cr=Y0(So,rr);let Br;if(Sn.sortIcon)Br=Sn.sortIcon({sortOrder:rr});else{const sa=So.includes(Vm)&&w.createElement(k0,{className:Ce()(`${Ye}-column-sorter-up`,{active:rr===Vm})}),Ps=So.includes(m0)&&w.createElement(wp,{className:Ce()(`${Ye}-column-sorter-down`,{active:rr===m0})});Br=w.createElement("span",{className:Ce()(`${Ye}-column-sorter`,{[`${Ye}-column-sorter-full`]:!!(sa&&Ps)})},w.createElement("span",{className:`${Ye}-column-sorter-inner`,"aria-hidden":"true"},sa,Ps))}const{cancelSort:Ai,triggerAsc:De,triggerDesc:Zo}=Gt||{};let js=Ai;cr===m0?js=Zo:cr===Vm&&(js=De);const ba=typeof kt=="object"?kt:{title:js};br=Object.assign(Object.assign({},br),{className:Ce()(br.className,{[`${Ye}-column-sort`]:rr}),title:sa=>{const Ps=w.createElement("div",{className:`${Ye}-column-sorters`},w.createElement("span",{className:`${Ye}-column-title`},ru(Sn.title,sa)),Br);return kt?w.createElement(Zg.Z,Object.assign({},ba),Ps):Ps},onHeaderCell:sa=>{const Ps=Sn.onHeaderCell&&Sn.onHeaderCell(sa)||{},ha=Ps.onClick,To=Ps.onKeyDown;Ps.onClick=ji=>{Dt({column:Sn,key:er,sortOrder:cr,multiplePriority:Gm(Sn)}),ha==null||ha(ji)},Ps.onKeyDown=ji=>{ji.keyCode===Vh.Z.ENTER&&(Dt({column:Sn,key:er,sortOrder:cr,multiplePriority:Gm(Sn)}),To==null||To(ji))};const ir=zl(Sn.title,{}),xi=ir==null?void 0:ir.toString();return rr?Ps["aria-sort"]=rr==="ascend"?"ascending":"descending":Ps["aria-label"]=xi||"",Ps.className=Ce()(Ps.className,`${Ye}-column-has-sorters`),Ps.tabIndex=0,Sn.ellipsis&&(Ps.title=(ir!=null?ir:"").toString()),Ps}})}return"children"in br&&(br=Object.assign(Object.assign({},br),{children:e0(Ye,br.children,Ft,Dt,$t,Gt,Pr,qn)})),br})}function _m(Ye){const{column:gt,sortOrder:Ft}=Ye;return{column:gt,order:Ft,field:gt.dataIndex,columnKey:gt.key}}function Um(Ye){const gt=Ye.filter(Ft=>{let{sortOrder:Dt}=Ft;return Dt}).map(_m);return gt.length===0&&Ye.length?Object.assign(Object.assign({},_m(Ye[Ye.length-1])),{column:void 0}):gt.length<=1?gt[0]||{}:gt}function yp(Ye,gt,Ft){const Dt=gt.slice().sort((Pr,Tn)=>Tn.multiplePriority-Pr.multiplePriority),$t=Ye.slice(),Gt=Dt.filter(Pr=>{let{column:{sorter:Tn},sortOrder:Sn}=Pr;return $d(Tn)&&Sn});return Gt.length?$t.sort((Pr,Tn)=>{for(let Sn=0;Sn{const Tn=Pr[Ft];return Tn?Object.assign(Object.assign({},Pr),{[Ft]:yp(Tn,gt,Ft)}):Pr}):$t}function sm(Ye){let{prefixCls:gt,mergedColumns:Ft,onSorterChange:Dt,sortDirections:$t,tableLocale:Gt,showSorterTooltip:Pr}=Ye;const[Tn,Sn]=w.useState(Wg(Ft,!0)),cn=w.useMemo(()=>{let er=!0;const An=Wg(Ft,!1);if(!An.length)return Tn;const rr=[];function cr(Ai){er?rr.push(Ai):rr.push(Object.assign(Object.assign({},Ai),{sortOrder:null}))}let Br=null;return An.forEach(Ai=>{Br===null?(cr(Ai),Ai.sortOrder&&(Ai.multiplePriority===!1?er=!1:Br=!0)):(Br&&Ai.multiplePriority!==!1||(er=!1),cr(Ai))}),rr},[Ft,Tn]),qn=w.useMemo(()=>{const er=cn.map(An=>{let{column:rr,sortOrder:cr}=An;return{column:rr,order:cr}});return{sortColumns:er,sortColumn:er[0]&&er[0].column,sortOrder:er[0]&&er[0].order}},[cn]);function br(er){let An;er.multiplePriority===!1||!cn.length||cn[0].multiplePriority===!1?An=[er]:An=[].concat((0,qr.Z)(cn.filter(rr=>{let{key:cr}=rr;return cr!==er.key})),[er]),Sn(An),Dt(Um(An),An)}return[er=>e0(gt,er,cn,br,$t,Gt,Pr),cn,qn,()=>Um(cn)]}function Km(Ye,gt){return Ye.map(Ft=>{const Dt=Object.assign({},Ft);return Dt.title=ru(Ft.title,gt),"children"in Dt&&(Dt.children=Km(Dt.children,gt)),Dt})}function Ap(Ye){return[w.useCallback(Ft=>Km(Ft,Ye),[Ye])]}var Pg=Vi((Ye,gt)=>{const{_renderTimes:Ft}=Ye,{_renderTimes:Dt}=gt;return Ft!==Dt}),pe=ms((Ye,gt)=>{const{_renderTimes:Ft}=Ye,{_renderTimes:Dt}=gt;return Ft!==Dt}),H=m(10274),at=Ye=>{const{componentCls:gt}=Ye,Ft=`${Ye.lineWidth}px ${Ye.lineType} ${Ye.tableBorderColor}`,Dt=($t,Gt,Pr)=>({[`&${gt}-${$t}`]:{[`> ${gt}-container`]:{[`> ${gt}-content, > ${gt}-body`]:{[` + `]:{background:$t},[`${mt}-switcher`]:{color:Gt},[`${mt}-node-content-wrapper`]:{color:Gt,background:"transparent"}}}}}},fr=(Ye,mt)=>{const Ft=`.${Ye}`,Dt=`${Ft}-treenode`,$t=mt.paddingXS/2,Gt=(0,id.TS)(mt,{treeCls:Ft,treeNodeCls:Dt,treeNodePadding:$t});return[Yn(Ye,Gt),Zr(Gt)]},es=Ye=>{const{controlHeightSM:mt}=Ye;return{titleHeight:mt,nodeHoverBg:Ye.controlItemBgHover,nodeSelectedBg:Ye.controlItemBgActive}};var Xo=(0,vh.Z)("Tree",(Ye,mt)=>{let{prefixCls:Ft}=mt;return[{[Ye.componentCls]:(0,J.C2)(`${Ft}-checkbox`,Ye)},fr(Ft,Ye),(0,ae.Z)(Ye)]},Ye=>{const{colorTextLightSolid:mt,colorPrimary:Ft}=Ye;return Object.assign(Object.assign({},es(Ye)),{directoryNodeSelectedColor:mt,directoryNodeSelectedBg:Ft})});const Ss=4;function sa(Ye){const{dropPosition:mt,dropLevelOffset:Ft,prefixCls:Dt,indent:$t,direction:Gt="ltr"}=Ye,Pr=Gt==="ltr"?"left":"right",Dn=Gt==="ltr"?"right":"left",Sn={[Pr]:-Ft*$t+Ss,[Dn]:0};switch(mt){case-1:Sn.top=-3;break;case 1:Sn.bottom=-3;break;default:Sn.bottom=-3,Sn[Pr]=$t+Ss;break}return w.createElement("div",{style:Sn,className:`${Dt}-drop-indicator`})}var qs={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},Vo=qs,js=function(mt,Ft){return w.createElement(ja.Z,(0,S.Z)({},mt,{ref:Ft,icon:Vo}))},za=w.forwardRef(js),yl=m(38521),nu={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},xu=nu,Tu=function(mt,Ft){return w.createElement(ja.Z,(0,S.Z)({},mt,{ref:Ft,icon:xu}))},Cu=w.forwardRef(Tu),dc=m(15702),Hc=function(mt,Ft){return w.createElement(ja.Z,(0,S.Z)({},mt,{ref:Ft,icon:dc.Z}))},wc=w.forwardRef(Hc),hd=m(99486),ch=Ye=>{const{prefixCls:mt,switcherIcon:Ft,treeNodeProps:Dt,showLine:$t}=Ye,{isLeaf:Gt,expanded:Pr,loading:Dn}=Dt;if(Dn)return w.createElement(yl.Z,{className:`${mt}-switcher-loading-icon`});let Sn;if($t&&typeof $t=="object"&&(Sn=$t.showLeafIcon),Gt){if(!$t)return null;if(typeof Sn!="boolean"&&Sn){const xr=typeof Sn=="function"?Sn(Dt):Sn,So=`${mt}-switcher-line-custom-icon`;return(0,hd.l$)(xr)?(0,hd.Tm)(xr,{className:xe()(xr.props.className||"",So)}):xr}return Sn?w.createElement(Ue,{className:`${mt}-switcher-line-icon`}):w.createElement("span",{className:`${mt}-switcher-leaf-line`})}const cn=`${mt}-switcher-icon`,Jn=typeof Ft=="function"?Ft(Dt):Ft;return(0,hd.l$)(Jn)?(0,hd.Tm)(Jn,{className:xe()(Jn.props.className||"",cn)}):Jn!==void 0?Jn:$t?Pr?w.createElement(Cu,{className:`${mt}-switcher-line-icon`}):w.createElement(wc,{className:`${mt}-switcher-line-icon`}):w.createElement(za,{className:cn})},Xh=w.forwardRef((Ye,mt)=>{const{getPrefixCls:Ft,direction:Dt,virtual:$t,tree:Gt}=w.useContext(Ei.E_),{prefixCls:Pr,className:Dn,showIcon:Sn=!1,showLine:cn,switcherIcon:Jn,blockNode:xr=!1,children:So,checkable:kt=!1,selectable:er=!0,draggable:In,motion:rr,style:cr}=Ye,Br=Ft("tree",Pr),Ai=Ft(),Ee=rr!=null?rr:Object.assign(Object.assign({},(0,X.Z)(Ai)),{motionAppear:!1}),Zo=Object.assign(Object.assign({},Ye),{checkable:kt,selectable:er,showIcon:Sn,motion:Ee,blockNode:xr,showLine:!!cn,dropIndicatorRender:sa}),[Ws,ba]=Xo(Br),aa=w.useMemo(()=>{if(!In)return!1;let ha={};switch(typeof In){case"function":ha.nodeDraggable=In;break;case"object":ha=Object.assign({},In);break;default:break}return ha.icon!==!1&&(ha.icon=ha.icon||w.createElement(Rd,null)),ha},[In]),Ps=ha=>w.createElement(ch,{prefixCls:Br,switcherIcon:Jn,treeNodeProps:ha,showLine:cn});return Ws(w.createElement(D,Object.assign({itemHeight:20,ref:mt,virtual:$t},Zo,{style:Object.assign(Object.assign({},Gt==null?void 0:Gt.style),cr),prefixCls:Br,className:xe()({[`${Br}-icon-hide`]:!Sn,[`${Br}-block-node`]:xr,[`${Br}-unselectable`]:!er,[`${Br}-rtl`]:Dt==="rtl"},Gt==null?void 0:Gt.className,Dn,ba),direction:Dt,checkable:kt&&w.createElement("span",{className:`${Br}-checkbox-inner`}),selectable:er,switcherIcon:Ps,draggable:aa}),So))}),Nc;(function(Ye){Ye[Ye.None=0]="None",Ye[Ye.Start=1]="Start",Ye[Ye.End=2]="End"})(Nc||(Nc={}));function Uc(Ye,mt,Ft){const{key:Dt,children:$t}=Ft;function Gt(Pr){const Dn=Pr[Dt],Sn=Pr[$t];mt(Dn,Pr)!==!1&&Uc(Sn||[],mt,Ft)}Ye.forEach(Gt)}function tf(Ye){let{treeData:mt,expandedKeys:Ft,startKey:Dt,endKey:$t,fieldNames:Gt}=Ye;const Pr=[];let Dn=Nc.None;if(Dt&&Dt===$t)return[Dt];if(!Dt||!$t)return[];function Sn(cn){return cn===Dt||cn===$t}return Uc(mt,cn=>{if(Dn===Nc.End)return!1;if(Sn(cn)){if(Pr.push(cn),Dn===Nc.None)Dn=Nc.Start;else if(Dn===Nc.Start)return Dn=Nc.End,!1}else Dn===Nc.Start&&Pr.push(cn);return Ft.includes(cn)},(0,bc.w$)(Gt)),Pr}function dh(Ye,mt,Ft){const Dt=(0,qr.Z)(mt),$t=[];return Uc(Ye,(Gt,Pr)=>{const Dn=Dt.indexOf(Gt);return Dn!==-1&&($t.push(Pr),Dt.splice(Dn,1)),!!Dt.length},(0,bc.w$)(Ft)),$t}var nh=function(Ye,mt){var Ft={};for(var Dt in Ye)Object.prototype.hasOwnProperty.call(Ye,Dt)&&mt.indexOf(Dt)<0&&(Ft[Dt]=Ye[Dt]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Dt=Object.getOwnPropertySymbols(Ye);$t{var{defaultExpandAll:Ft,defaultExpandParent:Dt,defaultExpandedKeys:$t}=Ye,Gt=nh(Ye,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Pr=w.useRef(),Dn=w.useRef(),Sn=()=>{const{keyEntities:aa}=(0,bc.I8)(_h(Gt));let Ps;return Ft?Ps=Object.keys(aa):Dt?Ps=bd(Gt.expandedKeys||$t||[],aa):Ps=Gt.expandedKeys||$t,Ps},[cn,Jn]=w.useState(Gt.selectedKeys||Gt.defaultSelectedKeys||[]),[xr,So]=w.useState(()=>Sn());w.useEffect(()=>{"selectedKeys"in Gt&&Jn(Gt.selectedKeys)},[Gt.selectedKeys]),w.useEffect(()=>{"expandedKeys"in Gt&&So(Gt.expandedKeys)},[Gt.expandedKeys]);const kt=(aa,Ps)=>{var ha;return"expandedKeys"in Gt||So(aa),(ha=Gt.onExpand)===null||ha===void 0?void 0:ha.call(Gt,aa,Ps)},er=(aa,Ps)=>{var ha;const{multiple:To,fieldNames:ir}=Gt,{node:bi,nativeEvent:Wi}=Ps,{key:os=""}=bi,Ds=_h(Gt),la=Object.assign(Object.assign({},Ps),{selected:!0}),Ho=(Wi==null?void 0:Wi.ctrlKey)||(Wi==null?void 0:Wi.metaKey),or=Wi==null?void 0:Wi.shiftKey;let eo;To&&Ho?(eo=aa,Pr.current=os,Dn.current=eo,la.selectedNodes=dh(Ds,eo,ir)):To&&or?(eo=Array.from(new Set([].concat((0,qr.Z)(Dn.current||[]),(0,qr.Z)(tf({treeData:Ds,expandedKeys:xr,startKey:os,endKey:Pr.current,fieldNames:ir}))))),la.selectedNodes=dh(Ds,eo,ir)):(eo=[os],Pr.current=os,Dn.current=eo,la.selectedNodes=dh(Ds,eo,ir)),(ha=Gt.onSelect)===null||ha===void 0||ha.call(Gt,eo,la),"selectedKeys"in Gt||Jn(eo)},{getPrefixCls:In,direction:rr}=w.useContext(Ei.E_),{prefixCls:cr,className:Br,showIcon:Ai=!0,expandAction:Ee="click"}=Gt,Zo=nh(Gt,["prefixCls","className","showIcon","expandAction"]),Ws=In("tree",cr),ba=xe()(`${Ws}-directory`,{[`${Ws}-directory-rtl`]:rr==="rtl"},Br);return w.createElement(Xh,Object.assign({icon:zh,ref:mt,blockNode:!0},Zo,{showIcon:Ai,expandAction:Ee,prefixCls:Ws,className:ba,expandedKeys:xr,selectedKeys:cn,onSelect:er,onExpand:kt}))};var jp=w.forwardRef(Mh);const vp=Xh;vp.DirectoryTree=jp,vp.TreeNode=Ah;var Zc=vp,Oc=m(46820),ld=m(68517);function yd(Ye){let{value:mt,onChange:Ft,filterSearch:Dt,tablePrefixCls:$t,locale:Gt}=Ye;return Dt?w.createElement("div",{className:`${$t}-filter-dropdown-search`},w.createElement(ld.Z,{prefix:w.createElement(Oc.Z,null),placeholder:Gt.filterSearchPlaceholder,onChange:Ft,value:mt,htmlSize:1,className:`${$t}-filter-dropdown-search-input`})):null}var Bd=yd;const Dc=Ye=>{const{keyCode:mt}=Ye;mt===Vh.Z.ENTER&&Ye.stopPropagation()};var ud=w.forwardRef((Ye,mt)=>w.createElement("div",{className:Ye.className,onClick:Ft=>Ft.stopPropagation(),onKeyDown:Dc,ref:mt},Ye.children));function Sc(Ye){let mt=[];return(Ye||[]).forEach(Ft=>{let{value:Dt,children:$t}=Ft;mt.push(Dt),$t&&(mt=[].concat((0,qr.Z)(mt),(0,qr.Z)(Sc($t))))}),mt}function Io(Ye){return Ye.some(mt=>{let{children:Ft}=mt;return Ft})}function Gg(Ye,mt){return typeof mt=="string"||typeof mt=="number"?mt==null?void 0:mt.toString().toLowerCase().includes(Ye.trim().toLowerCase()):!1}function Hp(Ye){let{filters:mt,prefixCls:Ft,filteredKeys:Dt,filterMultiple:$t,searchValue:Gt,filterSearch:Pr}=Ye;return mt.map((Dn,Sn)=>{const cn=String(Dn.value);if(Dn.children)return{key:cn||Sn,label:Dn.text,popupClassName:`${Ft}-dropdown-submenu`,children:Hp({filters:Dn.children,prefixCls:Ft,filteredKeys:Dt,filterMultiple:$t,searchValue:Gt,filterSearch:Pr})};const Jn=$t?yf.Z:sh.ZP,xr={key:Dn.value!==void 0?cn:Sn,label:w.createElement(w.Fragment,null,w.createElement(Jn,{checked:Dt.includes(cn)}),w.createElement("span",null,Dn.text))};return Gt.trim()?typeof Pr=="function"?Pr(Gt,Dn)?xr:null:Gg(Gt,Dn.text)?xr:null:xr})}function mm(Ye){return Ye||[]}function Nm(Ye){var mt,Ft;const{tablePrefixCls:Dt,prefixCls:$t,column:Gt,dropdownPrefixCls:Pr,columnKey:Dn,filterMultiple:Sn,filterMode:cn="menu",filterSearch:Jn=!1,filterState:xr,triggerFilter:So,locale:kt,children:er,getPopupContainer:In}=Ye,{filterDropdownOpen:rr,onFilterDropdownOpenChange:cr,filterResetToDefaultFilteredValue:Br,defaultFilteredValue:Ai,filterDropdownVisible:Ee,onFilterDropdownVisibleChange:Zo}=Gt,[Ws,ba]=w.useState(!1),aa=!!(xr&&(!((mt=xr.filteredKeys)===null||mt===void 0)&&mt.length||xr.forceFiltered)),Ps=tu=>{ba(tu),cr==null||cr(tu),Zo==null||Zo(tu)},ha=(Ft=rr!=null?rr:Ee)!==null&&Ft!==void 0?Ft:Ws,To=xr==null?void 0:xr.filteredKeys,[ir,bi]=oh(mm(To)),Wi=tu=>{let{selectedKeys:Gs}=tu;bi(Gs)},os=(tu,Gs)=>{let{node:Gc,checked:Le}=Gs;Wi(Sn?{selectedKeys:tu}:{selectedKeys:Le&&Gc.key?[Gc.key]:[]})};w.useEffect(()=>{Ws&&Wi({selectedKeys:mm(To)})},[To]);const[Ds,la]=w.useState([]),Ho=tu=>{la(tu)},[or,eo]=w.useState(""),vs=tu=>{const{value:Gs}=tu.target;eo(Gs)};w.useEffect(()=>{Ws||eo("")},[Ws]);const ll=tu=>{const Gs=tu&&tu.length?tu:null;if(Gs===null&&(!xr||!xr.filteredKeys)||(0,N.Z)(Gs,xr==null?void 0:xr.filteredKeys,!0))return null;So({column:Gt,key:Dn,filteredKeys:Gs})},Dl=()=>{Ps(!1),ll(ir())},Oa=function(){let{confirm:tu,closeDropdown:Gs}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};tu&&ll([]),Gs&&Ps(!1),eo(""),bi(Br?(Ai||[]).map(Gc=>String(Gc)):[])},_s=function(){let{closeDropdown:tu}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};tu&&Ps(!1),ll(ir())},wl=tu=>{tu&&To!==void 0&&bi(mm(To)),Ps(tu),!tu&&!Gt.filterDropdown&&Dl()},nl=xe()({[`${Pr}-menu-without-submenu`]:!Io(Gt.filters||[])}),mc=tu=>{if(tu.target.checked){const Gs=Sc(Gt==null?void 0:Gt.filters).map(Gc=>String(Gc));bi(Gs)}else bi([])},fl=tu=>{let{filters:Gs}=tu;return(Gs||[]).map((Gc,Le)=>{const Me=String(Gc.value),et={title:Gc.text,key:Gc.value!==void 0?Me:String(Le)};return Gc.children&&(et.children=fl({filters:Gc.children})),et})},oc=tu=>{var Gs;return Object.assign(Object.assign({},tu),{text:tu.title,value:tu.key,children:((Gs=tu.children)===null||Gs===void 0?void 0:Gs.map(Gc=>oc(Gc)))||[]})};let va;if(typeof Gt.filterDropdown=="function")va=Gt.filterDropdown({prefixCls:`${Pr}-custom`,setSelectedKeys:tu=>Wi({selectedKeys:tu}),selectedKeys:ir(),confirm:_s,clearFilters:Oa,filters:Gt.filters,visible:ha,close:()=>{Ps(!1)}});else if(Gt.filterDropdown)va=Gt.filterDropdown;else{const tu=ir()||[],Gs=()=>(Gt.filters||[]).length===0?w.createElement(kf.Z,{image:kf.Z.PRESENTED_IMAGE_SIMPLE,description:kt.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):cn==="tree"?w.createElement(w.Fragment,null,w.createElement(Bd,{filterSearch:Jn,value:or,onChange:vs,tablePrefixCls:Dt,locale:kt}),w.createElement("div",{className:`${Dt}-filter-dropdown-tree`},Sn?w.createElement(yf.Z,{checked:tu.length===Sc(Gt.filters).length,indeterminate:tu.length>0&&tu.lengthtypeof Jn=="function"?Jn(or,oc(Le)):Gg(or,Le.title):void 0}))):w.createElement(w.Fragment,null,w.createElement(Bd,{filterSearch:Jn,value:or,onChange:vs,tablePrefixCls:Dt,locale:kt}),w.createElement(Bh.Z,{selectable:!0,multiple:Sn,prefixCls:`${Pr}-menu`,className:nl,onSelect:Wi,onDeselect:Wi,selectedKeys:tu,getPopupContainer:In,openKeys:Ds,onOpenChange:Ho,items:Hp({filters:Gt.filters||[],filterSearch:Jn,prefixCls:$t,filteredKeys:ir(),filterMultiple:Sn,searchValue:or})})),Gc=()=>Br?(0,N.Z)((Ai||[]).map(Le=>String(Le)),tu,!0):tu.length===0;va=w.createElement(w.Fragment,null,Gs(),w.createElement("div",{className:`${$t}-dropdown-btns`},w.createElement(Vf.ZP,{type:"link",size:"small",disabled:Gc(),onClick:()=>Oa()},kt.filterReset),w.createElement(Vf.ZP,{type:"primary",size:"small",onClick:Dl},kt.filterConfirm)))}Gt.filterDropdown&&(va=w.createElement(Kf.J,{selectable:void 0},va));const qu=()=>w.createElement(ud,{className:`${$t}-dropdown`},va);let $l;typeof Gt.filterIcon=="function"?$l=Gt.filterIcon(aa):Gt.filterIcon?$l=Gt.filterIcon:$l=w.createElement(Vd,null);const{direction:su}=w.useContext(Ei.E_);return w.createElement("div",{className:`${$t}-column`},w.createElement("span",{className:`${Dt}-column-title`},er),w.createElement(Uh.Z,{dropdownRender:qu,trigger:["click"],open:ha,onOpenChange:wl,getPopupContainer:In,placement:su==="rtl"?"bottomLeft":"bottomRight"},w.createElement("span",{role:"button",tabIndex:-1,className:xe()(`${$t}-trigger`,{active:aa}),onClick:tu=>{tu.stopPropagation()}},$l)))}var Zd=Nm;function Fp(Ye,mt,Ft){let Dt=[];return(Ye||[]).forEach(($t,Gt)=>{var Pr;const Dn=Ba(Gt,Ft);if($t.filters||"filterDropdown"in $t||"onFilter"in $t)if("filteredValue"in $t){let Sn=$t.filteredValue;"filterDropdown"in $t||(Sn=(Pr=Sn==null?void 0:Sn.map(String))!==null&&Pr!==void 0?Pr:Sn),Dt.push({column:$t,key:Yd($t,Dn),filteredKeys:Sn,forceFiltered:$t.filtered})}else Dt.push({column:$t,key:Yd($t,Dn),filteredKeys:mt&&$t.defaultFilteredValue?$t.defaultFilteredValue:void 0,forceFiltered:$t.filtered});"children"in $t&&(Dt=[].concat((0,qr.Z)(Dt),(0,qr.Z)(Fp($t.children,mt,Dn))))}),Dt}function zf(Ye,mt,Ft,Dt,$t,Gt,Pr,Dn){return Ft.map((Sn,cn)=>{const Jn=Ba(cn,Dn),{filterMultiple:xr=!0,filterMode:So,filterSearch:kt}=Sn;let er=Sn;if(er.filters||er.filterDropdown){const In=Yd(er,Jn),rr=Dt.find(cr=>{let{key:Br}=cr;return In===Br});er=Object.assign(Object.assign({},er),{title:cr=>w.createElement(Zd,{tablePrefixCls:Ye,prefixCls:`${Ye}-filter`,dropdownPrefixCls:mt,column:er,columnKey:In,filterState:rr,filterMultiple:xr,filterMode:So,filterSearch:kt,triggerFilter:Gt,locale:$t,getPopupContainer:Pr},ru(Sn.title,cr))})}return"children"in er&&(er=Object.assign(Object.assign({},er),{children:zf(Ye,mt,er.children,Dt,$t,Gt,Pr,Jn)})),er})}function bf(Ye){const mt={};return Ye.forEach(Ft=>{let{key:Dt,filteredKeys:$t,column:Gt}=Ft;const Pr=Dt,{filters:Dn,filterDropdown:Sn}=Gt;if(Sn)mt[Pr]=$t||null;else if(Array.isArray($t)){const cn=Sc(Dn);mt[Pr]=cn.filter(Jn=>$t.includes(String(Jn)))}else mt[Pr]=null}),mt}function Jp(Ye,mt){return mt.reduce((Ft,Dt)=>{const{column:{onFilter:$t,filters:Gt},filteredKeys:Pr}=Dt;return $t&&Pr&&Pr.length?Ft.filter(Dn=>Pr.some(Sn=>{const cn=Sc(Gt),Jn=cn.findIndex(So=>String(So)===String(Sn)),xr=Jn!==-1?cn[Jn]:Sn;return $t(xr,Dn)})):Ft},Ye)}const Bp=Ye=>Ye.flatMap(mt=>"children"in mt?[mt].concat((0,qr.Z)(Bp(mt.children||[]))):[mt]);function Hf(Ye){let{prefixCls:mt,dropdownPrefixCls:Ft,mergedColumns:Dt,onFilterChange:$t,getPopupContainer:Gt,locale:Pr}=Ye;const Dn=(0,ro.ln)("Table"),Sn=w.useMemo(()=>Bp(Dt||[]),[Dt]),[cn,Jn]=w.useState(()=>Fp(Sn,!0)),xr=w.useMemo(()=>{const In=Fp(Sn,!1);if(In.length===0)return In;let rr=!0,cr=!0;if(In.forEach(Br=>{let{filteredKeys:Ai}=Br;Ai!==void 0?rr=!1:cr=!1}),rr){const Br=(Sn||[]).map((Ai,Ee)=>Yd(Ai,Ba(Ee)));return cn.filter(Ai=>{let{key:Ee}=Ai;return Br.includes(Ee)}).map(Ai=>{const Ee=Sn[Br.findIndex(Zo=>Zo===Ai.key)];return Object.assign(Object.assign({},Ai),{column:Object.assign(Object.assign({},Ai.column),Ee),forceFiltered:Ee.filtered})})}return In},[Sn,cn]),So=w.useMemo(()=>bf(xr),[xr]),kt=In=>{const rr=xr.filter(cr=>{let{key:Br}=cr;return Br!==In.key});rr.push(In),Jn(rr),$t(bf(rr),rr)};return[In=>zf(mt,Ft,In,xr,Pr,kt,Gt),xr,So]}var df=Hf;function af(Ye,mt,Ft){const Dt=w.useRef({});function $t(Gt){if(!Dt.current||Dt.current.data!==Ye||Dt.current.childrenColumnName!==mt||Dt.current.getRowKey!==Ft){let Dn=function(Sn){Sn.forEach((cn,Jn)=>{const xr=Ft(cn,Jn);Pr.set(xr,cn),cn&&typeof cn=="object"&&mt in cn&&Dn(cn[mt]||[])})};const Pr=new Map;Dn(Ye),Dt.current={data:Ye,childrenColumnName:mt,kvMap:Pr,getRowKey:Ft}}return Dt.current.kvMap.get(Gt)}return[$t]}function jg(){const Ye=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let mt=1;mt{const $t=Ft[Dt];$t!==void 0&&(Ye[Dt]=$t)})}return Ye}var ap=jg,lg=function(Ye,mt){var Ft={};for(var Dt in Ye)Object.prototype.hasOwnProperty.call(Ye,Dt)&&mt.indexOf(Dt)<0&&(Ft[Dt]=Ye[Dt]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Dt=Object.getOwnPropertySymbols(Ye);$t{const Gt=Ye[$t];typeof Gt!="function"&&(Ft[$t]=Gt)}),Ft}function Im(Ye,mt,Ft){const Dt=Ft&&typeof Ft=="object"?Ft:{},{total:$t=0}=Dt,Gt=lg(Dt,["total"]),[Pr,Dn]=(0,w.useState)(()=>({current:"defaultCurrent"in Gt?Gt.defaultCurrent:1,pageSize:"defaultPageSize"in Gt?Gt.defaultPageSize:Id})),Sn=ap(Pr,Gt,{total:$t>0?$t:Ye}),cn=Math.ceil(($t||Ye)/Sn.pageSize);Sn.current>cn&&(Sn.current=cn||1);const Jn=(So,kt)=>{Dn({current:So!=null?So:1,pageSize:kt||Sn.pageSize})},xr=(So,kt)=>{var er;Ft&&((er=Ft.onChange)===null||er===void 0||er.call(Ft,So,kt)),Jn(So,kt),mt(So,kt||(Sn==null?void 0:Sn.pageSize))};return Ft===!1?[{},()=>{}]:[Object.assign(Object.assign({},Sn),{onChange:xr}),Jn]}var zm=Im,im=m(42884),Cm=m(41760);const vm={},Lg="SELECT_ALL",ug="SELECT_INVERT",om="SELECT_NONE",Qg=[],Lm=(Ye,mt)=>{let Ft=[];return(mt||[]).forEach(Dt=>{Ft.push(Dt),Dt&&typeof Dt=="object"&&Ye in Dt&&(Ft=[].concat((0,qr.Z)(Ft),(0,qr.Z)(Lm(Ye,Dt[Ye]))))}),Ft};var Sg=(Ye,mt)=>{const{preserveSelectedRowKeys:Ft,selectedRowKeys:Dt,defaultSelectedRowKeys:$t,getCheckboxProps:Gt,onChange:Pr,onSelect:Dn,onSelectAll:Sn,onSelectInvert:cn,onSelectNone:Jn,onSelectMultiple:xr,columnWidth:So,type:kt,selections:er,fixed:In,renderCell:rr,hideSelectAll:cr,checkStrictly:Br=!0}=mt||{},{prefixCls:Ai,data:Ee,pageData:Zo,getRecordByKey:Ws,getRowKey:ba,expandType:aa,childrenColumnName:Ps,locale:ha,getPopupContainer:To}=Ye,ir=(0,ro.ln)("Table"),[bi,Wi]=(0,Cm.Z)(Dt||$t||Qg,{value:Dt}),os=w.useRef(new Map),Ds=(0,w.useCallback)(va=>{if(Ft){const qu=new Map;va.forEach($l=>{let su=Ws($l);!su&&os.current.has($l)&&(su=os.current.get($l)),qu.set($l,su)}),os.current=qu}},[Ws,Ft]);w.useEffect(()=>{Ds(bi)},[bi]);const{keyEntities:la}=(0,w.useMemo)(()=>{if(Br)return{keyEntities:null};let va=Ee;if(Ft){const qu=new Set(Ee.map((su,tu)=>ba(su,tu))),$l=Array.from(os.current).reduce((su,tu)=>{let[Gs,Gc]=tu;return qu.has(Gs)?su:su.concat(Gc)},[]);va=[].concat((0,qr.Z)(va),(0,qr.Z)($l))}return(0,bc.I8)(va,{externalGetKey:ba,childrenPropName:Ps})},[Ee,ba,Br,Ps,Ft]),Ho=(0,w.useMemo)(()=>Lm(Ps,Zo),[Ps,Zo]),or=(0,w.useMemo)(()=>{const va=new Map;return Ho.forEach((qu,$l)=>{const su=ba(qu,$l),tu=(Gt?Gt(qu):null)||{};va.set(su,tu)}),va},[Ho,ba,Gt]),eo=(0,w.useCallback)(va=>{var qu;return!!(!((qu=or.get(ba(va)))===null||qu===void 0)&&qu.disabled)},[or,ba]),[vs,ll]=(0,w.useMemo)(()=>{if(Br)return[bi||[],[]];const{checkedKeys:va,halfCheckedKeys:qu}=(0,$c.S)(bi,!0,la,eo);return[va||[],qu]},[bi,Br,la,eo]),Dl=(0,w.useMemo)(()=>{const va=kt==="radio"?vs.slice(0,1):vs;return new Set(va)},[vs,kt]),Oa=(0,w.useMemo)(()=>kt==="radio"?new Set:new Set(ll),[ll,kt]),[_s,wl]=(0,w.useState)(null);w.useEffect(()=>{mt||Wi(Qg)},[!!mt]);const nl=(0,w.useCallback)((va,qu)=>{let $l,su;Ds(va),Ft?($l=va,su=va.map(tu=>os.current.get(tu))):($l=[],su=[],va.forEach(tu=>{const Gs=Ws(tu);Gs!==void 0&&($l.push(tu),su.push(Gs))})),Wi($l),Pr==null||Pr($l,su,{type:qu})},[Wi,Ws,Pr,Ft]),mc=(0,w.useCallback)((va,qu,$l,su)=>{if(Dn){const tu=$l.map(Gs=>Ws(Gs));Dn(Ws(va),qu,tu,su)}nl($l,"single")},[Dn,Ws,nl]),fl=(0,w.useMemo)(()=>!er||cr?null:(er===!0?[Lg,ug,om]:er).map(qu=>qu===Lg?{key:"all",text:ha.selectionAll,onSelect(){nl(Ee.map(($l,su)=>ba($l,su)).filter($l=>{const su=or.get($l);return!(su!=null&&su.disabled)||Dl.has($l)}),"all")}}:qu===ug?{key:"invert",text:ha.selectInvert,onSelect(){const $l=new Set(Dl);Zo.forEach((tu,Gs)=>{const Gc=ba(tu,Gs),Le=or.get(Gc);Le!=null&&Le.disabled||($l.has(Gc)?$l.delete(Gc):$l.add(Gc))});const su=Array.from($l);cn&&(ir.deprecated(!1,"onSelectInvert","onChange"),cn(su)),nl(su,"invert")}}:qu===om?{key:"none",text:ha.selectNone,onSelect(){Jn==null||Jn(),nl(Array.from(Dl).filter($l=>{const su=or.get($l);return su==null?void 0:su.disabled}),"none")}}:qu).map(qu=>Object.assign(Object.assign({},qu),{onSelect:function(){for(var $l,su,tu=arguments.length,Gs=new Array(tu),Gc=0;Gc{var qu;if(!mt)return va.filter(Sa=>Sa!==vm);let $l=(0,qr.Z)(va);const su=new Set(Dl),tu=Ho.map(ba).filter(Sa=>!or.get(Sa).disabled),Gs=tu.every(Sa=>su.has(Sa)),Gc=tu.some(Sa=>su.has(Sa)),Le=()=>{const Sa=[];Gs?tu.forEach(Ql=>{su.delete(Ql),Sa.push(Ql)}):tu.forEach(Ql=>{su.has(Ql)||(su.add(Ql),Sa.push(Ql))});const _l=Array.from(su);Sn==null||Sn(!Gs,_l.map(Ql=>Ws(Ql)),Sa.map(Ql=>Ws(Ql))),nl(_l,"all"),wl(null)};let Me;if(kt!=="radio"){let Sa;if(fl){const Ha={getPopupContainer:To,items:fl.map((gr,Ka)=>{const{key:Ca,text:Du,onSelect:Wc}=gr;return{key:Ca!=null?Ca:Ka,onClick:()=>{Wc==null||Wc(tu)},label:Du}})};Sa=w.createElement("div",{className:`${Ai}-selection-extra`},w.createElement(Uh.Z,{menu:Ha,getPopupContainer:To},w.createElement("span",null,w.createElement(im.Z,null))))}const _l=Ho.map((Ha,gr)=>{const Ka=ba(Ha,gr),Ca=or.get(Ka)||{};return Object.assign({checked:su.has(Ka)},Ca)}).filter(Ha=>{let{disabled:gr}=Ha;return gr}),Ql=!!_l.length&&_l.length===Ho.length,Ju=Ql&&_l.every(Ha=>{let{checked:gr}=Ha;return gr}),ws=Ql&&_l.some(Ha=>{let{checked:gr}=Ha;return gr});Me=!cr&&w.createElement("div",{className:`${Ai}-selection`},w.createElement(yf.Z,{checked:Ql?Ju:!!Ho.length&&Gs,indeterminate:Ql?!Ju&&ws:!Gs&&Gc,onChange:Le,disabled:Ho.length===0||Ql,"aria-label":Sa?"Custom selection":"Select all",skipGroup:!0}),Sa)}let et;kt==="radio"?et=(Sa,_l,Ql)=>{const Ju=ba(_l,Ql),ws=su.has(Ju);return{node:w.createElement(sh.ZP,Object.assign({},or.get(Ju),{checked:ws,onClick:Ha=>Ha.stopPropagation(),onChange:Ha=>{su.has(Ju)||mc(Ju,!0,[Ju],Ha.nativeEvent)}})),checked:ws}}:et=(Sa,_l,Ql)=>{var Ju;const ws=ba(_l,Ql),Ha=su.has(ws),gr=Oa.has(ws),Ka=or.get(ws);let Ca;return aa==="nest"?Ca=gr:Ca=(Ju=Ka==null?void 0:Ka.indeterminate)!==null&&Ju!==void 0?Ju:gr,{node:w.createElement(yf.Z,Object.assign({},Ka,{indeterminate:Ca,checked:Ha,skipGroup:!0,onClick:Du=>Du.stopPropagation(),onChange:Du=>{let{nativeEvent:Wc}=Du;const{shiftKey:Qo}=Wc;let Do=-1,As=-1;if(Qo&&Br){const wa=new Set([_s,ws]);tu.some((ka,Fs)=>{if(wa.has(ka))if(Do===-1)Do=Fs;else return As=Fs,!0;return!1})}if(As!==-1&&Do!==As&&Br){const wa=tu.slice(Do,As+1),ka=[];Ha?wa.forEach(gs=>{su.has(gs)&&(ka.push(gs),su.delete(gs))}):wa.forEach(gs=>{su.has(gs)||(ka.push(gs),su.add(gs))});const Fs=Array.from(su);xr==null||xr(!Ha,Fs.map(gs=>Ws(gs)),ka.map(gs=>Ws(gs))),nl(Fs,"multiple")}else{const wa=vs;if(Br){const ka=Ha?td(wa,ws):Dp(wa,ws);mc(ws,!Ha,ka,Wc)}else{const ka=(0,$c.S)([].concat((0,qr.Z)(wa),[ws]),!0,la,eo),{checkedKeys:Fs,halfCheckedKeys:gs}=ka;let Xi=Fs;if(Ha){const sr=new Set(Fs);sr.delete(ws),Xi=(0,$c.S)(Array.from(sr),{checked:!1,halfCheckedKeys:gs},la,eo).checkedKeys}mc(ws,!Ha,Xi,Wc)}}wl(Ha?null:ws)}})),checked:Ha}};const hn=(Sa,_l,Ql)=>{const{node:Ju,checked:ws}=et(Sa,_l,Ql);return rr?rr(ws,_l,Ql,Ju):Ju};if(!$l.includes(vm))if($l.findIndex(Sa=>{var _l;return((_l=Sa[Un])===null||_l===void 0?void 0:_l.columnType)==="EXPAND_COLUMN"})===0){const[Sa,..._l]=$l;$l=[Sa,vm].concat((0,qr.Z)(_l))}else $l=[vm].concat((0,qr.Z)($l));const Lr=$l.indexOf(vm);$l=$l.filter((Sa,_l)=>Sa!==vm||_l===Lr);const Cn=$l[Lr-1],ei=$l[Lr+1];let Li=In;Li===void 0&&((ei==null?void 0:ei.fixed)!==void 0?Li=ei.fixed:(Cn==null?void 0:Cn.fixed)!==void 0&&(Li=Cn.fixed)),Li&&Cn&&((qu=Cn[Un])===null||qu===void 0?void 0:qu.columnType)==="EXPAND_COLUMN"&&Cn.fixed===void 0&&(Cn.fixed=Li);const ps=xe()(`${Ai}-selection-col`,{[`${Ai}-selection-col-with-dropdown`]:er&&kt==="checkbox"}),xa={fixed:Li,width:So,className:`${Ai}-selection-column`,title:mt.columnTitle||Me,render:hn,onCell:mt.onCell,[Un]:{className:ps}};return $l.map(Sa=>Sa===vm?xa:Sa)},[ba,Ho,mt,vs,Dl,Oa,So,fl,aa,_s,or,xr,mc,eo]),Dl]},$m={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},Zp=$m,k0=function(mt,Ft){return w.createElement(ja.Z,(0,S.Z)({},mt,{ref:Ft,icon:Zp}))},Sp=w.forwardRef(k0),Xf={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},Zh=Xf,a0=function(mt,Ft){return w.createElement(ja.Z,(0,S.Z)({},mt,{ref:Ft,icon:Zh}))},M0=w.forwardRef(a0),Kg=m(16175);const Wm="ascend",m0="descend";function Gm(Ye){return typeof Ye.sorter=="object"&&typeof Ye.sorter.multiple=="number"?Ye.sorter.multiple:!1}function $d(Ye){return typeof Ye=="function"?Ye:Ye&&typeof Ye=="object"&&Ye.compare?Ye.compare:!1}function K0(Ye,mt){return mt?Ye[Ye.indexOf(mt)+1]:Ye[0]}function Vg(Ye,mt,Ft){let Dt=[];function $t(Gt,Pr){Dt.push({column:Gt,key:Yd(Gt,Pr),multiplePriority:Gm(Gt),sortOrder:Gt.sortOrder})}return(Ye||[]).forEach((Gt,Pr)=>{const Dn=Ba(Pr,Ft);Gt.children?("sortOrder"in Gt&&$t(Gt,Dn),Dt=[].concat((0,qr.Z)(Dt),(0,qr.Z)(Vg(Gt.children,mt,Dn)))):Gt.sorter&&("sortOrder"in Gt?$t(Gt,Dn):mt&&Gt.defaultSortOrder&&Dt.push({column:Gt,key:Yd(Gt,Dn),multiplePriority:Gm(Gt),sortOrder:Gt.defaultSortOrder}))}),Dt}function e0(Ye,mt,Ft,Dt,$t,Gt,Pr,Dn){return(mt||[]).map((Sn,cn)=>{const Jn=Ba(cn,Dn);let xr=Sn;if(xr.sorter){const So=xr.sortDirections||$t,kt=xr.showSorterTooltip===void 0?Pr:xr.showSorterTooltip,er=Yd(xr,Jn),In=Ft.find(aa=>{let{key:Ps}=aa;return Ps===er}),rr=In?In.sortOrder:null,cr=K0(So,rr);let Br;if(Sn.sortIcon)Br=Sn.sortIcon({sortOrder:rr});else{const aa=So.includes(Wm)&&w.createElement(M0,{className:xe()(`${Ye}-column-sorter-up`,{active:rr===Wm})}),Ps=So.includes(m0)&&w.createElement(Sp,{className:xe()(`${Ye}-column-sorter-down`,{active:rr===m0})});Br=w.createElement("span",{className:xe()(`${Ye}-column-sorter`,{[`${Ye}-column-sorter-full`]:!!(aa&&Ps)})},w.createElement("span",{className:`${Ye}-column-sorter-inner`,"aria-hidden":"true"},aa,Ps))}const{cancelSort:Ai,triggerAsc:Ee,triggerDesc:Zo}=Gt||{};let Ws=Ai;cr===m0?Ws=Zo:cr===Wm&&(Ws=Ee);const ba=typeof kt=="object"?kt:{title:Ws};xr=Object.assign(Object.assign({},xr),{className:xe()(xr.className,{[`${Ye}-column-sort`]:rr}),title:aa=>{const Ps=w.createElement("div",{className:`${Ye}-column-sorters`},w.createElement("span",{className:`${Ye}-column-title`},ru(Sn.title,aa)),Br);return kt?w.createElement(Kg.Z,Object.assign({},ba),Ps):Ps},onHeaderCell:aa=>{const Ps=Sn.onHeaderCell&&Sn.onHeaderCell(aa)||{},ha=Ps.onClick,To=Ps.onKeyDown;Ps.onClick=Wi=>{Dt({column:Sn,key:er,sortOrder:cr,multiplePriority:Gm(Sn)}),ha==null||ha(Wi)},Ps.onKeyDown=Wi=>{Wi.keyCode===Vh.Z.ENTER&&(Dt({column:Sn,key:er,sortOrder:cr,multiplePriority:Gm(Sn)}),To==null||To(Wi))};const ir=zl(Sn.title,{}),bi=ir==null?void 0:ir.toString();return rr?Ps["aria-sort"]=rr==="ascend"?"ascending":"descending":Ps["aria-label"]=bi||"",Ps.className=xe()(Ps.className,`${Ye}-column-has-sorters`),Ps.tabIndex=0,Sn.ellipsis&&(Ps.title=(ir!=null?ir:"").toString()),Ps}})}return"children"in xr&&(xr=Object.assign(Object.assign({},xr),{children:e0(Ye,xr.children,Ft,Dt,$t,Gt,Pr,Jn)})),xr})}function ym(Ye){const{column:mt,sortOrder:Ft}=Ye;return{column:mt,order:Ft,field:mt.dataIndex,columnKey:mt.key}}function jm(Ye){const mt=Ye.filter(Ft=>{let{sortOrder:Dt}=Ft;return Dt}).map(ym);return mt.length===0&&Ye.length?Object.assign(Object.assign({},ym(Ye[Ye.length-1])),{column:void 0}):mt.length<=1?mt[0]||{}:mt}function yp(Ye,mt,Ft){const Dt=mt.slice().sort((Pr,Dn)=>Dn.multiplePriority-Pr.multiplePriority),$t=Ye.slice(),Gt=Dt.filter(Pr=>{let{column:{sorter:Dn},sortOrder:Sn}=Pr;return $d(Dn)&&Sn});return Gt.length?$t.sort((Pr,Dn)=>{for(let Sn=0;Sn{const Dn=Pr[Ft];return Dn?Object.assign(Object.assign({},Pr),{[Ft]:yp(Dn,mt,Ft)}):Pr}):$t}function sm(Ye){let{prefixCls:mt,mergedColumns:Ft,onSorterChange:Dt,sortDirections:$t,tableLocale:Gt,showSorterTooltip:Pr}=Ye;const[Dn,Sn]=w.useState(Vg(Ft,!0)),cn=w.useMemo(()=>{let er=!0;const In=Vg(Ft,!1);if(!In.length)return Dn;const rr=[];function cr(Ai){er?rr.push(Ai):rr.push(Object.assign(Object.assign({},Ai),{sortOrder:null}))}let Br=null;return In.forEach(Ai=>{Br===null?(cr(Ai),Ai.sortOrder&&(Ai.multiplePriority===!1?er=!1:Br=!0)):(Br&&Ai.multiplePriority!==!1||(er=!1),cr(Ai))}),rr},[Ft,Dn]),Jn=w.useMemo(()=>{const er=cn.map(In=>{let{column:rr,sortOrder:cr}=In;return{column:rr,order:cr}});return{sortColumns:er,sortColumn:er[0]&&er[0].column,sortOrder:er[0]&&er[0].order}},[cn]);function xr(er){let In;er.multiplePriority===!1||!cn.length||cn[0].multiplePriority===!1?In=[er]:In=[].concat((0,qr.Z)(cn.filter(rr=>{let{key:cr}=rr;return cr!==er.key})),[er]),Sn(In),Dt(jm(In),In)}return[er=>e0(mt,er,cn,xr,$t,Gt,Pr),cn,Jn,()=>jm(cn)]}function Km(Ye,mt){return Ye.map(Ft=>{const Dt=Object.assign({},Ft);return Dt.title=ru(Ft.title,mt),"children"in Dt&&(Dt.children=Km(Dt.children,mt)),Dt})}function Ip(Ye){return[w.useCallback(Ft=>Km(Ft,Ye),[Ye])]}var Pg=Vi((Ye,mt)=>{const{_renderTimes:Ft}=Ye,{_renderTimes:Dt}=mt;return Ft!==Dt}),de=ms((Ye,mt)=>{const{_renderTimes:Ft}=Ye,{_renderTimes:Dt}=mt;return Ft!==Dt}),H=m(64993),at=Ye=>{const{componentCls:mt}=Ye,Ft=`${Ye.lineWidth}px ${Ye.lineType} ${Ye.tableBorderColor}`,Dt=($t,Gt,Pr)=>({[`&${mt}-${$t}`]:{[`> ${mt}-container`]:{[`> ${mt}-content, > ${mt}-body`]:{[` > table > tbody > tr > th, > table > tbody > tr > td - `]:{[`> ${gt}-expanded-row-fixed`]:{margin:`-${Gt}px -${Pr+Ye.lineWidth}px`}}}}}});return{[`${gt}-wrapper`]:{[`${gt}${gt}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${gt}-title`]:{border:Ft,borderBottom:0},[`> ${gt}-container`]:{borderInlineStart:Ft,borderTop:Ft,[` - > ${gt}-content, - > ${gt}-header, - > ${gt}-body, - > ${gt}-summary + `]:{[`> ${mt}-expanded-row-fixed`]:{margin:`-${Gt}px -${Pr+Ye.lineWidth}px`}}}}}});return{[`${mt}-wrapper`]:{[`${mt}${mt}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${mt}-title`]:{border:Ft,borderBottom:0},[`> ${mt}-container`]:{borderInlineStart:Ft,borderTop:Ft,[` + > ${mt}-content, + > ${mt}-header, + > ${mt}-body, + > ${mt}-summary `]:{"> table":{[` > thead > tr > th, > thead > tr > td, @@ -7913,67 +7966,67 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter > thead > tr, > tbody > tr, > tfoot > tr - `]:{[`> ${gt}-cell-fix-right-first::after`]:{borderInlineEnd:Ft}},[` + `]:{[`> ${mt}-cell-fix-right-first::after`]:{borderInlineEnd:Ft}},[` > tbody > tr > th, > tbody > tr > td - `]:{[`> ${gt}-expanded-row-fixed`]:{margin:`-${Ye.tablePaddingVertical}px -${Ye.tablePaddingHorizontal+Ye.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:Ye.lineWidth,bottom:0,borderInlineEnd:Ft,content:'""'}}}}}},[`&${gt}-scroll-horizontal`]:{[`> ${gt}-container > ${gt}-body`]:{"> table > tbody":{[` - > tr${gt}-expanded-row, - > tr${gt}-placeholder - `]:{["> th, > td"]:{borderInlineEnd:0}}}}}},Dt("middle",Ye.tablePaddingVerticalMiddle,Ye.tablePaddingHorizontalMiddle)),Dt("small",Ye.tablePaddingVerticalSmall,Ye.tablePaddingHorizontalSmall)),{[`> ${gt}-footer`]:{border:Ft,borderTop:0}}),[`${gt}-cell`]:{[`${gt}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Ye.lineWidth}px 0 ${Ye.lineWidth}px ${Ye.tableHeaderBg}`}},[`${gt}-bordered ${gt}-cell-scrollbar`]:{borderInlineEnd:Ft}}}},rt=Ye=>{const{componentCls:gt}=Ye;return{[`${gt}-wrapper`]:{[`${gt}-cell-ellipsis`]:Object.assign(Object.assign({},Wd.vS),{wordBreak:"keep-all",[` - &${gt}-cell-fix-left-last, - &${gt}-cell-fix-right-first - `]:{overflow:"visible",[`${gt}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${gt}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},It=Ye=>{const{componentCls:gt}=Ye;return{[`${gt}-wrapper`]:{[`${gt}-tbody > tr${gt}-placeholder`]:{textAlign:"center",color:Ye.colorTextDisabled,[` + `]:{[`> ${mt}-expanded-row-fixed`]:{margin:`-${Ye.tablePaddingVertical}px -${Ye.tablePaddingHorizontal+Ye.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:Ye.lineWidth,bottom:0,borderInlineEnd:Ft,content:'""'}}}}}},[`&${mt}-scroll-horizontal`]:{[`> ${mt}-container > ${mt}-body`]:{"> table > tbody":{[` + > tr${mt}-expanded-row, + > tr${mt}-placeholder + `]:{["> th, > td"]:{borderInlineEnd:0}}}}}},Dt("middle",Ye.tablePaddingVerticalMiddle,Ye.tablePaddingHorizontalMiddle)),Dt("small",Ye.tablePaddingVerticalSmall,Ye.tablePaddingHorizontalSmall)),{[`> ${mt}-footer`]:{border:Ft,borderTop:0}}),[`${mt}-cell`]:{[`${mt}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Ye.lineWidth}px 0 ${Ye.lineWidth}px ${Ye.tableHeaderBg}`}},[`${mt}-bordered ${mt}-cell-scrollbar`]:{borderInlineEnd:Ft}}}},rt=Ye=>{const{componentCls:mt}=Ye;return{[`${mt}-wrapper`]:{[`${mt}-cell-ellipsis`]:Object.assign(Object.assign({},jd.vS),{wordBreak:"keep-all",[` + &${mt}-cell-fix-left-last, + &${mt}-cell-fix-right-first + `]:{overflow:"visible",[`${mt}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${mt}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},It=Ye=>{const{componentCls:mt}=Ye;return{[`${mt}-wrapper`]:{[`${mt}-tbody > tr${mt}-placeholder`]:{textAlign:"center",color:Ye.colorTextDisabled,[` &:hover > th, &:hover > td, - `]:{background:Ye.colorBgContainer}}}}},Ut=m(49867),Xt=Ye=>{const{componentCls:gt,antCls:Ft,controlInteractiveSize:Dt,motionDurationSlow:$t,lineWidth:Gt,paddingXS:Pr,lineType:Tn,tableBorderColor:Sn,tableExpandIconBg:cn,tableExpandColumnWidth:qn,borderRadius:br,fontSize:So,fontSizeSM:kt,lineHeight:er,tablePaddingVertical:An,tablePaddingHorizontal:rr,tableExpandedRowBg:cr,paddingXXS:Br}=Ye,Ai=Dt/2-Gt,De=Ai*2+Gt*3,Zo=`${Gt}px ${Tn} ${Sn}`,js=Br-Gt;return{[`${gt}-wrapper`]:{[`${gt}-expand-icon-col`]:{width:qn},[`${gt}-row-expand-icon-cell`]:{textAlign:"center",[`${gt}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${gt}-row-indent`]:{height:1,float:"left"},[`${gt}-row-expand-icon`]:Object.assign(Object.assign({},(0,Ut.N)(Ye)),{position:"relative",float:"left",boxSizing:"border-box",width:De,height:De,padding:0,color:"inherit",lineHeight:`${De}px`,background:cn,border:Zo,borderRadius:br,transform:`scale(${Dt/De})`,transition:`all ${$t}`,userSelect:"none",["&:focus, &:hover, &:active"]:{borderColor:"currentcolor"},["&::before, &::after"]:{position:"absolute",background:"currentcolor",transition:`transform ${$t} ease-out`,content:'""'},"&::before":{top:Ai,insetInlineEnd:js,insetInlineStart:js,height:Gt},"&::after":{top:js,bottom:js,insetInlineStart:Ai,width:Gt,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${gt}-row-indent + ${gt}-row-expand-icon`]:{marginTop:(So*er-Gt*3)/2-Math.ceil((kt*1.4-Gt*3)/2),marginInlineEnd:Pr},[`tr${gt}-expanded-row`]:{"&, &:hover":{["> th, > td"]:{background:cr}},[`${Ft}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${gt}-expanded-row-fixed`]:{position:"relative",margin:`-${An}px -${rr}px`,padding:`${An}px ${rr}px`}}}},mn=Ye=>{const{componentCls:gt,antCls:Ft,iconCls:Dt,tableFilterDropdownWidth:$t,tableFilterDropdownSearchWidth:Gt,paddingXXS:Pr,paddingXS:Tn,colorText:Sn,lineWidth:cn,lineType:qn,tableBorderColor:br,tableHeaderIconColor:So,fontSizeSM:kt,tablePaddingHorizontal:er,borderRadius:An,motionDurationSlow:rr,colorTextDescription:cr,colorPrimary:Br,tableHeaderFilterActiveBg:Ai,colorTextDisabled:De,tableFilterDropdownBg:Zo,tableFilterDropdownHeight:js,controlItemBgHover:ba,controlItemBgActive:sa,boxShadowSecondary:Ps,filterDropdownMenuBg:ha}=Ye,To=`${Ft}-dropdown`,ir=`${gt}-filter-dropdown`,xi=`${Ft}-tree`,ji=`${cn}px ${qn} ${br}`;return[{[`${gt}-wrapper`]:{[`${gt}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${gt}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Pr,marginInline:`${Pr}px ${-er/2}px`,padding:`0 ${Pr}px`,color:So,fontSize:kt,borderRadius:An,cursor:"pointer",transition:`all ${rr}`,"&:hover":{color:cr,background:Ai},"&.active":{color:Br}}}},{[`${Ft}-dropdown`]:{[ir]:Object.assign(Object.assign({},(0,Wd.Wf)(Ye)),{minWidth:$t,backgroundColor:Zo,borderRadius:An,boxShadow:Ps,overflow:"hidden",[`${To}-menu`]:{maxHeight:js,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:ha,"&:empty::after":{display:"block",padding:`${Tn}px 0`,color:De,fontSize:kt,textAlign:"center",content:'"Not Found"'}},[`${ir}-tree`]:{paddingBlock:`${Tn}px 0`,paddingInline:Tn,[xi]:{padding:0},[`${xi}-treenode ${xi}-node-content-wrapper:hover`]:{backgroundColor:ba},[`${xi}-treenode-checkbox-checked ${xi}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:sa}}},[`${ir}-search`]:{padding:Tn,borderBottom:ji,"&-input":{input:{minWidth:Gt},[Dt]:{color:De}}},[`${ir}-checkall`]:{width:"100%",marginBottom:Pr,marginInlineStart:Pr},[`${ir}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Tn-cn}px ${Tn}px`,overflow:"hidden",borderTop:ji}})}},{[`${Ft}-dropdown ${ir}, ${ir}-submenu`]:{[`${Ft}-checkbox-wrapper + span`]:{paddingInlineStart:Tn,color:Sn},["> ul"]:{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},lr=Ye=>{const{componentCls:gt,lineWidth:Ft,colorSplit:Dt,motionDurationSlow:$t,zIndexTableFixed:Gt,tableBg:Pr,zIndexTableSticky:Tn}=Ye,Sn=Dt;return{[`${gt}-wrapper`]:{[` - ${gt}-cell-fix-left, - ${gt}-cell-fix-right + `]:{background:Ye.colorBgContainer}}}}},Ut=m(24967),Xt=Ye=>{const{componentCls:mt,antCls:Ft,controlInteractiveSize:Dt,motionDurationSlow:$t,lineWidth:Gt,paddingXS:Pr,lineType:Dn,tableBorderColor:Sn,tableExpandIconBg:cn,tableExpandColumnWidth:Jn,borderRadius:xr,fontSize:So,fontSizeSM:kt,lineHeight:er,tablePaddingVertical:In,tablePaddingHorizontal:rr,tableExpandedRowBg:cr,paddingXXS:Br}=Ye,Ai=Dt/2-Gt,Ee=Ai*2+Gt*3,Zo=`${Gt}px ${Dn} ${Sn}`,Ws=Br-Gt;return{[`${mt}-wrapper`]:{[`${mt}-expand-icon-col`]:{width:Jn},[`${mt}-row-expand-icon-cell`]:{textAlign:"center",[`${mt}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${mt}-row-indent`]:{height:1,float:"left"},[`${mt}-row-expand-icon`]:Object.assign(Object.assign({},(0,Ut.N)(Ye)),{position:"relative",float:"left",boxSizing:"border-box",width:Ee,height:Ee,padding:0,color:"inherit",lineHeight:`${Ee}px`,background:cn,border:Zo,borderRadius:xr,transform:`scale(${Dt/Ee})`,transition:`all ${$t}`,userSelect:"none",["&:focus, &:hover, &:active"]:{borderColor:"currentcolor"},["&::before, &::after"]:{position:"absolute",background:"currentcolor",transition:`transform ${$t} ease-out`,content:'""'},"&::before":{top:Ai,insetInlineEnd:Ws,insetInlineStart:Ws,height:Gt},"&::after":{top:Ws,bottom:Ws,insetInlineStart:Ai,width:Gt,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${mt}-row-indent + ${mt}-row-expand-icon`]:{marginTop:(So*er-Gt*3)/2-Math.ceil((kt*1.4-Gt*3)/2),marginInlineEnd:Pr},[`tr${mt}-expanded-row`]:{"&, &:hover":{["> th, > td"]:{background:cr}},[`${Ft}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${mt}-expanded-row-fixed`]:{position:"relative",margin:`-${In}px -${rr}px`,padding:`${In}px ${rr}px`}}}},mn=Ye=>{const{componentCls:mt,antCls:Ft,iconCls:Dt,tableFilterDropdownWidth:$t,tableFilterDropdownSearchWidth:Gt,paddingXXS:Pr,paddingXS:Dn,colorText:Sn,lineWidth:cn,lineType:Jn,tableBorderColor:xr,tableHeaderIconColor:So,fontSizeSM:kt,tablePaddingHorizontal:er,borderRadius:In,motionDurationSlow:rr,colorTextDescription:cr,colorPrimary:Br,tableHeaderFilterActiveBg:Ai,colorTextDisabled:Ee,tableFilterDropdownBg:Zo,tableFilterDropdownHeight:Ws,controlItemBgHover:ba,controlItemBgActive:aa,boxShadowSecondary:Ps,filterDropdownMenuBg:ha}=Ye,To=`${Ft}-dropdown`,ir=`${mt}-filter-dropdown`,bi=`${Ft}-tree`,Wi=`${cn}px ${Jn} ${xr}`;return[{[`${mt}-wrapper`]:{[`${mt}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${mt}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Pr,marginInline:`${Pr}px ${-er/2}px`,padding:`0 ${Pr}px`,color:So,fontSize:kt,borderRadius:In,cursor:"pointer",transition:`all ${rr}`,"&:hover":{color:cr,background:Ai},"&.active":{color:Br}}}},{[`${Ft}-dropdown`]:{[ir]:Object.assign(Object.assign({},(0,jd.Wf)(Ye)),{minWidth:$t,backgroundColor:Zo,borderRadius:In,boxShadow:Ps,overflow:"hidden",[`${To}-menu`]:{maxHeight:Ws,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:ha,"&:empty::after":{display:"block",padding:`${Dn}px 0`,color:Ee,fontSize:kt,textAlign:"center",content:'"Not Found"'}},[`${ir}-tree`]:{paddingBlock:`${Dn}px 0`,paddingInline:Dn,[bi]:{padding:0},[`${bi}-treenode ${bi}-node-content-wrapper:hover`]:{backgroundColor:ba},[`${bi}-treenode-checkbox-checked ${bi}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:aa}}},[`${ir}-search`]:{padding:Dn,borderBottom:Wi,"&-input":{input:{minWidth:Gt},[Dt]:{color:Ee}}},[`${ir}-checkall`]:{width:"100%",marginBottom:Pr,marginInlineStart:Pr},[`${ir}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Dn-cn}px ${Dn}px`,overflow:"hidden",borderTop:Wi}})}},{[`${Ft}-dropdown ${ir}, ${ir}-submenu`]:{[`${Ft}-checkbox-wrapper + span`]:{paddingInlineStart:Dn,color:Sn},["> ul"]:{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},lr=Ye=>{const{componentCls:mt,lineWidth:Ft,colorSplit:Dt,motionDurationSlow:$t,zIndexTableFixed:Gt,tableBg:Pr,zIndexTableSticky:Dn}=Ye,Sn=Dt;return{[`${mt}-wrapper`]:{[` + ${mt}-cell-fix-left, + ${mt}-cell-fix-right `]:{position:"sticky !important",zIndex:Gt,background:Pr},[` - ${gt}-cell-fix-left-first::after, - ${gt}-cell-fix-left-last::after - `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Ft,width:30,transform:"translateX(100%)",transition:`box-shadow ${$t}`,content:'""',pointerEvents:"none"},[`${gt}-cell-fix-left-all::after`]:{display:"none"},[` - ${gt}-cell-fix-right-first::after, - ${gt}-cell-fix-right-last::after - `]:{position:"absolute",top:0,bottom:-Ft,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${$t}`,content:'""',pointerEvents:"none"},[`${gt}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Tn+1,width:30,transition:`box-shadow ${$t}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${gt}-ping-left`]:{[`&:not(${gt}-has-fix-left) ${gt}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${Sn}`}},[` - ${gt}-cell-fix-left-first::after, - ${gt}-cell-fix-left-last::after - `]:{boxShadow:`inset 10px 0 8px -8px ${Sn}`},[`${gt}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${gt}-ping-right`]:{[`&:not(${gt}-has-fix-right) ${gt}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${Sn}`}},[` - ${gt}-cell-fix-right-first::after, - ${gt}-cell-fix-right-last::after - `]:{boxShadow:`inset -10px 0 8px -8px ${Sn}`}}}}},$r=Ye=>{const{componentCls:gt,antCls:Ft}=Ye;return{[`${gt}-wrapper`]:{[`${gt}-pagination${Ft}-pagination`]:{margin:`${Ye.margin}px 0`},[`${gt}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:Ye.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},nr=Ye=>{const{componentCls:gt,tableRadius:Ft}=Ye;return{[`${gt}-wrapper`]:{[gt]:{[`${gt}-title, ${gt}-header`]:{borderRadius:`${Ft}px ${Ft}px 0 0`},[`${gt}-title + ${gt}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${gt}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:Ft,borderStartEndRadius:Ft,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Ft},"> *:last-child":{borderStartEndRadius:Ft}}},"&-footer":{borderRadius:`0 0 ${Ft}px ${Ft}px`}}}}},Xr=Ye=>{const{componentCls:gt}=Ye;return{[`${gt}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${gt}-pagination-left`]:{justifyContent:"flex-end"},[`${gt}-pagination-right`]:{justifyContent:"flex-start"},[`${gt}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${gt}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${gt}-row-indent`]:{float:"right"}}}}},mo=Ye=>{const{componentCls:gt,antCls:Ft,iconCls:Dt,fontSizeIcon:$t,padding:Gt,paddingXS:Pr,tableHeaderIconColor:Tn,tableHeaderIconColorHover:Sn,tableSelectionColumnWidth:cn,tableSelectedRowBg:qn,tableSelectedRowHoverBg:br,tableRowHoverBg:So}=Ye;return{[`${gt}-wrapper`]:{[`${gt}-selection-col`]:{width:cn,[`&${gt}-selection-col-with-dropdown`]:{width:cn+$t+Gt/4}},[`${gt}-bordered ${gt}-selection-col`]:{width:cn+Pr*2,[`&${gt}-selection-col-with-dropdown`]:{width:cn+$t+Gt/4+Pr*2}},[` - table tr th${gt}-selection-column, - table tr td${gt}-selection-column, - ${gt}-selection-column - `]:{paddingInlineEnd:Ye.paddingXS,paddingInlineStart:Ye.paddingXS,textAlign:"center",[`${Ft}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${gt}-selection-column${gt}-cell-fix-left`]:{zIndex:Ye.zIndexTableFixed+1},[`table tr th${gt}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${gt}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${gt}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${Ye.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${Ye.tablePaddingHorizontal/4}px`,[Dt]:{color:Tn,fontSize:$t,verticalAlign:"baseline","&:hover":{color:Sn}}},[`${gt}-tbody`]:{[`${gt}-row`]:{[`&${gt}-row-selected`]:{[`> ${gt}-cell`]:{background:qn,"&-row-hover":{background:br}}},[`> ${gt}-cell-row-hover`]:{background:So}}}}}},uo=Ye=>{const{componentCls:gt}=Ye,Ft=(Dt,$t,Gt,Pr)=>({[`${gt}${gt}-${Dt}`]:{fontSize:Pr,[` - ${gt}-title, - ${gt}-footer, - ${gt}-cell, - ${gt}-thead > tr > th, - ${gt}-tbody > tr > th, - ${gt}-tbody > tr > td, + ${mt}-cell-fix-left-first::after, + ${mt}-cell-fix-left-last::after + `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Ft,width:30,transform:"translateX(100%)",transition:`box-shadow ${$t}`,content:'""',pointerEvents:"none"},[`${mt}-cell-fix-left-all::after`]:{display:"none"},[` + ${mt}-cell-fix-right-first::after, + ${mt}-cell-fix-right-last::after + `]:{position:"absolute",top:0,bottom:-Ft,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${$t}`,content:'""',pointerEvents:"none"},[`${mt}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Dn+1,width:30,transition:`box-shadow ${$t}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${mt}-ping-left`]:{[`&:not(${mt}-has-fix-left) ${mt}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${Sn}`}},[` + ${mt}-cell-fix-left-first::after, + ${mt}-cell-fix-left-last::after + `]:{boxShadow:`inset 10px 0 8px -8px ${Sn}`},[`${mt}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${mt}-ping-right`]:{[`&:not(${mt}-has-fix-right) ${mt}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${Sn}`}},[` + ${mt}-cell-fix-right-first::after, + ${mt}-cell-fix-right-last::after + `]:{boxShadow:`inset -10px 0 8px -8px ${Sn}`}}}}},$r=Ye=>{const{componentCls:mt,antCls:Ft}=Ye;return{[`${mt}-wrapper`]:{[`${mt}-pagination${Ft}-pagination`]:{margin:`${Ye.margin}px 0`},[`${mt}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:Ye.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},nr=Ye=>{const{componentCls:mt,tableRadius:Ft}=Ye;return{[`${mt}-wrapper`]:{[mt]:{[`${mt}-title, ${mt}-header`]:{borderRadius:`${Ft}px ${Ft}px 0 0`},[`${mt}-title + ${mt}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${mt}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:Ft,borderStartEndRadius:Ft,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Ft},"> *:last-child":{borderStartEndRadius:Ft}}},"&-footer":{borderRadius:`0 0 ${Ft}px ${Ft}px`}}}}},Xr=Ye=>{const{componentCls:mt}=Ye;return{[`${mt}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${mt}-pagination-left`]:{justifyContent:"flex-end"},[`${mt}-pagination-right`]:{justifyContent:"flex-start"},[`${mt}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${mt}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${mt}-row-indent`]:{float:"right"}}}}},mo=Ye=>{const{componentCls:mt,antCls:Ft,iconCls:Dt,fontSizeIcon:$t,padding:Gt,paddingXS:Pr,tableHeaderIconColor:Dn,tableHeaderIconColorHover:Sn,tableSelectionColumnWidth:cn,tableSelectedRowBg:Jn,tableSelectedRowHoverBg:xr,tableRowHoverBg:So}=Ye;return{[`${mt}-wrapper`]:{[`${mt}-selection-col`]:{width:cn,[`&${mt}-selection-col-with-dropdown`]:{width:cn+$t+Gt/4}},[`${mt}-bordered ${mt}-selection-col`]:{width:cn+Pr*2,[`&${mt}-selection-col-with-dropdown`]:{width:cn+$t+Gt/4+Pr*2}},[` + table tr th${mt}-selection-column, + table tr td${mt}-selection-column, + ${mt}-selection-column + `]:{paddingInlineEnd:Ye.paddingXS,paddingInlineStart:Ye.paddingXS,textAlign:"center",[`${Ft}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${mt}-selection-column${mt}-cell-fix-left`]:{zIndex:Ye.zIndexTableFixed+1},[`table tr th${mt}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${mt}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${mt}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${Ye.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${Ye.tablePaddingHorizontal/4}px`,[Dt]:{color:Dn,fontSize:$t,verticalAlign:"baseline","&:hover":{color:Sn}}},[`${mt}-tbody`]:{[`${mt}-row`]:{[`&${mt}-row-selected`]:{[`> ${mt}-cell`]:{background:Jn,"&-row-hover":{background:xr}}},[`> ${mt}-cell-row-hover`]:{background:So}}}}}},uo=Ye=>{const{componentCls:mt}=Ye,Ft=(Dt,$t,Gt,Pr)=>({[`${mt}${mt}-${Dt}`]:{fontSize:Pr,[` + ${mt}-title, + ${mt}-footer, + ${mt}-cell, + ${mt}-thead > tr > th, + ${mt}-tbody > tr > th, + ${mt}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td - `]:{padding:`${$t}px ${Gt}px`},[`${gt}-filter-trigger`]:{marginInlineEnd:`-${Gt/2}px`},[`${gt}-expanded-row-fixed`]:{margin:`-${$t}px -${Gt}px`},[`${gt}-tbody`]:{[`${gt}-wrapper:only-child ${gt}`]:{marginBlock:`-${$t}px`,marginInline:`${Ye.tableExpandColumnWidth-Gt}px -${Gt}px`}},[`${gt}-selection-extra`]:{paddingInlineStart:`${Gt/4}px`}}});return{[`${gt}-wrapper`]:Object.assign(Object.assign({},Ft("middle",Ye.tablePaddingVerticalMiddle,Ye.tablePaddingHorizontalMiddle,Ye.tableFontSizeMiddle)),Ft("small",Ye.tablePaddingVerticalSmall,Ye.tablePaddingHorizontalSmall,Ye.tableFontSizeSmall))}},Eo=Ye=>{const{componentCls:gt,marginXXS:Ft,fontSizeIcon:Dt,tableHeaderIconColor:$t,tableHeaderIconColorHover:Gt}=Ye;return{[`${gt}-wrapper`]:{[`${gt}-thead th${gt}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${Ye.motionDurationSlow}`,"&:hover":{background:Ye.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:Ye.colorPrimary},[` - &${gt}-cell-fix-left:hover, - &${gt}-cell-fix-right:hover - `]:{background:Ye.tableFixedHeaderSortActiveBg}},[`${gt}-thead th${gt}-column-sort`]:{background:Ye.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${gt}-column-sort`]:{background:Ye.tableBodySortBg},[`${gt}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${gt}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${gt}-column-sorter`]:{marginInlineStart:Ft,color:$t,fontSize:0,transition:`color ${Ye.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Dt,"&.active":{color:Ye.colorPrimary}},[`${gt}-column-sorter-up + ${gt}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${gt}-column-sorters:hover ${gt}-column-sorter`]:{color:Gt}}}},Rs=Ye=>{const{componentCls:gt,opacityLoading:Ft,tableScrollThumbBg:Dt,tableScrollThumbBgHover:$t,tableScrollThumbSize:Gt,tableScrollBg:Pr,zIndexTableSticky:Tn,stickyScrollBarBorderRadius:Sn}=Ye,cn=`${Ye.lineWidth}px ${Ye.lineType} ${Ye.tableBorderColor}`;return{[`${gt}-wrapper`]:{[`${gt}-sticky`]:{"&-holder":{position:"sticky",zIndex:Tn,background:Ye.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Gt}px !important`,zIndex:Tn,display:"flex",alignItems:"center",background:Pr,borderTop:cn,opacity:Ft,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Gt,backgroundColor:Dt,borderRadius:Sn,transition:`all ${Ye.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:$t}}}}}}},Ii=Ye=>{const{componentCls:gt,lineWidth:Ft,tableBorderColor:Dt}=Ye,$t=`${Ft}px ${Ye.lineType} ${Dt}`;return{[`${gt}-wrapper`]:{[`${gt}-summary`]:{position:"relative",zIndex:Ye.zIndexTableFixed,background:Ye.tableBg,"> tr":{"> th, > td":{borderBottom:$t}}},[`div${gt}-summary`]:{boxShadow:`0 -${Ft}px 0 ${Dt}`}}}},ai=Ye=>{const{componentCls:gt,motionDurationMid:Ft}=Ye,Dt=`${Ye.lineWidth}px ${Ye.lineType} ${Ye.tableBorderColor}`,$t=`${gt}-expanded-row-cell`;return{[`${gt}-wrapper`]:{[`${gt}-tbody-virtual`]:{[`${gt}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${gt}-cell`]:{borderBottom:Dt,transition:`background ${Ft}`},[`${gt}-expanded-row`]:{[`${$t}${$t}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${Ye.lineWidth}px)`,borderInlineEnd:"none"}}},[`${gt}-bordered`]:{[`${gt}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Dt,position:"absolute"},[`${gt}-cell`]:{borderInlineEnd:Dt,[`&${gt}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-Ye.lineWidth,borderInlineStart:Dt}}},[`&${gt}-virtual`]:{[`${gt}-placeholder ${gt}-cell`]:{borderInlineEnd:Dt,borderBottom:Dt}}}}}};const Un=Ye=>{const{componentCls:gt,fontWeightStrong:Ft,tablePaddingVertical:Dt,tablePaddingHorizontal:$t,lineWidth:Gt,lineType:Pr,tableBorderColor:Tn,tableFontSize:Sn,tableBg:cn,tableRadius:qn,tableHeaderTextColor:br,motionDurationMid:So,tableHeaderBg:kt,tableHeaderCellSplitColor:er,tableFooterTextColor:An,tableFooterBg:rr}=Ye,cr=`${Gt}px ${Pr} ${Tn}`;return{[`${gt}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Wd.dF)()),{[gt]:Object.assign(Object.assign({},(0,Wd.Wf)(Ye)),{fontSize:Sn,background:cn,borderRadius:`${qn}px ${qn}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${qn}px ${qn}px 0 0`,borderCollapse:"separate",borderSpacing:0},[` - ${gt}-cell, - ${gt}-thead > tr > th, - ${gt}-tbody > tr > th, - ${gt}-tbody > tr > td, + `]:{padding:`${$t}px ${Gt}px`},[`${mt}-filter-trigger`]:{marginInlineEnd:`-${Gt/2}px`},[`${mt}-expanded-row-fixed`]:{margin:`-${$t}px -${Gt}px`},[`${mt}-tbody`]:{[`${mt}-wrapper:only-child ${mt}`]:{marginBlock:`-${$t}px`,marginInline:`${Ye.tableExpandColumnWidth-Gt}px -${Gt}px`}},[`${mt}-selection-extra`]:{paddingInlineStart:`${Gt/4}px`}}});return{[`${mt}-wrapper`]:Object.assign(Object.assign({},Ft("middle",Ye.tablePaddingVerticalMiddle,Ye.tablePaddingHorizontalMiddle,Ye.tableFontSizeMiddle)),Ft("small",Ye.tablePaddingVerticalSmall,Ye.tablePaddingHorizontalSmall,Ye.tableFontSizeSmall))}},Eo=Ye=>{const{componentCls:mt,marginXXS:Ft,fontSizeIcon:Dt,tableHeaderIconColor:$t,tableHeaderIconColorHover:Gt}=Ye;return{[`${mt}-wrapper`]:{[`${mt}-thead th${mt}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${Ye.motionDurationSlow}`,"&:hover":{background:Ye.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:Ye.colorPrimary},[` + &${mt}-cell-fix-left:hover, + &${mt}-cell-fix-right:hover + `]:{background:Ye.tableFixedHeaderSortActiveBg}},[`${mt}-thead th${mt}-column-sort`]:{background:Ye.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${mt}-column-sort`]:{background:Ye.tableBodySortBg},[`${mt}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${mt}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${mt}-column-sorter`]:{marginInlineStart:Ft,color:$t,fontSize:0,transition:`color ${Ye.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Dt,"&.active":{color:Ye.colorPrimary}},[`${mt}-column-sorter-up + ${mt}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${mt}-column-sorters:hover ${mt}-column-sorter`]:{color:Gt}}}},Rs=Ye=>{const{componentCls:mt,opacityLoading:Ft,tableScrollThumbBg:Dt,tableScrollThumbBgHover:$t,tableScrollThumbSize:Gt,tableScrollBg:Pr,zIndexTableSticky:Dn,stickyScrollBarBorderRadius:Sn}=Ye,cn=`${Ye.lineWidth}px ${Ye.lineType} ${Ye.tableBorderColor}`;return{[`${mt}-wrapper`]:{[`${mt}-sticky`]:{"&-holder":{position:"sticky",zIndex:Dn,background:Ye.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Gt}px !important`,zIndex:Dn,display:"flex",alignItems:"center",background:Pr,borderTop:cn,opacity:Ft,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Gt,backgroundColor:Dt,borderRadius:Sn,transition:`all ${Ye.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:$t}}}}}}},Ii=Ye=>{const{componentCls:mt,lineWidth:Ft,tableBorderColor:Dt}=Ye,$t=`${Ft}px ${Ye.lineType} ${Dt}`;return{[`${mt}-wrapper`]:{[`${mt}-summary`]:{position:"relative",zIndex:Ye.zIndexTableFixed,background:Ye.tableBg,"> tr":{"> th, > td":{borderBottom:$t}}},[`div${mt}-summary`]:{boxShadow:`0 -${Ft}px 0 ${Dt}`}}}},ai=Ye=>{const{componentCls:mt,motionDurationMid:Ft}=Ye,Dt=`${Ye.lineWidth}px ${Ye.lineType} ${Ye.tableBorderColor}`,$t=`${mt}-expanded-row-cell`;return{[`${mt}-wrapper`]:{[`${mt}-tbody-virtual`]:{[`${mt}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${mt}-cell`]:{borderBottom:Dt,transition:`background ${Ft}`},[`${mt}-expanded-row`]:{[`${$t}${$t}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${Ye.lineWidth}px)`,borderInlineEnd:"none"}}},[`${mt}-bordered`]:{[`${mt}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Dt,position:"absolute"},[`${mt}-cell`]:{borderInlineEnd:Dt,[`&${mt}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-Ye.lineWidth,borderInlineStart:Dt}}},[`&${mt}-virtual`]:{[`${mt}-placeholder ${mt}-cell`]:{borderInlineEnd:Dt,borderBottom:Dt}}}}}};const Hn=Ye=>{const{componentCls:mt,fontWeightStrong:Ft,tablePaddingVertical:Dt,tablePaddingHorizontal:$t,lineWidth:Gt,lineType:Pr,tableBorderColor:Dn,tableFontSize:Sn,tableBg:cn,tableRadius:Jn,tableHeaderTextColor:xr,motionDurationMid:So,tableHeaderBg:kt,tableHeaderCellSplitColor:er,tableFooterTextColor:In,tableFooterBg:rr}=Ye,cr=`${Gt}px ${Pr} ${Dn}`;return{[`${mt}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,jd.dF)()),{[mt]:Object.assign(Object.assign({},(0,jd.Wf)(Ye)),{fontSize:Sn,background:cn,borderRadius:`${Jn}px ${Jn}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${Jn}px ${Jn}px 0 0`,borderCollapse:"separate",borderSpacing:0},[` + ${mt}-cell, + ${mt}-thead > tr > th, + ${mt}-tbody > tr > th, + ${mt}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td - `]:{position:"relative",padding:`${Dt}px ${$t}px`,overflowWrap:"break-word"},[`${gt}-title`]:{padding:`${Dt}px ${$t}px`},[`${gt}-thead`]:{[` + `]:{position:"relative",padding:`${Dt}px ${$t}px`,overflowWrap:"break-word"},[`${mt}-title`]:{padding:`${Dt}px ${$t}px`},[`${mt}-thead`]:{[` > tr > th, > tr > td - `]:{position:"relative",color:br,fontWeight:Ft,textAlign:"start",background:kt,borderBottom:cr,transition:`background ${So} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${gt}-selection-column):not(${gt}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:er,transform:"translateY(-50%)",transition:`background-color ${So}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${gt}-tbody`]:{"> tr":{["> th, > td"]:{transition:`background ${So}, border-color ${So}`,borderBottom:cr,[` - > ${gt}-wrapper:only-child, - > ${gt}-expanded-row-fixed > ${gt}-wrapper:only-child - `]:{[gt]:{marginBlock:`-${Dt}px`,marginInline:`${Ye.tableExpandColumnWidth-$t}px -${$t}px`,[`${gt}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:br,fontWeight:Ft,textAlign:"start",background:kt,borderBottom:cr,transition:`background ${So} ease`}}},[`${gt}-footer`]:{padding:`${Dt}px ${$t}px`,color:An,background:rr}})}};var jr=(0,yh.Z)("Table",Ye=>{const{colorTextHeading:gt,colorSplit:Ft,colorIcon:Dt,colorIconHover:$t,opacityLoading:Gt,colorBgContainer:Pr,controlInteractiveSize:Tn,headerBg:Sn,headerColor:cn,headerSortActiveBg:qn,headerSortHoverBg:br,bodySortBg:So,rowHoverBg:kt,rowSelectedBg:er,rowSelectedHoverBg:An,rowExpandedBg:rr,cellPaddingBlock:cr,cellPaddingInline:Br,cellPaddingBlockMD:Ai,cellPaddingInlineMD:De,cellPaddingBlockSM:Zo,cellPaddingInlineSM:js,borderColor:ba,footerBg:sa,footerColor:Ps,headerBorderRadius:ha,cellFontSize:To,cellFontSizeMD:ir,cellFontSizeSM:xi,headerSplitColor:ji,fixedHeaderSortActiveBg:is,headerFilterHoverBg:Ds,filterDropdownBg:aa,expandIconBg:Ho,selectionColumnWidth:or,stickyScrollBarBg:eo}=Ye,vs=new H.C(Dt),ul=new H.C($t),Dl=2,Oa=(0,id.TS)(Ye,{tableFontSize:To,tableBg:Pr,tableRadius:ha,tablePaddingVertical:cr,tablePaddingHorizontal:Br,tablePaddingVerticalMiddle:Ai,tablePaddingHorizontalMiddle:De,tablePaddingVerticalSmall:Zo,tablePaddingHorizontalSmall:js,tableBorderColor:ba,tableHeaderTextColor:cn,tableHeaderBg:Sn,tableFooterTextColor:Ps,tableFooterBg:sa,tableHeaderCellSplitColor:ji,tableHeaderSortBg:qn,tableHeaderSortHoverBg:br,tableHeaderIconColor:vs.clone().setAlpha(vs.getAlpha()*Gt).toRgbString(),tableHeaderIconColorHover:ul.clone().setAlpha(ul.getAlpha()*Gt).toRgbString(),tableBodySortBg:So,tableFixedHeaderSortActiveBg:is,tableHeaderFilterActiveBg:Ds,tableFilterDropdownBg:aa,tableRowHoverBg:kt,tableSelectedRowBg:er,tableSelectedRowHoverBg:An,zIndexTableFixed:Dl,zIndexTableSticky:Dl+1,tableFontSizeMiddle:ir,tableFontSizeSmall:xi,tableSelectionColumnWidth:or,tableExpandIconBg:Ho,tableExpandColumnWidth:Tn+2*Ye.padding,tableExpandedRowBg:rr,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:eo,tableScrollThumbBgHover:gt,tableScrollBg:Ft});return[Un(Oa),$r(Oa),Ii(Oa),Eo(Oa),mn(Oa),at(Oa),nr(Oa),Xt(Oa),Ii(Oa),It(Oa),mo(Oa),lr(Oa),Rs(Oa),rt(Oa),uo(Oa),Xr(Oa),ai(Oa)]},Ye=>{const{colorFillAlter:gt,colorBgContainer:Ft,colorTextHeading:Dt,colorFillSecondary:$t,colorFillContent:Gt,controlItemBgActive:Pr,controlItemBgActiveHover:Tn,padding:Sn,paddingSM:cn,paddingXS:qn,colorBorderSecondary:br,borderRadiusLG:So,fontSize:kt,controlHeight:er,colorTextPlaceholder:An}=Ye,rr=new H.C($t).onBackground(Ft).toHexShortString(),cr=new H.C(Gt).onBackground(Ft).toHexShortString(),Br=new H.C(gt).onBackground(Ft).toHexShortString();return{headerBg:Br,headerColor:Dt,headerSortActiveBg:rr,headerSortHoverBg:cr,bodySortBg:Br,rowHoverBg:Br,rowSelectedBg:Pr,rowSelectedHoverBg:Tn,rowExpandedBg:gt,cellPaddingBlock:Sn,cellPaddingInline:Sn,cellPaddingBlockMD:cn,cellPaddingInlineMD:qn,cellPaddingBlockSM:qn,cellPaddingInlineSM:qn,borderColor:br,headerBorderRadius:So,footerBg:Br,footerColor:Dt,cellFontSize:kt,cellFontSizeMD:kt,cellFontSizeSM:kt,headerSplitColor:br,fixedHeaderSortActiveBg:rr,headerFilterHoverBg:Gt,filterDropdownMenuBg:Ft,filterDropdownBg:Ft,expandIconBg:Ft,selectionColumnWidth:er,stickyScrollBarBg:An,stickyScrollBarBorderRadius:100}});const Ur=[],bi=(Ye,gt)=>{const{prefixCls:Ft,className:Dt,rootClassName:$t,style:Gt,size:Pr,bordered:Tn,dropdownPrefixCls:Sn,dataSource:cn,pagination:qn,rowSelection:br,rowKey:So="key",rowClassName:kt,columns:er,children:An,childrenColumnName:rr,onChange:cr,getPopupContainer:Br,loading:Ai,expandIcon:De,expandable:Zo,expandedRowRender:js,expandIconColumnIndex:ba,indentSize:sa,scroll:Ps,sortDirections:ha,locale:To,showSorterTooltip:ir=!0,virtual:xi}=Ye,ji=(0,ro.ln)("Table"),is=w.useMemo(()=>er||ti(An),[er,An]),Ds=w.useMemo(()=>is.some(Ys=>Ys.responsive),[is]),aa=(0,Na.Z)(Ds),Ho=w.useMemo(()=>{const Ys=new Set(Object.keys(aa).filter(vl=>aa[vl]));return is.filter(vl=>!vl.responsive||vl.responsive.some(mu=>Ys.has(mu)))},[is,aa]),or=(0,os.Z)(Ye,["className","style","columns"]),{locale:eo=cl.Z,direction:vs,table:ul,renderEmpty:Dl,getPrefixCls:Oa,getPopupContainer:_s}=w.useContext(Ei.E_),wl=(0,ua.Z)(Pr),nl=Object.assign(Object.assign({},eo.Table),To),mc=cn||Ur,pl=Oa("table",Ft),ic=Oa("dropdown",Sn),va=Object.assign({childrenColumnName:rr,expandIconColumnIndex:ba},Zo),{childrenColumnName:qu="children"}=va,$l=w.useMemo(()=>mc.some(Ys=>Ys==null?void 0:Ys[qu])?"nest":js||Zo&&Zo.expandedRowRender?"row":null,[mc]),su={body:w.useRef()},tu=wd(pl),Gs=w.useMemo(()=>typeof So=="function"?So:Ys=>Ys==null?void 0:Ys[So],[So]),[Kc]=af(mc,qu,Gs),Le={},Oe=function(Ys,vl){let mu=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var hc,ud,Oo;const jd=Object.assign(Object.assign({},Le),Ys);mu&&((hc=Le.resetPagination)===null||hc===void 0||hc.call(Le),!((ud=jd.pagination)===null||ud===void 0)&&ud.current&&(jd.pagination.current=1),qn&&qn.onChange&&qn.onChange(1,(Oo=jd.pagination)===null||Oo===void 0?void 0:Oo.pageSize)),Ps&&Ps.scrollToFirstRowOnChange!==!1&&su.body.current&&Ki(0,{getContainer:()=>su.body.current}),cr==null||cr(jd.pagination,jd.filters,jd.sorter,{currentDataSource:Qp(yp(mc,jd.sorterStates,qu),jd.filterStates),action:vl})},et=(Ys,vl)=>{Oe({sorter:Ys,sorterStates:vl},"sort",!1)},[hn,Lr,Cn,ei]=sm({prefixCls:pl,mergedColumns:Ho,onSorterChange:et,sortDirections:ha||["ascend","descend"],tableLocale:nl,showSorterTooltip:ir}),Li=w.useMemo(()=>yp(mc,Lr,qu),[mc,Lr]);Le.sorter=ei(),Le.sorterStates=Lr;const ps=(Ys,vl)=>{Oe({filters:Ys,filterStates:vl},"filter",!0)},[xa,Sa,_l]=df({prefixCls:pl,locale:nl,dropdownPrefixCls:ic,mergedColumns:Ho,onFilterChange:ps,getPopupContainer:Br||_s}),Ql=Qp(Li,Sa);Le.filters=_l,Le.filterStates=Sa;const Ju=w.useMemo(()=>{const Ys={};return Object.keys(_l).forEach(vl=>{_l[vl]!==null&&(Ys[vl]=_l[vl])}),Object.assign(Object.assign({},Cn),{filters:Ys})},[Cn,_l]),[ws]=Ap(Ju),Ha=(Ys,vl)=>{Oe({pagination:Object.assign(Object.assign({},Le.pagination),{current:Ys,pageSize:vl})},"paginate")},[gr,Ka]=jm(Ql.length,Ha,qn);Le.pagination=qn===!1?{}:rm(gr,qn),Le.resetPagination=Ka;const Ca=w.useMemo(()=>{if(qn===!1||!gr.pageSize)return Ql;const{current:Ys=1,total:vl,pageSize:mu=Id}=gr;return Ql.lengthmu?Ql.slice((Ys-1)*mu,Ys*mu):Ql:Ql.slice((Ys-1)*mu,Ys*mu)},[!!qn,Ql,gr&&gr.current,gr&&gr.pageSize,gr&&gr.total]),[Du,jc]=Sg({prefixCls:pl,data:Ql,pageData:Ca,getRowKey:Gs,getRecordByKey:Kc,expandType:$l,childrenColumnName:qu,locale:nl,getPopupContainer:Br||_s},br),Qo=(Ys,vl,mu)=>{let hc;return typeof kt=="function"?hc=Ce()(kt(Ys,vl,mu)):hc=Ce()(kt),Ce()({[`${pl}-row-selected`]:jc.has(Gs(Ys,vl))},hc)};va.__PARENT_RENDER_ICON__=va.expandIcon,va.expandIcon=va.expandIcon||De||Bu(nl),$l==="nest"&&va.expandIconColumnIndex===void 0?va.expandIconColumnIndex=br?1:0:va.expandIconColumnIndex>0&&br&&(va.expandIconColumnIndex-=1),typeof va.indentSize!="number"&&(va.indentSize=typeof sa=="number"?sa:15);const Do=w.useCallback(Ys=>ws(Du(xa(hn(Ys)))),[hn,xa,Du]);let As,wa;if(qn!==!1&&(gr!=null&&gr.total)){let Ys;gr.size?Ys=gr.size:Ys=wl==="small"||wl==="middle"?"small":void 0;const vl=ud=>w.createElement(Th,Object.assign({},gr,{className:Ce()(`${pl}-pagination ${pl}-pagination-${ud}`,gr.className),size:Ys})),mu=vs==="rtl"?"left":"right",{position:hc}=gr;if(hc!==null&&Array.isArray(hc)){const ud=hc.find(pd=>pd.includes("top")),Oo=hc.find(pd=>pd.includes("bottom")),jd=hc.every(pd=>`${pd}`=="none");!ud&&!Oo&&!jd&&(wa=vl(mu)),ud&&(As=vl(ud.toLowerCase().replace("top",""))),Oo&&(wa=vl(Oo.toLowerCase().replace("bottom","")))}else wa=vl(mu)}let Pa;typeof Ai=="boolean"?Pa={spinning:Ai}:typeof Ai=="object"&&(Pa=Object.assign({spinning:!0},Ai));const[Fs,gs]=jr(pl),[,Xi]=(0,ff.Z)(),sr=Ce()(`${pl}-wrapper`,ul==null?void 0:ul.className,{[`${pl}-wrapper-rtl`]:vs==="rtl"},Dt,$t,gs),Rr=Object.assign(Object.assign({},ul==null?void 0:ul.style),Gt),gi=To&&To.emptyText||(Dl==null?void 0:Dl("Table"))||w.createElement(ns.Z,{componentName:"Table"}),ls=xi?pe:Pg,bs={},Pl=w.useMemo(()=>{const{fontSize:Ys,lineHeight:vl,padding:mu,paddingXS:hc,paddingSM:ud}=Xi,Oo=Math.floor(Ys*vl);switch(wl){case"large":return mu*2+Oo;case"small":return hc*2+Oo;default:return ud*2+Oo}},[Xi,wl]);return xi&&(bs.listItemHeight=Pl),Fs(w.createElement("div",{ref:gt,className:sr,style:Rr},w.createElement(yu.Z,Object.assign({spinning:!1},Pa),As,w.createElement(ls,Object.assign({},bs,or,{columns:Ho,direction:vs,expandable:va,prefixCls:pl,className:Ce()({[`${pl}-middle`]:wl==="middle",[`${pl}-small`]:wl==="small",[`${pl}-bordered`]:Tn,[`${pl}-empty`]:mc.length===0}),data:Ca,rowKey:Gs,rowClassName:Qo,emptyText:gi,internalHooks:A,internalRefs:su,transformColumns:Do,getContainerWidth:tu})),wa)))};var ki=w.forwardRef(bi);const Di=(Ye,gt)=>{const Ft=w.useRef(0);return Ft.current+=1,w.createElement(ki,Object.assign({},Ye,{ref:gt,_renderTimes:Ft.current}))},Ro=w.forwardRef(Di);Ro.SELECTION_COLUMN=ym,Ro.EXPAND_COLUMN=y,Ro.SELECTION_ALL=Lg,Ro.SELECTION_INVERT=ug,Ro.SELECTION_NONE=om,Ro.Column=Pc,Ro.ColumnGroup=qi,Ro.Summary=jt;var hs=Ro,Ls=hs},11568:function(nt,V,m){"use strict";m.d(V,{Z:function(){return Tr}});var y=m(67294),A=m(62208),b=m(35872),z=m(87462),k=m(42110),N=m(93771),w=function(Gn,yi){return y.createElement(N.Z,(0,z.Z)({},Gn,{ref:yi,icon:k.Z}))},I=y.forwardRef(w),C=m(94184),f=m.n(C),S=m(4942),P=m(1413),j=m(97685),re=m(71002),J=m(91),ie=m(31131),de=m(21770),he=m(82225),fe=(0,y.createContext)(null),ke=y.forwardRef(function(Qt,Gn){var yi=Qt.prefixCls,Ln=Qt.className,Si=Qt.style,tr=Qt.id,vi=Qt.active,Ni=Qt.tabKey,kr=Qt.children;return y.createElement("div",{id:tr&&"".concat(tr,"-panel-").concat(Ni),role:"tabpanel",tabIndex:vi?0:-1,"aria-labelledby":tr&&"".concat(tr,"-tab-").concat(Ni),"aria-hidden":!vi,style:Si,className:f()(yi,vi&&"".concat(yi,"-active"),Ln),ref:Gn},kr)}),we=ke,Ne=["key","forceRender","style","className"];function Ee(Qt){var Gn=Qt.id,yi=Qt.activeKey,Ln=Qt.animated,Si=Qt.tabPosition,tr=Qt.destroyInactiveTabPane,vi=y.useContext(fe),Ni=vi.prefixCls,kr=vi.tabs,Qn=Ln.tabPane,ds="".concat(Ni,"-tabpane");return y.createElement("div",{className:f()("".concat(Ni,"-content-holder"))},y.createElement("div",{className:f()("".concat(Ni,"-content"),"".concat(Ni,"-content-").concat(Si),(0,S.Z)({},"".concat(Ni,"-content-animated"),Qn))},kr.map(function(_a){var da=_a.key,zs=_a.forceRender,ja=_a.style,Co=_a.className,dl=(0,J.Z)(_a,Ne),Fr=da===yi;return y.createElement(he.ZP,(0,z.Z)({key:da,visible:Fr,forceRender:zs,removeOnLeave:!!tr,leavedClassName:"".concat(ds,"-hidden")},Ln.tabPaneMotion),function(fs,jo){var Es=fs.style,xs=fs.className;return y.createElement(we,(0,z.Z)({},dl,{prefixCls:ds,id:Gn,tabKey:da,animated:Qn,active:Fr,style:(0,P.Z)((0,P.Z)({},ja),Es),className:f()(Co,xs),ref:jo}))})})))}var ge=m(74902),ye=m(48555),xe=m(66680),be=m(42550),Ie={width:0,height:0,left:0,top:0};function me(Qt,Gn,yi){return(0,y.useMemo)(function(){for(var Ln,Si=new Map,tr=Gn.get((Ln=Qt[0])===null||Ln===void 0?void 0:Ln.key)||Ie,vi=tr.left+tr.width,Ni=0;NiNn?(dn=si,Za.current="x"):(dn=co,Za.current="y"),Gn(-dn,-dn)&&Qa.preventDefault()}var xl=(0,y.useRef)(null);xl.current={onTouchStart:jo,onTouchMove:Es,onTouchEnd:xs,onWheel:tl},y.useEffect(function(){function Qa(Dn){xl.current.onTouchStart(Dn)}function si(Dn){xl.current.onTouchMove(Dn)}function co(Dn){xl.current.onTouchEnd(Dn)}function dn(Dn){xl.current.onWheel(Dn)}return document.addEventListener("touchmove",si,{passive:!1}),document.addEventListener("touchend",co,{passive:!1}),Qt.current.addEventListener("touchstart",Qa,{passive:!1}),Qt.current.addEventListener("wheel",dn),function(){document.removeEventListener("touchmove",si),document.removeEventListener("touchend",co)}},[])}var ht=m(8410);function Bt(Qt){var Gn=(0,y.useState)(0),yi=(0,j.Z)(Gn,2),Ln=yi[0],Si=yi[1],tr=(0,y.useRef)(0),vi=(0,y.useRef)();return vi.current=Qt,(0,ht.o)(function(){var Ni;(Ni=vi.current)===null||Ni===void 0||Ni.call(vi)},[Ln]),function(){tr.current===Ln&&(tr.current+=1,Si(tr.current))}}function mt(Qt){var Gn=(0,y.useRef)([]),yi=(0,y.useState)({}),Ln=(0,j.Z)(yi,2),Si=Ln[1],tr=(0,y.useRef)(typeof Qt=="function"?Qt():Qt),vi=Bt(function(){var kr=tr.current;Gn.current.forEach(function(Qn){kr=Qn(kr)}),Gn.current=[],tr.current=kr,Si({})});function Ni(kr){Gn.current.push(kr),vi()}return[tr.current,Ni]}var _n={width:0,height:0,left:0,top:0,right:0};function Bn(Qt,Gn,yi,Ln,Si,tr,vi){var Ni=vi.tabs,kr=vi.tabPosition,Qn=vi.rtl,ds,_a,da;return["top","bottom"].includes(kr)?(ds="width",_a=Qn?"right":"left",da=Math.abs(yi)):(ds="height",_a="top",da=-yi),(0,y.useMemo)(function(){if(!Ni.length)return[0,0];for(var zs=Ni.length,ja=zs,Co=0;Coda+Gn){ja=Co-1;break}}for(var Fr=0,fs=zs-1;fs>=0;fs-=1){var jo=Qt.get(Ni[fs].key)||_n;if(jo[_a]=ja?[0,0]:[Fr,ja]},[Qt,Gn,Ln,Si,tr,da,kr,Ni.map(function(zs){return zs.key}).join("_"),Qn])}function Er(Qt){var Gn;return Qt instanceof Map?(Gn={},Qt.forEach(function(yi,Ln){Gn[Ln]=yi})):Gn=Qt,JSON.stringify(Gn)}var Yr="TABS_DQ";function oi(Qt){return String(Qt).replace(/"/g,Yr)}function to(Qt,Gn,yi,Ln){return!(!yi||Ln||Qt===!1||Qt===void 0&&(Gn===!1||Gn===null))}function yo(Qt,Gn){var yi=Qt.prefixCls,Ln=Qt.editable,Si=Qt.locale,tr=Qt.style;return!Ln||Ln.showAdd===!1?null:y.createElement("button",{ref:Gn,type:"button",className:"".concat(yi,"-nav-add"),style:tr,"aria-label":(Si==null?void 0:Si.addAriaLabel)||"Add tab",onClick:function(Ni){Ln.onEdit("add",{event:Ni})}},Ln.addIcon||"+")}var vr=y.forwardRef(yo),Po=y.forwardRef(function(Qt,Gn){var yi=Qt.position,Ln=Qt.prefixCls,Si=Qt.extra;if(!Si)return null;var tr,vi={};return(0,re.Z)(Si)==="object"&&!y.isValidElement(Si)?vi=Si:vi.right=Si,yi==="right"&&(tr=vi.right),yi==="left"&&(tr=vi.left),tr?y.createElement("div",{className:"".concat(Ln,"-extra-content"),ref:Gn},tr):null}),ss=Po,ve=m(29171),_o=m(72512),ci=m(15105);function Bi(Qt,Gn){var yi=Qt.prefixCls,Ln=Qt.id,Si=Qt.tabs,tr=Qt.locale,vi=Qt.mobile,Ni=Qt.moreIcon,kr=Ni===void 0?"More":Ni,Qn=Qt.moreTransitionName,ds=Qt.style,_a=Qt.className,da=Qt.editable,zs=Qt.tabBarGutter,ja=Qt.rtl,Co=Qt.removeAriaLabel,dl=Qt.onTabClick,Fr=Qt.getPopupContainer,fs=Qt.popupClassName,jo=(0,y.useState)(!1),Es=(0,j.Z)(jo,2),xs=Es[0],Za=Es[1],tl=(0,y.useState)(null),xl=(0,j.Z)(tl,2),Qa=xl[0],si=xl[1],co="".concat(Ln,"-more-popup"),dn="".concat(yi,"-dropdown"),Dn=Qa!==null?"".concat(co,"-").concat(Qa):null,Nn=tr==null?void 0:tr.dropdownAriaLabel;function tt(jn,xr){jn.preventDefault(),jn.stopPropagation(),da.onEdit("remove",{key:xr,event:jn})}var dt=y.createElement(_o.ZP,{onClick:function(xr){var Ti=xr.key,$i=xr.domEvent;dl(Ti,$i),Za(!1)},prefixCls:"".concat(dn,"-menu"),id:co,tabIndex:-1,role:"listbox","aria-activedescendant":Dn,selectedKeys:[Qa],"aria-label":Nn!==void 0?Nn:"expanded dropdown"},Si.map(function(jn){var xr=jn.closable,Ti=jn.disabled,$i=jn.closeIcon,Vi=jn.key,us=jn.label,ks=to(xr,$i,da,Ti);return y.createElement(_o.sN,{key:Vi,id:"".concat(co,"-").concat(Vi),role:"option","aria-controls":Ln&&"".concat(Ln,"-panel-").concat(Vi),disabled:Ti},y.createElement("span",null,us),ks&&y.createElement("button",{type:"button","aria-label":Co||"remove",tabIndex:0,className:"".concat(dn,"-menu-item-remove"),onClick:function(pa){pa.stopPropagation(),tt(pa,Vi)}},$i||da.removeIcon||"\xD7"))}));function vt(jn){for(var xr=Si.filter(function(ks){return!ks.disabled}),Ti=xr.findIndex(function(ks){return ks.key===Qa})||0,$i=xr.length,Vi=0;Vi<$i;Vi+=1){Ti=(Ti+jn+$i)%$i;var us=xr[Ti];if(!us.disabled){si(us.key);return}}}function ze(jn){var xr=jn.which;if(!xs){[ci.Z.DOWN,ci.Z.SPACE,ci.Z.ENTER].includes(xr)&&(Za(!0),jn.preventDefault());return}switch(xr){case ci.Z.UP:vt(-1),jn.preventDefault();break;case ci.Z.DOWN:vt(1),jn.preventDefault();break;case ci.Z.ESC:Za(!1);break;case ci.Z.SPACE:case ci.Z.ENTER:Qa!==null&&dl(Qa,jn);break}}(0,y.useEffect)(function(){var jn=document.getElementById(Dn);jn&&jn.scrollIntoView&&jn.scrollIntoView(!1)},[Qa]),(0,y.useEffect)(function(){xs||si(null)},[xs]);var lt=(0,S.Z)({},ja?"marginRight":"marginLeft",zs);Si.length||(lt.visibility="hidden",lt.order=1);var Et=f()((0,S.Z)({},"".concat(dn,"-rtl"),ja)),an=vi?null:y.createElement(ve.Z,{prefixCls:dn,overlay:dt,trigger:["hover"],visible:Si.length?xs:!1,transitionName:Qn,onVisibleChange:Za,overlayClassName:f()(Et,fs),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:Fr},y.createElement("button",{type:"button",className:"".concat(yi,"-nav-more"),style:lt,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":co,id:"".concat(Ln,"-more"),"aria-expanded":xs,onKeyDown:ze},kr));return y.createElement("div",{className:f()("".concat(yi,"-nav-operations"),_a),style:ds,ref:Gn},an,y.createElement(vr,{prefixCls:yi,locale:tr,editable:da}))}var wi=y.memo(y.forwardRef(Bi),function(Qt,Gn){return Gn.tabMoving});function io(Qt){var Gn,yi=Qt.prefixCls,Ln=Qt.id,Si=Qt.active,tr=Qt.tab,vi=tr.key,Ni=tr.label,kr=tr.disabled,Qn=tr.closeIcon,ds=Qt.closable,_a=Qt.renderWrapper,da=Qt.removeAriaLabel,zs=Qt.editable,ja=Qt.onClick,Co=Qt.onFocus,dl=Qt.style,Fr="".concat(yi,"-tab"),fs=to(ds,Qn,zs,kr);function jo(Za){kr||ja(Za)}function Es(Za){Za.preventDefault(),Za.stopPropagation(),zs.onEdit("remove",{key:vi,event:Za})}var xs=y.createElement("div",{key:vi,"data-node-key":oi(vi),className:f()(Fr,(Gn={},(0,S.Z)(Gn,"".concat(Fr,"-with-remove"),fs),(0,S.Z)(Gn,"".concat(Fr,"-active"),Si),(0,S.Z)(Gn,"".concat(Fr,"-disabled"),kr),Gn)),style:dl,onClick:jo},y.createElement("div",{role:"tab","aria-selected":Si,id:Ln&&"".concat(Ln,"-tab-").concat(vi),className:"".concat(Fr,"-btn"),"aria-controls":Ln&&"".concat(Ln,"-panel-").concat(vi),"aria-disabled":kr,tabIndex:kr?null:0,onClick:function(tl){tl.stopPropagation(),jo(tl)},onKeyDown:function(tl){[ci.Z.SPACE,ci.Z.ENTER].includes(tl.which)&&(tl.preventDefault(),jo(tl))},onFocus:Co},Ni),fs&&y.createElement("button",{type:"button","aria-label":da||"remove",tabIndex:0,className:"".concat(Fr,"-remove"),onClick:function(tl){tl.stopPropagation(),Es(tl)}},Qn||zs.removeIcon||"\xD7"));return _a?_a(xs):xs}var ln=io,Ve=m(75164),_t=function(Gn){var yi=Gn.activeTabOffset,Ln=Gn.horizontal,Si=Gn.rtl,tr=Gn.indicatorSize,vi=(0,y.useState)(),Ni=(0,j.Z)(vi,2),kr=Ni[0],Qn=Ni[1],ds=(0,y.useRef)(),_a=function(ja){return typeof tr=="function"?tr(ja):typeof tr=="number"?tr:ja};function da(){Ve.Z.cancel(ds.current)}return(0,y.useEffect)(function(){var zs={};return yi&&(Ln?(Si?(zs.right=yi.right+yi.width/2,zs.transform="translateX(50%)"):(zs.left=yi.left+yi.width/2,zs.transform="translateX(-50%)"),zs.width=_a(yi.width)):(zs.top=yi.top+yi.height/2,zs.transform="translateY(-50%)",zs.height=_a(yi.height))),da(),ds.current=(0,Ve.Z)(function(){Qn(zs)}),da},[yi,Ln,Si,tr]),{style:kr}},Ct=_t,jt=function(Gn){var yi=Gn.current||{},Ln=yi.offsetWidth,Si=Ln===void 0?0:Ln,tr=yi.offsetHeight,vi=tr===void 0?0:tr;return[Si,vi]},on=function(Gn,yi){return Gn[yi?0:1]};function Ot(Qt,Gn){var yi,Ln=y.useContext(fe),Si=Ln.prefixCls,tr=Ln.tabs,vi=Qt.className,Ni=Qt.style,kr=Qt.id,Qn=Qt.animated,ds=Qt.activeKey,_a=Qt.rtl,da=Qt.extra,zs=Qt.editable,ja=Qt.locale,Co=Qt.tabPosition,dl=Qt.tabBarGutter,Fr=Qt.children,fs=Qt.onTabClick,jo=Qt.onTabScroll,Es=Qt.indicatorSize,xs=(0,y.useRef)(),Za=(0,y.useRef)(),tl=(0,y.useRef)(),xl=(0,y.useRef)(),Qa=(0,y.useRef)(),si=(0,y.useRef)(),co=(0,y.useRef)(),dn=Co==="top"||Co==="bottom",Dn=We(0,function(El,ml){dn&&jo&&jo({direction:El>ml?"left":"right"})}),Nn=(0,j.Z)(Dn,2),tt=Nn[0],dt=Nn[1],vt=We(0,function(El,ml){!dn&&jo&&jo({direction:El>ml?"top":"bottom"})}),ze=(0,j.Z)(vt,2),lt=ze[0],Et=ze[1],an=(0,y.useState)([0,0]),jn=(0,j.Z)(an,2),xr=jn[0],Ti=jn[1],$i=(0,y.useState)([0,0]),Vi=(0,j.Z)($i,2),us=Vi[0],ks=Vi[1],Os=(0,y.useState)([0,0]),pa=(0,j.Z)(Os,2),no=pa[0],Cs=pa[1],ea=(0,y.useState)([0,0]),fa=(0,j.Z)(ea,2),Bl=fa[0],Ma=fa[1],gl=mt(new Map),ia=(0,j.Z)(gl,2),Nl=ia[0],cs=ia[1],zi=me(tr,Nl,us[0]),Ji=on(xr,dn),ta=on(us,dn),ms=on(no,dn),Ua=on(Bl,dn),ju=Jiqi?qi:El}var $n=(0,y.useRef)(),mr=(0,y.useState)(),Qr=(0,j.Z)(mr,2),ni=Qr[0],Ki=Qr[1];function ro(){Ki(Date.now())}function Ei(){window.clearTimeout($n.current)}bt(xl,function(El,ml){function fu(Fu,lc){Fu(function(Ic){var Uc=os(Ic+lc);return Uc})}return ju?(dn?fu(dt,El):fu(Et,ml),Ei(),ro(),!0):!1}),(0,y.useEffect)(function(){return Ei(),ni&&($n.current=window.setTimeout(function(){Ki(0)},100)),Ei},[ni]);var ns=Bn(zi,rc,dn?tt:lt,ta,ms,Ua,(0,P.Z)((0,P.Z)({},Qt),{},{tabs:tr})),ua=(0,j.Z)(ns,2),Na=ua[0],cl=ua[1],Zl=(0,xe.Z)(function(){var El=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ds,ml=zi.get(El)||{width:0,height:0,left:0,right:0,top:0};if(dn){var fu=tt;_a?ml.righttt+rc&&(fu=ml.right+ml.width-rc):ml.left<-tt?fu=-ml.left:ml.left+ml.width>-tt+rc&&(fu=-(ml.left+ml.width-rc)),Et(0),dt(os(fu))}else{var Fu=lt;ml.top<-lt?Fu=-ml.top:ml.top+ml.height>-lt+rc&&(Fu=-(ml.top+ml.height-rc)),dt(0),Et(os(Fu))}}),Ml={};Co==="top"||Co==="bottom"?Ml[_a?"marginRight":"marginLeft"]=dl:Ml.marginTop=dl;var Wa=tr.map(function(El,ml){var fu=El.key;return y.createElement(ln,{id:kr,prefixCls:Si,key:fu,tab:El,style:ml===0?void 0:Ml,closable:El.closable,editable:zs,active:fu===ds,renderWrapper:Fr,removeAriaLabel:ja==null?void 0:ja.removeAriaLabel,onClick:function(lc){fs(fu,lc)},onFocus:function(){Zl(fu),ro(),xl.current&&(_a||(xl.current.scrollLeft=0),xl.current.scrollTop=0)}})}),ku=function(){return cs(function(){var ml=new Map;return tr.forEach(function(fu){var Fu,lc=fu.key,Ic=(Fu=Qa.current)===null||Fu===void 0?void 0:Fu.querySelector('[data-node-key="'.concat(oi(lc),'"]'));Ic&&ml.set(lc,{width:Ic.offsetWidth,height:Ic.offsetHeight,left:Ic.offsetLeft,top:Ic.offsetTop})}),ml})};(0,y.useEffect)(function(){ku()},[tr.map(function(El){return El.key}).join("_")]);var Xs=Bt(function(){var El=jt(xs),ml=jt(Za),fu=jt(tl);Ti([El[0]-ml[0]-fu[0],El[1]-ml[1]-fu[1]]);var Fu=jt(co);Cs(Fu);var lc=jt(si);Ma(lc);var Ic=jt(Qa);ks([Ic[0]-Fu[0],Ic[1]-Fu[1]]),ku()}),Ya=tr.slice(0,Na),qa=tr.slice(cl+1),Hl=[].concat((0,ge.Z)(Ya),(0,ge.Z)(qa)),Jl=zi.get(ds),vu=Ct({activeTabOffset:Jl,horizontal:dn,rtl:_a,indicatorSize:Es}),au=vu.style;(0,y.useEffect)(function(){Zl()},[ds,ho,qi,Er(Jl),Er(zi),dn]),(0,y.useEffect)(function(){Xs()},[_a]);var bn=!!Hl.length,Eu="".concat(Si,"-nav-wrap"),ts,Vs,ma,Il;return dn?_a?(Vs=tt>0,ts=tt!==qi):(ts=tt<0,Vs=tt!==ho):(ma=lt<0,Il=lt!==ho),y.createElement(ye.Z,{onResize:Xs},y.createElement("div",{ref:(0,be.x1)(Gn,xs),role:"tablist",className:f()("".concat(Si,"-nav"),vi),style:Ni,onKeyDown:function(){ro()}},y.createElement(ss,{ref:Za,position:"left",extra:da,prefixCls:Si}),y.createElement(ye.Z,{onResize:Xs},y.createElement("div",{className:f()(Eu,(yi={},(0,S.Z)(yi,"".concat(Eu,"-ping-left"),ts),(0,S.Z)(yi,"".concat(Eu,"-ping-right"),Vs),(0,S.Z)(yi,"".concat(Eu,"-ping-top"),ma),(0,S.Z)(yi,"".concat(Eu,"-ping-bottom"),Il),yi)),ref:xl},y.createElement(ye.Z,{onResize:Xs},y.createElement("div",{ref:Qa,className:"".concat(Si,"-nav-list"),style:{transform:"translate(".concat(tt,"px, ").concat(lt,"px)"),transition:ni?"none":void 0}},Wa,y.createElement(vr,{ref:co,prefixCls:Si,locale:ja,editable:zs,style:(0,P.Z)((0,P.Z)({},Wa.length===0?void 0:Ml),{},{visibility:bn?"hidden":null})}),y.createElement("div",{className:f()("".concat(Si,"-ink-bar"),(0,S.Z)({},"".concat(Si,"-ink-bar-animated"),Qn.inkBar)),style:au}))))),y.createElement(wi,(0,z.Z)({},Qt,{removeAriaLabel:ja==null?void 0:ja.removeAriaLabel,ref:si,prefixCls:Si,tabs:Hl,className:!bn&&Pc,tabMoving:!!ni})),y.createElement(ss,{ref:tl,position:"right",extra:da,prefixCls:Si})))}var Tt=y.forwardRef(Ot),xt=["renderTabBar"],Ht=["label","key"];function Zn(Qt){var Gn=Qt.renderTabBar,yi=(0,J.Z)(Qt,xt),Ln=y.useContext(fe),Si=Ln.tabs;if(Gn){var tr=(0,P.Z)((0,P.Z)({},yi),{},{panes:Si.map(function(vi){var Ni=vi.label,kr=vi.key,Qn=(0,J.Z)(vi,Ht);return y.createElement(we,(0,z.Z)({tab:Ni,key:kr,tabKey:kr},Qn))})});return Gn(tr,Tt)}return y.createElement(Tt,yi)}var tn=m(80334);function hr(){var Qt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},Gn;return Qt===!1?Gn={inkBar:!1,tabPane:!1}:Qt===!0?Gn={inkBar:!0,tabPane:!1}:Gn=(0,P.Z)({inkBar:!0},(0,re.Z)(Qt)==="object"?Qt:{}),Gn.tabPaneMotion&&Gn.tabPane===void 0&&(Gn.tabPane=!0),!Gn.tabPaneMotion&&Gn.tabPane&&(Gn.tabPane=!1),Gn}var Zi=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],Ri=0;function Pi(Qt,Gn){var yi,Ln=Qt.id,Si=Qt.prefixCls,tr=Si===void 0?"rc-tabs":Si,vi=Qt.className,Ni=Qt.items,kr=Qt.direction,Qn=Qt.activeKey,ds=Qt.defaultActiveKey,_a=Qt.editable,da=Qt.animated,zs=Qt.tabPosition,ja=zs===void 0?"top":zs,Co=Qt.tabBarGutter,dl=Qt.tabBarStyle,Fr=Qt.tabBarExtraContent,fs=Qt.locale,jo=Qt.moreIcon,Es=Qt.moreTransitionName,xs=Qt.destroyInactiveTabPane,Za=Qt.renderTabBar,tl=Qt.onChange,xl=Qt.onTabClick,Qa=Qt.onTabScroll,si=Qt.getPopupContainer,co=Qt.popupClassName,dn=Qt.indicatorSize,Dn=(0,J.Z)(Qt,Zi),Nn=y.useMemo(function(){return(Ni||[]).filter(function(Ma){return Ma&&(0,re.Z)(Ma)==="object"&&"key"in Ma})},[Ni]),tt=kr==="rtl",dt=hr(da),vt=(0,y.useState)(!1),ze=(0,j.Z)(vt,2),lt=ze[0],Et=ze[1];(0,y.useEffect)(function(){Et((0,ie.Z)())},[]);var an=(0,de.Z)(function(){var Ma;return(Ma=Nn[0])===null||Ma===void 0?void 0:Ma.key},{value:Qn,defaultValue:ds}),jn=(0,j.Z)(an,2),xr=jn[0],Ti=jn[1],$i=(0,y.useState)(function(){return Nn.findIndex(function(Ma){return Ma.key===xr})}),Vi=(0,j.Z)($i,2),us=Vi[0],ks=Vi[1];(0,y.useEffect)(function(){var Ma=Nn.findIndex(function(ia){return ia.key===xr});if(Ma===-1){var gl;Ma=Math.max(0,Math.min(us,Nn.length-1)),Ti((gl=Nn[Ma])===null||gl===void 0?void 0:gl.key)}ks(Ma)},[Nn.map(function(Ma){return Ma.key}).join("_"),xr,us]);var Os=(0,de.Z)(null,{value:Ln}),pa=(0,j.Z)(Os,2),no=pa[0],Cs=pa[1];(0,y.useEffect)(function(){Ln||(Cs("rc-tabs-".concat(Ri)),Ri+=1)},[]);function ea(Ma,gl){xl==null||xl(Ma,gl);var ia=Ma!==xr;Ti(Ma),ia&&(tl==null||tl(Ma))}var fa={id:no,activeKey:xr,animated:dt,tabPosition:ja,rtl:tt,mobile:lt},Bl=(0,P.Z)((0,P.Z)({},fa),{},{editable:_a,locale:fs,moreIcon:jo,moreTransitionName:Es,tabBarGutter:Co,onTabClick:ea,onTabScroll:Qa,extra:Fr,style:dl,panes:null,getPopupContainer:si,popupClassName:co,indicatorSize:dn});return y.createElement(fe.Provider,{value:{tabs:Nn,prefixCls:tr}},y.createElement("div",(0,z.Z)({ref:Gn,id:Ln,className:f()(tr,"".concat(tr,"-").concat(ja),(yi={},(0,S.Z)(yi,"".concat(tr,"-mobile"),lt),(0,S.Z)(yi,"".concat(tr,"-editable"),_a),(0,S.Z)(yi,"".concat(tr,"-rtl"),tt),yi),vi)},Dn),y.createElement(Zn,(0,z.Z)({},Bl,{renderTabBar:Za})),y.createElement(Ee,(0,z.Z)({destroyInactiveTabPane:xs},fa,{animated:dt}))))}var $o=y.forwardRef(Pi),ys=$o,xn=ys,Hr=m(53124),Jr=m(98675),Yi=m(33603);const xo={motionAppear:!1,motionEnter:!0,motionLeave:!0};function na(Qt){let Gn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},yi;return Gn===!1?yi={inkBar:!1,tabPane:!1}:Gn===!0?yi={inkBar:!0,tabPane:!0}:yi=Object.assign({inkBar:!0},typeof Gn=="object"?Gn:{}),yi.tabPane&&(yi.tabPaneMotion=Object.assign(Object.assign({},xo),{motionName:(0,Yi.m)(Qt,"switch")})),yi}var Vn=m(50344),Xn=function(Qt,Gn){var yi={};for(var Ln in Qt)Object.prototype.hasOwnProperty.call(Qt,Ln)&&Gn.indexOf(Ln)<0&&(yi[Ln]=Qt[Ln]);if(Qt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Si=0,Ln=Object.getOwnPropertySymbols(Qt);SiGn)}function li(Qt,Gn){if(Qt)return Qt;const yi=(0,Vn.Z)(Gn).map(Ln=>{if(y.isValidElement(Ln)){const{key:Si,props:tr}=Ln,vi=tr||{},{tab:Ni}=vi,kr=Xn(vi,["tab"]);return Object.assign(Object.assign({key:String(Si)},kr),{label:Ni})}return null});return Mr(yi)}var Cr=m(14747),qr=m(67968),ii=m(45503),rn=m(67771),Vr=Qt=>{const{componentCls:Gn,motionDurationSlow:yi}=Qt;return[{[Gn]:{[`${Gn}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${yi}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${yi}`}}}}},[(0,rn.oN)(Qt,"slide-up"),(0,rn.oN)(Qt,"slide-down")]]};const so=Qt=>{const{componentCls:Gn,tabsCardPadding:yi,cardBg:Ln,cardGutter:Si,colorBorderSecondary:tr,itemSelectedColor:vi}=Qt;return{[`${Gn}-card`]:{[`> ${Gn}-nav, > div > ${Gn}-nav`]:{[`${Gn}-tab`]:{margin:0,padding:yi,background:Ln,border:`${Qt.lineWidth}px ${Qt.lineType} ${tr}`,transition:`all ${Qt.motionDurationSlow} ${Qt.motionEaseInOut}`},[`${Gn}-tab-active`]:{color:vi,background:Qt.colorBgContainer},[`${Gn}-ink-bar`]:{visibility:"hidden"}},[`&${Gn}-top, &${Gn}-bottom`]:{[`> ${Gn}-nav, > div > ${Gn}-nav`]:{[`${Gn}-tab + ${Gn}-tab`]:{marginLeft:{_skip_check_:!0,value:`${Si}px`}}}},[`&${Gn}-top`]:{[`> ${Gn}-nav, > div > ${Gn}-nav`]:{[`${Gn}-tab`]:{borderRadius:`${Qt.borderRadiusLG}px ${Qt.borderRadiusLG}px 0 0`},[`${Gn}-tab-active`]:{borderBottomColor:Qt.colorBgContainer}}},[`&${Gn}-bottom`]:{[`> ${Gn}-nav, > div > ${Gn}-nav`]:{[`${Gn}-tab`]:{borderRadius:`0 0 ${Qt.borderRadiusLG}px ${Qt.borderRadiusLG}px`},[`${Gn}-tab-active`]:{borderTopColor:Qt.colorBgContainer}}},[`&${Gn}-left, &${Gn}-right`]:{[`> ${Gn}-nav, > div > ${Gn}-nav`]:{[`${Gn}-tab + ${Gn}-tab`]:{marginTop:`${Si}px`}}},[`&${Gn}-left`]:{[`> ${Gn}-nav, > div > ${Gn}-nav`]:{[`${Gn}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Qt.borderRadiusLG}px 0 0 ${Qt.borderRadiusLG}px`}},[`${Gn}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:Qt.colorBgContainer}}}},[`&${Gn}-right`]:{[`> ${Gn}-nav, > div > ${Gn}-nav`]:{[`${Gn}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Qt.borderRadiusLG}px ${Qt.borderRadiusLG}px 0`}},[`${Gn}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:Qt.colorBgContainer}}}}}}},rs=Qt=>{const{componentCls:Gn,itemHoverColor:yi,dropdownEdgeChildVerticalPadding:Ln}=Qt;return{[`${Gn}-dropdown`]:Object.assign(Object.assign({},(0,Cr.Wf)(Qt)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Qt.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${Gn}-dropdown-menu`]:{maxHeight:Qt.tabsDropdownHeight,margin:0,padding:`${Ln}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:Qt.colorBgContainer,backgroundClip:"padding-box",borderRadius:Qt.borderRadiusLG,outline:"none",boxShadow:Qt.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Cr.vS),{display:"flex",alignItems:"center",minWidth:Qt.tabsDropdownWidth,margin:0,padding:`${Qt.paddingXXS}px ${Qt.paddingSM}px`,color:Qt.colorText,fontWeight:"normal",fontSize:Qt.fontSize,lineHeight:Qt.lineHeight,cursor:"pointer",transition:`all ${Qt.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:Qt.marginSM},color:Qt.colorTextDescription,fontSize:Qt.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:yi}},"&:hover":{background:Qt.controlItemBgHover},"&-disabled":{"&, &:hover":{color:Qt.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},zt=Qt=>{const{componentCls:Gn,margin:yi,colorBorderSecondary:Ln,horizontalMargin:Si,verticalItemPadding:tr,verticalItemMargin:vi}=Qt;return{[`${Gn}-top, ${Gn}-bottom`]:{flexDirection:"column",[`> ${Gn}-nav, > div > ${Gn}-nav`]:{margin:Si,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Qt.lineWidth}px ${Qt.lineType} ${Ln}`,content:"''"},[`${Gn}-ink-bar`]:{height:Qt.lineWidthBold,"&-animated":{transition:`width ${Qt.motionDurationSlow}, left ${Qt.motionDurationSlow}, + `]:{position:"relative",color:xr,fontWeight:Ft,textAlign:"start",background:kt,borderBottom:cr,transition:`background ${So} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${mt}-selection-column):not(${mt}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:er,transform:"translateY(-50%)",transition:`background-color ${So}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${mt}-tbody`]:{"> tr":{["> th, > td"]:{transition:`background ${So}, border-color ${So}`,borderBottom:cr,[` + > ${mt}-wrapper:only-child, + > ${mt}-expanded-row-fixed > ${mt}-wrapper:only-child + `]:{[mt]:{marginBlock:`-${Dt}px`,marginInline:`${Ye.tableExpandColumnWidth-$t}px -${$t}px`,[`${mt}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:xr,fontWeight:Ft,textAlign:"start",background:kt,borderBottom:cr,transition:`background ${So} ease`}}},[`${mt}-footer`]:{padding:`${Dt}px ${$t}px`,color:In,background:rr}})}};var Wr=(0,vh.Z)("Table",Ye=>{const{colorTextHeading:mt,colorSplit:Ft,colorIcon:Dt,colorIconHover:$t,opacityLoading:Gt,colorBgContainer:Pr,controlInteractiveSize:Dn,headerBg:Sn,headerColor:cn,headerSortActiveBg:Jn,headerSortHoverBg:xr,bodySortBg:So,rowHoverBg:kt,rowSelectedBg:er,rowSelectedHoverBg:In,rowExpandedBg:rr,cellPaddingBlock:cr,cellPaddingInline:Br,cellPaddingBlockMD:Ai,cellPaddingInlineMD:Ee,cellPaddingBlockSM:Zo,cellPaddingInlineSM:Ws,borderColor:ba,footerBg:aa,footerColor:Ps,headerBorderRadius:ha,cellFontSize:To,cellFontSizeMD:ir,cellFontSizeSM:bi,headerSplitColor:Wi,fixedHeaderSortActiveBg:os,headerFilterHoverBg:Ds,filterDropdownBg:la,expandIconBg:Ho,selectionColumnWidth:or,stickyScrollBarBg:eo}=Ye,vs=new H.C(Dt),ll=new H.C($t),Dl=2,Oa=(0,id.TS)(Ye,{tableFontSize:To,tableBg:Pr,tableRadius:ha,tablePaddingVertical:cr,tablePaddingHorizontal:Br,tablePaddingVerticalMiddle:Ai,tablePaddingHorizontalMiddle:Ee,tablePaddingVerticalSmall:Zo,tablePaddingHorizontalSmall:Ws,tableBorderColor:ba,tableHeaderTextColor:cn,tableHeaderBg:Sn,tableFooterTextColor:Ps,tableFooterBg:aa,tableHeaderCellSplitColor:Wi,tableHeaderSortBg:Jn,tableHeaderSortHoverBg:xr,tableHeaderIconColor:vs.clone().setAlpha(vs.getAlpha()*Gt).toRgbString(),tableHeaderIconColorHover:ll.clone().setAlpha(ll.getAlpha()*Gt).toRgbString(),tableBodySortBg:So,tableFixedHeaderSortActiveBg:os,tableHeaderFilterActiveBg:Ds,tableFilterDropdownBg:la,tableRowHoverBg:kt,tableSelectedRowBg:er,tableSelectedRowHoverBg:In,zIndexTableFixed:Dl,zIndexTableSticky:Dl+1,tableFontSizeMiddle:ir,tableFontSizeSmall:bi,tableSelectionColumnWidth:or,tableExpandIconBg:Ho,tableExpandColumnWidth:Dn+2*Ye.padding,tableExpandedRowBg:rr,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:eo,tableScrollThumbBgHover:mt,tableScrollBg:Ft});return[Hn(Oa),$r(Oa),Ii(Oa),Eo(Oa),mn(Oa),at(Oa),nr(Oa),Xt(Oa),Ii(Oa),It(Oa),mo(Oa),lr(Oa),Rs(Oa),rt(Oa),uo(Oa),Xr(Oa),ai(Oa)]},Ye=>{const{colorFillAlter:mt,colorBgContainer:Ft,colorTextHeading:Dt,colorFillSecondary:$t,colorFillContent:Gt,controlItemBgActive:Pr,controlItemBgActiveHover:Dn,padding:Sn,paddingSM:cn,paddingXS:Jn,colorBorderSecondary:xr,borderRadiusLG:So,fontSize:kt,controlHeight:er,colorTextPlaceholder:In}=Ye,rr=new H.C($t).onBackground(Ft).toHexShortString(),cr=new H.C(Gt).onBackground(Ft).toHexShortString(),Br=new H.C(mt).onBackground(Ft).toHexShortString();return{headerBg:Br,headerColor:Dt,headerSortActiveBg:rr,headerSortHoverBg:cr,bodySortBg:Br,rowHoverBg:Br,rowSelectedBg:Pr,rowSelectedHoverBg:Dn,rowExpandedBg:mt,cellPaddingBlock:Sn,cellPaddingInline:Sn,cellPaddingBlockMD:cn,cellPaddingInlineMD:Jn,cellPaddingBlockSM:Jn,cellPaddingInlineSM:Jn,borderColor:xr,headerBorderRadius:So,footerBg:Br,footerColor:Dt,cellFontSize:kt,cellFontSizeMD:kt,cellFontSizeSM:kt,headerSplitColor:xr,fixedHeaderSortActiveBg:rr,headerFilterHoverBg:Gt,filterDropdownMenuBg:Ft,filterDropdownBg:Ft,expandIconBg:Ft,selectionColumnWidth:er,stickyScrollBarBg:In,stickyScrollBarBorderRadius:100}});const Ur=[],_i=(Ye,mt)=>{const{prefixCls:Ft,className:Dt,rootClassName:$t,style:Gt,size:Pr,bordered:Dn,dropdownPrefixCls:Sn,dataSource:cn,pagination:Jn,rowSelection:xr,rowKey:So="key",rowClassName:kt,columns:er,children:In,childrenColumnName:rr,onChange:cr,getPopupContainer:Br,loading:Ai,expandIcon:Ee,expandable:Zo,expandedRowRender:Ws,expandIconColumnIndex:ba,indentSize:aa,scroll:Ps,sortDirections:ha,locale:To,showSorterTooltip:ir=!0,virtual:bi}=Ye,Wi=(0,ro.ln)("Table"),os=w.useMemo(()=>er||ti(In),[er,In]),Ds=w.useMemo(()=>os.some(Ys=>Ys.responsive),[os]),la=(0,Na.Z)(Ds),Ho=w.useMemo(()=>{const Ys=new Set(Object.keys(la).filter(ml=>la[ml]));return os.filter(ml=>!ml.responsive||ml.responsive.some(mu=>Ys.has(mu)))},[os,la]),or=(0,ss.Z)(Ye,["className","style","columns"]),{locale:eo=ul.Z,direction:vs,table:ll,renderEmpty:Dl,getPrefixCls:Oa,getPopupContainer:_s}=w.useContext(Ei.E_),wl=(0,ca.Z)(Pr),nl=Object.assign(Object.assign({},eo.Table),To),mc=cn||Ur,fl=Oa("table",Ft),oc=Oa("dropdown",Sn),va=Object.assign({childrenColumnName:rr,expandIconColumnIndex:ba},Zo),{childrenColumnName:qu="children"}=va,$l=w.useMemo(()=>mc.some(Ys=>Ys==null?void 0:Ys[qu])?"nest":Ws||Zo&&Zo.expandedRowRender?"row":null,[mc]),su={body:w.useRef()},tu=wd(fl),Gs=w.useMemo(()=>typeof So=="function"?So:Ys=>Ys==null?void 0:Ys[So],[So]),[Gc]=af(mc,qu,Gs),Le={},Me=function(Ys,ml){let mu=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var hc,cd,Oo;const Wd=Object.assign(Object.assign({},Le),Ys);mu&&((hc=Le.resetPagination)===null||hc===void 0||hc.call(Le),!((cd=Wd.pagination)===null||cd===void 0)&&cd.current&&(Wd.pagination.current=1),Jn&&Jn.onChange&&Jn.onChange(1,(Oo=Wd.pagination)===null||Oo===void 0?void 0:Oo.pageSize)),Ps&&Ps.scrollToFirstRowOnChange!==!1&&su.body.current&&Ki(0,{getContainer:()=>su.body.current}),cr==null||cr(Wd.pagination,Wd.filters,Wd.sorter,{currentDataSource:Jp(yp(mc,Wd.sorterStates,qu),Wd.filterStates),action:ml})},et=(Ys,ml)=>{Me({sorter:Ys,sorterStates:ml},"sort",!1)},[hn,Lr,Cn,ei]=sm({prefixCls:fl,mergedColumns:Ho,onSorterChange:et,sortDirections:ha||["ascend","descend"],tableLocale:nl,showSorterTooltip:ir}),Li=w.useMemo(()=>yp(mc,Lr,qu),[mc,Lr]);Le.sorter=ei(),Le.sorterStates=Lr;const ps=(Ys,ml)=>{Me({filters:Ys,filterStates:ml},"filter",!0)},[xa,Sa,_l]=df({prefixCls:fl,locale:nl,dropdownPrefixCls:oc,mergedColumns:Ho,onFilterChange:ps,getPopupContainer:Br||_s}),Ql=Jp(Li,Sa);Le.filters=_l,Le.filterStates=Sa;const Ju=w.useMemo(()=>{const Ys={};return Object.keys(_l).forEach(ml=>{_l[ml]!==null&&(Ys[ml]=_l[ml])}),Object.assign(Object.assign({},Cn),{filters:Ys})},[Cn,_l]),[ws]=Ip(Ju),Ha=(Ys,ml)=>{Me({pagination:Object.assign(Object.assign({},Le.pagination),{current:Ys,pageSize:ml})},"paginate")},[gr,Ka]=zm(Ql.length,Ha,Jn);Le.pagination=Jn===!1?{}:rm(gr,Jn),Le.resetPagination=Ka;const Ca=w.useMemo(()=>{if(Jn===!1||!gr.pageSize)return Ql;const{current:Ys=1,total:ml,pageSize:mu=Id}=gr;return Ql.lengthmu?Ql.slice((Ys-1)*mu,Ys*mu):Ql:Ql.slice((Ys-1)*mu,Ys*mu)},[!!Jn,Ql,gr&&gr.current,gr&&gr.pageSize,gr&&gr.total]),[Du,Wc]=Sg({prefixCls:fl,data:Ql,pageData:Ca,getRowKey:Gs,getRecordByKey:Gc,expandType:$l,childrenColumnName:qu,locale:nl,getPopupContainer:Br||_s},xr),Qo=(Ys,ml,mu)=>{let hc;return typeof kt=="function"?hc=xe()(kt(Ys,ml,mu)):hc=xe()(kt),xe()({[`${fl}-row-selected`]:Wc.has(Gs(Ys,ml))},hc)};va.__PARENT_RENDER_ICON__=va.expandIcon,va.expandIcon=va.expandIcon||Ee||Fu(nl),$l==="nest"&&va.expandIconColumnIndex===void 0?va.expandIconColumnIndex=xr?1:0:va.expandIconColumnIndex>0&&xr&&(va.expandIconColumnIndex-=1),typeof va.indentSize!="number"&&(va.indentSize=typeof aa=="number"?aa:15);const Do=w.useCallback(Ys=>ws(Du(xa(hn(Ys)))),[hn,xa,Du]);let As,wa;if(Jn!==!1&&(gr!=null&&gr.total)){let Ys;gr.size?Ys=gr.size:Ys=wl==="small"||wl==="middle"?"small":void 0;const ml=cd=>w.createElement(Th,Object.assign({},gr,{className:xe()(`${fl}-pagination ${fl}-pagination-${cd}`,gr.className),size:Ys})),mu=vs==="rtl"?"left":"right",{position:hc}=gr;if(hc!==null&&Array.isArray(hc)){const cd=hc.find(fd=>fd.includes("top")),Oo=hc.find(fd=>fd.includes("bottom")),Wd=hc.every(fd=>`${fd}`=="none");!cd&&!Oo&&!Wd&&(wa=ml(mu)),cd&&(As=ml(cd.toLowerCase().replace("top",""))),Oo&&(wa=ml(Oo.toLowerCase().replace("bottom","")))}else wa=ml(mu)}let ka;typeof Ai=="boolean"?ka={spinning:Ai}:typeof Ai=="object"&&(ka=Object.assign({spinning:!0},Ai));const[Fs,gs]=Wr(fl),[,Xi]=(0,ff.Z)(),sr=xe()(`${fl}-wrapper`,ll==null?void 0:ll.className,{[`${fl}-wrapper-rtl`]:vs==="rtl"},Dt,$t,gs),Rr=Object.assign(Object.assign({},ll==null?void 0:ll.style),Gt),gi=To&&To.emptyText||(Dl==null?void 0:Dl("Table"))||w.createElement(ns.Z,{componentName:"Table"}),ls=bi?de:Pg,bs={},Pl=w.useMemo(()=>{const{fontSize:Ys,lineHeight:ml,padding:mu,paddingXS:hc,paddingSM:cd}=Xi,Oo=Math.floor(Ys*ml);switch(wl){case"large":return mu*2+Oo;case"small":return hc*2+Oo;default:return cd*2+Oo}},[Xi,wl]);return bi&&(bs.listItemHeight=Pl),Fs(w.createElement("div",{ref:mt,className:sr,style:Rr},w.createElement(yu.Z,Object.assign({spinning:!1},ka),As,w.createElement(ls,Object.assign({},bs,or,{columns:Ho,direction:vs,expandable:va,prefixCls:fl,className:xe()({[`${fl}-middle`]:wl==="middle",[`${fl}-small`]:wl==="small",[`${fl}-bordered`]:Dn,[`${fl}-empty`]:mc.length===0}),data:Ca,rowKey:Gs,rowClassName:Qo,emptyText:gi,internalHooks:I,internalRefs:su,transformColumns:Do,getContainerWidth:tu})),wa)))};var ki=w.forwardRef(_i);const Di=(Ye,mt)=>{const Ft=w.useRef(0);return Ft.current+=1,w.createElement(ki,Object.assign({},Ye,{ref:mt,_renderTimes:Ft.current}))},Ro=w.forwardRef(Di);Ro.SELECTION_COLUMN=vm,Ro.EXPAND_COLUMN=y,Ro.SELECTION_ALL=Lg,Ro.SELECTION_INVERT=ug,Ro.SELECTION_NONE=om,Ro.Column=Pc,Ro.ColumnGroup=Ji,Ro.Summary=Wt;var hs=Ro,Ls=hs},30966:function(nt,V,m){"use strict";m.d(V,{Z:function(){return Tr}});var y=m(77617),I=m(49934),b=m(93319),z=m(26508),k=m(28186),N=m(91851),w=function(Gn,yi){return y.createElement(N.Z,(0,z.Z)({},Gn,{ref:yi,icon:k.Z}))},A=y.forwardRef(w),C=m(12124),f=m.n(C),S=m(80268),P=m(74710),W=m(39718),ne=m(91002),re=m(52528),ce=m(10103),pe=m(41760),he=m(44516),fe=(0,y.createContext)(null),Be=y.forwardRef(function(Qt,Gn){var yi=Qt.prefixCls,Ln=Qt.className,Si=Qt.style,tr=Qt.id,vi=Qt.active,Ni=Qt.tabKey,kr=Qt.children;return y.createElement("div",{id:tr&&"".concat(tr,"-panel-").concat(Ni),role:"tabpanel",tabIndex:vi?0:-1,"aria-labelledby":tr&&"".concat(tr,"-tab-").concat(Ni),"aria-hidden":!vi,style:Si,className:f()(yi,vi&&"".concat(yi,"-active"),Ln),ref:Gn},kr)}),Ie=Be,We=["key","forceRender","style","className"];function De(Qt){var Gn=Qt.id,yi=Qt.activeKey,Ln=Qt.animated,Si=Qt.tabPosition,tr=Qt.destroyInactiveTabPane,vi=y.useContext(fe),Ni=vi.prefixCls,kr=vi.tabs,qn=Ln.tabPane,ds="".concat(Ni,"-tabpane");return y.createElement("div",{className:f()("".concat(Ni,"-content-holder"))},y.createElement("div",{className:f()("".concat(Ni,"-content"),"".concat(Ni,"-content-").concat(Si),(0,S.Z)({},"".concat(Ni,"-content-animated"),qn))},kr.map(function(_a){var da=_a.key,zs=_a.forceRender,Wa=_a.style,Co=_a.className,cl=(0,re.Z)(_a,We),Fr=da===yi;return y.createElement(he.ZP,(0,z.Z)({key:da,visible:Fr,forceRender:zs,removeOnLeave:!!tr,leavedClassName:"".concat(ds,"-hidden")},Ln.tabPaneMotion),function(fs,jo){var Es=fs.style,xs=fs.className;return y.createElement(Ie,(0,z.Z)({},cl,{prefixCls:ds,id:Gn,tabKey:da,animated:qn,active:Fr,style:(0,P.Z)((0,P.Z)({},Wa),Es),className:f()(Co,xs),ref:jo}))})})))}var ve=m(42371),ye=m(28647),we=m(61759),Ce=m(9681),Ae={width:0,height:0,left:0,top:0};function me(Qt,Gn,yi){return(0,y.useMemo)(function(){for(var Ln,Si=new Map,tr=Gn.get((Ln=Qt[0])===null||Ln===void 0?void 0:Ln.key)||Ae,vi=tr.left+tr.width,Ni=0;NiNn?(dn=si,Za.current="x"):(dn=co,Za.current="y"),Gn(-dn,-dn)&&Qa.preventDefault()}var xl=(0,y.useRef)(null);xl.current={onTouchStart:jo,onTouchMove:Es,onTouchEnd:xs,onWheel:tl},y.useEffect(function(){function Qa(An){xl.current.onTouchStart(An)}function si(An){xl.current.onTouchMove(An)}function co(An){xl.current.onTouchEnd(An)}function dn(An){xl.current.onWheel(An)}return document.addEventListener("touchmove",si,{passive:!1}),document.addEventListener("touchend",co,{passive:!1}),Qt.current.addEventListener("touchstart",Qa,{passive:!1}),Qt.current.addEventListener("wheel",dn),function(){document.removeEventListener("touchmove",si),document.removeEventListener("touchend",co)}},[])}var dt=m(62305);function Bt(Qt){var Gn=(0,y.useState)(0),yi=(0,W.Z)(Gn,2),Ln=yi[0],Si=yi[1],tr=(0,y.useRef)(0),vi=(0,y.useRef)();return vi.current=Qt,(0,dt.o)(function(){var Ni;(Ni=vi.current)===null||Ni===void 0||Ni.call(vi)},[Ln]),function(){tr.current===Ln&&(tr.current+=1,Si(tr.current))}}function gt(Qt){var Gn=(0,y.useRef)([]),yi=(0,y.useState)({}),Ln=(0,W.Z)(yi,2),Si=Ln[1],tr=(0,y.useRef)(typeof Qt=="function"?Qt():Qt),vi=Bt(function(){var kr=tr.current;Gn.current.forEach(function(qn){kr=qn(kr)}),Gn.current=[],tr.current=kr,Si({})});function Ni(kr){Gn.current.push(kr),vi()}return[tr.current,Ni]}var _n={width:0,height:0,left:0,top:0,right:0};function Bn(Qt,Gn,yi,Ln,Si,tr,vi){var Ni=vi.tabs,kr=vi.tabPosition,qn=vi.rtl,ds,_a,da;return["top","bottom"].includes(kr)?(ds="width",_a=qn?"right":"left",da=Math.abs(yi)):(ds="height",_a="top",da=-yi),(0,y.useMemo)(function(){if(!Ni.length)return[0,0];for(var zs=Ni.length,Wa=zs,Co=0;Coda+Gn){Wa=Co-1;break}}for(var Fr=0,fs=zs-1;fs>=0;fs-=1){var jo=Qt.get(Ni[fs].key)||_n;if(jo[_a]=Wa?[0,0]:[Fr,Wa]},[Qt,Gn,Ln,Si,tr,da,kr,Ni.map(function(zs){return zs.key}).join("_"),qn])}function Er(Qt){var Gn;return Qt instanceof Map?(Gn={},Qt.forEach(function(yi,Ln){Gn[Ln]=yi})):Gn=Qt,JSON.stringify(Gn)}var Yr="TABS_DQ";function oi(Qt){return String(Qt).replace(/"/g,Yr)}function to(Qt,Gn,yi,Ln){return!(!yi||Ln||Qt===!1||Qt===void 0&&(Gn===!1||Gn===null))}function yo(Qt,Gn){var yi=Qt.prefixCls,Ln=Qt.editable,Si=Qt.locale,tr=Qt.style;return!Ln||Ln.showAdd===!1?null:y.createElement("button",{ref:Gn,type:"button",className:"".concat(yi,"-nav-add"),style:tr,"aria-label":(Si==null?void 0:Si.addAriaLabel)||"Add tab",onClick:function(Ni){Ln.onEdit("add",{event:Ni})}},Ln.addIcon||"+")}var yr=y.forwardRef(yo),Po=y.forwardRef(function(Qt,Gn){var yi=Qt.position,Ln=Qt.prefixCls,Si=Qt.extra;if(!Si)return null;var tr,vi={};return(0,ne.Z)(Si)==="object"&&!y.isValidElement(Si)?vi=Si:vi.right=Si,yi==="right"&&(tr=vi.right),yi==="left"&&(tr=vi.left),tr?y.createElement("div",{className:"".concat(Ln,"-extra-content"),ref:Gn},tr):null}),as=Po,ge=m(31561),_o=m(51917),ci=m(38251);function Bi(Qt,Gn){var yi=Qt.prefixCls,Ln=Qt.id,Si=Qt.tabs,tr=Qt.locale,vi=Qt.mobile,Ni=Qt.moreIcon,kr=Ni===void 0?"More":Ni,qn=Qt.moreTransitionName,ds=Qt.style,_a=Qt.className,da=Qt.editable,zs=Qt.tabBarGutter,Wa=Qt.rtl,Co=Qt.removeAriaLabel,cl=Qt.onTabClick,Fr=Qt.getPopupContainer,fs=Qt.popupClassName,jo=(0,y.useState)(!1),Es=(0,W.Z)(jo,2),xs=Es[0],Za=Es[1],tl=(0,y.useState)(null),xl=(0,W.Z)(tl,2),Qa=xl[0],si=xl[1],co="".concat(Ln,"-more-popup"),dn="".concat(yi,"-dropdown"),An=Qa!==null?"".concat(co,"-").concat(Qa):null,Nn=tr==null?void 0:tr.dropdownAriaLabel;function tt(jn,Cr){jn.preventDefault(),jn.stopPropagation(),da.onEdit("remove",{key:Cr,event:jn})}var ht=y.createElement(_o.ZP,{onClick:function(Cr){var Ti=Cr.key,$i=Cr.domEvent;cl(Ti,$i),Za(!1)},prefixCls:"".concat(dn,"-menu"),id:co,tabIndex:-1,role:"listbox","aria-activedescendant":An,selectedKeys:[Qa],"aria-label":Nn!==void 0?Nn:"expanded dropdown"},Si.map(function(jn){var Cr=jn.closable,Ti=jn.disabled,$i=jn.closeIcon,Vi=jn.key,us=jn.label,ks=to(Cr,$i,da,Ti);return y.createElement(_o.sN,{key:Vi,id:"".concat(co,"-").concat(Vi),role:"option","aria-controls":Ln&&"".concat(Ln,"-panel-").concat(Vi),disabled:Ti},y.createElement("span",null,us),ks&&y.createElement("button",{type:"button","aria-label":Co||"remove",tabIndex:0,className:"".concat(dn,"-menu-item-remove"),onClick:function(pa){pa.stopPropagation(),tt(pa,Vi)}},$i||da.removeIcon||"\xD7"))}));function vt(jn){for(var Cr=Si.filter(function(ks){return!ks.disabled}),Ti=Cr.findIndex(function(ks){return ks.key===Qa})||0,$i=Cr.length,Vi=0;Vi<$i;Vi+=1){Ti=(Ti+jn+$i)%$i;var us=Cr[Ti];if(!us.disabled){si(us.key);return}}}function Fe(jn){var Cr=jn.which;if(!xs){[ci.Z.DOWN,ci.Z.SPACE,ci.Z.ENTER].includes(Cr)&&(Za(!0),jn.preventDefault());return}switch(Cr){case ci.Z.UP:vt(-1),jn.preventDefault();break;case ci.Z.DOWN:vt(1),jn.preventDefault();break;case ci.Z.ESC:Za(!1);break;case ci.Z.SPACE:case ci.Z.ENTER:Qa!==null&&cl(Qa,jn);break}}(0,y.useEffect)(function(){var jn=document.getElementById(An);jn&&jn.scrollIntoView&&jn.scrollIntoView(!1)},[Qa]),(0,y.useEffect)(function(){xs||si(null)},[xs]);var lt=(0,S.Z)({},Wa?"marginRight":"marginLeft",zs);Si.length||(lt.visibility="hidden",lt.order=1);var Et=f()((0,S.Z)({},"".concat(dn,"-rtl"),Wa)),an=vi?null:y.createElement(ge.Z,{prefixCls:dn,overlay:ht,trigger:["hover"],visible:Si.length?xs:!1,transitionName:qn,onVisibleChange:Za,overlayClassName:f()(Et,fs),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:Fr},y.createElement("button",{type:"button",className:"".concat(yi,"-nav-more"),style:lt,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":co,id:"".concat(Ln,"-more"),"aria-expanded":xs,onKeyDown:Fe},kr));return y.createElement("div",{className:f()("".concat(yi,"-nav-operations"),_a),style:ds,ref:Gn},an,y.createElement(yr,{prefixCls:yi,locale:tr,editable:da}))}var Ci=y.memo(y.forwardRef(Bi),function(Qt,Gn){return Gn.tabMoving});function io(Qt){var Gn,yi=Qt.prefixCls,Ln=Qt.id,Si=Qt.active,tr=Qt.tab,vi=tr.key,Ni=tr.label,kr=tr.disabled,qn=tr.closeIcon,ds=Qt.closable,_a=Qt.renderWrapper,da=Qt.removeAriaLabel,zs=Qt.editable,Wa=Qt.onClick,Co=Qt.onFocus,cl=Qt.style,Fr="".concat(yi,"-tab"),fs=to(ds,qn,zs,kr);function jo(Za){kr||Wa(Za)}function Es(Za){Za.preventDefault(),Za.stopPropagation(),zs.onEdit("remove",{key:vi,event:Za})}var xs=y.createElement("div",{key:vi,"data-node-key":oi(vi),className:f()(Fr,(Gn={},(0,S.Z)(Gn,"".concat(Fr,"-with-remove"),fs),(0,S.Z)(Gn,"".concat(Fr,"-active"),Si),(0,S.Z)(Gn,"".concat(Fr,"-disabled"),kr),Gn)),style:cl,onClick:jo},y.createElement("div",{role:"tab","aria-selected":Si,id:Ln&&"".concat(Ln,"-tab-").concat(vi),className:"".concat(Fr,"-btn"),"aria-controls":Ln&&"".concat(Ln,"-panel-").concat(vi),"aria-disabled":kr,tabIndex:kr?null:0,onClick:function(tl){tl.stopPropagation(),jo(tl)},onKeyDown:function(tl){[ci.Z.SPACE,ci.Z.ENTER].includes(tl.which)&&(tl.preventDefault(),jo(tl))},onFocus:Co},Ni),fs&&y.createElement("button",{type:"button","aria-label":da||"remove",tabIndex:0,className:"".concat(Fr,"-remove"),onClick:function(tl){tl.stopPropagation(),Es(tl)}},qn||zs.removeIcon||"\xD7"));return _a?_a(xs):xs}var ln=io,Ve=m(28637),_t=function(Gn){var yi=Gn.activeTabOffset,Ln=Gn.horizontal,Si=Gn.rtl,tr=Gn.indicatorSize,vi=(0,y.useState)(),Ni=(0,W.Z)(vi,2),kr=Ni[0],qn=Ni[1],ds=(0,y.useRef)(),_a=function(Wa){return typeof tr=="function"?tr(Wa):typeof tr=="number"?tr:Wa};function da(){Ve.Z.cancel(ds.current)}return(0,y.useEffect)(function(){var zs={};return yi&&(Ln?(Si?(zs.right=yi.right+yi.width/2,zs.transform="translateX(50%)"):(zs.left=yi.left+yi.width/2,zs.transform="translateX(-50%)"),zs.width=_a(yi.width)):(zs.top=yi.top+yi.height/2,zs.transform="translateY(-50%)",zs.height=_a(yi.height))),da(),ds.current=(0,Ve.Z)(function(){qn(zs)}),da},[yi,Ln,Si,tr]),{style:kr}},xt=_t,Wt=function(Gn){var yi=Gn.current||{},Ln=yi.offsetWidth,Si=Ln===void 0?0:Ln,tr=yi.offsetHeight,vi=tr===void 0?0:tr;return[Si,vi]},on=function(Gn,yi){return Gn[yi?0:1]};function Ot(Qt,Gn){var yi,Ln=y.useContext(fe),Si=Ln.prefixCls,tr=Ln.tabs,vi=Qt.className,Ni=Qt.style,kr=Qt.id,qn=Qt.animated,ds=Qt.activeKey,_a=Qt.rtl,da=Qt.extra,zs=Qt.editable,Wa=Qt.locale,Co=Qt.tabPosition,cl=Qt.tabBarGutter,Fr=Qt.children,fs=Qt.onTabClick,jo=Qt.onTabScroll,Es=Qt.indicatorSize,xs=(0,y.useRef)(),Za=(0,y.useRef)(),tl=(0,y.useRef)(),xl=(0,y.useRef)(),Qa=(0,y.useRef)(),si=(0,y.useRef)(),co=(0,y.useRef)(),dn=Co==="top"||Co==="bottom",An=je(0,function(El,gl){dn&&jo&&jo({direction:El>gl?"left":"right"})}),Nn=(0,W.Z)(An,2),tt=Nn[0],ht=Nn[1],vt=je(0,function(El,gl){!dn&&jo&&jo({direction:El>gl?"top":"bottom"})}),Fe=(0,W.Z)(vt,2),lt=Fe[0],Et=Fe[1],an=(0,y.useState)([0,0]),jn=(0,W.Z)(an,2),Cr=jn[0],Ti=jn[1],$i=(0,y.useState)([0,0]),Vi=(0,W.Z)($i,2),us=Vi[0],ks=Vi[1],Os=(0,y.useState)([0,0]),pa=(0,W.Z)(Os,2),no=pa[0],Cs=pa[1],ea=(0,y.useState)([0,0]),fa=(0,W.Z)(ea,2),Bl=fa[0],Ma=fa[1],pl=gt(new Map),oa=(0,W.Z)(pl,2),Nl=oa[0],cs=oa[1],zi=me(tr,Nl,us[0]),qi=on(Cr,dn),ta=on(us,dn),ms=on(no,dn),Ua=on(Bl,dn),$u=qiJi?Ji:El}var $n=(0,y.useRef)(),mr=(0,y.useState)(),Qr=(0,W.Z)(mr,2),ni=Qr[0],Ki=Qr[1];function ro(){Ki(Date.now())}function Ei(){window.clearTimeout($n.current)}wt(xl,function(El,gl){function fu(Nu,lc){Nu(function(Ic){var Vc=ss(Ic+lc);return Vc})}return $u?(dn?fu(ht,El):fu(Et,gl),Ei(),ro(),!0):!1}),(0,y.useEffect)(function(){return Ei(),ni&&($n.current=window.setTimeout(function(){Ki(0)},100)),Ei},[ni]);var ns=Bn(zi,rc,dn?tt:lt,ta,ms,Ua,(0,P.Z)((0,P.Z)({},Qt),{},{tabs:tr})),ca=(0,W.Z)(ns,2),Na=ca[0],ul=ca[1],Hl=(0,we.Z)(function(){var El=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ds,gl=zi.get(El)||{width:0,height:0,left:0,right:0,top:0};if(dn){var fu=tt;_a?gl.righttt+rc&&(fu=gl.right+gl.width-rc):gl.left<-tt?fu=-gl.left:gl.left+gl.width>-tt+rc&&(fu=-(gl.left+gl.width-rc)),Et(0),ht(ss(fu))}else{var Nu=lt;gl.top<-lt?Nu=-gl.top:gl.top+gl.height>-lt+rc&&(Nu=-(gl.top+gl.height-rc)),ht(0),Et(ss(Nu))}}),Ml={};Co==="top"||Co==="bottom"?Ml[_a?"marginRight":"marginLeft"]=cl:Ml.marginTop=cl;var ja=tr.map(function(El,gl){var fu=El.key;return y.createElement(ln,{id:kr,prefixCls:Si,key:fu,tab:El,style:gl===0?void 0:Ml,closable:El.closable,editable:zs,active:fu===ds,renderWrapper:Fr,removeAriaLabel:Wa==null?void 0:Wa.removeAriaLabel,onClick:function(lc){fs(fu,lc)},onFocus:function(){Hl(fu),ro(),xl.current&&(_a||(xl.current.scrollLeft=0),xl.current.scrollTop=0)}})}),Pu=function(){return cs(function(){var gl=new Map;return tr.forEach(function(fu){var Nu,lc=fu.key,Ic=(Nu=Qa.current)===null||Nu===void 0?void 0:Nu.querySelector('[data-node-key="'.concat(oi(lc),'"]'));Ic&&gl.set(lc,{width:Ic.offsetWidth,height:Ic.offsetHeight,left:Ic.offsetLeft,top:Ic.offsetTop})}),gl})};(0,y.useEffect)(function(){Pu()},[tr.map(function(El){return El.key}).join("_")]);var Xs=Bt(function(){var El=Wt(xs),gl=Wt(Za),fu=Wt(tl);Ti([El[0]-gl[0]-fu[0],El[1]-gl[1]-fu[1]]);var Nu=Wt(co);Cs(Nu);var lc=Wt(si);Ma(lc);var Ic=Wt(Qa);ks([Ic[0]-Nu[0],Ic[1]-Nu[1]]),Pu()}),Ya=tr.slice(0,Na),qa=tr.slice(ul+1),Ul=[].concat((0,ve.Z)(Ya),(0,ve.Z)(qa)),ql=zi.get(ds),vu=xt({activeTabOffset:ql,horizontal:dn,rtl:_a,indicatorSize:Es}),au=vu.style;(0,y.useEffect)(function(){Hl()},[ds,ho,Ji,Er(ql),Er(zi),dn]),(0,y.useEffect)(function(){Xs()},[_a]);var bn=!!Ul.length,Eu="".concat(Si,"-nav-wrap"),ts,Vs,ma,Il;return dn?_a?(Vs=tt>0,ts=tt!==Ji):(ts=tt<0,Vs=tt!==ho):(ma=lt<0,Il=lt!==ho),y.createElement(ye.Z,{onResize:Xs},y.createElement("div",{ref:(0,Ce.x1)(Gn,xs),role:"tablist",className:f()("".concat(Si,"-nav"),vi),style:Ni,onKeyDown:function(){ro()}},y.createElement(as,{ref:Za,position:"left",extra:da,prefixCls:Si}),y.createElement(ye.Z,{onResize:Xs},y.createElement("div",{className:f()(Eu,(yi={},(0,S.Z)(yi,"".concat(Eu,"-ping-left"),ts),(0,S.Z)(yi,"".concat(Eu,"-ping-right"),Vs),(0,S.Z)(yi,"".concat(Eu,"-ping-top"),ma),(0,S.Z)(yi,"".concat(Eu,"-ping-bottom"),Il),yi)),ref:xl},y.createElement(ye.Z,{onResize:Xs},y.createElement("div",{ref:Qa,className:"".concat(Si,"-nav-list"),style:{transform:"translate(".concat(tt,"px, ").concat(lt,"px)"),transition:ni?"none":void 0}},ja,y.createElement(yr,{ref:co,prefixCls:Si,locale:Wa,editable:zs,style:(0,P.Z)((0,P.Z)({},ja.length===0?void 0:Ml),{},{visibility:bn?"hidden":null})}),y.createElement("div",{className:f()("".concat(Si,"-ink-bar"),(0,S.Z)({},"".concat(Si,"-ink-bar-animated"),qn.inkBar)),style:au}))))),y.createElement(Ci,(0,z.Z)({},Qt,{removeAriaLabel:Wa==null?void 0:Wa.removeAriaLabel,ref:si,prefixCls:Si,tabs:Ul,className:!bn&&Pc,tabMoving:!!ni})),y.createElement(as,{ref:tl,position:"right",extra:da,prefixCls:Si})))}var Tt=y.forwardRef(Ot),bt=["renderTabBar"],Ht=["label","key"];function Wn(Qt){var Gn=Qt.renderTabBar,yi=(0,re.Z)(Qt,bt),Ln=y.useContext(fe),Si=Ln.tabs;if(Gn){var tr=(0,P.Z)((0,P.Z)({},yi),{},{panes:Si.map(function(vi){var Ni=vi.label,kr=vi.key,qn=(0,re.Z)(vi,Ht);return y.createElement(Ie,(0,z.Z)({tab:Ni,key:kr,tabKey:kr},qn))})});return Gn(tr,Tt)}return y.createElement(Tt,yi)}var tn=m(46644);function hr(){var Qt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},Gn;return Qt===!1?Gn={inkBar:!1,tabPane:!1}:Qt===!0?Gn={inkBar:!0,tabPane:!1}:Gn=(0,P.Z)({inkBar:!0},(0,ne.Z)(Qt)==="object"?Qt:{}),Gn.tabPaneMotion&&Gn.tabPane===void 0&&(Gn.tabPane=!0),!Gn.tabPaneMotion&&Gn.tabPane&&(Gn.tabPane=!1),Gn}var Zi=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],Ri=0;function Pi(Qt,Gn){var yi,Ln=Qt.id,Si=Qt.prefixCls,tr=Si===void 0?"rc-tabs":Si,vi=Qt.className,Ni=Qt.items,kr=Qt.direction,qn=Qt.activeKey,ds=Qt.defaultActiveKey,_a=Qt.editable,da=Qt.animated,zs=Qt.tabPosition,Wa=zs===void 0?"top":zs,Co=Qt.tabBarGutter,cl=Qt.tabBarStyle,Fr=Qt.tabBarExtraContent,fs=Qt.locale,jo=Qt.moreIcon,Es=Qt.moreTransitionName,xs=Qt.destroyInactiveTabPane,Za=Qt.renderTabBar,tl=Qt.onChange,xl=Qt.onTabClick,Qa=Qt.onTabScroll,si=Qt.getPopupContainer,co=Qt.popupClassName,dn=Qt.indicatorSize,An=(0,re.Z)(Qt,Zi),Nn=y.useMemo(function(){return(Ni||[]).filter(function(Ma){return Ma&&(0,ne.Z)(Ma)==="object"&&"key"in Ma})},[Ni]),tt=kr==="rtl",ht=hr(da),vt=(0,y.useState)(!1),Fe=(0,W.Z)(vt,2),lt=Fe[0],Et=Fe[1];(0,y.useEffect)(function(){Et((0,ce.Z)())},[]);var an=(0,pe.Z)(function(){var Ma;return(Ma=Nn[0])===null||Ma===void 0?void 0:Ma.key},{value:qn,defaultValue:ds}),jn=(0,W.Z)(an,2),Cr=jn[0],Ti=jn[1],$i=(0,y.useState)(function(){return Nn.findIndex(function(Ma){return Ma.key===Cr})}),Vi=(0,W.Z)($i,2),us=Vi[0],ks=Vi[1];(0,y.useEffect)(function(){var Ma=Nn.findIndex(function(oa){return oa.key===Cr});if(Ma===-1){var pl;Ma=Math.max(0,Math.min(us,Nn.length-1)),Ti((pl=Nn[Ma])===null||pl===void 0?void 0:pl.key)}ks(Ma)},[Nn.map(function(Ma){return Ma.key}).join("_"),Cr,us]);var Os=(0,pe.Z)(null,{value:Ln}),pa=(0,W.Z)(Os,2),no=pa[0],Cs=pa[1];(0,y.useEffect)(function(){Ln||(Cs("rc-tabs-".concat(Ri)),Ri+=1)},[]);function ea(Ma,pl){xl==null||xl(Ma,pl);var oa=Ma!==Cr;Ti(Ma),oa&&(tl==null||tl(Ma))}var fa={id:no,activeKey:Cr,animated:ht,tabPosition:Wa,rtl:tt,mobile:lt},Bl=(0,P.Z)((0,P.Z)({},fa),{},{editable:_a,locale:fs,moreIcon:jo,moreTransitionName:Es,tabBarGutter:Co,onTabClick:ea,onTabScroll:Qa,extra:Fr,style:cl,panes:null,getPopupContainer:si,popupClassName:co,indicatorSize:dn});return y.createElement(fe.Provider,{value:{tabs:Nn,prefixCls:tr}},y.createElement("div",(0,z.Z)({ref:Gn,id:Ln,className:f()(tr,"".concat(tr,"-").concat(Wa),(yi={},(0,S.Z)(yi,"".concat(tr,"-mobile"),lt),(0,S.Z)(yi,"".concat(tr,"-editable"),_a),(0,S.Z)(yi,"".concat(tr,"-rtl"),tt),yi),vi)},An),y.createElement(Wn,(0,z.Z)({},Bl,{renderTabBar:Za})),y.createElement(De,(0,z.Z)({destroyInactiveTabPane:xs},fa,{animated:ht}))))}var Wo=y.forwardRef(Pi),ys=Wo,xn=ys,Hr=m(67392),Jr=m(21843),Yi=m(26612);const xo={motionAppear:!1,motionEnter:!0,motionLeave:!0};function na(Qt){let Gn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},yi;return Gn===!1?yi={inkBar:!1,tabPane:!1}:Gn===!0?yi={inkBar:!0,tabPane:!0}:yi=Object.assign({inkBar:!0},typeof Gn=="object"?Gn:{}),yi.tabPane&&(yi.tabPaneMotion=Object.assign(Object.assign({},xo),{motionName:(0,Yi.m)(Qt,"switch")})),yi}var Un=m(38930),Xn=function(Qt,Gn){var yi={};for(var Ln in Qt)Object.prototype.hasOwnProperty.call(Qt,Ln)&&Gn.indexOf(Ln)<0&&(yi[Ln]=Qt[Ln]);if(Qt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Si=0,Ln=Object.getOwnPropertySymbols(Qt);SiGn)}function li(Qt,Gn){if(Qt)return Qt;const yi=(0,Un.Z)(Gn).map(Ln=>{if(y.isValidElement(Ln)){const{key:Si,props:tr}=Ln,vi=tr||{},{tab:Ni}=vi,kr=Xn(vi,["tab"]);return Object.assign(Object.assign({key:String(Si)},kr),{label:Ni})}return null});return Mr(yi)}var wr=m(92068),qr=m(24577),ii=m(41788),rn=m(22759),Vr=Qt=>{const{componentCls:Gn,motionDurationSlow:yi}=Qt;return[{[Gn]:{[`${Gn}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${yi}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${yi}`}}}}},[(0,rn.oN)(Qt,"slide-up"),(0,rn.oN)(Qt,"slide-down")]]};const so=Qt=>{const{componentCls:Gn,tabsCardPadding:yi,cardBg:Ln,cardGutter:Si,colorBorderSecondary:tr,itemSelectedColor:vi}=Qt;return{[`${Gn}-card`]:{[`> ${Gn}-nav, > div > ${Gn}-nav`]:{[`${Gn}-tab`]:{margin:0,padding:yi,background:Ln,border:`${Qt.lineWidth}px ${Qt.lineType} ${tr}`,transition:`all ${Qt.motionDurationSlow} ${Qt.motionEaseInOut}`},[`${Gn}-tab-active`]:{color:vi,background:Qt.colorBgContainer},[`${Gn}-ink-bar`]:{visibility:"hidden"}},[`&${Gn}-top, &${Gn}-bottom`]:{[`> ${Gn}-nav, > div > ${Gn}-nav`]:{[`${Gn}-tab + ${Gn}-tab`]:{marginLeft:{_skip_check_:!0,value:`${Si}px`}}}},[`&${Gn}-top`]:{[`> ${Gn}-nav, > div > ${Gn}-nav`]:{[`${Gn}-tab`]:{borderRadius:`${Qt.borderRadiusLG}px ${Qt.borderRadiusLG}px 0 0`},[`${Gn}-tab-active`]:{borderBottomColor:Qt.colorBgContainer}}},[`&${Gn}-bottom`]:{[`> ${Gn}-nav, > div > ${Gn}-nav`]:{[`${Gn}-tab`]:{borderRadius:`0 0 ${Qt.borderRadiusLG}px ${Qt.borderRadiusLG}px`},[`${Gn}-tab-active`]:{borderTopColor:Qt.colorBgContainer}}},[`&${Gn}-left, &${Gn}-right`]:{[`> ${Gn}-nav, > div > ${Gn}-nav`]:{[`${Gn}-tab + ${Gn}-tab`]:{marginTop:`${Si}px`}}},[`&${Gn}-left`]:{[`> ${Gn}-nav, > div > ${Gn}-nav`]:{[`${Gn}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Qt.borderRadiusLG}px 0 0 ${Qt.borderRadiusLG}px`}},[`${Gn}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:Qt.colorBgContainer}}}},[`&${Gn}-right`]:{[`> ${Gn}-nav, > div > ${Gn}-nav`]:{[`${Gn}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Qt.borderRadiusLG}px ${Qt.borderRadiusLG}px 0`}},[`${Gn}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:Qt.colorBgContainer}}}}}}},rs=Qt=>{const{componentCls:Gn,itemHoverColor:yi,dropdownEdgeChildVerticalPadding:Ln}=Qt;return{[`${Gn}-dropdown`]:Object.assign(Object.assign({},(0,wr.Wf)(Qt)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Qt.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${Gn}-dropdown-menu`]:{maxHeight:Qt.tabsDropdownHeight,margin:0,padding:`${Ln}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:Qt.colorBgContainer,backgroundClip:"padding-box",borderRadius:Qt.borderRadiusLG,outline:"none",boxShadow:Qt.boxShadowSecondary,"&-item":Object.assign(Object.assign({},wr.vS),{display:"flex",alignItems:"center",minWidth:Qt.tabsDropdownWidth,margin:0,padding:`${Qt.paddingXXS}px ${Qt.paddingSM}px`,color:Qt.colorText,fontWeight:"normal",fontSize:Qt.fontSize,lineHeight:Qt.lineHeight,cursor:"pointer",transition:`all ${Qt.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:Qt.marginSM},color:Qt.colorTextDescription,fontSize:Qt.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:yi}},"&:hover":{background:Qt.controlItemBgHover},"&-disabled":{"&, &:hover":{color:Qt.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},zt=Qt=>{const{componentCls:Gn,margin:yi,colorBorderSecondary:Ln,horizontalMargin:Si,verticalItemPadding:tr,verticalItemMargin:vi}=Qt;return{[`${Gn}-top, ${Gn}-bottom`]:{flexDirection:"column",[`> ${Gn}-nav, > div > ${Gn}-nav`]:{margin:Si,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Qt.lineWidth}px ${Qt.lineType} ${Ln}`,content:"''"},[`${Gn}-ink-bar`]:{height:Qt.lineWidthBold,"&-animated":{transition:`width ${Qt.motionDurationSlow}, left ${Qt.motionDurationSlow}, right ${Qt.motionDurationSlow}`}},[`${Gn}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:Qt.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:Qt.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:Qt.boxShadowTabsOverflowRight},[`&${Gn}-nav-wrap-ping-left::before`]:{opacity:1},[`&${Gn}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${Gn}-top`]:{[`> ${Gn}-nav, - > div > ${Gn}-nav`]:{"&::before":{bottom:0},[`${Gn}-ink-bar`]:{bottom:0}}},[`${Gn}-bottom`]:{[`> ${Gn}-nav, > div > ${Gn}-nav`]:{order:1,marginTop:`${yi}px`,marginBottom:0,"&::before":{top:0},[`${Gn}-ink-bar`]:{top:0}},[`> ${Gn}-content-holder, > div > ${Gn}-content-holder`]:{order:0}},[`${Gn}-left, ${Gn}-right`]:{[`> ${Gn}-nav, > div > ${Gn}-nav`]:{flexDirection:"column",minWidth:Qt.controlHeight*1.25,[`${Gn}-tab`]:{padding:tr,textAlign:"center"},[`${Gn}-tab + ${Gn}-tab`]:{margin:vi},[`${Gn}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:Qt.controlHeight},"&::before":{top:0,boxShadow:Qt.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:Qt.boxShadowTabsOverflowBottom},[`&${Gn}-nav-wrap-ping-top::before`]:{opacity:1},[`&${Gn}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${Gn}-ink-bar`]:{width:Qt.lineWidthBold,"&-animated":{transition:`height ${Qt.motionDurationSlow}, top ${Qt.motionDurationSlow}`}},[`${Gn}-nav-list, ${Gn}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${Gn}-left`]:{[`> ${Gn}-nav, > div > ${Gn}-nav`]:{[`${Gn}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${Gn}-content-holder, > div > ${Gn}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${Qt.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${Qt.lineWidth}px ${Qt.lineType} ${Qt.colorBorder}`},[`> ${Gn}-content > ${Gn}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:Qt.paddingLG}}}},[`${Gn}-right`]:{[`> ${Gn}-nav, > div > ${Gn}-nav`]:{order:1,[`${Gn}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${Gn}-content-holder, > div > ${Gn}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-Qt.lineWidth},borderRight:{_skip_check_:!0,value:`${Qt.lineWidth}px ${Qt.lineType} ${Qt.colorBorder}`},[`> ${Gn}-content > ${Gn}-tabpane`]:{paddingRight:{_skip_check_:!0,value:Qt.paddingLG}}}}}},pn=Qt=>{const{componentCls:Gn,cardPaddingSM:yi,cardPaddingLG:Ln,horizontalItemPaddingSM:Si,horizontalItemPaddingLG:tr}=Qt;return{[Gn]:{"&-small":{[`> ${Gn}-nav`]:{[`${Gn}-tab`]:{padding:Si,fontSize:Qt.titleFontSizeSM}}},"&-large":{[`> ${Gn}-nav`]:{[`${Gn}-tab`]:{padding:tr,fontSize:Qt.titleFontSizeLG}}}},[`${Gn}-card`]:{[`&${Gn}-small`]:{[`> ${Gn}-nav`]:{[`${Gn}-tab`]:{padding:yi}},[`&${Gn}-bottom`]:{[`> ${Gn}-nav ${Gn}-tab`]:{borderRadius:`0 0 ${Qt.borderRadius}px ${Qt.borderRadius}px`}},[`&${Gn}-top`]:{[`> ${Gn}-nav ${Gn}-tab`]:{borderRadius:`${Qt.borderRadius}px ${Qt.borderRadius}px 0 0`}},[`&${Gn}-right`]:{[`> ${Gn}-nav ${Gn}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Qt.borderRadius}px ${Qt.borderRadius}px 0`}}},[`&${Gn}-left`]:{[`> ${Gn}-nav ${Gn}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Qt.borderRadius}px 0 0 ${Qt.borderRadius}px`}}}},[`&${Gn}-large`]:{[`> ${Gn}-nav`]:{[`${Gn}-tab`]:{padding:Ln}}}}}},_r=Qt=>{const{componentCls:Gn,itemActiveColor:yi,itemHoverColor:Ln,iconCls:Si,tabsHorizontalItemMargin:tr,horizontalItemPadding:vi,itemSelectedColor:Ni,itemColor:kr}=Qt,Qn=`${Gn}-tab`;return{[Qn]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:vi,fontSize:Qt.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:kr,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:yi}},(0,Cr.Qy)(Qt)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-Qt.marginXXS},marginLeft:{_skip_check_:!0,value:Qt.marginXS},color:Qt.colorTextDescription,fontSize:Qt.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${Qt.motionDurationSlow}`,"&:hover":{color:Qt.colorTextHeading}},"&:hover":{color:Ln},[`&${Qn}-active ${Qn}-btn`]:{color:Ni,textShadow:Qt.tabsActiveTextShadow},[`&${Qn}-disabled`]:{color:Qt.colorTextDisabled,cursor:"not-allowed"},[`&${Qn}-disabled ${Qn}-btn, &${Qn}-disabled ${Gn}-remove`]:{"&:focus, &:active":{color:Qt.colorTextDisabled}},[`& ${Qn}-remove ${Si}`]:{margin:0},[Si]:{marginRight:{_skip_check_:!0,value:Qt.marginSM}}},[`${Qn} + ${Qn}`]:{margin:{_skip_check_:!0,value:tr}}}},Gr=Qt=>{const{componentCls:Gn,tabsHorizontalItemMarginRTL:yi,iconCls:Ln,cardGutter:Si}=Qt;return{[`${Gn}-rtl`]:{direction:"rtl",[`${Gn}-nav`]:{[`${Gn}-tab`]:{margin:{_skip_check_:!0,value:yi},[`${Gn}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[Ln]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${Qt.marginSM}px`}},[`${Gn}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${Qt.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${Qt.marginXXS}px`},[Ln]:{margin:0}}}},[`&${Gn}-left`]:{[`> ${Gn}-nav`]:{order:1},[`> ${Gn}-content-holder`]:{order:0}},[`&${Gn}-right`]:{[`> ${Gn}-nav`]:{order:0},[`> ${Gn}-content-holder`]:{order:1}},[`&${Gn}-card${Gn}-top, &${Gn}-card${Gn}-bottom`]:{[`> ${Gn}-nav, > div > ${Gn}-nav`]:{[`${Gn}-tab + ${Gn}-tab`]:{marginRight:{_skip_check_:!0,value:Si},marginLeft:{_skip_check_:!0,value:0}}}}},[`${Gn}-dropdown-rtl`]:{direction:"rtl"},[`${Gn}-menu-item`]:{[`${Gn}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},ui=Qt=>{const{componentCls:Gn,tabsCardPadding:yi,cardHeight:Ln,cardGutter:Si,itemHoverColor:tr,itemActiveColor:vi,colorBorderSecondary:Ni}=Qt;return{[Gn]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Cr.Wf)(Qt)),{display:"flex",[`> ${Gn}-nav, > div > ${Gn}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${Gn}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${Qt.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${Gn}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${Qt.motionDurationSlow}`},[`${Gn}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${Gn}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${Gn}-nav-more`]:{position:"relative",padding:yi,background:"transparent",border:0,color:Qt.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:Qt.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${Gn}-nav-add`]:Object.assign({minWidth:Ln,marginLeft:{_skip_check_:!0,value:Si},padding:`0 ${Qt.paddingXS}px`,background:"transparent",border:`${Qt.lineWidth}px ${Qt.lineType} ${Ni}`,borderRadius:`${Qt.borderRadiusLG}px ${Qt.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:Qt.colorText,transition:`all ${Qt.motionDurationSlow} ${Qt.motionEaseInOut}`,"&:hover":{color:tr},"&:active, &:focus:not(:focus-visible)":{color:vi}},(0,Cr.Qy)(Qt))},[`${Gn}-extra-content`]:{flex:"none"},[`${Gn}-ink-bar`]:{position:"absolute",background:Qt.inkBarColor,pointerEvents:"none"}}),_r(Qt)),{[`${Gn}-content`]:{position:"relative",width:"100%"},[`${Gn}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${Gn}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${Gn}-centered`]:{[`> ${Gn}-nav, > div > ${Gn}-nav`]:{[`${Gn}-nav-wrap`]:{[`&:not([class*='${Gn}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var Ci=(0,qr.Z)("Tabs",Qt=>{const Gn=(0,ii.TS)(Qt,{tabsCardPadding:Qt.cardPadding||`${(Qt.cardHeight-Math.round(Qt.fontSize*Qt.lineHeight))/2-Qt.lineWidth}px ${Qt.padding}px`,dropdownEdgeChildVerticalPadding:Qt.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Qt.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${Qt.horizontalItemGutter}px`});return[pn(Gn),Gr(Gn),zt(Gn),rs(Gn),so(Gn),ui(Gn),Vr(Gn)]},Qt=>{const Gn=Qt.controlHeightLG;return{zIndexPopup:Qt.zIndexPopupBase+50,cardBg:Qt.colorFillAlter,cardHeight:Gn,cardPadding:"",cardPaddingSM:`${Qt.paddingXXS*1.5}px ${Qt.padding}px`,cardPaddingLG:`${Qt.paddingXS}px ${Qt.padding}px ${Qt.paddingXXS*1.5}px`,titleFontSize:Qt.fontSize,titleFontSizeLG:Qt.fontSizeLG,titleFontSizeSM:Qt.fontSize,inkBarColor:Qt.colorPrimary,horizontalMargin:`0 0 ${Qt.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${Qt.paddingSM}px 0`,horizontalItemPaddingSM:`${Qt.paddingXS}px 0`,horizontalItemPaddingLG:`${Qt.padding}px 0`,verticalItemPadding:`${Qt.paddingXS}px ${Qt.paddingLG}px`,verticalItemMargin:`${Qt.margin}px 0 0 0`,itemColor:Qt.colorText,itemSelectedColor:Qt.colorPrimary,itemHoverColor:Qt.colorPrimaryHover,itemActiveColor:Qt.colorPrimaryActive,cardGutter:Qt.marginXXS/2}}),Kr=()=>null,ti=function(Qt,Gn){var yi={};for(var Ln in Qt)Object.prototype.hasOwnProperty.call(Qt,Ln)&&Gn.indexOf(Ln)<0&&(yi[Ln]=Qt[Ln]);if(Qt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Si=0,Ln=Object.getOwnPropertySymbols(Qt);Si{const{type:Gn,className:yi,rootClassName:Ln,size:Si,onEdit:tr,hideAdd:vi,centered:Ni,addIcon:kr,popupClassName:Qn,children:ds,items:_a,animated:da,style:zs,indicatorSize:ja}=Qt,Co=ti(Qt,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:dl,moreIcon:Fr=y.createElement(b.Z,null)}=Co,{direction:fs,tabs:jo,getPrefixCls:Es,getPopupContainer:xs}=y.useContext(Hr.E_),Za=Es("tabs",dl),[tl,xl]=Ci(Za);let Qa;Gn==="editable-card"&&(Qa={onEdit:(tt,dt)=>{let{key:vt,event:ze}=dt;tr==null||tr(tt==="add"?ze:vt,tt)},removeIcon:y.createElement(A.Z,null),addIcon:kr||y.createElement(I,null),showAdd:vi!==!0});const si=Es(),co=li(_a,ds),dn=na(Za,da),Dn=(0,Jr.Z)(Si),Nn=Object.assign(Object.assign({},jo==null?void 0:jo.style),zs);return tl(y.createElement(xn,Object.assign({direction:fs,getPopupContainer:xs,moreTransitionName:`${si}-slide-up`},Co,{items:co,className:f()({[`${Za}-${Dn}`]:Dn,[`${Za}-card`]:["card","editable-card"].includes(Gn),[`${Za}-editable-card`]:Gn==="editable-card",[`${Za}-centered`]:Ni},jo==null?void 0:jo.className,yi,Ln,xl),popupClassName:f()(Qn,xl),style:Nn,editable:Qa,moreIcon:Fr,prefixCls:Za,animated:dn,indicatorSize:ja!=null?ja:jo==null?void 0:jo.indicatorSize})))};Wi.TabPane=Kr;var Tr=Wi},33083:function(nt,V,m){"use strict";m.d(V,{Mj:function(){return w},uH:function(){return k},u_:function(){return N}});var y=m(67294),A=m(85731),b=m(67164),z=m(2790);const k=(0,A.jG)(b.Z),N={token:z.Z,override:{override:z.Z},hashed:!0},w=y.createContext(N)},9361:function(nt,V,m){"use strict";m.d(V,{Z:function(){return ge}});var y=m(85731),A=m(67164),b=m(2790),z=m(1393),N=ye=>{const xe=ye!=null&&ye.algorithm?(0,y.jG)(ye.algorithm):(0,y.jG)(A.Z),be=Object.assign(Object.assign({},b.Z),ye==null?void 0:ye.token);return(0,y.t2)(be,{override:ye==null?void 0:ye.token},xe,z.Z)},w=m(25976),I=m(33083),C=m(372);function f(ye){const{sizeUnit:xe,sizeStep:be}=ye,Ie=be-2;return{sizeXXL:xe*(Ie+10),sizeXL:xe*(Ie+6),sizeLG:xe*(Ie+2),sizeMD:xe*(Ie+2),sizeMS:xe*(Ie+1),size:xe*Ie,sizeSM:xe*Ie,sizeXS:xe*(Ie-1),sizeXXS:xe*(Ie-1)}}var S=m(98378),j=(ye,xe)=>{const be=xe!=null?xe:(0,A.Z)(ye),Ie=be.fontSizeSM,me=be.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},be),f(xe!=null?xe:ye)),(0,S.Z)(Ie)),{controlHeight:me}),(0,C.Z)(Object.assign(Object.assign({},be),{controlHeight:me})))},re=m(16397),J=m(57),ie=m(10274);const de=(ye,xe)=>new ie.C(ye).setAlpha(xe).toRgbString(),he=(ye,xe)=>new ie.C(ye).lighten(xe).toHexString(),fe=ye=>{const xe=(0,re.R_)(ye,{theme:"dark"});return{1:xe[0],2:xe[1],3:xe[2],4:xe[3],5:xe[6],6:xe[5],7:xe[4],8:xe[6],9:xe[5],10:xe[4]}},ke=(ye,xe)=>{const be=ye||"#000",Ie=xe||"#fff";return{colorBgBase:be,colorTextBase:Ie,colorText:de(Ie,.85),colorTextSecondary:de(Ie,.65),colorTextTertiary:de(Ie,.45),colorTextQuaternary:de(Ie,.25),colorFill:de(Ie,.18),colorFillSecondary:de(Ie,.12),colorFillTertiary:de(Ie,.08),colorFillQuaternary:de(Ie,.04),colorBgElevated:he(be,12),colorBgContainer:he(be,8),colorBgLayout:he(be,0),colorBgSpotlight:he(be,26),colorBgBlur:de(Ie,.04),colorBorder:he(be,26),colorBorderSecondary:he(be,19)}};var Ne=(ye,xe)=>{const be=Object.keys(b.M).map(me=>{const We=(0,re.R_)(ye[me],{theme:"dark"});return new Array(10).fill(1).reduce((Ce,Pt,ct)=>(Ce[`${me}-${ct+1}`]=We[ct],Ce[`${me}${ct+1}`]=We[ct],Ce),{})}).reduce((me,We)=>(me=Object.assign(Object.assign({},me),We),me),{}),Ie=xe!=null?xe:(0,A.Z)(ye);return Object.assign(Object.assign(Object.assign({},Ie),be),(0,J.Z)(ye,{generateColorPalettes:fe,generateNeutralColorPalettes:ke}))};function Ee(){const[ye,xe,be]=(0,w.Z)();return{theme:ye,token:xe,hashId:be}}var ge={defaultConfig:I.u_,defaultSeed:I.u_.token,useToken:Ee,defaultAlgorithm:A.Z,darkAlgorithm:Ne,compactAlgorithm:j,getDesignToken:N}},8796:function(nt,V,m){"use strict";m.d(V,{i:function(){return y}});const y=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},67164:function(nt,V,m){"use strict";m.d(V,{Z:function(){return J}});var y=m(16397),A=m(372);function b(ie){const{sizeUnit:de,sizeStep:he}=ie;return{sizeXXL:de*(he+8),sizeXL:de*(he+4),sizeLG:de*(he+2),sizeMD:de*(he+1),sizeMS:de*he,size:de*he,sizeSM:de*(he-1),sizeXS:de*(he-2),sizeXXS:de*(he-3)}}var z=m(2790),k=m(57),w=ie=>{let de=ie,he=ie,fe=ie,ke=ie;return ie<6&&ie>=5?de=ie+1:ie<16&&ie>=6?de=ie+2:ie>=16&&(de=16),ie<7&&ie>=5?he=4:ie<8&&ie>=7?he=5:ie<14&&ie>=8?he=6:ie<16&&ie>=14?he=7:ie>=16&&(he=8),ie<6&&ie>=2?fe=1:ie>=6&&(fe=2),ie>4&&ie<8?ke=4:ie>=8&&(ke=6),{borderRadius:ie,borderRadiusXS:fe,borderRadiusSM:he,borderRadiusLG:de,borderRadiusOuter:ke}};function I(ie){const{motionUnit:de,motionBase:he,borderRadius:fe,lineWidth:ke}=ie;return Object.assign({motionDurationFast:`${(he+de).toFixed(1)}s`,motionDurationMid:`${(he+de*2).toFixed(1)}s`,motionDurationSlow:`${(he+de*3).toFixed(1)}s`,lineWidthBold:ke+1},w(fe))}var C=m(10274);const f=(ie,de)=>new C.C(ie).setAlpha(de).toRgbString(),S=(ie,de)=>new C.C(ie).darken(de).toHexString(),P=ie=>{const de=(0,y.R_)(ie);return{1:de[0],2:de[1],3:de[2],4:de[3],5:de[4],6:de[5],7:de[6],8:de[4],9:de[5],10:de[6]}},j=(ie,de)=>{const he=ie||"#fff",fe=de||"#000";return{colorBgBase:he,colorTextBase:fe,colorText:f(fe,.88),colorTextSecondary:f(fe,.65),colorTextTertiary:f(fe,.45),colorTextQuaternary:f(fe,.25),colorFill:f(fe,.15),colorFillSecondary:f(fe,.06),colorFillTertiary:f(fe,.04),colorFillQuaternary:f(fe,.02),colorBgLayout:S(he,4),colorBgContainer:S(he,0),colorBgElevated:S(he,0),colorBgSpotlight:f(fe,.85),colorBgBlur:"transparent",colorBorder:S(he,15),colorBorderSecondary:S(he,6)}};var re=m(98378);function J(ie){const de=Object.keys(z.M).map(he=>{const fe=(0,y.R_)(ie[he]);return new Array(10).fill(1).reduce((ke,we,Ne)=>(ke[`${he}-${Ne+1}`]=fe[Ne],ke[`${he}${Ne+1}`]=fe[Ne],ke),{})}).reduce((he,fe)=>(he=Object.assign(Object.assign({},he),fe),he),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ie),de),(0,k.Z)(ie,{generateColorPalettes:P,generateNeutralColorPalettes:j})),(0,re.Z)(ie.fontSize)),b(ie)),(0,A.Z)(ie)),I(ie))}},2790:function(nt,V,m){"use strict";m.d(V,{M:function(){return y}});const y={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},A=Object.assign(Object.assign({},y),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, + > div > ${Gn}-nav`]:{"&::before":{bottom:0},[`${Gn}-ink-bar`]:{bottom:0}}},[`${Gn}-bottom`]:{[`> ${Gn}-nav, > div > ${Gn}-nav`]:{order:1,marginTop:`${yi}px`,marginBottom:0,"&::before":{top:0},[`${Gn}-ink-bar`]:{top:0}},[`> ${Gn}-content-holder, > div > ${Gn}-content-holder`]:{order:0}},[`${Gn}-left, ${Gn}-right`]:{[`> ${Gn}-nav, > div > ${Gn}-nav`]:{flexDirection:"column",minWidth:Qt.controlHeight*1.25,[`${Gn}-tab`]:{padding:tr,textAlign:"center"},[`${Gn}-tab + ${Gn}-tab`]:{margin:vi},[`${Gn}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:Qt.controlHeight},"&::before":{top:0,boxShadow:Qt.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:Qt.boxShadowTabsOverflowBottom},[`&${Gn}-nav-wrap-ping-top::before`]:{opacity:1},[`&${Gn}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${Gn}-ink-bar`]:{width:Qt.lineWidthBold,"&-animated":{transition:`height ${Qt.motionDurationSlow}, top ${Qt.motionDurationSlow}`}},[`${Gn}-nav-list, ${Gn}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${Gn}-left`]:{[`> ${Gn}-nav, > div > ${Gn}-nav`]:{[`${Gn}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${Gn}-content-holder, > div > ${Gn}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${Qt.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${Qt.lineWidth}px ${Qt.lineType} ${Qt.colorBorder}`},[`> ${Gn}-content > ${Gn}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:Qt.paddingLG}}}},[`${Gn}-right`]:{[`> ${Gn}-nav, > div > ${Gn}-nav`]:{order:1,[`${Gn}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${Gn}-content-holder, > div > ${Gn}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-Qt.lineWidth},borderRight:{_skip_check_:!0,value:`${Qt.lineWidth}px ${Qt.lineType} ${Qt.colorBorder}`},[`> ${Gn}-content > ${Gn}-tabpane`]:{paddingRight:{_skip_check_:!0,value:Qt.paddingLG}}}}}},pn=Qt=>{const{componentCls:Gn,cardPaddingSM:yi,cardPaddingLG:Ln,horizontalItemPaddingSM:Si,horizontalItemPaddingLG:tr}=Qt;return{[Gn]:{"&-small":{[`> ${Gn}-nav`]:{[`${Gn}-tab`]:{padding:Si,fontSize:Qt.titleFontSizeSM}}},"&-large":{[`> ${Gn}-nav`]:{[`${Gn}-tab`]:{padding:tr,fontSize:Qt.titleFontSizeLG}}}},[`${Gn}-card`]:{[`&${Gn}-small`]:{[`> ${Gn}-nav`]:{[`${Gn}-tab`]:{padding:yi}},[`&${Gn}-bottom`]:{[`> ${Gn}-nav ${Gn}-tab`]:{borderRadius:`0 0 ${Qt.borderRadius}px ${Qt.borderRadius}px`}},[`&${Gn}-top`]:{[`> ${Gn}-nav ${Gn}-tab`]:{borderRadius:`${Qt.borderRadius}px ${Qt.borderRadius}px 0 0`}},[`&${Gn}-right`]:{[`> ${Gn}-nav ${Gn}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Qt.borderRadius}px ${Qt.borderRadius}px 0`}}},[`&${Gn}-left`]:{[`> ${Gn}-nav ${Gn}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Qt.borderRadius}px 0 0 ${Qt.borderRadius}px`}}}},[`&${Gn}-large`]:{[`> ${Gn}-nav`]:{[`${Gn}-tab`]:{padding:Ln}}}}}},br=Qt=>{const{componentCls:Gn,itemActiveColor:yi,itemHoverColor:Ln,iconCls:Si,tabsHorizontalItemMargin:tr,horizontalItemPadding:vi,itemSelectedColor:Ni,itemColor:kr}=Qt,qn=`${Gn}-tab`;return{[qn]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:vi,fontSize:Qt.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:kr,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:yi}},(0,wr.Qy)(Qt)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-Qt.marginXXS},marginLeft:{_skip_check_:!0,value:Qt.marginXS},color:Qt.colorTextDescription,fontSize:Qt.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${Qt.motionDurationSlow}`,"&:hover":{color:Qt.colorTextHeading}},"&:hover":{color:Ln},[`&${qn}-active ${qn}-btn`]:{color:Ni,textShadow:Qt.tabsActiveTextShadow},[`&${qn}-disabled`]:{color:Qt.colorTextDisabled,cursor:"not-allowed"},[`&${qn}-disabled ${qn}-btn, &${qn}-disabled ${Gn}-remove`]:{"&:focus, &:active":{color:Qt.colorTextDisabled}},[`& ${qn}-remove ${Si}`]:{margin:0},[Si]:{marginRight:{_skip_check_:!0,value:Qt.marginSM}}},[`${qn} + ${qn}`]:{margin:{_skip_check_:!0,value:tr}}}},Gr=Qt=>{const{componentCls:Gn,tabsHorizontalItemMarginRTL:yi,iconCls:Ln,cardGutter:Si}=Qt;return{[`${Gn}-rtl`]:{direction:"rtl",[`${Gn}-nav`]:{[`${Gn}-tab`]:{margin:{_skip_check_:!0,value:yi},[`${Gn}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[Ln]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${Qt.marginSM}px`}},[`${Gn}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${Qt.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${Qt.marginXXS}px`},[Ln]:{margin:0}}}},[`&${Gn}-left`]:{[`> ${Gn}-nav`]:{order:1},[`> ${Gn}-content-holder`]:{order:0}},[`&${Gn}-right`]:{[`> ${Gn}-nav`]:{order:0},[`> ${Gn}-content-holder`]:{order:1}},[`&${Gn}-card${Gn}-top, &${Gn}-card${Gn}-bottom`]:{[`> ${Gn}-nav, > div > ${Gn}-nav`]:{[`${Gn}-tab + ${Gn}-tab`]:{marginRight:{_skip_check_:!0,value:Si},marginLeft:{_skip_check_:!0,value:0}}}}},[`${Gn}-dropdown-rtl`]:{direction:"rtl"},[`${Gn}-menu-item`]:{[`${Gn}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},ui=Qt=>{const{componentCls:Gn,tabsCardPadding:yi,cardHeight:Ln,cardGutter:Si,itemHoverColor:tr,itemActiveColor:vi,colorBorderSecondary:Ni}=Qt;return{[Gn]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,wr.Wf)(Qt)),{display:"flex",[`> ${Gn}-nav, > div > ${Gn}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${Gn}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${Qt.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${Gn}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${Qt.motionDurationSlow}`},[`${Gn}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${Gn}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${Gn}-nav-more`]:{position:"relative",padding:yi,background:"transparent",border:0,color:Qt.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:Qt.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${Gn}-nav-add`]:Object.assign({minWidth:Ln,marginLeft:{_skip_check_:!0,value:Si},padding:`0 ${Qt.paddingXS}px`,background:"transparent",border:`${Qt.lineWidth}px ${Qt.lineType} ${Ni}`,borderRadius:`${Qt.borderRadiusLG}px ${Qt.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:Qt.colorText,transition:`all ${Qt.motionDurationSlow} ${Qt.motionEaseInOut}`,"&:hover":{color:tr},"&:active, &:focus:not(:focus-visible)":{color:vi}},(0,wr.Qy)(Qt))},[`${Gn}-extra-content`]:{flex:"none"},[`${Gn}-ink-bar`]:{position:"absolute",background:Qt.inkBarColor,pointerEvents:"none"}}),br(Qt)),{[`${Gn}-content`]:{position:"relative",width:"100%"},[`${Gn}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${Gn}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${Gn}-centered`]:{[`> ${Gn}-nav, > div > ${Gn}-nav`]:{[`${Gn}-nav-wrap`]:{[`&:not([class*='${Gn}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var xi=(0,qr.Z)("Tabs",Qt=>{const Gn=(0,ii.TS)(Qt,{tabsCardPadding:Qt.cardPadding||`${(Qt.cardHeight-Math.round(Qt.fontSize*Qt.lineHeight))/2-Qt.lineWidth}px ${Qt.padding}px`,dropdownEdgeChildVerticalPadding:Qt.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Qt.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${Qt.horizontalItemGutter}px`});return[pn(Gn),Gr(Gn),zt(Gn),rs(Gn),so(Gn),ui(Gn),Vr(Gn)]},Qt=>{const Gn=Qt.controlHeightLG;return{zIndexPopup:Qt.zIndexPopupBase+50,cardBg:Qt.colorFillAlter,cardHeight:Gn,cardPadding:"",cardPaddingSM:`${Qt.paddingXXS*1.5}px ${Qt.padding}px`,cardPaddingLG:`${Qt.paddingXS}px ${Qt.padding}px ${Qt.paddingXXS*1.5}px`,titleFontSize:Qt.fontSize,titleFontSizeLG:Qt.fontSizeLG,titleFontSizeSM:Qt.fontSize,inkBarColor:Qt.colorPrimary,horizontalMargin:`0 0 ${Qt.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${Qt.paddingSM}px 0`,horizontalItemPaddingSM:`${Qt.paddingXS}px 0`,horizontalItemPaddingLG:`${Qt.padding}px 0`,verticalItemPadding:`${Qt.paddingXS}px ${Qt.paddingLG}px`,verticalItemMargin:`${Qt.margin}px 0 0 0`,itemColor:Qt.colorText,itemSelectedColor:Qt.colorPrimary,itemHoverColor:Qt.colorPrimaryHover,itemActiveColor:Qt.colorPrimaryActive,cardGutter:Qt.marginXXS/2}}),Kr=()=>null,ti=function(Qt,Gn){var yi={};for(var Ln in Qt)Object.prototype.hasOwnProperty.call(Qt,Ln)&&Gn.indexOf(Ln)<0&&(yi[Ln]=Qt[Ln]);if(Qt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Si=0,Ln=Object.getOwnPropertySymbols(Qt);Si{const{type:Gn,className:yi,rootClassName:Ln,size:Si,onEdit:tr,hideAdd:vi,centered:Ni,addIcon:kr,popupClassName:qn,children:ds,items:_a,animated:da,style:zs,indicatorSize:Wa}=Qt,Co=ti(Qt,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:cl,moreIcon:Fr=y.createElement(b.Z,null)}=Co,{direction:fs,tabs:jo,getPrefixCls:Es,getPopupContainer:xs}=y.useContext(Hr.E_),Za=Es("tabs",cl),[tl,xl]=xi(Za);let Qa;Gn==="editable-card"&&(Qa={onEdit:(tt,ht)=>{let{key:vt,event:Fe}=ht;tr==null||tr(tt==="add"?Fe:vt,tt)},removeIcon:y.createElement(I.Z,null),addIcon:kr||y.createElement(A,null),showAdd:vi!==!0});const si=Es(),co=li(_a,ds),dn=na(Za,da),An=(0,Jr.Z)(Si),Nn=Object.assign(Object.assign({},jo==null?void 0:jo.style),zs);return tl(y.createElement(xn,Object.assign({direction:fs,getPopupContainer:xs,moreTransitionName:`${si}-slide-up`},Co,{items:co,className:f()({[`${Za}-${An}`]:An,[`${Za}-card`]:["card","editable-card"].includes(Gn),[`${Za}-editable-card`]:Gn==="editable-card",[`${Za}-centered`]:Ni},jo==null?void 0:jo.className,yi,Ln,xl),popupClassName:f()(qn,xl),style:Nn,editable:Qa,moreIcon:Fr,prefixCls:Za,animated:dn,indicatorSize:Wa!=null?Wa:jo==null?void 0:jo.indicatorSize})))};ji.TabPane=Kr;var Tr=ji},13803:function(nt,V,m){"use strict";m.d(V,{Mj:function(){return w},uH:function(){return k},u_:function(){return N}});var y=m(77617),I=m(84608),b=m(75779),z=m(73979);const k=(0,I.jG)(b.Z),N={token:z.Z,override:{override:z.Z},hashed:!0},w=y.createContext(N)},1563:function(nt,V,m){"use strict";m.d(V,{Z:function(){return ve}});var y=m(84608),I=m(75779),b=m(73979),z=m(67152),N=ye=>{const we=ye!=null&&ye.algorithm?(0,y.jG)(ye.algorithm):(0,y.jG)(I.Z),Ce=Object.assign(Object.assign({},b.Z),ye==null?void 0:ye.token);return(0,y.t2)(Ce,{override:ye==null?void 0:ye.token},we,z.Z)},w=m(99737),A=m(13803),C=m(83577);function f(ye){const{sizeUnit:we,sizeStep:Ce}=ye,Ae=Ce-2;return{sizeXXL:we*(Ae+10),sizeXL:we*(Ae+6),sizeLG:we*(Ae+2),sizeMD:we*(Ae+2),sizeMS:we*(Ae+1),size:we*Ae,sizeSM:we*Ae,sizeXS:we*(Ae-1),sizeXXS:we*(Ae-1)}}var S=m(10360),W=(ye,we)=>{const Ce=we!=null?we:(0,I.Z)(ye),Ae=Ce.fontSizeSM,me=Ce.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ce),f(we!=null?we:ye)),(0,S.Z)(Ae)),{controlHeight:me}),(0,C.Z)(Object.assign(Object.assign({},Ce),{controlHeight:me})))},ne=m(63511),re=m(38087),ce=m(64993);const pe=(ye,we)=>new ce.C(ye).setAlpha(we).toRgbString(),he=(ye,we)=>new ce.C(ye).lighten(we).toHexString(),fe=ye=>{const we=(0,ne.R_)(ye,{theme:"dark"});return{1:we[0],2:we[1],3:we[2],4:we[3],5:we[6],6:we[5],7:we[4],8:we[6],9:we[5],10:we[4]}},Be=(ye,we)=>{const Ce=ye||"#000",Ae=we||"#fff";return{colorBgBase:Ce,colorTextBase:Ae,colorText:pe(Ae,.85),colorTextSecondary:pe(Ae,.65),colorTextTertiary:pe(Ae,.45),colorTextQuaternary:pe(Ae,.25),colorFill:pe(Ae,.18),colorFillSecondary:pe(Ae,.12),colorFillTertiary:pe(Ae,.08),colorFillQuaternary:pe(Ae,.04),colorBgElevated:he(Ce,12),colorBgContainer:he(Ce,8),colorBgLayout:he(Ce,0),colorBgSpotlight:he(Ce,26),colorBgBlur:pe(Ae,.04),colorBorder:he(Ce,26),colorBorderSecondary:he(Ce,19)}};var We=(ye,we)=>{const Ce=Object.keys(b.M).map(me=>{const je=(0,ne.R_)(ye[me],{theme:"dark"});return new Array(10).fill(1).reduce((xe,Pt,ct)=>(xe[`${me}-${ct+1}`]=je[ct],xe[`${me}${ct+1}`]=je[ct],xe),{})}).reduce((me,je)=>(me=Object.assign(Object.assign({},me),je),me),{}),Ae=we!=null?we:(0,I.Z)(ye);return Object.assign(Object.assign(Object.assign({},Ae),Ce),(0,re.Z)(ye,{generateColorPalettes:fe,generateNeutralColorPalettes:Be}))};function De(){const[ye,we,Ce]=(0,w.Z)();return{theme:ye,token:we,hashId:Ce}}var ve={defaultConfig:A.u_,defaultSeed:A.u_.token,useToken:De,defaultAlgorithm:I.Z,darkAlgorithm:We,compactAlgorithm:W,getDesignToken:N}},35237:function(nt,V,m){"use strict";m.d(V,{i:function(){return y}});const y=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},75779:function(nt,V,m){"use strict";m.d(V,{Z:function(){return re}});var y=m(63511),I=m(83577);function b(ce){const{sizeUnit:pe,sizeStep:he}=ce;return{sizeXXL:pe*(he+8),sizeXL:pe*(he+4),sizeLG:pe*(he+2),sizeMD:pe*(he+1),sizeMS:pe*he,size:pe*he,sizeSM:pe*(he-1),sizeXS:pe*(he-2),sizeXXS:pe*(he-3)}}var z=m(73979),k=m(38087),w=ce=>{let pe=ce,he=ce,fe=ce,Be=ce;return ce<6&&ce>=5?pe=ce+1:ce<16&&ce>=6?pe=ce+2:ce>=16&&(pe=16),ce<7&&ce>=5?he=4:ce<8&&ce>=7?he=5:ce<14&&ce>=8?he=6:ce<16&&ce>=14?he=7:ce>=16&&(he=8),ce<6&&ce>=2?fe=1:ce>=6&&(fe=2),ce>4&&ce<8?Be=4:ce>=8&&(Be=6),{borderRadius:ce,borderRadiusXS:fe,borderRadiusSM:he,borderRadiusLG:pe,borderRadiusOuter:Be}};function A(ce){const{motionUnit:pe,motionBase:he,borderRadius:fe,lineWidth:Be}=ce;return Object.assign({motionDurationFast:`${(he+pe).toFixed(1)}s`,motionDurationMid:`${(he+pe*2).toFixed(1)}s`,motionDurationSlow:`${(he+pe*3).toFixed(1)}s`,lineWidthBold:Be+1},w(fe))}var C=m(64993);const f=(ce,pe)=>new C.C(ce).setAlpha(pe).toRgbString(),S=(ce,pe)=>new C.C(ce).darken(pe).toHexString(),P=ce=>{const pe=(0,y.R_)(ce);return{1:pe[0],2:pe[1],3:pe[2],4:pe[3],5:pe[4],6:pe[5],7:pe[6],8:pe[4],9:pe[5],10:pe[6]}},W=(ce,pe)=>{const he=ce||"#fff",fe=pe||"#000";return{colorBgBase:he,colorTextBase:fe,colorText:f(fe,.88),colorTextSecondary:f(fe,.65),colorTextTertiary:f(fe,.45),colorTextQuaternary:f(fe,.25),colorFill:f(fe,.15),colorFillSecondary:f(fe,.06),colorFillTertiary:f(fe,.04),colorFillQuaternary:f(fe,.02),colorBgLayout:S(he,4),colorBgContainer:S(he,0),colorBgElevated:S(he,0),colorBgSpotlight:f(fe,.85),colorBgBlur:"transparent",colorBorder:S(he,15),colorBorderSecondary:S(he,6)}};var ne=m(10360);function re(ce){const pe=Object.keys(z.M).map(he=>{const fe=(0,y.R_)(ce[he]);return new Array(10).fill(1).reduce((Be,Ie,We)=>(Be[`${he}-${We+1}`]=fe[We],Be[`${he}${We+1}`]=fe[We],Be),{})}).reduce((he,fe)=>(he=Object.assign(Object.assign({},he),fe),he),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ce),pe),(0,k.Z)(ce,{generateColorPalettes:P,generateNeutralColorPalettes:W})),(0,ne.Z)(ce.fontSize)),b(ce)),(0,I.Z)(ce)),A(ce))}},73979:function(nt,V,m){"use strict";m.d(V,{M:function(){return y}});const y={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},I=Object.assign(Object.assign({},y),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', -'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});V.Z=A},57:function(nt,V,m){"use strict";m.d(V,{Z:function(){return A}});var y=m(10274);function A(b,z){let{generateColorPalettes:k,generateNeutralColorPalettes:N}=z;const{colorSuccess:w,colorWarning:I,colorError:C,colorInfo:f,colorPrimary:S,colorBgBase:P,colorTextBase:j}=b,re=k(S),J=k(w),ie=k(I),de=k(C),he=k(f),fe=N(P,j),ke=b.colorLink||b.colorInfo,we=k(ke);return Object.assign(Object.assign({},fe),{colorPrimaryBg:re[1],colorPrimaryBgHover:re[2],colorPrimaryBorder:re[3],colorPrimaryBorderHover:re[4],colorPrimaryHover:re[5],colorPrimary:re[6],colorPrimaryActive:re[7],colorPrimaryTextHover:re[8],colorPrimaryText:re[9],colorPrimaryTextActive:re[10],colorSuccessBg:J[1],colorSuccessBgHover:J[2],colorSuccessBorder:J[3],colorSuccessBorderHover:J[4],colorSuccessHover:J[4],colorSuccess:J[6],colorSuccessActive:J[7],colorSuccessTextHover:J[8],colorSuccessText:J[9],colorSuccessTextActive:J[10],colorErrorBg:de[1],colorErrorBgHover:de[2],colorErrorBorder:de[3],colorErrorBorderHover:de[4],colorErrorHover:de[5],colorError:de[6],colorErrorActive:de[7],colorErrorTextHover:de[8],colorErrorText:de[9],colorErrorTextActive:de[10],colorWarningBg:ie[1],colorWarningBgHover:ie[2],colorWarningBorder:ie[3],colorWarningBorderHover:ie[4],colorWarningHover:ie[4],colorWarning:ie[6],colorWarningActive:ie[7],colorWarningTextHover:ie[8],colorWarningText:ie[9],colorWarningTextActive:ie[10],colorInfoBg:he[1],colorInfoBgHover:he[2],colorInfoBorder:he[3],colorInfoBorderHover:he[4],colorInfoHover:he[4],colorInfo:he[6],colorInfoActive:he[7],colorInfoTextHover:he[8],colorInfoText:he[9],colorInfoTextActive:he[10],colorLinkHover:we[4],colorLink:we[6],colorLinkActive:we[7],colorBgMask:new y.C("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}},372:function(nt,V){"use strict";const m=y=>{const{controlHeight:A}=y;return{controlHeightSM:A*.75,controlHeightXS:A*.5,controlHeightLG:A*1.25}};V.Z=m},98378:function(nt,V,m){"use strict";m.d(V,{Z:function(){return b}});function y(z){const k=new Array(10).fill(null).map((N,w)=>{const I=w-1,C=z*Math.pow(2.71828,I/5),f=w>1?Math.floor(C):Math.ceil(C);return Math.floor(f/2)*2});return k[1]=z,k.map(N=>{const w=N+8;return{size:N,lineHeight:w/N}})}var b=z=>{const k=y(z),N=k.map(I=>I.size),w=k.map(I=>I.lineHeight);return{fontSizeSM:N[0],fontSize:N[1],fontSizeLG:N[2],fontSizeXL:N[3],fontSizeHeading1:N[6],fontSizeHeading2:N[5],fontSizeHeading3:N[4],fontSizeHeading4:N[3],fontSizeHeading5:N[2],lineHeight:w[1],lineHeightLG:w[2],lineHeightSM:w[0],lineHeightHeading1:w[6],lineHeightHeading2:w[5],lineHeightHeading3:w[4],lineHeightHeading4:w[3],lineHeightHeading5:w[2]}}},25976:function(nt,V,m){"use strict";m.d(V,{Z:function(){return f}});var y=m(67294),A=m(85731),b="5.10.1",z=b,k=m(33083),N=m(2790),w=m(1393),I=function(S,P){var j={};for(var re in S)Object.prototype.hasOwnProperty.call(S,re)&&P.indexOf(re)<0&&(j[re]=S[re]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var J=0,re=Object.getOwnPropertySymbols(S);J{const re=j.getDerivativeToken(S),{override:J}=P,ie=I(P,["override"]);let de=Object.assign(Object.assign({},re),{override:J});return de=(0,w.Z)(de),ie&&Object.entries(ie).forEach(he=>{let[fe,ke]=he;const{theme:we}=ke,Ne=I(ke,["theme"]);let Ee=Ne;we&&(Ee=C(Object.assign(Object.assign({},de),Ne),{override:Ne},we)),de[fe]=Ee}),de};function f(){const{token:S,hashed:P,theme:j,override:re}=y.useContext(k.Mj),J=`${z}-${P||""}`,ie=j||k.uH,[de,he]=(0,A.fp)(ie,[N.Z,S],{salt:J,override:re,getComputedToken:C,formatToken:w.Z});return[ie,de,P?he:""]}},1393:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(10274),A=m(2790);function b(I){return I>=0&&I<=255}function z(I,C){const{r:f,g:S,b:P,a:j}=new y.C(I).toRgb();if(j<1)return I;const{r:re,g:J,b:ie}=new y.C(C).toRgb();for(let de=.01;de<=1;de+=.01){const he=Math.round((f-re*(1-de))/de),fe=Math.round((S-J*(1-de))/de),ke=Math.round((P-ie*(1-de))/de);if(b(he)&&b(fe)&&b(ke))return new y.C({r:he,g:fe,b:ke,a:Math.round(de*100)/100}).toRgbString()}return new y.C({r:f,g:S,b:P,a:1}).toRgbString()}var k=z,N=function(I,C){var f={};for(var S in I)Object.prototype.hasOwnProperty.call(I,S)&&C.indexOf(S)<0&&(f[S]=I[S]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var P=0,S=Object.getOwnPropertySymbols(I);P{delete S[ke]});const P=Object.assign(Object.assign({},f),S),j=480,re=576,J=768,ie=992,de=1200,he=1600;if(P.motion===!1){const ke="0s";P.motionDurationFast=ke,P.motionDurationMid=ke,P.motionDurationSlow=ke}return Object.assign(Object.assign(Object.assign({},P),{colorFillContent:P.colorFillSecondary,colorFillContentHover:P.colorFill,colorFillAlter:P.colorFillQuaternary,colorBgContainerDisabled:P.colorFillTertiary,colorBorderBg:P.colorBgContainer,colorSplit:k(P.colorBorderSecondary,P.colorBgContainer),colorTextPlaceholder:P.colorTextQuaternary,colorTextDisabled:P.colorTextQuaternary,colorTextHeading:P.colorText,colorTextLabel:P.colorTextSecondary,colorTextDescription:P.colorTextTertiary,colorTextLightSolid:P.colorWhite,colorHighlight:P.colorError,colorBgTextHover:P.colorFillSecondary,colorBgTextActive:P.colorFill,colorIcon:P.colorTextTertiary,colorIconHover:P.colorText,colorErrorOutline:k(P.colorErrorBg,P.colorBgContainer),colorWarningOutline:k(P.colorWarningBg,P.colorBgContainer),fontSizeIcon:P.fontSizeSM,lineWidthFocus:P.lineWidth*4,lineWidth:P.lineWidth,controlOutlineWidth:P.lineWidth*2,controlInteractiveSize:P.controlHeight/2,controlItemBgHover:P.colorFillTertiary,controlItemBgActive:P.colorPrimaryBg,controlItemBgActiveHover:P.colorPrimaryBgHover,controlItemBgActiveDisabled:P.colorFill,controlTmpOutline:P.colorFillQuaternary,controlOutline:k(P.colorPrimaryBg,P.colorBgContainer),lineType:P.lineType,borderRadius:P.borderRadius,borderRadiusXS:P.borderRadiusXS,borderRadiusSM:P.borderRadiusSM,borderRadiusLG:P.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:P.sizeXXS,paddingXS:P.sizeXS,paddingSM:P.sizeSM,padding:P.size,paddingMD:P.sizeMD,paddingLG:P.sizeLG,paddingXL:P.sizeXL,paddingContentHorizontalLG:P.sizeLG,paddingContentVerticalLG:P.sizeMS,paddingContentHorizontal:P.sizeMS,paddingContentVertical:P.sizeSM,paddingContentHorizontalSM:P.size,paddingContentVerticalSM:P.sizeXS,marginXXS:P.sizeXXS,marginXS:P.sizeXS,marginSM:P.sizeSM,margin:P.size,marginMD:P.sizeMD,marginLG:P.sizeLG,marginXL:P.sizeXL,marginXXL:P.sizeXXL,boxShadow:` +'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});V.Z=I},38087:function(nt,V,m){"use strict";m.d(V,{Z:function(){return I}});var y=m(64993);function I(b,z){let{generateColorPalettes:k,generateNeutralColorPalettes:N}=z;const{colorSuccess:w,colorWarning:A,colorError:C,colorInfo:f,colorPrimary:S,colorBgBase:P,colorTextBase:W}=b,ne=k(S),re=k(w),ce=k(A),pe=k(C),he=k(f),fe=N(P,W),Be=b.colorLink||b.colorInfo,Ie=k(Be);return Object.assign(Object.assign({},fe),{colorPrimaryBg:ne[1],colorPrimaryBgHover:ne[2],colorPrimaryBorder:ne[3],colorPrimaryBorderHover:ne[4],colorPrimaryHover:ne[5],colorPrimary:ne[6],colorPrimaryActive:ne[7],colorPrimaryTextHover:ne[8],colorPrimaryText:ne[9],colorPrimaryTextActive:ne[10],colorSuccessBg:re[1],colorSuccessBgHover:re[2],colorSuccessBorder:re[3],colorSuccessBorderHover:re[4],colorSuccessHover:re[4],colorSuccess:re[6],colorSuccessActive:re[7],colorSuccessTextHover:re[8],colorSuccessText:re[9],colorSuccessTextActive:re[10],colorErrorBg:pe[1],colorErrorBgHover:pe[2],colorErrorBorder:pe[3],colorErrorBorderHover:pe[4],colorErrorHover:pe[5],colorError:pe[6],colorErrorActive:pe[7],colorErrorTextHover:pe[8],colorErrorText:pe[9],colorErrorTextActive:pe[10],colorWarningBg:ce[1],colorWarningBgHover:ce[2],colorWarningBorder:ce[3],colorWarningBorderHover:ce[4],colorWarningHover:ce[4],colorWarning:ce[6],colorWarningActive:ce[7],colorWarningTextHover:ce[8],colorWarningText:ce[9],colorWarningTextActive:ce[10],colorInfoBg:he[1],colorInfoBgHover:he[2],colorInfoBorder:he[3],colorInfoBorderHover:he[4],colorInfoHover:he[4],colorInfo:he[6],colorInfoActive:he[7],colorInfoTextHover:he[8],colorInfoText:he[9],colorInfoTextActive:he[10],colorLinkHover:Ie[4],colorLink:Ie[6],colorLinkActive:Ie[7],colorBgMask:new y.C("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}},83577:function(nt,V){"use strict";const m=y=>{const{controlHeight:I}=y;return{controlHeightSM:I*.75,controlHeightXS:I*.5,controlHeightLG:I*1.25}};V.Z=m},10360:function(nt,V,m){"use strict";m.d(V,{Z:function(){return b}});function y(z){const k=new Array(10).fill(null).map((N,w)=>{const A=w-1,C=z*Math.pow(2.71828,A/5),f=w>1?Math.floor(C):Math.ceil(C);return Math.floor(f/2)*2});return k[1]=z,k.map(N=>{const w=N+8;return{size:N,lineHeight:w/N}})}var b=z=>{const k=y(z),N=k.map(A=>A.size),w=k.map(A=>A.lineHeight);return{fontSizeSM:N[0],fontSize:N[1],fontSizeLG:N[2],fontSizeXL:N[3],fontSizeHeading1:N[6],fontSizeHeading2:N[5],fontSizeHeading3:N[4],fontSizeHeading4:N[3],fontSizeHeading5:N[2],lineHeight:w[1],lineHeightLG:w[2],lineHeightSM:w[0],lineHeightHeading1:w[6],lineHeightHeading2:w[5],lineHeightHeading3:w[4],lineHeightHeading4:w[3],lineHeightHeading5:w[2]}}},99737:function(nt,V,m){"use strict";m.d(V,{Z:function(){return f}});var y=m(77617),I=m(84608),b="5.10.1",z=b,k=m(13803),N=m(73979),w=m(67152),A=function(S,P){var W={};for(var ne in S)Object.prototype.hasOwnProperty.call(S,ne)&&P.indexOf(ne)<0&&(W[ne]=S[ne]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var re=0,ne=Object.getOwnPropertySymbols(S);re{const ne=W.getDerivativeToken(S),{override:re}=P,ce=A(P,["override"]);let pe=Object.assign(Object.assign({},ne),{override:re});return pe=(0,w.Z)(pe),ce&&Object.entries(ce).forEach(he=>{let[fe,Be]=he;const{theme:Ie}=Be,We=A(Be,["theme"]);let De=We;Ie&&(De=C(Object.assign(Object.assign({},pe),We),{override:We},Ie)),pe[fe]=De}),pe};function f(){const{token:S,hashed:P,theme:W,override:ne}=y.useContext(k.Mj),re=`${z}-${P||""}`,ce=W||k.uH,[pe,he]=(0,I.fp)(ce,[N.Z,S],{salt:re,override:ne,getComputedToken:C,formatToken:w.Z});return[ce,pe,P?he:""]}},67152:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(64993),I=m(73979);function b(A){return A>=0&&A<=255}function z(A,C){const{r:f,g:S,b:P,a:W}=new y.C(A).toRgb();if(W<1)return A;const{r:ne,g:re,b:ce}=new y.C(C).toRgb();for(let pe=.01;pe<=1;pe+=.01){const he=Math.round((f-ne*(1-pe))/pe),fe=Math.round((S-re*(1-pe))/pe),Be=Math.round((P-ce*(1-pe))/pe);if(b(he)&&b(fe)&&b(Be))return new y.C({r:he,g:fe,b:Be,a:Math.round(pe*100)/100}).toRgbString()}return new y.C({r:f,g:S,b:P,a:1}).toRgbString()}var k=z,N=function(A,C){var f={};for(var S in A)Object.prototype.hasOwnProperty.call(A,S)&&C.indexOf(S)<0&&(f[S]=A[S]);if(A!=null&&typeof Object.getOwnPropertySymbols=="function")for(var P=0,S=Object.getOwnPropertySymbols(A);P{delete S[Be]});const P=Object.assign(Object.assign({},f),S),W=480,ne=576,re=768,ce=992,pe=1200,he=1600;if(P.motion===!1){const Be="0s";P.motionDurationFast=Be,P.motionDurationMid=Be,P.motionDurationSlow=Be}return Object.assign(Object.assign(Object.assign({},P),{colorFillContent:P.colorFillSecondary,colorFillContentHover:P.colorFill,colorFillAlter:P.colorFillQuaternary,colorBgContainerDisabled:P.colorFillTertiary,colorBorderBg:P.colorBgContainer,colorSplit:k(P.colorBorderSecondary,P.colorBgContainer),colorTextPlaceholder:P.colorTextQuaternary,colorTextDisabled:P.colorTextQuaternary,colorTextHeading:P.colorText,colorTextLabel:P.colorTextSecondary,colorTextDescription:P.colorTextTertiary,colorTextLightSolid:P.colorWhite,colorHighlight:P.colorError,colorBgTextHover:P.colorFillSecondary,colorBgTextActive:P.colorFill,colorIcon:P.colorTextTertiary,colorIconHover:P.colorText,colorErrorOutline:k(P.colorErrorBg,P.colorBgContainer),colorWarningOutline:k(P.colorWarningBg,P.colorBgContainer),fontSizeIcon:P.fontSizeSM,lineWidthFocus:P.lineWidth*4,lineWidth:P.lineWidth,controlOutlineWidth:P.lineWidth*2,controlInteractiveSize:P.controlHeight/2,controlItemBgHover:P.colorFillTertiary,controlItemBgActive:P.colorPrimaryBg,controlItemBgActiveHover:P.colorPrimaryBgHover,controlItemBgActiveDisabled:P.colorFill,controlTmpOutline:P.colorFillQuaternary,controlOutline:k(P.colorPrimaryBg,P.colorBgContainer),lineType:P.lineType,borderRadius:P.borderRadius,borderRadiusXS:P.borderRadiusXS,borderRadiusSM:P.borderRadiusSM,borderRadiusLG:P.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:P.sizeXXS,paddingXS:P.sizeXS,paddingSM:P.sizeSM,padding:P.size,paddingMD:P.sizeMD,paddingLG:P.sizeLG,paddingXL:P.sizeXL,paddingContentHorizontalLG:P.sizeLG,paddingContentVerticalLG:P.sizeMS,paddingContentHorizontal:P.sizeMS,paddingContentVertical:P.sizeSM,paddingContentHorizontalSM:P.size,paddingContentVerticalSM:P.sizeXS,marginXXS:P.sizeXXS,marginXS:P.sizeXS,marginSM:P.sizeSM,margin:P.size,marginMD:P.sizeMD,marginLG:P.sizeLG,marginXL:P.sizeXL,marginXXL:P.sizeXXL,boxShadow:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) @@ -7985,7 +8038,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02) - `,screenXS:j,screenXSMin:j,screenXSMax:re-1,screenSM:re,screenSMMin:re,screenSMMax:J-1,screenMD:J,screenMDMin:J,screenMDMax:ie-1,screenLG:ie,screenLGMin:ie,screenLGMax:de-1,screenXL:de,screenXLMin:de,screenXLMax:he-1,screenXXL:he,screenXXLMin:he,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` + `,screenXS:W,screenXSMin:W,screenXSMax:ne-1,screenSM:ne,screenSMMin:ne,screenSMMax:re-1,screenMD:re,screenMDMin:re,screenMDMax:ce-1,screenLG:ce,screenLGMin:ce,screenLGMax:pe-1,screenXL:pe,screenXLMin:pe,screenXLMax:he-1,screenXXL:he,screenXXLMin:he,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` 0 1px 2px -2px ${new y.C("rgba(0, 0, 0, 0.16)").toRgbString()}, 0 3px 6px 0 ${new y.C("rgba(0, 0, 0, 0.12)").toRgbString()}, 0 5px 12px 4px ${new y.C("rgba(0, 0, 0, 0.09)").toRgbString()} @@ -8005,18 +8058,18 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter 0 -6px 16px 0 rgba(0, 0, 0, 0.08), 0 -3px 6px -4px rgba(0, 0, 0, 0.12), 0 -9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),S)}},67968:function(nt,V,m){"use strict";m.d(V,{Z:function(){return C},b:function(){return f}});var y=m(67294),A=m(85731),b=m(56790),z=m(53124),k=m(14747),N=m(25976),w=m(45503),I=m(53269);function C(S,P,j){let re=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const J=Array.isArray(S)?S:[S,S],[ie]=J,de=J.join("-");return he=>{const[fe,ke,we]=(0,N.Z)(),{getPrefixCls:Ne,iconPrefixCls:Ee,csp:ge}=(0,y.useContext)(z.E_),ye=Ne(),xe={theme:fe,token:ke,hashId:we,nonce:()=>ge==null?void 0:ge.nonce,clientOnly:re.clientOnly,order:re.order||-999};return(0,A.xy)(Object.assign(Object.assign({},xe),{clientOnly:!1,path:["Shared",ye]}),()=>[{"&":(0,k.Lx)(ke)}]),(0,I.Z)(Ee,ge),[(0,A.xy)(Object.assign(Object.assign({},xe),{path:[de,he,Ee]}),()=>{const{token:be,flush:Ie}=(0,w.ZP)(ke),me=Object.assign({},ke[ie]);if(re.deprecatedTokens){const{deprecatedTokens:bt}=re;bt.forEach(ht=>{let[Bt,mt]=ht;var _n;(me!=null&&me[Bt]||me!=null&&me[mt])&&((_n=me[mt])!==null&&_n!==void 0||(me[mt]=me==null?void 0:me[Bt]))})}const We=typeof j=="function"?j((0,w.TS)(be,me!=null?me:{})):j,Ce=Object.assign(Object.assign({},We),me),Pt=`.${he}`,ct=(0,w.TS)(be,{componentCls:Pt,prefixCls:he,iconCls:`.${Ee}`,antCls:`.${ye}`},Ce),Ue=P(ct,{hashId:we,prefixCls:he,rootPrefixCls:ye,iconPrefixCls:Ee,overrideComponentToken:me});return Ie(ie,Ce),[re.resetStyle===!1?null:(0,k.du)(ke,he),Ue]}),we]}}const f=(S,P,j,re)=>{const J=C(S,P,j,Object.assign({resetStyle:!1,order:-998},re));return de=>{let{prefixCls:he}=de;return J(he),null}}},45503:function(nt,V,m){"use strict";m.d(V,{TS:function(){return b},ZP:function(){return w}});const y=typeof CSSINJS_STATISTIC!="undefined";let A=!0;function b(){for(var I=arguments.length,C=new Array(I),f=0;f{Object.keys(P).forEach(re=>{Object.defineProperty(S,re,{configurable:!0,enumerable:!0,get:()=>P[re]})})}),A=!0,S}const z={},k={};function N(){}function w(I){let C,f=I,S=N;return y&&(C=new Set,f=new Proxy(I,{get(P,j){return A&&C.add(j),P[j]}}),S=(P,j)=>{var re;z[P]={global:Array.from(C),component:Object.assign(Object.assign({},(re=z[P])===null||re===void 0?void 0:re.component),j)}}),{token:f,keys:C,flush:S}}},53269:function(nt,V,m){"use strict";var y=m(85731),A=m(14747),b=m(25976);const z=(k,N)=>{const[w,I]=(0,b.Z)();return(0,y.xy)({theme:w,token:I,hashId:"",path:["ant-design-icons",k],nonce:()=>N==null?void 0:N.nonce},()=>[{[`.${k}`]:Object.assign(Object.assign({},(0,A.Ro)()),{[`.${k} .${k}-icon`]:{display:"block"}})}])};V.Z=z},61781:function(nt,V,m){"use strict";m.d(V,{Z:function(){return Pt}});var y=m(67294),A=m(94184),b=m.n(A),z=m(92419),k=m(21770),N=m(33603),w=m(80636),I=m(96159),C=m(27288),f=m(53124),S=m(4173),P=m(25976),j=m(14747),re=m(50438),J=m(77786),ie=m(8796);function de(ct,Ue){return ie.i.reduce((bt,ht)=>{const Bt=ct[`${ht}1`],mt=ct[`${ht}3`],_n=ct[`${ht}6`],Bn=ct[`${ht}7`];return Object.assign(Object.assign({},bt),Ue(ht,{lightColor:Bt,lightBorderColor:mt,darkColor:_n,textColor:Bn}))},{})}var he=m(45503),fe=m(67968);const ke=ct=>{const{componentCls:Ue,tooltipMaxWidth:bt,tooltipColor:ht,tooltipBg:Bt,tooltipBorderRadius:mt,zIndexPopup:_n,controlHeight:Bn,boxShadowSecondary:Er,paddingSM:Yr,paddingXS:oi,tooltipRadiusOuter:to}=ct;return[{[Ue]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,j.Wf)(ct)),{position:"absolute",zIndex:_n,display:"block",width:"max-content",maxWidth:bt,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":Bt,[`${Ue}-inner`]:{minWidth:Bn,minHeight:Bn,padding:`${Yr/2}px ${oi}px`,color:ht,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:Bt,borderRadius:mt,boxShadow:Er,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${Ue}-inner`]:{borderRadius:Math.min(mt,J.qN)}},[`${Ue}-content`]:{position:"relative"}}),de(ct,(yo,vr)=>{let{darkColor:Po}=vr;return{[`&${Ue}-${yo}`]:{[`${Ue}-inner`]:{backgroundColor:Po},[`${Ue}-arrow`]:{"--antd-arrow-background-color":Po}}}})),{"&-rtl":{direction:"rtl"}})},(0,J.ZP)((0,he.TS)(ct,{borderRadiusOuter:to}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:mt,limitVerticalRadius:!0}),{[`${Ue}-pure`]:{position:"relative",maxWidth:"none",margin:ct.sizePopupArrow}}]};var we=(ct,Ue)=>(0,fe.Z)("Tooltip",ht=>{if(Ue===!1)return[];const{borderRadius:Bt,colorTextLightSolid:mt,colorBgDefault:_n,borderRadiusOuter:Bn}=ht,Er=(0,he.TS)(ht,{tooltipMaxWidth:250,tooltipColor:mt,tooltipBorderRadius:Bt,tooltipBg:_n,tooltipRadiusOuter:Bn>4?4:Bn});return[ke(Er),(0,re._y)(ht,"zoom-big-fast")]},ht=>{let{zIndexPopupBase:Bt,colorBgSpotlight:mt}=ht;return{zIndexPopup:Bt+70,colorBgDefault:mt}},{resetStyle:!1})(ct),Ne=m(74902);const Ee=ie.i.map(ct=>`${ct}-inverse`),ge=null;function ye(ct){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,Ne.Z)(Ee),(0,Ne.Z)(ie.i)).includes(ct):ie.i.includes(ct)}function xe(ct){return ge.includes(ct)}function be(ct,Ue){const bt=ye(Ue),ht=b()({[`${ct}-${Ue}`]:Ue&&bt}),Bt={},mt={};return Ue&&!bt&&(Bt.background=Ue,mt["--antd-arrow-background-color"]=Ue),{className:ht,overlayStyle:Bt,arrowStyle:mt}}var me=ct=>{const{prefixCls:Ue,className:bt,placement:ht="top",title:Bt,color:mt,overlayInnerStyle:_n}=ct,{getPrefixCls:Bn}=y.useContext(f.E_),Er=Bn("tooltip",Ue),[Yr,oi]=we(Er,!0),to=be(Er,mt),yo=to.arrowStyle,vr=Object.assign(Object.assign({},_n),to.overlayStyle),Po=b()(oi,Er,`${Er}-pure`,`${Er}-placement-${ht}`,bt,to.className);return Yr(y.createElement("div",{className:Po,style:yo},y.createElement("div",{className:`${Er}-arrow`}),y.createElement(z.G,Object.assign({},ct,{className:oi,prefixCls:Er,overlayInnerStyle:vr}),Bt)))},We=function(ct,Ue){var bt={};for(var ht in ct)Object.prototype.hasOwnProperty.call(ct,ht)&&Ue.indexOf(ht)<0&&(bt[ht]=ct[ht]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bt=0,ht=Object.getOwnPropertySymbols(ct);Bt{var bt,ht;const{prefixCls:Bt,openClassName:mt,getTooltipContainer:_n,overlayClassName:Bn,color:Er,overlayInnerStyle:Yr,children:oi,afterOpenChange:to,afterVisibleChange:yo,destroyTooltipOnHide:vr,arrow:Po=!0,title:ss,overlay:ve,builtinPlacements:_o,arrowPointAtCenter:ci=!1,autoAdjustOverflow:Bi=!0}=ct,wi=!!Po,[,io]=(0,P.Z)(),{getPopupContainer:ln,getPrefixCls:Ve,direction:_t}=y.useContext(f.E_),Ct=(0,C.ln)("Tooltip"),jt=y.useRef(null),on=()=>{var Vr;(Vr=jt.current)===null||Vr===void 0||Vr.forceAlign()};y.useImperativeHandle(Ue,()=>({forceAlign:on,forcePopupAlign:()=>{Ct.deprecated(!1,"forcePopupAlign","forceAlign"),on()}}));const[Ot,Tt]=(0,k.Z)(!1,{value:(bt=ct.open)!==null&&bt!==void 0?bt:ct.visible,defaultValue:(ht=ct.defaultOpen)!==null&&ht!==void 0?ht:ct.defaultVisible}),xt=!ss&&!ve&&ss!==0,Ht=Vr=>{var so,rs;Tt(xt?!1:Vr),xt||((so=ct.onOpenChange)===null||so===void 0||so.call(ct,Vr),(rs=ct.onVisibleChange)===null||rs===void 0||rs.call(ct,Vr))},Zn=y.useMemo(()=>{var Vr,so;let rs=ci;return typeof Po=="object"&&(rs=(so=(Vr=Po.pointAtCenter)!==null&&Vr!==void 0?Vr:Po.arrowPointAtCenter)!==null&&so!==void 0?so:ci),_o||(0,w.Z)({arrowPointAtCenter:rs,autoAdjustOverflow:Bi,arrowWidth:wi?io.sizePopupArrow:0,borderRadius:io.borderRadius,offset:io.marginXXS,visibleFirst:!0})},[ci,Po,_o,io]),tn=y.useMemo(()=>ss===0?ss:ve||ss||"",[ve,ss]),hr=y.createElement(S.BR,null,typeof tn=="function"?tn():tn),{getPopupContainer:Zi,placement:Ri="top",mouseEnterDelay:Pi=.1,mouseLeaveDelay:$o=.1,overlayStyle:ys,rootClassName:xn}=ct,Hr=We(ct,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Jr=Ve("tooltip",Bt),Yi=Ve(),xo=ct["data-popover-inject"];let na=Ot;!("open"in ct)&&!("visible"in ct)&&xt&&(na=!1);const Vn=(0,I.l$)(oi)&&!(0,I.M2)(oi)?oi:y.createElement("span",null,oi),Xn=Vn.props,Mr=!Xn.className||typeof Xn.className=="string"?b()(Xn.className,mt||`${Jr}-open`):Xn.className,[li,Cr]=we(Jr,!xo),qr=be(Jr,Er),ii=qr.arrowStyle,rn=Object.assign(Object.assign({},Yr),qr.overlayStyle),Jn=b()(Bn,{[`${Jr}-rtl`]:_t==="rtl"},qr.className,xn,Cr);return li(y.createElement(z.Z,Object.assign({},Hr,{showArrow:wi,placement:Ri,mouseEnterDelay:Pi,mouseLeaveDelay:$o,prefixCls:Jr,overlayClassName:Jn,overlayStyle:Object.assign(Object.assign({},ii),ys),getTooltipContainer:Zi||_n||ln,ref:jt,builtinPlacements:Zn,overlay:hr,visible:na,onVisibleChange:Ht,afterVisibleChange:to!=null?to:yo,overlayInnerStyle:rn,arrowContent:y.createElement("span",{className:`${Jr}-arrow-content`}),motion:{motionName:(0,N.m)(Yi,"zoom-big-fast",ct.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!vr}),na?(0,I.Tm)(Vn,{className:Mr}):Vn))});Ce._InternalPanelDoNotUseOrYouWillBeFired=me;var Pt=Ce},93531:function(nt,V,m){"use strict";m.d(V,{Z:function(){return on}});var y=m(67294),A=m(1413),b=m(87462),z=m(71002),k=m(97685),N=m(91),w=m(2788),I=m(40228),C=m(94184),f=m.n(C),S=m(8410),P=m(21770),j=m(66680);function re(Ot){var Tt=window.innerWidth||document.documentElement.clientWidth,xt=window.innerHeight||document.documentElement.clientHeight,Ht=Ot.getBoundingClientRect(),Zn=Ht.top,tn=Ht.right,hr=Ht.bottom,Zi=Ht.left;return Zn>=0&&Zi>=0&&tn<=Tt&&hr<=xt}function J(Ot,Tt,xt){var Ht;return(Ht=xt!=null?xt:Tt)!==null&&Ht!==void 0?Ht:Ot===null?"center":"bottom"}function ie(Ot,Tt,xt,Ht){var Zn=(0,y.useState)(void 0),tn=(0,k.Z)(Zn,2),hr=tn[0],Zi=tn[1];(0,S.Z)(function(){var Yi=typeof Ot=="function"?Ot():Ot;Zi(Yi||null)});var Ri=(0,y.useState)(null),Pi=(0,k.Z)(Ri,2),$o=Pi[0],ys=Pi[1],xn=(0,j.Z)(function(){if(hr){!re(hr)&&Tt&&hr.scrollIntoView(Ht);var Yi=hr.getBoundingClientRect(),xo=Yi.left,na=Yi.top,Vn=Yi.width,Xn=Yi.height,Mr={left:xo,top:na,width:Vn,height:Xn,radius:0};ys(function(li){return JSON.stringify(li)!==JSON.stringify(Mr)?Mr:li})}else ys(null)}),Hr=function(xo){var na;return(na=Array.isArray(xt==null?void 0:xt.offset)?xt==null?void 0:xt.offset[xo]:xt==null?void 0:xt.offset)!==null&&na!==void 0?na:6};(0,S.Z)(function(){return xn(),window.addEventListener("resize",xn),function(){window.removeEventListener("resize",xn)}},[hr,Tt,xn]);var Jr=(0,y.useMemo)(function(){if(!$o)return $o;var Yi=Hr(0),xo=Hr(1),na=(xt==null?void 0:xt.radius)||2;return{left:$o.left-Yi,top:$o.top-xo,width:$o.width+Yi*2,height:$o.height+xo*2,radius:na}},[$o,xt]);return[Jr,hr]}var de=m(7028),he={fill:"transparent",pointerEvents:"auto"},fe=function(Tt){var xt=Tt.prefixCls,Ht=Tt.rootClassName,Zn=Tt.pos,tn=Tt.showMask,hr=Tt.style,Zi=hr===void 0?{}:hr,Ri=Tt.fill,Pi=Ri===void 0?"rgba(0,0,0,0.5)":Ri,$o=Tt.open,ys=Tt.animated,xn=Tt.zIndex,Hr=(0,de.Z)(),Jr="".concat(xt,"-mask-").concat(Hr),Yi=(0,z.Z)(ys)==="object"?ys==null?void 0:ys.placeholder:ys;return y.createElement(w.Z,{open:$o,autoLock:!0},y.createElement("div",{className:f()("".concat(xt,"-mask"),Ht),style:(0,A.Z)({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:xn,pointerEvents:"none"},Zi)},tn?y.createElement("svg",{style:{width:"100%",height:"100%"}},y.createElement("defs",null,y.createElement("mask",{id:Jr},y.createElement("rect",{x:"0",y:"0",width:"100vw",height:"100vh",fill:"white"}),Zn&&y.createElement("rect",{x:Zn.left,y:Zn.top,rx:Zn.radius,width:Zn.width,height:Zn.height,fill:"black",className:Yi?"".concat(xt,"-placeholder-animated"):""}))),y.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:Pi,mask:"url(#".concat(Jr,")")}),Zn&&y.createElement(y.Fragment,null,y.createElement("rect",(0,b.Z)({},he,{x:"0",y:"0",width:"100%",height:Zn.top})),y.createElement("rect",(0,b.Z)({},he,{x:"0",y:"0",width:Zn.left,height:"100%"})),y.createElement("rect",(0,b.Z)({},he,{x:"0",y:Zn.top+Zn.height,width:"100%",height:"calc(100vh - ".concat(Zn.top+Zn.height,"px)")})),y.createElement("rect",(0,b.Z)({},he,{x:Zn.left+Zn.width,y:"0",width:"calc(100vw - ".concat(Zn.left+Zn.width,"px)"),height:"100%"})))):null))},ke=fe,we={adjustX:1,adjustY:1},Ne=[0,0],Ee={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tl"],offset:[0,-8]},leftTop:{points:["tr","tl"],offset:[-8,0]},topRight:{points:["br","tr"],offset:[0,-8]},rightTop:{points:["tl","tr"],offset:[8,0]},bottomRight:{points:["tr","br"],offset:[0,8]},rightBottom:{points:["bl","br"],offset:[8,0]},bottomLeft:{points:["tl","bl"],offset:[0,8]},leftBottom:{points:["br","bl"],offset:[-8,0]}};function ge(){var Ot=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Tt={};return Object.keys(Ee).forEach(function(xt){Tt[xt]=(0,A.Z)((0,A.Z)({},Ee[xt]),{},{autoArrow:Ot,targetOffset:Ne})}),Tt}var ye=ge(),xe=m(74902);function be(Ot){var Tt=Ot.prefixCls,xt=Ot.current,Ht=Ot.total,Zn=Ot.title,tn=Ot.description,hr=Ot.onClose,Zi=Ot.onPrev,Ri=Ot.onNext,Pi=Ot.onFinish,$o=Ot.className,ys=Ot.closeIcon,xn=ys!==!1&&ys!==null,Hr=ys!==void 0&&ys!==!0?ys:y.createElement("span",{className:"".concat(Tt,"-close-x")},"\xD7");return y.createElement("div",{className:f()("".concat(Tt,"-content"),$o)},y.createElement("div",{className:"".concat(Tt,"-inner")},xn&&y.createElement("button",{type:"button",onClick:hr,"aria-label":"Close",className:"".concat(Tt,"-close")},Hr),y.createElement("div",{className:"".concat(Tt,"-header")},y.createElement("div",{className:"".concat(Tt,"-title")},Zn)),y.createElement("div",{className:"".concat(Tt,"-description")},tn),y.createElement("div",{className:"".concat(Tt,"-footer")},y.createElement("div",{className:"".concat(Tt,"-sliders")},Ht>1?(0,xe.Z)(Array.from({length:Ht}).keys()).map(function(Jr,Yi){return y.createElement("span",{key:Jr,className:Yi===xt?"active":""})}):null),y.createElement("div",{className:"".concat(Tt,"-buttons")},xt!==0?y.createElement("button",{className:"".concat(Tt,"-prev-btn"),onClick:Zi},"Prev"):null,xt===Ht-1?y.createElement("button",{className:"".concat(Tt,"-finish-btn"),onClick:Pi},"Finish"):y.createElement("button",{className:"".concat(Tt,"-next-btn"),onClick:Ri},"Next")))))}var Ie=function(Tt){var xt=Tt.current,Ht=Tt.renderPanel;return y.createElement(y.Fragment,null,typeof Ht=="function"?Ht(Tt,xt):y.createElement(be,Tt))},me=Ie,We=["prefixCls","steps","defaultCurrent","current","onChange","onClose","onFinish","open","mask","arrow","rootClassName","placement","renderPanel","gap","animated","scrollIntoViewOptions","zIndex","closeIcon"],Ce={left:"50%",top:"50%",width:1,height:1},Pt=function(Tt){var xt=Tt.prefixCls,Ht=xt===void 0?"rc-tour":xt,Zn=Tt.steps,tn=Zn===void 0?[]:Zn,hr=Tt.defaultCurrent,Zi=Tt.current,Ri=Tt.onChange,Pi=Tt.onClose,$o=Tt.onFinish,ys=Tt.open,xn=Tt.mask,Hr=xn===void 0?!0:xn,Jr=Tt.arrow,Yi=Jr===void 0?!0:Jr,xo=Tt.rootClassName,na=Tt.placement,Vn=Tt.renderPanel,Xn=Tt.gap,Mr=Tt.animated,li=Tt.scrollIntoViewOptions,Cr=li===void 0?!0:li,qr=Tt.zIndex,ii=qr===void 0?1001:qr,rn=Tt.closeIcon,Jn=(0,N.Z)(Tt,We),Vr=y.useRef(),so=(0,P.Z)(0,{value:Zi,defaultValue:hr}),rs=(0,k.Z)(so,2),zt=rs[0],pn=rs[1],_r=(0,P.Z)(void 0,{value:ys,postState:function(Za){return zt<0||zt>=tn.length?!1:Za!=null?Za:!0}}),Gr=(0,k.Z)(_r,2),ui=Gr[0],Ci=Gr[1],lo=y.useRef(ui);(0,S.Z)(function(){ui&&!lo.current&&pn(0),lo.current=ui},[ui]);var Kr=tn[zt]||{},ti=Kr.target,Wi=Kr.placement,Tr=Kr.style,Qt=Kr.arrow,Gn=Kr.className,yi=Kr.mask,Ln=Kr.scrollIntoViewOptions,Si=Kr.closeIcon,tr=ui&&(yi!=null?yi:Hr),vi=Si!=null?Si:rn,Ni=Ln!=null?Ln:Cr,kr=ie(ti,ys,Xn,Ni),Qn=(0,k.Z)(kr,2),ds=Qn[0],_a=Qn[1],da=J(_a,na,Wi),zs=_a?typeof Qt=="undefined"?Yi:Qt:!1,ja=(0,z.Z)(zs)==="object"?zs.pointAtCenter:!1;(0,S.Z)(function(){var xs;(xs=Vr.current)===null||xs===void 0||xs.forceAlign()},[ja,zt]);var Co=function(Za){pn(Za),Ri==null||Ri(Za)};if(_a===void 0)return null;var dl=function(){Ci(!1),Pi==null||Pi(zt)},Fr=function(){return y.createElement(me,(0,b.Z)({arrow:zs,key:"content",prefixCls:Ht,total:tn.length,renderPanel:Vn,onPrev:function(){Co(zt-1)},onNext:function(){Co(zt+1)},onClose:dl,current:zt,onFinish:function(){dl(),$o==null||$o()},closeIcon:vi},tn[zt]))},fs=typeof tr=="boolean"?tr:!!tr,jo=typeof tr=="boolean"?void 0:tr,Es=function(Za){return Za||_a||document.body};return y.createElement(y.Fragment,null,y.createElement(ke,{zIndex:ii,prefixCls:Ht,pos:ds,showMask:fs,style:jo==null?void 0:jo.style,fill:jo==null?void 0:jo.color,open:ui,animated:Mr,rootClassName:xo}),y.createElement(I.Z,(0,b.Z)({builtinPlacements:ge(ja)},Jn,{ref:Vr,popupStyle:Tr,popupPlacement:da,popupVisible:ui,popupClassName:f()(xo,Gn),prefixCls:Ht,popup:Fr,forceRender:!1,destroyPopupOnHide:!0,zIndex:ii,getTriggerDOMNode:Es,arrow:!!zs}),y.createElement(w.Z,{open:ui,autoLock:!0},y.createElement("div",{className:f()(xo,"".concat(Ht,"-target-placeholder")),style:(0,A.Z)((0,A.Z)({},ds||Ce),{},{position:"fixed",pointerEvents:"none"})}))))},ct=Pt,Ue=ct,bt=m(80636),ht=m(53124),Bt=m(25976),mt=m(62208),_n=m(15867),Bn=m(10110),Er=m(88526),Yr=m(69760);function oi(Ot){return Ot!=null}var yo=Ot=>{let{stepProps:Tt,current:xt,type:Ht,indicatorsRender:Zn,closeIcon:tn}=Ot;var hr,Zi;const{prefixCls:Ri,total:Pi=1,title:$o,onClose:ys,onPrev:xn,onNext:Hr,onFinish:Jr,cover:Yi,description:xo,nextButtonProps:na,prevButtonProps:Vn,type:Xn,closeIcon:Mr}=Tt,li=Xn!=null?Xn:Ht,Cr=Mr!=null?Mr:tn,qr=Cr!==!1&&Cr!==null,[ii,rn]=(0,Yr.Z)(qr,Cr,lo=>y.createElement("span",{onClick:ys,"aria-label":"Close",className:`${Ri}-close`},lo),y.createElement(mt.Z,{className:`${Ri}-close-icon`}),!0),Jn=xt===Pi-1,Vr=()=>{var lo;xn==null||xn(),(lo=Vn==null?void 0:Vn.onClick)===null||lo===void 0||lo.call(Vn)},so=()=>{var lo;Jn?Jr==null||Jr():Hr==null||Hr(),(lo=na==null?void 0:na.onClick)===null||lo===void 0||lo.call(na)},rs=oi($o)?y.createElement("div",{className:`${Ri}-header`},y.createElement("div",{className:`${Ri}-title`},$o)):null,zt=oi(xo)?y.createElement("div",{className:`${Ri}-description`},xo):null,pn=oi(Yi)?y.createElement("div",{className:`${Ri}-cover`},Yi):null;let _r;Zn?_r=Zn(xt,Pi):_r=(0,xe.Z)(Array.from({length:Pi}).keys()).map((lo,Kr)=>y.createElement("span",{key:lo,className:f()(Kr===xt&&`${Ri}-indicator-active`,`${Ri}-indicator`)}));const Gr=li==="primary"?"default":"primary",ui={type:"default",ghost:li==="primary"},[Ci]=(0,Bn.Z)("Tour",Er.Z.Tour);return y.createElement("div",{className:`${Ri}-content`},y.createElement("div",{className:`${Ri}-inner`},ii&&rn,pn,rs,zt,y.createElement("div",{className:`${Ri}-footer`},Pi>1&&y.createElement("div",{className:`${Ri}-indicators`},_r),y.createElement("div",{className:`${Ri}-buttons`},xt!==0?y.createElement(_n.ZP,Object.assign({},ui,Vn,{onClick:Vr,size:"small",className:f()(`${Ri}-prev-btn`,Vn==null?void 0:Vn.className)}),(hr=Vn==null?void 0:Vn.children)!==null&&hr!==void 0?hr:Ci==null?void 0:Ci.Previous):null,y.createElement(_n.ZP,Object.assign({type:Gr},na,{onClick:so,size:"small",className:f()(`${Ri}-next-btn`,na==null?void 0:na.className)}),(Zi=na==null?void 0:na.children)!==null&&Zi!==void 0?Zi:Jn?Ci==null?void 0:Ci.Finish:Ci==null?void 0:Ci.Next)))))},vr=m(60590),Po=m(10274),ss=m(14747),ve=m(77786),_o=m(67968),ci=m(45503);const Bi=Ot=>{const{componentCls:Tt,lineHeight:xt,padding:Ht,paddingXS:Zn,borderRadius:tn,borderRadiusXS:hr,colorPrimary:Zi,colorText:Ri,colorFill:Pi,indicatorHeight:$o,indicatorWidth:ys,boxShadowTertiary:xn,tourZIndexPopup:Hr,fontSize:Jr,colorBgElevated:Yi,fontWeightStrong:xo,marginXS:na,colorTextLightSolid:Vn,tourBorderRadius:Xn,colorWhite:Mr,colorBgTextHover:li,tourCloseSize:Cr,motionDurationSlow:qr,antCls:ii}=Ot;return[{[Tt]:Object.assign(Object.assign({},(0,ss.Wf)(Ot)),{color:Ri,position:"absolute",zIndex:Hr,display:"block",visibility:"visible",fontSize:Jr,lineHeight:xt,width:520,"--antd-arrow-background-color":Yi,"&-pure":{maxWidth:"100%",position:"relative"},[`&${Tt}-hidden`]:{display:"none"},[`${Tt}-content`]:{position:"relative"},[`${Tt}-inner`]:{textAlign:"start",textDecoration:"none",borderRadius:Xn,boxShadow:xn,position:"relative",backgroundColor:Yi,border:"none",backgroundClip:"padding-box",[`${Tt}-close`]:{position:"absolute",top:Ht,insetInlineEnd:Ht,color:Ot.colorIcon,outline:"none",width:Cr,height:Cr,borderRadius:Ot.borderRadiusSM,transition:`background-color ${Ot.motionDurationMid}, color ${Ot.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:Ot.colorIconHover,backgroundColor:Ot.wireframe?"transparent":Ot.colorFillContent}},[`${Tt}-cover`]:{textAlign:"center",padding:`${Ht+Cr+Zn}px ${Ht}px 0`,img:{width:"100%"}},[`${Tt}-header`]:{padding:`${Ht}px ${Ht}px ${Zn}px`,[`${Tt}-title`]:{lineHeight:xt,fontSize:Jr,fontWeight:xo}},[`${Tt}-description`]:{padding:`0 ${Ht}px`,lineHeight:xt,wordWrap:"break-word"},[`${Tt}-footer`]:{padding:`${Zn}px ${Ht}px ${Ht}px`,textAlign:"end",borderRadius:`0 0 ${hr}px ${hr}px`,display:"flex",[`${Tt}-indicators`]:{display:"inline-block",[`${Tt}-indicator`]:{width:ys,height:$o,display:"inline-block",borderRadius:"50%",background:Pi,"&:not(:last-child)":{marginInlineEnd:$o},"&-active":{background:Zi}}},[`${Tt}-buttons`]:{marginInlineStart:"auto",[`${ii}-btn`]:{marginInlineStart:na}}}},[`${Tt}-primary, &${Tt}-primary`]:{"--antd-arrow-background-color":Zi,[`${Tt}-inner`]:{color:Vn,textAlign:"start",textDecoration:"none",backgroundColor:Zi,borderRadius:tn,boxShadow:xn,[`${Tt}-close`]:{color:Vn},[`${Tt}-indicators`]:{[`${Tt}-indicator`]:{background:new Po.C(Vn).setAlpha(.15).toRgbString(),"&-active":{background:Vn}}},[`${Tt}-prev-btn`]:{color:Vn,borderColor:new Po.C(Vn).setAlpha(.15).toRgbString(),backgroundColor:Zi,"&:hover":{backgroundColor:new Po.C(Vn).setAlpha(.15).toRgbString(),borderColor:"transparent"}},[`${Tt}-next-btn`]:{color:Zi,borderColor:"transparent",background:Mr,"&:hover":{background:new Po.C(li).onBackground(Mr).toRgbString()}}}}}),[`${Tt}-mask`]:{[`${Tt}-placeholder-animated`]:{transition:`all ${qr}`}},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${Tt}-inner`]:{borderRadius:Math.min(Xn,ve.qN)}}},(0,ve.ZP)(Ot,{colorBg:"var(--antd-arrow-background-color)",contentRadius:Xn,limitVerticalRadius:!0})]};var wi=(0,_o.Z)("Tour",Ot=>{const{borderRadiusLG:Tt,fontSize:xt,lineHeight:Ht}=Ot,Zn=(0,ci.TS)(Ot,{tourZIndexPopup:Ot.zIndexPopupBase+70,indicatorWidth:6,indicatorHeight:6,tourBorderRadius:Tt,tourCloseSize:xt*Ht});return[Bi(Zn)]}),io=m(8745),ln=function(Ot,Tt){var xt={};for(var Ht in Ot)Object.prototype.hasOwnProperty.call(Ot,Ht)&&Tt.indexOf(Ht)<0&&(xt[Ht]=Ot[Ht]);if(Ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Zn=0,Ht=Object.getOwnPropertySymbols(Ot);Zn{const{prefixCls:Tt,current:xt=0,total:Ht=6,className:Zn,style:tn,type:hr}=Ot,Zi=ln(Ot,["prefixCls","current","total","className","style","type"]),{getPrefixCls:Ri}=y.useContext(ht.E_),Pi=Ri("tour",Tt),[$o,ys]=wi(Pi);return $o(y.createElement(vr.t5,{prefixCls:Pi,hashId:ys,className:f()(Zn,`${Pi}-pure`,hr&&`${Pi}-${hr}`),style:tn},y.createElement(yo,{stepProps:Object.assign(Object.assign({},Zi),{prefixCls:Pi,total:Ht}),current:xt,type:hr})))};var _t=(0,io.i)(Ve),Ct=function(Ot,Tt){var xt={};for(var Ht in Ot)Object.prototype.hasOwnProperty.call(Ot,Ht)&&Tt.indexOf(Ht)<0&&(xt[Ht]=Ot[Ht]);if(Ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Zn=0,Ht=Object.getOwnPropertySymbols(Ot);Zn{const{prefixCls:Tt,type:xt,rootClassName:Ht,indicatorsRender:Zn,steps:tn}=Ot,hr=Ct(Ot,["prefixCls","type","rootClassName","indicatorsRender","steps"]),{getPrefixCls:Zi,direction:Ri}=(0,y.useContext)(ht.E_),Pi=Zi("tour",Tt),[$o,ys]=wi(Pi),[,xn]=(0,Bt.Z)(),Hr=(0,y.useMemo)(()=>tn==null?void 0:tn.map(na=>{var Vn;return Object.assign(Object.assign({},na),{className:f()(na.className,{[`${Pi}-primary`]:((Vn=na.type)!==null&&Vn!==void 0?Vn:xt)==="primary"})})}),[tn,xt]),Jr=(0,bt.Z)({arrowPointAtCenter:!0,autoAdjustOverflow:!0,offset:xn.marginXXS,arrowWidth:xn.sizePopupArrow,borderRadius:xn.borderRadius}),Yi=f()({[`${Pi}-rtl`]:Ri==="rtl"},ys,Ht),xo=(na,Vn)=>y.createElement(yo,{type:xt,stepProps:na,current:Vn,indicatorsRender:Zn});return $o(y.createElement(Ue,Object.assign({},hr,{rootClassName:Yi,prefixCls:Pi,animated:!0,renderPanel:xo,builtinPlacements:Jr,steps:Hr})))};jt._InternalPanelDoNotUseOrYouWillBeFired=_t;var on=jt},51945:function(nt,V,m){"use strict";m.d(V,{Z:function(){return rs}});var y=m(67294),A=m(35918),b=m(87462),z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},k=z,N=m(93771),w=function(pn,_r){return y.createElement(N.Z,(0,b.Z)({},pn,{ref:_r,icon:k}))},I=y.forwardRef(w),C={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},f=C,S=function(pn,_r){return y.createElement(N.Z,(0,b.Z)({},pn,{ref:_r,icon:f}))},P=y.forwardRef(S),j=m(94184),re=m.n(j),J=m(20640),ie=m.n(J),de=m(48555),he=m(50344),fe=m(8410),ke=m(21770),we=m(98423),Ne=m(42550),Ee=m(79370),ge=m(15105),ye=function(zt,pn){var _r={};for(var Gr in zt)Object.prototype.hasOwnProperty.call(zt,Gr)&&pn.indexOf(Gr)<0&&(_r[Gr]=zt[Gr]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ui=0,Gr=Object.getOwnPropertySymbols(zt);ui{const _r=Wi=>{const{keyCode:Tr}=Wi;Tr===ge.Z.ENTER&&Wi.preventDefault()},Gr=Wi=>{const{keyCode:Tr}=Wi,{onClick:Qt}=zt;Tr===ge.Z.ENTER&&Qt&&Qt()},{style:ui,noStyle:Ci,disabled:lo}=zt,Kr=ye(zt,["style","noStyle","disabled"]);let ti={};return Ci||(ti=Object.assign({},xe)),lo&&(ti.pointerEvents="none"),ti=Object.assign(Object.assign({},ti),ui),y.createElement("div",Object.assign({role:"button",tabIndex:0,ref:pn},Kr,{onKeyDown:_r,onKeyUp:Gr,style:ti}))}),me=m(53124),We=m(10110),Ce=m(61781),Pt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},ct=Pt,Ue=function(pn,_r){return y.createElement(N.Z,(0,b.Z)({},pn,{ref:_r,icon:ct}))},bt=y.forwardRef(Ue),ht=m(96159),Bt=m(22913),mt=m(49867),_n=m(67968),Bn=m(16397);const Er=(zt,pn,_r,Gr)=>{const{titleMarginBottom:ui,fontWeightStrong:Ci}=Gr;return{marginBottom:ui,color:_r,fontWeight:Ci,fontSize:zt,lineHeight:pn}},Yr=zt=>{const pn=[1,2,3,4,5],_r={};return pn.forEach(Gr=>{_r[` + `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),S)}},24577:function(nt,V,m){"use strict";m.d(V,{Z:function(){return C},b:function(){return f}});var y=m(77617),I=m(84608),b=m(95470),z=m(67392),k=m(92068),N=m(99737),w=m(41788),A=m(69569);function C(S,P,W){let ne=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const re=Array.isArray(S)?S:[S,S],[ce]=re,pe=re.join("-");return he=>{const[fe,Be,Ie]=(0,N.Z)(),{getPrefixCls:We,iconPrefixCls:De,csp:ve}=(0,y.useContext)(z.E_),ye=We(),we={theme:fe,token:Be,hashId:Ie,nonce:()=>ve==null?void 0:ve.nonce,clientOnly:ne.clientOnly,order:ne.order||-999};return(0,I.xy)(Object.assign(Object.assign({},we),{clientOnly:!1,path:["Shared",ye]}),()=>[{"&":(0,k.Lx)(Be)}]),(0,A.Z)(De,ve),[(0,I.xy)(Object.assign(Object.assign({},we),{path:[pe,he,De]}),()=>{const{token:Ce,flush:Ae}=(0,w.ZP)(Be),me=Object.assign({},Be[ce]);if(ne.deprecatedTokens){const{deprecatedTokens:wt}=ne;wt.forEach(dt=>{let[Bt,gt]=dt;var _n;(me!=null&&me[Bt]||me!=null&&me[gt])&&((_n=me[gt])!==null&&_n!==void 0||(me[gt]=me==null?void 0:me[Bt]))})}const je=typeof W=="function"?W((0,w.TS)(Ce,me!=null?me:{})):W,xe=Object.assign(Object.assign({},je),me),Pt=`.${he}`,ct=(0,w.TS)(Ce,{componentCls:Pt,prefixCls:he,iconCls:`.${De}`,antCls:`.${ye}`},xe),He=P(ct,{hashId:Ie,prefixCls:he,rootPrefixCls:ye,iconPrefixCls:De,overrideComponentToken:me});return Ae(ce,xe),[ne.resetStyle===!1?null:(0,k.du)(Be,he),He]}),Ie]}}const f=(S,P,W,ne)=>{const re=C(S,P,W,Object.assign({resetStyle:!1,order:-998},ne));return pe=>{let{prefixCls:he}=pe;return re(he),null}}},41788:function(nt,V,m){"use strict";m.d(V,{TS:function(){return b},ZP:function(){return w}});const y=typeof CSSINJS_STATISTIC!="undefined";let I=!0;function b(){for(var A=arguments.length,C=new Array(A),f=0;f{Object.keys(P).forEach(ne=>{Object.defineProperty(S,ne,{configurable:!0,enumerable:!0,get:()=>P[ne]})})}),I=!0,S}const z={},k={};function N(){}function w(A){let C,f=A,S=N;return y&&(C=new Set,f=new Proxy(A,{get(P,W){return I&&C.add(W),P[W]}}),S=(P,W)=>{var ne;z[P]={global:Array.from(C),component:Object.assign(Object.assign({},(ne=z[P])===null||ne===void 0?void 0:ne.component),W)}}),{token:f,keys:C,flush:S}}},69569:function(nt,V,m){"use strict";var y=m(84608),I=m(92068),b=m(99737);const z=(k,N)=>{const[w,A]=(0,b.Z)();return(0,y.xy)({theme:w,token:A,hashId:"",path:["ant-design-icons",k],nonce:()=>N==null?void 0:N.nonce},()=>[{[`.${k}`]:Object.assign(Object.assign({},(0,I.Ro)()),{[`.${k} .${k}-icon`]:{display:"block"}})}])};V.Z=z},16175:function(nt,V,m){"use strict";m.d(V,{Z:function(){return Pt}});var y=m(77617),I=m(12124),b=m.n(I),z=m(34763),k=m(41760),N=m(26612),w=m(43119),A=m(99486),C=m(40869),f=m(67392),S=m(58370),P=m(99737),W=m(92068),ne=m(69601),re=m(72881),ce=m(35237);function pe(ct,He){return ce.i.reduce((wt,dt)=>{const Bt=ct[`${dt}1`],gt=ct[`${dt}3`],_n=ct[`${dt}6`],Bn=ct[`${dt}7`];return Object.assign(Object.assign({},wt),He(dt,{lightColor:Bt,lightBorderColor:gt,darkColor:_n,textColor:Bn}))},{})}var he=m(41788),fe=m(24577);const Be=ct=>{const{componentCls:He,tooltipMaxWidth:wt,tooltipColor:dt,tooltipBg:Bt,tooltipBorderRadius:gt,zIndexPopup:_n,controlHeight:Bn,boxShadowSecondary:Er,paddingSM:Yr,paddingXS:oi,tooltipRadiusOuter:to}=ct;return[{[He]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,W.Wf)(ct)),{position:"absolute",zIndex:_n,display:"block",width:"max-content",maxWidth:wt,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":Bt,[`${He}-inner`]:{minWidth:Bn,minHeight:Bn,padding:`${Yr/2}px ${oi}px`,color:dt,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:Bt,borderRadius:gt,boxShadow:Er,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${He}-inner`]:{borderRadius:Math.min(gt,re.qN)}},[`${He}-content`]:{position:"relative"}}),pe(ct,(yo,yr)=>{let{darkColor:Po}=yr;return{[`&${He}-${yo}`]:{[`${He}-inner`]:{backgroundColor:Po},[`${He}-arrow`]:{"--antd-arrow-background-color":Po}}}})),{"&-rtl":{direction:"rtl"}})},(0,re.ZP)((0,he.TS)(ct,{borderRadiusOuter:to}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:gt,limitVerticalRadius:!0}),{[`${He}-pure`]:{position:"relative",maxWidth:"none",margin:ct.sizePopupArrow}}]};var Ie=(ct,He)=>(0,fe.Z)("Tooltip",dt=>{if(He===!1)return[];const{borderRadius:Bt,colorTextLightSolid:gt,colorBgDefault:_n,borderRadiusOuter:Bn}=dt,Er=(0,he.TS)(dt,{tooltipMaxWidth:250,tooltipColor:gt,tooltipBorderRadius:Bt,tooltipBg:_n,tooltipRadiusOuter:Bn>4?4:Bn});return[Be(Er),(0,ne._y)(dt,"zoom-big-fast")]},dt=>{let{zIndexPopupBase:Bt,colorBgSpotlight:gt}=dt;return{zIndexPopup:Bt+70,colorBgDefault:gt}},{resetStyle:!1})(ct),We=m(42371);const De=ce.i.map(ct=>`${ct}-inverse`),ve=null;function ye(ct){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,We.Z)(De),(0,We.Z)(ce.i)).includes(ct):ce.i.includes(ct)}function we(ct){return ve.includes(ct)}function Ce(ct,He){const wt=ye(He),dt=b()({[`${ct}-${He}`]:He&&wt}),Bt={},gt={};return He&&!wt&&(Bt.background=He,gt["--antd-arrow-background-color"]=He),{className:dt,overlayStyle:Bt,arrowStyle:gt}}var me=ct=>{const{prefixCls:He,className:wt,placement:dt="top",title:Bt,color:gt,overlayInnerStyle:_n}=ct,{getPrefixCls:Bn}=y.useContext(f.E_),Er=Bn("tooltip",He),[Yr,oi]=Ie(Er,!0),to=Ce(Er,gt),yo=to.arrowStyle,yr=Object.assign(Object.assign({},_n),to.overlayStyle),Po=b()(oi,Er,`${Er}-pure`,`${Er}-placement-${dt}`,wt,to.className);return Yr(y.createElement("div",{className:Po,style:yo},y.createElement("div",{className:`${Er}-arrow`}),y.createElement(z.G,Object.assign({},ct,{className:oi,prefixCls:Er,overlayInnerStyle:yr}),Bt)))},je=function(ct,He){var wt={};for(var dt in ct)Object.prototype.hasOwnProperty.call(ct,dt)&&He.indexOf(dt)<0&&(wt[dt]=ct[dt]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bt=0,dt=Object.getOwnPropertySymbols(ct);Bt{var wt,dt;const{prefixCls:Bt,openClassName:gt,getTooltipContainer:_n,overlayClassName:Bn,color:Er,overlayInnerStyle:Yr,children:oi,afterOpenChange:to,afterVisibleChange:yo,destroyTooltipOnHide:yr,arrow:Po=!0,title:as,overlay:ge,builtinPlacements:_o,arrowPointAtCenter:ci=!1,autoAdjustOverflow:Bi=!0}=ct,Ci=!!Po,[,io]=(0,P.Z)(),{getPopupContainer:ln,getPrefixCls:Ve,direction:_t}=y.useContext(f.E_),xt=(0,C.ln)("Tooltip"),Wt=y.useRef(null),on=()=>{var Vr;(Vr=Wt.current)===null||Vr===void 0||Vr.forceAlign()};y.useImperativeHandle(He,()=>({forceAlign:on,forcePopupAlign:()=>{xt.deprecated(!1,"forcePopupAlign","forceAlign"),on()}}));const[Ot,Tt]=(0,k.Z)(!1,{value:(wt=ct.open)!==null&&wt!==void 0?wt:ct.visible,defaultValue:(dt=ct.defaultOpen)!==null&&dt!==void 0?dt:ct.defaultVisible}),bt=!as&&!ge&&as!==0,Ht=Vr=>{var so,rs;Tt(bt?!1:Vr),bt||((so=ct.onOpenChange)===null||so===void 0||so.call(ct,Vr),(rs=ct.onVisibleChange)===null||rs===void 0||rs.call(ct,Vr))},Wn=y.useMemo(()=>{var Vr,so;let rs=ci;return typeof Po=="object"&&(rs=(so=(Vr=Po.pointAtCenter)!==null&&Vr!==void 0?Vr:Po.arrowPointAtCenter)!==null&&so!==void 0?so:ci),_o||(0,w.Z)({arrowPointAtCenter:rs,autoAdjustOverflow:Bi,arrowWidth:Ci?io.sizePopupArrow:0,borderRadius:io.borderRadius,offset:io.marginXXS,visibleFirst:!0})},[ci,Po,_o,io]),tn=y.useMemo(()=>as===0?as:ge||as||"",[ge,as]),hr=y.createElement(S.BR,null,typeof tn=="function"?tn():tn),{getPopupContainer:Zi,placement:Ri="top",mouseEnterDelay:Pi=.1,mouseLeaveDelay:Wo=.1,overlayStyle:ys,rootClassName:xn}=ct,Hr=je(ct,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Jr=Ve("tooltip",Bt),Yi=Ve(),xo=ct["data-popover-inject"];let na=Ot;!("open"in ct)&&!("visible"in ct)&&bt&&(na=!1);const Un=(0,A.l$)(oi)&&!(0,A.M2)(oi)?oi:y.createElement("span",null,oi),Xn=Un.props,Mr=!Xn.className||typeof Xn.className=="string"?b()(Xn.className,gt||`${Jr}-open`):Xn.className,[li,wr]=Ie(Jr,!xo),qr=Ce(Jr,Er),ii=qr.arrowStyle,rn=Object.assign(Object.assign({},Yr),qr.overlayStyle),Qn=b()(Bn,{[`${Jr}-rtl`]:_t==="rtl"},qr.className,xn,wr);return li(y.createElement(z.Z,Object.assign({},Hr,{showArrow:Ci,placement:Ri,mouseEnterDelay:Pi,mouseLeaveDelay:Wo,prefixCls:Jr,overlayClassName:Qn,overlayStyle:Object.assign(Object.assign({},ii),ys),getTooltipContainer:Zi||_n||ln,ref:Wt,builtinPlacements:Wn,overlay:hr,visible:na,onVisibleChange:Ht,afterVisibleChange:to!=null?to:yo,overlayInnerStyle:rn,arrowContent:y.createElement("span",{className:`${Jr}-arrow-content`}),motion:{motionName:(0,N.m)(Yi,"zoom-big-fast",ct.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!yr}),na?(0,A.Tm)(Un,{className:Mr}):Un))});xe._InternalPanelDoNotUseOrYouWillBeFired=me;var Pt=xe},29698:function(nt,V,m){"use strict";m.d(V,{Z:function(){return on}});var y=m(77617),I=m(74710),b=m(26508),z=m(91002),k=m(39718),N=m(52528),w=m(43403),A=m(93646),C=m(12124),f=m.n(C),S=m(62305),P=m(41760),W=m(61759);function ne(Ot){var Tt=window.innerWidth||document.documentElement.clientWidth,bt=window.innerHeight||document.documentElement.clientHeight,Ht=Ot.getBoundingClientRect(),Wn=Ht.top,tn=Ht.right,hr=Ht.bottom,Zi=Ht.left;return Wn>=0&&Zi>=0&&tn<=Tt&&hr<=bt}function re(Ot,Tt,bt){var Ht;return(Ht=bt!=null?bt:Tt)!==null&&Ht!==void 0?Ht:Ot===null?"center":"bottom"}function ce(Ot,Tt,bt,Ht){var Wn=(0,y.useState)(void 0),tn=(0,k.Z)(Wn,2),hr=tn[0],Zi=tn[1];(0,S.Z)(function(){var Yi=typeof Ot=="function"?Ot():Ot;Zi(Yi||null)});var Ri=(0,y.useState)(null),Pi=(0,k.Z)(Ri,2),Wo=Pi[0],ys=Pi[1],xn=(0,W.Z)(function(){if(hr){!ne(hr)&&Tt&&hr.scrollIntoView(Ht);var Yi=hr.getBoundingClientRect(),xo=Yi.left,na=Yi.top,Un=Yi.width,Xn=Yi.height,Mr={left:xo,top:na,width:Un,height:Xn,radius:0};ys(function(li){return JSON.stringify(li)!==JSON.stringify(Mr)?Mr:li})}else ys(null)}),Hr=function(xo){var na;return(na=Array.isArray(bt==null?void 0:bt.offset)?bt==null?void 0:bt.offset[xo]:bt==null?void 0:bt.offset)!==null&&na!==void 0?na:6};(0,S.Z)(function(){return xn(),window.addEventListener("resize",xn),function(){window.removeEventListener("resize",xn)}},[hr,Tt,xn]);var Jr=(0,y.useMemo)(function(){if(!Wo)return Wo;var Yi=Hr(0),xo=Hr(1),na=(bt==null?void 0:bt.radius)||2;return{left:Wo.left-Yi,top:Wo.top-xo,width:Wo.width+Yi*2,height:Wo.height+xo*2,radius:na}},[Wo,bt]);return[Jr,hr]}var pe=m(59872),he={fill:"transparent",pointerEvents:"auto"},fe=function(Tt){var bt=Tt.prefixCls,Ht=Tt.rootClassName,Wn=Tt.pos,tn=Tt.showMask,hr=Tt.style,Zi=hr===void 0?{}:hr,Ri=Tt.fill,Pi=Ri===void 0?"rgba(0,0,0,0.5)":Ri,Wo=Tt.open,ys=Tt.animated,xn=Tt.zIndex,Hr=(0,pe.Z)(),Jr="".concat(bt,"-mask-").concat(Hr),Yi=(0,z.Z)(ys)==="object"?ys==null?void 0:ys.placeholder:ys;return y.createElement(w.Z,{open:Wo,autoLock:!0},y.createElement("div",{className:f()("".concat(bt,"-mask"),Ht),style:(0,I.Z)({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:xn,pointerEvents:"none"},Zi)},tn?y.createElement("svg",{style:{width:"100%",height:"100%"}},y.createElement("defs",null,y.createElement("mask",{id:Jr},y.createElement("rect",{x:"0",y:"0",width:"100vw",height:"100vh",fill:"white"}),Wn&&y.createElement("rect",{x:Wn.left,y:Wn.top,rx:Wn.radius,width:Wn.width,height:Wn.height,fill:"black",className:Yi?"".concat(bt,"-placeholder-animated"):""}))),y.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:Pi,mask:"url(#".concat(Jr,")")}),Wn&&y.createElement(y.Fragment,null,y.createElement("rect",(0,b.Z)({},he,{x:"0",y:"0",width:"100%",height:Wn.top})),y.createElement("rect",(0,b.Z)({},he,{x:"0",y:"0",width:Wn.left,height:"100%"})),y.createElement("rect",(0,b.Z)({},he,{x:"0",y:Wn.top+Wn.height,width:"100%",height:"calc(100vh - ".concat(Wn.top+Wn.height,"px)")})),y.createElement("rect",(0,b.Z)({},he,{x:Wn.left+Wn.width,y:"0",width:"calc(100vw - ".concat(Wn.left+Wn.width,"px)"),height:"100%"})))):null))},Be=fe,Ie={adjustX:1,adjustY:1},We=[0,0],De={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tl"],offset:[0,-8]},leftTop:{points:["tr","tl"],offset:[-8,0]},topRight:{points:["br","tr"],offset:[0,-8]},rightTop:{points:["tl","tr"],offset:[8,0]},bottomRight:{points:["tr","br"],offset:[0,8]},rightBottom:{points:["bl","br"],offset:[8,0]},bottomLeft:{points:["tl","bl"],offset:[0,8]},leftBottom:{points:["br","bl"],offset:[-8,0]}};function ve(){var Ot=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Tt={};return Object.keys(De).forEach(function(bt){Tt[bt]=(0,I.Z)((0,I.Z)({},De[bt]),{},{autoArrow:Ot,targetOffset:We})}),Tt}var ye=ve(),we=m(42371);function Ce(Ot){var Tt=Ot.prefixCls,bt=Ot.current,Ht=Ot.total,Wn=Ot.title,tn=Ot.description,hr=Ot.onClose,Zi=Ot.onPrev,Ri=Ot.onNext,Pi=Ot.onFinish,Wo=Ot.className,ys=Ot.closeIcon,xn=ys!==!1&&ys!==null,Hr=ys!==void 0&&ys!==!0?ys:y.createElement("span",{className:"".concat(Tt,"-close-x")},"\xD7");return y.createElement("div",{className:f()("".concat(Tt,"-content"),Wo)},y.createElement("div",{className:"".concat(Tt,"-inner")},xn&&y.createElement("button",{type:"button",onClick:hr,"aria-label":"Close",className:"".concat(Tt,"-close")},Hr),y.createElement("div",{className:"".concat(Tt,"-header")},y.createElement("div",{className:"".concat(Tt,"-title")},Wn)),y.createElement("div",{className:"".concat(Tt,"-description")},tn),y.createElement("div",{className:"".concat(Tt,"-footer")},y.createElement("div",{className:"".concat(Tt,"-sliders")},Ht>1?(0,we.Z)(Array.from({length:Ht}).keys()).map(function(Jr,Yi){return y.createElement("span",{key:Jr,className:Yi===bt?"active":""})}):null),y.createElement("div",{className:"".concat(Tt,"-buttons")},bt!==0?y.createElement("button",{className:"".concat(Tt,"-prev-btn"),onClick:Zi},"Prev"):null,bt===Ht-1?y.createElement("button",{className:"".concat(Tt,"-finish-btn"),onClick:Pi},"Finish"):y.createElement("button",{className:"".concat(Tt,"-next-btn"),onClick:Ri},"Next")))))}var Ae=function(Tt){var bt=Tt.current,Ht=Tt.renderPanel;return y.createElement(y.Fragment,null,typeof Ht=="function"?Ht(Tt,bt):y.createElement(Ce,Tt))},me=Ae,je=["prefixCls","steps","defaultCurrent","current","onChange","onClose","onFinish","open","mask","arrow","rootClassName","placement","renderPanel","gap","animated","scrollIntoViewOptions","zIndex","closeIcon"],xe={left:"50%",top:"50%",width:1,height:1},Pt=function(Tt){var bt=Tt.prefixCls,Ht=bt===void 0?"rc-tour":bt,Wn=Tt.steps,tn=Wn===void 0?[]:Wn,hr=Tt.defaultCurrent,Zi=Tt.current,Ri=Tt.onChange,Pi=Tt.onClose,Wo=Tt.onFinish,ys=Tt.open,xn=Tt.mask,Hr=xn===void 0?!0:xn,Jr=Tt.arrow,Yi=Jr===void 0?!0:Jr,xo=Tt.rootClassName,na=Tt.placement,Un=Tt.renderPanel,Xn=Tt.gap,Mr=Tt.animated,li=Tt.scrollIntoViewOptions,wr=li===void 0?!0:li,qr=Tt.zIndex,ii=qr===void 0?1001:qr,rn=Tt.closeIcon,Qn=(0,N.Z)(Tt,je),Vr=y.useRef(),so=(0,P.Z)(0,{value:Zi,defaultValue:hr}),rs=(0,k.Z)(so,2),zt=rs[0],pn=rs[1],br=(0,P.Z)(void 0,{value:ys,postState:function(Za){return zt<0||zt>=tn.length?!1:Za!=null?Za:!0}}),Gr=(0,k.Z)(br,2),ui=Gr[0],xi=Gr[1],lo=y.useRef(ui);(0,S.Z)(function(){ui&&!lo.current&&pn(0),lo.current=ui},[ui]);var Kr=tn[zt]||{},ti=Kr.target,ji=Kr.placement,Tr=Kr.style,Qt=Kr.arrow,Gn=Kr.className,yi=Kr.mask,Ln=Kr.scrollIntoViewOptions,Si=Kr.closeIcon,tr=ui&&(yi!=null?yi:Hr),vi=Si!=null?Si:rn,Ni=Ln!=null?Ln:wr,kr=ce(ti,ys,Xn,Ni),qn=(0,k.Z)(kr,2),ds=qn[0],_a=qn[1],da=re(_a,na,ji),zs=_a?typeof Qt=="undefined"?Yi:Qt:!1,Wa=(0,z.Z)(zs)==="object"?zs.pointAtCenter:!1;(0,S.Z)(function(){var xs;(xs=Vr.current)===null||xs===void 0||xs.forceAlign()},[Wa,zt]);var Co=function(Za){pn(Za),Ri==null||Ri(Za)};if(_a===void 0)return null;var cl=function(){xi(!1),Pi==null||Pi(zt)},Fr=function(){return y.createElement(me,(0,b.Z)({arrow:zs,key:"content",prefixCls:Ht,total:tn.length,renderPanel:Un,onPrev:function(){Co(zt-1)},onNext:function(){Co(zt+1)},onClose:cl,current:zt,onFinish:function(){cl(),Wo==null||Wo()},closeIcon:vi},tn[zt]))},fs=typeof tr=="boolean"?tr:!!tr,jo=typeof tr=="boolean"?void 0:tr,Es=function(Za){return Za||_a||document.body};return y.createElement(y.Fragment,null,y.createElement(Be,{zIndex:ii,prefixCls:Ht,pos:ds,showMask:fs,style:jo==null?void 0:jo.style,fill:jo==null?void 0:jo.color,open:ui,animated:Mr,rootClassName:xo}),y.createElement(A.Z,(0,b.Z)({builtinPlacements:ve(Wa)},Qn,{ref:Vr,popupStyle:Tr,popupPlacement:da,popupVisible:ui,popupClassName:f()(xo,Gn),prefixCls:Ht,popup:Fr,forceRender:!1,destroyPopupOnHide:!0,zIndex:ii,getTriggerDOMNode:Es,arrow:!!zs}),y.createElement(w.Z,{open:ui,autoLock:!0},y.createElement("div",{className:f()(xo,"".concat(Ht,"-target-placeholder")),style:(0,I.Z)((0,I.Z)({},ds||xe),{},{position:"fixed",pointerEvents:"none"})}))))},ct=Pt,He=ct,wt=m(43119),dt=m(67392),Bt=m(99737),gt=m(49934),_n=m(38115),Bn=m(879),Er=m(530),Yr=m(52273);function oi(Ot){return Ot!=null}var yo=Ot=>{let{stepProps:Tt,current:bt,type:Ht,indicatorsRender:Wn,closeIcon:tn}=Ot;var hr,Zi;const{prefixCls:Ri,total:Pi=1,title:Wo,onClose:ys,onPrev:xn,onNext:Hr,onFinish:Jr,cover:Yi,description:xo,nextButtonProps:na,prevButtonProps:Un,type:Xn,closeIcon:Mr}=Tt,li=Xn!=null?Xn:Ht,wr=Mr!=null?Mr:tn,qr=wr!==!1&&wr!==null,[ii,rn]=(0,Yr.Z)(qr,wr,lo=>y.createElement("span",{onClick:ys,"aria-label":"Close",className:`${Ri}-close`},lo),y.createElement(gt.Z,{className:`${Ri}-close-icon`}),!0),Qn=bt===Pi-1,Vr=()=>{var lo;xn==null||xn(),(lo=Un==null?void 0:Un.onClick)===null||lo===void 0||lo.call(Un)},so=()=>{var lo;Qn?Jr==null||Jr():Hr==null||Hr(),(lo=na==null?void 0:na.onClick)===null||lo===void 0||lo.call(na)},rs=oi(Wo)?y.createElement("div",{className:`${Ri}-header`},y.createElement("div",{className:`${Ri}-title`},Wo)):null,zt=oi(xo)?y.createElement("div",{className:`${Ri}-description`},xo):null,pn=oi(Yi)?y.createElement("div",{className:`${Ri}-cover`},Yi):null;let br;Wn?br=Wn(bt,Pi):br=(0,we.Z)(Array.from({length:Pi}).keys()).map((lo,Kr)=>y.createElement("span",{key:lo,className:f()(Kr===bt&&`${Ri}-indicator-active`,`${Ri}-indicator`)}));const Gr=li==="primary"?"default":"primary",ui={type:"default",ghost:li==="primary"},[xi]=(0,Bn.Z)("Tour",Er.Z.Tour);return y.createElement("div",{className:`${Ri}-content`},y.createElement("div",{className:`${Ri}-inner`},ii&&rn,pn,rs,zt,y.createElement("div",{className:`${Ri}-footer`},Pi>1&&y.createElement("div",{className:`${Ri}-indicators`},br),y.createElement("div",{className:`${Ri}-buttons`},bt!==0?y.createElement(_n.ZP,Object.assign({},ui,Un,{onClick:Vr,size:"small",className:f()(`${Ri}-prev-btn`,Un==null?void 0:Un.className)}),(hr=Un==null?void 0:Un.children)!==null&&hr!==void 0?hr:xi==null?void 0:xi.Previous):null,y.createElement(_n.ZP,Object.assign({type:Gr},na,{onClick:so,size:"small",className:f()(`${Ri}-next-btn`,na==null?void 0:na.className)}),(Zi=na==null?void 0:na.children)!==null&&Zi!==void 0?Zi:Qn?xi==null?void 0:xi.Finish:xi==null?void 0:xi.Next)))))},yr=m(36575),Po=m(64993),as=m(92068),ge=m(72881),_o=m(24577),ci=m(41788);const Bi=Ot=>{const{componentCls:Tt,lineHeight:bt,padding:Ht,paddingXS:Wn,borderRadius:tn,borderRadiusXS:hr,colorPrimary:Zi,colorText:Ri,colorFill:Pi,indicatorHeight:Wo,indicatorWidth:ys,boxShadowTertiary:xn,tourZIndexPopup:Hr,fontSize:Jr,colorBgElevated:Yi,fontWeightStrong:xo,marginXS:na,colorTextLightSolid:Un,tourBorderRadius:Xn,colorWhite:Mr,colorBgTextHover:li,tourCloseSize:wr,motionDurationSlow:qr,antCls:ii}=Ot;return[{[Tt]:Object.assign(Object.assign({},(0,as.Wf)(Ot)),{color:Ri,position:"absolute",zIndex:Hr,display:"block",visibility:"visible",fontSize:Jr,lineHeight:bt,width:520,"--antd-arrow-background-color":Yi,"&-pure":{maxWidth:"100%",position:"relative"},[`&${Tt}-hidden`]:{display:"none"},[`${Tt}-content`]:{position:"relative"},[`${Tt}-inner`]:{textAlign:"start",textDecoration:"none",borderRadius:Xn,boxShadow:xn,position:"relative",backgroundColor:Yi,border:"none",backgroundClip:"padding-box",[`${Tt}-close`]:{position:"absolute",top:Ht,insetInlineEnd:Ht,color:Ot.colorIcon,outline:"none",width:wr,height:wr,borderRadius:Ot.borderRadiusSM,transition:`background-color ${Ot.motionDurationMid}, color ${Ot.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:Ot.colorIconHover,backgroundColor:Ot.wireframe?"transparent":Ot.colorFillContent}},[`${Tt}-cover`]:{textAlign:"center",padding:`${Ht+wr+Wn}px ${Ht}px 0`,img:{width:"100%"}},[`${Tt}-header`]:{padding:`${Ht}px ${Ht}px ${Wn}px`,[`${Tt}-title`]:{lineHeight:bt,fontSize:Jr,fontWeight:xo}},[`${Tt}-description`]:{padding:`0 ${Ht}px`,lineHeight:bt,wordWrap:"break-word"},[`${Tt}-footer`]:{padding:`${Wn}px ${Ht}px ${Ht}px`,textAlign:"end",borderRadius:`0 0 ${hr}px ${hr}px`,display:"flex",[`${Tt}-indicators`]:{display:"inline-block",[`${Tt}-indicator`]:{width:ys,height:Wo,display:"inline-block",borderRadius:"50%",background:Pi,"&:not(:last-child)":{marginInlineEnd:Wo},"&-active":{background:Zi}}},[`${Tt}-buttons`]:{marginInlineStart:"auto",[`${ii}-btn`]:{marginInlineStart:na}}}},[`${Tt}-primary, &${Tt}-primary`]:{"--antd-arrow-background-color":Zi,[`${Tt}-inner`]:{color:Un,textAlign:"start",textDecoration:"none",backgroundColor:Zi,borderRadius:tn,boxShadow:xn,[`${Tt}-close`]:{color:Un},[`${Tt}-indicators`]:{[`${Tt}-indicator`]:{background:new Po.C(Un).setAlpha(.15).toRgbString(),"&-active":{background:Un}}},[`${Tt}-prev-btn`]:{color:Un,borderColor:new Po.C(Un).setAlpha(.15).toRgbString(),backgroundColor:Zi,"&:hover":{backgroundColor:new Po.C(Un).setAlpha(.15).toRgbString(),borderColor:"transparent"}},[`${Tt}-next-btn`]:{color:Zi,borderColor:"transparent",background:Mr,"&:hover":{background:new Po.C(li).onBackground(Mr).toRgbString()}}}}}),[`${Tt}-mask`]:{[`${Tt}-placeholder-animated`]:{transition:`all ${qr}`}},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${Tt}-inner`]:{borderRadius:Math.min(Xn,ge.qN)}}},(0,ge.ZP)(Ot,{colorBg:"var(--antd-arrow-background-color)",contentRadius:Xn,limitVerticalRadius:!0})]};var Ci=(0,_o.Z)("Tour",Ot=>{const{borderRadiusLG:Tt,fontSize:bt,lineHeight:Ht}=Ot,Wn=(0,ci.TS)(Ot,{tourZIndexPopup:Ot.zIndexPopupBase+70,indicatorWidth:6,indicatorHeight:6,tourBorderRadius:Tt,tourCloseSize:bt*Ht});return[Bi(Wn)]}),io=m(91202),ln=function(Ot,Tt){var bt={};for(var Ht in Ot)Object.prototype.hasOwnProperty.call(Ot,Ht)&&Tt.indexOf(Ht)<0&&(bt[Ht]=Ot[Ht]);if(Ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Wn=0,Ht=Object.getOwnPropertySymbols(Ot);Wn{const{prefixCls:Tt,current:bt=0,total:Ht=6,className:Wn,style:tn,type:hr}=Ot,Zi=ln(Ot,["prefixCls","current","total","className","style","type"]),{getPrefixCls:Ri}=y.useContext(dt.E_),Pi=Ri("tour",Tt),[Wo,ys]=Ci(Pi);return Wo(y.createElement(yr.t5,{prefixCls:Pi,hashId:ys,className:f()(Wn,`${Pi}-pure`,hr&&`${Pi}-${hr}`),style:tn},y.createElement(yo,{stepProps:Object.assign(Object.assign({},Zi),{prefixCls:Pi,total:Ht}),current:bt,type:hr})))};var _t=(0,io.i)(Ve),xt=function(Ot,Tt){var bt={};for(var Ht in Ot)Object.prototype.hasOwnProperty.call(Ot,Ht)&&Tt.indexOf(Ht)<0&&(bt[Ht]=Ot[Ht]);if(Ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Wn=0,Ht=Object.getOwnPropertySymbols(Ot);Wn{const{prefixCls:Tt,type:bt,rootClassName:Ht,indicatorsRender:Wn,steps:tn}=Ot,hr=xt(Ot,["prefixCls","type","rootClassName","indicatorsRender","steps"]),{getPrefixCls:Zi,direction:Ri}=(0,y.useContext)(dt.E_),Pi=Zi("tour",Tt),[Wo,ys]=Ci(Pi),[,xn]=(0,Bt.Z)(),Hr=(0,y.useMemo)(()=>tn==null?void 0:tn.map(na=>{var Un;return Object.assign(Object.assign({},na),{className:f()(na.className,{[`${Pi}-primary`]:((Un=na.type)!==null&&Un!==void 0?Un:bt)==="primary"})})}),[tn,bt]),Jr=(0,wt.Z)({arrowPointAtCenter:!0,autoAdjustOverflow:!0,offset:xn.marginXXS,arrowWidth:xn.sizePopupArrow,borderRadius:xn.borderRadius}),Yi=f()({[`${Pi}-rtl`]:Ri==="rtl"},ys,Ht),xo=(na,Un)=>y.createElement(yo,{type:bt,stepProps:na,current:Un,indicatorsRender:Wn});return Wo(y.createElement(He,Object.assign({},hr,{rootClassName:Yi,prefixCls:Pi,animated:!0,renderPanel:xo,builtinPlacements:Jr,steps:Hr})))};Wt._InternalPanelDoNotUseOrYouWillBeFired=_t;var on=Wt},91554:function(nt,V,m){"use strict";m.d(V,{Z:function(){return rs}});var y=m(77617),I=m(75769),b=m(26508),z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},k=z,N=m(91851),w=function(pn,br){return y.createElement(N.Z,(0,b.Z)({},pn,{ref:br,icon:k}))},A=y.forwardRef(w),C={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},f=C,S=function(pn,br){return y.createElement(N.Z,(0,b.Z)({},pn,{ref:br,icon:f}))},P=y.forwardRef(S),W=m(12124),ne=m.n(W),re=m(25769),ce=m.n(re),pe=m(28647),he=m(38930),fe=m(62305),Be=m(41760),Ie=m(39029),We=m(9681),De=m(8339),ve=m(38251),ye=function(zt,pn){var br={};for(var Gr in zt)Object.prototype.hasOwnProperty.call(zt,Gr)&&pn.indexOf(Gr)<0&&(br[Gr]=zt[Gr]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ui=0,Gr=Object.getOwnPropertySymbols(zt);ui{const br=ji=>{const{keyCode:Tr}=ji;Tr===ve.Z.ENTER&&ji.preventDefault()},Gr=ji=>{const{keyCode:Tr}=ji,{onClick:Qt}=zt;Tr===ve.Z.ENTER&&Qt&&Qt()},{style:ui,noStyle:xi,disabled:lo}=zt,Kr=ye(zt,["style","noStyle","disabled"]);let ti={};return xi||(ti=Object.assign({},we)),lo&&(ti.pointerEvents="none"),ti=Object.assign(Object.assign({},ti),ui),y.createElement("div",Object.assign({role:"button",tabIndex:0,ref:pn},Kr,{onKeyDown:br,onKeyUp:Gr,style:ti}))}),me=m(67392),je=m(879),xe=m(16175),Pt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},ct=Pt,He=function(pn,br){return y.createElement(N.Z,(0,b.Z)({},pn,{ref:br,icon:ct}))},wt=y.forwardRef(He),dt=m(99486),Bt=m(25279),gt=m(24967),_n=m(24577),Bn=m(63511);const Er=(zt,pn,br,Gr)=>{const{titleMarginBottom:ui,fontWeightStrong:xi}=Gr;return{marginBottom:ui,color:br,fontWeight:xi,fontSize:zt,lineHeight:pn}},Yr=zt=>{const pn=[1,2,3,4,5],br={};return pn.forEach(Gr=>{br[` h${Gr}&, div&-h${Gr}, div&-h${Gr} > textarea, h${Gr} - `]=Er(zt[`fontSizeHeading${Gr}`],zt[`lineHeightHeading${Gr}`],zt.colorTextHeading,zt)}),_r},oi=zt=>{const{componentCls:pn}=zt;return{"a&, a":Object.assign(Object.assign({},(0,mt.N)(zt)),{textDecoration:zt.linkDecoration,"&:active, &:hover":{textDecoration:zt.linkHoverDecoration},[`&[disabled], &${pn}-disabled`]:{color:zt.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:zt.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},to=zt=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:zt.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:zt.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Bn.EV[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:zt.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),yo=zt=>{const{componentCls:pn,paddingSM:_r}=zt,Gr=_r;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:-zt.paddingSM,marginTop:-Gr,marginBottom:`calc(1em - ${Gr}px)`},[`${pn}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:zt.marginXS+2,insetBlockEnd:zt.marginXS,color:zt.colorTextDescription,fontWeight:"normal",fontSize:zt.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},vr=zt=>({"&-copy-success":{[` + `]=Er(zt[`fontSizeHeading${Gr}`],zt[`lineHeightHeading${Gr}`],zt.colorTextHeading,zt)}),br},oi=zt=>{const{componentCls:pn}=zt;return{"a&, a":Object.assign(Object.assign({},(0,gt.N)(zt)),{textDecoration:zt.linkDecoration,"&:active, &:hover":{textDecoration:zt.linkHoverDecoration},[`&[disabled], &${pn}-disabled`]:{color:zt.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:zt.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},to=zt=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:zt.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:zt.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Bn.EV[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:zt.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),yo=zt=>{const{componentCls:pn,paddingSM:br}=zt,Gr=br;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:-zt.paddingSM,marginTop:-Gr,marginBottom:`calc(1em - ${Gr}px)`},[`${pn}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:zt.marginXS+2,insetBlockEnd:zt.marginXS,color:zt.colorTextDescription,fontWeight:"normal",fontSize:zt.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},yr=zt=>({"&-copy-success":{[` &, &:hover, &:focus`]:{color:zt.colorSuccess}}}),Po=()=>({[` a&-ellipsis, span&-ellipsis - `]:{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),ss=zt=>{const{componentCls:pn,titleMarginTop:_r}=zt;return{[pn]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:zt.colorText,wordBreak:"break-word",lineHeight:zt.lineHeight,[`&${pn}-secondary`]:{color:zt.colorTextDescription},[`&${pn}-success`]:{color:zt.colorSuccess},[`&${pn}-warning`]:{color:zt.colorWarning},[`&${pn}-danger`]:{color:zt.colorError,"a&:active, a&:focus":{color:zt.colorErrorActive},"a&:hover":{color:zt.colorErrorHover}},[`&${pn}-disabled`]:{color:zt.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},[` + `]:{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),as=zt=>{const{componentCls:pn,titleMarginTop:br}=zt;return{[pn]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:zt.colorText,wordBreak:"break-word",lineHeight:zt.lineHeight,[`&${pn}-secondary`]:{color:zt.colorTextDescription},[`&${pn}-success`]:{color:zt.colorSuccess},[`&${pn}-warning`]:{color:zt.colorWarning},[`&${pn}-danger`]:{color:zt.colorError,"a&:active, a&:focus":{color:zt.colorErrorActive},"a&:hover":{color:zt.colorErrorHover}},[`&${pn}-disabled`]:{color:zt.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},[` div&, p `]:{marginBottom:"1em"}},Yr(zt)),{[` @@ -8025,7 +8078,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter & + h3${pn}, & + h4${pn}, & + h5${pn} - `]:{marginTop:_r},[` + `]:{marginTop:br},[` div, ul, li, @@ -8040,105 +8093,51 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter + h3, + h4, + h5 - `]:{marginTop:_r}}}),to(zt)),oi(zt)),{[` + `]:{marginTop:br}}}),to(zt)),oi(zt)),{[` ${pn}-expand, ${pn}-edit, ${pn}-copy - `]:Object.assign(Object.assign({},(0,mt.N)(zt)),{marginInlineStart:zt.marginXXS})}),yo(zt)),vr(zt)),Po()),{"&-rtl":{direction:"rtl"}})}};var ve=(0,_n.Z)("Typography",zt=>[ss(zt)],()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})),ci=zt=>{const{prefixCls:pn,"aria-label":_r,className:Gr,style:ui,direction:Ci,maxLength:lo,autoSize:Kr=!0,value:ti,onSave:Wi,onCancel:Tr,onEnd:Qt,component:Gn,enterIcon:yi=y.createElement(bt,null)}=zt,Ln=y.useRef(null),Si=y.useRef(!1),tr=y.useRef(),[vi,Ni]=y.useState(ti);y.useEffect(()=>{Ni(ti)},[ti]),y.useEffect(()=>{if(Ln.current&&Ln.current.resizableTextArea){const{textArea:jo}=Ln.current.resizableTextArea;jo.focus();const{length:Es}=jo.value;jo.setSelectionRange(Es,Es)}},[]);const kr=jo=>{let{target:Es}=jo;Ni(Es.value.replace(/[\n\r]/g,""))},Qn=()=>{Si.current=!0},ds=()=>{Si.current=!1},_a=jo=>{let{keyCode:Es}=jo;Si.current||(tr.current=Es)},da=()=>{Wi(vi.trim())},zs=jo=>{let{keyCode:Es,ctrlKey:xs,altKey:Za,metaKey:tl,shiftKey:xl}=jo;tr.current===Es&&!Si.current&&!xs&&!Za&&!tl&&!xl&&(Es===ge.Z.ENTER?(da(),Qt==null||Qt()):Es===ge.Z.ESC&&Tr())},ja=()=>{da()},Co=Gn?`${pn}-${Gn}`:"",[dl,Fr]=ve(pn),fs=re()(pn,`${pn}-edit-content`,{[`${pn}-rtl`]:Ci==="rtl"},Gr,Co,Fr);return dl(y.createElement("div",{className:fs,style:ui},y.createElement(Bt.Z,{ref:Ln,maxLength:lo,value:vi,onChange:kr,onKeyDown:_a,onKeyUp:zs,onCompositionStart:Qn,onCompositionEnd:ds,onBlur:ja,"aria-label":_r,rows:1,autoSize:Kr}),yi!==null?(0,ht.Tm)(yi,{className:`${pn}-edit-content-confirm`}):null))},Bi=function(zt,pn){var _r={};for(var Gr in zt)Object.prototype.hasOwnProperty.call(zt,Gr)&&pn.indexOf(Gr)<0&&(_r[Gr]=zt[Gr]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ui=0,Gr=Object.getOwnPropertySymbols(zt);ui{const{prefixCls:_r,component:Gr="article",className:ui,rootClassName:Ci,setContentRef:lo,children:Kr,direction:ti,style:Wi}=zt,Tr=Bi(zt,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:Qt,direction:Gn,typography:yi}=y.useContext(me.E_),Ln=ti!=null?ti:Gn;let Si=pn;lo&&(Si=(0,Ne.sQ)(pn,lo));const tr=Qt("typography",_r),[vi,Ni]=ve(tr),kr=re()(tr,yi==null?void 0:yi.className,{[`${tr}-rtl`]:Ln==="rtl"},ui,Ci,Ni),Qn=Object.assign(Object.assign({},yi==null?void 0:yi.style),Wi);return vi(y.createElement(Gr,Object.assign({className:kr,style:Qn,ref:Si},Tr),Kr))});function ln(zt,pn){return y.useMemo(()=>{const _r=!!zt;return[_r,Object.assign(Object.assign({},pn),_r&&typeof zt=="object"?zt:null)]},[zt])}var _t=(zt,pn)=>{const _r=y.useRef(!1);y.useEffect(()=>{_r.current?zt():_r.current=!0},pn)};function Ct(zt){const pn=typeof zt;return pn==="string"||pn==="number"}function jt(zt){let pn=0;return zt.forEach(_r=>{Ct(_r)?pn+=String(_r).length:pn+=1}),pn}function on(zt,pn){let _r=0;const Gr=[];for(let ui=0;uipn){const Wi=pn-_r;return Gr.push(String(Ci).slice(0,Wi)),Gr}Gr.push(Ci),_r=ti}return zt}const Ot=0,Tt=1,xt=2,Ht=3,Zn=4;var hr=zt=>{let{enabledMeasure:pn,children:_r,text:Gr,width:ui,fontSize:Ci,rows:lo,onEllipsis:Kr}=zt;const[[ti,Wi,Tr],Qt]=y.useState([0,0,0]),[Gn,yi]=y.useState(0),[Ln,Si]=y.useState(Ot),[tr,vi]=y.useState(0),Ni=y.useRef(null),kr=y.useRef(null),Qn=y.useMemo(()=>(0,he.Z)(Gr),[Gr]),ds=y.useMemo(()=>jt(Qn),[Qn]),_a=y.useMemo(()=>!pn||Ln!==Ht?Gn&&Ln!==Zn&&pn?_r(on(Qn,Gn),Gn{pn&&ui&&Ci&&ds&&(Si(Tt),Qt([0,Math.ceil(ds/2),ds]))},[pn,ui,Ci,Gr,ds,lo]),(0,fe.Z)(()=>{var Co;Ln===Tt&&vi(((Co=Ni.current)===null||Co===void 0?void 0:Co.offsetHeight)||0)},[Ln]),(0,fe.Z)(()=>{var Co,dl;if(tr){if(Ln===Tt){const Fr=((Co=kr.current)===null||Co===void 0?void 0:Co.offsetHeight)||0,fs=lo*tr;Fr<=fs?(Si(Zn),Kr(!1)):Si(xt)}else if(Ln===xt)if(ti!==Tr){const Fr=((dl=kr.current)===null||dl===void 0?void 0:dl.offsetHeight)||0,fs=lo*tr;let jo=ti,Es=Tr;ti===Tr-1?Es=ti:Fr<=fs?jo=Wi:Es=Wi;const xs=Math.ceil((jo+Es)/2);Qt([jo,xs,Es])}else Si(Ht),yi(Wi),Kr(!0)}},[Ln,ti,Tr,lo,tr]);const da={width:ui,whiteSpace:"normal",margin:0,padding:0},zs=(Co,dl,Fr)=>y.createElement("span",{"aria-hidden":!0,ref:dl,style:Object.assign({position:"fixed",display:"block",left:0,top:0,zIndex:-9999,visibility:"hidden",pointerEvents:"none",fontSize:Math.ceil(Ci/2)*2},Fr)},Co),ja=(Co,dl)=>{const Fr=on(Qn,Co);return zs(_r(Fr,!0),dl,da)};return y.createElement(y.Fragment,null,_a,pn&&Ln!==Ht&&Ln!==Zn&&y.createElement(y.Fragment,null,zs("lg",Ni,{wordBreak:"keep-all",whiteSpace:"nowrap"}),Ln===Tt?zs(_r(Qn,!1),kr,da):ja(Wi,kr)))},Ri=zt=>{let{enabledEllipsis:pn,isEllipsis:_r,children:Gr,tooltipProps:ui}=zt;return!(ui!=null&&ui.title)||!pn?Gr:y.createElement(Ce.Z,Object.assign({open:_r?void 0:!1},ui),Gr)},Pi=function(zt,pn){var _r={};for(var Gr in zt)Object.prototype.hasOwnProperty.call(zt,Gr)&&pn.indexOf(Gr)<0&&(_r[Gr]=zt[Gr]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ui=0,Gr=Object.getOwnPropertySymbols(zt);ui{var _r,Gr,ui;const{prefixCls:Ci,className:lo,style:Kr,type:ti,disabled:Wi,children:Tr,ellipsis:Qt,editable:Gn,copyable:yi,component:Ln,title:Si}=zt,tr=Pi(zt,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:vi,direction:Ni}=y.useContext(me.E_),[kr]=(0,We.Z)("Text"),Qn=y.useRef(null),ds=y.useRef(null),_a=vi("typography",Ci),da=(0,we.Z)(tr,["mark","code","delete","underline","strong","keyboard","italic"]),[zs,ja]=ln(Gn),[Co,dl]=(0,ke.Z)(!1,{value:ja.editing}),{triggerType:Fr=["icon"]}=ja,fs=ho=>{var qi;ho&&((qi=ja.onStart)===null||qi===void 0||qi.call(ja)),dl(ho)};_t(()=>{var ho;Co||(ho=ds.current)===null||ho===void 0||ho.focus()},[Co]);const jo=ho=>{ho==null||ho.preventDefault(),fs(!0)},Es=ho=>{var qi;(qi=ja.onChange)===null||qi===void 0||qi.call(ja,ho),fs(!1)},xs=()=>{var ho;(ho=ja.onCancel)===null||ho===void 0||ho.call(ja),fs(!1)},[Za,tl]=ln(yi),[xl,Qa]=y.useState(!1),si=y.useRef(null),co={};tl.format&&(co.format=tl.format);const dn=()=>{si.current&&clearTimeout(si.current)},Dn=ho=>{var qi;ho==null||ho.preventDefault(),ho==null||ho.stopPropagation(),ie()(tl.text||String(Tr)||"",co),Qa(!0),dn(),si.current=setTimeout(()=>{Qa(!1)},3e3),(qi=tl.onCopy)===null||qi===void 0||qi.call(tl,ho)};y.useEffect(()=>dn,[]);const[Nn,tt]=y.useState(!1),[dt,vt]=y.useState(!1),[ze,lt]=y.useState(!1),[Et,an]=y.useState(!1),[jn,xr]=y.useState(!1),[Ti,$i]=y.useState(!0),[Vi,us]=ln(Qt,{expandable:!1}),ks=Vi&&!ze,{rows:Os=1}=us,pa=y.useMemo(()=>!ks||us.suffix!==void 0||us.onEllipsis||us.expandable||zs||Za,[ks,us,zs,Za]);(0,fe.Z)(()=>{Vi&&!pa&&(tt((0,Ee.G)("webkitLineClamp")),vt((0,Ee.G)("textOverflow")))},[pa,Vi]);const no=y.useMemo(()=>pa?!1:Os===1?dt:Nn,[pa,dt,Nn]),Cs=ks&&(no?jn:Et),ea=ks&&Os===1&&no,fa=ks&&Os>1&&no,Bl=ho=>{var qi;lt(!0),(qi=us.onExpand)===null||qi===void 0||qi.call(us,ho)},[Ma,gl]=y.useState(0),[ia,Nl]=y.useState(0),cs=(ho,qi)=>{let{offsetWidth:os}=ho;var $n;gl(os),Nl(parseInt(($n=window.getComputedStyle)===null||$n===void 0?void 0:$n.call(window,qi).fontSize,10)||0)},zi=ho=>{var qi;an(ho),Et!==ho&&((qi=us.onEllipsis)===null||qi===void 0||qi.call(us,ho))};y.useEffect(()=>{const ho=Qn.current;if(Vi&&no&&ho){const qi=fa?ho.offsetHeight{const ho=Qn.current;if(typeof IntersectionObserver=="undefined"||!ho||!no||!ks)return;const qi=new IntersectionObserver(()=>{$i(!!ho.offsetParent)});return qi.observe(ho),()=>{qi.disconnect()}},[no,ks]);let Ji={};us.tooltip===!0?Ji={title:(_r=ja.text)!==null&&_r!==void 0?_r:Tr}:y.isValidElement(us.tooltip)?Ji={title:us.tooltip}:typeof us.tooltip=="object"?Ji=Object.assign({title:(Gr=ja.text)!==null&&Gr!==void 0?Gr:Tr},us.tooltip):Ji={title:us.tooltip};const ta=y.useMemo(()=>{const ho=qi=>["string","number"].includes(typeof qi);if(!(!Vi||no)){if(ho(ja.text))return ja.text;if(ho(Tr))return Tr;if(ho(Si))return Si;if(ho(Ji.title))return Ji.title}},[Vi,no,Si,Ji.title,Cs]);if(Co)return y.createElement(ci,{value:(ui=ja.text)!==null&&ui!==void 0?ui:typeof Tr=="string"?Tr:"",onSave:Es,onCancel:xs,onEnd:ja.onEnd,prefixCls:_a,className:lo,style:Kr,direction:Ni,component:Ln,maxLength:ja.maxLength,autoSize:ja.autoSize,enterIcon:ja.enterIcon});const ms=()=>{const{expandable:ho,symbol:qi}=us;if(!ho)return null;let os;return qi?os=qi:os=kr==null?void 0:kr.expand,y.createElement("a",{key:"expand",className:`${_a}-expand`,onClick:Bl,"aria-label":kr==null?void 0:kr.expand},os)},Ua=()=>{if(!zs)return;const{icon:ho,tooltip:qi}=ja,os=(0,he.Z)(qi)[0]||(kr==null?void 0:kr.edit),$n=typeof os=="string"?os:"";return Fr.includes("icon")?y.createElement(Ce.Z,{key:"edit",title:qi===!1?"":os},y.createElement(Ie,{ref:ds,className:`${_a}-edit`,onClick:jo,"aria-label":$n},ho||y.createElement(P,{role:"button"}))):null},ju=()=>{if(!Za)return;const{tooltips:ho,icon:qi}=tl,os=xn(ho),$n=xn(qi),mr=xl?ys(os[1],kr==null?void 0:kr.copied):ys(os[0],kr==null?void 0:kr.copy),Qr=xl?kr==null?void 0:kr.copied:kr==null?void 0:kr.copy,ni=typeof mr=="string"?mr:Qr;return y.createElement(Ce.Z,{key:"copy",title:mr},y.createElement(Ie,{className:re()(`${_a}-copy`,xl&&`${_a}-copy-success`),onClick:Dn,"aria-label":ni},xl?ys($n[1],y.createElement(A.Z,null),!0):ys($n[0],y.createElement(I,null),!0)))},rc=ho=>[ho&&ms(),Ua(),ju()],Pc=ho=>[ho&&y.createElement("span",{"aria-hidden":!0,key:"ellipsis"},Hr),us.suffix,rc(ho)];return y.createElement(de.Z,{onResize:cs,disabled:!ks||no},ho=>y.createElement(Ri,{tooltipProps:Ji,enabledEllipsis:ks,isEllipsis:Cs},y.createElement(io,Object.assign({className:re()({[`${_a}-${ti}`]:ti,[`${_a}-disabled`]:Wi,[`${_a}-ellipsis`]:Vi,[`${_a}-single-line`]:ks&&Os===1,[`${_a}-ellipsis-single-line`]:ea,[`${_a}-ellipsis-multiple-line`]:fa},lo),prefixCls:Ci,style:Object.assign(Object.assign({},Kr),{WebkitLineClamp:fa?Os:void 0}),component:Ln,ref:(0,Ne.sQ)(ho,Qn,pn),direction:Ni,onClick:Fr.includes("text")?jo:void 0,"aria-label":ta==null?void 0:ta.toString(),title:Si},da),y.createElement(hr,{enabledMeasure:ks&&!no,text:Tr,rows:Os,width:Ma,fontSize:ia,onEllipsis:zi},(qi,os)=>{let $n=qi;return qi.length&&os&&ta&&($n=y.createElement("span",{key:"show-content","aria-hidden":!0},$n)),$o(zt,y.createElement(y.Fragment,null,$n,Pc(os)))}))))}),xo=function(zt,pn){var _r={};for(var Gr in zt)Object.prototype.hasOwnProperty.call(zt,Gr)&&pn.indexOf(Gr)<0&&(_r[Gr]=zt[Gr]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ui=0,Gr=Object.getOwnPropertySymbols(zt);ui{var{ellipsis:_r,rel:Gr}=zt,ui=xo(zt,["ellipsis","rel"]);const Ci=Object.assign(Object.assign({},ui),{rel:Gr===void 0&&ui.target==="_blank"?"noopener noreferrer":Gr});return delete Ci.navigate,y.createElement(Yi,Object.assign({},Ci,{ref:pn,ellipsis:!!_r,component:"a"}))}),Mr=y.forwardRef((zt,pn)=>y.createElement(Yi,Object.assign({ref:pn},zt,{component:"div"}))),li=function(zt,pn){var _r={};for(var Gr in zt)Object.prototype.hasOwnProperty.call(zt,Gr)&&pn.indexOf(Gr)<0&&(_r[Gr]=zt[Gr]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ui=0,Gr=Object.getOwnPropertySymbols(zt);ui{var{ellipsis:_r}=zt,Gr=li(zt,["ellipsis"]);const ui=y.useMemo(()=>_r&&typeof _r=="object"?(0,we.Z)(_r,["expandable","rows"]):_r,[_r]);return y.createElement(Yi,Object.assign({ref:pn},Gr,{ellipsis:ui,component:"span"}))};var qr=y.forwardRef(Cr),ii=function(zt,pn){var _r={};for(var Gr in zt)Object.prototype.hasOwnProperty.call(zt,Gr)&&pn.indexOf(Gr)<0&&(_r[Gr]=zt[Gr]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ui=0,Gr=Object.getOwnPropertySymbols(zt);ui{const{level:_r=1}=zt,Gr=ii(zt,["level"]);let ui;return rn.includes(_r)?ui=`h${_r}`:ui="h1",y.createElement(Yi,Object.assign({ref:pn},Gr,{component:ui}))});const so=io;so.Text=qr,so.Link=Vn,so.Title=Vr,so.Paragraph=Mr;var rs=so},54397:function(nt,V,m){"use strict";m.d(V,{Z:function(){return os}});var y=m(67294),A=m(74902),b=m(73935),z=m(94184),k=m.n(z),N=m(87462),w=m(15671),I=m(43144),C=m(60136),f=m(29388),S=m(4942),P=m(91),j=m(74165),re=m(71002),J=m(15861),ie=m(64217);function de($n,mr){var Qr="cannot ".concat($n.method," ").concat($n.action," ").concat(mr.status,"'"),ni=new Error(Qr);return ni.status=mr.status,ni.method=$n.method,ni.url=$n.action,ni}function he($n){var mr=$n.responseText||$n.response;if(!mr)return mr;try{return JSON.parse(mr)}catch(Qr){return mr}}function fe($n){var mr=new XMLHttpRequest;$n.onProgress&&mr.upload&&(mr.upload.onprogress=function(ro){ro.total>0&&(ro.percent=ro.loaded/ro.total*100),$n.onProgress(ro)});var Qr=new FormData;$n.data&&Object.keys($n.data).forEach(function(Ki){var ro=$n.data[Ki];if(Array.isArray(ro)){ro.forEach(function(Ei){Qr.append("".concat(Ki,"[]"),Ei)});return}Qr.append(Ki,ro)}),$n.file instanceof Blob?Qr.append($n.filename,$n.file,$n.file.name):Qr.append($n.filename,$n.file),mr.onerror=function(ro){$n.onError(ro)},mr.onload=function(){return mr.status<200||mr.status>=300?$n.onError(de($n,mr),he(mr)):$n.onSuccess(he(mr),mr)},mr.open($n.method,$n.action,!0),$n.withCredentials&&"withCredentials"in mr&&(mr.withCredentials=!0);var ni=$n.headers||{};return ni["X-Requested-With"]!==null&&mr.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(ni).forEach(function(Ki){ni[Ki]!==null&&mr.setRequestHeader(Ki,ni[Ki])}),mr.send(Qr),{abort:function(){mr.abort()}}}var ke=+new Date,we=0;function Ne(){return"rc-upload-".concat(ke,"-").concat(++we)}var Ee=m(80334),ge=function($n,mr){if($n&&mr){var Qr=Array.isArray(mr)?mr:mr.split(","),ni=$n.name||"",Ki=$n.type||"",ro=Ki.replace(/\/.*$/,"");return Qr.some(function(Ei){var ns=Ei.trim();if(/^\*(\/\*)?$/.test(Ei))return!0;if(ns.charAt(0)==="."){var ua=ni.toLowerCase(),Na=ns.toLowerCase(),cl=[Na];return(Na===".jpg"||Na===".jpeg")&&(cl=[".jpg",".jpeg"]),cl.some(function(Zl){return ua.endsWith(Zl)})}return/\/\*$/.test(ns)?ro===ns.replace(/\/.*$/,""):Ki===ns?!0:/^\w+$/.test(ns)?((0,Ee.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(ns,"'.Skip for check.")),!0):!1})}return!0};function ye($n,mr){var Qr=$n.createReader(),ni=[];function Ki(){Qr.readEntries(function(ro){var Ei=Array.prototype.slice.apply(ro);ni=ni.concat(Ei);var ns=!Ei.length;ns?mr(ni):Ki()})}Ki()}var xe=function(mr,Qr,ni){var Ki=function ro(Ei,ns){Ei&&(Ei.path=ns||"",Ei.isFile?Ei.file(function(ua){ni(ua)&&(Ei.fullPath&&!ua.webkitRelativePath&&(Object.defineProperties(ua,{webkitRelativePath:{writable:!0}}),ua.webkitRelativePath=Ei.fullPath.replace(/^\//,""),Object.defineProperties(ua,{webkitRelativePath:{writable:!1}})),Qr([ua]))}):Ei.isDirectory&&ye(Ei,function(ua){ua.forEach(function(Na){ro(Na,"".concat(ns).concat(Ei.name,"/"))})}))};mr.forEach(function(ro){Ki(ro.webkitGetAsEntry())})},be=xe,Ie=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],me=function($n){(0,C.Z)(Qr,$n);var mr=(0,f.Z)(Qr);function Qr(){var ni;(0,w.Z)(this,Qr);for(var Ki=arguments.length,ro=new Array(Ki),Ei=0;Ei{const{componentCls:mr,iconCls:Qr}=$n;return{[`${mr}-wrapper`]:{[`${mr}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:$n.colorFillAlter,border:`${$n.lineWidth}px dashed ${$n.colorBorder}`,borderRadius:$n.borderRadiusLG,cursor:"pointer",transition:`border-color ${$n.motionDurationSlow}`,[mr]:{padding:`${$n.padding}px 0`},[`${mr}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${mr}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${mr}-disabled):hover`]:{borderColor:$n.colorPrimaryHover},[`p${mr}-drag-icon`]:{marginBottom:$n.margin,[Qr]:{color:$n.colorPrimary,fontSize:$n.uploadThumbnailSize}},[`p${mr}-text`]:{margin:`0 0 ${$n.marginXXS}px`,color:$n.colorTextHeading,fontSize:$n.fontSizeLG},[`p${mr}-hint`]:{color:$n.colorTextDescription,fontSize:$n.fontSize},[`&${mr}-disabled`]:{cursor:"not-allowed",[`p${mr}-drag-icon ${Qr}, + `]:Object.assign(Object.assign({},(0,gt.N)(zt)),{marginInlineStart:zt.marginXXS})}),yo(zt)),yr(zt)),Po()),{"&-rtl":{direction:"rtl"}})}};var ge=(0,_n.Z)("Typography",zt=>[as(zt)],()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})),ci=zt=>{const{prefixCls:pn,"aria-label":br,className:Gr,style:ui,direction:xi,maxLength:lo,autoSize:Kr=!0,value:ti,onSave:ji,onCancel:Tr,onEnd:Qt,component:Gn,enterIcon:yi=y.createElement(wt,null)}=zt,Ln=y.useRef(null),Si=y.useRef(!1),tr=y.useRef(),[vi,Ni]=y.useState(ti);y.useEffect(()=>{Ni(ti)},[ti]),y.useEffect(()=>{if(Ln.current&&Ln.current.resizableTextArea){const{textArea:jo}=Ln.current.resizableTextArea;jo.focus();const{length:Es}=jo.value;jo.setSelectionRange(Es,Es)}},[]);const kr=jo=>{let{target:Es}=jo;Ni(Es.value.replace(/[\n\r]/g,""))},qn=()=>{Si.current=!0},ds=()=>{Si.current=!1},_a=jo=>{let{keyCode:Es}=jo;Si.current||(tr.current=Es)},da=()=>{ji(vi.trim())},zs=jo=>{let{keyCode:Es,ctrlKey:xs,altKey:Za,metaKey:tl,shiftKey:xl}=jo;tr.current===Es&&!Si.current&&!xs&&!Za&&!tl&&!xl&&(Es===ve.Z.ENTER?(da(),Qt==null||Qt()):Es===ve.Z.ESC&&Tr())},Wa=()=>{da()},Co=Gn?`${pn}-${Gn}`:"",[cl,Fr]=ge(pn),fs=ne()(pn,`${pn}-edit-content`,{[`${pn}-rtl`]:xi==="rtl"},Gr,Co,Fr);return cl(y.createElement("div",{className:fs,style:ui},y.createElement(Bt.Z,{ref:Ln,maxLength:lo,value:vi,onChange:kr,onKeyDown:_a,onKeyUp:zs,onCompositionStart:qn,onCompositionEnd:ds,onBlur:Wa,"aria-label":br,rows:1,autoSize:Kr}),yi!==null?(0,dt.Tm)(yi,{className:`${pn}-edit-content-confirm`}):null))},Bi=function(zt,pn){var br={};for(var Gr in zt)Object.prototype.hasOwnProperty.call(zt,Gr)&&pn.indexOf(Gr)<0&&(br[Gr]=zt[Gr]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ui=0,Gr=Object.getOwnPropertySymbols(zt);ui{const{prefixCls:br,component:Gr="article",className:ui,rootClassName:xi,setContentRef:lo,children:Kr,direction:ti,style:ji}=zt,Tr=Bi(zt,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:Qt,direction:Gn,typography:yi}=y.useContext(me.E_),Ln=ti!=null?ti:Gn;let Si=pn;lo&&(Si=(0,We.sQ)(pn,lo));const tr=Qt("typography",br),[vi,Ni]=ge(tr),kr=ne()(tr,yi==null?void 0:yi.className,{[`${tr}-rtl`]:Ln==="rtl"},ui,xi,Ni),qn=Object.assign(Object.assign({},yi==null?void 0:yi.style),ji);return vi(y.createElement(Gr,Object.assign({className:kr,style:qn,ref:Si},Tr),Kr))});function ln(zt,pn){return y.useMemo(()=>{const br=!!zt;return[br,Object.assign(Object.assign({},pn),br&&typeof zt=="object"?zt:null)]},[zt])}var _t=(zt,pn)=>{const br=y.useRef(!1);y.useEffect(()=>{br.current?zt():br.current=!0},pn)};function xt(zt){const pn=typeof zt;return pn==="string"||pn==="number"}function Wt(zt){let pn=0;return zt.forEach(br=>{xt(br)?pn+=String(br).length:pn+=1}),pn}function on(zt,pn){let br=0;const Gr=[];for(let ui=0;uipn){const ji=pn-br;return Gr.push(String(xi).slice(0,ji)),Gr}Gr.push(xi),br=ti}return zt}const Ot=0,Tt=1,bt=2,Ht=3,Wn=4;var hr=zt=>{let{enabledMeasure:pn,children:br,text:Gr,width:ui,fontSize:xi,rows:lo,onEllipsis:Kr}=zt;const[[ti,ji,Tr],Qt]=y.useState([0,0,0]),[Gn,yi]=y.useState(0),[Ln,Si]=y.useState(Ot),[tr,vi]=y.useState(0),Ni=y.useRef(null),kr=y.useRef(null),qn=y.useMemo(()=>(0,he.Z)(Gr),[Gr]),ds=y.useMemo(()=>Wt(qn),[qn]),_a=y.useMemo(()=>!pn||Ln!==Ht?Gn&&Ln!==Wn&&pn?br(on(qn,Gn),Gn{pn&&ui&&xi&&ds&&(Si(Tt),Qt([0,Math.ceil(ds/2),ds]))},[pn,ui,xi,Gr,ds,lo]),(0,fe.Z)(()=>{var Co;Ln===Tt&&vi(((Co=Ni.current)===null||Co===void 0?void 0:Co.offsetHeight)||0)},[Ln]),(0,fe.Z)(()=>{var Co,cl;if(tr){if(Ln===Tt){const Fr=((Co=kr.current)===null||Co===void 0?void 0:Co.offsetHeight)||0,fs=lo*tr;Fr<=fs?(Si(Wn),Kr(!1)):Si(bt)}else if(Ln===bt)if(ti!==Tr){const Fr=((cl=kr.current)===null||cl===void 0?void 0:cl.offsetHeight)||0,fs=lo*tr;let jo=ti,Es=Tr;ti===Tr-1?Es=ti:Fr<=fs?jo=ji:Es=ji;const xs=Math.ceil((jo+Es)/2);Qt([jo,xs,Es])}else Si(Ht),yi(ji),Kr(!0)}},[Ln,ti,Tr,lo,tr]);const da={width:ui,whiteSpace:"normal",margin:0,padding:0},zs=(Co,cl,Fr)=>y.createElement("span",{"aria-hidden":!0,ref:cl,style:Object.assign({position:"fixed",display:"block",left:0,top:0,zIndex:-9999,visibility:"hidden",pointerEvents:"none",fontSize:Math.ceil(xi/2)*2},Fr)},Co),Wa=(Co,cl)=>{const Fr=on(qn,Co);return zs(br(Fr,!0),cl,da)};return y.createElement(y.Fragment,null,_a,pn&&Ln!==Ht&&Ln!==Wn&&y.createElement(y.Fragment,null,zs("lg",Ni,{wordBreak:"keep-all",whiteSpace:"nowrap"}),Ln===Tt?zs(br(qn,!1),kr,da):Wa(ji,kr)))},Ri=zt=>{let{enabledEllipsis:pn,isEllipsis:br,children:Gr,tooltipProps:ui}=zt;return!(ui!=null&&ui.title)||!pn?Gr:y.createElement(xe.Z,Object.assign({open:br?void 0:!1},ui),Gr)},Pi=function(zt,pn){var br={};for(var Gr in zt)Object.prototype.hasOwnProperty.call(zt,Gr)&&pn.indexOf(Gr)<0&&(br[Gr]=zt[Gr]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ui=0,Gr=Object.getOwnPropertySymbols(zt);ui{var br,Gr,ui;const{prefixCls:xi,className:lo,style:Kr,type:ti,disabled:ji,children:Tr,ellipsis:Qt,editable:Gn,copyable:yi,component:Ln,title:Si}=zt,tr=Pi(zt,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:vi,direction:Ni}=y.useContext(me.E_),[kr]=(0,je.Z)("Text"),qn=y.useRef(null),ds=y.useRef(null),_a=vi("typography",xi),da=(0,Ie.Z)(tr,["mark","code","delete","underline","strong","keyboard","italic"]),[zs,Wa]=ln(Gn),[Co,cl]=(0,Be.Z)(!1,{value:Wa.editing}),{triggerType:Fr=["icon"]}=Wa,fs=ho=>{var Ji;ho&&((Ji=Wa.onStart)===null||Ji===void 0||Ji.call(Wa)),cl(ho)};_t(()=>{var ho;Co||(ho=ds.current)===null||ho===void 0||ho.focus()},[Co]);const jo=ho=>{ho==null||ho.preventDefault(),fs(!0)},Es=ho=>{var Ji;(Ji=Wa.onChange)===null||Ji===void 0||Ji.call(Wa,ho),fs(!1)},xs=()=>{var ho;(ho=Wa.onCancel)===null||ho===void 0||ho.call(Wa),fs(!1)},[Za,tl]=ln(yi),[xl,Qa]=y.useState(!1),si=y.useRef(null),co={};tl.format&&(co.format=tl.format);const dn=()=>{si.current&&clearTimeout(si.current)},An=ho=>{var Ji;ho==null||ho.preventDefault(),ho==null||ho.stopPropagation(),ce()(tl.text||String(Tr)||"",co),Qa(!0),dn(),si.current=setTimeout(()=>{Qa(!1)},3e3),(Ji=tl.onCopy)===null||Ji===void 0||Ji.call(tl,ho)};y.useEffect(()=>dn,[]);const[Nn,tt]=y.useState(!1),[ht,vt]=y.useState(!1),[Fe,lt]=y.useState(!1),[Et,an]=y.useState(!1),[jn,Cr]=y.useState(!1),[Ti,$i]=y.useState(!0),[Vi,us]=ln(Qt,{expandable:!1}),ks=Vi&&!Fe,{rows:Os=1}=us,pa=y.useMemo(()=>!ks||us.suffix!==void 0||us.onEllipsis||us.expandable||zs||Za,[ks,us,zs,Za]);(0,fe.Z)(()=>{Vi&&!pa&&(tt((0,De.G)("webkitLineClamp")),vt((0,De.G)("textOverflow")))},[pa,Vi]);const no=y.useMemo(()=>pa?!1:Os===1?ht:Nn,[pa,ht,Nn]),Cs=ks&&(no?jn:Et),ea=ks&&Os===1&&no,fa=ks&&Os>1&&no,Bl=ho=>{var Ji;lt(!0),(Ji=us.onExpand)===null||Ji===void 0||Ji.call(us,ho)},[Ma,pl]=y.useState(0),[oa,Nl]=y.useState(0),cs=(ho,Ji)=>{let{offsetWidth:ss}=ho;var $n;pl(ss),Nl(parseInt(($n=window.getComputedStyle)===null||$n===void 0?void 0:$n.call(window,Ji).fontSize,10)||0)},zi=ho=>{var Ji;an(ho),Et!==ho&&((Ji=us.onEllipsis)===null||Ji===void 0||Ji.call(us,ho))};y.useEffect(()=>{const ho=qn.current;if(Vi&&no&&ho){const Ji=fa?ho.offsetHeight{const ho=qn.current;if(typeof IntersectionObserver=="undefined"||!ho||!no||!ks)return;const Ji=new IntersectionObserver(()=>{$i(!!ho.offsetParent)});return Ji.observe(ho),()=>{Ji.disconnect()}},[no,ks]);let qi={};us.tooltip===!0?qi={title:(br=Wa.text)!==null&&br!==void 0?br:Tr}:y.isValidElement(us.tooltip)?qi={title:us.tooltip}:typeof us.tooltip=="object"?qi=Object.assign({title:(Gr=Wa.text)!==null&&Gr!==void 0?Gr:Tr},us.tooltip):qi={title:us.tooltip};const ta=y.useMemo(()=>{const ho=Ji=>["string","number"].includes(typeof Ji);if(!(!Vi||no)){if(ho(Wa.text))return Wa.text;if(ho(Tr))return Tr;if(ho(Si))return Si;if(ho(qi.title))return qi.title}},[Vi,no,Si,qi.title,Cs]);if(Co)return y.createElement(ci,{value:(ui=Wa.text)!==null&&ui!==void 0?ui:typeof Tr=="string"?Tr:"",onSave:Es,onCancel:xs,onEnd:Wa.onEnd,prefixCls:_a,className:lo,style:Kr,direction:Ni,component:Ln,maxLength:Wa.maxLength,autoSize:Wa.autoSize,enterIcon:Wa.enterIcon});const ms=()=>{const{expandable:ho,symbol:Ji}=us;if(!ho)return null;let ss;return Ji?ss=Ji:ss=kr==null?void 0:kr.expand,y.createElement("a",{key:"expand",className:`${_a}-expand`,onClick:Bl,"aria-label":kr==null?void 0:kr.expand},ss)},Ua=()=>{if(!zs)return;const{icon:ho,tooltip:Ji}=Wa,ss=(0,he.Z)(Ji)[0]||(kr==null?void 0:kr.edit),$n=typeof ss=="string"?ss:"";return Fr.includes("icon")?y.createElement(xe.Z,{key:"edit",title:Ji===!1?"":ss},y.createElement(Ae,{ref:ds,className:`${_a}-edit`,onClick:jo,"aria-label":$n},ho||y.createElement(P,{role:"button"}))):null},$u=()=>{if(!Za)return;const{tooltips:ho,icon:Ji}=tl,ss=xn(ho),$n=xn(Ji),mr=xl?ys(ss[1],kr==null?void 0:kr.copied):ys(ss[0],kr==null?void 0:kr.copy),Qr=xl?kr==null?void 0:kr.copied:kr==null?void 0:kr.copy,ni=typeof mr=="string"?mr:Qr;return y.createElement(xe.Z,{key:"copy",title:mr},y.createElement(Ae,{className:ne()(`${_a}-copy`,xl&&`${_a}-copy-success`),onClick:An,"aria-label":ni},xl?ys($n[1],y.createElement(I.Z,null),!0):ys($n[0],y.createElement(A,null),!0)))},rc=ho=>[ho&&ms(),Ua(),$u()],Pc=ho=>[ho&&y.createElement("span",{"aria-hidden":!0,key:"ellipsis"},Hr),us.suffix,rc(ho)];return y.createElement(pe.Z,{onResize:cs,disabled:!ks||no},ho=>y.createElement(Ri,{tooltipProps:qi,enabledEllipsis:ks,isEllipsis:Cs},y.createElement(io,Object.assign({className:ne()({[`${_a}-${ti}`]:ti,[`${_a}-disabled`]:ji,[`${_a}-ellipsis`]:Vi,[`${_a}-single-line`]:ks&&Os===1,[`${_a}-ellipsis-single-line`]:ea,[`${_a}-ellipsis-multiple-line`]:fa},lo),prefixCls:xi,style:Object.assign(Object.assign({},Kr),{WebkitLineClamp:fa?Os:void 0}),component:Ln,ref:(0,We.sQ)(ho,qn,pn),direction:Ni,onClick:Fr.includes("text")?jo:void 0,"aria-label":ta==null?void 0:ta.toString(),title:Si},da),y.createElement(hr,{enabledMeasure:ks&&!no,text:Tr,rows:Os,width:Ma,fontSize:oa,onEllipsis:zi},(Ji,ss)=>{let $n=Ji;return Ji.length&&ss&&ta&&($n=y.createElement("span",{key:"show-content","aria-hidden":!0},$n)),Wo(zt,y.createElement(y.Fragment,null,$n,Pc(ss)))}))))}),xo=function(zt,pn){var br={};for(var Gr in zt)Object.prototype.hasOwnProperty.call(zt,Gr)&&pn.indexOf(Gr)<0&&(br[Gr]=zt[Gr]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ui=0,Gr=Object.getOwnPropertySymbols(zt);ui{var{ellipsis:br,rel:Gr}=zt,ui=xo(zt,["ellipsis","rel"]);const xi=Object.assign(Object.assign({},ui),{rel:Gr===void 0&&ui.target==="_blank"?"noopener noreferrer":Gr});return delete xi.navigate,y.createElement(Yi,Object.assign({},xi,{ref:pn,ellipsis:!!br,component:"a"}))}),Mr=y.forwardRef((zt,pn)=>y.createElement(Yi,Object.assign({ref:pn},zt,{component:"div"}))),li=function(zt,pn){var br={};for(var Gr in zt)Object.prototype.hasOwnProperty.call(zt,Gr)&&pn.indexOf(Gr)<0&&(br[Gr]=zt[Gr]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ui=0,Gr=Object.getOwnPropertySymbols(zt);ui{var{ellipsis:br}=zt,Gr=li(zt,["ellipsis"]);const ui=y.useMemo(()=>br&&typeof br=="object"?(0,Ie.Z)(br,["expandable","rows"]):br,[br]);return y.createElement(Yi,Object.assign({ref:pn},Gr,{ellipsis:ui,component:"span"}))};var qr=y.forwardRef(wr),ii=function(zt,pn){var br={};for(var Gr in zt)Object.prototype.hasOwnProperty.call(zt,Gr)&&pn.indexOf(Gr)<0&&(br[Gr]=zt[Gr]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ui=0,Gr=Object.getOwnPropertySymbols(zt);ui{const{level:br=1}=zt,Gr=ii(zt,["level"]);let ui;return rn.includes(br)?ui=`h${br}`:ui="h1",y.createElement(Yi,Object.assign({ref:pn},Gr,{component:ui}))});const so=io;so.Text=qr,so.Link=Un,so.Title=Vr,so.Paragraph=Mr;var rs=so},22204:function(nt,V,m){"use strict";m.d(V,{Z:function(){return ss}});var y=m(77617),I=m(42371),b=m(79161),z=m(12124),k=m.n(z),N=m(26508),w=m(74809),A=m(57338),C=m(29161),f=m(12826),S=m(80268),P=m(52528),W=m(27968),ne=m(91002),re=m(97100),ce=m(5090);function pe($n,mr){var Qr="cannot ".concat($n.method," ").concat($n.action," ").concat(mr.status,"'"),ni=new Error(Qr);return ni.status=mr.status,ni.method=$n.method,ni.url=$n.action,ni}function he($n){var mr=$n.responseText||$n.response;if(!mr)return mr;try{return JSON.parse(mr)}catch(Qr){return mr}}function fe($n){var mr=new XMLHttpRequest;$n.onProgress&&mr.upload&&(mr.upload.onprogress=function(ro){ro.total>0&&(ro.percent=ro.loaded/ro.total*100),$n.onProgress(ro)});var Qr=new FormData;$n.data&&Object.keys($n.data).forEach(function(Ki){var ro=$n.data[Ki];if(Array.isArray(ro)){ro.forEach(function(Ei){Qr.append("".concat(Ki,"[]"),Ei)});return}Qr.append(Ki,ro)}),$n.file instanceof Blob?Qr.append($n.filename,$n.file,$n.file.name):Qr.append($n.filename,$n.file),mr.onerror=function(ro){$n.onError(ro)},mr.onload=function(){return mr.status<200||mr.status>=300?$n.onError(pe($n,mr),he(mr)):$n.onSuccess(he(mr),mr)},mr.open($n.method,$n.action,!0),$n.withCredentials&&"withCredentials"in mr&&(mr.withCredentials=!0);var ni=$n.headers||{};return ni["X-Requested-With"]!==null&&mr.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(ni).forEach(function(Ki){ni[Ki]!==null&&mr.setRequestHeader(Ki,ni[Ki])}),mr.send(Qr),{abort:function(){mr.abort()}}}var Be=+new Date,Ie=0;function We(){return"rc-upload-".concat(Be,"-").concat(++Ie)}var De=m(46644),ve=function($n,mr){if($n&&mr){var Qr=Array.isArray(mr)?mr:mr.split(","),ni=$n.name||"",Ki=$n.type||"",ro=Ki.replace(/\/.*$/,"");return Qr.some(function(Ei){var ns=Ei.trim();if(/^\*(\/\*)?$/.test(Ei))return!0;if(ns.charAt(0)==="."){var ca=ni.toLowerCase(),Na=ns.toLowerCase(),ul=[Na];return(Na===".jpg"||Na===".jpeg")&&(ul=[".jpg",".jpeg"]),ul.some(function(Hl){return ca.endsWith(Hl)})}return/\/\*$/.test(ns)?ro===ns.replace(/\/.*$/,""):Ki===ns?!0:/^\w+$/.test(ns)?((0,De.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(ns,"'.Skip for check.")),!0):!1})}return!0};function ye($n,mr){var Qr=$n.createReader(),ni=[];function Ki(){Qr.readEntries(function(ro){var Ei=Array.prototype.slice.apply(ro);ni=ni.concat(Ei);var ns=!Ei.length;ns?mr(ni):Ki()})}Ki()}var we=function(mr,Qr,ni){var Ki=function ro(Ei,ns){Ei&&(Ei.path=ns||"",Ei.isFile?Ei.file(function(ca){ni(ca)&&(Ei.fullPath&&!ca.webkitRelativePath&&(Object.defineProperties(ca,{webkitRelativePath:{writable:!0}}),ca.webkitRelativePath=Ei.fullPath.replace(/^\//,""),Object.defineProperties(ca,{webkitRelativePath:{writable:!1}})),Qr([ca]))}):Ei.isDirectory&&ye(Ei,function(ca){ca.forEach(function(Na){ro(Na,"".concat(ns).concat(Ei.name,"/"))})}))};mr.forEach(function(ro){Ki(ro.webkitGetAsEntry())})},Ce=we,Ae=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],me=function($n){(0,C.Z)(Qr,$n);var mr=(0,f.Z)(Qr);function Qr(){var ni;(0,w.Z)(this,Qr);for(var Ki=arguments.length,ro=new Array(Ki),Ei=0;Ei{const{componentCls:mr,iconCls:Qr}=$n;return{[`${mr}-wrapper`]:{[`${mr}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:$n.colorFillAlter,border:`${$n.lineWidth}px dashed ${$n.colorBorder}`,borderRadius:$n.borderRadiusLG,cursor:"pointer",transition:`border-color ${$n.motionDurationSlow}`,[mr]:{padding:`${$n.padding}px 0`},[`${mr}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${mr}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${mr}-disabled):hover`]:{borderColor:$n.colorPrimaryHover},[`p${mr}-drag-icon`]:{marginBottom:$n.margin,[Qr]:{color:$n.colorPrimary,fontSize:$n.uploadThumbnailSize}},[`p${mr}-text`]:{margin:`0 0 ${$n.marginXXS}px`,color:$n.colorTextHeading,fontSize:$n.fontSizeLG},[`p${mr}-hint`]:{color:$n.colorTextDescription,fontSize:$n.fontSize},[`&${mr}-disabled`]:{cursor:"not-allowed",[`p${mr}-drag-icon ${Qr}, p${mr}-text, p${mr}-hint - `]:{color:$n.colorTextDisabled}}}}}},Po=$n=>{const{componentCls:mr,antCls:Qr,iconCls:ni,fontSize:Ki,lineHeight:ro}=$n,Ei=`${mr}-list-item`,ns=`${Ei}-actions`,ua=`${Ei}-action`,Na=Math.round(Ki*ro);return{[`${mr}-wrapper`]:{[`${mr}-list`]:Object.assign(Object.assign({},(0,Bn.dF)()),{lineHeight:$n.lineHeight,[Ei]:{position:"relative",height:$n.lineHeight*Ki,marginTop:$n.marginXS,fontSize:Ki,display:"flex",alignItems:"center",transition:`background-color ${$n.motionDurationSlow}`,"&:hover":{backgroundColor:$n.controlItemBgHover},[`${Ei}-name`]:Object.assign(Object.assign({},Bn.vS),{padding:`0 ${$n.paddingXS}px`,lineHeight:ro,flex:"auto",transition:`all ${$n.motionDurationSlow}`}),[ns]:{[ua]:{opacity:0},[`${ua}${Qr}-btn-sm`]:{height:Na,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[` - ${ua}:focus-visible, - &.picture ${ua} - `]:{opacity:1},[ni]:{color:$n.actionsColor,transition:`all ${$n.motionDurationSlow}`},[`&:hover ${ni}`]:{color:$n.colorText}},[`${mr}-icon ${ni}`]:{color:$n.colorTextDescription,fontSize:Ki},[`${Ei}-progress`]:{position:"absolute",bottom:-$n.uploadProgressOffset,width:"100%",paddingInlineStart:Ki+$n.paddingXS,fontSize:Ki,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Ei}:hover ${ua}`]:{opacity:1,color:$n.colorText},[`${Ei}-error`]:{color:$n.colorError,[`${Ei}-name, ${mr}-icon ${ni}`]:{color:$n.colorError},[ns]:{[`${ni}, ${ni}:hover`]:{color:$n.colorError},[ua]:{opacity:1}}},[`${mr}-list-item-container`]:{transition:`opacity ${$n.motionDurationSlow}, height ${$n.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},ss=m(85731),ve=m(16932);const _o=new ss.E4("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),ci=new ss.E4("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var wi=$n=>{const{componentCls:mr}=$n,Qr=`${mr}-animate-inline`;return[{[`${mr}-wrapper`]:{[`${Qr}-appear, ${Qr}-enter, ${Qr}-leave`]:{animationDuration:$n.motionDurationSlow,animationTimingFunction:$n.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Qr}-appear, ${Qr}-enter`]:{animationName:_o},[`${Qr}-leave`]:{animationName:ci}}},{[`${mr}-wrapper`]:(0,ve.J$)($n)},_o,ci]},io=m(16397),ln=m(10274);const Ve=$n=>{const{componentCls:mr,iconCls:Qr,uploadThumbnailSize:ni,uploadProgressOffset:Ki}=$n,ro=`${mr}-list`,Ei=`${ro}-item`;return{[`${mr}-wrapper`]:{[` + `]:{color:$n.colorTextDisabled}}}}}},Po=$n=>{const{componentCls:mr,antCls:Qr,iconCls:ni,fontSize:Ki,lineHeight:ro}=$n,Ei=`${mr}-list-item`,ns=`${Ei}-actions`,ca=`${Ei}-action`,Na=Math.round(Ki*ro);return{[`${mr}-wrapper`]:{[`${mr}-list`]:Object.assign(Object.assign({},(0,Bn.dF)()),{lineHeight:$n.lineHeight,[Ei]:{position:"relative",height:$n.lineHeight*Ki,marginTop:$n.marginXS,fontSize:Ki,display:"flex",alignItems:"center",transition:`background-color ${$n.motionDurationSlow}`,"&:hover":{backgroundColor:$n.controlItemBgHover},[`${Ei}-name`]:Object.assign(Object.assign({},Bn.vS),{padding:`0 ${$n.paddingXS}px`,lineHeight:ro,flex:"auto",transition:`all ${$n.motionDurationSlow}`}),[ns]:{[ca]:{opacity:0},[`${ca}${Qr}-btn-sm`]:{height:Na,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[` + ${ca}:focus-visible, + &.picture ${ca} + `]:{opacity:1},[ni]:{color:$n.actionsColor,transition:`all ${$n.motionDurationSlow}`},[`&:hover ${ni}`]:{color:$n.colorText}},[`${mr}-icon ${ni}`]:{color:$n.colorTextDescription,fontSize:Ki},[`${Ei}-progress`]:{position:"absolute",bottom:-$n.uploadProgressOffset,width:"100%",paddingInlineStart:Ki+$n.paddingXS,fontSize:Ki,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Ei}:hover ${ca}`]:{opacity:1,color:$n.colorText},[`${Ei}-error`]:{color:$n.colorError,[`${Ei}-name, ${mr}-icon ${ni}`]:{color:$n.colorError},[ns]:{[`${ni}, ${ni}:hover`]:{color:$n.colorError},[ca]:{opacity:1}}},[`${mr}-list-item-container`]:{transition:`opacity ${$n.motionDurationSlow}, height ${$n.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},as=m(84608),ge=m(42402);const _o=new as.E4("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),ci=new as.E4("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Ci=$n=>{const{componentCls:mr}=$n,Qr=`${mr}-animate-inline`;return[{[`${mr}-wrapper`]:{[`${Qr}-appear, ${Qr}-enter, ${Qr}-leave`]:{animationDuration:$n.motionDurationSlow,animationTimingFunction:$n.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Qr}-appear, ${Qr}-enter`]:{animationName:_o},[`${Qr}-leave`]:{animationName:ci}}},{[`${mr}-wrapper`]:(0,ge.J$)($n)},_o,ci]},io=m(63511),ln=m(64993);const Ve=$n=>{const{componentCls:mr,iconCls:Qr,uploadThumbnailSize:ni,uploadProgressOffset:Ki}=$n,ro=`${mr}-list`,Ei=`${ro}-item`;return{[`${mr}-wrapper`]:{[` ${ro}${ro}-picture, ${ro}${ro}-picture-card, ${ro}${ro}-picture-circle `]:{[Ei]:{position:"relative",height:ni+$n.lineWidth*2+$n.paddingXS*2,padding:$n.paddingXS,border:`${$n.lineWidth}px ${$n.lineType} ${$n.colorBorder}`,borderRadius:$n.borderRadiusLG,"&:hover":{background:"transparent"},[`${Ei}-thumbnail`]:Object.assign(Object.assign({},Bn.vS),{width:ni,height:ni,lineHeight:`${ni+$n.paddingSM}px`,textAlign:"center",flex:"none",[Qr]:{fontSize:$n.fontSizeHeading2,color:$n.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Ei}-progress`]:{bottom:Ki,width:`calc(100% - ${$n.paddingSM*2}px)`,marginTop:0,paddingInlineStart:ni+$n.paddingXS}},[`${Ei}-error`]:{borderColor:$n.colorError,[`${Ei}-thumbnail ${Qr}`]:{[`svg path[fill='${io.iN[0]}']`]:{fill:$n.colorErrorBg},[`svg path[fill='${io.iN.primary}']`]:{fill:$n.colorError}}},[`${Ei}-uploading`]:{borderStyle:"dashed",[`${Ei}-name`]:{marginBottom:Ki}}},[`${ro}${ro}-picture-circle ${Ei}`]:{[`&, &::before, ${Ei}-thumbnail`]:{borderRadius:"50%"}}}}},_t=$n=>{const{componentCls:mr,iconCls:Qr,fontSizeLG:ni,colorTextLightSolid:Ki}=$n,ro=`${mr}-list`,Ei=`${ro}-item`,ns=$n.uploadPicCardSize;return{[` ${mr}-wrapper${mr}-picture-card-wrapper, ${mr}-wrapper${mr}-picture-circle-wrapper - `]:Object.assign(Object.assign({},(0,Bn.dF)()),{display:"inline-block",width:"100%",[`${mr}${mr}-select`]:{width:ns,height:ns,marginInlineEnd:$n.marginXS,marginBottom:$n.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:$n.colorFillAlter,border:`${$n.lineWidth}px dashed ${$n.colorBorder}`,borderRadius:$n.borderRadiusLG,cursor:"pointer",transition:`border-color ${$n.motionDurationSlow}`,[`> ${mr}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${mr}-disabled):hover`]:{borderColor:$n.colorPrimary}},[`${ro}${ro}-picture-card, ${ro}${ro}-picture-circle`]:{[`${ro}-item-container`]:{display:"inline-block",width:ns,height:ns,marginBlock:`0 ${$n.marginXS}px`,marginInline:`0 ${$n.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Ei]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${$n.paddingXS*2}px)`,height:`calc(100% - ${$n.paddingXS*2}px)`,backgroundColor:$n.colorBgMask,opacity:0,transition:`all ${$n.motionDurationSlow}`,content:'" "'}},[`${Ei}:hover`]:{[`&::before, ${Ei}-actions`]:{opacity:1}},[`${Ei}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${$n.motionDurationSlow}`,[`${Qr}-eye, ${Qr}-download, ${Qr}-delete`]:{zIndex:10,width:ni,margin:`0 ${$n.marginXXS}px`,fontSize:ni,cursor:"pointer",transition:`all ${$n.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Ei}-actions, ${Ei}-actions:hover`]:{[`${Qr}-eye, ${Qr}-download, ${Qr}-delete`]:{color:new ln.C(Ki).setAlpha(.65).toRgbString(),"&:hover":{color:Ki}}},[`${Ei}-thumbnail, ${Ei}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Ei}-name`]:{display:"none",textAlign:"center"},[`${Ei}-file + ${Ei}-name`]:{position:"absolute",bottom:$n.margin,display:"block",width:`calc(100% - ${$n.paddingXS*2}px)`},[`${Ei}-uploading`]:{[`&${Ei}`]:{backgroundColor:$n.colorFillAlter},[`&::before, ${Qr}-eye, ${Qr}-download, ${Qr}-delete`]:{display:"none"}},[`${Ei}-progress`]:{bottom:$n.marginXL,width:`calc(100% - ${$n.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${mr}-wrapper${mr}-picture-circle-wrapper`]:{[`${mr}${mr}-select`]:{borderRadius:"50%"}}}};var jt=$n=>{const{componentCls:mr}=$n;return{[`${mr}-rtl`]:{direction:"rtl"}}};const on=$n=>{const{componentCls:mr,colorTextDisabled:Qr}=$n;return{[`${mr}-wrapper`]:Object.assign(Object.assign({},(0,Bn.Wf)($n)),{[mr]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${mr}-select`]:{display:"inline-block"},[`${mr}-disabled`]:{color:Qr,cursor:"not-allowed"}})}};var Ot=(0,Yr.Z)("Upload",$n=>{const{fontSizeHeading3:mr,fontSize:Qr,lineHeight:ni,lineWidth:Ki,controlHeightLG:ro}=$n,Ei=Math.round(Qr*ni),ns=(0,oi.TS)($n,{uploadThumbnailSize:mr*2,uploadProgressOffset:Ei/2+Ki,uploadPicCardSize:ro*2.55});return[on(ns),yo(ns),Ve(ns),_t(ns),Po(ns),wi(ns),jt(ns),(0,Er.Z)(ns)]},$n=>({actionsColor:$n.colorTextDescription})),Tt={icon:function(mr,Qr){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Qr}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:mr}}]}},name:"file",theme:"twotone"},xt=Tt,Ht=m(93771),Zn=function(mr,Qr){return y.createElement(Ht.Z,(0,N.Z)({},mr,{ref:Qr,icon:xt}))},tn=y.forwardRef(Zn),hr=m(22508),Zi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},Ri=Zi,Pi=function(mr,Qr){return y.createElement(Ht.Z,(0,N.Z)({},mr,{ref:Qr,icon:Ri}))},$o=y.forwardRef(Pi),ys={icon:function(mr,Qr){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:mr}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Qr}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:Qr}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Qr}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:mr}}]}},name:"picture",theme:"twotone"},xn=ys,Hr=function(mr,Qr){return y.createElement(Ht.Z,(0,N.Z)({},mr,{ref:Qr,icon:xn}))},Jr=y.forwardRef(Hr),Yi=m(82225),xo=m(57838),na=m(33603),Vn=m(96159),Xn=m(15867);function Mr($n){return Object.assign(Object.assign({},$n),{lastModified:$n.lastModified,lastModifiedDate:$n.lastModifiedDate,name:$n.name,size:$n.size,type:$n.type,uid:$n.uid,percent:0,originFileObj:$n})}function li($n,mr){const Qr=(0,A.Z)(mr),ni=Qr.findIndex(Ki=>{let{uid:ro}=Ki;return ro===$n.uid});return ni===-1?Qr.push($n):Qr[ni]=$n,Qr}function Cr($n,mr){const Qr=$n.uid!==void 0?"uid":"name";return mr.filter(ni=>ni[Qr]===$n[Qr])[0]}function qr($n,mr){const Qr=$n.uid!==void 0?"uid":"name",ni=mr.filter(Ki=>Ki[Qr]!==$n[Qr]);return ni.length===mr.length?null:ni}const ii=function(){const mr=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),ni=mr[mr.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(ni)||[""])[0]},rn=$n=>$n.indexOf("image/")===0,Jn=$n=>{if($n.type&&!$n.thumbUrl)return rn($n.type);const mr=$n.thumbUrl||$n.url||"",Qr=ii(mr);return/^data:image\//.test(mr)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Qr)?!0:!(/^data:/.test(mr)||Qr)},Vr=200;function so($n){return new Promise(mr=>{if(!$n.type||!rn($n.type)){mr("");return}const Qr=document.createElement("canvas");Qr.width=Vr,Qr.height=Vr,Qr.style.cssText=`position: fixed; left: 0; top: 0; width: ${Vr}px; height: ${Vr}px; z-index: 9999; display: none;`,document.body.appendChild(Qr);const ni=Qr.getContext("2d"),Ki=new Image;if(Ki.onload=()=>{const{width:ro,height:Ei}=Ki;let ns=Vr,ua=Vr,Na=0,cl=0;ro>Ei?(ua=Ei*(Vr/ro),cl=-(ua-ns)/2):(ns=ro*(Vr/Ei),Na=-(ns-ua)/2),ni.drawImage(Ki,Na,cl,ns,ua);const Zl=Qr.toDataURL();document.body.removeChild(Qr),window.URL.revokeObjectURL(Ki.src),mr(Zl)},Ki.crossOrigin="anonymous",$n.type.startsWith("image/svg+xml")){const ro=new FileReader;ro.onload=()=>{ro.result&&(Ki.src=ro.result)},ro.readAsDataURL($n)}else if($n.type.startsWith("image/gif")){const ro=new FileReader;ro.onload=()=>{ro.result&&mr(ro.result)},ro.readAsDataURL($n)}else Ki.src=window.URL.createObjectURL($n)})}var rs=m(47046),zt=function(mr,Qr){return y.createElement(Ht.Z,(0,N.Z)({},mr,{ref:Qr,icon:rs.Z}))},pn=y.forwardRef(zt),_r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},Gr=_r,ui=function(mr,Qr){return y.createElement(Ht.Z,(0,N.Z)({},mr,{ref:Qr,icon:Gr}))},Ci=y.forwardRef(ui),lo=m(7124),Kr=m(76278),ti=m(35918),Wi=m(41322),Tr=m(62208),Qt=m(98423),Gn=m(1413),yi={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Ln=function(){var mr=(0,y.useRef)([]),Qr=(0,y.useRef)(null);return(0,y.useEffect)(function(){var ni=Date.now(),Ki=!1;mr.current.forEach(function(ro){if(ro){Ki=!0;var Ei=ro.style;Ei.transitionDuration=".3s, .3s, .3s, .06s",Qr.current&&ni-Qr.current<100&&(Ei.transitionDuration="0s, 0s")}}),Ki&&(Qr.current=Date.now())}),mr.current},Si=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],tr=function(mr){var Qr=(0,Gn.Z)((0,Gn.Z)({},yi),mr),ni=Qr.className,Ki=Qr.percent,ro=Qr.prefixCls,Ei=Qr.strokeColor,ns=Qr.strokeLinecap,ua=Qr.strokeWidth,Na=Qr.style,cl=Qr.trailColor,Zl=Qr.trailWidth,Ml=Qr.transition,Wa=(0,P.Z)(Qr,Si);delete Wa.gapPosition;var ku=Array.isArray(Ki)?Ki:[Ki],Xs=Array.isArray(Ei)?Ei:[Ei],Ya=Ln(),qa=ua/2,Hl=100-ua/2,Jl="M ".concat(ns==="round"?qa:0,",").concat(qa,` - L `).concat(ns==="round"?Hl:100,",").concat(qa),vu="0 0 100 ".concat(ua),au=0;return y.createElement("svg",(0,N.Z)({className:k()("".concat(ro,"-line"),ni),viewBox:vu,preserveAspectRatio:"none",style:Na},Wa),y.createElement("path",{className:"".concat(ro,"-line-trail"),d:Jl,strokeLinecap:ns,stroke:cl,strokeWidth:Zl||ua,fillOpacity:"0"}),ku.map(function(bn,Eu){var ts=1;switch(ns){case"round":ts=1-ua/100;break;case"square":ts=1-ua/2/100;break;default:ts=1;break}var Vs={strokeDasharray:"".concat(bn*ts,"px, 100px"),strokeDashoffset:"-".concat(au,"px"),transition:Ml||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},ma=Xs[Eu]||Xs[Xs.length-1];return au+=bn,y.createElement("path",{key:Eu,className:"".concat(ro,"-line-path"),d:Jl,strokeLinecap:ns,stroke:ma,strokeWidth:ua,fillOpacity:"0",ref:function(El){Ya[Eu]=El},style:Vs})}))},vi=tr,Ni=m(97685),kr=m(98924),Qn=0,ds=(0,kr.Z)();function _a(){var $n;return ds?($n=Qn,Qn+=1):$n="TEST_OR_SSR",$n}var da=function($n){var mr=y.useState(),Qr=(0,Ni.Z)(mr,2),ni=Qr[0],Ki=Qr[1];return y.useEffect(function(){Ki("rc_progress_".concat(_a()))},[]),$n||ni},zs=function(mr){var Qr=mr.bg,ni=mr.children;return y.createElement("div",{style:{width:"100%",height:"100%",background:Qr}},ni)};function ja($n,mr){return Object.keys($n).map(function(Qr){var ni=parseFloat(Qr),Ki="".concat(Math.floor(ni*mr),"%");return"".concat($n[Qr]," ").concat(Ki)})}var Co=y.forwardRef(function($n,mr){var Qr=$n.prefixCls,ni=$n.color,Ki=$n.gradientId,ro=$n.radius,Ei=$n.style,ns=$n.ptg,ua=$n.strokeLinecap,Na=$n.strokeWidth,cl=$n.size,Zl=$n.gapDegree,Ml=ni&&(0,re.Z)(ni)==="object",Wa=Ml?"#FFF":void 0,ku=cl/2,Xs=y.createElement("circle",{className:"".concat(Qr,"-circle-path"),r:ro,cx:ku,cy:ku,stroke:Wa,strokeLinecap:ua,strokeWidth:Na,opacity:ns===0?0:1,style:Ei,ref:mr});if(!Ml)return Xs;var Ya="".concat(Ki,"-conic"),qa=Zl?"".concat(180+Zl/2,"deg"):"0deg",Hl=ja(ni,(360-Zl)/360),Jl=ja(ni,1),vu="conic-gradient(from ".concat(qa,", ").concat(Hl.join(", "),")"),au="linear-gradient(to ".concat(Zl?"bottom":"top",", ").concat(Jl.join(", "),")");return y.createElement(y.Fragment,null,y.createElement("mask",{id:Ya},Xs),y.createElement("foreignObject",{x:0,y:0,width:cl,height:cl,mask:"url(#".concat(Ya,")")},y.createElement(zs,{bg:au},y.createElement(zs,{bg:vu}))))}),dl=Co,Fr=100,fs=function(mr,Qr,ni,Ki,ro,Ei,ns,ua,Na,cl){var Zl=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Ml=ni/100*360*((360-Ei)/360),Wa=Ei===0?0:{bottom:0,top:180,left:90,right:-90}[ns],ku=(100-Ki)/100*Qr;Na==="round"&&Ki!==100&&(ku+=cl/2,ku>=Qr&&(ku=Qr-.01));var Xs=Fr/2;return{stroke:typeof ua=="string"?ua:void 0,strokeDasharray:"".concat(Qr,"px ").concat(mr),strokeDashoffset:ku+Zl,transform:"rotate(".concat(ro+Ml+Wa,"deg)"),transformOrigin:"".concat(Xs,"px ").concat(Xs,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},jo=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Es($n){var mr=$n!=null?$n:[];return Array.isArray(mr)?mr:[mr]}var xs=function(mr){var Qr=(0,Gn.Z)((0,Gn.Z)({},yi),mr),ni=Qr.id,Ki=Qr.prefixCls,ro=Qr.steps,Ei=Qr.strokeWidth,ns=Qr.trailWidth,ua=Qr.gapDegree,Na=ua===void 0?0:ua,cl=Qr.gapPosition,Zl=Qr.trailColor,Ml=Qr.strokeLinecap,Wa=Qr.style,ku=Qr.className,Xs=Qr.strokeColor,Ya=Qr.percent,qa=(0,P.Z)(Qr,jo),Hl=Fr/2,Jl=da(ni),vu="".concat(Jl,"-gradient"),au=Hl-Ei/2,bn=Math.PI*2*au,Eu=Na>0?90+Na/2:-90,ts=bn*((360-Na)/360),Vs=(0,re.Z)(ro)==="object"?ro:{count:ro,space:2},ma=Vs.count,Il=Vs.space,El=Es(Ya),ml=Es(Xs),fu=ml.find(function(Xd){return Xd&&(0,re.Z)(Xd)==="object"}),Fu=fu&&(0,re.Z)(fu)==="object",lc=Fu?"butt":Ml,Ic=fs(bn,ts,0,100,Eu,Na,cl,Zl,lc,Ei),Uc=Ln(),zd=function(){var sd=0;return El.map(function(Mu,Fc){var hd=ml[Fc]||ml[ml.length-1],vd=fs(bn,ts,sd,Mu,Eu,Na,cl,hd,lc,Ei);return sd+=Mu,y.createElement(dl,{key:Fc,color:hd,ptg:Mu,radius:au,prefixCls:Ki,gradientId:vu,style:vd,strokeLinecap:lc,strokeWidth:Ei,gapDegree:Na,ref:function(nh){Uc[Fc]=nh},size:Fr})}).reverse()},th=function(){var sd=Math.round(ma*(El[0]/100)),Mu=100/ma,Fc=0;return new Array(ma).fill(null).map(function(hd,vd){var Yd=vd<=sd-1?ml[0]:Zl,nh=Yd&&(0,re.Z)(Yd)==="object"?"url(#".concat(vu,")"):void 0,Wd=fs(bn,ts,Fc,Mu,Eu,Na,cl,Yd,"butt",Ei,Il);return Fc+=(ts-Wd.strokeDashoffset+Il)*100/ts,y.createElement("circle",{key:vd,className:"".concat(Ki,"-circle-path"),r:au,cx:Hl,cy:Hl,stroke:nh,strokeWidth:Ei,opacity:1,style:Wd,ref:function(id){Uc[vd]=id}})})};return y.createElement("svg",(0,N.Z)({className:k()("".concat(Ki,"-circle"),ku),viewBox:"0 0 ".concat(Fr," ").concat(Fr),style:Wa,id:ni,role:"presentation"},qa),!ma&&y.createElement("circle",{className:"".concat(Ki,"-circle-trail"),r:au,cx:Hl,cy:Hl,stroke:Zl,strokeLinecap:lc,strokeWidth:ns||Ei,style:Ic}),ma?th():zd())},Za=xs,tl={Line:vi,Circle:Za},xl=m(61781);function Qa($n){return!$n||$n<0?0:$n>100?100:$n}function si($n){let{success:mr,successPercent:Qr}=$n,ni=Qr;return mr&&"progress"in mr&&(ni=mr.progress),mr&&"percent"in mr&&(ni=mr.percent),ni}const co=$n=>{let{percent:mr,success:Qr,successPercent:ni}=$n;const Ki=Qa(si({success:Qr,successPercent:ni}));return[Ki,Qa(Qa(mr)-Ki)]},dn=$n=>{let{success:mr={},strokeColor:Qr}=$n;const{strokeColor:ni}=mr;return[ni||io.ez.green,Qr||null]},Dn=($n,mr,Qr)=>{var ni,Ki,ro,Ei;let ns=-1,ua=-1;if(mr==="step"){const Na=Qr.steps,cl=Qr.strokeWidth;typeof $n=="string"||typeof $n=="undefined"?(ns=$n==="small"?2:14,ua=cl!=null?cl:8):typeof $n=="number"?[ns,ua]=[$n,$n]:[ns=14,ua=8]=$n,ns*=Na}else if(mr==="line"){const Na=Qr==null?void 0:Qr.strokeWidth;typeof $n=="string"||typeof $n=="undefined"?ua=Na||($n==="small"?6:8):typeof $n=="number"?[ns,ua]=[$n,$n]:[ns=-1,ua=8]=$n}else(mr==="circle"||mr==="dashboard")&&(typeof $n=="string"||typeof $n=="undefined"?[ns,ua]=$n==="small"?[60,60]:[120,120]:typeof $n=="number"?[ns,ua]=[$n,$n]:(ns=(Ki=(ni=$n[0])!==null&&ni!==void 0?ni:$n[1])!==null&&Ki!==void 0?Ki:120,ua=(Ei=(ro=$n[0])!==null&&ro!==void 0?ro:$n[1])!==null&&Ei!==void 0?Ei:120));return[ns,ua]},Nn=3,tt=$n=>Nn/$n*100;var vt=$n=>{const{prefixCls:mr,trailColor:Qr=null,strokeLinecap:ni="round",gapPosition:Ki,gapDegree:ro,width:Ei=120,type:ns,children:ua,success:Na,size:cl=Ei}=$n,[Zl,Ml]=Dn(cl,"circle");let{strokeWidth:Wa}=$n;Wa===void 0&&(Wa=Math.max(tt(Zl),6));const ku={width:Zl,height:Ml,fontSize:Zl*.15+6},Xs=y.useMemo(()=>{if(ro||ro===0)return ro;if(ns==="dashboard")return 75},[ro,ns]),Ya=Ki||ns==="dashboard"&&"bottom"||void 0,qa=Object.prototype.toString.call($n.strokeColor)==="[object Object]",Hl=dn({success:Na,strokeColor:$n.strokeColor}),Jl=k()(`${mr}-inner`,{[`${mr}-circle-gradient`]:qa}),vu=y.createElement(Za,{percent:co($n),strokeWidth:Wa,trailWidth:Wa,strokeColor:Hl,strokeLinecap:ni,trailColor:Qr,prefixCls:mr,gapDegree:Xs,gapPosition:Ya});return y.createElement("div",{className:Jl,style:ku},Zl<=20?y.createElement(xl.Z,{title:ua},y.createElement("span",null,vu)):y.createElement(y.Fragment,null,vu,ua))},ze=function($n,mr){var Qr={};for(var ni in $n)Object.prototype.hasOwnProperty.call($n,ni)&&mr.indexOf(ni)<0&&(Qr[ni]=$n[ni]);if($n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ki=0,ni=Object.getOwnPropertySymbols($n);Ki{let mr=[];return Object.keys($n).forEach(Qr=>{const ni=parseFloat(Qr.replace(/%/g,""));isNaN(ni)||mr.push({key:ni,value:$n[Qr]})}),mr=mr.sort((Qr,ni)=>Qr.key-ni.key),mr.map(Qr=>{let{key:ni,value:Ki}=Qr;return`${Ki} ${ni}%`}).join(", ")},Et=($n,mr)=>{const{from:Qr=io.ez.blue,to:ni=io.ez.blue,direction:Ki=mr==="rtl"?"to left":"to right"}=$n,ro=ze($n,["from","to","direction"]);if(Object.keys(ro).length!==0){const Ei=lt(ro);return{backgroundImage:`linear-gradient(${Ki}, ${Ei})`}}return{backgroundImage:`linear-gradient(${Ki}, ${Qr}, ${ni})`}};var jn=$n=>{const{prefixCls:mr,direction:Qr,percent:ni,size:Ki,strokeWidth:ro,strokeColor:Ei,strokeLinecap:ns="round",children:ua,trailColor:Na=null,success:cl}=$n,Zl=Ei&&typeof Ei!="string"?Et(Ei,Qr):{backgroundColor:Ei},Ml=ns==="square"||ns==="butt"?0:void 0,Wa={backgroundColor:Na||void 0,borderRadius:Ml},ku=Ki!=null?Ki:[-1,ro||(Ki==="small"?6:8)],[Xs,Ya]=Dn(ku,"line",{strokeWidth:ro}),qa=Object.assign({width:`${Qa(ni)}%`,height:Ya,borderRadius:Ml},Zl),Hl=si($n),Jl={width:`${Qa(Hl)}%`,height:Ya,borderRadius:Ml,backgroundColor:cl==null?void 0:cl.strokeColor},vu={width:Xs<0?"100%":Xs,height:Ya};return y.createElement(y.Fragment,null,y.createElement("div",{className:`${mr}-outer`,style:vu},y.createElement("div",{className:`${mr}-inner`,style:Wa},y.createElement("div",{className:`${mr}-bg`,style:qa}),Hl!==void 0?y.createElement("div",{className:`${mr}-success-bg`,style:Jl}):null)),ua)},Ti=$n=>{const{size:mr,steps:Qr,percent:ni=0,strokeWidth:Ki=8,strokeColor:ro,trailColor:Ei=null,prefixCls:ns,children:ua}=$n,Na=Math.round(Qr*(ni/100)),cl=mr==="small"?2:14,Zl=mr!=null?mr:[cl,Ki],[Ml,Wa]=Dn(Zl,"step",{steps:Qr,strokeWidth:Ki}),ku=Ml/Qr,Xs=new Array(Qr);for(let Ya=0;Ya{const mr=$n?"100%":"-100%";return new ss.E4(`antProgress${$n?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${mr}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${mr}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Vi=$n=>{const{componentCls:mr,iconCls:Qr}=$n;return{[mr]:Object.assign(Object.assign({},(0,Bn.Wf)($n)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:$n.fontSize,marginInlineEnd:$n.marginXS,marginBottom:$n.marginXS},[`${mr}-outer`]:{display:"inline-block",width:"100%"},[`&${mr}-show-info`]:{[`${mr}-outer`]:{marginInlineEnd:`calc(-2em - ${$n.marginXS}px)`,paddingInlineEnd:`calc(2em + ${$n.paddingXS}px)`}},[`${mr}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:$n.remainingColor,borderRadius:$n.lineBorderRadius},[`${mr}-inner:not(${mr}-circle-gradient)`]:{[`${mr}-circle-path`]:{stroke:$n.defaultColor}},[`${mr}-success-bg, ${mr}-bg`]:{position:"relative",backgroundColor:$n.defaultColor,borderRadius:$n.lineBorderRadius,transition:`all ${$n.motionDurationSlow} ${$n.motionEaseInOutCirc}`},[`${mr}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:$n.colorSuccess},[`${mr}-text`]:{display:"inline-block",width:"2em",marginInlineStart:$n.marginXS,color:$n.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Qr]:{fontSize:$n.fontSize}},[`&${mr}-status-active`]:{[`${mr}-bg::before`]:{position:"absolute",inset:0,backgroundColor:$n.colorBgContainer,borderRadius:$n.lineBorderRadius,opacity:0,animationName:$i(),animationDuration:$n.progressActiveMotionDuration,animationTimingFunction:$n.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${mr}-rtl${mr}-status-active`]:{[`${mr}-bg::before`]:{animationName:$i(!0)}},[`&${mr}-status-exception`]:{[`${mr}-bg`]:{backgroundColor:$n.colorError},[`${mr}-text`]:{color:$n.colorError}},[`&${mr}-status-exception ${mr}-inner:not(${mr}-circle-gradient)`]:{[`${mr}-circle-path`]:{stroke:$n.colorError}},[`&${mr}-status-success`]:{[`${mr}-bg`]:{backgroundColor:$n.colorSuccess},[`${mr}-text`]:{color:$n.colorSuccess}},[`&${mr}-status-success ${mr}-inner:not(${mr}-circle-gradient)`]:{[`${mr}-circle-path`]:{stroke:$n.colorSuccess}}})}},us=$n=>{const{componentCls:mr,iconCls:Qr}=$n;return{[mr]:{[`${mr}-circle-trail`]:{stroke:$n.remainingColor},[`&${mr}-circle ${mr}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${mr}-circle ${mr}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:$n.circleTextColor,fontSize:$n.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Qr]:{fontSize:`${$n.fontSize/$n.fontSizeSM}em`}},[`${mr}-circle&-status-exception`]:{[`${mr}-text`]:{color:$n.colorError}},[`${mr}-circle&-status-success`]:{[`${mr}-text`]:{color:$n.colorSuccess}}},[`${mr}-inline-circle`]:{lineHeight:1,[`${mr}-inner`]:{verticalAlign:"bottom"}}}},ks=$n=>{const{componentCls:mr}=$n;return{[mr]:{[`${mr}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:$n.progressStepMinWidth,marginInlineEnd:$n.progressStepMarginInlineEnd,backgroundColor:$n.remainingColor,transition:`all ${$n.motionDurationSlow}`,"&-active":{backgroundColor:$n.defaultColor}}}}}},Os=$n=>{const{componentCls:mr,iconCls:Qr}=$n;return{[mr]:{[`${mr}-small&-line, ${mr}-small&-line ${mr}-text ${Qr}`]:{fontSize:$n.fontSizeSM}}}};var pa=(0,Yr.Z)("Progress",$n=>{const mr=$n.marginXXS/2,Qr=(0,oi.TS)($n,{progressStepMarginInlineEnd:mr,progressStepMinWidth:mr,progressActiveMotionDuration:"2.4s"});return[Vi(Qr),us(Qr),ks(Qr),Os(Qr)]},$n=>({circleTextColor:$n.colorText,defaultColor:$n.colorInfo,remainingColor:$n.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),no=function($n,mr){var Qr={};for(var ni in $n)Object.prototype.hasOwnProperty.call($n,ni)&&mr.indexOf(ni)<0&&(Qr[ni]=$n[ni]);if($n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ki=0,ni=Object.getOwnPropertySymbols($n);Ki{const{prefixCls:Qr,className:ni,rootClassName:Ki,steps:ro,strokeColor:Ei,percent:ns=0,size:ua="default",showInfo:Na=!0,type:cl="line",status:Zl,format:Ml,style:Wa}=$n,ku=no($n,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Xs=y.useMemo(()=>{var El,ml;const fu=si($n);return parseInt(fu!==void 0?(El=fu!=null?fu:0)===null||El===void 0?void 0:El.toString():(ml=ns!=null?ns:0)===null||ml===void 0?void 0:ml.toString(),10)},[ns,$n.success,$n.successPercent]),Ya=y.useMemo(()=>!ea.includes(Zl)&&Xs>=100?"success":Zl||"normal",[Zl,Xs]),{getPrefixCls:qa,direction:Hl,progress:Jl}=y.useContext(ht.E_),vu=qa("progress",Qr),[au,bn]=pa(vu),Eu=y.useMemo(()=>{if(!Na)return null;const El=si($n);let ml;const fu=Ml||(lc=>`${lc}%`),Fu=cl==="line";return Ml||Ya!=="exception"&&Ya!=="success"?ml=fu(Qa(ns),Qa(El)):Ya==="exception"?ml=Fu?y.createElement(Wi.Z,null):y.createElement(Tr.Z,null):Ya==="success"&&(ml=Fu?y.createElement(Kr.Z,null):y.createElement(ti.Z,null)),y.createElement("span",{className:`${vu}-text`,title:typeof ml=="string"?ml:void 0},ml)},[Na,ns,Xs,Ya,cl,vu,Ml]),ts=Array.isArray(Ei)?Ei[0]:Ei,Vs=typeof Ei=="string"||Array.isArray(Ei)?Ei:void 0;let ma;cl==="line"?ma=ro?y.createElement(Ti,Object.assign({},$n,{strokeColor:Vs,prefixCls:vu,steps:ro}),Eu):y.createElement(jn,Object.assign({},$n,{strokeColor:ts,prefixCls:vu,direction:Hl}),Eu):(cl==="circle"||cl==="dashboard")&&(ma=y.createElement(vt,Object.assign({},$n,{strokeColor:ts,prefixCls:vu,progressStatus:Ya}),Eu));const Il=k()(vu,`${vu}-status-${Ya}`,`${vu}-${cl==="dashboard"&&"circle"||ro&&"steps"||cl}`,{[`${vu}-inline-circle`]:cl==="circle"&&Dn(ua,"circle")[0]<=20,[`${vu}-show-info`]:Na,[`${vu}-${ua}`]:typeof ua=="string",[`${vu}-rtl`]:Hl==="rtl"},Jl==null?void 0:Jl.className,ni,Ki,bn);return au(y.createElement("div",Object.assign({ref:mr,style:Object.assign(Object.assign({},Jl==null?void 0:Jl.style),Wa),className:Il,role:"progressbar","aria-valuenow":Xs},(0,Qt.Z)(ku,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),ma))}),Ma=Bl,ia=y.forwardRef(($n,mr)=>{let{prefixCls:Qr,className:ni,style:Ki,locale:ro,listType:Ei,file:ns,items:ua,progress:Na,iconRender:cl,actionIconRender:Zl,itemRender:Ml,isImgUrl:Wa,showPreviewIcon:ku,showRemoveIcon:Xs,showDownloadIcon:Ya,previewIcon:qa,removeIcon:Hl,downloadIcon:Jl,onPreview:vu,onDownload:au,onClose:bn}=$n;var Eu,ts;const{status:Vs}=ns,[ma,Il]=y.useState(Vs);y.useEffect(()=>{Vs!=="removed"&&Il(Vs)},[Vs]);const[El,ml]=y.useState(!1);y.useEffect(()=>{const id=setTimeout(()=>{ml(!0)},300);return()=>{clearTimeout(id)}},[]);const fu=cl(ns);let Fu=y.createElement("div",{className:`${Qr}-icon`},fu);if(Ei==="picture"||Ei==="picture-card"||Ei==="picture-circle")if(ma==="uploading"||!ns.thumbUrl&&!ns.url){const id=k()(`${Qr}-list-item-thumbnail`,{[`${Qr}-list-item-file`]:ma!=="uploading"});Fu=y.createElement("div",{className:id},fu)}else{const id=Wa!=null&&Wa(ns)?y.createElement("img",{src:ns.thumbUrl||ns.url,alt:ns.name,className:`${Qr}-list-item-image`,crossOrigin:ns.crossOrigin}):fu,nd=k()(`${Qr}-list-item-thumbnail`,{[`${Qr}-list-item-file`]:Wa&&!Wa(ns)});Fu=y.createElement("a",{className:nd,onClick:Pf=>vu(ns,Pf),href:ns.url||ns.thumbUrl,target:"_blank",rel:"noopener noreferrer"},id)}const lc=k()(`${Qr}-list-item`,`${Qr}-list-item-${ma}`),Ic=typeof ns.linkProps=="string"?JSON.parse(ns.linkProps):ns.linkProps,Uc=Xs?Zl((typeof Hl=="function"?Hl(ns):Hl)||y.createElement(pn,null),()=>bn(ns),Qr,ro.removeFile):null,zd=Ya&&ma==="done"?Zl((typeof Jl=="function"?Jl(ns):Jl)||y.createElement(Ci,null),()=>au(ns),Qr,ro.downloadFile):null,th=Ei!=="picture-card"&&Ei!=="picture-circle"&&y.createElement("span",{key:"download-delete",className:k()(`${Qr}-list-item-actions`,{picture:Ei==="picture"})},zd,Uc),Xd=k()(`${Qr}-list-item-name`),sd=ns.url?[y.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Xd,title:ns.name},Ic,{href:ns.url,onClick:id=>vu(ns,id)}),ns.name),th]:[y.createElement("span",{key:"view",className:Xd,onClick:id=>vu(ns,id),title:ns.name},ns.name),th],Mu={pointerEvents:"none",opacity:.5},Fc=ku?y.createElement("a",{href:ns.url||ns.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:ns.url||ns.thumbUrl?void 0:Mu,onClick:id=>vu(ns,id),title:ro.previewFile},typeof qa=="function"?qa(ns):qa||y.createElement(lo.Z,null)):null,hd=(Ei==="picture-card"||Ei==="picture-circle")&&ma!=="uploading"&&y.createElement("span",{className:`${Qr}-list-item-actions`},Fc,ma==="done"&&zd,Uc),{getPrefixCls:vd}=y.useContext(ht.E_),Yd=vd(),nh=y.createElement("div",{className:lc},Fu,sd,hd,El&&y.createElement(Yi.ZP,{motionName:`${Yd}-fade`,visible:ma==="uploading",motionDeadline:2e3},id=>{let{className:nd}=id;const Pf="percent"in ns?y.createElement(Ma,Object.assign({},Na,{type:"line",percent:ns.percent,"aria-label":ns["aria-label"],"aria-labelledby":ns["aria-labelledby"]})):null;return y.createElement("div",{className:k()(`${Qr}-list-item-progress`,nd)},Pf)})),Wd=ns.response&&typeof ns.response=="string"?ns.response:((Eu=ns.error)===null||Eu===void 0?void 0:Eu.statusText)||((ts=ns.error)===null||ts===void 0?void 0:ts.message)||ro.uploadError,yh=ma==="error"?y.createElement(xl.Z,{title:Wd,getPopupContainer:id=>id.parentNode},nh):nh;return y.createElement("div",{className:k()(`${Qr}-list-item-container`,ni),style:Ki,ref:mr},Ml?Ml(yh,ns,ua,{download:au.bind(null,ns),preview:vu.bind(null,ns),remove:bn.bind(null,ns)}):yh)});const Nl=($n,mr)=>{const{listType:Qr="text",previewFile:ni=so,onPreview:Ki,onDownload:ro,onRemove:Ei,locale:ns,iconRender:ua,isImageUrl:Na=Jn,prefixCls:cl,items:Zl=[],showPreviewIcon:Ml=!0,showRemoveIcon:Wa=!0,showDownloadIcon:ku=!1,removeIcon:Xs,previewIcon:Ya,downloadIcon:qa,progress:Hl={size:[-1,2],showInfo:!1},appendAction:Jl,appendActionVisible:vu=!0,itemRender:au,disabled:bn}=$n,Eu=(0,xo.Z)(),[ts,Vs]=y.useState(!1);y.useEffect(()=>{Qr!=="picture"&&Qr!=="picture-card"&&Qr!=="picture-circle"||(Zl||[]).forEach(Mu=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Mu.originFileObj instanceof File||Mu.originFileObj instanceof Blob)||Mu.thumbUrl!==void 0||(Mu.thumbUrl="",ni&&ni(Mu.originFileObj).then(Fc=>{Mu.thumbUrl=Fc||"",Eu()}))})},[Qr,Zl,ni]),y.useEffect(()=>{Vs(!0)},[]);const ma=(Mu,Fc)=>{if(Ki)return Fc==null||Fc.preventDefault(),Ki(Mu)},Il=Mu=>{typeof ro=="function"?ro(Mu):Mu.url&&window.open(Mu.url)},El=Mu=>{Ei==null||Ei(Mu)},ml=Mu=>{if(ua)return ua(Mu,Qr);const Fc=Mu.status==="uploading",hd=Na&&Na(Mu)?y.createElement(Jr,null):y.createElement(tn,null);let vd=Fc?y.createElement(hr.Z,null):y.createElement($o,null);return Qr==="picture"?vd=Fc?y.createElement(hr.Z,null):hd:(Qr==="picture-card"||Qr==="picture-circle")&&(vd=Fc?ns.uploading:hd),vd},fu=(Mu,Fc,hd,vd)=>{const Yd={type:"text",size:"small",title:vd,onClick:nh=>{Fc(),(0,Vn.l$)(Mu)&&Mu.props.onClick&&Mu.props.onClick(nh)},className:`${hd}-list-item-action`,disabled:bn};if((0,Vn.l$)(Mu)){const nh=(0,Vn.Tm)(Mu,Object.assign(Object.assign({},Mu.props),{onClick:()=>{}}));return y.createElement(Xn.ZP,Object.assign({},Yd,{icon:nh}))}return y.createElement(Xn.ZP,Object.assign({},Yd),y.createElement("span",null,Mu))};y.useImperativeHandle(mr,()=>({handlePreview:ma,handleDownload:Il}));const{getPrefixCls:Fu}=y.useContext(ht.E_),lc=Fu("upload",cl),Ic=Fu(),Uc=k()(`${lc}-list`,`${lc}-list-${Qr}`),zd=(0,A.Z)(Zl.map(Mu=>({key:Mu.uid,file:Mu})));let Xd={motionDeadline:2e3,motionName:`${lc}-${Qr==="picture-card"||Qr==="picture-circle"?"animate-inline":"animate"}`,keys:zd,motionAppear:ts};const sd=y.useMemo(()=>{const Mu=Object.assign({},(0,na.Z)(Ic));return delete Mu.onAppearEnd,delete Mu.onEnterEnd,delete Mu.onLeaveEnd,Mu},[Ic]);return Qr!=="picture-card"&&Qr!=="picture-circle"&&(Xd=Object.assign(Object.assign({},sd),Xd)),y.createElement("div",{className:Uc},y.createElement(Yi.V4,Object.assign({},Xd,{component:!1}),Mu=>{let{key:Fc,file:hd,className:vd,style:Yd}=Mu;return y.createElement(ia,{key:Fc,locale:ns,prefixCls:lc,className:vd,style:Yd,file:hd,items:Zl,progress:Hl,listType:Qr,isImgUrl:Na,showPreviewIcon:Ml,showRemoveIcon:Wa,showDownloadIcon:ku,removeIcon:Xs,previewIcon:Ya,downloadIcon:qa,iconRender:ml,actionIconRender:fu,itemRender:au,onPreview:ma,onDownload:Il,onClose:El})}),Jl&&y.createElement(Yi.ZP,Object.assign({},Xd,{visible:vu,forceRender:!0}),Mu=>{let{className:Fc,style:hd}=Mu;return(0,Vn.Tm)(Jl,vd=>({className:k()(vd.className,Fc),style:Object.assign(Object.assign(Object.assign({},hd),{pointerEvents:Fc?"none":void 0}),vd.style)}))}))};var zi=y.forwardRef(Nl),Ji=function($n,mr,Qr,ni){function Ki(ro){return ro instanceof Qr?ro:new Qr(function(Ei){Ei(ro)})}return new(Qr||(Qr=Promise))(function(ro,Ei){function ns(cl){try{Na(ni.next(cl))}catch(Zl){Ei(Zl)}}function ua(cl){try{Na(ni.throw(cl))}catch(Zl){Ei(Zl)}}function Na(cl){cl.done?ro(cl.value):Ki(cl.value).then(ns,ua)}Na((ni=ni.apply($n,mr||[])).next())})};const ta=`__LIST_IGNORE_${Date.now()}__`,ms=($n,mr)=>{const{fileList:Qr,defaultFileList:ni,onRemove:Ki,showUploadList:ro=!0,listType:Ei="text",onPreview:ns,onDownload:ua,onChange:Na,onDrop:cl,previewFile:Zl,disabled:Ml,locale:Wa,iconRender:ku,isImageUrl:Xs,progress:Ya,prefixCls:qa,className:Hl,type:Jl="select",children:vu,style:au,itemRender:bn,maxCount:Eu,data:ts={},multiple:Vs=!1,action:ma="",accept:Il="",supportServerRender:El=!0,rootClassName:ml}=$n,fu=y.useContext(Bt.Z),Fu=Ml!=null?Ml:fu,[lc,Ic]=(0,bt.Z)(ni||[],{value:Qr,postState:wd=>wd!=null?wd:[]}),[Uc,zd]=y.useState("drop"),th=y.useRef(null);y.useMemo(()=>{const wd=Date.now();(Qr||[]).forEach((qd,Ba)=>{!qd.uid&&!Object.isFrozen(qd)&&(qd.uid=`__AUTO__${wd}_${Ba}__`)})},[Qr]);const Xd=(wd,qd,Ba)=>{let ru=(0,A.Z)(qd),zl=!1;Eu===1?ru=ru.slice(-1):Eu&&(zl=ru.length>Eu,ru=ru.slice(0,Eu)),(0,b.flushSync)(()=>{Ic(ru)});const Au={file:wd,fileList:ru};Ba&&(Au.event=Ba),(!zl||ru.some(Uu=>Uu.uid===wd.uid))&&(0,b.flushSync)(()=>{Na==null||Na(Au)})},sd=(wd,qd)=>Ji(void 0,void 0,void 0,function*(){const{beforeUpload:Ba,transformFile:ru}=$n;let zl=wd;if(Ba){const Au=yield Ba(wd,qd);if(Au===!1)return!1;if(delete wd[ta],Au===ta)return Object.defineProperty(wd,ta,{value:!0,configurable:!0}),!1;typeof Au=="object"&&Au&&(zl=Au)}return ru&&(zl=yield ru(zl)),zl}),Mu=wd=>{const qd=wd.filter(zl=>!zl.file[ta]);if(!qd.length)return;const Ba=qd.map(zl=>Mr(zl.file));let ru=(0,A.Z)(lc);Ba.forEach(zl=>{ru=li(zl,ru)}),Ba.forEach((zl,Au)=>{let Uu=zl;if(qd[Au].parsedFile)zl.status="uploading";else{const{originFileObj:Vd}=zl;let Ud;try{Ud=new File([Vd],Vd.name,{type:Vd.type})}catch(sh){Ud=new Blob([Vd],{type:Vd.type}),Ud.name=Vd.name,Ud.lastModifiedDate=new Date,Ud.lastModified=new Date().getTime()}Ud.uid=zl.uid,Uu=Ud}Xd(Uu,ru)})},Fc=(wd,qd,Ba)=>{try{typeof wd=="string"&&(wd=JSON.parse(wd))}catch(Au){}if(!Cr(qd,lc))return;const ru=Mr(qd);ru.status="done",ru.percent=100,ru.response=wd,ru.xhr=Ba;const zl=li(ru,lc);Xd(ru,zl)},hd=(wd,qd)=>{if(!Cr(qd,lc))return;const Ba=Mr(qd);Ba.status="uploading",Ba.percent=wd.percent;const ru=li(Ba,lc);Xd(Ba,ru,wd)},vd=(wd,qd,Ba)=>{if(!Cr(Ba,lc))return;const ru=Mr(Ba);ru.error=wd,ru.response=qd,ru.status="error";const zl=li(ru,lc);Xd(ru,zl)},Yd=wd=>{let qd;Promise.resolve(typeof Ki=="function"?Ki(wd):Ki).then(Ba=>{var ru;if(Ba===!1)return;const zl=qr(wd,lc);zl&&(qd=Object.assign(Object.assign({},wd),{status:"removed"}),lc==null||lc.forEach(Au=>{const Uu=qd.uid!==void 0?"uid":"name";Au[Uu]===qd[Uu]&&!Object.isFrozen(Au)&&(Au.status="removed")}),(ru=th.current)===null||ru===void 0||ru.abort(qd),Xd(qd,zl))})},nh=wd=>{zd(wd.type),wd.type==="drop"&&(cl==null||cl(wd))};y.useImperativeHandle(mr,()=>({onBatchStart:Mu,onSuccess:Fc,onProgress:hd,onError:vd,fileList:lc,upload:th.current}));const{getPrefixCls:Wd,direction:yh,upload:id}=y.useContext(ht.E_),nd=Wd("upload",qa),Pf=Object.assign(Object.assign({onBatchStart:Mu,onError:vd,onProgress:hd,onSuccess:Fc},$n),{data:ts,multiple:Vs,action:ma,accept:Il,supportServerRender:El,prefixCls:nd,disabled:Fu,beforeUpload:sd,onChange:void 0});delete Pf.className,delete Pf.style,(!vu||Fu)&&delete Pf.id;const[Jd,cc]=Ot(nd),[Yc]=(0,mt.Z)("Upload",_n.Z.Upload),{showRemoveIcon:Wh,showPreviewIcon:uf,showDownloadIcon:Lh,removeIcon:Sf,previewIcon:xp,downloadIcon:Nf}=typeof ro=="boolean"?{}:ro,ch=(wd,qd)=>ro?y.createElement(zi,{prefixCls:nd,listType:Ei,items:lc,previewFile:Zl,onPreview:ns,onDownload:ua,onRemove:Yd,showRemoveIcon:!Fu&&Wh,showPreviewIcon:uf,showDownloadIcon:Lh,removeIcon:Sf,previewIcon:xp,downloadIcon:Nf,iconRender:ku,locale:Object.assign(Object.assign({},Yc),Wa),isImageUrl:Xs,progress:Ya,appendAction:wd,appendActionVisible:qd,itemRender:bn,disabled:Fu}):wd,Th=k()(`${nd}-wrapper`,Hl,ml,cc,id==null?void 0:id.className,{[`${nd}-rtl`]:yh==="rtl",[`${nd}-picture-card-wrapper`]:Ei==="picture-card",[`${nd}-picture-circle-wrapper`]:Ei==="picture-circle"}),yu=Object.assign(Object.assign({},id==null?void 0:id.style),au);if(Jl==="drag"){const wd=k()(cc,nd,`${nd}-drag`,{[`${nd}-drag-uploading`]:lc.some(qd=>qd.status==="uploading"),[`${nd}-drag-hover`]:Uc==="dragover",[`${nd}-disabled`]:Fu,[`${nd}-rtl`]:yh==="rtl"});return Jd(y.createElement("span",{className:Th},y.createElement("div",{className:wd,style:yu,onDrop:nh,onDragOver:nh,onDragLeave:nh},y.createElement(Ue,Object.assign({},Pf,{ref:th,className:`${nd}-btn`}),y.createElement("div",{className:`${nd}-drag-container`},vu))),ch()))}const ff=k()(nd,`${nd}-select`,{[`${nd}-disabled`]:Fu}),Bu=(wd=>y.createElement("div",{className:ff,style:wd},y.createElement(Ue,Object.assign({},Pf,{ref:th}))))(vu?void 0:{display:"none"});return Jd(Ei==="picture-card"||Ei==="picture-circle"?y.createElement("span",{className:Th},ch(Bu,!!vu)):y.createElement("span",{className:Th},Bu,ch()))};var ju=y.forwardRef(ms),rc=function($n,mr){var Qr={};for(var ni in $n)Object.prototype.hasOwnProperty.call($n,ni)&&mr.indexOf(ni)<0&&(Qr[ni]=$n[ni]);if($n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ki=0,ni=Object.getOwnPropertySymbols($n);Ki{var{style:Qr,height:ni}=$n,Ki=rc($n,["style","height"]);return y.createElement(ju,Object.assign({ref:mr},Ki,{type:"drag",style:Object.assign(Object.assign({},Qr),{height:ni})}))});const qi=ju;qi.Dragger=ho,qi.LIST_IGNORE=ta;var os=qi},1028:function(nt,V,m){"use strict";var y=m(64836).default;Object.defineProperty(V,"__esModule",{value:!0}),V.default=void 0;var A=y(m(25633)),b=V.default=A.default},80037:function(nt,V,m){"use strict";var y=m(64836).default;Object.defineProperty(V,"__esModule",{value:!0}),V.default=void 0;var A=y(m(5584)),b=V.default=A.default},25633:function(nt,V,m){"use strict";var y=m(64836).default;Object.defineProperty(V,"__esModule",{value:!0}),V.default=void 0;var A=y(m(27590)),b=y(m(52040));const z={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},A.default),timePickerLocale:Object.assign({},b.default)};var k=V.default=z},5584:function(nt,V,m){"use strict";var y=m(64836).default;Object.defineProperty(V,"__esModule",{value:!0}),V.default=void 0;var A=y(m(85369)),b=y(m(15704));const z={lang:Object.assign({placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",yearPlaceholder:"\u8BF7\u9009\u62E9\u5E74\u4EFD",quarterPlaceholder:"\u8BF7\u9009\u62E9\u5B63\u5EA6",monthPlaceholder:"\u8BF7\u9009\u62E9\u6708\u4EFD",weekPlaceholder:"\u8BF7\u9009\u62E9\u5468",rangePlaceholder:["\u5F00\u59CB\u65E5\u671F","\u7ED3\u675F\u65E5\u671F"],rangeYearPlaceholder:["\u5F00\u59CB\u5E74\u4EFD","\u7ED3\u675F\u5E74\u4EFD"],rangeMonthPlaceholder:["\u5F00\u59CB\u6708\u4EFD","\u7ED3\u675F\u6708\u4EFD"],rangeQuarterPlaceholder:["\u5F00\u59CB\u5B63\u5EA6","\u7ED3\u675F\u5B63\u5EA6"],rangeWeekPlaceholder:["\u5F00\u59CB\u5468","\u7ED3\u675F\u5468"]},A.default),timePickerLocale:Object.assign({},b.default)};z.lang.ok="\u786E\u5B9A";var k=V.default=z},18253:function(nt,V,m){"use strict";var y,A=m(64836).default;y={value:!0},V.Z=void 0;var b=A(m(62273)),z=A(m(1028)),k=A(m(25633)),N=A(m(52040));const w="${label} is not a valid ${type}",I={locale:"en",Pagination:b.default,DatePicker:k.default,TimePicker:N.default,Calendar:z.default,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:w,method:w,array:w,object:w,number:w,date:w,boolean:w,integer:w,float:w,regexp:w,email:w,url:w,hex:w},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}};var C=V.Z=I},82925:function(nt,V,m){"use strict";var y,A=m(64836).default;y={value:!0},V.Z=void 0;var b=A(m(74219)),z=A(m(80037)),k=A(m(5584)),N=A(m(15704));const w="${label}\u4E0D\u662F\u4E00\u4E2A\u6709\u6548\u7684${type}",I={locale:"zh-cn",Pagination:b.default,DatePicker:k.default,TimePicker:N.default,Calendar:z.default,global:{placeholder:"\u8BF7\u9009\u62E9"},Table:{filterTitle:"\u7B5B\u9009",filterConfirm:"\u786E\u5B9A",filterReset:"\u91CD\u7F6E",filterEmptyText:"\u65E0\u7B5B\u9009\u9879",filterCheckall:"\u5168\u9009",filterSearchPlaceholder:"\u5728\u7B5B\u9009\u9879\u4E2D\u641C\u7D22",selectAll:"\u5168\u9009\u5F53\u9875",selectInvert:"\u53CD\u9009\u5F53\u9875",selectNone:"\u6E05\u7A7A\u6240\u6709",selectionAll:"\u5168\u9009\u6240\u6709",sortTitle:"\u6392\u5E8F",expand:"\u5C55\u5F00\u884C",collapse:"\u5173\u95ED\u884C",triggerDesc:"\u70B9\u51FB\u964D\u5E8F",triggerAsc:"\u70B9\u51FB\u5347\u5E8F",cancelSort:"\u53D6\u6D88\u6392\u5E8F"},Modal:{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",justOkText:"\u77E5\u9053\u4E86"},Tour:{Next:"\u4E0B\u4E00\u6B65",Previous:"\u4E0A\u4E00\u6B65",Finish:"\u7ED3\u675F\u5BFC\u89C8"},Popconfirm:{cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A"},Transfer:{titles:["",""],searchPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",itemUnit:"\u9879",itemsUnit:"\u9879",remove:"\u5220\u9664",selectCurrent:"\u5168\u9009\u5F53\u9875",removeCurrent:"\u5220\u9664\u5F53\u9875",selectAll:"\u5168\u9009\u6240\u6709",removeAll:"\u5220\u9664\u5168\u90E8",selectInvert:"\u53CD\u9009\u5F53\u9875"},Upload:{uploading:"\u6587\u4EF6\u4E0A\u4F20\u4E2D",removeFile:"\u5220\u9664\u6587\u4EF6",uploadError:"\u4E0A\u4F20\u9519\u8BEF",previewFile:"\u9884\u89C8\u6587\u4EF6",downloadFile:"\u4E0B\u8F7D\u6587\u4EF6"},Empty:{description:"\u6682\u65E0\u6570\u636E"},Icon:{icon:"\u56FE\u6807"},Text:{edit:"\u7F16\u8F91",copy:"\u590D\u5236",copied:"\u590D\u5236\u6210\u529F",expand:"\u5C55\u5F00"},PageHeader:{back:"\u8FD4\u56DE"},Form:{optional:"\uFF08\u53EF\u9009\uFF09",defaultValidateMessages:{default:"\u5B57\u6BB5\u9A8C\u8BC1\u9519\u8BEF${label}",required:"\u8BF7\u8F93\u5165${label}",enum:"${label}\u5FC5\u987B\u662F\u5176\u4E2D\u4E00\u4E2A[${enum}]",whitespace:"${label}\u4E0D\u80FD\u4E3A\u7A7A\u5B57\u7B26",date:{format:"${label}\u65E5\u671F\u683C\u5F0F\u65E0\u6548",parse:"${label}\u4E0D\u80FD\u8F6C\u6362\u4E3A\u65E5\u671F",invalid:"${label}\u662F\u4E00\u4E2A\u65E0\u6548\u65E5\u671F"},types:{string:w,method:w,array:w,object:w,number:w,date:w,boolean:w,integer:w,float:w,regexp:w,email:w,url:w,hex:w},string:{len:"${label}\u987B\u4E3A${len}\u4E2A\u5B57\u7B26",min:"${label}\u6700\u5C11${min}\u4E2A\u5B57\u7B26",max:"${label}\u6700\u591A${max}\u4E2A\u5B57\u7B26",range:"${label}\u987B\u5728${min}-${max}\u5B57\u7B26\u4E4B\u95F4"},number:{len:"${label}\u5FC5\u987B\u7B49\u4E8E${len}",min:"${label}\u6700\u5C0F\u503C\u4E3A${min}",max:"${label}\u6700\u5927\u503C\u4E3A${max}",range:"${label}\u987B\u5728${min}-${max}\u4E4B\u95F4"},array:{len:"\u987B\u4E3A${len}\u4E2A${label}",min:"\u6700\u5C11${min}\u4E2A${label}",max:"\u6700\u591A${max}\u4E2A${label}",range:"${label}\u6570\u91CF\u987B\u5728${min}-${max}\u4E4B\u95F4"},pattern:{mismatch:"${label}\u4E0E\u6A21\u5F0F\u4E0D\u5339\u914D${pattern}"}}},Image:{preview:"\u9884\u89C8"},QRCode:{expired:"\u4E8C\u7EF4\u7801\u8FC7\u671F",refresh:"\u70B9\u51FB\u5237\u65B0"},ColorPicker:{presetEmpty:"\u6682\u65E0"}};var C=V.Z=I},52040:function(nt,V){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.default=void 0;const m={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};var y=V.default=m},15704:function(nt,V){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.default=void 0;const m={placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",rangePlaceholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]};var y=V.default=m},93771:function(nt,V,m){"use strict";m.d(V,{Z:function(){return bt}});var y=m(87462),A=m(97685),b=m(4942),z=m(91),k=m(67294),N=m(94184),w=m.n(N),I=m(16397),C=m(54775),f=m(1413),S=m(71002),P=m(44958),j=m(27571),re=m(80334);function J(ht){return ht.replace(/-(.)/g,function(Bt,mt){return mt.toUpperCase()})}function ie(ht,Bt){(0,re.ZP)(ht,"[@ant-design/icons] ".concat(Bt))}function de(ht){return(0,S.Z)(ht)==="object"&&typeof ht.name=="string"&&typeof ht.theme=="string"&&((0,S.Z)(ht.icon)==="object"||typeof ht.icon=="function")}function he(){var ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(ht).reduce(function(Bt,mt){var _n=ht[mt];switch(mt){case"class":Bt.className=_n,delete Bt.class;break;default:delete Bt[mt],Bt[J(mt)]=_n}return Bt},{})}function fe(ht,Bt,mt){return mt?k.createElement(ht.tag,(0,f.Z)((0,f.Z)({key:Bt},he(ht.attrs)),mt),(ht.children||[]).map(function(_n,Bn){return fe(_n,"".concat(Bt,"-").concat(ht.tag,"-").concat(Bn))})):k.createElement(ht.tag,(0,f.Z)({key:Bt},he(ht.attrs)),(ht.children||[]).map(function(_n,Bn){return fe(_n,"".concat(Bt,"-").concat(ht.tag,"-").concat(Bn))}))}function ke(ht){return(0,I.R_)(ht)[0]}function we(ht){return ht?Array.isArray(ht)?ht:[ht]:[]}var Ne={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},Ee=` -.anticon { - display: inline-block; - color: inherit; - font-style: normal; - line-height: 0; - text-align: center; - text-transform: none; - vertical-align: -0.125em; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.anticon > * { - line-height: 1; -} - -.anticon svg { - display: inline-block; -} - -.anticon::before { - display: none; -} - -.anticon .anticon-icon { - display: block; -} - -.anticon[tabindex] { - cursor: pointer; -} - -.anticon-spin::before, -.anticon-spin { - display: inline-block; - -webkit-animation: loadingCircle 1s infinite linear; - animation: loadingCircle 1s infinite linear; -} - -@-webkit-keyframes loadingCircle { - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} - -@keyframes loadingCircle { - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} -`,ge=function(Bt){var mt=(0,k.useContext)(C.Z),_n=mt.csp,Bn=mt.prefixCls,Er=Ee;Bn&&(Er=Er.replace(/anticon/g,Bn)),(0,k.useEffect)(function(){var Yr=Bt.current,oi=(0,j.A)(Yr);(0,P.hq)(Er,"@ant-design-icons",{prepend:!0,csp:_n,attachTo:oi})},[])},ye=["icon","className","onClick","style","primaryColor","secondaryColor"],xe={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function be(ht){var Bt=ht.primaryColor,mt=ht.secondaryColor;xe.primaryColor=Bt,xe.secondaryColor=mt||ke(Bt),xe.calculated=!!mt}function Ie(){return(0,f.Z)({},xe)}var me=function(Bt){var mt=Bt.icon,_n=Bt.className,Bn=Bt.onClick,Er=Bt.style,Yr=Bt.primaryColor,oi=Bt.secondaryColor,to=(0,z.Z)(Bt,ye),yo=k.useRef(),vr=xe;if(Yr&&(vr={primaryColor:Yr,secondaryColor:oi||ke(Yr)}),ge(yo),ie(de(mt),"icon should be icon definiton, but got ".concat(mt)),!de(mt))return null;var Po=mt;return Po&&typeof Po.icon=="function"&&(Po=(0,f.Z)((0,f.Z)({},Po),{},{icon:Po.icon(vr.primaryColor,vr.secondaryColor)})),fe(Po.icon,"svg-".concat(Po.name),(0,f.Z)((0,f.Z)({className:_n,onClick:Bn,style:Er,"data-icon":Po.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},to),{},{ref:yo}))};me.displayName="IconReact",me.getTwoToneColors=Ie,me.setTwoToneColors=be;var We=me;function Ce(ht){var Bt=we(ht),mt=(0,A.Z)(Bt,2),_n=mt[0],Bn=mt[1];return We.setTwoToneColors({primaryColor:_n,secondaryColor:Bn})}function Pt(){var ht=We.getTwoToneColors();return ht.calculated?[ht.primaryColor,ht.secondaryColor]:ht.primaryColor}var ct=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Ce(I.iN.primary);var Ue=k.forwardRef(function(ht,Bt){var mt,_n=ht.className,Bn=ht.icon,Er=ht.spin,Yr=ht.rotate,oi=ht.tabIndex,to=ht.onClick,yo=ht.twoToneColor,vr=(0,z.Z)(ht,ct),Po=k.useContext(C.Z),ss=Po.prefixCls,ve=ss===void 0?"anticon":ss,_o=Po.rootClassName,ci=w()(_o,ve,(mt={},(0,b.Z)(mt,"".concat(ve,"-").concat(Bn.name),!!Bn.name),(0,b.Z)(mt,"".concat(ve,"-spin"),!!Er||Bn.name==="loading"),mt),_n),Bi=oi;Bi===void 0&&to&&(Bi=-1);var wi=Yr?{msTransform:"rotate(".concat(Yr,"deg)"),transform:"rotate(".concat(Yr,"deg)")}:void 0,io=we(yo),ln=(0,A.Z)(io,2),Ve=ln[0],_t=ln[1];return k.createElement("span",(0,y.Z)({role:"img","aria-label":Bn.name},vr,{ref:Bt,tabIndex:Bi,onClick:to,className:ci}),k.createElement(We,{icon:Bn,primaryColor:Ve,secondaryColor:_t,style:wi}))});Ue.displayName="AntdIcon",Ue.getTwoToneColor=Pt,Ue.setTwoToneColor=Ce;var bt=Ue},54775:function(nt,V,m){"use strict";var y=m(67294),A=(0,y.createContext)({});V.Z=A},76278:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(87462),A=m(67294),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},z=b,k=m(93771),N=function(C,f){return A.createElement(k.Z,(0,y.Z)({},C,{ref:f,icon:z}))},w=A.forwardRef(N)},35918:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(87462),A=m(67294),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},z=b,k=m(93771),N=function(C,f){return A.createElement(k.Z,(0,y.Z)({},C,{ref:f,icon:z}))},w=A.forwardRef(N)},41322:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(87462),A=m(67294),b={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},z=b,k=m(93771),N=function(C,f){return A.createElement(k.Z,(0,y.Z)({},C,{ref:f,icon:z}))},w=A.forwardRef(N)},62208:function(nt,V,m){"use strict";var y=m(87462),A=m(67294),b=m(89503),z=m(93771),k=function(w,I){return A.createElement(z.Z,(0,y.Z)({},w,{ref:I,icon:b.Z}))};V.Z=A.forwardRef(k)},58964:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(87462),A=m(67294),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},z=b,k=m(93771),N=function(C,f){return A.createElement(k.Z,(0,y.Z)({},C,{ref:f,icon:z}))},w=A.forwardRef(N)},35872:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(87462),A=m(67294),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},z=b,k=m(93771),N=function(C,f){return A.createElement(k.Z,(0,y.Z)({},C,{ref:f,icon:z}))},w=A.forwardRef(N)},26702:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(87462),A=m(67294),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},z=b,k=m(93771),N=function(C,f){return A.createElement(k.Z,(0,y.Z)({},C,{ref:f,icon:z}))},w=A.forwardRef(N)},7124:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(87462),A=m(67294),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},z=b,k=m(93771),N=function(C,f){return A.createElement(k.Z,(0,y.Z)({},C,{ref:f,icon:z}))},w=A.forwardRef(N)},1558:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(87462),A=m(67294),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},z=b,k=m(93771),N=function(C,f){return A.createElement(k.Z,(0,y.Z)({},C,{ref:f,icon:z}))},w=A.forwardRef(N)},62946:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(87462),A=m(67294),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},z=b,k=m(93771),N=function(C,f){return A.createElement(k.Z,(0,y.Z)({},C,{ref:f,icon:z}))},w=A.forwardRef(N)},22508:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(87462),A=m(67294),b={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},z=b,k=m(93771),N=function(C,f){return A.createElement(k.Z,(0,y.Z)({},C,{ref:f,icon:z}))},w=A.forwardRef(N)},68843:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(87462),A=m(67294),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},z=b,k=m(93771),N=function(C,f){return A.createElement(k.Z,(0,y.Z)({},C,{ref:f,icon:z}))},w=A.forwardRef(N)},13805:function(nt,V,m){"use strict";m.d(V,{Z:function(){return w}});var y=m(87462),A=m(67294),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},z=b,k=m(93771),N=function(C,f){return A.createElement(k.Z,(0,y.Z)({},C,{ref:f,icon:z}))},w=A.forwardRef(N)},79742:function(nt,V){"use strict";V.byteLength=w,V.toByteArray=C,V.fromByteArray=P;for(var m=[],y=[],A=typeof Uint8Array!="undefined"?Uint8Array:Array,b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",z=0,k=b.length;z0)throw new Error("Invalid string. Length must be a multiple of 4");var J=j.indexOf("=");J===-1&&(J=re);var ie=J===re?0:4-J%4;return[J,ie]}function w(j){var re=N(j),J=re[0],ie=re[1];return(J+ie)*3/4-ie}function I(j,re,J){return(re+J)*3/4-J}function C(j){var re,J=N(j),ie=J[0],de=J[1],he=new A(I(j,ie,de)),fe=0,ke=de>0?ie-4:ie,we;for(we=0;we>16&255,he[fe++]=re>>8&255,he[fe++]=re&255;return de===2&&(re=y[j.charCodeAt(we)]<<2|y[j.charCodeAt(we+1)]>>4,he[fe++]=re&255),de===1&&(re=y[j.charCodeAt(we)]<<10|y[j.charCodeAt(we+1)]<<4|y[j.charCodeAt(we+2)]>>2,he[fe++]=re>>8&255,he[fe++]=re&255),he}function f(j){return m[j>>18&63]+m[j>>12&63]+m[j>>6&63]+m[j&63]}function S(j,re,J){for(var ie,de=[],he=re;heke?ke:fe+he));return ie===1?(re=j[J-1],de.push(m[re>>2]+m[re<<4&63]+"==")):ie===2&&(re=(j[J-2]<<8)+j[J-1],de.push(m[re>>10]+m[re>>4&63]+m[re<<2&63]+"=")),de.join("")}},48764:function(nt,V,m){"use strict";var y;var A=m(79742),b=m(80645),z=m(5826);V.lW=I,y=he,V.h2=50,I.TYPED_ARRAY_SUPPORT=m.g.TYPED_ARRAY_SUPPORT!==void 0?m.g.TYPED_ARRAY_SUPPORT:k(),y=N();function k(){try{var ln=new Uint8Array(1);return ln.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},ln.foo()===42&&typeof ln.subarray=="function"&&ln.subarray(1,1).byteLength===0}catch(Ve){return!1}}function N(){return I.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function w(ln,Ve){if(N()=N())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+N().toString(16)+" bytes");return ln|0}function he(ln){return+ln!=ln&&(ln=0),I.alloc(+ln)}I.isBuffer=function(Ve){return!!(Ve!=null&&Ve._isBuffer)},I.compare=function(Ve,_t){if(!I.isBuffer(Ve)||!I.isBuffer(_t))throw new TypeError("Arguments must be Buffers");if(Ve===_t)return 0;for(var Ct=Ve.length,jt=_t.length,on=0,Ot=Math.min(Ct,jt);on>>1;case"base64":return Bi(ln).length;default:if(Ct)return ve(ln).length;Ve=(""+Ve).toLowerCase(),Ct=!0}}I.byteLength=fe;function ke(ln,Ve,_t){var Ct=!1;if((Ve===void 0||Ve<0)&&(Ve=0),Ve>this.length||((_t===void 0||_t>this.length)&&(_t=this.length),_t<=0)||(_t>>>=0,Ve>>>=0,_t<=Ve))return"";for(ln||(ln="utf8");;)switch(ln){case"hex":return ht(this,Ve,_t);case"utf8":case"utf-8":return Ce(this,Ve,_t);case"ascii":return Ue(this,Ve,_t);case"latin1":case"binary":return bt(this,Ve,_t);case"base64":return We(this,Ve,_t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Bt(this,Ve,_t);default:if(Ct)throw new TypeError("Unknown encoding: "+ln);ln=(ln+"").toLowerCase(),Ct=!0}}I.prototype._isBuffer=!0;function we(ln,Ve,_t){var Ct=ln[Ve];ln[Ve]=ln[_t],ln[_t]=Ct}I.prototype.swap16=function(){var Ve=this.length;if(Ve%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var _t=0;_t0&&(Ve=this.toString("hex",0,_t).match(/.{2}/g).join(" "),this.length>_t&&(Ve+=" ... ")),""},I.prototype.compare=function(Ve,_t,Ct,jt,on){if(!I.isBuffer(Ve))throw new TypeError("Argument must be a Buffer");if(_t===void 0&&(_t=0),Ct===void 0&&(Ct=Ve?Ve.length:0),jt===void 0&&(jt=0),on===void 0&&(on=this.length),_t<0||Ct>Ve.length||jt<0||on>this.length)throw new RangeError("out of range index");if(jt>=on&&_t>=Ct)return 0;if(jt>=on)return-1;if(_t>=Ct)return 1;if(_t>>>=0,Ct>>>=0,jt>>>=0,on>>>=0,this===Ve)return 0;for(var Ot=on-jt,Tt=Ct-_t,xt=Math.min(Ot,Tt),Ht=this.slice(jt,on),Zn=Ve.slice(_t,Ct),tn=0;tn2147483647?_t=2147483647:_t<-2147483648&&(_t=-2147483648),_t=+_t,isNaN(_t)&&(_t=jt?0:ln.length-1),_t<0&&(_t=ln.length+_t),_t>=ln.length){if(jt)return-1;_t=ln.length-1}else if(_t<0)if(jt)_t=0;else return-1;if(typeof Ve=="string"&&(Ve=I.from(Ve,Ct)),I.isBuffer(Ve))return Ve.length===0?-1:Ee(ln,Ve,_t,Ct,jt);if(typeof Ve=="number")return Ve=Ve&255,I.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?jt?Uint8Array.prototype.indexOf.call(ln,Ve,_t):Uint8Array.prototype.lastIndexOf.call(ln,Ve,_t):Ee(ln,[Ve],_t,Ct,jt);throw new TypeError("val must be string, number or Buffer")}function Ee(ln,Ve,_t,Ct,jt){var on=1,Ot=ln.length,Tt=Ve.length;if(Ct!==void 0&&(Ct=String(Ct).toLowerCase(),Ct==="ucs2"||Ct==="ucs-2"||Ct==="utf16le"||Ct==="utf-16le")){if(ln.length<2||Ve.length<2)return-1;on=2,Ot/=2,Tt/=2,_t/=2}function xt(Zi,Ri){return on===1?Zi[Ri]:Zi.readUInt16BE(Ri*on)}var Ht;if(jt){var Zn=-1;for(Ht=_t;HtOt&&(_t=Ot-Tt),Ht=_t;Ht>=0;Ht--){for(var tn=!0,hr=0;hrjt&&(Ct=jt)):Ct=jt;var on=Ve.length;if(on%2!==0)throw new TypeError("Invalid hex string");Ct>on/2&&(Ct=on/2);for(var Ot=0;Oton)&&(Ct=on),Ve.length>0&&(Ct<0||_t<0)||_t>this.length)throw new RangeError("Attempt to write outside buffer bounds");jt||(jt="utf8");for(var Ot=!1;;)switch(jt){case"hex":return ge(this,Ve,_t,Ct);case"utf8":case"utf-8":return ye(this,Ve,_t,Ct);case"ascii":return xe(this,Ve,_t,Ct);case"latin1":case"binary":return be(this,Ve,_t,Ct);case"base64":return Ie(this,Ve,_t,Ct);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return me(this,Ve,_t,Ct);default:if(Ot)throw new TypeError("Unknown encoding: "+jt);jt=(""+jt).toLowerCase(),Ot=!0}},I.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function We(ln,Ve,_t){return Ve===0&&_t===ln.length?A.fromByteArray(ln):A.fromByteArray(ln.slice(Ve,_t))}function Ce(ln,Ve,_t){_t=Math.min(ln.length,_t);for(var Ct=[],jt=Ve;jt<_t;){var on=ln[jt],Ot=null,Tt=on>239?4:on>223?3:on>191?2:1;if(jt+Tt<=_t){var xt,Ht,Zn,tn;switch(Tt){case 1:on<128&&(Ot=on);break;case 2:xt=ln[jt+1],(xt&192)===128&&(tn=(on&31)<<6|xt&63,tn>127&&(Ot=tn));break;case 3:xt=ln[jt+1],Ht=ln[jt+2],(xt&192)===128&&(Ht&192)===128&&(tn=(on&15)<<12|(xt&63)<<6|Ht&63,tn>2047&&(tn<55296||tn>57343)&&(Ot=tn));break;case 4:xt=ln[jt+1],Ht=ln[jt+2],Zn=ln[jt+3],(xt&192)===128&&(Ht&192)===128&&(Zn&192)===128&&(tn=(on&15)<<18|(xt&63)<<12|(Ht&63)<<6|Zn&63,tn>65535&&tn<1114112&&(Ot=tn))}}Ot===null?(Ot=65533,Tt=1):Ot>65535&&(Ot-=65536,Ct.push(Ot>>>10&1023|55296),Ot=56320|Ot&1023),Ct.push(Ot),jt+=Tt}return ct(Ct)}var Pt=4096;function ct(ln){var Ve=ln.length;if(Ve<=Pt)return String.fromCharCode.apply(String,ln);for(var _t="",Ct=0;CtCt)&&(_t=Ct);for(var jt="",on=Ve;on<_t;++on)jt+=ss(ln[on]);return jt}function Bt(ln,Ve,_t){for(var Ct=ln.slice(Ve,_t),jt="",on=0;onCt&&(Ve=Ct),_t<0?(_t+=Ct,_t<0&&(_t=0)):_t>Ct&&(_t=Ct),_t_t)throw new RangeError("Trying to access beyond buffer length")}I.prototype.readUIntLE=function(Ve,_t,Ct){Ve=Ve|0,_t=_t|0,Ct||mt(Ve,_t,this.length);for(var jt=this[Ve],on=1,Ot=0;++Ot<_t&&(on*=256);)jt+=this[Ve+Ot]*on;return jt},I.prototype.readUIntBE=function(Ve,_t,Ct){Ve=Ve|0,_t=_t|0,Ct||mt(Ve,_t,this.length);for(var jt=this[Ve+--_t],on=1;_t>0&&(on*=256);)jt+=this[Ve+--_t]*on;return jt},I.prototype.readUInt8=function(Ve,_t){return _t||mt(Ve,1,this.length),this[Ve]},I.prototype.readUInt16LE=function(Ve,_t){return _t||mt(Ve,2,this.length),this[Ve]|this[Ve+1]<<8},I.prototype.readUInt16BE=function(Ve,_t){return _t||mt(Ve,2,this.length),this[Ve]<<8|this[Ve+1]},I.prototype.readUInt32LE=function(Ve,_t){return _t||mt(Ve,4,this.length),(this[Ve]|this[Ve+1]<<8|this[Ve+2]<<16)+this[Ve+3]*16777216},I.prototype.readUInt32BE=function(Ve,_t){return _t||mt(Ve,4,this.length),this[Ve]*16777216+(this[Ve+1]<<16|this[Ve+2]<<8|this[Ve+3])},I.prototype.readIntLE=function(Ve,_t,Ct){Ve=Ve|0,_t=_t|0,Ct||mt(Ve,_t,this.length);for(var jt=this[Ve],on=1,Ot=0;++Ot<_t&&(on*=256);)jt+=this[Ve+Ot]*on;return on*=128,jt>=on&&(jt-=Math.pow(2,8*_t)),jt},I.prototype.readIntBE=function(Ve,_t,Ct){Ve=Ve|0,_t=_t|0,Ct||mt(Ve,_t,this.length);for(var jt=_t,on=1,Ot=this[Ve+--jt];jt>0&&(on*=256);)Ot+=this[Ve+--jt]*on;return on*=128,Ot>=on&&(Ot-=Math.pow(2,8*_t)),Ot},I.prototype.readInt8=function(Ve,_t){return _t||mt(Ve,1,this.length),this[Ve]&128?(255-this[Ve]+1)*-1:this[Ve]},I.prototype.readInt16LE=function(Ve,_t){_t||mt(Ve,2,this.length);var Ct=this[Ve]|this[Ve+1]<<8;return Ct&32768?Ct|4294901760:Ct},I.prototype.readInt16BE=function(Ve,_t){_t||mt(Ve,2,this.length);var Ct=this[Ve+1]|this[Ve]<<8;return Ct&32768?Ct|4294901760:Ct},I.prototype.readInt32LE=function(Ve,_t){return _t||mt(Ve,4,this.length),this[Ve]|this[Ve+1]<<8|this[Ve+2]<<16|this[Ve+3]<<24},I.prototype.readInt32BE=function(Ve,_t){return _t||mt(Ve,4,this.length),this[Ve]<<24|this[Ve+1]<<16|this[Ve+2]<<8|this[Ve+3]},I.prototype.readFloatLE=function(Ve,_t){return _t||mt(Ve,4,this.length),b.read(this,Ve,!0,23,4)},I.prototype.readFloatBE=function(Ve,_t){return _t||mt(Ve,4,this.length),b.read(this,Ve,!1,23,4)},I.prototype.readDoubleLE=function(Ve,_t){return _t||mt(Ve,8,this.length),b.read(this,Ve,!0,52,8)},I.prototype.readDoubleBE=function(Ve,_t){return _t||mt(Ve,8,this.length),b.read(this,Ve,!1,52,8)};function _n(ln,Ve,_t,Ct,jt,on){if(!I.isBuffer(ln))throw new TypeError('"buffer" argument must be a Buffer instance');if(Ve>jt||Veln.length)throw new RangeError("Index out of range")}I.prototype.writeUIntLE=function(Ve,_t,Ct,jt){if(Ve=+Ve,_t=_t|0,Ct=Ct|0,!jt){var on=Math.pow(2,8*Ct)-1;_n(this,Ve,_t,Ct,on,0)}var Ot=1,Tt=0;for(this[_t]=Ve&255;++Tt=0&&(Tt*=256);)this[_t+Ot]=Ve/Tt&255;return _t+Ct},I.prototype.writeUInt8=function(Ve,_t,Ct){return Ve=+Ve,_t=_t|0,Ct||_n(this,Ve,_t,1,255,0),I.TYPED_ARRAY_SUPPORT||(Ve=Math.floor(Ve)),this[_t]=Ve&255,_t+1};function Bn(ln,Ve,_t,Ct){Ve<0&&(Ve=65535+Ve+1);for(var jt=0,on=Math.min(ln.length-_t,2);jt>>(Ct?jt:1-jt)*8}I.prototype.writeUInt16LE=function(Ve,_t,Ct){return Ve=+Ve,_t=_t|0,Ct||_n(this,Ve,_t,2,65535,0),I.TYPED_ARRAY_SUPPORT?(this[_t]=Ve&255,this[_t+1]=Ve>>>8):Bn(this,Ve,_t,!0),_t+2},I.prototype.writeUInt16BE=function(Ve,_t,Ct){return Ve=+Ve,_t=_t|0,Ct||_n(this,Ve,_t,2,65535,0),I.TYPED_ARRAY_SUPPORT?(this[_t]=Ve>>>8,this[_t+1]=Ve&255):Bn(this,Ve,_t,!1),_t+2};function Er(ln,Ve,_t,Ct){Ve<0&&(Ve=4294967295+Ve+1);for(var jt=0,on=Math.min(ln.length-_t,4);jt>>(Ct?jt:3-jt)*8&255}I.prototype.writeUInt32LE=function(Ve,_t,Ct){return Ve=+Ve,_t=_t|0,Ct||_n(this,Ve,_t,4,4294967295,0),I.TYPED_ARRAY_SUPPORT?(this[_t+3]=Ve>>>24,this[_t+2]=Ve>>>16,this[_t+1]=Ve>>>8,this[_t]=Ve&255):Er(this,Ve,_t,!0),_t+4},I.prototype.writeUInt32BE=function(Ve,_t,Ct){return Ve=+Ve,_t=_t|0,Ct||_n(this,Ve,_t,4,4294967295,0),I.TYPED_ARRAY_SUPPORT?(this[_t]=Ve>>>24,this[_t+1]=Ve>>>16,this[_t+2]=Ve>>>8,this[_t+3]=Ve&255):Er(this,Ve,_t,!1),_t+4},I.prototype.writeIntLE=function(Ve,_t,Ct,jt){if(Ve=+Ve,_t=_t|0,!jt){var on=Math.pow(2,8*Ct-1);_n(this,Ve,_t,Ct,on-1,-on)}var Ot=0,Tt=1,xt=0;for(this[_t]=Ve&255;++Ot>0)-xt&255;return _t+Ct},I.prototype.writeIntBE=function(Ve,_t,Ct,jt){if(Ve=+Ve,_t=_t|0,!jt){var on=Math.pow(2,8*Ct-1);_n(this,Ve,_t,Ct,on-1,-on)}var Ot=Ct-1,Tt=1,xt=0;for(this[_t+Ot]=Ve&255;--Ot>=0&&(Tt*=256);)Ve<0&&xt===0&&this[_t+Ot+1]!==0&&(xt=1),this[_t+Ot]=(Ve/Tt>>0)-xt&255;return _t+Ct},I.prototype.writeInt8=function(Ve,_t,Ct){return Ve=+Ve,_t=_t|0,Ct||_n(this,Ve,_t,1,127,-128),I.TYPED_ARRAY_SUPPORT||(Ve=Math.floor(Ve)),Ve<0&&(Ve=255+Ve+1),this[_t]=Ve&255,_t+1},I.prototype.writeInt16LE=function(Ve,_t,Ct){return Ve=+Ve,_t=_t|0,Ct||_n(this,Ve,_t,2,32767,-32768),I.TYPED_ARRAY_SUPPORT?(this[_t]=Ve&255,this[_t+1]=Ve>>>8):Bn(this,Ve,_t,!0),_t+2},I.prototype.writeInt16BE=function(Ve,_t,Ct){return Ve=+Ve,_t=_t|0,Ct||_n(this,Ve,_t,2,32767,-32768),I.TYPED_ARRAY_SUPPORT?(this[_t]=Ve>>>8,this[_t+1]=Ve&255):Bn(this,Ve,_t,!1),_t+2},I.prototype.writeInt32LE=function(Ve,_t,Ct){return Ve=+Ve,_t=_t|0,Ct||_n(this,Ve,_t,4,2147483647,-2147483648),I.TYPED_ARRAY_SUPPORT?(this[_t]=Ve&255,this[_t+1]=Ve>>>8,this[_t+2]=Ve>>>16,this[_t+3]=Ve>>>24):Er(this,Ve,_t,!0),_t+4},I.prototype.writeInt32BE=function(Ve,_t,Ct){return Ve=+Ve,_t=_t|0,Ct||_n(this,Ve,_t,4,2147483647,-2147483648),Ve<0&&(Ve=4294967295+Ve+1),I.TYPED_ARRAY_SUPPORT?(this[_t]=Ve>>>24,this[_t+1]=Ve>>>16,this[_t+2]=Ve>>>8,this[_t+3]=Ve&255):Er(this,Ve,_t,!1),_t+4};function Yr(ln,Ve,_t,Ct,jt,on){if(_t+Ct>ln.length)throw new RangeError("Index out of range");if(_t<0)throw new RangeError("Index out of range")}function oi(ln,Ve,_t,Ct,jt){return jt||Yr(ln,Ve,_t,4,34028234663852886e22,-34028234663852886e22),b.write(ln,Ve,_t,Ct,23,4),_t+4}I.prototype.writeFloatLE=function(Ve,_t,Ct){return oi(this,Ve,_t,!0,Ct)},I.prototype.writeFloatBE=function(Ve,_t,Ct){return oi(this,Ve,_t,!1,Ct)};function to(ln,Ve,_t,Ct,jt){return jt||Yr(ln,Ve,_t,8,17976931348623157e292,-17976931348623157e292),b.write(ln,Ve,_t,Ct,52,8),_t+8}I.prototype.writeDoubleLE=function(Ve,_t,Ct){return to(this,Ve,_t,!0,Ct)},I.prototype.writeDoubleBE=function(Ve,_t,Ct){return to(this,Ve,_t,!1,Ct)},I.prototype.copy=function(Ve,_t,Ct,jt){if(Ct||(Ct=0),!jt&&jt!==0&&(jt=this.length),_t>=Ve.length&&(_t=Ve.length),_t||(_t=0),jt>0&&jt=this.length)throw new RangeError("sourceStart out of bounds");if(jt<0)throw new RangeError("sourceEnd out of bounds");jt>this.length&&(jt=this.length),Ve.length-_t=0;--Ot)Ve[Ot+_t]=this[Ot+Ct];else if(on<1e3||!I.TYPED_ARRAY_SUPPORT)for(Ot=0;Ot>>0,Ct=Ct===void 0?this.length:Ct>>>0,Ve||(Ve=0);var Ot;if(typeof Ve=="number")for(Ot=_t;Ot55295&&_t<57344){if(!jt){if(_t>56319){(Ve-=3)>-1&&on.push(239,191,189);continue}else if(Ot+1===Ct){(Ve-=3)>-1&&on.push(239,191,189);continue}jt=_t;continue}if(_t<56320){(Ve-=3)>-1&&on.push(239,191,189),jt=_t;continue}_t=(jt-55296<<10|_t-56320)+65536}else jt&&(Ve-=3)>-1&&on.push(239,191,189);if(jt=null,_t<128){if((Ve-=1)<0)break;on.push(_t)}else if(_t<2048){if((Ve-=2)<0)break;on.push(_t>>6|192,_t&63|128)}else if(_t<65536){if((Ve-=3)<0)break;on.push(_t>>12|224,_t>>6&63|128,_t&63|128)}else if(_t<1114112){if((Ve-=4)<0)break;on.push(_t>>18|240,_t>>12&63|128,_t>>6&63|128,_t&63|128)}else throw new Error("Invalid code point")}return on}function _o(ln){for(var Ve=[],_t=0;_t>8,jt=_t%256,on.push(jt),on.push(Ct);return on}function Bi(ln){return A.toByteArray(vr(ln))}function wi(ln,Ve,_t,Ct){for(var jt=0;jt=Ve.length||jt>=ln.length);++jt)Ve[jt+_t]=ln[jt];return jt}function io(ln){return ln!==ln}},21924:function(nt,V,m){"use strict";var y=m(40210),A=m(55559),b=A(y("String.prototype.indexOf"));nt.exports=function(k,N){var w=y(k,!!N);return typeof w=="function"&&b(k,".prototype.")>-1?A(w):w}},55559:function(nt,V,m){"use strict";var y=m(58612),A=m(40210),b=A("%Function.prototype.apply%"),z=A("%Function.prototype.call%"),k=A("%Reflect.apply%",!0)||y.call(z,b),N=A("%Object.getOwnPropertyDescriptor%",!0),w=A("%Object.defineProperty%",!0),I=A("%Math.max%");if(w)try{w({},"a",{value:1})}catch(f){w=null}nt.exports=function(S){var P=k(y,z,arguments);if(N&&w){var j=N(P,"length");j.configurable&&w(P,"length",{value:1+I(0,S.length-(arguments.length-1))})}return P};var C=function(){return k(y,b,arguments)};w?w(nt.exports,"apply",{value:C}):nt.exports.apply=C},42152:function(nt){(function(m,y){nt.exports=y()})(this,function(){return function(){var V={686:function(A,b,z){"use strict";z.d(b,{default:function(){return Ue}});var k=z(279),N=z.n(k),w=z(370),I=z.n(w),C=z(817),f=z.n(C);function S(bt){try{return document.execCommand(bt)}catch(ht){return!1}}var P=function(ht){var Bt=f()(ht);return S("cut"),Bt},j=P;function re(bt){var ht=document.documentElement.getAttribute("dir")==="rtl",Bt=document.createElement("textarea");Bt.style.fontSize="12pt",Bt.style.border="0",Bt.style.padding="0",Bt.style.margin="0",Bt.style.position="absolute",Bt.style[ht?"right":"left"]="-9999px";var mt=window.pageYOffset||document.documentElement.scrollTop;return Bt.style.top="".concat(mt,"px"),Bt.setAttribute("readonly",""),Bt.value=bt,Bt}var J=function(ht,Bt){var mt=re(ht);Bt.container.appendChild(mt);var _n=f()(mt);return S("copy"),mt.remove(),_n},ie=function(ht){var Bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},mt="";return typeof ht=="string"?mt=J(ht,Bt):ht instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(ht==null?void 0:ht.type)?mt=J(ht.value,Bt):(mt=f()(ht),S("copy")),mt},de=ie;function he(bt){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?he=function(Bt){return typeof Bt}:he=function(Bt){return Bt&&typeof Symbol=="function"&&Bt.constructor===Symbol&&Bt!==Symbol.prototype?"symbol":typeof Bt},he(bt)}var fe=function(){var ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Bt=ht.action,mt=Bt===void 0?"copy":Bt,_n=ht.container,Bn=ht.target,Er=ht.text;if(mt!=="copy"&&mt!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(Bn!==void 0)if(Bn&&he(Bn)==="object"&&Bn.nodeType===1){if(mt==="copy"&&Bn.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(mt==="cut"&&(Bn.hasAttribute("readonly")||Bn.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(Er)return de(Er,{container:_n});if(Bn)return mt==="cut"?j(Bn):de(Bn,{container:_n})},ke=fe;function we(bt){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?we=function(Bt){return typeof Bt}:we=function(Bt){return Bt&&typeof Symbol=="function"&&Bt.constructor===Symbol&&Bt!==Symbol.prototype?"symbol":typeof Bt},we(bt)}function Ne(bt,ht){if(!(bt instanceof ht))throw new TypeError("Cannot call a class as a function")}function Ee(bt,ht){for(var Bt=0;Bt0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof _n.action=="function"?_n.action:this.defaultAction,this.target=typeof _n.target=="function"?_n.target:this.defaultTarget,this.text=typeof _n.text=="function"?_n.text:this.defaultText,this.container=we(_n.container)==="object"?_n.container:document.body}},{key:"listenClick",value:function(_n){var Bn=this;this.listener=I()(_n,"click",function(Er){return Bn.onClick(Er)})}},{key:"onClick",value:function(_n){var Bn=_n.delegateTarget||_n.currentTarget,Er=this.action(Bn)||"copy",Yr=ke({action:Er,container:this.container,target:this.target(Bn),text:this.text(Bn)});this.emit(Yr?"success":"error",{action:Er,text:Yr,trigger:Bn,clearSelection:function(){Bn&&Bn.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(_n){return Pt("action",_n)}},{key:"defaultTarget",value:function(_n){var Bn=Pt("target",_n);if(Bn)return document.querySelector(Bn)}},{key:"defaultText",value:function(_n){return Pt("text",_n)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(_n){var Bn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return de(_n,Bn)}},{key:"cut",value:function(_n){return j(_n)}},{key:"isSupported",value:function(){var _n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],Bn=typeof _n=="string"?[_n]:_n,Er=!!document.queryCommandSupported;return Bn.forEach(function(Yr){Er=Er&&!!document.queryCommandSupported(Yr)}),Er}}]),Bt}(N()),Ue=ct},828:function(A){var b=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var z=Element.prototype;z.matches=z.matchesSelector||z.mozMatchesSelector||z.msMatchesSelector||z.oMatchesSelector||z.webkitMatchesSelector}function k(N,w){for(;N&&N.nodeType!==b;){if(typeof N.matches=="function"&&N.matches(w))return N;N=N.parentNode}}A.exports=k},438:function(A,b,z){var k=z(828);function N(C,f,S,P,j){var re=I.apply(this,arguments);return C.addEventListener(S,re,j),{destroy:function(){C.removeEventListener(S,re,j)}}}function w(C,f,S,P,j){return typeof C.addEventListener=="function"?N.apply(null,arguments):typeof S=="function"?N.bind(null,document).apply(null,arguments):(typeof C=="string"&&(C=document.querySelectorAll(C)),Array.prototype.map.call(C,function(re){return N(re,f,S,P,j)}))}function I(C,f,S,P){return function(j){j.delegateTarget=k(j.target,f),j.delegateTarget&&P.call(C,j)}}A.exports=w},879:function(A,b){b.node=function(z){return z!==void 0&&z instanceof HTMLElement&&z.nodeType===1},b.nodeList=function(z){var k=Object.prototype.toString.call(z);return z!==void 0&&(k==="[object NodeList]"||k==="[object HTMLCollection]")&&"length"in z&&(z.length===0||b.node(z[0]))},b.string=function(z){return typeof z=="string"||z instanceof String},b.fn=function(z){var k=Object.prototype.toString.call(z);return k==="[object Function]"}},370:function(A,b,z){var k=z(879),N=z(438);function w(S,P,j){if(!S&&!P&&!j)throw new Error("Missing required arguments");if(!k.string(P))throw new TypeError("Second argument must be a String");if(!k.fn(j))throw new TypeError("Third argument must be a Function");if(k.node(S))return I(S,P,j);if(k.nodeList(S))return C(S,P,j);if(k.string(S))return f(S,P,j);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function I(S,P,j){return S.addEventListener(P,j),{destroy:function(){S.removeEventListener(P,j)}}}function C(S,P,j){return Array.prototype.forEach.call(S,function(re){re.addEventListener(P,j)}),{destroy:function(){Array.prototype.forEach.call(S,function(re){re.removeEventListener(P,j)})}}}function f(S,P,j){return N(document.body,S,P,j)}A.exports=w},817:function(A){function b(z){var k;if(z.nodeName==="SELECT")z.focus(),k=z.value;else if(z.nodeName==="INPUT"||z.nodeName==="TEXTAREA"){var N=z.hasAttribute("readonly");N||z.setAttribute("readonly",""),z.select(),z.setSelectionRange(0,z.value.length),N||z.removeAttribute("readonly"),k=z.value}else{z.hasAttribute("contenteditable")&&z.focus();var w=window.getSelection(),I=document.createRange();I.selectNodeContents(z),w.removeAllRanges(),w.addRange(I),k=w.toString()}return k}A.exports=b},279:function(A){function b(){}b.prototype={on:function(z,k,N){var w=this.e||(this.e={});return(w[z]||(w[z]=[])).push({fn:k,ctx:N}),this},once:function(z,k,N){var w=this;function I(){w.off(z,I),k.apply(N,arguments)}return I._=k,this.on(z,I,N)},emit:function(z){var k=[].slice.call(arguments,1),N=((this.e||(this.e={}))[z]||[]).slice(),w=0,I=N.length;for(w;w=4&&C[3]!==1&&(f=", "+C[3]),"hwb("+C[0]+", "+C[1]+"%, "+C[2]+"%"+f+")"},N.to.keyword=function(C){return z[C.slice(0,3)]};function w(C,f,S){return Math.min(Math.max(f,C),S)}function I(C){var f=Math.round(C).toString(16).toUpperCase();return f.length<2?"0"+f:f}},6767:function(nt,V,m){const y=m(19818),A=m(80978),b=["keyword","gray","hex"],z={};for(const j of Object.keys(A))z[[...A[j].labels].sort().join("")]=j;const k={};function N(j,re){if(!(this instanceof N))return new N(j,re);if(re&&re in b&&(re=null),re&&!(re in A))throw new Error("Unknown model: "+re);let J,ie;if(j==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(j instanceof N)this.model=j.model,this.color=[...j.color],this.valpha=j.valpha;else if(typeof j=="string"){const de=y.get(j);if(de===null)throw new Error("Unable to parse color from string: "+j);this.model=de.model,ie=A[this.model].channels,this.color=de.value.slice(0,ie),this.valpha=typeof de.value[ie]=="number"?de.value[ie]:1}else if(j.length>0){this.model=re||"rgb",ie=A[this.model].channels;const de=Array.prototype.slice.call(j,0,ie);this.color=P(de,ie),this.valpha=typeof j[ie]=="number"?j[ie]:1}else if(typeof j=="number")this.model="rgb",this.color=[j>>16&255,j>>8&255,j&255],this.valpha=1;else{this.valpha=1;const de=Object.keys(j);"alpha"in j&&(de.splice(de.indexOf("alpha"),1),this.valpha=typeof j.alpha=="number"?j.alpha:0);const he=de.sort().join("");if(!(he in z))throw new Error("Unable to parse color from object: "+JSON.stringify(j));this.model=z[he];const{labels:fe}=A[this.model],ke=[];for(J=0;J(j%360+360)%360),saturationl:C("hsl",1,f(100)),lightness:C("hsl",2,f(100)),saturationv:C("hsv",1,f(100)),value:C("hsv",2,f(100)),chroma:C("hcg",1,f(100)),gray:C("hcg",2,f(100)),white:C("hwb",1,f(100)),wblack:C("hwb",2,f(100)),cyan:C("cmyk",0,f(100)),magenta:C("cmyk",1,f(100)),yellow:C("cmyk",2,f(100)),black:C("cmyk",3,f(100)),x:C("xyz",0,f(95.047)),y:C("xyz",1,f(100)),z:C("xyz",2,f(108.833)),l:C("lab",0,f(100)),a:C("lab",1),b:C("lab",2),keyword(j){return j!==void 0?new N(j):A[this.model].keyword(this.color)},hex(j){return j!==void 0?new N(j):y.to.hex(this.rgb().round().color)},hexa(j){if(j!==void 0)return new N(j);const re=this.rgb().round().color;let J=Math.round(this.valpha*255).toString(16).toUpperCase();return J.length===1&&(J="0"+J),y.to.hex(re)+J},rgbNumber(){const j=this.rgb().color;return(j[0]&255)<<16|(j[1]&255)<<8|j[2]&255},luminosity(){const j=this.rgb().color,re=[];for(const[J,ie]of j.entries()){const de=ie/255;re[J]=de<=.04045?de/12.92:u1((de+.055)/1.055,2.4)}return .2126*re[0]+.7152*re[1]+.0722*re[2]},contrast(j){const re=this.luminosity(),J=j.luminosity();return re>J?(re+.05)/(J+.05):(J+.05)/(re+.05)},level(j){const re=this.contrast(j);return re>=7?"AAA":re>=4.5?"AA":""},isDark(){const j=this.rgb().color;return(j[0]*2126+j[1]*7152+j[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const j=this.rgb();for(let re=0;re<3;re++)j.color[re]=255-j.color[re];return j},lighten(j){const re=this.hsl();return re.color[2]+=re.color[2]*j,re},darken(j){const re=this.hsl();return re.color[2]-=re.color[2]*j,re},saturate(j){const re=this.hsl();return re.color[1]+=re.color[1]*j,re},desaturate(j){const re=this.hsl();return re.color[1]-=re.color[1]*j,re},whiten(j){const re=this.hwb();return re.color[1]+=re.color[1]*j,re},blacken(j){const re=this.hwb();return re.color[2]+=re.color[2]*j,re},grayscale(){const j=this.rgb().color,re=j[0]*.3+j[1]*.59+j[2]*.11;return N.rgb(re,re,re)},fade(j){return this.alpha(this.valpha-this.valpha*j)},opaquer(j){return this.alpha(this.valpha+this.valpha*j)},rotate(j){const re=this.hsl();let J=re.color[0];return J=(J+j)%360,J=J<0?360+J:J,re.color[0]=J,re},mix(j,re){if(!j||!j.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof j);const J=j.rgb(),ie=this.rgb(),de=re===void 0?.5:re,he=2*de-1,fe=J.alpha()-ie.alpha(),ke=((he*fe===-1?he:(he+fe)/(1+he*fe))+1)/2,we=1-ke;return N.rgb(ke*J.red()+we*ie.red(),ke*J.green()+we*ie.green(),ke*J.blue()+we*ie.blue(),J.alpha()*de+ie.alpha()*(1-de))}};for(const j of Object.keys(A)){if(b.includes(j))continue;const{channels:re}=A[j];N.prototype[j]=function(...J){return this.model===j?new N(this):J.length>0?new N(J,j):new N([...S(A[this.model][j].raw(this.color)),this.valpha],j)},N[j]=function(...J){let ie=J[0];return typeof ie=="number"&&(ie=P(J,re)),new N(ie,j)}}function w(j,re){return Number(j.toFixed(re))}function I(j){return function(re){return w(re,j)}}function C(j,re,J){j=Array.isArray(j)?j:[j];for(const ie of j)(k[ie]||(k[ie]=[]))[re]=J;return j=j[0],function(ie){let de;return ie!==void 0?(J&&(ie=J(ie)),de=this[j](),de.color[re]=ie,de):(de=this[j]().color[re],J&&(de=J(de)),de)}}function f(j){return function(re){return Math.max(0,Math.min(j,re))}}function S(j){return Array.isArray(j)?j:[j]}function P(j,re){for(let J=0;J1&&(C-=1)),[C*360,f*100,re*100]},b.rgb.hwb=function(k){const N=k[0],w=k[1];let I=k[2];const C=b.rgb.hsl(k)[0],f=1/255*Math.min(N,Math.min(w,I));return I=1-1/255*Math.max(N,Math.max(w,I)),[C,f*100,I*100]},b.rgb.cmyk=function(k){const N=k[0]/255,w=k[1]/255,I=k[2]/255,C=Math.min(1-N,1-w,1-I),f=(1-N-C)/(1-C)||0,S=(1-w-C)/(1-C)||0,P=(1-I-C)/(1-C)||0;return[f*100,S*100,P*100,C*100]};function z(k,N){return u1(k[0]-N[0],2)+u1(k[1]-N[1],2)+u1(k[2]-N[2],2)}b.rgb.keyword=function(k){const N=A[k];if(N)return N;let w=1/0,I;for(const C of Object.keys(y)){const f=y[C],S=z(k,f);S.04045?u1((N+.055)/1.055,2.4):N/12.92,w=w>.04045?u1((w+.055)/1.055,2.4):w/12.92,I=I>.04045?u1((I+.055)/1.055,2.4):I/12.92;const C=N*.4124+w*.3576+I*.1805,f=N*.2126+w*.7152+I*.0722,S=N*.0193+w*.1192+I*.9505;return[C*100,f*100,S*100]},b.rgb.lab=function(k){const N=b.rgb.xyz(k);let w=N[0],I=N[1],C=N[2];w/=95.047,I/=100,C/=108.883,w=w>.008856?u1(w,1/3):7.787*w+16/116,I=I>.008856?u1(I,1/3):7.787*I+16/116,C=C>.008856?u1(C,1/3):7.787*C+16/116;const f=116*I-16,S=500*(w-I),P=200*(I-C);return[f,S,P]},b.hsl.rgb=function(k){const N=k[0]/360,w=k[1]/100,I=k[2]/100;let C,f,S;if(w===0)return S=I*255,[S,S,S];I<.5?C=I*(1+w):C=I+w-I*w;const P=2*I-C,j=[0,0,0];for(let re=0;re<3;re++)f=N+1/3*-(re-1),f<0&&f++,f>1&&f--,6*f<1?S=P+(C-P)*6*f:2*f<1?S=C:3*f<2?S=P+(C-P)*(2/3-f)*6:S=P,j[re]=S*255;return j},b.hsl.hsv=function(k){const N=k[0];let w=k[1]/100,I=k[2]/100,C=w;const f=Math.max(I,.01);I*=2,w*=I<=1?I:2-I,C*=f<=1?f:2-f;const S=(I+w)/2,P=I===0?2*C/(f+C):2*w/(I+w);return[N,P*100,S*100]},b.hsv.rgb=function(k){const N=k[0]/60,w=k[1]/100;let I=k[2]/100;const C=Math.floor(N)%6,f=N-Math.floor(N),S=255*I*(1-w),P=255*I*(1-w*f),j=255*I*(1-w*(1-f));switch(I*=255,C){case 0:return[I,j,S];case 1:return[P,I,S];case 2:return[S,I,j];case 3:return[S,P,I];case 4:return[j,S,I];case 5:return[I,S,P]}},b.hsv.hsl=function(k){const N=k[0],w=k[1]/100,I=k[2]/100,C=Math.max(I,.01);let f,S;S=(2-w)*I;const P=(2-w)*C;return f=w*C,f/=P<=1?P:2-P,f=f||0,S/=2,[N,f*100,S*100]},b.hwb.rgb=function(k){const N=k[0]/360;let w=k[1]/100,I=k[2]/100;const C=w+I;let f;C>1&&(w/=C,I/=C);const S=Math.floor(6*N),P=1-I;f=6*N-S,S&1&&(f=1-f);const j=w+f*(P-w);let re,J,ie;switch(S){default:case 6:case 0:re=P,J=j,ie=w;break;case 1:re=j,J=P,ie=w;break;case 2:re=w,J=P,ie=j;break;case 3:re=w,J=j,ie=P;break;case 4:re=j,J=w,ie=P;break;case 5:re=P,J=w,ie=j;break}return[re*255,J*255,ie*255]},b.cmyk.rgb=function(k){const N=k[0]/100,w=k[1]/100,I=k[2]/100,C=k[3]/100,f=1-Math.min(1,N*(1-C)+C),S=1-Math.min(1,w*(1-C)+C),P=1-Math.min(1,I*(1-C)+C);return[f*255,S*255,P*255]},b.xyz.rgb=function(k){const N=k[0]/100,w=k[1]/100,I=k[2]/100;let C,f,S;return C=N*3.2406+w*-1.5372+I*-.4986,f=N*-.9689+w*1.8758+I*.0415,S=N*.0557+w*-.204+I*1.057,C=C>.0031308?1.055*u1(C,1/2.4)-.055:C*12.92,f=f>.0031308?1.055*u1(f,1/2.4)-.055:f*12.92,S=S>.0031308?1.055*u1(S,1/2.4)-.055:S*12.92,C=Math.min(Math.max(0,C),1),f=Math.min(Math.max(0,f),1),S=Math.min(Math.max(0,S),1),[C*255,f*255,S*255]},b.xyz.lab=function(k){let N=k[0],w=k[1],I=k[2];N/=95.047,w/=100,I/=108.883,N=N>.008856?u1(N,1/3):7.787*N+16/116,w=w>.008856?u1(w,1/3):7.787*w+16/116,I=I>.008856?u1(I,1/3):7.787*I+16/116;const C=116*w-16,f=500*(N-w),S=200*(w-I);return[C,f,S]},b.lab.xyz=function(k){const N=k[0],w=k[1],I=k[2];let C,f,S;f=(N+16)/116,C=w/500+f,S=f-I/200;const P=u1(f,3),j=u1(C,3),re=u1(S,3);return f=P>.008856?P:(f-16/116)/7.787,C=j>.008856?j:(C-16/116)/7.787,S=re>.008856?re:(S-16/116)/7.787,C*=95.047,f*=100,S*=108.883,[C,f,S]},b.lab.lch=function(k){const N=k[0],w=k[1],I=k[2];let C;C=Math.atan2(I,w)*360/2/Math.PI,C<0&&(C+=360);const S=Math.sqrt(w*w+I*I);return[N,S,C]},b.lch.lab=function(k){const N=k[0],w=k[1],C=k[2]/360*2*Math.PI,f=w*Math.cos(C),S=w*Math.sin(C);return[N,f,S]},b.rgb.ansi16=function(k,N=null){const[w,I,C]=k;let f=N===null?b.rgb.hsv(k)[2]:N;if(f=Math.round(f/50),f===0)return 30;let S=30+(Math.round(C/255)<<2|Math.round(I/255)<<1|Math.round(w/255));return f===2&&(S+=60),S},b.hsv.ansi16=function(k){return b.rgb.ansi16(b.hsv.rgb(k),k[2])},b.rgb.ansi256=function(k){const N=k[0],w=k[1],I=k[2];return N===w&&w===I?N<8?16:N>248?231:Math.round((N-8)/247*24)+232:16+36*Math.round(N/255*5)+6*Math.round(w/255*5)+Math.round(I/255*5)},b.ansi16.rgb=function(k){let N=k%10;if(N===0||N===7)return k>50&&(N+=3.5),N=N/10.5*255,[N,N,N];const w=(~~(k>50)+1)*.5,I=(N&1)*w*255,C=(N>>1&1)*w*255,f=(N>>2&1)*w*255;return[I,C,f]},b.ansi256.rgb=function(k){if(k>=232){const f=(k-232)*10+8;return[f,f,f]}k-=16;let N;const w=Math.floor(k/36)/5*255,I=Math.floor((N=k%36)/6)/5*255,C=N%6/5*255;return[w,I,C]},b.rgb.hex=function(k){const w=(((Math.round(k[0])&255)<<16)+((Math.round(k[1])&255)<<8)+(Math.round(k[2])&255)).toString(16).toUpperCase();return"000000".substring(w.length)+w},b.hex.rgb=function(k){const N=k.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!N)return[0,0,0];let w=N[0];N[0].length===3&&(w=w.split("").map(P=>P+P).join(""));const I=parseInt(w,16),C=I>>16&255,f=I>>8&255,S=I&255;return[C,f,S]},b.rgb.hcg=function(k){const N=k[0]/255,w=k[1]/255,I=k[2]/255,C=Math.max(Math.max(N,w),I),f=Math.min(Math.min(N,w),I),S=C-f;let P,j;return S<1?P=f/(1-S):P=0,S<=0?j=0:C===N?j=(w-I)/S%6:C===w?j=2+(I-N)/S:j=4+(N-w)/S,j/=6,j%=1,[j*360,S*100,P*100]},b.hsl.hcg=function(k){const N=k[1]/100,w=k[2]/100,I=w<.5?2*N*w:2*N*(1-w);let C=0;return I<1&&(C=(w-.5*I)/(1-I)),[k[0],I*100,C*100]},b.hsv.hcg=function(k){const N=k[1]/100,w=k[2]/100,I=N*w;let C=0;return I<1&&(C=(w-I)/(1-I)),[k[0],I*100,C*100]},b.hcg.rgb=function(k){const N=k[0]/360,w=k[1]/100,I=k[2]/100;if(w===0)return[I*255,I*255,I*255];const C=[0,0,0],f=N%1*6,S=f%1,P=1-S;let j=0;switch(Math.floor(f)){case 0:C[0]=1,C[1]=S,C[2]=0;break;case 1:C[0]=P,C[1]=1,C[2]=0;break;case 2:C[0]=0,C[1]=1,C[2]=S;break;case 3:C[0]=0,C[1]=P,C[2]=1;break;case 4:C[0]=S,C[1]=0,C[2]=1;break;default:C[0]=1,C[1]=0,C[2]=P}return j=(1-w)*I,[(w*C[0]+j)*255,(w*C[1]+j)*255,(w*C[2]+j)*255]},b.hcg.hsv=function(k){const N=k[1]/100,w=k[2]/100,I=N+w*(1-N);let C=0;return I>0&&(C=N/I),[k[0],C*100,I*100]},b.hcg.hsl=function(k){const N=k[1]/100,I=k[2]/100*(1-N)+.5*N;let C=0;return I>0&&I<.5?C=N/(2*I):I>=.5&&I<1&&(C=N/(2*(1-I))),[k[0],C*100,I*100]},b.hcg.hwb=function(k){const N=k[1]/100,w=k[2]/100,I=N+w*(1-N);return[k[0],(I-N)*100,(1-I)*100]},b.hwb.hcg=function(k){const N=k[1]/100,I=1-k[2]/100,C=I-N;let f=0;return C<1&&(f=(I-C)/(1-C)),[k[0],C*100,f*100]},b.apple.rgb=function(k){return[k[0]/65535*255,k[1]/65535*255,k[2]/65535*255]},b.rgb.apple=function(k){return[k[0]/255*65535,k[1]/255*65535,k[2]/255*65535]},b.gray.rgb=function(k){return[k[0]/100*255,k[0]/100*255,k[0]/100*255]},b.gray.hsl=function(k){return[0,0,k[0]]},b.gray.hsv=b.gray.hsl,b.gray.hwb=function(k){return[0,100,k[0]]},b.gray.cmyk=function(k){return[0,0,0,k[0]]},b.gray.lab=function(k){return[k[0],0,0]},b.gray.hex=function(k){const N=Math.round(k[0]/100*255)&255,I=((N<<16)+(N<<8)+N).toString(16).toUpperCase();return"000000".substring(I.length)+I},b.rgb.gray=function(k){return[(k[0]+k[1]+k[2])/3/255*100]}},80978:function(nt,V,m){const y=m(12956),A=m(87774),b={},z=Object.keys(y);function k(w){const I=function(...C){const f=C[0];return f==null?f:(f.length>1&&(C=f),w(C))};return"conversion"in w&&(I.conversion=w.conversion),I}function N(w){const I=function(...C){const f=C[0];if(f==null)return f;f.length>1&&(C=f);const S=w(C);if(typeof S=="object")for(let P=S.length,j=0;j{b[w]={},Object.defineProperty(b[w],"channels",{value:y[w].channels}),Object.defineProperty(b[w],"labels",{value:y[w].labels});const I=A(w);Object.keys(I).forEach(f=>{const S=I[f];b[w][f]=N(S),b[w][f].raw=k(S)})}),nt.exports=b},87774:function(nt,V,m){const y=m(12956);function A(){const N={},w=Object.keys(y);for(let I=w.length,C=0;Cxe||Ie.push({node:Ce,dist:Pt})}for(;Ie.length&&!Ie.peek().node.children;){var ct=Ie.pop(),Ue=ct.node,bt=de(Ue,Ne,Ee),ht=de(Ue,ge,ye);if(ct.dist=Ne.minX&&we[0]<=Ne.maxX&&we[1]>=Ne.minY&&we[1]<=Ne.maxY}function f(we,Ne,Ee){for(var ge=Math.min(we[0],Ne[0]),ye=Math.min(we[1],Ne[1]),xe=Math.max(we[0],Ne[0]),be=Math.max(we[1],Ne[1]),Ie=Ee.search({minX:ge,minY:ye,maxX:xe,maxY:be}),me=0;me0!=S(we,Ne,ge)>0&&S(Ee,ge,we)>0!=S(Ee,ge,Ne)>0}function j(we){var Ne=we.p,Ee=we.next.p;return we.minX=Math.min(Ne[0],Ee[0]),we.minY=Math.min(Ne[1],Ee[1]),we.maxX=Math.max(Ne[0],Ee[0]),we.maxY=Math.max(Ne[1],Ee[1]),we}function re(we){for(var Ne=we[0],Ee=we[0],ge=we[0],ye=we[0],xe=0;xege[0]&&(ge=be),be[1]ye[1]&&(ye=be)}var Ie=[Ne,Ee,ge,ye],me=Ie.slice();for(xe=0;xe1?(ge=Ee[0],ye=Ee[1]):Ie>0&&(ge+=xe*Ie,ye+=be*Ie)}return xe=we[0]-ge,be=we[1]-ye,xe*xe+be*be}function he(we,Ne,Ee,ge,ye,xe,be,Ie){var me=Ee-we,We=ge-Ne,Ce=be-ye,Pt=Ie-xe,ct=we-ye,Ue=Ne-xe,bt=me*me+We*We,ht=me*Ce+We*Pt,Bt=Ce*Ce+Pt*Pt,mt=me*ct+We*Ue,_n=Ce*ct+Pt*Ue,Bn=bt*Bt-ht*ht,Er,Yr,oi,to,yo=Bn,vr=Bn;Bn===0?(Yr=0,yo=1,to=_n,vr=Bt):(Yr=ht*_n-Bt*mt,to=bt*_n-ht*mt,Yr<0?(Yr=0,to=_n,vr=Bt):Yr>yo&&(Yr=yo,to=_n+ht,vr=Bt)),to<0?(to=0,-mt<0?Yr=0:-mt>bt?Yr=yo:(Yr=-mt,yo=bt)):to>vr&&(to=vr,-mt+ht<0?Yr=0:-mt+ht>bt?Yr=yo:(Yr=-mt+ht,yo=bt)),Er=Yr===0?0:Yr/yo,oi=to===0?0:to/vr;var Po=(1-Er)*we+Er*Ee,ss=(1-Er)*Ne+Er*ge,ve=(1-oi)*ye+oi*be,_o=(1-oi)*xe+oi*Ie,ci=ve-Po,Bi=_o-ss;return ci*ci+Bi*Bi}function fe(we,Ne){return we[0]===Ne[0]?we[1]-Ne[1]:we[0]-Ne[0]}function ke(we){we.sort(fe);for(var Ne=[],Ee=0;Ee=2&&S(Ne[Ne.length-2],Ne[Ne.length-1],we[Ee])<=0;)Ne.pop();Ne.push(we[Ee])}for(var ge=[],ye=we.length-1;ye>=0;ye--){for(;ge.length>=2&&S(ge[ge.length-2],ge[ge.length-1],we[ye])<=0;)ge.pop();ge.push(we[ye])}return ge.pop(),Ne.pop(),Ne.concat(ge)}},81662:function(nt){(function(V,m){nt.exports=m()})(this,function(){"use strict";function V(J,ie,de,he,fe){(function ke(we,Ne,Ee,ge,ye){for(;ge>Ee;){if(ge-Ee>600){var xe=ge-Ee+1,be=Ne-Ee+1,Ie=Math.log(xe),me=.5*Math.exp(2*Ie/3),We=.5*Math.sqrt(Ie*me*(xe-me)/xe)*(be-xe/2<0?-1:1),Ce=Math.max(Ee,Math.floor(Ne-be*me/xe+We)),Pt=Math.min(ge,Math.floor(Ne+(xe-be)*me/xe+We));ke(we,Ne,Ce,Pt,ye)}var ct=we[Ne],Ue=Ee,bt=ge;for(m(we,Ee,Ne),ye(we[ge],ct)>0&&m(we,Ee,ge);Ue0;)bt--}ye(we[Ee],ct)===0?m(we,Ee,bt):m(we,++bt,ge),bt<=Ne&&(Ee=bt+1),Ne<=bt&&(ge=bt-1)}})(J,ie,de||0,he||J.length-1,fe||y)}function m(J,ie,de){var he=J[ie];J[ie]=J[de],J[de]=he}function y(J,ie){return Jie?1:0}var A=function(J){J===void 0&&(J=9),this._maxEntries=Math.max(4,J),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function b(J,ie,de){if(!de)return ie.indexOf(J);for(var he=0;he=J.minX&&ie.maxY>=J.minY}function j(J){return{children:J,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function re(J,ie,de,he,fe){for(var ke=[ie,de];ke.length;)if(!((de=ke.pop())-(ie=ke.pop())<=he)){var we=ie+Math.ceil((de-ie)/he/2)*he;V(J,we,ie,de,fe),ke.push(ie,we,we,de)}}return A.prototype.all=function(){return this._all(this.data,[])},A.prototype.search=function(J){var ie=this.data,de=[];if(!P(J,ie))return de;for(var he=this.toBBox,fe=[];ie;){for(var ke=0;ke=0&&fe[ie].children.length>this._maxEntries;)this._split(fe,ie),ie--;this._adjustParentBBoxes(he,fe,ie)},A.prototype._split=function(J,ie){var de=J[ie],he=de.children.length,fe=this._minEntries;this._chooseSplitAxis(de,fe,he);var ke=this._chooseSplitIndex(de,fe,he),we=j(de.children.splice(ke,de.children.length-ke));we.height=de.height,we.leaf=de.leaf,z(de,this.toBBox),z(we,this.toBBox),ie?J[ie-1].children.push(we):this._splitRoot(de,we)},A.prototype._splitRoot=function(J,ie){this.data=j([J,ie]),this.data.height=J.height+1,this.data.leaf=!1,z(this.data,this.toBBox)},A.prototype._chooseSplitIndex=function(J,ie,de){for(var he,fe,ke,we,Ne,Ee,ge,ye=1/0,xe=1/0,be=ie;be<=de-ie;be++){var Ie=k(J,0,be,this.toBBox),me=k(J,be,de,this.toBBox),We=(fe=Ie,ke=me,we=void 0,Ne=void 0,Ee=void 0,ge=void 0,we=Math.max(fe.minX,ke.minX),Ne=Math.max(fe.minY,ke.minY),Ee=Math.min(fe.maxX,ke.maxX),ge=Math.min(fe.maxY,ke.maxY),Math.max(0,Ee-we)*Math.max(0,ge-Ne)),Ce=C(Ie)+C(me);We=ie;ye--){var xe=J.children[ye];N(we,J.leaf?fe(xe):xe),Ne+=f(we)}return Ne},A.prototype._adjustParentBBoxes=function(J,ie,de){for(var he=de;he>=0;he--)N(ie[he],J)},A.prototype._condense=function(J){for(var ie=J.length-1,de=void 0;ie>=0;ie--)J[ie].children.length===0?ie>0?(de=J[ie-1].children).splice(de.indexOf(J[ie]),1):this.clear():z(J[ie],this.toBBox)},A})},54098:function(nt,V){var m=typeof self!="undefined"?self:this,y=function(){function b(){this.fetch=!1,this.DOMException=m.DOMException}return b.prototype=m,new b}();(function(b){var z=function(k){var N={searchParams:"URLSearchParams"in b,iterable:"Symbol"in b&&"iterator"in Symbol,blob:"FileReader"in b&&"Blob"in b&&function(){try{return new Blob,!0}catch(me){return!1}}(),formData:"FormData"in b,arrayBuffer:"ArrayBuffer"in b};function w(me){return me&&DataView.prototype.isPrototypeOf(me)}if(N.arrayBuffer)var I=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],C=ArrayBuffer.isView||function(me){return me&&I.indexOf(Object.prototype.toString.call(me))>-1};function f(me){if(typeof me!="string"&&(me=String(me)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(me))throw new TypeError("Invalid character in header field name");return me.toLowerCase()}function S(me){return typeof me!="string"&&(me=String(me)),me}function P(me){var We={next:function(){var Ce=me.shift();return{done:Ce===void 0,value:Ce}}};return N.iterable&&(We[Symbol.iterator]=function(){return We}),We}function j(me){this.map={},me instanceof j?me.forEach(function(We,Ce){this.append(Ce,We)},this):Array.isArray(me)?me.forEach(function(We){this.append(We[0],We[1])},this):me&&Object.getOwnPropertyNames(me).forEach(function(We){this.append(We,me[We])},this)}j.prototype.append=function(me,We){me=f(me),We=S(We);var Ce=this.map[me];this.map[me]=Ce?Ce+", "+We:We},j.prototype.delete=function(me){delete this.map[f(me)]},j.prototype.get=function(me){return me=f(me),this.has(me)?this.map[me]:null},j.prototype.has=function(me){return this.map.hasOwnProperty(f(me))},j.prototype.set=function(me,We){this.map[f(me)]=S(We)},j.prototype.forEach=function(me,We){for(var Ce in this.map)this.map.hasOwnProperty(Ce)&&me.call(We,this.map[Ce],Ce,this)},j.prototype.keys=function(){var me=[];return this.forEach(function(We,Ce){me.push(Ce)}),P(me)},j.prototype.values=function(){var me=[];return this.forEach(function(We){me.push(We)}),P(me)},j.prototype.entries=function(){var me=[];return this.forEach(function(We,Ce){me.push([Ce,We])}),P(me)},N.iterable&&(j.prototype[Symbol.iterator]=j.prototype.entries);function re(me){if(me.bodyUsed)return Promise.reject(new TypeError("Already read"));me.bodyUsed=!0}function J(me){return new Promise(function(We,Ce){me.onload=function(){We(me.result)},me.onerror=function(){Ce(me.error)}})}function ie(me){var We=new FileReader,Ce=J(We);return We.readAsArrayBuffer(me),Ce}function de(me){var We=new FileReader,Ce=J(We);return We.readAsText(me),Ce}function he(me){for(var We=new Uint8Array(me),Ce=new Array(We.length),Pt=0;Pt-1?We:me}function Ee(me,We){We=We||{};var Ce=We.body;if(me instanceof Ee){if(me.bodyUsed)throw new TypeError("Already read");this.url=me.url,this.credentials=me.credentials,We.headers||(this.headers=new j(me.headers)),this.method=me.method,this.mode=me.mode,this.signal=me.signal,!Ce&&me._bodyInit!=null&&(Ce=me._bodyInit,me.bodyUsed=!0)}else this.url=String(me);if(this.credentials=We.credentials||this.credentials||"same-origin",(We.headers||!this.headers)&&(this.headers=new j(We.headers)),this.method=Ne(We.method||this.method||"GET"),this.mode=We.mode||this.mode||null,this.signal=We.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&Ce)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(Ce)}Ee.prototype.clone=function(){return new Ee(this,{body:this._bodyInit})};function ge(me){var We=new FormData;return me.trim().split("&").forEach(function(Ce){if(Ce){var Pt=Ce.split("="),ct=Pt.shift().replace(/\+/g," "),Ue=Pt.join("=").replace(/\+/g," ");We.append(decodeURIComponent(ct),decodeURIComponent(Ue))}}),We}function ye(me){var We=new j,Ce=me.replace(/\r?\n[\t ]+/g," ");return Ce.split(/\r?\n/).forEach(function(Pt){var ct=Pt.split(":"),Ue=ct.shift().trim();if(Ue){var bt=ct.join(":").trim();We.append(Ue,bt)}}),We}ke.call(Ee.prototype);function xe(me,We){We||(We={}),this.type="default",this.status=We.status===void 0?200:We.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in We?We.statusText:"OK",this.headers=new j(We.headers),this.url=We.url||"",this._initBody(me)}ke.call(xe.prototype),xe.prototype.clone=function(){return new xe(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new j(this.headers),url:this.url})},xe.error=function(){var me=new xe(null,{status:0,statusText:""});return me.type="error",me};var be=[301,302,303,307,308];xe.redirect=function(me,We){if(be.indexOf(We)===-1)throw new RangeError("Invalid status code");return new xe(null,{status:We,headers:{location:me}})},k.DOMException=b.DOMException;try{new k.DOMException}catch(me){k.DOMException=function(We,Ce){this.message=We,this.name=Ce;var Pt=Error(We);this.stack=Pt.stack},k.DOMException.prototype=Object.create(Error.prototype),k.DOMException.prototype.constructor=k.DOMException}function Ie(me,We){return new Promise(function(Ce,Pt){var ct=new Ee(me,We);if(ct.signal&&ct.signal.aborted)return Pt(new k.DOMException("Aborted","AbortError"));var Ue=new XMLHttpRequest;function bt(){Ue.abort()}Ue.onload=function(){var ht={status:Ue.status,statusText:Ue.statusText,headers:ye(Ue.getAllResponseHeaders()||"")};ht.url="responseURL"in Ue?Ue.responseURL:ht.headers.get("X-Request-URL");var Bt="response"in Ue?Ue.response:Ue.responseText;Ce(new xe(Bt,ht))},Ue.onerror=function(){Pt(new TypeError("Network request failed"))},Ue.ontimeout=function(){Pt(new TypeError("Network request failed"))},Ue.onabort=function(){Pt(new k.DOMException("Aborted","AbortError"))},Ue.open(ct.method,ct.url,!0),ct.credentials==="include"?Ue.withCredentials=!0:ct.credentials==="omit"&&(Ue.withCredentials=!1),"responseType"in Ue&&N.blob&&(Ue.responseType="blob"),ct.headers.forEach(function(ht,Bt){Ue.setRequestHeader(Bt,ht)}),ct.signal&&(ct.signal.addEventListener("abort",bt),Ue.onreadystatechange=function(){Ue.readyState===4&&ct.signal.removeEventListener("abort",bt)}),Ue.send(typeof ct._bodyInit=="undefined"?null:ct._bodyInit)})}return Ie.polyfill=!0,b.fetch||(b.fetch=Ie,b.Headers=j,b.Request=Ee,b.Response=xe),k.Headers=j,k.Request=Ee,k.Response=xe,k.fetch=Ie,Object.defineProperty(k,"__esModule",{value:!0}),k}({})})(y),y.fetch.ponyfill=!0,delete y.fetch.polyfill;var A=y;V=A.fetch,V.default=A.fetch,V.fetch=A.fetch,V.Headers=A.Headers,V.Request=A.Request,V.Response=A.Response,nt.exports=V},61272:function(nt,V,m){"use strict";m.d(V,{j2:function(){return y},b4:function(){return w},YF:function(){return A},We:function(){return I},TS:function(){return ke},VR:function(){return Ne},G9:function(){return ie},ly:function(){return de},sd:function(){return J}});function y(Ee,ge){return Eege?1:Ee>=ge?0:NaN}function A(Ee){return Ee.length===1&&(Ee=b(Ee)),{left:function(ge,ye,xe,be){for(xe==null&&(xe=0),be==null&&(be=ge.length);xe>>1;Ee(ge[Ie],ye)<0?xe=Ie+1:be=Ie}return xe},right:function(ge,ye,xe,be){for(xe==null&&(xe=0),be==null&&(be=ge.length);xe>>1;Ee(ge[Ie],ye)>0?be=Ie:xe=Ie+1}return xe}}}function b(Ee){return function(ge,ye){return y(Ee(ge),ye)}}var z=A(y),k=z.right,N=z.left,w=k;function I(Ee,ge){var ye=Ee.length,xe=-1,be,Ie,me;if(ge==null){for(;++xe=be)for(Ie=me=be;++xebe&&(Ie=be),me=be)for(Ie=me=be;++xebe&&(Ie=be),me0)return[Ee];if((xe=ge0)for(Ee=Math.ceil(Ee/We),ge=Math.floor(ge/We),me=new Array(Ie=Math.ceil(ge-Ee+1));++be=0?(Ie>=P?10:Ie>=j?5:Ie>=re?2:1)*Math.pow(10,be):-Math.pow(10,-be)/(Ie>=P?10:Ie>=j?5:Ie>=re?2:1)}function de(Ee,ge,ye){var xe=Math.abs(ge-Ee)/Math.max(0,ye),be=Math.pow(10,Math.floor(Math.log(xe)/Math.LN10)),Ie=xe/be;return Ie>=P?be*=10:Ie>=j?be*=5:Ie>=re&&(be*=2),geUe;)bt.pop(),--ht;var Bt=new Array(ht+1),mt;for(Ie=0;Ie<=ht;++Ie)mt=Bt[Ie]=[],mt.x0=Ie>0?bt[Ie-1]:ct,mt.x1=Ie=0;)for(me=Ee[ge],ye=me.length;--ye>=0;)Ie[--be]=me[ye];return Ie}function we(Ee){return Ee===null?NaN:+Ee}function Ne(Ee,ge,ye){if(ye==null&&(ye=we),!!(xe=Ee.length)){if((ge=+ge)<=0||xe<2)return+ye(Ee[0],0,Ee);if(ge>=1)return+ye(Ee[xe-1],xe-1,Ee);var xe,be=(xe-1)*ge,Ie=Math.floor(be),me=+ye(Ee[Ie],Ie,Ee),We=+ye(Ee[Ie+1],Ie+1,Ee);return me+(We-me)*(be-Ie)}}},27484:function(nt){(function(V,m){nt.exports=m()})(this,function(){"use strict";var V=1e3,m=6e4,y=36e5,A="millisecond",b="second",z="minute",k="hour",N="day",w="week",I="month",C="quarter",f="year",S="date",P="Invalid Date",j=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,re=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,J={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(be){var Ie=["th","st","nd","rd"],me=be%100;return"["+be+(Ie[(me-20)%10]||Ie[me]||Ie[0])+"]"}},ie=function(be,Ie,me){var We=String(be);return!We||We.length>=Ie?be:""+Array(Ie+1-We.length).join(me)+be},de={s:ie,z:function(be){var Ie=-be.utcOffset(),me=Math.abs(Ie),We=Math.floor(me/60),Ce=me%60;return(Ie<=0?"+":"-")+ie(We,2,"0")+":"+ie(Ce,2,"0")},m:function be(Ie,me){if(Ie.date()1)return be(ct[0])}else{var Ue=Ie.name;fe[Ue]=Ie,Ce=Ue}return!We&&Ce&&(he=Ce),Ce||!We&&he},Ee=function(be,Ie){if(we(be))return be.clone();var me=typeof Ie=="object"?Ie:{};return me.date=be,me.args=arguments,new ye(me)},ge=de;ge.l=Ne,ge.i=we,ge.w=function(be,Ie){return Ee(be,{locale:Ie.$L,utc:Ie.$u,x:Ie.$x,$offset:Ie.$offset})};var ye=function(){function be(me){this.$L=Ne(me.locale,null,!0),this.parse(me),this.$x=this.$x||me.x||{},this[ke]=!0}var Ie=be.prototype;return Ie.parse=function(me){this.$d=function(We){var Ce=We.date,Pt=We.utc;if(Ce===null)return new Date(NaN);if(ge.u(Ce))return new Date;if(Ce instanceof Date)return new Date(Ce);if(typeof Ce=="string"&&!/Z$/i.test(Ce)){var ct=Ce.match(j);if(ct){var Ue=ct[2]-1||0,bt=(ct[7]||"0").substring(0,3);return Pt?new Date(Date.UTC(ct[1],Ue,ct[3]||1,ct[4]||0,ct[5]||0,ct[6]||0,bt)):new Date(ct[1],Ue,ct[3]||1,ct[4]||0,ct[5]||0,ct[6]||0,bt)}}return new Date(Ce)}(me),this.init()},Ie.init=function(){var me=this.$d;this.$y=me.getFullYear(),this.$M=me.getMonth(),this.$D=me.getDate(),this.$W=me.getDay(),this.$H=me.getHours(),this.$m=me.getMinutes(),this.$s=me.getSeconds(),this.$ms=me.getMilliseconds()},Ie.$utils=function(){return ge},Ie.isValid=function(){return this.$d.toString()!==P},Ie.isSame=function(me,We){var Ce=Ee(me);return this.startOf(We)<=Ce&&Ce<=this.endOf(We)},Ie.isAfter=function(me,We){return Ee(me)0&&typeof P[0]!="number")}function S(P,j,re){var J,ie;if(typeof P!=typeof j||C(P)||C(j)||P.prototype!==j.prototype||A(P)!==A(j))return!1;var de=z(P),he=z(j);if(de!==he)return!1;if(de||he)return P.source===j.source&&k(P)===k(j);if(N(P)&&N(j))return w.call(P)===w.call(j);var fe=f(P),ke=f(j);if(fe!==ke)return!1;if(fe||ke){if(P.length!==j.length)return!1;for(J=0;J=0;J--)if(we[J]!=Ne[J])return!1;for(J=we.length-1;J>=0;J--)if(ie=we[J],!I(P[ie],j[ie],re))return!1;return!0}nt.exports=I},12296:function(nt,V,m){"use strict";var y=m(31044)(),A=m(40210),b=y&&A("%Object.defineProperty%",!0);if(b)try{b({},"a",{value:1})}catch(w){b=!1}var z=A("%SyntaxError%"),k=A("%TypeError%"),N=m(25275);nt.exports=function(I,C,f){if(!I||typeof I!="object"&&typeof I!="function")throw new k("`obj` must be an object or a function`");if(typeof C!="string"&&typeof C!="symbol")throw new k("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new k("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new k("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new k("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new k("`loose`, if provided, must be a boolean");var S=arguments.length>3?arguments[3]:null,P=arguments.length>4?arguments[4]:null,j=arguments.length>5?arguments[5]:null,re=arguments.length>6?arguments[6]:!1,J=!!N&&N(I,C);if(b)b(I,C,{configurable:j===null&&J?J.configurable:!j,enumerable:S===null&&J?J.enumerable:!S,value:f,writable:P===null&&J?J.writable:!P});else if(re||!S&&!P&&!j)I[C]=f;else throw new z("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}},4289:function(nt,V,m){"use strict";var y=m(82215),A=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",b=Object.prototype.toString,z=Array.prototype.concat,k=m(12296),N=function(f){return typeof f=="function"&&b.call(f)==="[object Function]"},w=m(31044)(),I=function(f,S,P,j){if(S in f){if(j===!0){if(f[S]===P)return}else if(!N(j)||!j())return}w?k(f,S,P,!0):k(f,S,P)},C=function(f,S){var P=arguments.length>2?arguments[2]:{},j=y(S);A&&(j=z.call(j,Object.getOwnPropertySymbols(S)));for(var re=0;re=this.minPts&&(y=this._mergeArrays(y,z))}this._assigned[b]!==1&&this._addToCluster(b,m)}},V.prototype._addToCluster=function(m,y){this.clusters[y].push(m),this._assigned[m]=1},V.prototype._regionQuery=function(m){for(var y=[],A=0;A0){for(var I=0;I=0);return y},V.prototype.assign=function(){for(var m=!1,y=this.dataset.length,A,b=0;b=this.minPts)return k}},A.prototype._regionQuery=function(b,z){z=z||this.epsilon;for(var k=[],N=0,w=this.dataset.length;Nz&&(A=b):y80*ct){mt=Bn=Ce[0],_n=Er=Ce[1];for(var yo=ct;yoBn&&(Bn=Yr),oi>Er&&(Er=oi);to=Math.max(Bn-mt,Er-_n),to=to!==0?32767/to:0}return A(ht,Bt,ct,mt,_n,to,0),Bt}function m(Ce,Pt,ct,Ue,bt){var ht,Bt;if(bt===We(Ce,Pt,ct,Ue)>0)for(ht=Pt;ht=Pt;ht-=Ue)Bt=be(ht,Ce[ht],Ce[ht+1],Bt);return Bt&&fe(Bt,Bt.next)&&(Ie(Bt),Bt=Bt.next),Bt}function y(Ce,Pt){if(!Ce)return Ce;Pt||(Pt=Ce);var ct=Ce,Ue;do if(Ue=!1,!ct.steiner&&(fe(ct,ct.next)||he(ct.prev,ct,ct.next)===0)){if(Ie(ct),ct=Pt=ct.prev,ct===ct.next)break;Ue=!0}else ct=ct.next;while(Ue||ct!==Pt);return Pt}function A(Ce,Pt,ct,Ue,bt,ht,Bt){if(Ce){!Bt&&ht&&P(Ce,Ue,bt,ht);for(var mt=Ce,_n,Bn;Ce.prev!==Ce.next;){if(_n=Ce.prev,Bn=Ce.next,ht?z(Ce,Ue,bt,ht):b(Ce)){Pt.push(_n.i/ct|0),Pt.push(Ce.i/ct|0),Pt.push(Bn.i/ct|0),Ie(Ce),Ce=Bn.next,mt=Bn.next;continue}if(Ce=Bn,Ce===mt){Bt?Bt===1?(Ce=k(y(Ce),Pt,ct),A(Ce,Pt,ct,Ue,bt,ht,2)):Bt===2&&N(Ce,Pt,ct,Ue,bt,ht):A(y(Ce),Pt,ct,Ue,bt,ht,1);break}}}}function b(Ce){var Pt=Ce.prev,ct=Ce,Ue=Ce.next;if(he(Pt,ct,Ue)>=0)return!1;for(var bt=Pt.x,ht=ct.x,Bt=Ue.x,mt=Pt.y,_n=ct.y,Bn=Ue.y,Er=btht?bt>Bt?bt:Bt:ht>Bt?ht:Bt,to=mt>_n?mt>Bn?mt:Bn:_n>Bn?_n:Bn,yo=Ue.next;yo!==Pt;){if(yo.x>=Er&&yo.x<=oi&&yo.y>=Yr&&yo.y<=to&&ie(bt,mt,ht,_n,Bt,Bn,yo.x,yo.y)&&he(yo.prev,yo,yo.next)>=0)return!1;yo=yo.next}return!0}function z(Ce,Pt,ct,Ue){var bt=Ce.prev,ht=Ce,Bt=Ce.next;if(he(bt,ht,Bt)>=0)return!1;for(var mt=bt.x,_n=ht.x,Bn=Bt.x,Er=bt.y,Yr=ht.y,oi=Bt.y,to=mt<_n?mt_n?mt>Bn?mt:Bn:_n>Bn?_n:Bn,Po=Er>Yr?Er>oi?Er:oi:Yr>oi?Yr:oi,ss=re(to,yo,Pt,ct,Ue),ve=re(vr,Po,Pt,ct,Ue),_o=Ce.prevZ,ci=Ce.nextZ;_o&&_o.z>=ss&&ci&&ci.z<=ve;){if(_o.x>=to&&_o.x<=vr&&_o.y>=yo&&_o.y<=Po&&_o!==bt&&_o!==Bt&&ie(mt,Er,_n,Yr,Bn,oi,_o.x,_o.y)&&he(_o.prev,_o,_o.next)>=0||(_o=_o.prevZ,ci.x>=to&&ci.x<=vr&&ci.y>=yo&&ci.y<=Po&&ci!==bt&&ci!==Bt&&ie(mt,Er,_n,Yr,Bn,oi,ci.x,ci.y)&&he(ci.prev,ci,ci.next)>=0))return!1;ci=ci.nextZ}for(;_o&&_o.z>=ss;){if(_o.x>=to&&_o.x<=vr&&_o.y>=yo&&_o.y<=Po&&_o!==bt&&_o!==Bt&&ie(mt,Er,_n,Yr,Bn,oi,_o.x,_o.y)&&he(_o.prev,_o,_o.next)>=0)return!1;_o=_o.prevZ}for(;ci&&ci.z<=ve;){if(ci.x>=to&&ci.x<=vr&&ci.y>=yo&&ci.y<=Po&&ci!==bt&&ci!==Bt&&ie(mt,Er,_n,Yr,Bn,oi,ci.x,ci.y)&&he(ci.prev,ci,ci.next)>=0)return!1;ci=ci.nextZ}return!0}function k(Ce,Pt,ct){var Ue=Ce;do{var bt=Ue.prev,ht=Ue.next.next;!fe(bt,ht)&&ke(bt,Ue,Ue.next,ht)&&ge(bt,ht)&&ge(ht,bt)&&(Pt.push(bt.i/ct|0),Pt.push(Ue.i/ct|0),Pt.push(ht.i/ct|0),Ie(Ue),Ie(Ue.next),Ue=Ce=ht),Ue=Ue.next}while(Ue!==Ce);return y(Ue)}function N(Ce,Pt,ct,Ue,bt,ht){var Bt=Ce;do{for(var mt=Bt.next.next;mt!==Bt.prev;){if(Bt.i!==mt.i&&de(Bt,mt)){var _n=xe(Bt,mt);Bt=y(Bt,Bt.next),_n=y(_n,_n.next),A(Bt,Pt,ct,Ue,bt,ht,0),A(_n,Pt,ct,Ue,bt,ht,0);return}mt=mt.next}Bt=Bt.next}while(Bt!==Ce)}function w(Ce,Pt,ct,Ue){var bt=[],ht,Bt,mt,_n,Bn;for(ht=0,Bt=Pt.length;ht=ct.next.y&&ct.next.y!==ct.y){var mt=ct.x+(bt-ct.y)*(ct.next.x-ct.x)/(ct.next.y-ct.y);if(mt<=Ue&&mt>ht&&(ht=mt,Bt=ct.x=ct.x&&ct.x>=Bn&&Ue!==ct.x&&ie(btBt.x||ct.x===Bt.x&&S(Bt,ct)))&&(Bt=ct,Yr=oi)),ct=ct.next;while(ct!==_n);return Bt}function S(Ce,Pt){return he(Ce.prev,Ce,Pt.prev)<0&&he(Pt.next,Ce,Ce.next)<0}function P(Ce,Pt,ct,Ue){var bt=Ce;do bt.z===0&&(bt.z=re(bt.x,bt.y,Pt,ct,Ue)),bt.prevZ=bt.prev,bt.nextZ=bt.next,bt=bt.next;while(bt!==Ce);bt.prevZ.nextZ=null,bt.prevZ=null,j(bt)}function j(Ce){var Pt,ct,Ue,bt,ht,Bt,mt,_n,Bn=1;do{for(ct=Ce,Ce=null,ht=null,Bt=0;ct;){for(Bt++,Ue=ct,mt=0,Pt=0;Pt0||_n>0&&Ue;)mt!==0&&(_n===0||!Ue||ct.z<=Ue.z)?(bt=ct,ct=ct.nextZ,mt--):(bt=Ue,Ue=Ue.nextZ,_n--),ht?ht.nextZ=bt:Ce=bt,bt.prevZ=ht,ht=bt;ct=Ue}ht.nextZ=null,Bn*=2}while(Bt>1);return Ce}function re(Ce,Pt,ct,Ue,bt){return Ce=(Ce-ct)*bt|0,Pt=(Pt-Ue)*bt|0,Ce=(Ce|Ce<<8)&16711935,Ce=(Ce|Ce<<4)&252645135,Ce=(Ce|Ce<<2)&858993459,Ce=(Ce|Ce<<1)&1431655765,Pt=(Pt|Pt<<8)&16711935,Pt=(Pt|Pt<<4)&252645135,Pt=(Pt|Pt<<2)&858993459,Pt=(Pt|Pt<<1)&1431655765,Ce|Pt<<1}function J(Ce){var Pt=Ce,ct=Ce;do(Pt.x=(Ce-Bt)*(ht-mt)&&(Ce-Bt)*(Ue-mt)>=(ct-Bt)*(Pt-mt)&&(ct-Bt)*(ht-mt)>=(bt-Bt)*(Ue-mt)}function de(Ce,Pt){return Ce.next.i!==Pt.i&&Ce.prev.i!==Pt.i&&!Ee(Ce,Pt)&&(ge(Ce,Pt)&&ge(Pt,Ce)&&ye(Ce,Pt)&&(he(Ce.prev,Ce,Pt.prev)||he(Ce,Pt.prev,Pt))||fe(Ce,Pt)&&he(Ce.prev,Ce,Ce.next)>0&&he(Pt.prev,Pt,Pt.next)>0)}function he(Ce,Pt,ct){return(Pt.y-Ce.y)*(ct.x-Pt.x)-(Pt.x-Ce.x)*(ct.y-Pt.y)}function fe(Ce,Pt){return Ce.x===Pt.x&&Ce.y===Pt.y}function ke(Ce,Pt,ct,Ue){var bt=Ne(he(Ce,Pt,ct)),ht=Ne(he(Ce,Pt,Ue)),Bt=Ne(he(ct,Ue,Ce)),mt=Ne(he(ct,Ue,Pt));return!!(bt!==ht&&Bt!==mt||bt===0&&we(Ce,ct,Pt)||ht===0&&we(Ce,Ue,Pt)||Bt===0&&we(ct,Ce,Ue)||mt===0&&we(ct,Pt,Ue))}function we(Ce,Pt,ct){return Pt.x<=Math.max(Ce.x,ct.x)&&Pt.x>=Math.min(Ce.x,ct.x)&&Pt.y<=Math.max(Ce.y,ct.y)&&Pt.y>=Math.min(Ce.y,ct.y)}function Ne(Ce){return Ce>0?1:Ce<0?-1:0}function Ee(Ce,Pt){var ct=Ce;do{if(ct.i!==Ce.i&&ct.next.i!==Ce.i&&ct.i!==Pt.i&&ct.next.i!==Pt.i&&ke(ct,ct.next,Ce,Pt))return!0;ct=ct.next}while(ct!==Ce);return!1}function ge(Ce,Pt){return he(Ce.prev,Ce,Ce.next)<0?he(Ce,Pt,Ce.next)>=0&&he(Ce,Ce.prev,Pt)>=0:he(Ce,Pt,Ce.prev)<0||he(Ce,Ce.next,Pt)<0}function ye(Ce,Pt){var ct=Ce,Ue=!1,bt=(Ce.x+Pt.x)/2,ht=(Ce.y+Pt.y)/2;do ct.y>ht!=ct.next.y>ht&&ct.next.y!==ct.y&&bt<(ct.next.x-ct.x)*(ht-ct.y)/(ct.next.y-ct.y)+ct.x&&(Ue=!Ue),ct=ct.next;while(ct!==Ce);return Ue}function xe(Ce,Pt){var ct=new me(Ce.i,Ce.x,Ce.y),Ue=new me(Pt.i,Pt.x,Pt.y),bt=Ce.next,ht=Pt.prev;return Ce.next=Pt,Pt.prev=Ce,ct.next=bt,bt.prev=ct,Ue.next=ct,ct.prev=Ue,ht.next=Ue,Ue.prev=ht,Ue}function be(Ce,Pt,ct,Ue){var bt=new me(Ce,Pt,ct);return Ue?(bt.next=Ue.next,bt.prev=Ue,Ue.next.prev=bt,Ue.next=bt):(bt.prev=bt,bt.next=bt),bt}function Ie(Ce){Ce.next.prev=Ce.prev,Ce.prev.next=Ce.next,Ce.prevZ&&(Ce.prevZ.nextZ=Ce.nextZ),Ce.nextZ&&(Ce.nextZ.prevZ=Ce.prevZ)}function me(Ce,Pt,ct){this.i=Ce,this.x=Pt,this.y=ct,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}V.deviation=function(Ce,Pt,ct,Ue){var bt=Pt&&Pt.length,ht=bt?Pt[0]*ct:Ce.length,Bt=Math.abs(We(Ce,0,ht,ct));if(bt)for(var mt=0,_n=Pt.length;mt<_n;mt++){var Bn=Pt[mt]*ct,Er=mt<_n-1?Pt[mt+1]*ct:Ce.length;Bt-=Math.abs(We(Ce,Bn,Er,ct))}var Yr=0;for(mt=0;mt0&&(Ue+=Ce[bt-1].length,ct.holes.push(Ue))}return ct}},67709:function(nt){function V(y){var A=y.target||y.srcElement;A.__resizeRAF__&&cancelAnimationFrame(A.__resizeRAF__),A.__resizeRAF__=requestAnimationFrame(function(){var b=A.__resizeTrigger__,z=b&&b.__resizeListeners__;z&&z.forEach(function(k){k.call(b,y)})})}var m=function(A,b){var z=this,k=z.document,N,w=k.attachEvent;typeof navigator!="undefined"&&(N=navigator.userAgent.match(/Trident/)||navigator.userAgent.match(/Edge/));function I(){this.contentDocument.defaultView.__resizeTrigger__=this.__resizeElement__,this.contentDocument.defaultView.addEventListener("resize",V)}if(!A.__resizeListeners__)if(A.__resizeListeners__=[],w)A.__resizeTrigger__=A,A.attachEvent("onresize",V);else{getComputedStyle(A).position==="static"&&(A.style.position="relative");var C=A.__resizeTrigger__=k.createElement("object");C.setAttribute("style","position: absolute; top: 0; left: 0; height: 100%; width: 100%; pointer-events: none; z-index: -1; opacity: 0;"),C.setAttribute("class","resize-sensor"),C.setAttribute("tabindex","-1"),C.setAttribute("title",""),C.__resizeElement__=A,C.onload=I,C.type="text/html",N&&A.appendChild(C),C.data="about:blank",N||A.appendChild(C)}A.__resizeListeners__.push(b)};nt.exports=typeof window=="undefined"?m:m.bind(window),nt.exports.unbind=function(y,A){var b=document.attachEvent,z=y.__resizeListeners__||[];if(A){var k=z.indexOf(A);k!==-1&&z.splice(k,1)}else z=y.__resizeListeners__=[];if(!z.length){if(b)y.detachEvent("onresize",V);else if(y.__resizeTrigger__){var N=y.__resizeTrigger__.contentDocument,w=N&&N.defaultView;w&&(w.removeEventListener("resize",V),delete w.__resizeTrigger__),y.__resizeTrigger__=!y.removeChild(y.__resizeTrigger__)}delete y.__resizeListeners__}}},26729:function(nt){"use strict";var V=Object.prototype.hasOwnProperty,m="~";function y(){}Object.create&&(y.prototype=Object.create(null),new y().__proto__||(m=!1));function A(N,w,I){this.fn=N,this.context=w,this.once=I||!1}function b(N,w,I,C,f){if(typeof I!="function")throw new TypeError("The listener must be a function");var S=new A(I,C||N,f),P=m?m+w:w;return N._events[P]?N._events[P].fn?N._events[P]=[N._events[P],S]:N._events[P].push(S):(N._events[P]=S,N._eventsCount++),N}function z(N,w){--N._eventsCount===0?N._events=new y:delete N._events[w]}function k(){this._events=new y,this._eventsCount=0}k.prototype.eventNames=function(){var w=[],I,C;if(this._eventsCount===0)return w;for(C in I=this._events)V.call(I,C)&&w.push(m?C.slice(1):C);return Object.getOwnPropertySymbols?w.concat(Object.getOwnPropertySymbols(I)):w},k.prototype.listeners=function(w){var I=m?m+w:w,C=this._events[I];if(!C)return[];if(C.fn)return[C.fn];for(var f=0,S=C.length,P=new Array(S);f=72.004&&ci<=137.8347&&Bi>=.8293&&Bi<=55.8271}function C(ci,Bi){let wi=-100+2*ci+3*Bi+.2*Bi*Bi+.1*ci*Bi+.2*b(z(ci));return wi+=(20*y(6*ci*k)+20*y(2*ci*k))*2/3,wi+=(20*y(Bi*k)+40*y(Bi/3*k))*2/3,wi+=(160*y(Bi/12*k)+320*y(Bi*k/30))*2/3,wi}function f(ci,Bi){let wi=300+ci+2*Bi+.1*ci*ci+.1*ci*Bi+.1*b(z(ci));return wi+=(20*y(6*ci*k)+20*y(2*ci*k))*2/3,wi+=(20*y(ci*k)+40*y(ci/3*k))*2/3,wi+=(150*y(ci/12*k)+300*y(ci/30*k))*2/3,wi}function S(ci,Bi){let wi=f(ci-105,Bi-35),io=C(ci-105,Bi-35);const ln=Bi/180*k;let Ve=y(ln);Ve=1-w*Ve*Ve;const _t=b(Ve);return wi=wi*180/(N/_t*A(ln)*k),io=io*180/(N*(1-w)/(Ve*_t)*k),[wi,io]}function P(ci){const[Bi,wi]=ci;if(!I(Bi,wi))return[Bi,wi];const io=S(Bi,wi);return[Bi+io[0],wi+io[1]]}function j(ci){const[Bi,wi]=ci;if(!I(Bi,wi))return[Bi,wi];let[io,ln]=[Bi,wi],Ve=P([io,ln]),_t=Ve[0]-Bi,Ct=Ve[1]-wi;for(;z(_t)>1e-6||z(Ct)>1e-6;)io-=_t,ln-=Ct,Ve=P([io,ln]),_t=Ve[0]-Bi,Ct=Ve[1]-wi;return[io,ln]}const{sin:re,cos:J,atan2:ie,sqrt:de,PI:he}=Math,fe=he*3e3/180;function ke(ci){const[Bi,wi]=ci,io=Bi-.0065,ln=wi-.006,Ve=de(io*io+ln*ln)-2e-5*re(ln*fe),_t=ie(ln,io)-3e-6*J(io*fe),Ct=Ve*J(_t),jt=Ve*re(_t);return[Ct,jt]}function we(ci){const[Bi,wi]=ci,io=Bi,ln=wi,Ve=de(io*io+ln*ln)+2e-5*re(ln*fe),_t=ie(ln,io)+3e-6*J(io*fe),Ct=Ve*J(_t)+.0065,jt=Ve*re(_t)+.006;return[Ct,jt]}const Ne=180/Math.PI,Ee=Math.PI/180,ge=6378137,ye=20037508342789244e-9;function xe(ci){return[ci[0]*Ne/ge,(Math.PI*.5-2*Math.atan(Math.exp(-ci[1]/ge)))*Ne]}function be(ci){const Bi=Math.abs(ci[0])<=180?ci[0]:ci[0]-(ci[0]<0?-1:1)*360,wi=[ge*Bi*Ee,ge*Math.log(Math.tan(Math.PI*.25+.5*ci[1]*Ee))];return wi[0]>ye&&(wi[0]=ye),wi[0]<-ye&&(wi[0]=-ye),wi[1]>ye&&(wi[1]=ye),wi[1]<-ye&&(wi[1]=-ye),wi}const{abs:Ie}=Math,me=[1289059486e-2,836237787e-2,5591021,348198983e-2,167804312e-2,0],We=[75,60,45,30,15,0],Ce=[[1410526172116255e-23,898305509648872e-20,-1.9939833816331,200.9824383106796,-187.2403703815547,91.6087516669843,-23.38765649603339,2.57121317296198,-.03801003308653,173379812e-1],[-7435856389565537e-24,8983055097726239e-21,-.78625201886289,96.32687599759846,-1.85204757529826,-59.36935905485877,47.40033549296737,-16.50741931063887,2.28786674699375,1026014486e-2],[-3030883460898826e-23,898305509983578e-20,.30071316287616,59.74293618442277,7.357984074871,-25.38371002664745,13.45380521110908,-3.29883767235584,.32710905363475,685681737e-2],[-1981981304930552e-23,8983055099779535e-21,.03278182852591,40.31678527705744,.65659298677277,-4.44255534477492,.85341911805263,.12923347998204,-.04625736007561,448277706e-2],[309191371068437e-23,8983055096812155e-21,6995724062e-14,23.10934304144901,-.00023663490511,-.6321817810242,-.00663494467273,.03430082397953,-.00466043876332,25551644e-1],[2890871144776878e-24,8983055095805407e-21,-3068298e-14,7.47137025468032,-353937994e-14,-.02145144861037,-1234426596e-14,.00010322952773,-323890364e-14,826088.5]],Pt=[[-.0015702102444,111320.7020616939,0x60e374c3105a3,-0x24bb4115e2e164,0x5cc55543bb0ae8,-0x7ce070193f3784,0x5e7ca61ddf8150,-0x261a578d8b24d0,0x665d60f3742ca,82.5],[.0008277824516172526,111320.7020463578,6477955746671607e-7,-4082003173641316e-6,1077490566351142e-5,-1517187553151559e-5,1205306533862167e-5,-5124939663577472e-6,9133119359512032e-7,67.5],[.00337398766765,111320.7020202162,4481351045890365e-9,-2339375119931662e-8,7968221547186455e-8,-1159649932797253e-7,9723671115602145e-8,-4366194633752821e-8,8477230501135234e-9,52.5],[.00220636496208,111320.7020209128,51751.86112841131,3796837749470245e-9,992013.7397791013,-122195221711287e-8,1340652697009075e-9,-620943.6990984312,144416.9293806241,37.5],[-.0003441963504368392,111320.7020576856,278.2353980772752,2485758690035394e-9,6070.750963243378,54821.18345352118,9540.606633304236,-2710.55326746645,1405.483844121726,22.5],[-.0003218135878613132,111320.7020701615,.00369383431289,823725.6402795718,.46104986909093,2351.343141331292,1.58060784298199,8.77738589078284,.37238884252424,7.45]];function ct(ci,Bi,wi){const io=Ie(Bi)/wi[9];let ln=wi[0]+wi[1]*Ie(ci),Ve=wi[2]+wi[3]*io+wi[4]*Math.pow(io,2)+wi[5]*Math.pow(io,3)+wi[6]*Math.pow(io,4)+wi[7]*Math.pow(io,5)+wi[8]*Math.pow(io,6);return ln*=ci<0?-1:1,Ve*=Bi<0?-1:1,[ln,Ve]}function Ue(ci){const[Bi,wi]=ci;let io=[];for(let ln=0;lnWe[ln]){io=Pt[ln];break}return ct(Bi,wi,io)}function bt(ci){const[Bi,wi]=ci;let io=[];for(let ln=0;ln=me[ln]){io=Ce[ln];break}return ct(Bi,wi,io)}function ht(ci,Bi){if(!ci)throw new Error(Bi)}function Bt(ci){return!!ci&&Object.prototype.toString.call(ci)==="[object Array]"}function mt(ci){return!isNaN(Number(ci))&&ci!==null&&!Bt(ci)}function _n(...ci){const Bi=ci.length-1;return function(...wi){let io=Bi,ln=ci[Bi].apply(null,wi);for(;io--;)ln=ci[io].call(null,ln);return ln}}function Bn(ci,Bi,wi=!1){if(ci===null)return;let io,ln,Ve,_t,Ct,jt,on=0,Ot=0,Tt,xt;const{type:Ht}=ci,Zn=Ht==="FeatureCollection",tn=Ht==="Feature",hr=Zn?ci.features.length:1;for(let Zi=0;Zi=2,`Invalid input coordinate: ${ci}`),ht(mt(ci[0])&&mt(ci[1]),`Invalid input coordinate: ${ci}`),ci=ci.map(Number),_t=!0);const Ct=ln;return _t?Ct(ci):(Bn(ci,jt=>{[jt[0],jt[1]]=Ct(jt)}),ci)}const _o=Object.assign(Object.assign({},Er),{CRSTypes:Er,transform:ve})},29657:function(nt,V,m){var y=m(10251),A=function(N){this.precision=N&&N.precision?N.precision:17,this.direction=N&&N.direction?N.direction:!1,this.pseudoNode=N&&N.pseudoNode?N.pseudoNode:!1,this.objectComparator=N&&N.objectComparator?N.objectComparator:k};A.prototype.compare=function(N,w){if(N.type!==w.type||!z(N,w))return!1;switch(N.type){case"Point":return this.compareCoord(N.coordinates,w.coordinates);case"LineString":return this.compareLine(N.coordinates,w.coordinates,0,!1);case"Polygon":return this.comparePolygon(N,w);case"Feature":return this.compareFeature(N,w);default:if(N.type.indexOf("Multi")===0){var I=this,C=b(N),f=b(w);return C.every(function(S){return this.some(function(P){return I.compare(S,P)})},f)}}return!1};function b(N){return N.coordinates.map(function(w){return{type:N.type.replace("Multi",""),coordinates:w}})}function z(N,w){return N.hasOwnProperty("coordinates")?N.coordinates.length===w.coordinates.length:N.length===w.length}A.prototype.compareCoord=function(N,w){if(N.length!==w.length)return!1;for(var I=0;I=0&&(I=[].concat(N.slice(C,N.length),N.slice(1,C+1))),I},A.prototype.comparePath=function(N,w){var I=this;return N.every(function(C,f){return I.compareCoord(C,this[f])},w)},A.prototype.comparePolygon=function(N,w){if(this.compareLine(N.coordinates[0],w.coordinates[0],1,!0)){var I=N.coordinates.slice(1,N.coordinates.length),C=w.coordinates.slice(1,w.coordinates.length),f=this;return I.every(function(S){return this.some(function(P){return f.compareLine(S,P,1,!0)})},C)}else return!1},A.prototype.compareFeature=function(N,w){return N.id!==w.id||!this.objectComparator(N.properties,w.properties)||!this.compareBBox(N,w)?!1:this.compare(N.geometry,w.geometry)},A.prototype.compareBBox=function(N,w){return!!(!N.bbox&&!w.bbox||N.bbox&&w.bbox&&this.compareCoord(N.bbox,w.bbox))},A.prototype.removePseudo=function(N){return N};function k(N,w){return y(N,w,{strict:!0})}nt.exports=A},51787:function(nt,V,m){var y=m(24056),A=m(84102),b=m(31540),z=m(9705).Z,k=b.featureEach,N=b.coordEach,w=A.polygon,I=A.featureCollection;function C(f){var S=new y(f);return S.insert=function(P){if(P.type!=="Feature")throw new Error("invalid feature");return P.bbox=P.bbox?P.bbox:z(P),y.prototype.insert.call(this,P)},S.load=function(P){var j=[];return Array.isArray(P)?P.forEach(function(re){if(re.type!=="Feature")throw new Error("invalid features");re.bbox=re.bbox?re.bbox:z(re),j.push(re)}):k(P,function(re){if(re.type!=="Feature")throw new Error("invalid features");re.bbox=re.bbox?re.bbox:z(re),j.push(re)}),y.prototype.load.call(this,j)},S.remove=function(P,j){if(P.type!=="Feature")throw new Error("invalid feature");return P.bbox=P.bbox?P.bbox:z(P),y.prototype.remove.call(this,P,j)},S.clear=function(){return y.prototype.clear.call(this)},S.search=function(P){var j=y.prototype.search.call(this,this.toBBox(P));return I(j)},S.collides=function(P){return y.prototype.collides.call(this,this.toBBox(P))},S.all=function(){var P=y.prototype.all.call(this);return I(P)},S.toJSON=function(){return y.prototype.toJSON.call(this)},S.fromJSON=function(P){return y.prototype.fromJSON.call(this,P)},S.toBBox=function(P){var j;if(P.bbox)j=P.bbox;else if(Array.isArray(P)&&P.length===4)j=P;else if(Array.isArray(P)&&P.length===6)j=[P[0],P[1],P[3],P[4]];else if(P.type==="Feature")j=z(P);else if(P.type==="FeatureCollection")j=z(P);else throw new Error("invalid geojson");return{minX:j[0],minY:j[1],maxX:j[2],maxY:j[3]}},S}nt.exports=C,nt.exports.default=C},24056:function(nt){(function(V,m){nt.exports=m()})(this,function(){"use strict";function V(J,ie,de,he,fe){(function ke(we,Ne,Ee,ge,ye){for(;ge>Ee;){if(ge-Ee>600){var xe=ge-Ee+1,be=Ne-Ee+1,Ie=Math.log(xe),me=.5*Math.exp(2*Ie/3),We=.5*Math.sqrt(Ie*me*(xe-me)/xe)*(be-xe/2<0?-1:1),Ce=Math.max(Ee,Math.floor(Ne-be*me/xe+We)),Pt=Math.min(ge,Math.floor(Ne+(xe-be)*me/xe+We));ke(we,Ne,Ce,Pt,ye)}var ct=we[Ne],Ue=Ee,bt=ge;for(m(we,Ee,Ne),ye(we[ge],ct)>0&&m(we,Ee,ge);Ue0;)bt--}ye(we[Ee],ct)===0?m(we,Ee,bt):m(we,++bt,ge),bt<=Ne&&(Ee=bt+1),Ne<=bt&&(ge=bt-1)}})(J,ie,de||0,he||J.length-1,fe||y)}function m(J,ie,de){var he=J[ie];J[ie]=J[de],J[de]=he}function y(J,ie){return Jie?1:0}var A=function(J){J===void 0&&(J=9),this._maxEntries=Math.max(4,J),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function b(J,ie,de){if(!de)return ie.indexOf(J);for(var he=0;he=J.minX&&ie.maxY>=J.minY}function j(J){return{children:J,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function re(J,ie,de,he,fe){for(var ke=[ie,de];ke.length;)if(!((de=ke.pop())-(ie=ke.pop())<=he)){var we=ie+Math.ceil((de-ie)/he/2)*he;V(J,we,ie,de,fe),ke.push(ie,we,we,de)}}return A.prototype.all=function(){return this._all(this.data,[])},A.prototype.search=function(J){var ie=this.data,de=[];if(!P(J,ie))return de;for(var he=this.toBBox,fe=[];ie;){for(var ke=0;ke=0&&fe[ie].children.length>this._maxEntries;)this._split(fe,ie),ie--;this._adjustParentBBoxes(he,fe,ie)},A.prototype._split=function(J,ie){var de=J[ie],he=de.children.length,fe=this._minEntries;this._chooseSplitAxis(de,fe,he);var ke=this._chooseSplitIndex(de,fe,he),we=j(de.children.splice(ke,de.children.length-ke));we.height=de.height,we.leaf=de.leaf,z(de,this.toBBox),z(we,this.toBBox),ie?J[ie-1].children.push(we):this._splitRoot(de,we)},A.prototype._splitRoot=function(J,ie){this.data=j([J,ie]),this.data.height=J.height+1,this.data.leaf=!1,z(this.data,this.toBBox)},A.prototype._chooseSplitIndex=function(J,ie,de){for(var he,fe,ke,we,Ne,Ee,ge,ye=1/0,xe=1/0,be=ie;be<=de-ie;be++){var Ie=k(J,0,be,this.toBBox),me=k(J,be,de,this.toBBox),We=(fe=Ie,ke=me,we=void 0,Ne=void 0,Ee=void 0,ge=void 0,we=Math.max(fe.minX,ke.minX),Ne=Math.max(fe.minY,ke.minY),Ee=Math.min(fe.maxX,ke.maxX),ge=Math.min(fe.maxY,ke.maxY),Math.max(0,Ee-we)*Math.max(0,ge-Ne)),Ce=C(Ie)+C(me);We=ie;ye--){var xe=J.children[ye];N(we,J.leaf?fe(xe):xe),Ne+=f(we)}return Ne},A.prototype._adjustParentBBoxes=function(J,ie,de){for(var he=de;he>=0;he--)N(ie[he],J)},A.prototype._condense=function(J){for(var ie=J.length-1,de=void 0;ie>=0;ie--)J[ie].children.length===0?ie>0?(de=J[ie-1].children).splice(de.indexOf(J[ie]),1):this.clear():z(J[ie],this.toBBox)},A})},40210:function(nt,V,m){"use strict";var y,A=SyntaxError,b=Function,z=TypeError,k=function(me){try{return b('"use strict"; return ('+me+").constructor;")()}catch(We){}},N=Object.getOwnPropertyDescriptor;if(N)try{N({},"")}catch(me){N=null}var w=function(){throw new z},I=N?function(){try{return arguments.callee,w}catch(me){try{return N(arguments,"callee").get}catch(We){return w}}}():w,C=m(41405)(),f=m(28185)(),S=Object.getPrototypeOf||(f?function(me){return me.__proto__}:null),P={},j=typeof Uint8Array=="undefined"||!S?y:S(Uint8Array),re={"%AggregateError%":typeof AggregateError=="undefined"?y:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?y:ArrayBuffer,"%ArrayIteratorPrototype%":C&&S?S([][Symbol.iterator]()):y,"%AsyncFromSyncIteratorPrototype%":y,"%AsyncFunction%":P,"%AsyncGenerator%":P,"%AsyncGeneratorFunction%":P,"%AsyncIteratorPrototype%":P,"%Atomics%":typeof Atomics=="undefined"?y:Atomics,"%BigInt%":typeof BigInt=="undefined"?y:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?y:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?y:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?y:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?y:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?y:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?y:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":P,"%Int8Array%":typeof Int8Array=="undefined"?y:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?y:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?y:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":C&&S?S(S([][Symbol.iterator]())):y,"%JSON%":typeof JSON=="object"?JSON:y,"%Map%":typeof Map=="undefined"?y:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!C||!S?y:S(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?y:Promise,"%Proxy%":typeof Proxy=="undefined"?y:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?y:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?y:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!C||!S?y:S(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?y:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":C&&S?S(""[Symbol.iterator]()):y,"%Symbol%":C?Symbol:y,"%SyntaxError%":A,"%ThrowTypeError%":I,"%TypedArray%":j,"%TypeError%":z,"%Uint8Array%":typeof Uint8Array=="undefined"?y:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?y:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?y:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?y:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?y:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?y:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?y:WeakSet};if(S)try{null.error}catch(me){var J=S(S(me));re["%Error.prototype%"]=J}var ie=function me(We){var Ce;if(We==="%AsyncFunction%")Ce=k("async function () {}");else if(We==="%GeneratorFunction%")Ce=k("function* () {}");else if(We==="%AsyncGeneratorFunction%")Ce=k("async function* () {}");else if(We==="%AsyncGenerator%"){var Pt=me("%AsyncGeneratorFunction%");Pt&&(Ce=Pt.prototype)}else if(We==="%AsyncIteratorPrototype%"){var ct=me("%AsyncGenerator%");ct&&S&&(Ce=S(ct.prototype))}return re[We]=Ce,Ce},de={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},he=m(58612),fe=m(17642),ke=he.call(Function.call,Array.prototype.concat),we=he.call(Function.apply,Array.prototype.splice),Ne=he.call(Function.call,String.prototype.replace),Ee=he.call(Function.call,String.prototype.slice),ge=he.call(Function.call,RegExp.prototype.exec),ye=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,xe=/\\(\\)?/g,be=function(We){var Ce=Ee(We,0,1),Pt=Ee(We,-1);if(Ce==="%"&&Pt!=="%")throw new A("invalid intrinsic syntax, expected closing `%`");if(Pt==="%"&&Ce!=="%")throw new A("invalid intrinsic syntax, expected opening `%`");var ct=[];return Ne(We,ye,function(Ue,bt,ht,Bt){ct[ct.length]=ht?Ne(Bt,xe,"$1"):bt||Ue}),ct},Ie=function(We,Ce){var Pt=We,ct;if(fe(de,Pt)&&(ct=de[Pt],Pt="%"+ct[0]+"%"),fe(re,Pt)){var Ue=re[Pt];if(Ue===P&&(Ue=ie(Pt)),typeof Ue=="undefined"&&!Ce)throw new z("intrinsic "+We+" exists, but is not available. Please file an issue!");return{alias:ct,name:Pt,value:Ue}}throw new A("intrinsic "+We+" does not exist!")};nt.exports=function(We,Ce){if(typeof We!="string"||We.length===0)throw new z("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Ce!="boolean")throw new z('"allowMissing" argument must be a boolean');if(ge(/^%?[^%]*%?$/,We)===null)throw new A("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Pt=be(We),ct=Pt.length>0?Pt[0]:"",Ue=Ie("%"+ct+"%",Ce),bt=Ue.name,ht=Ue.value,Bt=!1,mt=Ue.alias;mt&&(ct=mt[0],we(Pt,ke([0,1],mt)));for(var _n=1,Bn=!0;_n=Pt.length){var to=N(ht,Er);Bn=!!to,Bn&&"get"in to&&!("originalValue"in to.get)?ht=to.get:ht=ht[Er]}else Bn=fe(ht,Er),ht=ht[Er];Bn&&!Bt&&(re[bt]=ht)}}return ht}},25275:function(nt,V,m){"use strict";var y=m(40210),A=y("%Object.getOwnPropertyDescriptor%",!0);if(A)try{A([],"length")}catch(b){A=null}nt.exports=A},50840:function(nt,V,m){var y;(function(A,b,z,k){"use strict";var N=["","webkit","Moz","MS","ms","o"],w=b.createElement("div"),I="function",C=Math.round,f=Math.abs,S=Date.now;function P(tt,dt,vt){return setTimeout(ke(tt,vt),dt)}function j(tt,dt,vt){return Array.isArray(tt)?(re(tt,vt[dt],vt),!0):!1}function re(tt,dt,vt){var ze;if(tt)if(tt.forEach)tt.forEach(dt,vt);else if(tt.length!==k)for(ze=0;ze ${mr}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${mr}-disabled):hover`]:{borderColor:$n.colorPrimary}},[`${ro}${ro}-picture-card, ${ro}${ro}-picture-circle`]:{[`${ro}-item-container`]:{display:"inline-block",width:ns,height:ns,marginBlock:`0 ${$n.marginXS}px`,marginInline:`0 ${$n.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Ei]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${$n.paddingXS*2}px)`,height:`calc(100% - ${$n.paddingXS*2}px)`,backgroundColor:$n.colorBgMask,opacity:0,transition:`all ${$n.motionDurationSlow}`,content:'" "'}},[`${Ei}:hover`]:{[`&::before, ${Ei}-actions`]:{opacity:1}},[`${Ei}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${$n.motionDurationSlow}`,[`${Qr}-eye, ${Qr}-download, ${Qr}-delete`]:{zIndex:10,width:ni,margin:`0 ${$n.marginXXS}px`,fontSize:ni,cursor:"pointer",transition:`all ${$n.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Ei}-actions, ${Ei}-actions:hover`]:{[`${Qr}-eye, ${Qr}-download, ${Qr}-delete`]:{color:new ln.C(Ki).setAlpha(.65).toRgbString(),"&:hover":{color:Ki}}},[`${Ei}-thumbnail, ${Ei}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Ei}-name`]:{display:"none",textAlign:"center"},[`${Ei}-file + ${Ei}-name`]:{position:"absolute",bottom:$n.margin,display:"block",width:`calc(100% - ${$n.paddingXS*2}px)`},[`${Ei}-uploading`]:{[`&${Ei}`]:{backgroundColor:$n.colorFillAlter},[`&::before, ${Qr}-eye, ${Qr}-download, ${Qr}-delete`]:{display:"none"}},[`${Ei}-progress`]:{bottom:$n.marginXL,width:`calc(100% - ${$n.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${mr}-wrapper${mr}-picture-circle-wrapper`]:{[`${mr}${mr}-select`]:{borderRadius:"50%"}}}};var Wt=$n=>{const{componentCls:mr}=$n;return{[`${mr}-rtl`]:{direction:"rtl"}}};const on=$n=>{const{componentCls:mr,colorTextDisabled:Qr}=$n;return{[`${mr}-wrapper`]:Object.assign(Object.assign({},(0,Bn.Wf)($n)),{[mr]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${mr}-select`]:{display:"inline-block"},[`${mr}-disabled`]:{color:Qr,cursor:"not-allowed"}})}};var Ot=(0,Yr.Z)("Upload",$n=>{const{fontSizeHeading3:mr,fontSize:Qr,lineHeight:ni,lineWidth:Ki,controlHeightLG:ro}=$n,Ei=Math.round(Qr*ni),ns=(0,oi.TS)($n,{uploadThumbnailSize:mr*2,uploadProgressOffset:Ei/2+Ki,uploadPicCardSize:ro*2.55});return[on(ns),yo(ns),Ve(ns),_t(ns),Po(ns),Ci(ns),Wt(ns),(0,Er.Z)(ns)]},$n=>({actionsColor:$n.colorTextDescription})),Tt={icon:function(mr,Qr){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Qr}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:mr}}]}},name:"file",theme:"twotone"},bt=Tt,Ht=m(91851),Wn=function(mr,Qr){return y.createElement(Ht.Z,(0,N.Z)({},mr,{ref:Qr,icon:bt}))},tn=y.forwardRef(Wn),hr=m(38521),Zi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},Ri=Zi,Pi=function(mr,Qr){return y.createElement(Ht.Z,(0,N.Z)({},mr,{ref:Qr,icon:Ri}))},Wo=y.forwardRef(Pi),ys={icon:function(mr,Qr){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:mr}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Qr}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:Qr}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Qr}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:mr}}]}},name:"picture",theme:"twotone"},xn=ys,Hr=function(mr,Qr){return y.createElement(Ht.Z,(0,N.Z)({},mr,{ref:Qr,icon:xn}))},Jr=y.forwardRef(Hr),Yi=m(44516),xo=m(73962),na=m(26612),Un=m(99486),Xn=m(38115);function Mr($n){return Object.assign(Object.assign({},$n),{lastModified:$n.lastModified,lastModifiedDate:$n.lastModifiedDate,name:$n.name,size:$n.size,type:$n.type,uid:$n.uid,percent:0,originFileObj:$n})}function li($n,mr){const Qr=(0,I.Z)(mr),ni=Qr.findIndex(Ki=>{let{uid:ro}=Ki;return ro===$n.uid});return ni===-1?Qr.push($n):Qr[ni]=$n,Qr}function wr($n,mr){const Qr=$n.uid!==void 0?"uid":"name";return mr.filter(ni=>ni[Qr]===$n[Qr])[0]}function qr($n,mr){const Qr=$n.uid!==void 0?"uid":"name",ni=mr.filter(Ki=>Ki[Qr]!==$n[Qr]);return ni.length===mr.length?null:ni}const ii=function(){const mr=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),ni=mr[mr.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(ni)||[""])[0]},rn=$n=>$n.indexOf("image/")===0,Qn=$n=>{if($n.type&&!$n.thumbUrl)return rn($n.type);const mr=$n.thumbUrl||$n.url||"",Qr=ii(mr);return/^data:image\//.test(mr)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Qr)?!0:!(/^data:/.test(mr)||Qr)},Vr=200;function so($n){return new Promise(mr=>{if(!$n.type||!rn($n.type)){mr("");return}const Qr=document.createElement("canvas");Qr.width=Vr,Qr.height=Vr,Qr.style.cssText=`position: fixed; left: 0; top: 0; width: ${Vr}px; height: ${Vr}px; z-index: 9999; display: none;`,document.body.appendChild(Qr);const ni=Qr.getContext("2d"),Ki=new Image;if(Ki.onload=()=>{const{width:ro,height:Ei}=Ki;let ns=Vr,ca=Vr,Na=0,ul=0;ro>Ei?(ca=Ei*(Vr/ro),ul=-(ca-ns)/2):(ns=ro*(Vr/Ei),Na=-(ns-ca)/2),ni.drawImage(Ki,Na,ul,ns,ca);const Hl=Qr.toDataURL();document.body.removeChild(Qr),window.URL.revokeObjectURL(Ki.src),mr(Hl)},Ki.crossOrigin="anonymous",$n.type.startsWith("image/svg+xml")){const ro=new FileReader;ro.onload=()=>{ro.result&&(Ki.src=ro.result)},ro.readAsDataURL($n)}else if($n.type.startsWith("image/gif")){const ro=new FileReader;ro.onload=()=>{ro.result&&mr(ro.result)},ro.readAsDataURL($n)}else Ki.src=window.URL.createObjectURL($n)})}var rs=m(77364),zt=function(mr,Qr){return y.createElement(Ht.Z,(0,N.Z)({},mr,{ref:Qr,icon:rs.Z}))},pn=y.forwardRef(zt),br={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},Gr=br,ui=function(mr,Qr){return y.createElement(Ht.Z,(0,N.Z)({},mr,{ref:Qr,icon:Gr}))},xi=y.forwardRef(ui),lo=m(15997),Kr=m(95934),ti=m(75769),ji=m(48796),Tr=m(49934),Qt=m(39029),Gn=m(74710),yi={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Ln=function(){var mr=(0,y.useRef)([]),Qr=(0,y.useRef)(null);return(0,y.useEffect)(function(){var ni=Date.now(),Ki=!1;mr.current.forEach(function(ro){if(ro){Ki=!0;var Ei=ro.style;Ei.transitionDuration=".3s, .3s, .3s, .06s",Qr.current&&ni-Qr.current<100&&(Ei.transitionDuration="0s, 0s")}}),Ki&&(Qr.current=Date.now())}),mr.current},Si=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],tr=function(mr){var Qr=(0,Gn.Z)((0,Gn.Z)({},yi),mr),ni=Qr.className,Ki=Qr.percent,ro=Qr.prefixCls,Ei=Qr.strokeColor,ns=Qr.strokeLinecap,ca=Qr.strokeWidth,Na=Qr.style,ul=Qr.trailColor,Hl=Qr.trailWidth,Ml=Qr.transition,ja=(0,P.Z)(Qr,Si);delete ja.gapPosition;var Pu=Array.isArray(Ki)?Ki:[Ki],Xs=Array.isArray(Ei)?Ei:[Ei],Ya=Ln(),qa=ca/2,Ul=100-ca/2,ql="M ".concat(ns==="round"?qa:0,",").concat(qa,` + L `).concat(ns==="round"?Ul:100,",").concat(qa),vu="0 0 100 ".concat(ca),au=0;return y.createElement("svg",(0,N.Z)({className:k()("".concat(ro,"-line"),ni),viewBox:vu,preserveAspectRatio:"none",style:Na},ja),y.createElement("path",{className:"".concat(ro,"-line-trail"),d:ql,strokeLinecap:ns,stroke:ul,strokeWidth:Hl||ca,fillOpacity:"0"}),Pu.map(function(bn,Eu){var ts=1;switch(ns){case"round":ts=1-ca/100;break;case"square":ts=1-ca/2/100;break;default:ts=1;break}var Vs={strokeDasharray:"".concat(bn*ts,"px, 100px"),strokeDashoffset:"-".concat(au,"px"),transition:Ml||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},ma=Xs[Eu]||Xs[Xs.length-1];return au+=bn,y.createElement("path",{key:Eu,className:"".concat(ro,"-line-path"),d:ql,strokeLinecap:ns,stroke:ma,strokeWidth:ca,fillOpacity:"0",ref:function(El){Ya[Eu]=El},style:Vs})}))},vi=tr,Ni=m(39718),kr=m(53261),qn=0,ds=(0,kr.Z)();function _a(){var $n;return ds?($n=qn,qn+=1):$n="TEST_OR_SSR",$n}var da=function($n){var mr=y.useState(),Qr=(0,Ni.Z)(mr,2),ni=Qr[0],Ki=Qr[1];return y.useEffect(function(){Ki("rc_progress_".concat(_a()))},[]),$n||ni},zs=function(mr){var Qr=mr.bg,ni=mr.children;return y.createElement("div",{style:{width:"100%",height:"100%",background:Qr}},ni)};function Wa($n,mr){return Object.keys($n).map(function(Qr){var ni=parseFloat(Qr),Ki="".concat(Math.floor(ni*mr),"%");return"".concat($n[Qr]," ").concat(Ki)})}var Co=y.forwardRef(function($n,mr){var Qr=$n.prefixCls,ni=$n.color,Ki=$n.gradientId,ro=$n.radius,Ei=$n.style,ns=$n.ptg,ca=$n.strokeLinecap,Na=$n.strokeWidth,ul=$n.size,Hl=$n.gapDegree,Ml=ni&&(0,ne.Z)(ni)==="object",ja=Ml?"#FFF":void 0,Pu=ul/2,Xs=y.createElement("circle",{className:"".concat(Qr,"-circle-path"),r:ro,cx:Pu,cy:Pu,stroke:ja,strokeLinecap:ca,strokeWidth:Na,opacity:ns===0?0:1,style:Ei,ref:mr});if(!Ml)return Xs;var Ya="".concat(Ki,"-conic"),qa=Hl?"".concat(180+Hl/2,"deg"):"0deg",Ul=Wa(ni,(360-Hl)/360),ql=Wa(ni,1),vu="conic-gradient(from ".concat(qa,", ").concat(Ul.join(", "),")"),au="linear-gradient(to ".concat(Hl?"bottom":"top",", ").concat(ql.join(", "),")");return y.createElement(y.Fragment,null,y.createElement("mask",{id:Ya},Xs),y.createElement("foreignObject",{x:0,y:0,width:ul,height:ul,mask:"url(#".concat(Ya,")")},y.createElement(zs,{bg:au},y.createElement(zs,{bg:vu}))))}),cl=Co,Fr=100,fs=function(mr,Qr,ni,Ki,ro,Ei,ns,ca,Na,ul){var Hl=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Ml=ni/100*360*((360-Ei)/360),ja=Ei===0?0:{bottom:0,top:180,left:90,right:-90}[ns],Pu=(100-Ki)/100*Qr;Na==="round"&&Ki!==100&&(Pu+=ul/2,Pu>=Qr&&(Pu=Qr-.01));var Xs=Fr/2;return{stroke:typeof ca=="string"?ca:void 0,strokeDasharray:"".concat(Qr,"px ").concat(mr),strokeDashoffset:Pu+Hl,transform:"rotate(".concat(ro+Ml+ja,"deg)"),transformOrigin:"".concat(Xs,"px ").concat(Xs,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},jo=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Es($n){var mr=$n!=null?$n:[];return Array.isArray(mr)?mr:[mr]}var xs=function(mr){var Qr=(0,Gn.Z)((0,Gn.Z)({},yi),mr),ni=Qr.id,Ki=Qr.prefixCls,ro=Qr.steps,Ei=Qr.strokeWidth,ns=Qr.trailWidth,ca=Qr.gapDegree,Na=ca===void 0?0:ca,ul=Qr.gapPosition,Hl=Qr.trailColor,Ml=Qr.strokeLinecap,ja=Qr.style,Pu=Qr.className,Xs=Qr.strokeColor,Ya=Qr.percent,qa=(0,P.Z)(Qr,jo),Ul=Fr/2,ql=da(ni),vu="".concat(ql,"-gradient"),au=Ul-Ei/2,bn=Math.PI*2*au,Eu=Na>0?90+Na/2:-90,ts=bn*((360-Na)/360),Vs=(0,ne.Z)(ro)==="object"?ro:{count:ro,space:2},ma=Vs.count,Il=Vs.space,El=Es(Ya),gl=Es(Xs),fu=gl.find(function(Kd){return Kd&&(0,ne.Z)(Kd)==="object"}),Nu=fu&&(0,ne.Z)(fu)==="object",lc=Nu?"butt":Ml,Ic=fs(bn,ts,0,100,Eu,Na,ul,Hl,lc,Ei),Vc=Ln(),zd=function(){var ad=0;return El.map(function(ku,Fc){var dd=gl[Fc]||gl[gl.length-1],vd=fs(bn,ts,ad,ku,Eu,Na,ul,dd,lc,Ei);return ad+=ku,y.createElement(cl,{key:Fc,color:dd,ptg:ku,radius:au,prefixCls:Ki,gradientId:vu,style:vd,strokeLinecap:lc,strokeWidth:Ei,gapDegree:Na,ref:function(th){Vc[Fc]=th},size:Fr})}).reverse()},eh=function(){var ad=Math.round(ma*(El[0]/100)),ku=100/ma,Fc=0;return new Array(ma).fill(null).map(function(dd,vd){var Xd=vd<=ad-1?gl[0]:Hl,th=Xd&&(0,ne.Z)(Xd)==="object"?"url(#".concat(vu,")"):void 0,jd=fs(bn,ts,Fc,ku,Eu,Na,ul,Xd,"butt",Ei,Il);return Fc+=(ts-jd.strokeDashoffset+Il)*100/ts,y.createElement("circle",{key:vd,className:"".concat(Ki,"-circle-path"),r:au,cx:Ul,cy:Ul,stroke:th,strokeWidth:Ei,opacity:1,style:jd,ref:function(id){Vc[vd]=id}})})};return y.createElement("svg",(0,N.Z)({className:k()("".concat(Ki,"-circle"),Pu),viewBox:"0 0 ".concat(Fr," ").concat(Fr),style:ja,id:ni,role:"presentation"},qa),!ma&&y.createElement("circle",{className:"".concat(Ki,"-circle-trail"),r:au,cx:Ul,cy:Ul,stroke:Hl,strokeLinecap:lc,strokeWidth:ns||Ei,style:Ic}),ma?eh():zd())},Za=xs,tl={Line:vi,Circle:Za},xl=m(16175);function Qa($n){return!$n||$n<0?0:$n>100?100:$n}function si($n){let{success:mr,successPercent:Qr}=$n,ni=Qr;return mr&&"progress"in mr&&(ni=mr.progress),mr&&"percent"in mr&&(ni=mr.percent),ni}const co=$n=>{let{percent:mr,success:Qr,successPercent:ni}=$n;const Ki=Qa(si({success:Qr,successPercent:ni}));return[Ki,Qa(Qa(mr)-Ki)]},dn=$n=>{let{success:mr={},strokeColor:Qr}=$n;const{strokeColor:ni}=mr;return[ni||io.ez.green,Qr||null]},An=($n,mr,Qr)=>{var ni,Ki,ro,Ei;let ns=-1,ca=-1;if(mr==="step"){const Na=Qr.steps,ul=Qr.strokeWidth;typeof $n=="string"||typeof $n=="undefined"?(ns=$n==="small"?2:14,ca=ul!=null?ul:8):typeof $n=="number"?[ns,ca]=[$n,$n]:[ns=14,ca=8]=$n,ns*=Na}else if(mr==="line"){const Na=Qr==null?void 0:Qr.strokeWidth;typeof $n=="string"||typeof $n=="undefined"?ca=Na||($n==="small"?6:8):typeof $n=="number"?[ns,ca]=[$n,$n]:[ns=-1,ca=8]=$n}else(mr==="circle"||mr==="dashboard")&&(typeof $n=="string"||typeof $n=="undefined"?[ns,ca]=$n==="small"?[60,60]:[120,120]:typeof $n=="number"?[ns,ca]=[$n,$n]:(ns=(Ki=(ni=$n[0])!==null&&ni!==void 0?ni:$n[1])!==null&&Ki!==void 0?Ki:120,ca=(Ei=(ro=$n[0])!==null&&ro!==void 0?ro:$n[1])!==null&&Ei!==void 0?Ei:120));return[ns,ca]},Nn=3,tt=$n=>Nn/$n*100;var vt=$n=>{const{prefixCls:mr,trailColor:Qr=null,strokeLinecap:ni="round",gapPosition:Ki,gapDegree:ro,width:Ei=120,type:ns,children:ca,success:Na,size:ul=Ei}=$n,[Hl,Ml]=An(ul,"circle");let{strokeWidth:ja}=$n;ja===void 0&&(ja=Math.max(tt(Hl),6));const Pu={width:Hl,height:Ml,fontSize:Hl*.15+6},Xs=y.useMemo(()=>{if(ro||ro===0)return ro;if(ns==="dashboard")return 75},[ro,ns]),Ya=Ki||ns==="dashboard"&&"bottom"||void 0,qa=Object.prototype.toString.call($n.strokeColor)==="[object Object]",Ul=dn({success:Na,strokeColor:$n.strokeColor}),ql=k()(`${mr}-inner`,{[`${mr}-circle-gradient`]:qa}),vu=y.createElement(Za,{percent:co($n),strokeWidth:ja,trailWidth:ja,strokeColor:Ul,strokeLinecap:ni,trailColor:Qr,prefixCls:mr,gapDegree:Xs,gapPosition:Ya});return y.createElement("div",{className:ql,style:Pu},Hl<=20?y.createElement(xl.Z,{title:ca},y.createElement("span",null,vu)):y.createElement(y.Fragment,null,vu,ca))},Fe=function($n,mr){var Qr={};for(var ni in $n)Object.prototype.hasOwnProperty.call($n,ni)&&mr.indexOf(ni)<0&&(Qr[ni]=$n[ni]);if($n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ki=0,ni=Object.getOwnPropertySymbols($n);Ki{let mr=[];return Object.keys($n).forEach(Qr=>{const ni=parseFloat(Qr.replace(/%/g,""));isNaN(ni)||mr.push({key:ni,value:$n[Qr]})}),mr=mr.sort((Qr,ni)=>Qr.key-ni.key),mr.map(Qr=>{let{key:ni,value:Ki}=Qr;return`${Ki} ${ni}%`}).join(", ")},Et=($n,mr)=>{const{from:Qr=io.ez.blue,to:ni=io.ez.blue,direction:Ki=mr==="rtl"?"to left":"to right"}=$n,ro=Fe($n,["from","to","direction"]);if(Object.keys(ro).length!==0){const Ei=lt(ro);return{backgroundImage:`linear-gradient(${Ki}, ${Ei})`}}return{backgroundImage:`linear-gradient(${Ki}, ${Qr}, ${ni})`}};var jn=$n=>{const{prefixCls:mr,direction:Qr,percent:ni,size:Ki,strokeWidth:ro,strokeColor:Ei,strokeLinecap:ns="round",children:ca,trailColor:Na=null,success:ul}=$n,Hl=Ei&&typeof Ei!="string"?Et(Ei,Qr):{backgroundColor:Ei},Ml=ns==="square"||ns==="butt"?0:void 0,ja={backgroundColor:Na||void 0,borderRadius:Ml},Pu=Ki!=null?Ki:[-1,ro||(Ki==="small"?6:8)],[Xs,Ya]=An(Pu,"line",{strokeWidth:ro}),qa=Object.assign({width:`${Qa(ni)}%`,height:Ya,borderRadius:Ml},Hl),Ul=si($n),ql={width:`${Qa(Ul)}%`,height:Ya,borderRadius:Ml,backgroundColor:ul==null?void 0:ul.strokeColor},vu={width:Xs<0?"100%":Xs,height:Ya};return y.createElement(y.Fragment,null,y.createElement("div",{className:`${mr}-outer`,style:vu},y.createElement("div",{className:`${mr}-inner`,style:ja},y.createElement("div",{className:`${mr}-bg`,style:qa}),Ul!==void 0?y.createElement("div",{className:`${mr}-success-bg`,style:ql}):null)),ca)},Ti=$n=>{const{size:mr,steps:Qr,percent:ni=0,strokeWidth:Ki=8,strokeColor:ro,trailColor:Ei=null,prefixCls:ns,children:ca}=$n,Na=Math.round(Qr*(ni/100)),ul=mr==="small"?2:14,Hl=mr!=null?mr:[ul,Ki],[Ml,ja]=An(Hl,"step",{steps:Qr,strokeWidth:Ki}),Pu=Ml/Qr,Xs=new Array(Qr);for(let Ya=0;Ya{const mr=$n?"100%":"-100%";return new as.E4(`antProgress${$n?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${mr}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${mr}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Vi=$n=>{const{componentCls:mr,iconCls:Qr}=$n;return{[mr]:Object.assign(Object.assign({},(0,Bn.Wf)($n)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:$n.fontSize,marginInlineEnd:$n.marginXS,marginBottom:$n.marginXS},[`${mr}-outer`]:{display:"inline-block",width:"100%"},[`&${mr}-show-info`]:{[`${mr}-outer`]:{marginInlineEnd:`calc(-2em - ${$n.marginXS}px)`,paddingInlineEnd:`calc(2em + ${$n.paddingXS}px)`}},[`${mr}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:$n.remainingColor,borderRadius:$n.lineBorderRadius},[`${mr}-inner:not(${mr}-circle-gradient)`]:{[`${mr}-circle-path`]:{stroke:$n.defaultColor}},[`${mr}-success-bg, ${mr}-bg`]:{position:"relative",backgroundColor:$n.defaultColor,borderRadius:$n.lineBorderRadius,transition:`all ${$n.motionDurationSlow} ${$n.motionEaseInOutCirc}`},[`${mr}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:$n.colorSuccess},[`${mr}-text`]:{display:"inline-block",width:"2em",marginInlineStart:$n.marginXS,color:$n.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Qr]:{fontSize:$n.fontSize}},[`&${mr}-status-active`]:{[`${mr}-bg::before`]:{position:"absolute",inset:0,backgroundColor:$n.colorBgContainer,borderRadius:$n.lineBorderRadius,opacity:0,animationName:$i(),animationDuration:$n.progressActiveMotionDuration,animationTimingFunction:$n.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${mr}-rtl${mr}-status-active`]:{[`${mr}-bg::before`]:{animationName:$i(!0)}},[`&${mr}-status-exception`]:{[`${mr}-bg`]:{backgroundColor:$n.colorError},[`${mr}-text`]:{color:$n.colorError}},[`&${mr}-status-exception ${mr}-inner:not(${mr}-circle-gradient)`]:{[`${mr}-circle-path`]:{stroke:$n.colorError}},[`&${mr}-status-success`]:{[`${mr}-bg`]:{backgroundColor:$n.colorSuccess},[`${mr}-text`]:{color:$n.colorSuccess}},[`&${mr}-status-success ${mr}-inner:not(${mr}-circle-gradient)`]:{[`${mr}-circle-path`]:{stroke:$n.colorSuccess}}})}},us=$n=>{const{componentCls:mr,iconCls:Qr}=$n;return{[mr]:{[`${mr}-circle-trail`]:{stroke:$n.remainingColor},[`&${mr}-circle ${mr}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${mr}-circle ${mr}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:$n.circleTextColor,fontSize:$n.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Qr]:{fontSize:`${$n.fontSize/$n.fontSizeSM}em`}},[`${mr}-circle&-status-exception`]:{[`${mr}-text`]:{color:$n.colorError}},[`${mr}-circle&-status-success`]:{[`${mr}-text`]:{color:$n.colorSuccess}}},[`${mr}-inline-circle`]:{lineHeight:1,[`${mr}-inner`]:{verticalAlign:"bottom"}}}},ks=$n=>{const{componentCls:mr}=$n;return{[mr]:{[`${mr}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:$n.progressStepMinWidth,marginInlineEnd:$n.progressStepMarginInlineEnd,backgroundColor:$n.remainingColor,transition:`all ${$n.motionDurationSlow}`,"&-active":{backgroundColor:$n.defaultColor}}}}}},Os=$n=>{const{componentCls:mr,iconCls:Qr}=$n;return{[mr]:{[`${mr}-small&-line, ${mr}-small&-line ${mr}-text ${Qr}`]:{fontSize:$n.fontSizeSM}}}};var pa=(0,Yr.Z)("Progress",$n=>{const mr=$n.marginXXS/2,Qr=(0,oi.TS)($n,{progressStepMarginInlineEnd:mr,progressStepMinWidth:mr,progressActiveMotionDuration:"2.4s"});return[Vi(Qr),us(Qr),ks(Qr),Os(Qr)]},$n=>({circleTextColor:$n.colorText,defaultColor:$n.colorInfo,remainingColor:$n.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),no=function($n,mr){var Qr={};for(var ni in $n)Object.prototype.hasOwnProperty.call($n,ni)&&mr.indexOf(ni)<0&&(Qr[ni]=$n[ni]);if($n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ki=0,ni=Object.getOwnPropertySymbols($n);Ki{const{prefixCls:Qr,className:ni,rootClassName:Ki,steps:ro,strokeColor:Ei,percent:ns=0,size:ca="default",showInfo:Na=!0,type:ul="line",status:Hl,format:Ml,style:ja}=$n,Pu=no($n,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Xs=y.useMemo(()=>{var El,gl;const fu=si($n);return parseInt(fu!==void 0?(El=fu!=null?fu:0)===null||El===void 0?void 0:El.toString():(gl=ns!=null?ns:0)===null||gl===void 0?void 0:gl.toString(),10)},[ns,$n.success,$n.successPercent]),Ya=y.useMemo(()=>!ea.includes(Hl)&&Xs>=100?"success":Hl||"normal",[Hl,Xs]),{getPrefixCls:qa,direction:Ul,progress:ql}=y.useContext(dt.E_),vu=qa("progress",Qr),[au,bn]=pa(vu),Eu=y.useMemo(()=>{if(!Na)return null;const El=si($n);let gl;const fu=Ml||(lc=>`${lc}%`),Nu=ul==="line";return Ml||Ya!=="exception"&&Ya!=="success"?gl=fu(Qa(ns),Qa(El)):Ya==="exception"?gl=Nu?y.createElement(ji.Z,null):y.createElement(Tr.Z,null):Ya==="success"&&(gl=Nu?y.createElement(Kr.Z,null):y.createElement(ti.Z,null)),y.createElement("span",{className:`${vu}-text`,title:typeof gl=="string"?gl:void 0},gl)},[Na,ns,Xs,Ya,ul,vu,Ml]),ts=Array.isArray(Ei)?Ei[0]:Ei,Vs=typeof Ei=="string"||Array.isArray(Ei)?Ei:void 0;let ma;ul==="line"?ma=ro?y.createElement(Ti,Object.assign({},$n,{strokeColor:Vs,prefixCls:vu,steps:ro}),Eu):y.createElement(jn,Object.assign({},$n,{strokeColor:ts,prefixCls:vu,direction:Ul}),Eu):(ul==="circle"||ul==="dashboard")&&(ma=y.createElement(vt,Object.assign({},$n,{strokeColor:ts,prefixCls:vu,progressStatus:Ya}),Eu));const Il=k()(vu,`${vu}-status-${Ya}`,`${vu}-${ul==="dashboard"&&"circle"||ro&&"steps"||ul}`,{[`${vu}-inline-circle`]:ul==="circle"&&An(ca,"circle")[0]<=20,[`${vu}-show-info`]:Na,[`${vu}-${ca}`]:typeof ca=="string",[`${vu}-rtl`]:Ul==="rtl"},ql==null?void 0:ql.className,ni,Ki,bn);return au(y.createElement("div",Object.assign({ref:mr,style:Object.assign(Object.assign({},ql==null?void 0:ql.style),ja),className:Il,role:"progressbar","aria-valuenow":Xs},(0,Qt.Z)(Pu,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),ma))}),Ma=Bl,oa=y.forwardRef(($n,mr)=>{let{prefixCls:Qr,className:ni,style:Ki,locale:ro,listType:Ei,file:ns,items:ca,progress:Na,iconRender:ul,actionIconRender:Hl,itemRender:Ml,isImgUrl:ja,showPreviewIcon:Pu,showRemoveIcon:Xs,showDownloadIcon:Ya,previewIcon:qa,removeIcon:Ul,downloadIcon:ql,onPreview:vu,onDownload:au,onClose:bn}=$n;var Eu,ts;const{status:Vs}=ns,[ma,Il]=y.useState(Vs);y.useEffect(()=>{Vs!=="removed"&&Il(Vs)},[Vs]);const[El,gl]=y.useState(!1);y.useEffect(()=>{const id=setTimeout(()=>{gl(!0)},300);return()=>{clearTimeout(id)}},[]);const fu=ul(ns);let Nu=y.createElement("div",{className:`${Qr}-icon`},fu);if(Ei==="picture"||Ei==="picture-card"||Ei==="picture-circle")if(ma==="uploading"||!ns.thumbUrl&&!ns.url){const id=k()(`${Qr}-list-item-thumbnail`,{[`${Qr}-list-item-file`]:ma!=="uploading"});Nu=y.createElement("div",{className:id},fu)}else{const id=ja!=null&&ja(ns)?y.createElement("img",{src:ns.thumbUrl||ns.url,alt:ns.name,className:`${Qr}-list-item-image`,crossOrigin:ns.crossOrigin}):fu,nd=k()(`${Qr}-list-item-thumbnail`,{[`${Qr}-list-item-file`]:ja&&!ja(ns)});Nu=y.createElement("a",{className:nd,onClick:Pf=>vu(ns,Pf),href:ns.url||ns.thumbUrl,target:"_blank",rel:"noopener noreferrer"},id)}const lc=k()(`${Qr}-list-item`,`${Qr}-list-item-${ma}`),Ic=typeof ns.linkProps=="string"?JSON.parse(ns.linkProps):ns.linkProps,Vc=Xs?Hl((typeof Ul=="function"?Ul(ns):Ul)||y.createElement(pn,null),()=>bn(ns),Qr,ro.removeFile):null,zd=Ya&&ma==="done"?Hl((typeof ql=="function"?ql(ns):ql)||y.createElement(xi,null),()=>au(ns),Qr,ro.downloadFile):null,eh=Ei!=="picture-card"&&Ei!=="picture-circle"&&y.createElement("span",{key:"download-delete",className:k()(`${Qr}-list-item-actions`,{picture:Ei==="picture"})},zd,Vc),Kd=k()(`${Qr}-list-item-name`),ad=ns.url?[y.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Kd,title:ns.name},Ic,{href:ns.url,onClick:id=>vu(ns,id)}),ns.name),eh]:[y.createElement("span",{key:"view",className:Kd,onClick:id=>vu(ns,id),title:ns.name},ns.name),eh],ku={pointerEvents:"none",opacity:.5},Fc=Pu?y.createElement("a",{href:ns.url||ns.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:ns.url||ns.thumbUrl?void 0:ku,onClick:id=>vu(ns,id),title:ro.previewFile},typeof qa=="function"?qa(ns):qa||y.createElement(lo.Z,null)):null,dd=(Ei==="picture-card"||Ei==="picture-circle")&&ma!=="uploading"&&y.createElement("span",{className:`${Qr}-list-item-actions`},Fc,ma==="done"&&zd,Vc),{getPrefixCls:vd}=y.useContext(dt.E_),Xd=vd(),th=y.createElement("div",{className:lc},Nu,ad,dd,El&&y.createElement(Yi.ZP,{motionName:`${Xd}-fade`,visible:ma==="uploading",motionDeadline:2e3},id=>{let{className:nd}=id;const Pf="percent"in ns?y.createElement(Ma,Object.assign({},Na,{type:"line",percent:ns.percent,"aria-label":ns["aria-label"],"aria-labelledby":ns["aria-labelledby"]})):null;return y.createElement("div",{className:k()(`${Qr}-list-item-progress`,nd)},Pf)})),jd=ns.response&&typeof ns.response=="string"?ns.response:((Eu=ns.error)===null||Eu===void 0?void 0:Eu.statusText)||((ts=ns.error)===null||ts===void 0?void 0:ts.message)||ro.uploadError,vh=ma==="error"?y.createElement(xl.Z,{title:jd,getPopupContainer:id=>id.parentNode},th):th;return y.createElement("div",{className:k()(`${Qr}-list-item-container`,ni),style:Ki,ref:mr},Ml?Ml(vh,ns,ca,{download:au.bind(null,ns),preview:vu.bind(null,ns),remove:bn.bind(null,ns)}):vh)});const Nl=($n,mr)=>{const{listType:Qr="text",previewFile:ni=so,onPreview:Ki,onDownload:ro,onRemove:Ei,locale:ns,iconRender:ca,isImageUrl:Na=Qn,prefixCls:ul,items:Hl=[],showPreviewIcon:Ml=!0,showRemoveIcon:ja=!0,showDownloadIcon:Pu=!1,removeIcon:Xs,previewIcon:Ya,downloadIcon:qa,progress:Ul={size:[-1,2],showInfo:!1},appendAction:ql,appendActionVisible:vu=!0,itemRender:au,disabled:bn}=$n,Eu=(0,xo.Z)(),[ts,Vs]=y.useState(!1);y.useEffect(()=>{Qr!=="picture"&&Qr!=="picture-card"&&Qr!=="picture-circle"||(Hl||[]).forEach(ku=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(ku.originFileObj instanceof File||ku.originFileObj instanceof Blob)||ku.thumbUrl!==void 0||(ku.thumbUrl="",ni&&ni(ku.originFileObj).then(Fc=>{ku.thumbUrl=Fc||"",Eu()}))})},[Qr,Hl,ni]),y.useEffect(()=>{Vs(!0)},[]);const ma=(ku,Fc)=>{if(Ki)return Fc==null||Fc.preventDefault(),Ki(ku)},Il=ku=>{typeof ro=="function"?ro(ku):ku.url&&window.open(ku.url)},El=ku=>{Ei==null||Ei(ku)},gl=ku=>{if(ca)return ca(ku,Qr);const Fc=ku.status==="uploading",dd=Na&&Na(ku)?y.createElement(Jr,null):y.createElement(tn,null);let vd=Fc?y.createElement(hr.Z,null):y.createElement(Wo,null);return Qr==="picture"?vd=Fc?y.createElement(hr.Z,null):dd:(Qr==="picture-card"||Qr==="picture-circle")&&(vd=Fc?ns.uploading:dd),vd},fu=(ku,Fc,dd,vd)=>{const Xd={type:"text",size:"small",title:vd,onClick:th=>{Fc(),(0,Un.l$)(ku)&&ku.props.onClick&&ku.props.onClick(th)},className:`${dd}-list-item-action`,disabled:bn};if((0,Un.l$)(ku)){const th=(0,Un.Tm)(ku,Object.assign(Object.assign({},ku.props),{onClick:()=>{}}));return y.createElement(Xn.ZP,Object.assign({},Xd,{icon:th}))}return y.createElement(Xn.ZP,Object.assign({},Xd),y.createElement("span",null,ku))};y.useImperativeHandle(mr,()=>({handlePreview:ma,handleDownload:Il}));const{getPrefixCls:Nu}=y.useContext(dt.E_),lc=Nu("upload",ul),Ic=Nu(),Vc=k()(`${lc}-list`,`${lc}-list-${Qr}`),zd=(0,I.Z)(Hl.map(ku=>({key:ku.uid,file:ku})));let Kd={motionDeadline:2e3,motionName:`${lc}-${Qr==="picture-card"||Qr==="picture-circle"?"animate-inline":"animate"}`,keys:zd,motionAppear:ts};const ad=y.useMemo(()=>{const ku=Object.assign({},(0,na.Z)(Ic));return delete ku.onAppearEnd,delete ku.onEnterEnd,delete ku.onLeaveEnd,ku},[Ic]);return Qr!=="picture-card"&&Qr!=="picture-circle"&&(Kd=Object.assign(Object.assign({},ad),Kd)),y.createElement("div",{className:Vc},y.createElement(Yi.V4,Object.assign({},Kd,{component:!1}),ku=>{let{key:Fc,file:dd,className:vd,style:Xd}=ku;return y.createElement(oa,{key:Fc,locale:ns,prefixCls:lc,className:vd,style:Xd,file:dd,items:Hl,progress:Ul,listType:Qr,isImgUrl:Na,showPreviewIcon:Ml,showRemoveIcon:ja,showDownloadIcon:Pu,removeIcon:Xs,previewIcon:Ya,downloadIcon:qa,iconRender:gl,actionIconRender:fu,itemRender:au,onPreview:ma,onDownload:Il,onClose:El})}),ql&&y.createElement(Yi.ZP,Object.assign({},Kd,{visible:vu,forceRender:!0}),ku=>{let{className:Fc,style:dd}=ku;return(0,Un.Tm)(ql,vd=>({className:k()(vd.className,Fc),style:Object.assign(Object.assign(Object.assign({},dd),{pointerEvents:Fc?"none":void 0}),vd.style)}))}))};var zi=y.forwardRef(Nl),qi=function($n,mr,Qr,ni){function Ki(ro){return ro instanceof Qr?ro:new Qr(function(Ei){Ei(ro)})}return new(Qr||(Qr=Promise))(function(ro,Ei){function ns(ul){try{Na(ni.next(ul))}catch(Hl){Ei(Hl)}}function ca(ul){try{Na(ni.throw(ul))}catch(Hl){Ei(Hl)}}function Na(ul){ul.done?ro(ul.value):Ki(ul.value).then(ns,ca)}Na((ni=ni.apply($n,mr||[])).next())})};const ta=`__LIST_IGNORE_${Date.now()}__`,ms=($n,mr)=>{const{fileList:Qr,defaultFileList:ni,onRemove:Ki,showUploadList:ro=!0,listType:Ei="text",onPreview:ns,onDownload:ca,onChange:Na,onDrop:ul,previewFile:Hl,disabled:Ml,locale:ja,iconRender:Pu,isImageUrl:Xs,progress:Ya,prefixCls:qa,className:Ul,type:ql="select",children:vu,style:au,itemRender:bn,maxCount:Eu,data:ts={},multiple:Vs=!1,action:ma="",accept:Il="",supportServerRender:El=!0,rootClassName:gl}=$n,fu=y.useContext(Bt.Z),Nu=Ml!=null?Ml:fu,[lc,Ic]=(0,wt.Z)(ni||[],{value:Qr,postState:wd=>wd!=null?wd:[]}),[Vc,zd]=y.useState("drop"),eh=y.useRef(null);y.useMemo(()=>{const wd=Date.now();(Qr||[]).forEach((Yd,Ba)=>{!Yd.uid&&!Object.isFrozen(Yd)&&(Yd.uid=`__AUTO__${wd}_${Ba}__`)})},[Qr]);const Kd=(wd,Yd,Ba)=>{let ru=(0,I.Z)(Yd),zl=!1;Eu===1?ru=ru.slice(-1):Eu&&(zl=ru.length>Eu,ru=ru.slice(0,Eu)),(0,b.flushSync)(()=>{Ic(ru)});const Au={file:wd,fileList:ru};Ba&&(Au.event=Ba),(!zl||ru.some(Vu=>Vu.uid===wd.uid))&&(0,b.flushSync)(()=>{Na==null||Na(Au)})},ad=(wd,Yd)=>qi(void 0,void 0,void 0,function*(){const{beforeUpload:Ba,transformFile:ru}=$n;let zl=wd;if(Ba){const Au=yield Ba(wd,Yd);if(Au===!1)return!1;if(delete wd[ta],Au===ta)return Object.defineProperty(wd,ta,{value:!0,configurable:!0}),!1;typeof Au=="object"&&Au&&(zl=Au)}return ru&&(zl=yield ru(zl)),zl}),ku=wd=>{const Yd=wd.filter(zl=>!zl.file[ta]);if(!Yd.length)return;const Ba=Yd.map(zl=>Mr(zl.file));let ru=(0,I.Z)(lc);Ba.forEach(zl=>{ru=li(zl,ru)}),Ba.forEach((zl,Au)=>{let Vu=zl;if(Yd[Au].parsedFile)zl.status="uploading";else{const{originFileObj:Vd}=zl;let Ud;try{Ud=new File([Vd],Vd.name,{type:Vd.type})}catch(oh){Ud=new Blob([Vd],{type:Vd.type}),Ud.name=Vd.name,Ud.lastModifiedDate=new Date,Ud.lastModified=new Date().getTime()}Ud.uid=zl.uid,Vu=Ud}Kd(Vu,ru)})},Fc=(wd,Yd,Ba)=>{try{typeof wd=="string"&&(wd=JSON.parse(wd))}catch(Au){}if(!wr(Yd,lc))return;const ru=Mr(Yd);ru.status="done",ru.percent=100,ru.response=wd,ru.xhr=Ba;const zl=li(ru,lc);Kd(ru,zl)},dd=(wd,Yd)=>{if(!wr(Yd,lc))return;const Ba=Mr(Yd);Ba.status="uploading",Ba.percent=wd.percent;const ru=li(Ba,lc);Kd(Ba,ru,wd)},vd=(wd,Yd,Ba)=>{if(!wr(Ba,lc))return;const ru=Mr(Ba);ru.error=wd,ru.response=Yd,ru.status="error";const zl=li(ru,lc);Kd(ru,zl)},Xd=wd=>{let Yd;Promise.resolve(typeof Ki=="function"?Ki(wd):Ki).then(Ba=>{var ru;if(Ba===!1)return;const zl=qr(wd,lc);zl&&(Yd=Object.assign(Object.assign({},wd),{status:"removed"}),lc==null||lc.forEach(Au=>{const Vu=Yd.uid!==void 0?"uid":"name";Au[Vu]===Yd[Vu]&&!Object.isFrozen(Au)&&(Au.status="removed")}),(ru=eh.current)===null||ru===void 0||ru.abort(Yd),Kd(Yd,zl))})},th=wd=>{zd(wd.type),wd.type==="drop"&&(ul==null||ul(wd))};y.useImperativeHandle(mr,()=>({onBatchStart:ku,onSuccess:Fc,onProgress:dd,onError:vd,fileList:lc,upload:eh.current}));const{getPrefixCls:jd,direction:vh,upload:id}=y.useContext(dt.E_),nd=jd("upload",qa),Pf=Object.assign(Object.assign({onBatchStart:ku,onError:vd,onProgress:dd,onSuccess:Fc},$n),{data:ts,multiple:Vs,action:ma,accept:Il,supportServerRender:El,prefixCls:nd,disabled:Nu,beforeUpload:ad,onChange:void 0});delete Pf.className,delete Pf.style,(!vu||Nu)&&delete Pf.id;const[qd,cc]=Ot(nd),[Xc]=(0,gt.Z)("Upload",_n.Z.Upload),{showRemoveIcon:jh,showPreviewIcon:uf,showDownloadIcon:Lh,removeIcon:Sf,previewIcon:Cp,downloadIcon:Nf}=typeof ro=="boolean"?{}:ro,uh=(wd,Yd)=>ro?y.createElement(zi,{prefixCls:nd,listType:Ei,items:lc,previewFile:Hl,onPreview:ns,onDownload:ca,onRemove:Xd,showRemoveIcon:!Nu&&jh,showPreviewIcon:uf,showDownloadIcon:Lh,removeIcon:Sf,previewIcon:Cp,downloadIcon:Nf,iconRender:Pu,locale:Object.assign(Object.assign({},Xc),ja),isImageUrl:Xs,progress:Ya,appendAction:wd,appendActionVisible:Yd,itemRender:bn,disabled:Nu}):wd,Th=k()(`${nd}-wrapper`,Ul,gl,cc,id==null?void 0:id.className,{[`${nd}-rtl`]:vh==="rtl",[`${nd}-picture-card-wrapper`]:Ei==="picture-card",[`${nd}-picture-circle-wrapper`]:Ei==="picture-circle"}),yu=Object.assign(Object.assign({},id==null?void 0:id.style),au);if(ql==="drag"){const wd=k()(cc,nd,`${nd}-drag`,{[`${nd}-drag-uploading`]:lc.some(Yd=>Yd.status==="uploading"),[`${nd}-drag-hover`]:Vc==="dragover",[`${nd}-disabled`]:Nu,[`${nd}-rtl`]:vh==="rtl"});return qd(y.createElement("span",{className:Th},y.createElement("div",{className:wd,style:yu,onDrop:th,onDragOver:th,onDragLeave:th},y.createElement(He,Object.assign({},Pf,{ref:eh,className:`${nd}-btn`}),y.createElement("div",{className:`${nd}-drag-container`},vu))),uh()))}const ff=k()(nd,`${nd}-select`,{[`${nd}-disabled`]:Nu}),Fu=(wd=>y.createElement("div",{className:ff,style:wd},y.createElement(He,Object.assign({},Pf,{ref:eh}))))(vu?void 0:{display:"none"});return qd(Ei==="picture-card"||Ei==="picture-circle"?y.createElement("span",{className:Th},uh(Fu,!!vu)):y.createElement("span",{className:Th},Fu,uh()))};var $u=y.forwardRef(ms),rc=function($n,mr){var Qr={};for(var ni in $n)Object.prototype.hasOwnProperty.call($n,ni)&&mr.indexOf(ni)<0&&(Qr[ni]=$n[ni]);if($n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ki=0,ni=Object.getOwnPropertySymbols($n);Ki{var{style:Qr,height:ni}=$n,Ki=rc($n,["style","height"]);return y.createElement($u,Object.assign({ref:mr},Ki,{type:"drag",style:Object.assign(Object.assign({},Qr),{height:ni})}))});const Ji=$u;Ji.Dragger=ho,Ji.LIST_IGNORE=ta;var ss=Ji},13706:function(nt,V,m){"use strict";var y=m(57957).default;Object.defineProperty(V,"__esModule",{value:!0}),V.default=void 0;var I=y(m(85202)),b=V.default=I.default},44436:function(nt,V,m){"use strict";var y=m(57957).default;Object.defineProperty(V,"__esModule",{value:!0}),V.default=void 0;var I=y(m(88175)),b=V.default=I.default},85202:function(nt,V,m){"use strict";var y=m(57957).default;Object.defineProperty(V,"__esModule",{value:!0}),V.default=void 0;var I=y(m(4584)),b=y(m(87107));const z={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},I.default),timePickerLocale:Object.assign({},b.default)};var k=V.default=z},88175:function(nt,V,m){"use strict";var y=m(57957).default;Object.defineProperty(V,"__esModule",{value:!0}),V.default=void 0;var I=y(m(37613)),b=y(m(15854));const z={lang:Object.assign({placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",yearPlaceholder:"\u8BF7\u9009\u62E9\u5E74\u4EFD",quarterPlaceholder:"\u8BF7\u9009\u62E9\u5B63\u5EA6",monthPlaceholder:"\u8BF7\u9009\u62E9\u6708\u4EFD",weekPlaceholder:"\u8BF7\u9009\u62E9\u5468",rangePlaceholder:["\u5F00\u59CB\u65E5\u671F","\u7ED3\u675F\u65E5\u671F"],rangeYearPlaceholder:["\u5F00\u59CB\u5E74\u4EFD","\u7ED3\u675F\u5E74\u4EFD"],rangeMonthPlaceholder:["\u5F00\u59CB\u6708\u4EFD","\u7ED3\u675F\u6708\u4EFD"],rangeQuarterPlaceholder:["\u5F00\u59CB\u5B63\u5EA6","\u7ED3\u675F\u5B63\u5EA6"],rangeWeekPlaceholder:["\u5F00\u59CB\u5468","\u7ED3\u675F\u5468"]},I.default),timePickerLocale:Object.assign({},b.default)};z.lang.ok="\u786E\u5B9A";var k=V.default=z},13740:function(nt,V,m){"use strict";var y,I=m(57957).default;y={value:!0},V.Z=void 0;var b=I(m(84808)),z=I(m(13706)),k=I(m(85202)),N=I(m(87107));const w="${label} is not a valid ${type}",A={locale:"en",Pagination:b.default,DatePicker:k.default,TimePicker:N.default,Calendar:z.default,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:w,method:w,array:w,object:w,number:w,date:w,boolean:w,integer:w,float:w,regexp:w,email:w,url:w,hex:w},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}};var C=V.Z=A},63495:function(nt,V,m){"use strict";var y,I=m(57957).default;y={value:!0},V.Z=void 0;var b=I(m(98738)),z=I(m(44436)),k=I(m(88175)),N=I(m(15854));const w="${label}\u4E0D\u662F\u4E00\u4E2A\u6709\u6548\u7684${type}",A={locale:"zh-cn",Pagination:b.default,DatePicker:k.default,TimePicker:N.default,Calendar:z.default,global:{placeholder:"\u8BF7\u9009\u62E9"},Table:{filterTitle:"\u7B5B\u9009",filterConfirm:"\u786E\u5B9A",filterReset:"\u91CD\u7F6E",filterEmptyText:"\u65E0\u7B5B\u9009\u9879",filterCheckall:"\u5168\u9009",filterSearchPlaceholder:"\u5728\u7B5B\u9009\u9879\u4E2D\u641C\u7D22",selectAll:"\u5168\u9009\u5F53\u9875",selectInvert:"\u53CD\u9009\u5F53\u9875",selectNone:"\u6E05\u7A7A\u6240\u6709",selectionAll:"\u5168\u9009\u6240\u6709",sortTitle:"\u6392\u5E8F",expand:"\u5C55\u5F00\u884C",collapse:"\u5173\u95ED\u884C",triggerDesc:"\u70B9\u51FB\u964D\u5E8F",triggerAsc:"\u70B9\u51FB\u5347\u5E8F",cancelSort:"\u53D6\u6D88\u6392\u5E8F"},Modal:{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",justOkText:"\u77E5\u9053\u4E86"},Tour:{Next:"\u4E0B\u4E00\u6B65",Previous:"\u4E0A\u4E00\u6B65",Finish:"\u7ED3\u675F\u5BFC\u89C8"},Popconfirm:{cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A"},Transfer:{titles:["",""],searchPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",itemUnit:"\u9879",itemsUnit:"\u9879",remove:"\u5220\u9664",selectCurrent:"\u5168\u9009\u5F53\u9875",removeCurrent:"\u5220\u9664\u5F53\u9875",selectAll:"\u5168\u9009\u6240\u6709",removeAll:"\u5220\u9664\u5168\u90E8",selectInvert:"\u53CD\u9009\u5F53\u9875"},Upload:{uploading:"\u6587\u4EF6\u4E0A\u4F20\u4E2D",removeFile:"\u5220\u9664\u6587\u4EF6",uploadError:"\u4E0A\u4F20\u9519\u8BEF",previewFile:"\u9884\u89C8\u6587\u4EF6",downloadFile:"\u4E0B\u8F7D\u6587\u4EF6"},Empty:{description:"\u6682\u65E0\u6570\u636E"},Icon:{icon:"\u56FE\u6807"},Text:{edit:"\u7F16\u8F91",copy:"\u590D\u5236",copied:"\u590D\u5236\u6210\u529F",expand:"\u5C55\u5F00"},PageHeader:{back:"\u8FD4\u56DE"},Form:{optional:"\uFF08\u53EF\u9009\uFF09",defaultValidateMessages:{default:"\u5B57\u6BB5\u9A8C\u8BC1\u9519\u8BEF${label}",required:"\u8BF7\u8F93\u5165${label}",enum:"${label}\u5FC5\u987B\u662F\u5176\u4E2D\u4E00\u4E2A[${enum}]",whitespace:"${label}\u4E0D\u80FD\u4E3A\u7A7A\u5B57\u7B26",date:{format:"${label}\u65E5\u671F\u683C\u5F0F\u65E0\u6548",parse:"${label}\u4E0D\u80FD\u8F6C\u6362\u4E3A\u65E5\u671F",invalid:"${label}\u662F\u4E00\u4E2A\u65E0\u6548\u65E5\u671F"},types:{string:w,method:w,array:w,object:w,number:w,date:w,boolean:w,integer:w,float:w,regexp:w,email:w,url:w,hex:w},string:{len:"${label}\u987B\u4E3A${len}\u4E2A\u5B57\u7B26",min:"${label}\u6700\u5C11${min}\u4E2A\u5B57\u7B26",max:"${label}\u6700\u591A${max}\u4E2A\u5B57\u7B26",range:"${label}\u987B\u5728${min}-${max}\u5B57\u7B26\u4E4B\u95F4"},number:{len:"${label}\u5FC5\u987B\u7B49\u4E8E${len}",min:"${label}\u6700\u5C0F\u503C\u4E3A${min}",max:"${label}\u6700\u5927\u503C\u4E3A${max}",range:"${label}\u987B\u5728${min}-${max}\u4E4B\u95F4"},array:{len:"\u987B\u4E3A${len}\u4E2A${label}",min:"\u6700\u5C11${min}\u4E2A${label}",max:"\u6700\u591A${max}\u4E2A${label}",range:"${label}\u6570\u91CF\u987B\u5728${min}-${max}\u4E4B\u95F4"},pattern:{mismatch:"${label}\u4E0E\u6A21\u5F0F\u4E0D\u5339\u914D${pattern}"}}},Image:{preview:"\u9884\u89C8"},QRCode:{expired:"\u4E8C\u7EF4\u7801\u8FC7\u671F",refresh:"\u70B9\u51FB\u5237\u65B0"},ColorPicker:{presetEmpty:"\u6682\u65E0"}};var C=V.Z=A},87107:function(nt,V){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.default=void 0;const m={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};var y=V.default=m},15854:function(nt,V){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.default=void 0;const m={placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",rangePlaceholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]};var y=V.default=m},86251:function(nt,V){"use strict";V.byteLength=w,V.toByteArray=C,V.fromByteArray=P;for(var m=[],y=[],I=typeof Uint8Array!="undefined"?Uint8Array:Array,b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",z=0,k=b.length;z0)throw new Error("Invalid string. Length must be a multiple of 4");var re=W.indexOf("=");re===-1&&(re=ne);var ce=re===ne?0:4-re%4;return[re,ce]}function w(W){var ne=N(W),re=ne[0],ce=ne[1];return(re+ce)*3/4-ce}function A(W,ne,re){return(ne+re)*3/4-re}function C(W){var ne,re=N(W),ce=re[0],pe=re[1],he=new I(A(W,ce,pe)),fe=0,Be=pe>0?ce-4:ce,Ie;for(Ie=0;Ie>16&255,he[fe++]=ne>>8&255,he[fe++]=ne&255;return pe===2&&(ne=y[W.charCodeAt(Ie)]<<2|y[W.charCodeAt(Ie+1)]>>4,he[fe++]=ne&255),pe===1&&(ne=y[W.charCodeAt(Ie)]<<10|y[W.charCodeAt(Ie+1)]<<4|y[W.charCodeAt(Ie+2)]>>2,he[fe++]=ne>>8&255,he[fe++]=ne&255),he}function f(W){return m[W>>18&63]+m[W>>12&63]+m[W>>6&63]+m[W&63]}function S(W,ne,re){for(var ce,pe=[],he=ne;heBe?Be:fe+he));return ce===1?(ne=W[re-1],pe.push(m[ne>>2]+m[ne<<4&63]+"==")):ce===2&&(ne=(W[re-2]<<8)+W[re-1],pe.push(m[ne>>10]+m[ne>>4&63]+m[ne<<2&63]+"=")),pe.join("")}},29114:function(nt,V,m){"use strict";var y;var I=m(86251),b=m(67467),z=m(99100);V.lW=A,y=he,V.h2=50,A.TYPED_ARRAY_SUPPORT=m.g.TYPED_ARRAY_SUPPORT!==void 0?m.g.TYPED_ARRAY_SUPPORT:k(),y=N();function k(){try{var ln=new Uint8Array(1);return ln.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},ln.foo()===42&&typeof ln.subarray=="function"&&ln.subarray(1,1).byteLength===0}catch(Ve){return!1}}function N(){return A.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function w(ln,Ve){if(N()=N())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+N().toString(16)+" bytes");return ln|0}function he(ln){return+ln!=ln&&(ln=0),A.alloc(+ln)}A.isBuffer=function(Ve){return!!(Ve!=null&&Ve._isBuffer)},A.compare=function(Ve,_t){if(!A.isBuffer(Ve)||!A.isBuffer(_t))throw new TypeError("Arguments must be Buffers");if(Ve===_t)return 0;for(var xt=Ve.length,Wt=_t.length,on=0,Ot=Math.min(xt,Wt);on>>1;case"base64":return Bi(ln).length;default:if(xt)return ge(ln).length;Ve=(""+Ve).toLowerCase(),xt=!0}}A.byteLength=fe;function Be(ln,Ve,_t){var xt=!1;if((Ve===void 0||Ve<0)&&(Ve=0),Ve>this.length||((_t===void 0||_t>this.length)&&(_t=this.length),_t<=0)||(_t>>>=0,Ve>>>=0,_t<=Ve))return"";for(ln||(ln="utf8");;)switch(ln){case"hex":return dt(this,Ve,_t);case"utf8":case"utf-8":return xe(this,Ve,_t);case"ascii":return He(this,Ve,_t);case"latin1":case"binary":return wt(this,Ve,_t);case"base64":return je(this,Ve,_t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Bt(this,Ve,_t);default:if(xt)throw new TypeError("Unknown encoding: "+ln);ln=(ln+"").toLowerCase(),xt=!0}}A.prototype._isBuffer=!0;function Ie(ln,Ve,_t){var xt=ln[Ve];ln[Ve]=ln[_t],ln[_t]=xt}A.prototype.swap16=function(){var Ve=this.length;if(Ve%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var _t=0;_t0&&(Ve=this.toString("hex",0,_t).match(/.{2}/g).join(" "),this.length>_t&&(Ve+=" ... ")),""},A.prototype.compare=function(Ve,_t,xt,Wt,on){if(!A.isBuffer(Ve))throw new TypeError("Argument must be a Buffer");if(_t===void 0&&(_t=0),xt===void 0&&(xt=Ve?Ve.length:0),Wt===void 0&&(Wt=0),on===void 0&&(on=this.length),_t<0||xt>Ve.length||Wt<0||on>this.length)throw new RangeError("out of range index");if(Wt>=on&&_t>=xt)return 0;if(Wt>=on)return-1;if(_t>=xt)return 1;if(_t>>>=0,xt>>>=0,Wt>>>=0,on>>>=0,this===Ve)return 0;for(var Ot=on-Wt,Tt=xt-_t,bt=Math.min(Ot,Tt),Ht=this.slice(Wt,on),Wn=Ve.slice(_t,xt),tn=0;tn2147483647?_t=2147483647:_t<-2147483648&&(_t=-2147483648),_t=+_t,isNaN(_t)&&(_t=Wt?0:ln.length-1),_t<0&&(_t=ln.length+_t),_t>=ln.length){if(Wt)return-1;_t=ln.length-1}else if(_t<0)if(Wt)_t=0;else return-1;if(typeof Ve=="string"&&(Ve=A.from(Ve,xt)),A.isBuffer(Ve))return Ve.length===0?-1:De(ln,Ve,_t,xt,Wt);if(typeof Ve=="number")return Ve=Ve&255,A.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Wt?Uint8Array.prototype.indexOf.call(ln,Ve,_t):Uint8Array.prototype.lastIndexOf.call(ln,Ve,_t):De(ln,[Ve],_t,xt,Wt);throw new TypeError("val must be string, number or Buffer")}function De(ln,Ve,_t,xt,Wt){var on=1,Ot=ln.length,Tt=Ve.length;if(xt!==void 0&&(xt=String(xt).toLowerCase(),xt==="ucs2"||xt==="ucs-2"||xt==="utf16le"||xt==="utf-16le")){if(ln.length<2||Ve.length<2)return-1;on=2,Ot/=2,Tt/=2,_t/=2}function bt(Zi,Ri){return on===1?Zi[Ri]:Zi.readUInt16BE(Ri*on)}var Ht;if(Wt){var Wn=-1;for(Ht=_t;HtOt&&(_t=Ot-Tt),Ht=_t;Ht>=0;Ht--){for(var tn=!0,hr=0;hrWt&&(xt=Wt)):xt=Wt;var on=Ve.length;if(on%2!==0)throw new TypeError("Invalid hex string");xt>on/2&&(xt=on/2);for(var Ot=0;Oton)&&(xt=on),Ve.length>0&&(xt<0||_t<0)||_t>this.length)throw new RangeError("Attempt to write outside buffer bounds");Wt||(Wt="utf8");for(var Ot=!1;;)switch(Wt){case"hex":return ve(this,Ve,_t,xt);case"utf8":case"utf-8":return ye(this,Ve,_t,xt);case"ascii":return we(this,Ve,_t,xt);case"latin1":case"binary":return Ce(this,Ve,_t,xt);case"base64":return Ae(this,Ve,_t,xt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return me(this,Ve,_t,xt);default:if(Ot)throw new TypeError("Unknown encoding: "+Wt);Wt=(""+Wt).toLowerCase(),Ot=!0}},A.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function je(ln,Ve,_t){return Ve===0&&_t===ln.length?I.fromByteArray(ln):I.fromByteArray(ln.slice(Ve,_t))}function xe(ln,Ve,_t){_t=Math.min(ln.length,_t);for(var xt=[],Wt=Ve;Wt<_t;){var on=ln[Wt],Ot=null,Tt=on>239?4:on>223?3:on>191?2:1;if(Wt+Tt<=_t){var bt,Ht,Wn,tn;switch(Tt){case 1:on<128&&(Ot=on);break;case 2:bt=ln[Wt+1],(bt&192)===128&&(tn=(on&31)<<6|bt&63,tn>127&&(Ot=tn));break;case 3:bt=ln[Wt+1],Ht=ln[Wt+2],(bt&192)===128&&(Ht&192)===128&&(tn=(on&15)<<12|(bt&63)<<6|Ht&63,tn>2047&&(tn<55296||tn>57343)&&(Ot=tn));break;case 4:bt=ln[Wt+1],Ht=ln[Wt+2],Wn=ln[Wt+3],(bt&192)===128&&(Ht&192)===128&&(Wn&192)===128&&(tn=(on&15)<<18|(bt&63)<<12|(Ht&63)<<6|Wn&63,tn>65535&&tn<1114112&&(Ot=tn))}}Ot===null?(Ot=65533,Tt=1):Ot>65535&&(Ot-=65536,xt.push(Ot>>>10&1023|55296),Ot=56320|Ot&1023),xt.push(Ot),Wt+=Tt}return ct(xt)}var Pt=4096;function ct(ln){var Ve=ln.length;if(Ve<=Pt)return String.fromCharCode.apply(String,ln);for(var _t="",xt=0;xtxt)&&(_t=xt);for(var Wt="",on=Ve;on<_t;++on)Wt+=as(ln[on]);return Wt}function Bt(ln,Ve,_t){for(var xt=ln.slice(Ve,_t),Wt="",on=0;onxt&&(Ve=xt),_t<0?(_t+=xt,_t<0&&(_t=0)):_t>xt&&(_t=xt),_t_t)throw new RangeError("Trying to access beyond buffer length")}A.prototype.readUIntLE=function(Ve,_t,xt){Ve=Ve|0,_t=_t|0,xt||gt(Ve,_t,this.length);for(var Wt=this[Ve],on=1,Ot=0;++Ot<_t&&(on*=256);)Wt+=this[Ve+Ot]*on;return Wt},A.prototype.readUIntBE=function(Ve,_t,xt){Ve=Ve|0,_t=_t|0,xt||gt(Ve,_t,this.length);for(var Wt=this[Ve+--_t],on=1;_t>0&&(on*=256);)Wt+=this[Ve+--_t]*on;return Wt},A.prototype.readUInt8=function(Ve,_t){return _t||gt(Ve,1,this.length),this[Ve]},A.prototype.readUInt16LE=function(Ve,_t){return _t||gt(Ve,2,this.length),this[Ve]|this[Ve+1]<<8},A.prototype.readUInt16BE=function(Ve,_t){return _t||gt(Ve,2,this.length),this[Ve]<<8|this[Ve+1]},A.prototype.readUInt32LE=function(Ve,_t){return _t||gt(Ve,4,this.length),(this[Ve]|this[Ve+1]<<8|this[Ve+2]<<16)+this[Ve+3]*16777216},A.prototype.readUInt32BE=function(Ve,_t){return _t||gt(Ve,4,this.length),this[Ve]*16777216+(this[Ve+1]<<16|this[Ve+2]<<8|this[Ve+3])},A.prototype.readIntLE=function(Ve,_t,xt){Ve=Ve|0,_t=_t|0,xt||gt(Ve,_t,this.length);for(var Wt=this[Ve],on=1,Ot=0;++Ot<_t&&(on*=256);)Wt+=this[Ve+Ot]*on;return on*=128,Wt>=on&&(Wt-=Math.pow(2,8*_t)),Wt},A.prototype.readIntBE=function(Ve,_t,xt){Ve=Ve|0,_t=_t|0,xt||gt(Ve,_t,this.length);for(var Wt=_t,on=1,Ot=this[Ve+--Wt];Wt>0&&(on*=256);)Ot+=this[Ve+--Wt]*on;return on*=128,Ot>=on&&(Ot-=Math.pow(2,8*_t)),Ot},A.prototype.readInt8=function(Ve,_t){return _t||gt(Ve,1,this.length),this[Ve]&128?(255-this[Ve]+1)*-1:this[Ve]},A.prototype.readInt16LE=function(Ve,_t){_t||gt(Ve,2,this.length);var xt=this[Ve]|this[Ve+1]<<8;return xt&32768?xt|4294901760:xt},A.prototype.readInt16BE=function(Ve,_t){_t||gt(Ve,2,this.length);var xt=this[Ve+1]|this[Ve]<<8;return xt&32768?xt|4294901760:xt},A.prototype.readInt32LE=function(Ve,_t){return _t||gt(Ve,4,this.length),this[Ve]|this[Ve+1]<<8|this[Ve+2]<<16|this[Ve+3]<<24},A.prototype.readInt32BE=function(Ve,_t){return _t||gt(Ve,4,this.length),this[Ve]<<24|this[Ve+1]<<16|this[Ve+2]<<8|this[Ve+3]},A.prototype.readFloatLE=function(Ve,_t){return _t||gt(Ve,4,this.length),b.read(this,Ve,!0,23,4)},A.prototype.readFloatBE=function(Ve,_t){return _t||gt(Ve,4,this.length),b.read(this,Ve,!1,23,4)},A.prototype.readDoubleLE=function(Ve,_t){return _t||gt(Ve,8,this.length),b.read(this,Ve,!0,52,8)},A.prototype.readDoubleBE=function(Ve,_t){return _t||gt(Ve,8,this.length),b.read(this,Ve,!1,52,8)};function _n(ln,Ve,_t,xt,Wt,on){if(!A.isBuffer(ln))throw new TypeError('"buffer" argument must be a Buffer instance');if(Ve>Wt||Veln.length)throw new RangeError("Index out of range")}A.prototype.writeUIntLE=function(Ve,_t,xt,Wt){if(Ve=+Ve,_t=_t|0,xt=xt|0,!Wt){var on=Math.pow(2,8*xt)-1;_n(this,Ve,_t,xt,on,0)}var Ot=1,Tt=0;for(this[_t]=Ve&255;++Tt=0&&(Tt*=256);)this[_t+Ot]=Ve/Tt&255;return _t+xt},A.prototype.writeUInt8=function(Ve,_t,xt){return Ve=+Ve,_t=_t|0,xt||_n(this,Ve,_t,1,255,0),A.TYPED_ARRAY_SUPPORT||(Ve=Math.floor(Ve)),this[_t]=Ve&255,_t+1};function Bn(ln,Ve,_t,xt){Ve<0&&(Ve=65535+Ve+1);for(var Wt=0,on=Math.min(ln.length-_t,2);Wt>>(xt?Wt:1-Wt)*8}A.prototype.writeUInt16LE=function(Ve,_t,xt){return Ve=+Ve,_t=_t|0,xt||_n(this,Ve,_t,2,65535,0),A.TYPED_ARRAY_SUPPORT?(this[_t]=Ve&255,this[_t+1]=Ve>>>8):Bn(this,Ve,_t,!0),_t+2},A.prototype.writeUInt16BE=function(Ve,_t,xt){return Ve=+Ve,_t=_t|0,xt||_n(this,Ve,_t,2,65535,0),A.TYPED_ARRAY_SUPPORT?(this[_t]=Ve>>>8,this[_t+1]=Ve&255):Bn(this,Ve,_t,!1),_t+2};function Er(ln,Ve,_t,xt){Ve<0&&(Ve=4294967295+Ve+1);for(var Wt=0,on=Math.min(ln.length-_t,4);Wt>>(xt?Wt:3-Wt)*8&255}A.prototype.writeUInt32LE=function(Ve,_t,xt){return Ve=+Ve,_t=_t|0,xt||_n(this,Ve,_t,4,4294967295,0),A.TYPED_ARRAY_SUPPORT?(this[_t+3]=Ve>>>24,this[_t+2]=Ve>>>16,this[_t+1]=Ve>>>8,this[_t]=Ve&255):Er(this,Ve,_t,!0),_t+4},A.prototype.writeUInt32BE=function(Ve,_t,xt){return Ve=+Ve,_t=_t|0,xt||_n(this,Ve,_t,4,4294967295,0),A.TYPED_ARRAY_SUPPORT?(this[_t]=Ve>>>24,this[_t+1]=Ve>>>16,this[_t+2]=Ve>>>8,this[_t+3]=Ve&255):Er(this,Ve,_t,!1),_t+4},A.prototype.writeIntLE=function(Ve,_t,xt,Wt){if(Ve=+Ve,_t=_t|0,!Wt){var on=Math.pow(2,8*xt-1);_n(this,Ve,_t,xt,on-1,-on)}var Ot=0,Tt=1,bt=0;for(this[_t]=Ve&255;++Ot>0)-bt&255;return _t+xt},A.prototype.writeIntBE=function(Ve,_t,xt,Wt){if(Ve=+Ve,_t=_t|0,!Wt){var on=Math.pow(2,8*xt-1);_n(this,Ve,_t,xt,on-1,-on)}var Ot=xt-1,Tt=1,bt=0;for(this[_t+Ot]=Ve&255;--Ot>=0&&(Tt*=256);)Ve<0&&bt===0&&this[_t+Ot+1]!==0&&(bt=1),this[_t+Ot]=(Ve/Tt>>0)-bt&255;return _t+xt},A.prototype.writeInt8=function(Ve,_t,xt){return Ve=+Ve,_t=_t|0,xt||_n(this,Ve,_t,1,127,-128),A.TYPED_ARRAY_SUPPORT||(Ve=Math.floor(Ve)),Ve<0&&(Ve=255+Ve+1),this[_t]=Ve&255,_t+1},A.prototype.writeInt16LE=function(Ve,_t,xt){return Ve=+Ve,_t=_t|0,xt||_n(this,Ve,_t,2,32767,-32768),A.TYPED_ARRAY_SUPPORT?(this[_t]=Ve&255,this[_t+1]=Ve>>>8):Bn(this,Ve,_t,!0),_t+2},A.prototype.writeInt16BE=function(Ve,_t,xt){return Ve=+Ve,_t=_t|0,xt||_n(this,Ve,_t,2,32767,-32768),A.TYPED_ARRAY_SUPPORT?(this[_t]=Ve>>>8,this[_t+1]=Ve&255):Bn(this,Ve,_t,!1),_t+2},A.prototype.writeInt32LE=function(Ve,_t,xt){return Ve=+Ve,_t=_t|0,xt||_n(this,Ve,_t,4,2147483647,-2147483648),A.TYPED_ARRAY_SUPPORT?(this[_t]=Ve&255,this[_t+1]=Ve>>>8,this[_t+2]=Ve>>>16,this[_t+3]=Ve>>>24):Er(this,Ve,_t,!0),_t+4},A.prototype.writeInt32BE=function(Ve,_t,xt){return Ve=+Ve,_t=_t|0,xt||_n(this,Ve,_t,4,2147483647,-2147483648),Ve<0&&(Ve=4294967295+Ve+1),A.TYPED_ARRAY_SUPPORT?(this[_t]=Ve>>>24,this[_t+1]=Ve>>>16,this[_t+2]=Ve>>>8,this[_t+3]=Ve&255):Er(this,Ve,_t,!1),_t+4};function Yr(ln,Ve,_t,xt,Wt,on){if(_t+xt>ln.length)throw new RangeError("Index out of range");if(_t<0)throw new RangeError("Index out of range")}function oi(ln,Ve,_t,xt,Wt){return Wt||Yr(ln,Ve,_t,4,34028234663852886e22,-34028234663852886e22),b.write(ln,Ve,_t,xt,23,4),_t+4}A.prototype.writeFloatLE=function(Ve,_t,xt){return oi(this,Ve,_t,!0,xt)},A.prototype.writeFloatBE=function(Ve,_t,xt){return oi(this,Ve,_t,!1,xt)};function to(ln,Ve,_t,xt,Wt){return Wt||Yr(ln,Ve,_t,8,17976931348623157e292,-17976931348623157e292),b.write(ln,Ve,_t,xt,52,8),_t+8}A.prototype.writeDoubleLE=function(Ve,_t,xt){return to(this,Ve,_t,!0,xt)},A.prototype.writeDoubleBE=function(Ve,_t,xt){return to(this,Ve,_t,!1,xt)},A.prototype.copy=function(Ve,_t,xt,Wt){if(xt||(xt=0),!Wt&&Wt!==0&&(Wt=this.length),_t>=Ve.length&&(_t=Ve.length),_t||(_t=0),Wt>0&&Wt=this.length)throw new RangeError("sourceStart out of bounds");if(Wt<0)throw new RangeError("sourceEnd out of bounds");Wt>this.length&&(Wt=this.length),Ve.length-_t=0;--Ot)Ve[Ot+_t]=this[Ot+xt];else if(on<1e3||!A.TYPED_ARRAY_SUPPORT)for(Ot=0;Ot>>0,xt=xt===void 0?this.length:xt>>>0,Ve||(Ve=0);var Ot;if(typeof Ve=="number")for(Ot=_t;Ot55295&&_t<57344){if(!Wt){if(_t>56319){(Ve-=3)>-1&&on.push(239,191,189);continue}else if(Ot+1===xt){(Ve-=3)>-1&&on.push(239,191,189);continue}Wt=_t;continue}if(_t<56320){(Ve-=3)>-1&&on.push(239,191,189),Wt=_t;continue}_t=(Wt-55296<<10|_t-56320)+65536}else Wt&&(Ve-=3)>-1&&on.push(239,191,189);if(Wt=null,_t<128){if((Ve-=1)<0)break;on.push(_t)}else if(_t<2048){if((Ve-=2)<0)break;on.push(_t>>6|192,_t&63|128)}else if(_t<65536){if((Ve-=3)<0)break;on.push(_t>>12|224,_t>>6&63|128,_t&63|128)}else if(_t<1114112){if((Ve-=4)<0)break;on.push(_t>>18|240,_t>>12&63|128,_t>>6&63|128,_t&63|128)}else throw new Error("Invalid code point")}return on}function _o(ln){for(var Ve=[],_t=0;_t>8,Wt=_t%256,on.push(Wt),on.push(xt);return on}function Bi(ln){return I.toByteArray(yr(ln))}function Ci(ln,Ve,_t,xt){for(var Wt=0;Wt=Ve.length||Wt>=ln.length);++Wt)Ve[Wt+_t]=ln[Wt];return Wt}function io(ln){return ln!==ln}},97683:function(nt,V,m){"use strict";var y=m(6635),I=m(71262),b=I(y("String.prototype.indexOf"));nt.exports=function(k,N){var w=y(k,!!N);return typeof w=="function"&&b(k,".prototype.")>-1?I(w):w}},71262:function(nt,V,m){"use strict";var y=m(36723),I=m(6635),b=m(59662),z=I("%TypeError%"),k=I("%Function.prototype.apply%"),N=I("%Function.prototype.call%"),w=I("%Reflect.apply%",!0)||y.call(N,k),A=I("%Object.defineProperty%",!0),C=I("%Math.max%");if(A)try{A({},"a",{value:1})}catch(S){A=null}nt.exports=function(P){if(typeof P!="function")throw new z("a function is required");var W=w(y,N,arguments);return b(W,1+C(0,P.length-(arguments.length-1)),!0)};var f=function(){return w(y,k,arguments)};A?A(nt.exports,"apply",{value:f}):nt.exports.apply=f},28594:function(nt){(function(m,y){nt.exports=y()})(this,function(){return function(){var V={686:function(I,b,z){"use strict";z.d(b,{default:function(){return He}});var k=z(279),N=z.n(k),w=z(370),A=z.n(w),C=z(817),f=z.n(C);function S(wt){try{return document.execCommand(wt)}catch(dt){return!1}}var P=function(dt){var Bt=f()(dt);return S("cut"),Bt},W=P;function ne(wt){var dt=document.documentElement.getAttribute("dir")==="rtl",Bt=document.createElement("textarea");Bt.style.fontSize="12pt",Bt.style.border="0",Bt.style.padding="0",Bt.style.margin="0",Bt.style.position="absolute",Bt.style[dt?"right":"left"]="-9999px";var gt=window.pageYOffset||document.documentElement.scrollTop;return Bt.style.top="".concat(gt,"px"),Bt.setAttribute("readonly",""),Bt.value=wt,Bt}var re=function(dt,Bt){var gt=ne(dt);Bt.container.appendChild(gt);var _n=f()(gt);return S("copy"),gt.remove(),_n},ce=function(dt){var Bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},gt="";return typeof dt=="string"?gt=re(dt,Bt):dt instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(dt==null?void 0:dt.type)?gt=re(dt.value,Bt):(gt=f()(dt),S("copy")),gt},pe=ce;function he(wt){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?he=function(Bt){return typeof Bt}:he=function(Bt){return Bt&&typeof Symbol=="function"&&Bt.constructor===Symbol&&Bt!==Symbol.prototype?"symbol":typeof Bt},he(wt)}var fe=function(){var dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Bt=dt.action,gt=Bt===void 0?"copy":Bt,_n=dt.container,Bn=dt.target,Er=dt.text;if(gt!=="copy"&>!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(Bn!==void 0)if(Bn&&he(Bn)==="object"&&Bn.nodeType===1){if(gt==="copy"&&Bn.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(gt==="cut"&&(Bn.hasAttribute("readonly")||Bn.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(Er)return pe(Er,{container:_n});if(Bn)return gt==="cut"?W(Bn):pe(Bn,{container:_n})},Be=fe;function Ie(wt){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ie=function(Bt){return typeof Bt}:Ie=function(Bt){return Bt&&typeof Symbol=="function"&&Bt.constructor===Symbol&&Bt!==Symbol.prototype?"symbol":typeof Bt},Ie(wt)}function We(wt,dt){if(!(wt instanceof dt))throw new TypeError("Cannot call a class as a function")}function De(wt,dt){for(var Bt=0;Bt0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof _n.action=="function"?_n.action:this.defaultAction,this.target=typeof _n.target=="function"?_n.target:this.defaultTarget,this.text=typeof _n.text=="function"?_n.text:this.defaultText,this.container=Ie(_n.container)==="object"?_n.container:document.body}},{key:"listenClick",value:function(_n){var Bn=this;this.listener=A()(_n,"click",function(Er){return Bn.onClick(Er)})}},{key:"onClick",value:function(_n){var Bn=_n.delegateTarget||_n.currentTarget,Er=this.action(Bn)||"copy",Yr=Be({action:Er,container:this.container,target:this.target(Bn),text:this.text(Bn)});this.emit(Yr?"success":"error",{action:Er,text:Yr,trigger:Bn,clearSelection:function(){Bn&&Bn.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(_n){return Pt("action",_n)}},{key:"defaultTarget",value:function(_n){var Bn=Pt("target",_n);if(Bn)return document.querySelector(Bn)}},{key:"defaultText",value:function(_n){return Pt("text",_n)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(_n){var Bn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return pe(_n,Bn)}},{key:"cut",value:function(_n){return W(_n)}},{key:"isSupported",value:function(){var _n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],Bn=typeof _n=="string"?[_n]:_n,Er=!!document.queryCommandSupported;return Bn.forEach(function(Yr){Er=Er&&!!document.queryCommandSupported(Yr)}),Er}}]),Bt}(N()),He=ct},828:function(I){var b=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var z=Element.prototype;z.matches=z.matchesSelector||z.mozMatchesSelector||z.msMatchesSelector||z.oMatchesSelector||z.webkitMatchesSelector}function k(N,w){for(;N&&N.nodeType!==b;){if(typeof N.matches=="function"&&N.matches(w))return N;N=N.parentNode}}I.exports=k},438:function(I,b,z){var k=z(828);function N(C,f,S,P,W){var ne=A.apply(this,arguments);return C.addEventListener(S,ne,W),{destroy:function(){C.removeEventListener(S,ne,W)}}}function w(C,f,S,P,W){return typeof C.addEventListener=="function"?N.apply(null,arguments):typeof S=="function"?N.bind(null,document).apply(null,arguments):(typeof C=="string"&&(C=document.querySelectorAll(C)),Array.prototype.map.call(C,function(ne){return N(ne,f,S,P,W)}))}function A(C,f,S,P){return function(W){W.delegateTarget=k(W.target,f),W.delegateTarget&&P.call(C,W)}}I.exports=w},879:function(I,b){b.node=function(z){return z!==void 0&&z instanceof HTMLElement&&z.nodeType===1},b.nodeList=function(z){var k=Object.prototype.toString.call(z);return z!==void 0&&(k==="[object NodeList]"||k==="[object HTMLCollection]")&&"length"in z&&(z.length===0||b.node(z[0]))},b.string=function(z){return typeof z=="string"||z instanceof String},b.fn=function(z){var k=Object.prototype.toString.call(z);return k==="[object Function]"}},370:function(I,b,z){var k=z(879),N=z(438);function w(S,P,W){if(!S&&!P&&!W)throw new Error("Missing required arguments");if(!k.string(P))throw new TypeError("Second argument must be a String");if(!k.fn(W))throw new TypeError("Third argument must be a Function");if(k.node(S))return A(S,P,W);if(k.nodeList(S))return C(S,P,W);if(k.string(S))return f(S,P,W);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function A(S,P,W){return S.addEventListener(P,W),{destroy:function(){S.removeEventListener(P,W)}}}function C(S,P,W){return Array.prototype.forEach.call(S,function(ne){ne.addEventListener(P,W)}),{destroy:function(){Array.prototype.forEach.call(S,function(ne){ne.removeEventListener(P,W)})}}}function f(S,P,W){return N(document.body,S,P,W)}I.exports=w},817:function(I){function b(z){var k;if(z.nodeName==="SELECT")z.focus(),k=z.value;else if(z.nodeName==="INPUT"||z.nodeName==="TEXTAREA"){var N=z.hasAttribute("readonly");N||z.setAttribute("readonly",""),z.select(),z.setSelectionRange(0,z.value.length),N||z.removeAttribute("readonly"),k=z.value}else{z.hasAttribute("contenteditable")&&z.focus();var w=window.getSelection(),A=document.createRange();A.selectNodeContents(z),w.removeAllRanges(),w.addRange(A),k=w.toString()}return k}I.exports=b},279:function(I){function b(){}b.prototype={on:function(z,k,N){var w=this.e||(this.e={});return(w[z]||(w[z]=[])).push({fn:k,ctx:N}),this},once:function(z,k,N){var w=this;function A(){w.off(z,A),k.apply(N,arguments)}return A._=k,this.on(z,A,N)},emit:function(z){var k=[].slice.call(arguments,1),N=((this.e||(this.e={}))[z]||[]).slice(),w=0,A=N.length;for(w;w1&&(C-=1)),[C*360,f*100,ne*100]},b.rgb.hwb=function(k){const N=k[0],w=k[1];let A=k[2];const C=b.rgb.hsl(k)[0],f=1/255*Math.min(N,Math.min(w,A));return A=1-1/255*Math.max(N,Math.max(w,A)),[C,f*100,A*100]},b.rgb.cmyk=function(k){const N=k[0]/255,w=k[1]/255,A=k[2]/255,C=Math.min(1-N,1-w,1-A),f=(1-N-C)/(1-C)||0,S=(1-w-C)/(1-C)||0,P=(1-A-C)/(1-C)||0;return[f*100,S*100,P*100,C*100]};function z(k,N){return oy(k[0]-N[0],2)+oy(k[1]-N[1],2)+oy(k[2]-N[2],2)}b.rgb.keyword=function(k){const N=I[k];if(N)return N;let w=1/0,A;for(const C of Object.keys(y)){const f=y[C],S=z(k,f);S.04045?oy((N+.055)/1.055,2.4):N/12.92,w=w>.04045?oy((w+.055)/1.055,2.4):w/12.92,A=A>.04045?oy((A+.055)/1.055,2.4):A/12.92;const C=N*.4124+w*.3576+A*.1805,f=N*.2126+w*.7152+A*.0722,S=N*.0193+w*.1192+A*.9505;return[C*100,f*100,S*100]},b.rgb.lab=function(k){const N=b.rgb.xyz(k);let w=N[0],A=N[1],C=N[2];w/=95.047,A/=100,C/=108.883,w=w>.008856?oy(w,1/3):7.787*w+16/116,A=A>.008856?oy(A,1/3):7.787*A+16/116,C=C>.008856?oy(C,1/3):7.787*C+16/116;const f=116*A-16,S=500*(w-A),P=200*(A-C);return[f,S,P]},b.hsl.rgb=function(k){const N=k[0]/360,w=k[1]/100,A=k[2]/100;let C,f,S;if(w===0)return S=A*255,[S,S,S];A<.5?C=A*(1+w):C=A+w-A*w;const P=2*A-C,W=[0,0,0];for(let ne=0;ne<3;ne++)f=N+1/3*-(ne-1),f<0&&f++,f>1&&f--,6*f<1?S=P+(C-P)*6*f:2*f<1?S=C:3*f<2?S=P+(C-P)*(2/3-f)*6:S=P,W[ne]=S*255;return W},b.hsl.hsv=function(k){const N=k[0];let w=k[1]/100,A=k[2]/100,C=w;const f=Math.max(A,.01);A*=2,w*=A<=1?A:2-A,C*=f<=1?f:2-f;const S=(A+w)/2,P=A===0?2*C/(f+C):2*w/(A+w);return[N,P*100,S*100]},b.hsv.rgb=function(k){const N=k[0]/60,w=k[1]/100;let A=k[2]/100;const C=Math.floor(N)%6,f=N-Math.floor(N),S=255*A*(1-w),P=255*A*(1-w*f),W=255*A*(1-w*(1-f));switch(A*=255,C){case 0:return[A,W,S];case 1:return[P,A,S];case 2:return[S,A,W];case 3:return[S,P,A];case 4:return[W,S,A];case 5:return[A,S,P]}},b.hsv.hsl=function(k){const N=k[0],w=k[1]/100,A=k[2]/100,C=Math.max(A,.01);let f,S;S=(2-w)*A;const P=(2-w)*C;return f=w*C,f/=P<=1?P:2-P,f=f||0,S/=2,[N,f*100,S*100]},b.hwb.rgb=function(k){const N=k[0]/360;let w=k[1]/100,A=k[2]/100;const C=w+A;let f;C>1&&(w/=C,A/=C);const S=Math.floor(6*N),P=1-A;f=6*N-S,S&1&&(f=1-f);const W=w+f*(P-w);let ne,re,ce;switch(S){default:case 6:case 0:ne=P,re=W,ce=w;break;case 1:ne=W,re=P,ce=w;break;case 2:ne=w,re=P,ce=W;break;case 3:ne=w,re=W,ce=P;break;case 4:ne=W,re=w,ce=P;break;case 5:ne=P,re=w,ce=W;break}return[ne*255,re*255,ce*255]},b.cmyk.rgb=function(k){const N=k[0]/100,w=k[1]/100,A=k[2]/100,C=k[3]/100,f=1-Math.min(1,N*(1-C)+C),S=1-Math.min(1,w*(1-C)+C),P=1-Math.min(1,A*(1-C)+C);return[f*255,S*255,P*255]},b.xyz.rgb=function(k){const N=k[0]/100,w=k[1]/100,A=k[2]/100;let C,f,S;return C=N*3.2406+w*-1.5372+A*-.4986,f=N*-.9689+w*1.8758+A*.0415,S=N*.0557+w*-.204+A*1.057,C=C>.0031308?1.055*oy(C,1/2.4)-.055:C*12.92,f=f>.0031308?1.055*oy(f,1/2.4)-.055:f*12.92,S=S>.0031308?1.055*oy(S,1/2.4)-.055:S*12.92,C=Math.min(Math.max(0,C),1),f=Math.min(Math.max(0,f),1),S=Math.min(Math.max(0,S),1),[C*255,f*255,S*255]},b.xyz.lab=function(k){let N=k[0],w=k[1],A=k[2];N/=95.047,w/=100,A/=108.883,N=N>.008856?oy(N,1/3):7.787*N+16/116,w=w>.008856?oy(w,1/3):7.787*w+16/116,A=A>.008856?oy(A,1/3):7.787*A+16/116;const C=116*w-16,f=500*(N-w),S=200*(w-A);return[C,f,S]},b.lab.xyz=function(k){const N=k[0],w=k[1],A=k[2];let C,f,S;f=(N+16)/116,C=w/500+f,S=f-A/200;const P=oy(f,3),W=oy(C,3),ne=oy(S,3);return f=P>.008856?P:(f-16/116)/7.787,C=W>.008856?W:(C-16/116)/7.787,S=ne>.008856?ne:(S-16/116)/7.787,C*=95.047,f*=100,S*=108.883,[C,f,S]},b.lab.lch=function(k){const N=k[0],w=k[1],A=k[2];let C;C=Math.atan2(A,w)*360/2/Math.PI,C<0&&(C+=360);const S=Math.sqrt(w*w+A*A);return[N,S,C]},b.lch.lab=function(k){const N=k[0],w=k[1],C=k[2]/360*2*Math.PI,f=w*Math.cos(C),S=w*Math.sin(C);return[N,f,S]},b.rgb.ansi16=function(k,N=null){const[w,A,C]=k;let f=N===null?b.rgb.hsv(k)[2]:N;if(f=Math.round(f/50),f===0)return 30;let S=30+(Math.round(C/255)<<2|Math.round(A/255)<<1|Math.round(w/255));return f===2&&(S+=60),S},b.hsv.ansi16=function(k){return b.rgb.ansi16(b.hsv.rgb(k),k[2])},b.rgb.ansi256=function(k){const N=k[0],w=k[1],A=k[2];return N===w&&w===A?N<8?16:N>248?231:Math.round((N-8)/247*24)+232:16+36*Math.round(N/255*5)+6*Math.round(w/255*5)+Math.round(A/255*5)},b.ansi16.rgb=function(k){let N=k%10;if(N===0||N===7)return k>50&&(N+=3.5),N=N/10.5*255,[N,N,N];const w=(~~(k>50)+1)*.5,A=(N&1)*w*255,C=(N>>1&1)*w*255,f=(N>>2&1)*w*255;return[A,C,f]},b.ansi256.rgb=function(k){if(k>=232){const f=(k-232)*10+8;return[f,f,f]}k-=16;let N;const w=Math.floor(k/36)/5*255,A=Math.floor((N=k%36)/6)/5*255,C=N%6/5*255;return[w,A,C]},b.rgb.hex=function(k){const w=(((Math.round(k[0])&255)<<16)+((Math.round(k[1])&255)<<8)+(Math.round(k[2])&255)).toString(16).toUpperCase();return"000000".substring(w.length)+w},b.hex.rgb=function(k){const N=k.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!N)return[0,0,0];let w=N[0];N[0].length===3&&(w=w.split("").map(P=>P+P).join(""));const A=parseInt(w,16),C=A>>16&255,f=A>>8&255,S=A&255;return[C,f,S]},b.rgb.hcg=function(k){const N=k[0]/255,w=k[1]/255,A=k[2]/255,C=Math.max(Math.max(N,w),A),f=Math.min(Math.min(N,w),A),S=C-f;let P,W;return S<1?P=f/(1-S):P=0,S<=0?W=0:C===N?W=(w-A)/S%6:C===w?W=2+(A-N)/S:W=4+(N-w)/S,W/=6,W%=1,[W*360,S*100,P*100]},b.hsl.hcg=function(k){const N=k[1]/100,w=k[2]/100,A=w<.5?2*N*w:2*N*(1-w);let C=0;return A<1&&(C=(w-.5*A)/(1-A)),[k[0],A*100,C*100]},b.hsv.hcg=function(k){const N=k[1]/100,w=k[2]/100,A=N*w;let C=0;return A<1&&(C=(w-A)/(1-A)),[k[0],A*100,C*100]},b.hcg.rgb=function(k){const N=k[0]/360,w=k[1]/100,A=k[2]/100;if(w===0)return[A*255,A*255,A*255];const C=[0,0,0],f=N%1*6,S=f%1,P=1-S;let W=0;switch(Math.floor(f)){case 0:C[0]=1,C[1]=S,C[2]=0;break;case 1:C[0]=P,C[1]=1,C[2]=0;break;case 2:C[0]=0,C[1]=1,C[2]=S;break;case 3:C[0]=0,C[1]=P,C[2]=1;break;case 4:C[0]=S,C[1]=0,C[2]=1;break;default:C[0]=1,C[1]=0,C[2]=P}return W=(1-w)*A,[(w*C[0]+W)*255,(w*C[1]+W)*255,(w*C[2]+W)*255]},b.hcg.hsv=function(k){const N=k[1]/100,w=k[2]/100,A=N+w*(1-N);let C=0;return A>0&&(C=N/A),[k[0],C*100,A*100]},b.hcg.hsl=function(k){const N=k[1]/100,A=k[2]/100*(1-N)+.5*N;let C=0;return A>0&&A<.5?C=N/(2*A):A>=.5&&A<1&&(C=N/(2*(1-A))),[k[0],C*100,A*100]},b.hcg.hwb=function(k){const N=k[1]/100,w=k[2]/100,A=N+w*(1-N);return[k[0],(A-N)*100,(1-A)*100]},b.hwb.hcg=function(k){const N=k[1]/100,A=1-k[2]/100,C=A-N;let f=0;return C<1&&(f=(A-C)/(1-C)),[k[0],C*100,f*100]},b.apple.rgb=function(k){return[k[0]/65535*255,k[1]/65535*255,k[2]/65535*255]},b.rgb.apple=function(k){return[k[0]/255*65535,k[1]/255*65535,k[2]/255*65535]},b.gray.rgb=function(k){return[k[0]/100*255,k[0]/100*255,k[0]/100*255]},b.gray.hsl=function(k){return[0,0,k[0]]},b.gray.hsv=b.gray.hsl,b.gray.hwb=function(k){return[0,100,k[0]]},b.gray.cmyk=function(k){return[0,0,0,k[0]]},b.gray.lab=function(k){return[k[0],0,0]},b.gray.hex=function(k){const N=Math.round(k[0]/100*255)&255,A=((N<<16)+(N<<8)+N).toString(16).toUpperCase();return"000000".substring(A.length)+A},b.rgb.gray=function(k){return[(k[0]+k[1]+k[2])/3/255*100]}},41492:function(nt,V,m){const y=m(18135),I=m(40756),b={},z=Object.keys(y);function k(w){const A=function(...C){const f=C[0];return f==null?f:(f.length>1&&(C=f),w(C))};return"conversion"in w&&(A.conversion=w.conversion),A}function N(w){const A=function(...C){const f=C[0];if(f==null)return f;f.length>1&&(C=f);const S=w(C);if(typeof S=="object")for(let P=S.length,W=0;W{b[w]={},Object.defineProperty(b[w],"channels",{value:y[w].channels}),Object.defineProperty(b[w],"labels",{value:y[w].labels});const A=I(w);Object.keys(A).forEach(f=>{const S=A[f];b[w][f]=N(S),b[w][f].raw=k(S)})}),nt.exports=b},40756:function(nt,V,m){const y=m(18135);function I(){const N={},w=Object.keys(y);for(let A=w.length,C=0;C=4&&C[3]!==1&&(f=", "+C[3]),"hwb("+C[0]+", "+C[1]+"%, "+C[2]+"%"+f+")"},N.to.keyword=function(C){return z[C.slice(0,3)]};function w(C,f,S){return Math.min(Math.max(f,C),S)}function A(C){var f=Math.round(C).toString(16).toUpperCase();return f.length<2?"0"+f:f}},28170:function(nt,V,m){const y=m(75196),I=m(41492),b=["keyword","gray","hex"],z={};for(const W of Object.keys(I))z[[...I[W].labels].sort().join("")]=W;const k={};function N(W,ne){if(!(this instanceof N))return new N(W,ne);if(ne&&ne in b&&(ne=null),ne&&!(ne in I))throw new Error("Unknown model: "+ne);let re,ce;if(W==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(W instanceof N)this.model=W.model,this.color=[...W.color],this.valpha=W.valpha;else if(typeof W=="string"){const pe=y.get(W);if(pe===null)throw new Error("Unable to parse color from string: "+W);this.model=pe.model,ce=I[this.model].channels,this.color=pe.value.slice(0,ce),this.valpha=typeof pe.value[ce]=="number"?pe.value[ce]:1}else if(W.length>0){this.model=ne||"rgb",ce=I[this.model].channels;const pe=Array.prototype.slice.call(W,0,ce);this.color=P(pe,ce),this.valpha=typeof W[ce]=="number"?W[ce]:1}else if(typeof W=="number")this.model="rgb",this.color=[W>>16&255,W>>8&255,W&255],this.valpha=1;else{this.valpha=1;const pe=Object.keys(W);"alpha"in W&&(pe.splice(pe.indexOf("alpha"),1),this.valpha=typeof W.alpha=="number"?W.alpha:0);const he=pe.sort().join("");if(!(he in z))throw new Error("Unable to parse color from object: "+JSON.stringify(W));this.model=z[he];const{labels:fe}=I[this.model],Be=[];for(re=0;re(W%360+360)%360),saturationl:C("hsl",1,f(100)),lightness:C("hsl",2,f(100)),saturationv:C("hsv",1,f(100)),value:C("hsv",2,f(100)),chroma:C("hcg",1,f(100)),gray:C("hcg",2,f(100)),white:C("hwb",1,f(100)),wblack:C("hwb",2,f(100)),cyan:C("cmyk",0,f(100)),magenta:C("cmyk",1,f(100)),yellow:C("cmyk",2,f(100)),black:C("cmyk",3,f(100)),x:C("xyz",0,f(95.047)),y:C("xyz",1,f(100)),z:C("xyz",2,f(108.833)),l:C("lab",0,f(100)),a:C("lab",1),b:C("lab",2),keyword(W){return W!==void 0?new N(W):I[this.model].keyword(this.color)},hex(W){return W!==void 0?new N(W):y.to.hex(this.rgb().round().color)},hexa(W){if(W!==void 0)return new N(W);const ne=this.rgb().round().color;let re=Math.round(this.valpha*255).toString(16).toUpperCase();return re.length===1&&(re="0"+re),y.to.hex(ne)+re},rgbNumber(){const W=this.rgb().color;return(W[0]&255)<<16|(W[1]&255)<<8|W[2]&255},luminosity(){const W=this.rgb().color,ne=[];for(const[re,ce]of W.entries()){const pe=ce/255;ne[re]=pe<=.04045?pe/12.92:oy((pe+.055)/1.055,2.4)}return .2126*ne[0]+.7152*ne[1]+.0722*ne[2]},contrast(W){const ne=this.luminosity(),re=W.luminosity();return ne>re?(ne+.05)/(re+.05):(re+.05)/(ne+.05)},level(W){const ne=this.contrast(W);return ne>=7?"AAA":ne>=4.5?"AA":""},isDark(){const W=this.rgb().color;return(W[0]*2126+W[1]*7152+W[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const W=this.rgb();for(let ne=0;ne<3;ne++)W.color[ne]=255-W.color[ne];return W},lighten(W){const ne=this.hsl();return ne.color[2]+=ne.color[2]*W,ne},darken(W){const ne=this.hsl();return ne.color[2]-=ne.color[2]*W,ne},saturate(W){const ne=this.hsl();return ne.color[1]+=ne.color[1]*W,ne},desaturate(W){const ne=this.hsl();return ne.color[1]-=ne.color[1]*W,ne},whiten(W){const ne=this.hwb();return ne.color[1]+=ne.color[1]*W,ne},blacken(W){const ne=this.hwb();return ne.color[2]+=ne.color[2]*W,ne},grayscale(){const W=this.rgb().color,ne=W[0]*.3+W[1]*.59+W[2]*.11;return N.rgb(ne,ne,ne)},fade(W){return this.alpha(this.valpha-this.valpha*W)},opaquer(W){return this.alpha(this.valpha+this.valpha*W)},rotate(W){const ne=this.hsl();let re=ne.color[0];return re=(re+W)%360,re=re<0?360+re:re,ne.color[0]=re,ne},mix(W,ne){if(!W||!W.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof W);const re=W.rgb(),ce=this.rgb(),pe=ne===void 0?.5:ne,he=2*pe-1,fe=re.alpha()-ce.alpha(),Be=((he*fe===-1?he:(he+fe)/(1+he*fe))+1)/2,Ie=1-Be;return N.rgb(Be*re.red()+Ie*ce.red(),Be*re.green()+Ie*ce.green(),Be*re.blue()+Ie*ce.blue(),re.alpha()*pe+ce.alpha()*(1-pe))}};for(const W of Object.keys(I)){if(b.includes(W))continue;const{channels:ne}=I[W];N.prototype[W]=function(...re){return this.model===W?new N(this):re.length>0?new N(re,W):new N([...S(I[this.model][W].raw(this.color)),this.valpha],W)},N[W]=function(...re){let ce=re[0];return typeof ce=="number"&&(ce=P(re,ne)),new N(ce,W)}}function w(W,ne){return Number(W.toFixed(ne))}function A(W){return function(ne){return w(ne,W)}}function C(W,ne,re){W=Array.isArray(W)?W:[W];for(const ce of W)(k[ce]||(k[ce]=[]))[ne]=re;return W=W[0],function(ce){let pe;return ce!==void 0?(re&&(ce=re(ce)),pe=this[W](),pe.color[ne]=ce,pe):(pe=this[W]().color[ne],re&&(pe=re(pe)),pe)}}function f(W){return function(ne){return Math.max(0,Math.min(W,ne))}}function S(W){return Array.isArray(W)?W:[W]}function P(W,ne){for(let re=0;rewe||Ae.push({node:xe,dist:Pt})}for(;Ae.length&&!Ae.peek().node.children;){var ct=Ae.pop(),He=ct.node,wt=pe(He,We,De),dt=pe(He,ve,ye);if(ct.dist=We.minX&&Ie[0]<=We.maxX&&Ie[1]>=We.minY&&Ie[1]<=We.maxY}function f(Ie,We,De){for(var ve=Math.min(Ie[0],We[0]),ye=Math.min(Ie[1],We[1]),we=Math.max(Ie[0],We[0]),Ce=Math.max(Ie[1],We[1]),Ae=De.search({minX:ve,minY:ye,maxX:we,maxY:Ce}),me=0;me0!=S(Ie,We,ve)>0&&S(De,ve,Ie)>0!=S(De,ve,We)>0}function W(Ie){var We=Ie.p,De=Ie.next.p;return Ie.minX=Math.min(We[0],De[0]),Ie.minY=Math.min(We[1],De[1]),Ie.maxX=Math.max(We[0],De[0]),Ie.maxY=Math.max(We[1],De[1]),Ie}function ne(Ie){for(var We=Ie[0],De=Ie[0],ve=Ie[0],ye=Ie[0],we=0;weve[0]&&(ve=Ce),Ce[1]ye[1]&&(ye=Ce)}var Ae=[We,De,ve,ye],me=Ae.slice();for(we=0;we1?(ve=De[0],ye=De[1]):Ae>0&&(ve+=we*Ae,ye+=Ce*Ae)}return we=Ie[0]-ve,Ce=Ie[1]-ye,we*we+Ce*Ce}function he(Ie,We,De,ve,ye,we,Ce,Ae){var me=De-Ie,je=ve-We,xe=Ce-ye,Pt=Ae-we,ct=Ie-ye,He=We-we,wt=me*me+je*je,dt=me*xe+je*Pt,Bt=xe*xe+Pt*Pt,gt=me*ct+je*He,_n=xe*ct+Pt*He,Bn=wt*Bt-dt*dt,Er,Yr,oi,to,yo=Bn,yr=Bn;Bn===0?(Yr=0,yo=1,to=_n,yr=Bt):(Yr=dt*_n-Bt*gt,to=wt*_n-dt*gt,Yr<0?(Yr=0,to=_n,yr=Bt):Yr>yo&&(Yr=yo,to=_n+dt,yr=Bt)),to<0?(to=0,-gt<0?Yr=0:-gt>wt?Yr=yo:(Yr=-gt,yo=wt)):to>yr&&(to=yr,-gt+dt<0?Yr=0:-gt+dt>wt?Yr=yo:(Yr=-gt+dt,yo=wt)),Er=Yr===0?0:Yr/yo,oi=to===0?0:to/yr;var Po=(1-Er)*Ie+Er*De,as=(1-Er)*We+Er*ve,ge=(1-oi)*ye+oi*Ce,_o=(1-oi)*we+oi*Ae,ci=ge-Po,Bi=_o-as;return ci*ci+Bi*Bi}function fe(Ie,We){return Ie[0]===We[0]?Ie[1]-We[1]:Ie[0]-We[0]}function Be(Ie){Ie.sort(fe);for(var We=[],De=0;De=2&&S(We[We.length-2],We[We.length-1],Ie[De])<=0;)We.pop();We.push(Ie[De])}for(var ve=[],ye=Ie.length-1;ye>=0;ye--){for(;ve.length>=2&&S(ve[ve.length-2],ve[ve.length-1],Ie[ye])<=0;)ve.pop();ve.push(Ie[ye])}return ve.pop(),We.pop(),We.concat(ve)}},81622:function(nt,V){var m=typeof self!="undefined"?self:this,y=function(){function b(){this.fetch=!1,this.DOMException=m.DOMException}return b.prototype=m,new b}();(function(b){var z=function(k){var N={searchParams:"URLSearchParams"in b,iterable:"Symbol"in b&&"iterator"in Symbol,blob:"FileReader"in b&&"Blob"in b&&function(){try{return new Blob,!0}catch(me){return!1}}(),formData:"FormData"in b,arrayBuffer:"ArrayBuffer"in b};function w(me){return me&&DataView.prototype.isPrototypeOf(me)}if(N.arrayBuffer)var A=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],C=ArrayBuffer.isView||function(me){return me&&A.indexOf(Object.prototype.toString.call(me))>-1};function f(me){if(typeof me!="string"&&(me=String(me)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(me))throw new TypeError("Invalid character in header field name");return me.toLowerCase()}function S(me){return typeof me!="string"&&(me=String(me)),me}function P(me){var je={next:function(){var xe=me.shift();return{done:xe===void 0,value:xe}}};return N.iterable&&(je[Symbol.iterator]=function(){return je}),je}function W(me){this.map={},me instanceof W?me.forEach(function(je,xe){this.append(xe,je)},this):Array.isArray(me)?me.forEach(function(je){this.append(je[0],je[1])},this):me&&Object.getOwnPropertyNames(me).forEach(function(je){this.append(je,me[je])},this)}W.prototype.append=function(me,je){me=f(me),je=S(je);var xe=this.map[me];this.map[me]=xe?xe+", "+je:je},W.prototype.delete=function(me){delete this.map[f(me)]},W.prototype.get=function(me){return me=f(me),this.has(me)?this.map[me]:null},W.prototype.has=function(me){return this.map.hasOwnProperty(f(me))},W.prototype.set=function(me,je){this.map[f(me)]=S(je)},W.prototype.forEach=function(me,je){for(var xe in this.map)this.map.hasOwnProperty(xe)&&me.call(je,this.map[xe],xe,this)},W.prototype.keys=function(){var me=[];return this.forEach(function(je,xe){me.push(xe)}),P(me)},W.prototype.values=function(){var me=[];return this.forEach(function(je){me.push(je)}),P(me)},W.prototype.entries=function(){var me=[];return this.forEach(function(je,xe){me.push([xe,je])}),P(me)},N.iterable&&(W.prototype[Symbol.iterator]=W.prototype.entries);function ne(me){if(me.bodyUsed)return Promise.reject(new TypeError("Already read"));me.bodyUsed=!0}function re(me){return new Promise(function(je,xe){me.onload=function(){je(me.result)},me.onerror=function(){xe(me.error)}})}function ce(me){var je=new FileReader,xe=re(je);return je.readAsArrayBuffer(me),xe}function pe(me){var je=new FileReader,xe=re(je);return je.readAsText(me),xe}function he(me){for(var je=new Uint8Array(me),xe=new Array(je.length),Pt=0;Pt-1?je:me}function De(me,je){je=je||{};var xe=je.body;if(me instanceof De){if(me.bodyUsed)throw new TypeError("Already read");this.url=me.url,this.credentials=me.credentials,je.headers||(this.headers=new W(me.headers)),this.method=me.method,this.mode=me.mode,this.signal=me.signal,!xe&&me._bodyInit!=null&&(xe=me._bodyInit,me.bodyUsed=!0)}else this.url=String(me);if(this.credentials=je.credentials||this.credentials||"same-origin",(je.headers||!this.headers)&&(this.headers=new W(je.headers)),this.method=We(je.method||this.method||"GET"),this.mode=je.mode||this.mode||null,this.signal=je.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&xe)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(xe)}De.prototype.clone=function(){return new De(this,{body:this._bodyInit})};function ve(me){var je=new FormData;return me.trim().split("&").forEach(function(xe){if(xe){var Pt=xe.split("="),ct=Pt.shift().replace(/\+/g," "),He=Pt.join("=").replace(/\+/g," ");je.append(decodeURIComponent(ct),decodeURIComponent(He))}}),je}function ye(me){var je=new W,xe=me.replace(/\r?\n[\t ]+/g," ");return xe.split(/\r?\n/).forEach(function(Pt){var ct=Pt.split(":"),He=ct.shift().trim();if(He){var wt=ct.join(":").trim();je.append(He,wt)}}),je}Be.call(De.prototype);function we(me,je){je||(je={}),this.type="default",this.status=je.status===void 0?200:je.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in je?je.statusText:"OK",this.headers=new W(je.headers),this.url=je.url||"",this._initBody(me)}Be.call(we.prototype),we.prototype.clone=function(){return new we(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new W(this.headers),url:this.url})},we.error=function(){var me=new we(null,{status:0,statusText:""});return me.type="error",me};var Ce=[301,302,303,307,308];we.redirect=function(me,je){if(Ce.indexOf(je)===-1)throw new RangeError("Invalid status code");return new we(null,{status:je,headers:{location:me}})},k.DOMException=b.DOMException;try{new k.DOMException}catch(me){k.DOMException=function(je,xe){this.message=je,this.name=xe;var Pt=Error(je);this.stack=Pt.stack},k.DOMException.prototype=Object.create(Error.prototype),k.DOMException.prototype.constructor=k.DOMException}function Ae(me,je){return new Promise(function(xe,Pt){var ct=new De(me,je);if(ct.signal&&ct.signal.aborted)return Pt(new k.DOMException("Aborted","AbortError"));var He=new XMLHttpRequest;function wt(){He.abort()}He.onload=function(){var dt={status:He.status,statusText:He.statusText,headers:ye(He.getAllResponseHeaders()||"")};dt.url="responseURL"in He?He.responseURL:dt.headers.get("X-Request-URL");var Bt="response"in He?He.response:He.responseText;xe(new we(Bt,dt))},He.onerror=function(){Pt(new TypeError("Network request failed"))},He.ontimeout=function(){Pt(new TypeError("Network request failed"))},He.onabort=function(){Pt(new k.DOMException("Aborted","AbortError"))},He.open(ct.method,ct.url,!0),ct.credentials==="include"?He.withCredentials=!0:ct.credentials==="omit"&&(He.withCredentials=!1),"responseType"in He&&N.blob&&(He.responseType="blob"),ct.headers.forEach(function(dt,Bt){He.setRequestHeader(Bt,dt)}),ct.signal&&(ct.signal.addEventListener("abort",wt),He.onreadystatechange=function(){He.readyState===4&&ct.signal.removeEventListener("abort",wt)}),He.send(typeof ct._bodyInit=="undefined"?null:ct._bodyInit)})}return Ae.polyfill=!0,b.fetch||(b.fetch=Ae,b.Headers=W,b.Request=De,b.Response=we),k.Headers=W,k.Request=De,k.Response=we,k.fetch=Ae,Object.defineProperty(k,"__esModule",{value:!0}),k}({})})(y),y.fetch.ponyfill=!0,delete y.fetch.polyfill;var I=y;V=I.fetch,V.default=I.fetch,V.fetch=I.fetch,V.Headers=I.Headers,V.Request=I.Request,V.Response=I.Response,nt.exports=V},57965:function(nt,V,m){"use strict";m.d(V,{j2:function(){return y},b4:function(){return w},YF:function(){return I},We:function(){return A},TS:function(){return Be},VR:function(){return We},G9:function(){return ce},ly:function(){return pe},sd:function(){return re}});function y(De,ve){return Deve?1:De>=ve?0:NaN}function I(De){return De.length===1&&(De=b(De)),{left:function(ve,ye,we,Ce){for(we==null&&(we=0),Ce==null&&(Ce=ve.length);we>>1;De(ve[Ae],ye)<0?we=Ae+1:Ce=Ae}return we},right:function(ve,ye,we,Ce){for(we==null&&(we=0),Ce==null&&(Ce=ve.length);we>>1;De(ve[Ae],ye)>0?Ce=Ae:we=Ae+1}return we}}}function b(De){return function(ve,ye){return y(De(ve),ye)}}var z=I(y),k=z.right,N=z.left,w=k;function A(De,ve){var ye=De.length,we=-1,Ce,Ae,me;if(ve==null){for(;++we=Ce)for(Ae=me=Ce;++weCe&&(Ae=Ce),me=Ce)for(Ae=me=Ce;++weCe&&(Ae=Ce),me0)return[De];if((we=ve0)for(De=Math.ceil(De/je),ve=Math.floor(ve/je),me=new Array(Ae=Math.ceil(ve-De+1));++Ce=0?(Ae>=P?10:Ae>=W?5:Ae>=ne?2:1)*Math.pow(10,Ce):-Math.pow(10,-Ce)/(Ae>=P?10:Ae>=W?5:Ae>=ne?2:1)}function pe(De,ve,ye){var we=Math.abs(ve-De)/Math.max(0,ye),Ce=Math.pow(10,Math.floor(Math.log(we)/Math.LN10)),Ae=we/Ce;return Ae>=P?Ce*=10:Ae>=W?Ce*=5:Ae>=ne&&(Ce*=2),veHe;)wt.pop(),--dt;var Bt=new Array(dt+1),gt;for(Ae=0;Ae<=dt;++Ae)gt=Bt[Ae]=[],gt.x0=Ae>0?wt[Ae-1]:ct,gt.x1=Ae=0;)for(me=De[ve],ye=me.length;--ye>=0;)Ae[--Ce]=me[ye];return Ae}function Ie(De){return De===null?NaN:+De}function We(De,ve,ye){if(ye==null&&(ye=Ie),!!(we=De.length)){if((ve=+ve)<=0||we<2)return+ye(De[0],0,De);if(ve>=1)return+ye(De[we-1],we-1,De);var we,Ce=(we-1)*ve,Ae=Math.floor(Ce),me=+ye(De[Ae],Ae,De),je=+ye(De[Ae+1],Ae+1,De);return me+(je-me)*(Ce-Ae)}}},9498:function(nt){(function(V,m){nt.exports=m()})(this,function(){"use strict";var V=1e3,m=6e4,y=36e5,I="millisecond",b="second",z="minute",k="hour",N="day",w="week",A="month",C="quarter",f="year",S="date",P="Invalid Date",W=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,ne=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,re={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Ce){var Ae=["th","st","nd","rd"],me=Ce%100;return"["+Ce+(Ae[(me-20)%10]||Ae[me]||Ae[0])+"]"}},ce=function(Ce,Ae,me){var je=String(Ce);return!je||je.length>=Ae?Ce:""+Array(Ae+1-je.length).join(me)+Ce},pe={s:ce,z:function(Ce){var Ae=-Ce.utcOffset(),me=Math.abs(Ae),je=Math.floor(me/60),xe=me%60;return(Ae<=0?"+":"-")+ce(je,2,"0")+":"+ce(xe,2,"0")},m:function Ce(Ae,me){if(Ae.date()1)return Ce(ct[0])}else{var He=Ae.name;fe[He]=Ae,xe=He}return!je&&xe&&(he=xe),xe||!je&&he},De=function(Ce,Ae){if(Ie(Ce))return Ce.clone();var me=typeof Ae=="object"?Ae:{};return me.date=Ce,me.args=arguments,new ye(me)},ve=pe;ve.l=We,ve.i=Ie,ve.w=function(Ce,Ae){return De(Ce,{locale:Ae.$L,utc:Ae.$u,x:Ae.$x,$offset:Ae.$offset})};var ye=function(){function Ce(me){this.$L=We(me.locale,null,!0),this.parse(me),this.$x=this.$x||me.x||{},this[Be]=!0}var Ae=Ce.prototype;return Ae.parse=function(me){this.$d=function(je){var xe=je.date,Pt=je.utc;if(xe===null)return new Date(NaN);if(ve.u(xe))return new Date;if(xe instanceof Date)return new Date(xe);if(typeof xe=="string"&&!/Z$/i.test(xe)){var ct=xe.match(W);if(ct){var He=ct[2]-1||0,wt=(ct[7]||"0").substring(0,3);return Pt?new Date(Date.UTC(ct[1],He,ct[3]||1,ct[4]||0,ct[5]||0,ct[6]||0,wt)):new Date(ct[1],He,ct[3]||1,ct[4]||0,ct[5]||0,ct[6]||0,wt)}}return new Date(xe)}(me),this.init()},Ae.init=function(){var me=this.$d;this.$y=me.getFullYear(),this.$M=me.getMonth(),this.$D=me.getDate(),this.$W=me.getDay(),this.$H=me.getHours(),this.$m=me.getMinutes(),this.$s=me.getSeconds(),this.$ms=me.getMilliseconds()},Ae.$utils=function(){return ve},Ae.isValid=function(){return this.$d.toString()!==P},Ae.isSame=function(me,je){var xe=De(me);return this.startOf(je)<=xe&&xe<=this.endOf(je)},Ae.isAfter=function(me,je){return De(me)0&&typeof P[0]!="number")}function S(P,W,ne){var re,ce;if(typeof P!=typeof W||C(P)||C(W)||P.prototype!==W.prototype||I(P)!==I(W))return!1;var pe=z(P),he=z(W);if(pe!==he)return!1;if(pe||he)return P.source===W.source&&k(P)===k(W);if(N(P)&&N(W))return w.call(P)===w.call(W);var fe=f(P),Be=f(W);if(fe!==Be)return!1;if(fe||Be){if(P.length!==W.length)return!1;for(re=0;re=0;re--)if(Ie[re]!=We[re])return!1;for(re=Ie.length-1;re>=0;re--)if(ce=Ie[re],!A(P[ce],W[ce],ne))return!1;return!0}nt.exports=A},51494:function(nt,V,m){"use strict";var y=m(15262)(),I=m(6635),b=y&&I("%Object.defineProperty%",!0);if(b)try{b({},"a",{value:1})}catch(w){b=!1}var z=I("%SyntaxError%"),k=I("%TypeError%"),N=m(67747);nt.exports=function(A,C,f){if(!A||typeof A!="object"&&typeof A!="function")throw new k("`obj` must be an object or a function`");if(typeof C!="string"&&typeof C!="symbol")throw new k("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new k("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new k("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new k("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new k("`loose`, if provided, must be a boolean");var S=arguments.length>3?arguments[3]:null,P=arguments.length>4?arguments[4]:null,W=arguments.length>5?arguments[5]:null,ne=arguments.length>6?arguments[6]:!1,re=!!N&&N(A,C);if(b)b(A,C,{configurable:W===null&&re?re.configurable:!W,enumerable:S===null&&re?re.enumerable:!S,value:f,writable:P===null&&re?re.writable:!P});else if(ne||!S&&!P&&!W)A[C]=f;else throw new z("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}},8263:function(nt,V,m){"use strict";var y=m(64253),I=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",b=Object.prototype.toString,z=Array.prototype.concat,k=m(51494),N=function(f){return typeof f=="function"&&b.call(f)==="[object Function]"},w=m(15262)(),A=function(f,S,P,W){if(S in f){if(W===!0){if(f[S]===P)return}else if(!N(W)||!W())return}w?k(f,S,P,!0):k(f,S,P)},C=function(f,S){var P=arguments.length>2?arguments[2]:{},W=y(S);I&&(W=z.call(W,Object.getOwnPropertySymbols(S)));for(var ne=0;ne=this.minPts&&(y=this._mergeArrays(y,z))}this._assigned[b]!==1&&this._addToCluster(b,m)}},V.prototype._addToCluster=function(m,y){this.clusters[y].push(m),this._assigned[m]=1},V.prototype._regionQuery=function(m){for(var y=[],I=0;I0){for(var A=0;A=0);return y},V.prototype.assign=function(){for(var m=!1,y=this.dataset.length,I,b=0;b=this.minPts)return k}},I.prototype._regionQuery=function(b,z){z=z||this.epsilon;for(var k=[],N=0,w=this.dataset.length;Nz&&(I=b):y80*ct){gt=Bn=xe[0],_n=Er=xe[1];for(var yo=ct;yoBn&&(Bn=Yr),oi>Er&&(Er=oi);to=Math.max(Bn-gt,Er-_n),to=to!==0?32767/to:0}return I(dt,Bt,ct,gt,_n,to,0),Bt}function m(xe,Pt,ct,He,wt){var dt,Bt;if(wt===je(xe,Pt,ct,He)>0)for(dt=Pt;dt=Pt;dt-=He)Bt=Ce(dt,xe[dt],xe[dt+1],Bt);return Bt&&fe(Bt,Bt.next)&&(Ae(Bt),Bt=Bt.next),Bt}function y(xe,Pt){if(!xe)return xe;Pt||(Pt=xe);var ct=xe,He;do if(He=!1,!ct.steiner&&(fe(ct,ct.next)||he(ct.prev,ct,ct.next)===0)){if(Ae(ct),ct=Pt=ct.prev,ct===ct.next)break;He=!0}else ct=ct.next;while(He||ct!==Pt);return Pt}function I(xe,Pt,ct,He,wt,dt,Bt){if(xe){!Bt&&dt&&P(xe,He,wt,dt);for(var gt=xe,_n,Bn;xe.prev!==xe.next;){if(_n=xe.prev,Bn=xe.next,dt?z(xe,He,wt,dt):b(xe)){Pt.push(_n.i/ct|0),Pt.push(xe.i/ct|0),Pt.push(Bn.i/ct|0),Ae(xe),xe=Bn.next,gt=Bn.next;continue}if(xe=Bn,xe===gt){Bt?Bt===1?(xe=k(y(xe),Pt,ct),I(xe,Pt,ct,He,wt,dt,2)):Bt===2&&N(xe,Pt,ct,He,wt,dt):I(y(xe),Pt,ct,He,wt,dt,1);break}}}}function b(xe){var Pt=xe.prev,ct=xe,He=xe.next;if(he(Pt,ct,He)>=0)return!1;for(var wt=Pt.x,dt=ct.x,Bt=He.x,gt=Pt.y,_n=ct.y,Bn=He.y,Er=wtdt?wt>Bt?wt:Bt:dt>Bt?dt:Bt,to=gt>_n?gt>Bn?gt:Bn:_n>Bn?_n:Bn,yo=He.next;yo!==Pt;){if(yo.x>=Er&&yo.x<=oi&&yo.y>=Yr&&yo.y<=to&&ce(wt,gt,dt,_n,Bt,Bn,yo.x,yo.y)&&he(yo.prev,yo,yo.next)>=0)return!1;yo=yo.next}return!0}function z(xe,Pt,ct,He){var wt=xe.prev,dt=xe,Bt=xe.next;if(he(wt,dt,Bt)>=0)return!1;for(var gt=wt.x,_n=dt.x,Bn=Bt.x,Er=wt.y,Yr=dt.y,oi=Bt.y,to=gt<_n?gt_n?gt>Bn?gt:Bn:_n>Bn?_n:Bn,Po=Er>Yr?Er>oi?Er:oi:Yr>oi?Yr:oi,as=ne(to,yo,Pt,ct,He),ge=ne(yr,Po,Pt,ct,He),_o=xe.prevZ,ci=xe.nextZ;_o&&_o.z>=as&&ci&&ci.z<=ge;){if(_o.x>=to&&_o.x<=yr&&_o.y>=yo&&_o.y<=Po&&_o!==wt&&_o!==Bt&&ce(gt,Er,_n,Yr,Bn,oi,_o.x,_o.y)&&he(_o.prev,_o,_o.next)>=0||(_o=_o.prevZ,ci.x>=to&&ci.x<=yr&&ci.y>=yo&&ci.y<=Po&&ci!==wt&&ci!==Bt&&ce(gt,Er,_n,Yr,Bn,oi,ci.x,ci.y)&&he(ci.prev,ci,ci.next)>=0))return!1;ci=ci.nextZ}for(;_o&&_o.z>=as;){if(_o.x>=to&&_o.x<=yr&&_o.y>=yo&&_o.y<=Po&&_o!==wt&&_o!==Bt&&ce(gt,Er,_n,Yr,Bn,oi,_o.x,_o.y)&&he(_o.prev,_o,_o.next)>=0)return!1;_o=_o.prevZ}for(;ci&&ci.z<=ge;){if(ci.x>=to&&ci.x<=yr&&ci.y>=yo&&ci.y<=Po&&ci!==wt&&ci!==Bt&&ce(gt,Er,_n,Yr,Bn,oi,ci.x,ci.y)&&he(ci.prev,ci,ci.next)>=0)return!1;ci=ci.nextZ}return!0}function k(xe,Pt,ct){var He=xe;do{var wt=He.prev,dt=He.next.next;!fe(wt,dt)&&Be(wt,He,He.next,dt)&&ve(wt,dt)&&ve(dt,wt)&&(Pt.push(wt.i/ct|0),Pt.push(He.i/ct|0),Pt.push(dt.i/ct|0),Ae(He),Ae(He.next),He=xe=dt),He=He.next}while(He!==xe);return y(He)}function N(xe,Pt,ct,He,wt,dt){var Bt=xe;do{for(var gt=Bt.next.next;gt!==Bt.prev;){if(Bt.i!==gt.i&&pe(Bt,gt)){var _n=we(Bt,gt);Bt=y(Bt,Bt.next),_n=y(_n,_n.next),I(Bt,Pt,ct,He,wt,dt,0),I(_n,Pt,ct,He,wt,dt,0);return}gt=gt.next}Bt=Bt.next}while(Bt!==xe)}function w(xe,Pt,ct,He){var wt=[],dt,Bt,gt,_n,Bn;for(dt=0,Bt=Pt.length;dt=ct.next.y&&ct.next.y!==ct.y){var gt=ct.x+(wt-ct.y)*(ct.next.x-ct.x)/(ct.next.y-ct.y);if(gt<=He&>>dt&&(dt=gt,Bt=ct.x=ct.x&&ct.x>=Bn&&He!==ct.x&&ce(wtBt.x||ct.x===Bt.x&&S(Bt,ct)))&&(Bt=ct,Yr=oi)),ct=ct.next;while(ct!==_n);return Bt}function S(xe,Pt){return he(xe.prev,xe,Pt.prev)<0&&he(Pt.next,xe,xe.next)<0}function P(xe,Pt,ct,He){var wt=xe;do wt.z===0&&(wt.z=ne(wt.x,wt.y,Pt,ct,He)),wt.prevZ=wt.prev,wt.nextZ=wt.next,wt=wt.next;while(wt!==xe);wt.prevZ.nextZ=null,wt.prevZ=null,W(wt)}function W(xe){var Pt,ct,He,wt,dt,Bt,gt,_n,Bn=1;do{for(ct=xe,xe=null,dt=null,Bt=0;ct;){for(Bt++,He=ct,gt=0,Pt=0;Pt0||_n>0&&He;)gt!==0&&(_n===0||!He||ct.z<=He.z)?(wt=ct,ct=ct.nextZ,gt--):(wt=He,He=He.nextZ,_n--),dt?dt.nextZ=wt:xe=wt,wt.prevZ=dt,dt=wt;ct=He}dt.nextZ=null,Bn*=2}while(Bt>1);return xe}function ne(xe,Pt,ct,He,wt){return xe=(xe-ct)*wt|0,Pt=(Pt-He)*wt|0,xe=(xe|xe<<8)&16711935,xe=(xe|xe<<4)&252645135,xe=(xe|xe<<2)&858993459,xe=(xe|xe<<1)&1431655765,Pt=(Pt|Pt<<8)&16711935,Pt=(Pt|Pt<<4)&252645135,Pt=(Pt|Pt<<2)&858993459,Pt=(Pt|Pt<<1)&1431655765,xe|Pt<<1}function re(xe){var Pt=xe,ct=xe;do(Pt.x=(xe-Bt)*(dt-gt)&&(xe-Bt)*(He-gt)>=(ct-Bt)*(Pt-gt)&&(ct-Bt)*(dt-gt)>=(wt-Bt)*(He-gt)}function pe(xe,Pt){return xe.next.i!==Pt.i&&xe.prev.i!==Pt.i&&!De(xe,Pt)&&(ve(xe,Pt)&&ve(Pt,xe)&&ye(xe,Pt)&&(he(xe.prev,xe,Pt.prev)||he(xe,Pt.prev,Pt))||fe(xe,Pt)&&he(xe.prev,xe,xe.next)>0&&he(Pt.prev,Pt,Pt.next)>0)}function he(xe,Pt,ct){return(Pt.y-xe.y)*(ct.x-Pt.x)-(Pt.x-xe.x)*(ct.y-Pt.y)}function fe(xe,Pt){return xe.x===Pt.x&&xe.y===Pt.y}function Be(xe,Pt,ct,He){var wt=We(he(xe,Pt,ct)),dt=We(he(xe,Pt,He)),Bt=We(he(ct,He,xe)),gt=We(he(ct,He,Pt));return!!(wt!==dt&&Bt!==gt||wt===0&&Ie(xe,ct,Pt)||dt===0&&Ie(xe,He,Pt)||Bt===0&&Ie(ct,xe,He)||gt===0&&Ie(ct,Pt,He))}function Ie(xe,Pt,ct){return Pt.x<=Math.max(xe.x,ct.x)&&Pt.x>=Math.min(xe.x,ct.x)&&Pt.y<=Math.max(xe.y,ct.y)&&Pt.y>=Math.min(xe.y,ct.y)}function We(xe){return xe>0?1:xe<0?-1:0}function De(xe,Pt){var ct=xe;do{if(ct.i!==xe.i&&ct.next.i!==xe.i&&ct.i!==Pt.i&&ct.next.i!==Pt.i&&Be(ct,ct.next,xe,Pt))return!0;ct=ct.next}while(ct!==xe);return!1}function ve(xe,Pt){return he(xe.prev,xe,xe.next)<0?he(xe,Pt,xe.next)>=0&&he(xe,xe.prev,Pt)>=0:he(xe,Pt,xe.prev)<0||he(xe,xe.next,Pt)<0}function ye(xe,Pt){var ct=xe,He=!1,wt=(xe.x+Pt.x)/2,dt=(xe.y+Pt.y)/2;do ct.y>dt!=ct.next.y>dt&&ct.next.y!==ct.y&&wt<(ct.next.x-ct.x)*(dt-ct.y)/(ct.next.y-ct.y)+ct.x&&(He=!He),ct=ct.next;while(ct!==xe);return He}function we(xe,Pt){var ct=new me(xe.i,xe.x,xe.y),He=new me(Pt.i,Pt.x,Pt.y),wt=xe.next,dt=Pt.prev;return xe.next=Pt,Pt.prev=xe,ct.next=wt,wt.prev=ct,He.next=ct,ct.prev=He,dt.next=He,He.prev=dt,He}function Ce(xe,Pt,ct,He){var wt=new me(xe,Pt,ct);return He?(wt.next=He.next,wt.prev=He,He.next.prev=wt,He.next=wt):(wt.prev=wt,wt.next=wt),wt}function Ae(xe){xe.next.prev=xe.prev,xe.prev.next=xe.next,xe.prevZ&&(xe.prevZ.nextZ=xe.nextZ),xe.nextZ&&(xe.nextZ.prevZ=xe.prevZ)}function me(xe,Pt,ct){this.i=xe,this.x=Pt,this.y=ct,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}V.deviation=function(xe,Pt,ct,He){var wt=Pt&&Pt.length,dt=wt?Pt[0]*ct:xe.length,Bt=Math.abs(je(xe,0,dt,ct));if(wt)for(var gt=0,_n=Pt.length;gt<_n;gt++){var Bn=Pt[gt]*ct,Er=gt<_n-1?Pt[gt+1]*ct:xe.length;Bt-=Math.abs(je(xe,Bn,Er,ct))}var Yr=0;for(gt=0;gt0&&(He+=xe[wt-1].length,ct.holes.push(He))}return ct}},67499:function(nt){function V(y){var I=y.target||y.srcElement;I.__resizeRAF__&&cancelAnimationFrame(I.__resizeRAF__),I.__resizeRAF__=requestAnimationFrame(function(){var b=I.__resizeTrigger__,z=b&&b.__resizeListeners__;z&&z.forEach(function(k){k.call(b,y)})})}var m=function(I,b){var z=this,k=z.document,N,w=k.attachEvent;typeof navigator!="undefined"&&(N=navigator.userAgent.match(/Trident/)||navigator.userAgent.match(/Edge/));function A(){this.contentDocument.defaultView.__resizeTrigger__=this.__resizeElement__,this.contentDocument.defaultView.addEventListener("resize",V)}if(!I.__resizeListeners__)if(I.__resizeListeners__=[],w)I.__resizeTrigger__=I,I.attachEvent("onresize",V);else{getComputedStyle(I).position==="static"&&(I.style.position="relative");var C=I.__resizeTrigger__=k.createElement("object");C.setAttribute("style","position: absolute; top: 0; left: 0; height: 100%; width: 100%; pointer-events: none; z-index: -1; opacity: 0;"),C.setAttribute("class","resize-sensor"),C.setAttribute("tabindex","-1"),C.setAttribute("title",""),C.__resizeElement__=I,C.onload=A,C.type="text/html",N&&I.appendChild(C),C.data="about:blank",N||I.appendChild(C)}I.__resizeListeners__.push(b)};nt.exports=typeof window=="undefined"?m:m.bind(window),nt.exports.unbind=function(y,I){var b=document.attachEvent,z=y.__resizeListeners__||[];if(I){var k=z.indexOf(I);k!==-1&&z.splice(k,1)}else z=y.__resizeListeners__=[];if(!z.length){if(b)y.detachEvent("onresize",V);else if(y.__resizeTrigger__){var N=y.__resizeTrigger__.contentDocument,w=N&&N.defaultView;w&&(w.removeEventListener("resize",V),delete w.__resizeTrigger__),y.__resizeTrigger__=!y.removeChild(y.__resizeTrigger__)}delete y.__resizeListeners__}}},40666:function(nt){"use strict";var V=Object.prototype.hasOwnProperty,m="~";function y(){}Object.create&&(y.prototype=Object.create(null),new y().__proto__||(m=!1));function I(N,w,A){this.fn=N,this.context=w,this.once=A||!1}function b(N,w,A,C,f){if(typeof A!="function")throw new TypeError("The listener must be a function");var S=new I(A,C||N,f),P=m?m+w:w;return N._events[P]?N._events[P].fn?N._events[P]=[N._events[P],S]:N._events[P].push(S):(N._events[P]=S,N._eventsCount++),N}function z(N,w){--N._eventsCount===0?N._events=new y:delete N._events[w]}function k(){this._events=new y,this._eventsCount=0}k.prototype.eventNames=function(){var w=[],A,C;if(this._eventsCount===0)return w;for(C in A=this._events)V.call(A,C)&&w.push(m?C.slice(1):C);return Object.getOwnPropertySymbols?w.concat(Object.getOwnPropertySymbols(A)):w},k.prototype.listeners=function(w){var A=m?m+w:w,C=this._events[A];if(!C)return[];if(C.fn)return[C.fn];for(var f=0,S=C.length,P=new Array(S);f=72.004&&ci<=137.8347&&Bi>=.8293&&Bi<=55.8271}function C(ci,Bi){let Ci=-100+2*ci+3*Bi+.2*Bi*Bi+.1*ci*Bi+.2*b(z(ci));return Ci+=(20*y(6*ci*k)+20*y(2*ci*k))*2/3,Ci+=(20*y(Bi*k)+40*y(Bi/3*k))*2/3,Ci+=(160*y(Bi/12*k)+320*y(Bi*k/30))*2/3,Ci}function f(ci,Bi){let Ci=300+ci+2*Bi+.1*ci*ci+.1*ci*Bi+.1*b(z(ci));return Ci+=(20*y(6*ci*k)+20*y(2*ci*k))*2/3,Ci+=(20*y(ci*k)+40*y(ci/3*k))*2/3,Ci+=(150*y(ci/12*k)+300*y(ci/30*k))*2/3,Ci}function S(ci,Bi){let Ci=f(ci-105,Bi-35),io=C(ci-105,Bi-35);const ln=Bi/180*k;let Ve=y(ln);Ve=1-w*Ve*Ve;const _t=b(Ve);return Ci=Ci*180/(N/_t*I(ln)*k),io=io*180/(N*(1-w)/(Ve*_t)*k),[Ci,io]}function P(ci){const[Bi,Ci]=ci;if(!A(Bi,Ci))return[Bi,Ci];const io=S(Bi,Ci);return[Bi+io[0],Ci+io[1]]}function W(ci){const[Bi,Ci]=ci;if(!A(Bi,Ci))return[Bi,Ci];let[io,ln]=[Bi,Ci],Ve=P([io,ln]),_t=Ve[0]-Bi,xt=Ve[1]-Ci;for(;z(_t)>1e-6||z(xt)>1e-6;)io-=_t,ln-=xt,Ve=P([io,ln]),_t=Ve[0]-Bi,xt=Ve[1]-Ci;return[io,ln]}const{sin:ne,cos:re,atan2:ce,sqrt:pe,PI:he}=Math,fe=he*3e3/180;function Be(ci){const[Bi,Ci]=ci,io=Bi-.0065,ln=Ci-.006,Ve=pe(io*io+ln*ln)-2e-5*ne(ln*fe),_t=ce(ln,io)-3e-6*re(io*fe),xt=Ve*re(_t),Wt=Ve*ne(_t);return[xt,Wt]}function Ie(ci){const[Bi,Ci]=ci,io=Bi,ln=Ci,Ve=pe(io*io+ln*ln)+2e-5*ne(ln*fe),_t=ce(ln,io)+3e-6*re(io*fe),xt=Ve*re(_t)+.0065,Wt=Ve*ne(_t)+.006;return[xt,Wt]}const We=180/Math.PI,De=Math.PI/180,ve=6378137,ye=20037508342789244e-9;function we(ci){return[ci[0]*We/ve,(Math.PI*.5-2*Math.atan(Math.exp(-ci[1]/ve)))*We]}function Ce(ci){const Bi=Math.abs(ci[0])<=180?ci[0]:ci[0]-(ci[0]<0?-1:1)*360,Ci=[ve*Bi*De,ve*Math.log(Math.tan(Math.PI*.25+.5*ci[1]*De))];return Ci[0]>ye&&(Ci[0]=ye),Ci[0]<-ye&&(Ci[0]=-ye),Ci[1]>ye&&(Ci[1]=ye),Ci[1]<-ye&&(Ci[1]=-ye),Ci}const{abs:Ae}=Math,me=[1289059486e-2,836237787e-2,5591021,348198983e-2,167804312e-2,0],je=[75,60,45,30,15,0],xe=[[1410526172116255e-23,898305509648872e-20,-1.9939833816331,200.9824383106796,-187.2403703815547,91.6087516669843,-23.38765649603339,2.57121317296198,-.03801003308653,173379812e-1],[-7435856389565537e-24,8983055097726239e-21,-.78625201886289,96.32687599759846,-1.85204757529826,-59.36935905485877,47.40033549296737,-16.50741931063887,2.28786674699375,1026014486e-2],[-3030883460898826e-23,898305509983578e-20,.30071316287616,59.74293618442277,7.357984074871,-25.38371002664745,13.45380521110908,-3.29883767235584,.32710905363475,685681737e-2],[-1981981304930552e-23,8983055099779535e-21,.03278182852591,40.31678527705744,.65659298677277,-4.44255534477492,.85341911805263,.12923347998204,-.04625736007561,448277706e-2],[309191371068437e-23,8983055096812155e-21,6995724062e-14,23.10934304144901,-.00023663490511,-.6321817810242,-.00663494467273,.03430082397953,-.00466043876332,25551644e-1],[2890871144776878e-24,8983055095805407e-21,-3068298e-14,7.47137025468032,-353937994e-14,-.02145144861037,-1234426596e-14,.00010322952773,-323890364e-14,826088.5]],Pt=[[-.0015702102444,111320.7020616939,0x60e374c3105a3,-0x24bb4115e2e164,0x5cc55543bb0ae8,-0x7ce070193f3784,0x5e7ca61ddf8150,-0x261a578d8b24d0,0x665d60f3742ca,82.5],[.0008277824516172526,111320.7020463578,6477955746671607e-7,-4082003173641316e-6,1077490566351142e-5,-1517187553151559e-5,1205306533862167e-5,-5124939663577472e-6,9133119359512032e-7,67.5],[.00337398766765,111320.7020202162,4481351045890365e-9,-2339375119931662e-8,7968221547186455e-8,-1159649932797253e-7,9723671115602145e-8,-4366194633752821e-8,8477230501135234e-9,52.5],[.00220636496208,111320.7020209128,51751.86112841131,3796837749470245e-9,992013.7397791013,-122195221711287e-8,1340652697009075e-9,-620943.6990984312,144416.9293806241,37.5],[-.0003441963504368392,111320.7020576856,278.2353980772752,2485758690035394e-9,6070.750963243378,54821.18345352118,9540.606633304236,-2710.55326746645,1405.483844121726,22.5],[-.0003218135878613132,111320.7020701615,.00369383431289,823725.6402795718,.46104986909093,2351.343141331292,1.58060784298199,8.77738589078284,.37238884252424,7.45]];function ct(ci,Bi,Ci){const io=Ae(Bi)/Ci[9];let ln=Ci[0]+Ci[1]*Ae(ci),Ve=Ci[2]+Ci[3]*io+Ci[4]*Math.pow(io,2)+Ci[5]*Math.pow(io,3)+Ci[6]*Math.pow(io,4)+Ci[7]*Math.pow(io,5)+Ci[8]*Math.pow(io,6);return ln*=ci<0?-1:1,Ve*=Bi<0?-1:1,[ln,Ve]}function He(ci){const[Bi,Ci]=ci;let io=[];for(let ln=0;lnje[ln]){io=Pt[ln];break}return ct(Bi,Ci,io)}function wt(ci){const[Bi,Ci]=ci;let io=[];for(let ln=0;ln=me[ln]){io=xe[ln];break}return ct(Bi,Ci,io)}function dt(ci,Bi){if(!ci)throw new Error(Bi)}function Bt(ci){return!!ci&&Object.prototype.toString.call(ci)==="[object Array]"}function gt(ci){return!isNaN(Number(ci))&&ci!==null&&!Bt(ci)}function _n(...ci){const Bi=ci.length-1;return function(...Ci){let io=Bi,ln=ci[Bi].apply(null,Ci);for(;io--;)ln=ci[io].call(null,ln);return ln}}function Bn(ci,Bi,Ci=!1){if(ci===null)return;let io,ln,Ve,_t,xt,Wt,on=0,Ot=0,Tt,bt;const{type:Ht}=ci,Wn=Ht==="FeatureCollection",tn=Ht==="Feature",hr=Wn?ci.features.length:1;for(let Zi=0;Zi=2,`Invalid input coordinate: ${ci}`),dt(gt(ci[0])&>(ci[1]),`Invalid input coordinate: ${ci}`),ci=ci.map(Number),_t=!0);const xt=ln;return _t?xt(ci):(Bn(ci,Wt=>{[Wt[0],Wt[1]]=xt(Wt)}),ci)}const _o=Object.assign(Object.assign({},Er),{CRSTypes:Er,transform:ge})},15468:function(nt,V,m){var y=m(44930),I=function(N){this.precision=N&&N.precision?N.precision:17,this.direction=N&&N.direction?N.direction:!1,this.pseudoNode=N&&N.pseudoNode?N.pseudoNode:!1,this.objectComparator=N&&N.objectComparator?N.objectComparator:k};I.prototype.compare=function(N,w){if(N.type!==w.type||!z(N,w))return!1;switch(N.type){case"Point":return this.compareCoord(N.coordinates,w.coordinates);case"LineString":return this.compareLine(N.coordinates,w.coordinates,0,!1);case"Polygon":return this.comparePolygon(N,w);case"Feature":return this.compareFeature(N,w);default:if(N.type.indexOf("Multi")===0){var A=this,C=b(N),f=b(w);return C.every(function(S){return this.some(function(P){return A.compare(S,P)})},f)}}return!1};function b(N){return N.coordinates.map(function(w){return{type:N.type.replace("Multi",""),coordinates:w}})}function z(N,w){return N.hasOwnProperty("coordinates")?N.coordinates.length===w.coordinates.length:N.length===w.length}I.prototype.compareCoord=function(N,w){if(N.length!==w.length)return!1;for(var A=0;A=0&&(A=[].concat(N.slice(C,N.length),N.slice(1,C+1))),A},I.prototype.comparePath=function(N,w){var A=this;return N.every(function(C,f){return A.compareCoord(C,this[f])},w)},I.prototype.comparePolygon=function(N,w){if(this.compareLine(N.coordinates[0],w.coordinates[0],1,!0)){var A=N.coordinates.slice(1,N.coordinates.length),C=w.coordinates.slice(1,w.coordinates.length),f=this;return A.every(function(S){return this.some(function(P){return f.compareLine(S,P,1,!0)})},C)}else return!1},I.prototype.compareFeature=function(N,w){return N.id!==w.id||!this.objectComparator(N.properties,w.properties)||!this.compareBBox(N,w)?!1:this.compare(N.geometry,w.geometry)},I.prototype.compareBBox=function(N,w){return!!(!N.bbox&&!w.bbox||N.bbox&&w.bbox&&this.compareCoord(N.bbox,w.bbox))},I.prototype.removePseudo=function(N){return N};function k(N,w){return y(N,w,{strict:!0})}nt.exports=I},56898:function(nt,V,m){var y=m(79535),I=m(78161),b=m(9750),z=m(76314).Z,k=b.featureEach,N=b.coordEach,w=I.polygon,A=I.featureCollection;function C(f){var S=new y(f);return S.insert=function(P){if(P.type!=="Feature")throw new Error("invalid feature");return P.bbox=P.bbox?P.bbox:z(P),y.prototype.insert.call(this,P)},S.load=function(P){var W=[];return Array.isArray(P)?P.forEach(function(ne){if(ne.type!=="Feature")throw new Error("invalid features");ne.bbox=ne.bbox?ne.bbox:z(ne),W.push(ne)}):k(P,function(ne){if(ne.type!=="Feature")throw new Error("invalid features");ne.bbox=ne.bbox?ne.bbox:z(ne),W.push(ne)}),y.prototype.load.call(this,W)},S.remove=function(P,W){if(P.type!=="Feature")throw new Error("invalid feature");return P.bbox=P.bbox?P.bbox:z(P),y.prototype.remove.call(this,P,W)},S.clear=function(){return y.prototype.clear.call(this)},S.search=function(P){var W=y.prototype.search.call(this,this.toBBox(P));return A(W)},S.collides=function(P){return y.prototype.collides.call(this,this.toBBox(P))},S.all=function(){var P=y.prototype.all.call(this);return A(P)},S.toJSON=function(){return y.prototype.toJSON.call(this)},S.fromJSON=function(P){return y.prototype.fromJSON.call(this,P)},S.toBBox=function(P){var W;if(P.bbox)W=P.bbox;else if(Array.isArray(P)&&P.length===4)W=P;else if(Array.isArray(P)&&P.length===6)W=[P[0],P[1],P[3],P[4]];else if(P.type==="Feature")W=z(P);else if(P.type==="FeatureCollection")W=z(P);else throw new Error("invalid geojson");return{minX:W[0],minY:W[1],maxX:W[2],maxY:W[3]}},S}nt.exports=C,nt.exports.default=C},6635:function(nt,V,m){"use strict";var y,I=SyntaxError,b=Function,z=TypeError,k=function(me){try{return b('"use strict"; return ('+me+").constructor;")()}catch(je){}},N=Object.getOwnPropertyDescriptor;if(N)try{N({},"")}catch(me){N=null}var w=function(){throw new z},A=N?function(){try{return arguments.callee,w}catch(me){try{return N(arguments,"callee").get}catch(je){return w}}}():w,C=m(9997)(),f=m(77916)(),S=Object.getPrototypeOf||(f?function(me){return me.__proto__}:null),P={},W=typeof Uint8Array=="undefined"||!S?y:S(Uint8Array),ne={"%AggregateError%":typeof AggregateError=="undefined"?y:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?y:ArrayBuffer,"%ArrayIteratorPrototype%":C&&S?S([][Symbol.iterator]()):y,"%AsyncFromSyncIteratorPrototype%":y,"%AsyncFunction%":P,"%AsyncGenerator%":P,"%AsyncGeneratorFunction%":P,"%AsyncIteratorPrototype%":P,"%Atomics%":typeof Atomics=="undefined"?y:Atomics,"%BigInt%":typeof BigInt=="undefined"?y:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?y:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?y:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?y:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?y:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?y:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?y:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":P,"%Int8Array%":typeof Int8Array=="undefined"?y:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?y:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?y:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":C&&S?S(S([][Symbol.iterator]())):y,"%JSON%":typeof JSON=="object"?JSON:y,"%Map%":typeof Map=="undefined"?y:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!C||!S?y:S(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?y:Promise,"%Proxy%":typeof Proxy=="undefined"?y:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?y:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?y:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!C||!S?y:S(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?y:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":C&&S?S(""[Symbol.iterator]()):y,"%Symbol%":C?Symbol:y,"%SyntaxError%":I,"%ThrowTypeError%":A,"%TypedArray%":W,"%TypeError%":z,"%Uint8Array%":typeof Uint8Array=="undefined"?y:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?y:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?y:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?y:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?y:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?y:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?y:WeakSet};if(S)try{null.error}catch(me){var re=S(S(me));ne["%Error.prototype%"]=re}var ce=function me(je){var xe;if(je==="%AsyncFunction%")xe=k("async function () {}");else if(je==="%GeneratorFunction%")xe=k("function* () {}");else if(je==="%AsyncGeneratorFunction%")xe=k("async function* () {}");else if(je==="%AsyncGenerator%"){var Pt=me("%AsyncGeneratorFunction%");Pt&&(xe=Pt.prototype)}else if(je==="%AsyncIteratorPrototype%"){var ct=me("%AsyncGenerator%");ct&&S&&(xe=S(ct.prototype))}return ne[je]=xe,xe},pe={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},he=m(36723),fe=m(20262),Be=he.call(Function.call,Array.prototype.concat),Ie=he.call(Function.apply,Array.prototype.splice),We=he.call(Function.call,String.prototype.replace),De=he.call(Function.call,String.prototype.slice),ve=he.call(Function.call,RegExp.prototype.exec),ye=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,we=/\\(\\)?/g,Ce=function(je){var xe=De(je,0,1),Pt=De(je,-1);if(xe==="%"&&Pt!=="%")throw new I("invalid intrinsic syntax, expected closing `%`");if(Pt==="%"&&xe!=="%")throw new I("invalid intrinsic syntax, expected opening `%`");var ct=[];return We(je,ye,function(He,wt,dt,Bt){ct[ct.length]=dt?We(Bt,we,"$1"):wt||He}),ct},Ae=function(je,xe){var Pt=je,ct;if(fe(pe,Pt)&&(ct=pe[Pt],Pt="%"+ct[0]+"%"),fe(ne,Pt)){var He=ne[Pt];if(He===P&&(He=ce(Pt)),typeof He=="undefined"&&!xe)throw new z("intrinsic "+je+" exists, but is not available. Please file an issue!");return{alias:ct,name:Pt,value:He}}throw new I("intrinsic "+je+" does not exist!")};nt.exports=function(je,xe){if(typeof je!="string"||je.length===0)throw new z("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof xe!="boolean")throw new z('"allowMissing" argument must be a boolean');if(ve(/^%?[^%]*%?$/,je)===null)throw new I("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Pt=Ce(je),ct=Pt.length>0?Pt[0]:"",He=Ae("%"+ct+"%",xe),wt=He.name,dt=He.value,Bt=!1,gt=He.alias;gt&&(ct=gt[0],Ie(Pt,Be([0,1],gt)));for(var _n=1,Bn=!0;_n=Pt.length){var to=N(dt,Er);Bn=!!to,Bn&&"get"in to&&!("originalValue"in to.get)?dt=to.get:dt=dt[Er]}else Bn=fe(dt,Er),dt=dt[Er];Bn&&!Bt&&(ne[wt]=dt)}}return dt}},67747:function(nt,V,m){"use strict";var y=m(6635),I=y("%Object.getOwnPropertyDescriptor%",!0);if(I)try{I([],"length")}catch(b){I=null}nt.exports=I},83959:function(nt,V,m){var y;(function(I,b,z,k){"use strict";var N=["","webkit","Moz","MS","ms","o"],w=b.createElement("div"),A="function",C=Math.round,f=Math.abs,S=Date.now;function P(tt,ht,vt){return setTimeout(Be(tt,vt),ht)}function W(tt,ht,vt){return Array.isArray(tt)?(ne(tt,vt[ht],vt),!0):!1}function ne(tt,ht,vt){var Fe;if(tt)if(tt.forEach)tt.forEach(ht,vt);else if(tt.length!==k)for(Fe=0;Fe\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",an=A.console&&(A.console.warn||A.console.log);return an&&an.call(A.console,ze,Et),tt.apply(this,arguments)}}var ie;typeof Object.assign!="function"?ie=function(dt){if(dt===k||dt===null)throw new TypeError("Cannot convert undefined or null to object");for(var vt=Object(dt),ze=1;ze-1}function be(tt){return tt.trim().split(/\s+/g)}function Ie(tt,dt,vt){if(tt.indexOf&&!vt)return tt.indexOf(dt);for(var ze=0;zeTi[dt]}):ze=ze.sort()),ze}function Ce(tt,dt){for(var vt,ze,lt=dt[0].toUpperCase()+dt.slice(1),Et=0;Et1&&!vt.firstMultiple?vt.firstMultiple=Ht(dt):lt===1&&(vt.firstMultiple=!1);var Et=vt.firstInput,an=vt.firstMultiple,jn=an?an.center:Et.center,xr=dt.center=Zn(ze);dt.timeStamp=S(),dt.deltaTime=dt.timeStamp-Et.timeStamp,dt.angle=Ri(jn,xr),dt.distance=Zi(jn,xr),Tt(vt,dt),dt.offsetDirection=hr(dt.deltaX,dt.deltaY);var Ti=tn(dt.deltaTime,dt.deltaX,dt.deltaY);dt.overallVelocityX=Ti.x,dt.overallVelocityY=Ti.y,dt.overallVelocity=f(Ti.x)>f(Ti.y)?Ti.x:Ti.y,dt.scale=an?$o(an.pointers,ze):1,dt.rotation=an?Pi(an.pointers,ze):0,dt.maxPointers=vt.prevInput?dt.pointers.length>vt.prevInput.maxPointers?dt.pointers.length:vt.prevInput.maxPointers:dt.pointers.length,xt(vt,dt);var $i=tt.element;ye(dt.srcEvent.target,$i)&&($i=dt.srcEvent.target),dt.target=$i}function Tt(tt,dt){var vt=dt.center,ze=tt.offsetDelta||{},lt=tt.prevDelta||{},Et=tt.prevInput||{};(dt.eventType===to||Et.eventType===vr)&&(lt=tt.prevDelta={x:Et.deltaX||0,y:Et.deltaY||0},ze=tt.offsetDelta={x:vt.x,y:vt.y}),dt.deltaX=lt.x+(vt.x-ze.x),dt.deltaY=lt.y+(vt.y-ze.y)}function xt(tt,dt){var vt=tt.lastInterval||dt,ze=dt.timeStamp-vt.timeStamp,lt,Et,an,jn;if(dt.eventType!=Po&&(ze>oi||vt.velocity===k)){var xr=dt.deltaX-vt.deltaX,Ti=dt.deltaY-vt.deltaY,$i=tn(ze,xr,Ti);Et=$i.x,an=$i.y,lt=f($i.x)>f($i.y)?$i.x:$i.y,jn=hr(xr,Ti),tt.lastInterval=dt}else lt=vt.velocity,Et=vt.velocityX,an=vt.velocityY,jn=vt.direction;dt.velocity=lt,dt.velocityX=Et,dt.velocityY=an,dt.direction=jn}function Ht(tt){for(var dt=[],vt=0;vt=f(dt)?tt<0?ve:_o:dt<0?ci:Bi}function Zi(tt,dt,vt){vt||(vt=Ve);var ze=dt[vt[0]]-tt[vt[0]],lt=dt[vt[1]]-tt[vt[1]];return Math.sqrt(ze*ze+lt*lt)}function Ri(tt,dt,vt){vt||(vt=Ve);var ze=dt[vt[0]]-tt[vt[0]],lt=dt[vt[1]]-tt[vt[1]];return Math.atan2(lt,ze)*180/Math.PI}function Pi(tt,dt){return Ri(dt[1],dt[0],_t)+Ri(tt[1],tt[0],_t)}function $o(tt,dt){return Zi(dt[0],dt[1],_t)/Zi(tt[0],tt[1],_t)}var ys={mousedown:to,mousemove:yo,mouseup:vr},xn="mousedown",Hr="mousemove mouseup";function Jr(){this.evEl=xn,this.evWin=Hr,this.pressed=!1,Ct.apply(this,arguments)}fe(Jr,Ct,{handler:function(dt){var vt=ys[dt.type];vt&to&&dt.button===0&&(this.pressed=!0),vt&yo&&dt.which!==1&&(vt=vr),this.pressed&&(vt&vr&&(this.pressed=!1),this.callback(this.manager,vt,{pointers:[dt],changedPointers:[dt],pointerType:Er,srcEvent:dt}))}});var Yi={pointerdown:to,pointermove:yo,pointerup:vr,pointercancel:Po,pointerout:Po},xo={2:_n,3:Bn,4:Er,5:Yr},na="pointerdown",Vn="pointermove pointerup pointercancel";A.MSPointerEvent&&!A.PointerEvent&&(na="MSPointerDown",Vn="MSPointerMove MSPointerUp MSPointerCancel");function Xn(){this.evEl=na,this.evWin=Vn,Ct.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}fe(Xn,Ct,{handler:function(dt){var vt=this.store,ze=!1,lt=dt.type.toLowerCase().replace("ms",""),Et=Yi[lt],an=xo[dt.pointerType]||dt.pointerType,jn=an==_n,xr=Ie(vt,dt.pointerId,"pointerId");Et&to&&(dt.button===0||jn)?xr<0&&(vt.push(dt),xr=vt.length-1):Et&(vr|Po)&&(ze=!0),!(xr<0)&&(vt[xr]=dt,this.callback(this.manager,Et,{pointers:vt,changedPointers:[dt],pointerType:an,srcEvent:dt}),ze&&vt.splice(xr,1))}});var Mr={touchstart:to,touchmove:yo,touchend:vr,touchcancel:Po},li="touchstart",Cr="touchstart touchmove touchend touchcancel";function qr(){this.evTarget=li,this.evWin=Cr,this.started=!1,Ct.apply(this,arguments)}fe(qr,Ct,{handler:function(dt){var vt=Mr[dt.type];if(vt===to&&(this.started=!0),!!this.started){var ze=ii.call(this,dt,vt);vt&(vr|Po)&&ze[0].length-ze[1].length===0&&(this.started=!1),this.callback(this.manager,vt,{pointers:ze[0],changedPointers:ze[1],pointerType:_n,srcEvent:dt})}}});function ii(tt,dt){var vt=me(tt.touches),ze=me(tt.changedTouches);return dt&(vr|Po)&&(vt=We(vt.concat(ze),"identifier",!0)),[vt,ze]}var rn={touchstart:to,touchmove:yo,touchend:vr,touchcancel:Po},Jn="touchstart touchmove touchend touchcancel";function Vr(){this.evTarget=Jn,this.targetIds={},Ct.apply(this,arguments)}fe(Vr,Ct,{handler:function(dt){var vt=rn[dt.type],ze=so.call(this,dt,vt);ze&&this.callback(this.manager,vt,{pointers:ze[0],changedPointers:ze[1],pointerType:_n,srcEvent:dt})}});function so(tt,dt){var vt=me(tt.touches),ze=this.targetIds;if(dt&(to|yo)&&vt.length===1)return ze[vt[0].identifier]=!0,[vt,vt];var lt,Et,an=me(tt.changedTouches),jn=[],xr=this.target;if(Et=vt.filter(function(Ti){return ye(Ti.target,xr)}),dt===to)for(lt=0;lt-1&&ze.splice(Et,1)};setTimeout(lt,rs)}}function ui(tt){for(var dt=tt.srcEvent.clientX,vt=tt.srcEvent.clientY,ze=0;ze-1&&this.requireFail.splice(dt,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(tt){return!!this.simultaneous[tt.id]},emit:function(tt){var dt=this,vt=this.state;function ze(lt){dt.manager.emit(lt,tt)}vt=Qn&&ze(dt.options.event+ja(vt))},tryEmit:function(tt){if(this.canEmit())return this.emit(tt);this.state=da},canEmit:function(){for(var tt=0;ttdt.threshold&<&dt.direction},attrTest:function(tt){return Fr.prototype.attrTest.call(this,tt)&&(this.state&Ni||!(this.state&Ni)&&this.directionTest(tt))},emit:function(tt){this.pX=tt.deltaX,this.pY=tt.deltaY;var dt=Co(tt.direction);dt&&(tt.additionalEvent=this.options.event+dt),this._super.emit.call(this,tt)}});function jo(){Fr.apply(this,arguments)}fe(jo,Fr,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Tr]},attrTest:function(tt){return this._super.attrTest.call(this,tt)&&(Math.abs(tt.scale-1)>this.options.threshold||this.state&Ni)},emit:function(tt){if(tt.scale!==1){var dt=tt.scale<1?"in":"out";tt.additionalEvent=this.options.event+dt}this._super.emit.call(this,tt)}});function Es(){zs.apply(this,arguments),this._timer=null,this._input=null}fe(Es,zs,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[ti]},process:function(tt){var dt=this.options,vt=tt.pointers.length===dt.pointers,ze=tt.distancedt.time;if(this._input=tt,!ze||!vt||tt.eventType&(vr|Po)&&!lt)this.reset();else if(tt.eventType&to)this.reset(),this._timer=P(function(){this.state=ds,this.tryEmit()},dt.time,this);else if(tt.eventType&vr)return ds;return da},reset:function(){clearTimeout(this._timer)},emit:function(tt){this.state===ds&&(tt&&tt.eventType&vr?this.manager.emit(this.options.event+"up",tt):(this._input.timeStamp=S(),this.manager.emit(this.options.event,this._input)))}});function xs(){Fr.apply(this,arguments)}fe(xs,Fr,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Tr]},attrTest:function(tt){return this._super.attrTest.call(this,tt)&&(Math.abs(tt.rotation)>this.options.threshold||this.state&Ni)}});function Za(){Fr.apply(this,arguments)}fe(Za,Fr,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:wi|io,pointers:1},getTouchAction:function(){return fs.prototype.getTouchAction.call(this)},attrTest:function(tt){var dt=this.options.direction,vt;return dt&(wi|io)?vt=tt.overallVelocity:dt&wi?vt=tt.overallVelocityX:dt&io&&(vt=tt.overallVelocityY),this._super.attrTest.call(this,tt)&&dt&tt.offsetDirection&&tt.distance>this.options.threshold&&tt.maxPointers==this.options.pointers&&f(vt)>this.options.velocity&&tt.eventType&vr},emit:function(tt){var dt=Co(tt.offsetDirection);dt&&this.manager.emit(this.options.event+dt,tt),this.manager.emit(this.options.event,tt)}});function tl(){zs.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}fe(tl,zs,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Wi]},process:function(tt){var dt=this.options,vt=tt.pointers.length===dt.pointers,ze=tt.distance>1,f=-7,S=A?z-1:0,P=A?-1:1,j=m[y+S];for(S+=P,k=j&(1<<-f)-1,j>>=-f,f+=w;f>0;k=k*256+m[y+S],S+=P,f-=8);for(N=k&(1<<-f)-1,k>>=-f,f+=b;f>0;N=N*256+m[y+S],S+=P,f-=8);if(k===0)k=1-C;else{if(k===I)return N?NaN:(j?-1:1)*(1/0);N=N+Math.pow(2,b),k=k-C}return(j?-1:1)*N*Math.pow(2,k-b)},V.write=function(m,y,A,b,z,k){var N,w,I,C=k*8-z-1,f=(1<>1,P=z===23?Math.pow(2,-24)-Math.pow(2,-77):0,j=b?0:k-1,re=b?1:-1,J=y<0||y===0&&1/y<0?1:0;for(y=Math.abs(y),isNaN(y)||y===1/0?(w=isNaN(y)?1:0,N=f):(N=Math.floor(Math.log(y)/Math.LN2),y*(I=Math.pow(2,-N))<1&&(N--,I*=2),N+S>=1?y+=P/I:y+=P*Math.pow(2,1-S),y*I>=2&&(N++,I/=2),N+S>=f?(w=0,N=f):N+S>=1?(w=(y*I-1)*Math.pow(2,z),N=N+S):(w=y*Math.pow(2,S-1)*Math.pow(2,z),N=0));z>=8;m[A+j]=w&255,j+=re,w/=256,z-=8);for(N=N<0;m[A+j]=N&255,j+=re,N/=256,C-=8);m[A+j-re]|=J*128}},7375:function(nt,V){"use strict";Object.defineProperty(V,"__esModule",{value:!0});var m=Symbol.for("INJECTION");function y(N,w,I,C){function f(){return C&&!Reflect.hasMetadata(m,this,w)&&Reflect.defineMetadata(m,I(),this,w),Reflect.hasMetadata(m,this,w)?Reflect.getMetadata(m,this,w):I()}function S(P){Reflect.defineMetadata(m,P,this,w)}Object.defineProperty(N,w,{configurable:!0,enumerable:!0,get:f,set:S})}function A(N,w){return function(I){return function(C,f){var S=function(){return N.get(I)};y(C,f,S,w)}}}V.makePropertyInjectDecorator=A;function b(N,w){return function(I,C){return function(f,S){var P=function(){return N.getNamed(I,C)};y(f,S,P,w)}}}V.makePropertyInjectNamedDecorator=b;function z(N,w){return function(I,C,f){return function(S,P){var j=function(){return N.getTagged(I,C,f)};y(S,P,j,w)}}}V.makePropertyInjectTaggedDecorator=z;function k(N,w){return function(I){return function(C,f){var S=function(){return N.getAll(I)};y(C,f,S,w)}}}V.makePropertyMultiInjectDecorator=k},84879:function(nt,V,m){"use strict";var y;y={value:!0};var A=m(7375);function b(z,k){k===void 0&&(k=!0);var N=A.makePropertyInjectDecorator(z,k),w=A.makePropertyInjectNamedDecorator(z,k),I=A.makePropertyInjectTaggedDecorator(z,k),C=A.makePropertyMultiInjectDecorator(z,k);return{lazyInject:N,lazyInjectNamed:w,lazyInjectTagged:I,lazyMultiInject:C}}V.Z=b},99934:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.tagProperty=V.tagParameter=V.decorate=void 0;var y=m(16674),A=m(6867);function b(C,f,S,P){var j=A.TAGGED;k(j,C,f,P,S)}V.tagParameter=b;function z(C,f,S){var P=A.TAGGED_PROP;k(P,C.constructor,f,S)}V.tagProperty=z;function k(C,f,S,P,j){var re={},J=typeof j=="number",ie=j!==void 0&&J?j.toString():S;if(J&&S!==void 0)throw new Error(y.INVALID_DECORATOR_OPERATION);Reflect.hasOwnMetadata(C,f)&&(re=Reflect.getMetadata(C,f));var de=re[ie];if(!Array.isArray(de))de=[];else for(var he=0,fe=de;he= than the number of constructor arguments of its base class.")};V.ARGUMENTS_LENGTH_MISMATCH=y,V.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT="Invalid Container constructor argument. Container options must be an object.",V.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE="Invalid Container option. Default scope must be a string ('singleton' or 'transient').",V.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE="Invalid Container option. Auto bind injectable must be a boolean",V.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK="Invalid Container option. Skip base check must be a boolean",V.MULTIPLE_POST_CONSTRUCT_METHODS="Cannot apply @postConstruct decorator multiple times in the same class";var A=function(){for(var z=[],k=0;k0&&Ne[Ne.length-1])&&(xe[0]===6||xe[0]===2)){fe=0;continue}if(xe[0]===3&&(!Ne||xe[1]>Ne[0]&&xe[1]0?k._map.set(w,I):k._map.delete(w)})},b.prototype.hasKey=function(z){if(z==null)throw new Error(y.NULL_ARGUMENT);return this._map.has(z)},b.prototype.clone=function(){var z=new b;return this._map.forEach(function(k,N){k.forEach(function(w){return z.add(N,w.clone())})}),z},b.prototype.traverse=function(z){this._map.forEach(function(k,N){z(N,k)})},b}();V.Lookup=A},86700:function(nt,V,m){"use strict";var y;y={value:!0},y=y=y=y=y=y=V.GW=y=y=V.zY=y=y=y=y=y=V.f3=y=y=V.b2=y=y=y=y=y=V.W2=y=void 0;var A=m(6867);y=A;var b=m(51389);Object.defineProperty(V,"W2",{enumerable:!0,get:function(){return b.Container}});var z=m(28421);y={enumerable:!0,get:function(){return z.BindingScopeEnum}},y={enumerable:!0,get:function(){return z.BindingTypeEnum}},y={enumerable:!0,get:function(){return z.TargetTypeEnum}};var k=m(33244);y={enumerable:!0,get:function(){return k.AsyncContainerModule}},y={enumerable:!0,get:function(){return k.ContainerModule}};var N=m(64315);Object.defineProperty(V,"b2",{enumerable:!0,get:function(){return N.injectable}});var w=m(32052);y={enumerable:!0,get:function(){return w.tagged}};var I=m(38085);y={enumerable:!0,get:function(){return I.named}};var C=m(5744);Object.defineProperty(V,"f3",{enumerable:!0,get:function(){return C.inject}}),y={enumerable:!0,get:function(){return C.LazyServiceIdentifer}};var f=m(6515);y={enumerable:!0,get:function(){return f.optional}};var S=m(86757);y={enumerable:!0,get:function(){return S.unmanaged}};var P=m(71693);y={enumerable:!0,get:function(){return P.multiInject}};var j=m(55638);y={enumerable:!0,get:function(){return j.targetName}};var re=m(7014);Object.defineProperty(V,"zY",{enumerable:!0,get:function(){return re.postConstruct}});var J=m(51377);y={enumerable:!0,get:function(){return J.MetadataReader}};var ie=m(37791);y={enumerable:!0,get:function(){return ie.id}};var de=m(99934);Object.defineProperty(V,"GW",{enumerable:!0,get:function(){return de.decorate}});var he=m(80758);y={enumerable:!0,get:function(){return he.traverseAncerstors}},y={enumerable:!0,get:function(){return he.taggedConstraint}},y={enumerable:!0,get:function(){return he.namedConstraint}},y={enumerable:!0,get:function(){return he.typeConstraint}};var fe=m(55800);y={enumerable:!0,get:function(){return fe.getServiceIdentifierAsString}};var ke=m(70600);y={enumerable:!0,get:function(){return ke.multiBindToService}}},95228:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.Context=void 0;var y=m(37791),A=function(){function b(z){this.id=y.id(),this.container=z}return b.prototype.addPlan=function(z){this.plan=z},b.prototype.setCurrentRequest=function(z){this.currentRequest=z},b}();V.Context=A},47738:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.Metadata=void 0;var y=m(6867),A=function(){function b(z,k){this.key=z,this.value=k}return b.prototype.toString=function(){return this.key===y.NAMED_TAG?"named: "+this.value.toString()+" ":"tagged: { key:"+this.key.toString()+", value: "+this.value+" }"},b}();V.Metadata=A},51377:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.MetadataReader=void 0;var y=m(6867),A=function(){function b(){}return b.prototype.getConstructorMetadata=function(z){var k=Reflect.getMetadata(y.PARAM_TYPES,z),N=Reflect.getMetadata(y.TAGGED,z);return{compilerGeneratedMetadata:k,userGeneratedMetadata:N||{}}},b.prototype.getPropertiesMetadata=function(z){var k=Reflect.getMetadata(y.TAGGED_PROP,z)||[];return k},b}();V.MetadataReader=A},55314:function(nt,V){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.Plan=void 0;var m=function(){function y(A,b){this.parentContext=A,this.rootRequest=b}return y}();V.Plan=m},86311:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.getBindingDictionary=V.createMockRequest=V.plan=void 0;var y=m(23184),A=m(16674),b=m(28421),z=m(6867),k=m(85265),N=m(55800),w=m(95228),I=m(47738),C=m(55314),f=m(6e3),S=m(6748),P=m(18924);function j(we){return we._bindingDictionary}V.getBindingDictionary=j;function re(we,Ne,Ee,ge,ye,xe){var be=we?z.MULTI_INJECT_TAG:z.INJECT_TAG,Ie=new I.Metadata(be,Ee),me=new P.Target(Ne,ge,Ee,Ie);if(ye!==void 0){var We=new I.Metadata(ye,xe);me.metadata.push(We)}return me}function J(we,Ne,Ee,ge,ye){var xe=he(Ee.container,ye.serviceIdentifier),be=[];return xe.length===y.BindingCount.NoBindingsAvailable&&Ee.container.options.autoBindInjectable&&typeof ye.serviceIdentifier=="function"&&we.getConstructorMetadata(ye.serviceIdentifier).compilerGeneratedMetadata&&(Ee.container.bind(ye.serviceIdentifier).toSelf(),xe=he(Ee.container,ye.serviceIdentifier)),Ne?be=xe:be=xe.filter(function(Ie){var me=new S.Request(Ie.serviceIdentifier,Ee,ge,Ie,ye);return Ie.constraint(me)}),ie(ye.serviceIdentifier,be,ye,Ee.container),be}function ie(we,Ne,Ee,ge){switch(Ne.length){case y.BindingCount.NoBindingsAvailable:if(Ee.isOptional())return Ne;var ye=N.getServiceIdentifierAsString(we),xe=A.NOT_REGISTERED;throw xe+=N.listMetadataForTarget(ye,Ee),xe+=N.listRegisteredBindingsForServiceIdentifier(ge,ye,he),new Error(xe);case y.BindingCount.OnlyOneBindingAvailable:if(!Ee.isArray())return Ne;case y.BindingCount.MultipleBindingsAvailable:default:if(Ee.isArray())return Ne;var ye=N.getServiceIdentifierAsString(we),xe=A.AMBIGUOUS_MATCH+" "+ye;throw xe+=N.listRegisteredBindingsForServiceIdentifier(ge,ye,he),new Error(xe)}}function de(we,Ne,Ee,ge,ye,xe){var be,Ie;if(ye===null){be=J(we,Ne,ge,null,xe),Ie=new S.Request(Ee,ge,null,be,xe);var me=new C.Plan(ge,Ie);ge.addPlan(me)}else be=J(we,Ne,ge,ye,xe),Ie=ye.addChildRequest(xe.serviceIdentifier,be,xe);be.forEach(function(We){var Ce=null;if(xe.isArray())Ce=Ie.addChildRequest(We.serviceIdentifier,We,xe);else{if(We.cache)return;Ce=Ie}if(We.type===b.BindingTypeEnum.Instance&&We.implementationType!==null){var Pt=f.getDependencies(we,We.implementationType);if(!ge.container.options.skipBaseClassChecks){var ct=f.getBaseClassDependencyCount(we,We.implementationType);if(Pt.length0,ye=Ee.length>de.length,xe=ge||ye?Ee.length:de.length,be=S(he,ie,ke,Ne,xe),Ie=P(J,de),me=y(y([],be),Ie);return me}function f(J,ie,de,he,fe){var ke=fe[J.toString()]||[],we=re(ke),Ne=we.unmanaged!==!0,Ee=he[J],ge=we.inject||we.multiInject;if(Ee=ge||Ee,Ee instanceof A.LazyServiceIdentifer&&(Ee=Ee.unwrap()),Ne){var ye=Ee===Object,xe=Ee===Function,be=Ee===void 0,Ie=ye||xe||be;if(!ie&&Ie){var me=b.MISSING_INJECT_ANNOTATION+" argument "+J+" in class "+de+".";throw new Error(me)}var We=new w.Target(z.TargetTypeEnum.ConstructorArgument,we.targetName,Ee);return We.metadata=ke,We}return null}function S(J,ie,de,he,fe){for(var ke=[],we=0;we0?Ne:j(J,de)}else return 0}V.getBaseClassDependencyCount=j;function re(J){var ie={};return J.forEach(function(de){ie[de.key.toString()]=de.value}),{inject:ie[k.INJECT_TAG],multiInject:ie[k.MULTI_INJECT_TAG],targetName:ie[k.NAME_TAG],unmanaged:ie[k.UNMANAGED_TAG]}}},6748:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.Request=void 0;var y=m(37791),A=function(){function b(z,k,N,w,I){this.id=y.id(),this.serviceIdentifier=z,this.parentContext=k,this.parentRequest=N,this.target=I,this.childRequests=[],this.bindings=Array.isArray(w)?w:[w],this.requestScope=N===null?new Map:null}return b.prototype.addChildRequest=function(z,k,N){var w=new b(z,this.parentContext,this,k,N);return this.childRequests.push(w),w},b}();V.Request=A},18924:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.Target=void 0;var y=m(6867),A=m(37791),b=m(47738),z=m(88460),k=function(){function N(w,I,C,f){this.id=A.id(),this.type=w,this.serviceIdentifier=C,this.name=new z.QueryableString(I||""),this.metadata=new Array;var S=null;typeof f=="string"?S=new b.Metadata(y.NAMED_TAG,f):f instanceof b.Metadata&&(S=f),S!==null&&this.metadata.push(S)}return N.prototype.hasTag=function(w){for(var I=0,C=this.metadata;I0){var j=f.filter(function(J){return J.target!==null&&J.target.type===b.TargetTypeEnum.ConstructorArgument}),re=j.map(S);P=N(C,re),P=k(P,f,S)}else P=new C;return w(C,P),P}V.resolveInstance=I},31927:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.resolve=void 0;var y=m(16674),A=m(28421),b=m(85265),z=m(55800),k=m(52279),N=function(C,f,S){try{return S()}catch(P){throw b.isStackOverflowExeption(P)?new Error(y.CIRCULAR_DEPENDENCY_IN_FACTORY(C,f.toString())):P}},w=function(C){return function(f){f.parentContext.setCurrentRequest(f);var S=f.bindings,P=f.childRequests,j=f.target&&f.target.isArray(),re=!f.parentRequest||!f.parentRequest.target||!f.target||!f.parentRequest.target.matchesArray(f.target.serviceIdentifier);if(j&&re)return P.map(function(ke){var we=w(C);return we(ke)});var J=null;if(f.target.isOptional()&&S.length===0)return;var ie=S[0],de=ie.scope===A.BindingScopeEnum.Singleton,he=ie.scope===A.BindingScopeEnum.Request;if(de&&ie.activated)return ie.cache;if(he&&C!==null&&C.has(ie.id))return C.get(ie.id);if(ie.type===A.BindingTypeEnum.ConstantValue)J=ie.cache,ie.activated=!0;else if(ie.type===A.BindingTypeEnum.Function)J=ie.cache,ie.activated=!0;else if(ie.type===A.BindingTypeEnum.Constructor)J=ie.implementationType;else if(ie.type===A.BindingTypeEnum.DynamicValue&&ie.dynamicValue!==null)J=N("toDynamicValue",ie.serviceIdentifier,function(){return ie.dynamicValue(f.parentContext)});else if(ie.type===A.BindingTypeEnum.Factory&&ie.factory!==null)J=N("toFactory",ie.serviceIdentifier,function(){return ie.factory(f.parentContext)});else if(ie.type===A.BindingTypeEnum.Provider&&ie.provider!==null)J=N("toProvider",ie.serviceIdentifier,function(){return ie.provider(f.parentContext)});else if(ie.type===A.BindingTypeEnum.Instance&&ie.implementationType!==null)J=k.resolveInstance(ie.implementationType,P,w(C));else{var fe=z.getServiceIdentifierAsString(f.serviceIdentifier);throw new Error(y.INVALID_BINDING_TYPE+" "+fe)}return typeof ie.onActivation=="function"&&(J=ie.onActivation(f.parentContext,J)),de&&(ie.cache=J,ie.activated=!0),he&&C!==null&&!C.has(ie.id)&&C.set(ie.id,J),J}};function I(C){var f=w(C.plan.rootRequest.requestScope);return f(C.plan.rootRequest)}V.resolve=I},83366:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.BindingInSyntax=void 0;var y=m(28421),A=m(71325),b=function(){function z(k){this._binding=k}return z.prototype.inRequestScope=function(){return this._binding.scope=y.BindingScopeEnum.Request,new A.BindingWhenOnSyntax(this._binding)},z.prototype.inSingletonScope=function(){return this._binding.scope=y.BindingScopeEnum.Singleton,new A.BindingWhenOnSyntax(this._binding)},z.prototype.inTransientScope=function(){return this._binding.scope=y.BindingScopeEnum.Transient,new A.BindingWhenOnSyntax(this._binding)},z}();V.BindingInSyntax=b},99812:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.BindingInWhenOnSyntax=void 0;var y=m(83366),A=m(51811),b=m(98370),z=function(){function k(N){this._binding=N,this._bindingWhenSyntax=new b.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new A.BindingOnSyntax(this._binding),this._bindingInSyntax=new y.BindingInSyntax(N)}return k.prototype.inRequestScope=function(){return this._bindingInSyntax.inRequestScope()},k.prototype.inSingletonScope=function(){return this._bindingInSyntax.inSingletonScope()},k.prototype.inTransientScope=function(){return this._bindingInSyntax.inTransientScope()},k.prototype.when=function(N){return this._bindingWhenSyntax.when(N)},k.prototype.whenTargetNamed=function(N){return this._bindingWhenSyntax.whenTargetNamed(N)},k.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},k.prototype.whenTargetTagged=function(N,w){return this._bindingWhenSyntax.whenTargetTagged(N,w)},k.prototype.whenInjectedInto=function(N){return this._bindingWhenSyntax.whenInjectedInto(N)},k.prototype.whenParentNamed=function(N){return this._bindingWhenSyntax.whenParentNamed(N)},k.prototype.whenParentTagged=function(N,w){return this._bindingWhenSyntax.whenParentTagged(N,w)},k.prototype.whenAnyAncestorIs=function(N){return this._bindingWhenSyntax.whenAnyAncestorIs(N)},k.prototype.whenNoAncestorIs=function(N){return this._bindingWhenSyntax.whenNoAncestorIs(N)},k.prototype.whenAnyAncestorNamed=function(N){return this._bindingWhenSyntax.whenAnyAncestorNamed(N)},k.prototype.whenAnyAncestorTagged=function(N,w){return this._bindingWhenSyntax.whenAnyAncestorTagged(N,w)},k.prototype.whenNoAncestorNamed=function(N){return this._bindingWhenSyntax.whenNoAncestorNamed(N)},k.prototype.whenNoAncestorTagged=function(N,w){return this._bindingWhenSyntax.whenNoAncestorTagged(N,w)},k.prototype.whenAnyAncestorMatches=function(N){return this._bindingWhenSyntax.whenAnyAncestorMatches(N)},k.prototype.whenNoAncestorMatches=function(N){return this._bindingWhenSyntax.whenNoAncestorMatches(N)},k.prototype.onActivation=function(N){return this._bindingOnSyntax.onActivation(N)},k}();V.BindingInWhenOnSyntax=z},51811:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.BindingOnSyntax=void 0;var y=m(98370),A=function(){function b(z){this._binding=z}return b.prototype.onActivation=function(z){return this._binding.onActivation=z,new y.BindingWhenSyntax(this._binding)},b}();V.BindingOnSyntax=A},51860:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.BindingToSyntax=void 0;var y=m(16674),A=m(28421),b=m(99812),z=m(71325),k=function(){function N(w){this._binding=w}return N.prototype.to=function(w){return this._binding.type=A.BindingTypeEnum.Instance,this._binding.implementationType=w,new b.BindingInWhenOnSyntax(this._binding)},N.prototype.toSelf=function(){if(typeof this._binding.serviceIdentifier!="function")throw new Error(""+y.INVALID_TO_SELF_VALUE);var w=this._binding.serviceIdentifier;return this.to(w)},N.prototype.toConstantValue=function(w){return this._binding.type=A.BindingTypeEnum.ConstantValue,this._binding.cache=w,this._binding.dynamicValue=null,this._binding.implementationType=null,this._binding.scope=A.BindingScopeEnum.Singleton,new z.BindingWhenOnSyntax(this._binding)},N.prototype.toDynamicValue=function(w){return this._binding.type=A.BindingTypeEnum.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=w,this._binding.implementationType=null,new b.BindingInWhenOnSyntax(this._binding)},N.prototype.toConstructor=function(w){return this._binding.type=A.BindingTypeEnum.Constructor,this._binding.implementationType=w,this._binding.scope=A.BindingScopeEnum.Singleton,new z.BindingWhenOnSyntax(this._binding)},N.prototype.toFactory=function(w){return this._binding.type=A.BindingTypeEnum.Factory,this._binding.factory=w,this._binding.scope=A.BindingScopeEnum.Singleton,new z.BindingWhenOnSyntax(this._binding)},N.prototype.toFunction=function(w){if(typeof w!="function")throw new Error(y.INVALID_FUNCTION_BINDING);var I=this.toConstantValue(w);return this._binding.type=A.BindingTypeEnum.Function,this._binding.scope=A.BindingScopeEnum.Singleton,I},N.prototype.toAutoFactory=function(w){return this._binding.type=A.BindingTypeEnum.Factory,this._binding.factory=function(I){var C=function(){return I.container.get(w)};return C},this._binding.scope=A.BindingScopeEnum.Singleton,new z.BindingWhenOnSyntax(this._binding)},N.prototype.toProvider=function(w){return this._binding.type=A.BindingTypeEnum.Provider,this._binding.provider=w,this._binding.scope=A.BindingScopeEnum.Singleton,new z.BindingWhenOnSyntax(this._binding)},N.prototype.toService=function(w){this.toDynamicValue(function(I){return I.container.get(w)})},N}();V.BindingToSyntax=k},71325:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.BindingWhenOnSyntax=void 0;var y=m(51811),A=m(98370),b=function(){function z(k){this._binding=k,this._bindingWhenSyntax=new A.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new y.BindingOnSyntax(this._binding)}return z.prototype.when=function(k){return this._bindingWhenSyntax.when(k)},z.prototype.whenTargetNamed=function(k){return this._bindingWhenSyntax.whenTargetNamed(k)},z.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},z.prototype.whenTargetTagged=function(k,N){return this._bindingWhenSyntax.whenTargetTagged(k,N)},z.prototype.whenInjectedInto=function(k){return this._bindingWhenSyntax.whenInjectedInto(k)},z.prototype.whenParentNamed=function(k){return this._bindingWhenSyntax.whenParentNamed(k)},z.prototype.whenParentTagged=function(k,N){return this._bindingWhenSyntax.whenParentTagged(k,N)},z.prototype.whenAnyAncestorIs=function(k){return this._bindingWhenSyntax.whenAnyAncestorIs(k)},z.prototype.whenNoAncestorIs=function(k){return this._bindingWhenSyntax.whenNoAncestorIs(k)},z.prototype.whenAnyAncestorNamed=function(k){return this._bindingWhenSyntax.whenAnyAncestorNamed(k)},z.prototype.whenAnyAncestorTagged=function(k,N){return this._bindingWhenSyntax.whenAnyAncestorTagged(k,N)},z.prototype.whenNoAncestorNamed=function(k){return this._bindingWhenSyntax.whenNoAncestorNamed(k)},z.prototype.whenNoAncestorTagged=function(k,N){return this._bindingWhenSyntax.whenNoAncestorTagged(k,N)},z.prototype.whenAnyAncestorMatches=function(k){return this._bindingWhenSyntax.whenAnyAncestorMatches(k)},z.prototype.whenNoAncestorMatches=function(k){return this._bindingWhenSyntax.whenNoAncestorMatches(k)},z.prototype.onActivation=function(k){return this._bindingOnSyntax.onActivation(k)},z}();V.BindingWhenOnSyntax=b},98370:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.BindingWhenSyntax=void 0;var y=m(51811),A=m(80758),b=function(){function z(k){this._binding=k}return z.prototype.when=function(k){return this._binding.constraint=k,new y.BindingOnSyntax(this._binding)},z.prototype.whenTargetNamed=function(k){return this._binding.constraint=A.namedConstraint(k),new y.BindingOnSyntax(this._binding)},z.prototype.whenTargetIsDefault=function(){return this._binding.constraint=function(k){var N=k.target!==null&&!k.target.isNamed()&&!k.target.isTagged();return N},new y.BindingOnSyntax(this._binding)},z.prototype.whenTargetTagged=function(k,N){return this._binding.constraint=A.taggedConstraint(k)(N),new y.BindingOnSyntax(this._binding)},z.prototype.whenInjectedInto=function(k){return this._binding.constraint=function(N){return A.typeConstraint(k)(N.parentRequest)},new y.BindingOnSyntax(this._binding)},z.prototype.whenParentNamed=function(k){return this._binding.constraint=function(N){return A.namedConstraint(k)(N.parentRequest)},new y.BindingOnSyntax(this._binding)},z.prototype.whenParentTagged=function(k,N){return this._binding.constraint=function(w){return A.taggedConstraint(k)(N)(w.parentRequest)},new y.BindingOnSyntax(this._binding)},z.prototype.whenAnyAncestorIs=function(k){return this._binding.constraint=function(N){return A.traverseAncerstors(N,A.typeConstraint(k))},new y.BindingOnSyntax(this._binding)},z.prototype.whenNoAncestorIs=function(k){return this._binding.constraint=function(N){return!A.traverseAncerstors(N,A.typeConstraint(k))},new y.BindingOnSyntax(this._binding)},z.prototype.whenAnyAncestorNamed=function(k){return this._binding.constraint=function(N){return A.traverseAncerstors(N,A.namedConstraint(k))},new y.BindingOnSyntax(this._binding)},z.prototype.whenNoAncestorNamed=function(k){return this._binding.constraint=function(N){return!A.traverseAncerstors(N,A.namedConstraint(k))},new y.BindingOnSyntax(this._binding)},z.prototype.whenAnyAncestorTagged=function(k,N){return this._binding.constraint=function(w){return A.traverseAncerstors(w,A.taggedConstraint(k)(N))},new y.BindingOnSyntax(this._binding)},z.prototype.whenNoAncestorTagged=function(k,N){return this._binding.constraint=function(w){return!A.traverseAncerstors(w,A.taggedConstraint(k)(N))},new y.BindingOnSyntax(this._binding)},z.prototype.whenAnyAncestorMatches=function(k){return this._binding.constraint=function(N){return A.traverseAncerstors(N,k)},new y.BindingOnSyntax(this._binding)},z.prototype.whenNoAncestorMatches=function(k){return this._binding.constraint=function(N){return!A.traverseAncerstors(N,k)},new y.BindingOnSyntax(this._binding)},z}();V.BindingWhenSyntax=b},80758:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.typeConstraint=V.namedConstraint=V.taggedConstraint=V.traverseAncerstors=void 0;var y=m(6867),A=m(47738),b=function(w,I){var C=w.parentRequest;return C!==null?I(C)?!0:b(C,I):!1};V.traverseAncerstors=b;var z=function(w){return function(I){var C=function(f){return f!==null&&f.target!==null&&f.target.matchesTag(w)(I)};return C.metaData=new A.Metadata(w,I),C}};V.taggedConstraint=z;var k=z(y.NAMED_TAG);V.namedConstraint=k;var N=function(w){return function(I){var C=null;if(I!==null)if(C=I.bindings[0],typeof w=="string"){var f=C.serviceIdentifier;return f===w}else{var S=I.bindings[0].implementationType;return w===S}return!1}};V.typeConstraint=N},70600:function(nt,V){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.multiBindToService=void 0;var m=function(y){return function(A){return function(){for(var b=[],z=0;z ")}function N(C){C.childRequests.forEach(function(f){if(z(f,f.serviceIdentifier)){var S=k(f);throw new Error(y.CIRCULAR_DEPENDENCY+" "+S)}else N(f)})}V.circularDependencyToException=N;function w(C,f){if(f.isTagged()||f.isNamed()){var S="",P=f.getNamedTag(),j=f.getCustomTags();return P!==null&&(S+=P.toString()+` -`),j!==null&&j.forEach(function(re){S+=re.toString()+` +`;return function(){var lt=new Error("get-stack-trace"),Et=lt&<.stack?lt.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",an=I.console&&(I.console.warn||I.console.log);return an&&an.call(I.console,Fe,Et),tt.apply(this,arguments)}}var ce;typeof Object.assign!="function"?ce=function(ht){if(ht===k||ht===null)throw new TypeError("Cannot convert undefined or null to object");for(var vt=Object(ht),Fe=1;Fe-1}function Ce(tt){return tt.trim().split(/\s+/g)}function Ae(tt,ht,vt){if(tt.indexOf&&!vt)return tt.indexOf(ht);for(var Fe=0;FeTi[ht]}):Fe=Fe.sort()),Fe}function xe(tt,ht){for(var vt,Fe,lt=ht[0].toUpperCase()+ht.slice(1),Et=0;Et1&&!vt.firstMultiple?vt.firstMultiple=Ht(ht):lt===1&&(vt.firstMultiple=!1);var Et=vt.firstInput,an=vt.firstMultiple,jn=an?an.center:Et.center,Cr=ht.center=Wn(Fe);ht.timeStamp=S(),ht.deltaTime=ht.timeStamp-Et.timeStamp,ht.angle=Ri(jn,Cr),ht.distance=Zi(jn,Cr),Tt(vt,ht),ht.offsetDirection=hr(ht.deltaX,ht.deltaY);var Ti=tn(ht.deltaTime,ht.deltaX,ht.deltaY);ht.overallVelocityX=Ti.x,ht.overallVelocityY=Ti.y,ht.overallVelocity=f(Ti.x)>f(Ti.y)?Ti.x:Ti.y,ht.scale=an?Wo(an.pointers,Fe):1,ht.rotation=an?Pi(an.pointers,Fe):0,ht.maxPointers=vt.prevInput?ht.pointers.length>vt.prevInput.maxPointers?ht.pointers.length:vt.prevInput.maxPointers:ht.pointers.length,bt(vt,ht);var $i=tt.element;ye(ht.srcEvent.target,$i)&&($i=ht.srcEvent.target),ht.target=$i}function Tt(tt,ht){var vt=ht.center,Fe=tt.offsetDelta||{},lt=tt.prevDelta||{},Et=tt.prevInput||{};(ht.eventType===to||Et.eventType===yr)&&(lt=tt.prevDelta={x:Et.deltaX||0,y:Et.deltaY||0},Fe=tt.offsetDelta={x:vt.x,y:vt.y}),ht.deltaX=lt.x+(vt.x-Fe.x),ht.deltaY=lt.y+(vt.y-Fe.y)}function bt(tt,ht){var vt=tt.lastInterval||ht,Fe=ht.timeStamp-vt.timeStamp,lt,Et,an,jn;if(ht.eventType!=Po&&(Fe>oi||vt.velocity===k)){var Cr=ht.deltaX-vt.deltaX,Ti=ht.deltaY-vt.deltaY,$i=tn(Fe,Cr,Ti);Et=$i.x,an=$i.y,lt=f($i.x)>f($i.y)?$i.x:$i.y,jn=hr(Cr,Ti),tt.lastInterval=ht}else lt=vt.velocity,Et=vt.velocityX,an=vt.velocityY,jn=vt.direction;ht.velocity=lt,ht.velocityX=Et,ht.velocityY=an,ht.direction=jn}function Ht(tt){for(var ht=[],vt=0;vt=f(ht)?tt<0?ge:_o:ht<0?ci:Bi}function Zi(tt,ht,vt){vt||(vt=Ve);var Fe=ht[vt[0]]-tt[vt[0]],lt=ht[vt[1]]-tt[vt[1]];return Math.sqrt(Fe*Fe+lt*lt)}function Ri(tt,ht,vt){vt||(vt=Ve);var Fe=ht[vt[0]]-tt[vt[0]],lt=ht[vt[1]]-tt[vt[1]];return Math.atan2(lt,Fe)*180/Math.PI}function Pi(tt,ht){return Ri(ht[1],ht[0],_t)+Ri(tt[1],tt[0],_t)}function Wo(tt,ht){return Zi(ht[0],ht[1],_t)/Zi(tt[0],tt[1],_t)}var ys={mousedown:to,mousemove:yo,mouseup:yr},xn="mousedown",Hr="mousemove mouseup";function Jr(){this.evEl=xn,this.evWin=Hr,this.pressed=!1,xt.apply(this,arguments)}fe(Jr,xt,{handler:function(ht){var vt=ys[ht.type];vt&to&&ht.button===0&&(this.pressed=!0),vt&yo&&ht.which!==1&&(vt=yr),this.pressed&&(vt&yr&&(this.pressed=!1),this.callback(this.manager,vt,{pointers:[ht],changedPointers:[ht],pointerType:Er,srcEvent:ht}))}});var Yi={pointerdown:to,pointermove:yo,pointerup:yr,pointercancel:Po,pointerout:Po},xo={2:_n,3:Bn,4:Er,5:Yr},na="pointerdown",Un="pointermove pointerup pointercancel";I.MSPointerEvent&&!I.PointerEvent&&(na="MSPointerDown",Un="MSPointerMove MSPointerUp MSPointerCancel");function Xn(){this.evEl=na,this.evWin=Un,xt.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}fe(Xn,xt,{handler:function(ht){var vt=this.store,Fe=!1,lt=ht.type.toLowerCase().replace("ms",""),Et=Yi[lt],an=xo[ht.pointerType]||ht.pointerType,jn=an==_n,Cr=Ae(vt,ht.pointerId,"pointerId");Et&to&&(ht.button===0||jn)?Cr<0&&(vt.push(ht),Cr=vt.length-1):Et&(yr|Po)&&(Fe=!0),!(Cr<0)&&(vt[Cr]=ht,this.callback(this.manager,Et,{pointers:vt,changedPointers:[ht],pointerType:an,srcEvent:ht}),Fe&&vt.splice(Cr,1))}});var Mr={touchstart:to,touchmove:yo,touchend:yr,touchcancel:Po},li="touchstart",wr="touchstart touchmove touchend touchcancel";function qr(){this.evTarget=li,this.evWin=wr,this.started=!1,xt.apply(this,arguments)}fe(qr,xt,{handler:function(ht){var vt=Mr[ht.type];if(vt===to&&(this.started=!0),!!this.started){var Fe=ii.call(this,ht,vt);vt&(yr|Po)&&Fe[0].length-Fe[1].length===0&&(this.started=!1),this.callback(this.manager,vt,{pointers:Fe[0],changedPointers:Fe[1],pointerType:_n,srcEvent:ht})}}});function ii(tt,ht){var vt=me(tt.touches),Fe=me(tt.changedTouches);return ht&(yr|Po)&&(vt=je(vt.concat(Fe),"identifier",!0)),[vt,Fe]}var rn={touchstart:to,touchmove:yo,touchend:yr,touchcancel:Po},Qn="touchstart touchmove touchend touchcancel";function Vr(){this.evTarget=Qn,this.targetIds={},xt.apply(this,arguments)}fe(Vr,xt,{handler:function(ht){var vt=rn[ht.type],Fe=so.call(this,ht,vt);Fe&&this.callback(this.manager,vt,{pointers:Fe[0],changedPointers:Fe[1],pointerType:_n,srcEvent:ht})}});function so(tt,ht){var vt=me(tt.touches),Fe=this.targetIds;if(ht&(to|yo)&&vt.length===1)return Fe[vt[0].identifier]=!0,[vt,vt];var lt,Et,an=me(tt.changedTouches),jn=[],Cr=this.target;if(Et=vt.filter(function(Ti){return ye(Ti.target,Cr)}),ht===to)for(lt=0;lt-1&&Fe.splice(Et,1)};setTimeout(lt,rs)}}function ui(tt){for(var ht=tt.srcEvent.clientX,vt=tt.srcEvent.clientY,Fe=0;Fe-1&&this.requireFail.splice(ht,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(tt){return!!this.simultaneous[tt.id]},emit:function(tt){var ht=this,vt=this.state;function Fe(lt){ht.manager.emit(lt,tt)}vt=qn&&Fe(ht.options.event+Wa(vt))},tryEmit:function(tt){if(this.canEmit())return this.emit(tt);this.state=da},canEmit:function(){for(var tt=0;ttht.threshold&<&ht.direction},attrTest:function(tt){return Fr.prototype.attrTest.call(this,tt)&&(this.state&Ni||!(this.state&Ni)&&this.directionTest(tt))},emit:function(tt){this.pX=tt.deltaX,this.pY=tt.deltaY;var ht=Co(tt.direction);ht&&(tt.additionalEvent=this.options.event+ht),this._super.emit.call(this,tt)}});function jo(){Fr.apply(this,arguments)}fe(jo,Fr,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Tr]},attrTest:function(tt){return this._super.attrTest.call(this,tt)&&(Math.abs(tt.scale-1)>this.options.threshold||this.state&Ni)},emit:function(tt){if(tt.scale!==1){var ht=tt.scale<1?"in":"out";tt.additionalEvent=this.options.event+ht}this._super.emit.call(this,tt)}});function Es(){zs.apply(this,arguments),this._timer=null,this._input=null}fe(Es,zs,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[ti]},process:function(tt){var ht=this.options,vt=tt.pointers.length===ht.pointers,Fe=tt.distanceht.time;if(this._input=tt,!Fe||!vt||tt.eventType&(yr|Po)&&!lt)this.reset();else if(tt.eventType&to)this.reset(),this._timer=P(function(){this.state=ds,this.tryEmit()},ht.time,this);else if(tt.eventType&yr)return ds;return da},reset:function(){clearTimeout(this._timer)},emit:function(tt){this.state===ds&&(tt&&tt.eventType&yr?this.manager.emit(this.options.event+"up",tt):(this._input.timeStamp=S(),this.manager.emit(this.options.event,this._input)))}});function xs(){Fr.apply(this,arguments)}fe(xs,Fr,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Tr]},attrTest:function(tt){return this._super.attrTest.call(this,tt)&&(Math.abs(tt.rotation)>this.options.threshold||this.state&Ni)}});function Za(){Fr.apply(this,arguments)}fe(Za,Fr,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Ci|io,pointers:1},getTouchAction:function(){return fs.prototype.getTouchAction.call(this)},attrTest:function(tt){var ht=this.options.direction,vt;return ht&(Ci|io)?vt=tt.overallVelocity:ht&Ci?vt=tt.overallVelocityX:ht&io&&(vt=tt.overallVelocityY),this._super.attrTest.call(this,tt)&&ht&tt.offsetDirection&&tt.distance>this.options.threshold&&tt.maxPointers==this.options.pointers&&f(vt)>this.options.velocity&&tt.eventType&yr},emit:function(tt){var ht=Co(tt.offsetDirection);ht&&this.manager.emit(this.options.event+ht,tt),this.manager.emit(this.options.event,tt)}});function tl(){zs.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}fe(tl,zs,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[ji]},process:function(tt){var ht=this.options,vt=tt.pointers.length===ht.pointers,Fe=tt.distance>1,f=-7,S=I?z-1:0,P=I?-1:1,W=m[y+S];for(S+=P,k=W&(1<<-f)-1,W>>=-f,f+=w;f>0;k=k*256+m[y+S],S+=P,f-=8);for(N=k&(1<<-f)-1,k>>=-f,f+=b;f>0;N=N*256+m[y+S],S+=P,f-=8);if(k===0)k=1-C;else{if(k===A)return N?NaN:(W?-1:1)*(1/0);N=N+Math.pow(2,b),k=k-C}return(W?-1:1)*N*Math.pow(2,k-b)},V.write=function(m,y,I,b,z,k){var N,w,A,C=k*8-z-1,f=(1<>1,P=z===23?Math.pow(2,-24)-Math.pow(2,-77):0,W=b?0:k-1,ne=b?1:-1,re=y<0||y===0&&1/y<0?1:0;for(y=Math.abs(y),isNaN(y)||y===1/0?(w=isNaN(y)?1:0,N=f):(N=Math.floor(Math.log(y)/Math.LN2),y*(A=Math.pow(2,-N))<1&&(N--,A*=2),N+S>=1?y+=P/A:y+=P*Math.pow(2,1-S),y*A>=2&&(N++,A/=2),N+S>=f?(w=0,N=f):N+S>=1?(w=(y*A-1)*Math.pow(2,z),N=N+S):(w=y*Math.pow(2,S-1)*Math.pow(2,z),N=0));z>=8;m[I+W]=w&255,W+=ne,w/=256,z-=8);for(N=N<0;m[I+W]=N&255,W+=ne,N/=256,C-=8);m[I+W-ne]|=re*128}},3039:function(nt,V){"use strict";Object.defineProperty(V,"__esModule",{value:!0});var m=Symbol.for("INJECTION");function y(N,w,A,C){function f(){return C&&!Reflect.hasMetadata(m,this,w)&&Reflect.defineMetadata(m,A(),this,w),Reflect.hasMetadata(m,this,w)?Reflect.getMetadata(m,this,w):A()}function S(P){Reflect.defineMetadata(m,P,this,w)}Object.defineProperty(N,w,{configurable:!0,enumerable:!0,get:f,set:S})}function I(N,w){return function(A){return function(C,f){var S=function(){return N.get(A)};y(C,f,S,w)}}}V.makePropertyInjectDecorator=I;function b(N,w){return function(A,C){return function(f,S){var P=function(){return N.getNamed(A,C)};y(f,S,P,w)}}}V.makePropertyInjectNamedDecorator=b;function z(N,w){return function(A,C,f){return function(S,P){var W=function(){return N.getTagged(A,C,f)};y(S,P,W,w)}}}V.makePropertyInjectTaggedDecorator=z;function k(N,w){return function(A){return function(C,f){var S=function(){return N.getAll(A)};y(C,f,S,w)}}}V.makePropertyMultiInjectDecorator=k},11922:function(nt,V,m){"use strict";var y;y={value:!0};var I=m(3039);function b(z,k){k===void 0&&(k=!0);var N=I.makePropertyInjectDecorator(z,k),w=I.makePropertyInjectNamedDecorator(z,k),A=I.makePropertyInjectTaggedDecorator(z,k),C=I.makePropertyMultiInjectDecorator(z,k);return{lazyInject:N,lazyInjectNamed:w,lazyInjectTagged:A,lazyMultiInject:C}}V.Z=b},80626:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.tagProperty=V.tagParameter=V.decorate=void 0;var y=m(36078),I=m(50295);function b(C,f,S,P){var W=I.TAGGED;k(W,C,f,P,S)}V.tagParameter=b;function z(C,f,S){var P=I.TAGGED_PROP;k(P,C.constructor,f,S)}V.tagProperty=z;function k(C,f,S,P,W){var ne={},re=typeof W=="number",ce=W!==void 0&&re?W.toString():S;if(re&&S!==void 0)throw new Error(y.INVALID_DECORATOR_OPERATION);Reflect.hasOwnMetadata(C,f)&&(ne=Reflect.getMetadata(C,f));var pe=ne[ce];if(!Array.isArray(pe))pe=[];else for(var he=0,fe=pe;he= than the number of constructor arguments of its base class.")};V.ARGUMENTS_LENGTH_MISMATCH=y,V.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT="Invalid Container constructor argument. Container options must be an object.",V.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE="Invalid Container option. Default scope must be a string ('singleton' or 'transient').",V.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE="Invalid Container option. Auto bind injectable must be a boolean",V.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK="Invalid Container option. Skip base check must be a boolean",V.MULTIPLE_POST_CONSTRUCT_METHODS="Cannot apply @postConstruct decorator multiple times in the same class";var I=function(){for(var z=[],k=0;k0&&We[We.length-1])&&(we[0]===6||we[0]===2)){fe=0;continue}if(we[0]===3&&(!We||we[1]>We[0]&&we[1]0?k._map.set(w,A):k._map.delete(w)})},b.prototype.hasKey=function(z){if(z==null)throw new Error(y.NULL_ARGUMENT);return this._map.has(z)},b.prototype.clone=function(){var z=new b;return this._map.forEach(function(k,N){k.forEach(function(w){return z.add(N,w.clone())})}),z},b.prototype.traverse=function(z){this._map.forEach(function(k,N){z(N,k)})},b}();V.Lookup=I},99311:function(nt,V,m){"use strict";var y;y={value:!0},y=y=y=y=y=y=V.GW=y=y=V.zY=y=y=y=y=y=V.f3=y=y=V.b2=y=y=y=y=y=V.W2=y=void 0;var I=m(50295);y=I;var b=m(70596);Object.defineProperty(V,"W2",{enumerable:!0,get:function(){return b.Container}});var z=m(77690);y={enumerable:!0,get:function(){return z.BindingScopeEnum}},y={enumerable:!0,get:function(){return z.BindingTypeEnum}},y={enumerable:!0,get:function(){return z.TargetTypeEnum}};var k=m(42913);y={enumerable:!0,get:function(){return k.AsyncContainerModule}},y={enumerable:!0,get:function(){return k.ContainerModule}};var N=m(91773);Object.defineProperty(V,"b2",{enumerable:!0,get:function(){return N.injectable}});var w=m(79189);y={enumerable:!0,get:function(){return w.tagged}};var A=m(79817);y={enumerable:!0,get:function(){return A.named}};var C=m(76213);Object.defineProperty(V,"f3",{enumerable:!0,get:function(){return C.inject}}),y={enumerable:!0,get:function(){return C.LazyServiceIdentifer}};var f=m(71316);y={enumerable:!0,get:function(){return f.optional}};var S=m(19235);y={enumerable:!0,get:function(){return S.unmanaged}};var P=m(41528);y={enumerable:!0,get:function(){return P.multiInject}};var W=m(8245);y={enumerable:!0,get:function(){return W.targetName}};var ne=m(71971);Object.defineProperty(V,"zY",{enumerable:!0,get:function(){return ne.postConstruct}});var re=m(43870);y={enumerable:!0,get:function(){return re.MetadataReader}};var ce=m(70023);y={enumerable:!0,get:function(){return ce.id}};var pe=m(80626);Object.defineProperty(V,"GW",{enumerable:!0,get:function(){return pe.decorate}});var he=m(83140);y={enumerable:!0,get:function(){return he.traverseAncerstors}},y={enumerable:!0,get:function(){return he.taggedConstraint}},y={enumerable:!0,get:function(){return he.namedConstraint}},y={enumerable:!0,get:function(){return he.typeConstraint}};var fe=m(29552);y={enumerable:!0,get:function(){return fe.getServiceIdentifierAsString}};var Be=m(34384);y={enumerable:!0,get:function(){return Be.multiBindToService}}},91519:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.Context=void 0;var y=m(70023),I=function(){function b(z){this.id=y.id(),this.container=z}return b.prototype.addPlan=function(z){this.plan=z},b.prototype.setCurrentRequest=function(z){this.currentRequest=z},b}();V.Context=I},25092:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.Metadata=void 0;var y=m(50295),I=function(){function b(z,k){this.key=z,this.value=k}return b.prototype.toString=function(){return this.key===y.NAMED_TAG?"named: "+this.value.toString()+" ":"tagged: { key:"+this.key.toString()+", value: "+this.value+" }"},b}();V.Metadata=I},43870:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.MetadataReader=void 0;var y=m(50295),I=function(){function b(){}return b.prototype.getConstructorMetadata=function(z){var k=Reflect.getMetadata(y.PARAM_TYPES,z),N=Reflect.getMetadata(y.TAGGED,z);return{compilerGeneratedMetadata:k,userGeneratedMetadata:N||{}}},b.prototype.getPropertiesMetadata=function(z){var k=Reflect.getMetadata(y.TAGGED_PROP,z)||[];return k},b}();V.MetadataReader=I},6335:function(nt,V){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.Plan=void 0;var m=function(){function y(I,b){this.parentContext=I,this.rootRequest=b}return y}();V.Plan=m},54142:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.getBindingDictionary=V.createMockRequest=V.plan=void 0;var y=m(13497),I=m(36078),b=m(77690),z=m(50295),k=m(92542),N=m(29552),w=m(91519),A=m(25092),C=m(6335),f=m(16664),S=m(14810),P=m(69660);function W(Ie){return Ie._bindingDictionary}V.getBindingDictionary=W;function ne(Ie,We,De,ve,ye,we){var Ce=Ie?z.MULTI_INJECT_TAG:z.INJECT_TAG,Ae=new A.Metadata(Ce,De),me=new P.Target(We,ve,De,Ae);if(ye!==void 0){var je=new A.Metadata(ye,we);me.metadata.push(je)}return me}function re(Ie,We,De,ve,ye){var we=he(De.container,ye.serviceIdentifier),Ce=[];return we.length===y.BindingCount.NoBindingsAvailable&&De.container.options.autoBindInjectable&&typeof ye.serviceIdentifier=="function"&&Ie.getConstructorMetadata(ye.serviceIdentifier).compilerGeneratedMetadata&&(De.container.bind(ye.serviceIdentifier).toSelf(),we=he(De.container,ye.serviceIdentifier)),We?Ce=we:Ce=we.filter(function(Ae){var me=new S.Request(Ae.serviceIdentifier,De,ve,Ae,ye);return Ae.constraint(me)}),ce(ye.serviceIdentifier,Ce,ye,De.container),Ce}function ce(Ie,We,De,ve){switch(We.length){case y.BindingCount.NoBindingsAvailable:if(De.isOptional())return We;var ye=N.getServiceIdentifierAsString(Ie),we=I.NOT_REGISTERED;throw we+=N.listMetadataForTarget(ye,De),we+=N.listRegisteredBindingsForServiceIdentifier(ve,ye,he),new Error(we);case y.BindingCount.OnlyOneBindingAvailable:if(!De.isArray())return We;case y.BindingCount.MultipleBindingsAvailable:default:if(De.isArray())return We;var ye=N.getServiceIdentifierAsString(Ie),we=I.AMBIGUOUS_MATCH+" "+ye;throw we+=N.listRegisteredBindingsForServiceIdentifier(ve,ye,he),new Error(we)}}function pe(Ie,We,De,ve,ye,we){var Ce,Ae;if(ye===null){Ce=re(Ie,We,ve,null,we),Ae=new S.Request(De,ve,null,Ce,we);var me=new C.Plan(ve,Ae);ve.addPlan(me)}else Ce=re(Ie,We,ve,ye,we),Ae=ye.addChildRequest(we.serviceIdentifier,Ce,we);Ce.forEach(function(je){var xe=null;if(we.isArray())xe=Ae.addChildRequest(je.serviceIdentifier,je,we);else{if(je.cache)return;xe=Ae}if(je.type===b.BindingTypeEnum.Instance&&je.implementationType!==null){var Pt=f.getDependencies(Ie,je.implementationType);if(!ve.container.options.skipBaseClassChecks){var ct=f.getBaseClassDependencyCount(Ie,je.implementationType);if(Pt.length0,ye=De.length>pe.length,we=ve||ye?De.length:pe.length,Ce=S(he,ce,Be,We,we),Ae=P(re,pe),me=y(y([],Ce),Ae);return me}function f(re,ce,pe,he,fe){var Be=fe[re.toString()]||[],Ie=ne(Be),We=Ie.unmanaged!==!0,De=he[re],ve=Ie.inject||Ie.multiInject;if(De=ve||De,De instanceof I.LazyServiceIdentifer&&(De=De.unwrap()),We){var ye=De===Object,we=De===Function,Ce=De===void 0,Ae=ye||we||Ce;if(!ce&&Ae){var me=b.MISSING_INJECT_ANNOTATION+" argument "+re+" in class "+pe+".";throw new Error(me)}var je=new w.Target(z.TargetTypeEnum.ConstructorArgument,Ie.targetName,De);return je.metadata=Be,je}return null}function S(re,ce,pe,he,fe){for(var Be=[],Ie=0;Ie0?We:W(re,pe)}else return 0}V.getBaseClassDependencyCount=W;function ne(re){var ce={};return re.forEach(function(pe){ce[pe.key.toString()]=pe.value}),{inject:ce[k.INJECT_TAG],multiInject:ce[k.MULTI_INJECT_TAG],targetName:ce[k.NAME_TAG],unmanaged:ce[k.UNMANAGED_TAG]}}},14810:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.Request=void 0;var y=m(70023),I=function(){function b(z,k,N,w,A){this.id=y.id(),this.serviceIdentifier=z,this.parentContext=k,this.parentRequest=N,this.target=A,this.childRequests=[],this.bindings=Array.isArray(w)?w:[w],this.requestScope=N===null?new Map:null}return b.prototype.addChildRequest=function(z,k,N){var w=new b(z,this.parentContext,this,k,N);return this.childRequests.push(w),w},b}();V.Request=I},69660:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.Target=void 0;var y=m(50295),I=m(70023),b=m(25092),z=m(68634),k=function(){function N(w,A,C,f){this.id=I.id(),this.type=w,this.serviceIdentifier=C,this.name=new z.QueryableString(A||""),this.metadata=new Array;var S=null;typeof f=="string"?S=new b.Metadata(y.NAMED_TAG,f):f instanceof b.Metadata&&(S=f),S!==null&&this.metadata.push(S)}return N.prototype.hasTag=function(w){for(var A=0,C=this.metadata;A0){var W=f.filter(function(re){return re.target!==null&&re.target.type===b.TargetTypeEnum.ConstructorArgument}),ne=W.map(S);P=N(C,ne),P=k(P,f,S)}else P=new C;return w(C,P),P}V.resolveInstance=A},9386:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.resolve=void 0;var y=m(36078),I=m(77690),b=m(92542),z=m(29552),k=m(74962),N=function(C,f,S){try{return S()}catch(P){throw b.isStackOverflowExeption(P)?new Error(y.CIRCULAR_DEPENDENCY_IN_FACTORY(C,f.toString())):P}},w=function(C){return function(f){f.parentContext.setCurrentRequest(f);var S=f.bindings,P=f.childRequests,W=f.target&&f.target.isArray(),ne=!f.parentRequest||!f.parentRequest.target||!f.target||!f.parentRequest.target.matchesArray(f.target.serviceIdentifier);if(W&&ne)return P.map(function(Be){var Ie=w(C);return Ie(Be)});var re=null;if(f.target.isOptional()&&S.length===0)return;var ce=S[0],pe=ce.scope===I.BindingScopeEnum.Singleton,he=ce.scope===I.BindingScopeEnum.Request;if(pe&&ce.activated)return ce.cache;if(he&&C!==null&&C.has(ce.id))return C.get(ce.id);if(ce.type===I.BindingTypeEnum.ConstantValue)re=ce.cache,ce.activated=!0;else if(ce.type===I.BindingTypeEnum.Function)re=ce.cache,ce.activated=!0;else if(ce.type===I.BindingTypeEnum.Constructor)re=ce.implementationType;else if(ce.type===I.BindingTypeEnum.DynamicValue&&ce.dynamicValue!==null)re=N("toDynamicValue",ce.serviceIdentifier,function(){return ce.dynamicValue(f.parentContext)});else if(ce.type===I.BindingTypeEnum.Factory&&ce.factory!==null)re=N("toFactory",ce.serviceIdentifier,function(){return ce.factory(f.parentContext)});else if(ce.type===I.BindingTypeEnum.Provider&&ce.provider!==null)re=N("toProvider",ce.serviceIdentifier,function(){return ce.provider(f.parentContext)});else if(ce.type===I.BindingTypeEnum.Instance&&ce.implementationType!==null)re=k.resolveInstance(ce.implementationType,P,w(C));else{var fe=z.getServiceIdentifierAsString(f.serviceIdentifier);throw new Error(y.INVALID_BINDING_TYPE+" "+fe)}return typeof ce.onActivation=="function"&&(re=ce.onActivation(f.parentContext,re)),pe&&(ce.cache=re,ce.activated=!0),he&&C!==null&&!C.has(ce.id)&&C.set(ce.id,re),re}};function A(C){var f=w(C.plan.rootRequest.requestScope);return f(C.plan.rootRequest)}V.resolve=A},91640:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.BindingInSyntax=void 0;var y=m(77690),I=m(46890),b=function(){function z(k){this._binding=k}return z.prototype.inRequestScope=function(){return this._binding.scope=y.BindingScopeEnum.Request,new I.BindingWhenOnSyntax(this._binding)},z.prototype.inSingletonScope=function(){return this._binding.scope=y.BindingScopeEnum.Singleton,new I.BindingWhenOnSyntax(this._binding)},z.prototype.inTransientScope=function(){return this._binding.scope=y.BindingScopeEnum.Transient,new I.BindingWhenOnSyntax(this._binding)},z}();V.BindingInSyntax=b},82386:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.BindingInWhenOnSyntax=void 0;var y=m(91640),I=m(8926),b=m(36890),z=function(){function k(N){this._binding=N,this._bindingWhenSyntax=new b.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new I.BindingOnSyntax(this._binding),this._bindingInSyntax=new y.BindingInSyntax(N)}return k.prototype.inRequestScope=function(){return this._bindingInSyntax.inRequestScope()},k.prototype.inSingletonScope=function(){return this._bindingInSyntax.inSingletonScope()},k.prototype.inTransientScope=function(){return this._bindingInSyntax.inTransientScope()},k.prototype.when=function(N){return this._bindingWhenSyntax.when(N)},k.prototype.whenTargetNamed=function(N){return this._bindingWhenSyntax.whenTargetNamed(N)},k.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},k.prototype.whenTargetTagged=function(N,w){return this._bindingWhenSyntax.whenTargetTagged(N,w)},k.prototype.whenInjectedInto=function(N){return this._bindingWhenSyntax.whenInjectedInto(N)},k.prototype.whenParentNamed=function(N){return this._bindingWhenSyntax.whenParentNamed(N)},k.prototype.whenParentTagged=function(N,w){return this._bindingWhenSyntax.whenParentTagged(N,w)},k.prototype.whenAnyAncestorIs=function(N){return this._bindingWhenSyntax.whenAnyAncestorIs(N)},k.prototype.whenNoAncestorIs=function(N){return this._bindingWhenSyntax.whenNoAncestorIs(N)},k.prototype.whenAnyAncestorNamed=function(N){return this._bindingWhenSyntax.whenAnyAncestorNamed(N)},k.prototype.whenAnyAncestorTagged=function(N,w){return this._bindingWhenSyntax.whenAnyAncestorTagged(N,w)},k.prototype.whenNoAncestorNamed=function(N){return this._bindingWhenSyntax.whenNoAncestorNamed(N)},k.prototype.whenNoAncestorTagged=function(N,w){return this._bindingWhenSyntax.whenNoAncestorTagged(N,w)},k.prototype.whenAnyAncestorMatches=function(N){return this._bindingWhenSyntax.whenAnyAncestorMatches(N)},k.prototype.whenNoAncestorMatches=function(N){return this._bindingWhenSyntax.whenNoAncestorMatches(N)},k.prototype.onActivation=function(N){return this._bindingOnSyntax.onActivation(N)},k}();V.BindingInWhenOnSyntax=z},8926:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.BindingOnSyntax=void 0;var y=m(36890),I=function(){function b(z){this._binding=z}return b.prototype.onActivation=function(z){return this._binding.onActivation=z,new y.BindingWhenSyntax(this._binding)},b}();V.BindingOnSyntax=I},43313:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.BindingToSyntax=void 0;var y=m(36078),I=m(77690),b=m(82386),z=m(46890),k=function(){function N(w){this._binding=w}return N.prototype.to=function(w){return this._binding.type=I.BindingTypeEnum.Instance,this._binding.implementationType=w,new b.BindingInWhenOnSyntax(this._binding)},N.prototype.toSelf=function(){if(typeof this._binding.serviceIdentifier!="function")throw new Error(""+y.INVALID_TO_SELF_VALUE);var w=this._binding.serviceIdentifier;return this.to(w)},N.prototype.toConstantValue=function(w){return this._binding.type=I.BindingTypeEnum.ConstantValue,this._binding.cache=w,this._binding.dynamicValue=null,this._binding.implementationType=null,this._binding.scope=I.BindingScopeEnum.Singleton,new z.BindingWhenOnSyntax(this._binding)},N.prototype.toDynamicValue=function(w){return this._binding.type=I.BindingTypeEnum.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=w,this._binding.implementationType=null,new b.BindingInWhenOnSyntax(this._binding)},N.prototype.toConstructor=function(w){return this._binding.type=I.BindingTypeEnum.Constructor,this._binding.implementationType=w,this._binding.scope=I.BindingScopeEnum.Singleton,new z.BindingWhenOnSyntax(this._binding)},N.prototype.toFactory=function(w){return this._binding.type=I.BindingTypeEnum.Factory,this._binding.factory=w,this._binding.scope=I.BindingScopeEnum.Singleton,new z.BindingWhenOnSyntax(this._binding)},N.prototype.toFunction=function(w){if(typeof w!="function")throw new Error(y.INVALID_FUNCTION_BINDING);var A=this.toConstantValue(w);return this._binding.type=I.BindingTypeEnum.Function,this._binding.scope=I.BindingScopeEnum.Singleton,A},N.prototype.toAutoFactory=function(w){return this._binding.type=I.BindingTypeEnum.Factory,this._binding.factory=function(A){var C=function(){return A.container.get(w)};return C},this._binding.scope=I.BindingScopeEnum.Singleton,new z.BindingWhenOnSyntax(this._binding)},N.prototype.toProvider=function(w){return this._binding.type=I.BindingTypeEnum.Provider,this._binding.provider=w,this._binding.scope=I.BindingScopeEnum.Singleton,new z.BindingWhenOnSyntax(this._binding)},N.prototype.toService=function(w){this.toDynamicValue(function(A){return A.container.get(w)})},N}();V.BindingToSyntax=k},46890:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.BindingWhenOnSyntax=void 0;var y=m(8926),I=m(36890),b=function(){function z(k){this._binding=k,this._bindingWhenSyntax=new I.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new y.BindingOnSyntax(this._binding)}return z.prototype.when=function(k){return this._bindingWhenSyntax.when(k)},z.prototype.whenTargetNamed=function(k){return this._bindingWhenSyntax.whenTargetNamed(k)},z.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},z.prototype.whenTargetTagged=function(k,N){return this._bindingWhenSyntax.whenTargetTagged(k,N)},z.prototype.whenInjectedInto=function(k){return this._bindingWhenSyntax.whenInjectedInto(k)},z.prototype.whenParentNamed=function(k){return this._bindingWhenSyntax.whenParentNamed(k)},z.prototype.whenParentTagged=function(k,N){return this._bindingWhenSyntax.whenParentTagged(k,N)},z.prototype.whenAnyAncestorIs=function(k){return this._bindingWhenSyntax.whenAnyAncestorIs(k)},z.prototype.whenNoAncestorIs=function(k){return this._bindingWhenSyntax.whenNoAncestorIs(k)},z.prototype.whenAnyAncestorNamed=function(k){return this._bindingWhenSyntax.whenAnyAncestorNamed(k)},z.prototype.whenAnyAncestorTagged=function(k,N){return this._bindingWhenSyntax.whenAnyAncestorTagged(k,N)},z.prototype.whenNoAncestorNamed=function(k){return this._bindingWhenSyntax.whenNoAncestorNamed(k)},z.prototype.whenNoAncestorTagged=function(k,N){return this._bindingWhenSyntax.whenNoAncestorTagged(k,N)},z.prototype.whenAnyAncestorMatches=function(k){return this._bindingWhenSyntax.whenAnyAncestorMatches(k)},z.prototype.whenNoAncestorMatches=function(k){return this._bindingWhenSyntax.whenNoAncestorMatches(k)},z.prototype.onActivation=function(k){return this._bindingOnSyntax.onActivation(k)},z}();V.BindingWhenOnSyntax=b},36890:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.BindingWhenSyntax=void 0;var y=m(8926),I=m(83140),b=function(){function z(k){this._binding=k}return z.prototype.when=function(k){return this._binding.constraint=k,new y.BindingOnSyntax(this._binding)},z.prototype.whenTargetNamed=function(k){return this._binding.constraint=I.namedConstraint(k),new y.BindingOnSyntax(this._binding)},z.prototype.whenTargetIsDefault=function(){return this._binding.constraint=function(k){var N=k.target!==null&&!k.target.isNamed()&&!k.target.isTagged();return N},new y.BindingOnSyntax(this._binding)},z.prototype.whenTargetTagged=function(k,N){return this._binding.constraint=I.taggedConstraint(k)(N),new y.BindingOnSyntax(this._binding)},z.prototype.whenInjectedInto=function(k){return this._binding.constraint=function(N){return I.typeConstraint(k)(N.parentRequest)},new y.BindingOnSyntax(this._binding)},z.prototype.whenParentNamed=function(k){return this._binding.constraint=function(N){return I.namedConstraint(k)(N.parentRequest)},new y.BindingOnSyntax(this._binding)},z.prototype.whenParentTagged=function(k,N){return this._binding.constraint=function(w){return I.taggedConstraint(k)(N)(w.parentRequest)},new y.BindingOnSyntax(this._binding)},z.prototype.whenAnyAncestorIs=function(k){return this._binding.constraint=function(N){return I.traverseAncerstors(N,I.typeConstraint(k))},new y.BindingOnSyntax(this._binding)},z.prototype.whenNoAncestorIs=function(k){return this._binding.constraint=function(N){return!I.traverseAncerstors(N,I.typeConstraint(k))},new y.BindingOnSyntax(this._binding)},z.prototype.whenAnyAncestorNamed=function(k){return this._binding.constraint=function(N){return I.traverseAncerstors(N,I.namedConstraint(k))},new y.BindingOnSyntax(this._binding)},z.prototype.whenNoAncestorNamed=function(k){return this._binding.constraint=function(N){return!I.traverseAncerstors(N,I.namedConstraint(k))},new y.BindingOnSyntax(this._binding)},z.prototype.whenAnyAncestorTagged=function(k,N){return this._binding.constraint=function(w){return I.traverseAncerstors(w,I.taggedConstraint(k)(N))},new y.BindingOnSyntax(this._binding)},z.prototype.whenNoAncestorTagged=function(k,N){return this._binding.constraint=function(w){return!I.traverseAncerstors(w,I.taggedConstraint(k)(N))},new y.BindingOnSyntax(this._binding)},z.prototype.whenAnyAncestorMatches=function(k){return this._binding.constraint=function(N){return I.traverseAncerstors(N,k)},new y.BindingOnSyntax(this._binding)},z.prototype.whenNoAncestorMatches=function(k){return this._binding.constraint=function(N){return!I.traverseAncerstors(N,k)},new y.BindingOnSyntax(this._binding)},z}();V.BindingWhenSyntax=b},83140:function(nt,V,m){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.typeConstraint=V.namedConstraint=V.taggedConstraint=V.traverseAncerstors=void 0;var y=m(50295),I=m(25092),b=function(w,A){var C=w.parentRequest;return C!==null?A(C)?!0:b(C,A):!1};V.traverseAncerstors=b;var z=function(w){return function(A){var C=function(f){return f!==null&&f.target!==null&&f.target.matchesTag(w)(A)};return C.metaData=new I.Metadata(w,A),C}};V.taggedConstraint=z;var k=z(y.NAMED_TAG);V.namedConstraint=k;var N=function(w){return function(A){var C=null;if(A!==null)if(C=A.bindings[0],typeof w=="string"){var f=C.serviceIdentifier;return f===w}else{var S=A.bindings[0].implementationType;return w===S}return!1}};V.typeConstraint=N},34384:function(nt,V){"use strict";Object.defineProperty(V,"__esModule",{value:!0}),V.multiBindToService=void 0;var m=function(y){return function(I){return function(){for(var b=[],z=0;z ")}function N(C){C.childRequests.forEach(function(f){if(z(f,f.serviceIdentifier)){var S=k(f);throw new Error(y.CIRCULAR_DEPENDENCY+" "+S)}else N(f)})}V.circularDependencyToException=N;function w(C,f){if(f.isTagged()||f.isNamed()){var S="",P=f.getNamedTag(),W=f.getCustomTags();return P!==null&&(S+=P.toString()+` +`),W!==null&&W.forEach(function(ne){S+=ne.toString()+` `})," "+C+` - `+C+" - "+S}else return" "+C}V.listMetadataForTarget=w;function I(C){if(C.name)return C.name;var f=C.toString(),S=f.match(/^function\s*([^\s(]+)/);return S?S[1]:"Anonymous function: "+f}V.getFunctionName=I},82584:function(nt,V,m){"use strict";var y=m(96410)(),A=m(21924),b=A("Object.prototype.toString"),z=function(I){return y&&I&&typeof I=="object"&&Symbol.toStringTag in I?!1:b(I)==="[object Arguments]"},k=function(I){return z(I)?!0:I!==null&&typeof I=="object"&&typeof I.length=="number"&&I.length>=0&&b(I)!=="[object Array]"&&b(I.callee)==="[object Function]"},N=function(){return z(arguments)}();z.isLegacyArguments=k,nt.exports=N?z:k},18923:function(nt,V,m){"use strict";var y=Date.prototype.getDay,A=function(w){try{return y.call(w),!0}catch(I){return!1}},b=Object.prototype.toString,z="[object Date]",k=m(96410)();nt.exports=function(w){return typeof w!="object"||w===null?!1:k?A(w):b.call(w)===z}},98420:function(nt,V,m){"use strict";var y=m(21924),A=m(96410)(),b,z,k,N;if(A){b=y("Object.prototype.hasOwnProperty"),z=y("RegExp.prototype.exec"),k={};var w=function(){throw k};N={toString:w,valueOf:w},typeof Symbol.toPrimitive=="symbol"&&(N[Symbol.toPrimitive]=w)}var I=y("Object.prototype.toString"),C=Object.getOwnPropertyDescriptor,f="[object RegExp]";nt.exports=A?function(P){if(!P||typeof P!="object")return!1;var j=C(P,"lastIndex"),re=j&&b(j,"value");if(!re)return!1;try{z(P,N)}catch(J){return J===k}}:function(P){return!P||typeof P!="object"&&typeof P!="function"?!1:I(P)===f}},5826:function(nt){var V={}.toString;nt.exports=Array.isArray||function(m){return V.call(m)=="[object Array]"}},18552:function(nt,V,m){var y=m(10852),A=m(55639),b=y(A,"DataView");nt.exports=b},1989:function(nt,V,m){var y=m(51789),A=m(80401),b=m(57667),z=m(21327),k=m(81866);function N(w){var I=-1,C=w==null?0:w.length;for(this.clear();++I-1}nt.exports=A},1196:function(nt){function V(m,y,A){for(var b=-1,z=m==null?0:m.length;++b=y?m:y)),m}nt.exports=V},85990:function(nt,V,m){var y=m(46384),A=m(77412),b=m(34865),z=m(44037),k=m(63886),N=m(64626),w=m(278),I=m(18805),C=m(1911),f=m(58234),S=m(46904),P=m(64160),j=m(43824),re=m(29148),J=m(38517),ie=m(1469),de=m(44144),he=m(56688),fe=m(13218),ke=m(72928),we=m(3674),Ne=m(81704),Ee=1,ge=2,ye=4,xe="[object Arguments]",be="[object Array]",Ie="[object Boolean]",me="[object Date]",We="[object Error]",Ce="[object Function]",Pt="[object GeneratorFunction]",ct="[object Map]",Ue="[object Number]",bt="[object Object]",ht="[object RegExp]",Bt="[object Set]",mt="[object String]",_n="[object Symbol]",Bn="[object WeakMap]",Er="[object ArrayBuffer]",Yr="[object DataView]",oi="[object Float32Array]",to="[object Float64Array]",yo="[object Int8Array]",vr="[object Int16Array]",Po="[object Int32Array]",ss="[object Uint8Array]",ve="[object Uint8ClampedArray]",_o="[object Uint16Array]",ci="[object Uint32Array]",Bi={};Bi[xe]=Bi[be]=Bi[Er]=Bi[Yr]=Bi[Ie]=Bi[me]=Bi[oi]=Bi[to]=Bi[yo]=Bi[vr]=Bi[Po]=Bi[ct]=Bi[Ue]=Bi[bt]=Bi[ht]=Bi[Bt]=Bi[mt]=Bi[_n]=Bi[ss]=Bi[ve]=Bi[_o]=Bi[ci]=!0,Bi[We]=Bi[Ce]=Bi[Bn]=!1;function wi(io,ln,Ve,_t,Ct,jt){var on,Ot=ln&Ee,Tt=ln&ge,xt=ln&ye;if(Ve&&(on=Ct?Ve(io,_t,Ct,jt):Ve(io)),on!==void 0)return on;if(!fe(io))return io;var Ht=ie(io);if(Ht){if(on=j(io),!Ot)return w(io,on)}else{var Zn=P(io),tn=Zn==Ce||Zn==Pt;if(de(io))return N(io,Ot);if(Zn==bt||Zn==xe||tn&&!Ct){if(on=Tt||tn?{}:J(io),!Ot)return Tt?C(io,k(on,io)):I(io,z(on,io))}else{if(!Bi[Zn])return Ct?io:{};on=re(io,Zn,Ot)}}jt||(jt=new y);var hr=jt.get(io);if(hr)return hr;jt.set(io,on),ke(io)?io.forEach(function(Pi){on.add(wi(Pi,ln,Ve,Pi,io,jt))}):he(io)&&io.forEach(function(Pi,$o){on.set($o,wi(Pi,ln,Ve,$o,io,jt))});var Zi=xt?Tt?S:f:Tt?Ne:we,Ri=Ht?void 0:Zi(io);return A(Ri||io,function(Pi,$o){Ri&&($o=Pi,Pi=io[$o]),b(on,$o,wi(Pi,ln,Ve,$o,io,jt))}),on}nt.exports=wi},3118:function(nt,V,m){var y=m(13218),A=Object.create,b=function(){function z(){}return function(k){if(!y(k))return{};if(A)return A(k);z.prototype=k;var N=new z;return z.prototype=void 0,N}}();nt.exports=b},41848:function(nt){function V(m,y,A,b){for(var z=m.length,k=A+(b?1:-1);b?k--:++k-1;)ie!==C&&w.call(ie,de,1),w.call(C,de,1);return C}nt.exports=I},5976:function(nt,V,m){var y=m(6557),A=m(45357),b=m(30061);function z(k,N){return b(A(k,N,y),k+"")}nt.exports=z},56560:function(nt,V,m){var y=m(75703),A=m(38777),b=m(6557),z=A?function(k,N){return A(k,"toString",{configurable:!0,enumerable:!1,value:y(N),writable:!0})}:b;nt.exports=z},14259:function(nt){function V(m,y,A){var b=-1,z=m.length;y<0&&(y=-y>z?0:z+y),A=A>z?z:A,A<0&&(A+=z),z=y>A?0:A-y>>>0,y>>>=0;for(var k=Array(z);++b=w){var he=f?null:k(C);if(he)return N(he);J=!1,j=z,de=new y}else de=f?[]:ie;e:for(;++P=N?b:y(b,z,k)}nt.exports=A},74318:function(nt,V,m){var y=m(11149);function A(b){var z=new b.constructor(b.byteLength);return new y(z).set(new y(b)),z}nt.exports=A},64626:function(nt,V,m){nt=m.nmd(nt);var y=m(55639),A=V&&!V.nodeType&&V,b=A&&!0&&nt&&!nt.nodeType&&nt,z=b&&b.exports===A,k=z?y.Buffer:void 0,N=k?k.allocUnsafe:void 0;function w(I,C){if(C)return I.slice();var f=I.length,S=N?N(f):new I.constructor(f);return I.copy(S),S}nt.exports=w},57157:function(nt,V,m){var y=m(74318);function A(b,z){var k=z?y(b.buffer):b.buffer;return new b.constructor(k,b.byteOffset,b.byteLength)}nt.exports=A},93147:function(nt){var V=/\w*$/;function m(y){var A=new y.constructor(y.source,V.exec(y));return A.lastIndex=y.lastIndex,A}nt.exports=m},40419:function(nt,V,m){var y=m(62705),A=y?y.prototype:void 0,b=A?A.valueOf:void 0;function z(k){return b?Object(b.call(k)):{}}nt.exports=z},77133:function(nt,V,m){var y=m(74318);function A(b,z){var k=z?y(b.buffer):b.buffer;return new b.constructor(k,b.byteOffset,b.length)}nt.exports=A},278:function(nt){function V(m,y){var A=-1,b=m.length;for(y||(y=Array(b));++A1?N[I-1]:void 0,f=I>2?N[2]:void 0;for(C=z.length>3&&typeof C=="function"?(I--,C):void 0,f&&A(N[0],N[1],f)&&(C=I<3?void 0:C,I=1),k=Object(k);++wre))return!1;var ie=P.get(w),de=P.get(I);if(ie&&de)return ie==I&&de==w;var he=-1,fe=!0,ke=C&k?new y:void 0;for(P.set(w,I),P.set(I,w);++he-1&&A%1==0&&A-1}nt.exports=A},44264:function(nt,V,m){var y=m(18470);function A(b,z){var k=this.__data__,N=y(k,b);return N<0?(++this.size,k.push([b,z])):k[N][1]=z,this}nt.exports=A},24785:function(nt,V,m){var y=m(1989),A=m(38407),b=m(57071);function z(){this.size=0,this.__data__={hash:new y,map:new(b||A),string:new y}}nt.exports=z},11285:function(nt,V,m){var y=m(45050);function A(b){var z=y(this,b).delete(b);return this.size-=z?1:0,z}nt.exports=A},96e3:function(nt,V,m){var y=m(45050);function A(b){return y(this,b).get(b)}nt.exports=A},49916:function(nt,V,m){var y=m(45050);function A(b){return y(this,b).has(b)}nt.exports=A},95265:function(nt,V,m){var y=m(45050);function A(b,z){var k=y(this,b),N=k.size;return k.set(b,z),this.size+=k.size==N?0:1,this}nt.exports=A},68776:function(nt){function V(m){var y=-1,A=Array(m.size);return m.forEach(function(b,z){A[++y]=[z,b]}),A}nt.exports=V},24523:function(nt,V,m){var y=m(15644),A=500;function b(z){var k=y(z,function(w){return N.size===A&&N.clear(),w}),N=k.cache;return k}nt.exports=b},94536:function(nt,V,m){var y=m(10852),A=y(Object,"create");nt.exports=A},86916:function(nt,V,m){var y=m(5569),A=y(Object.keys,Object);nt.exports=A},33498:function(nt){function V(m){var y=[];if(m!=null)for(var A in Object(m))y.push(A);return y}nt.exports=V},31167:function(nt,V,m){nt=m.nmd(nt);var y=m(31957),A=V&&!V.nodeType&&V,b=A&&!0&&nt&&!nt.nodeType&&nt,z=b&&b.exports===A,k=z&&y.process,N=function(){try{var w=b&&b.require&&b.require("util").types;return w||k&&k.binding&&k.binding("util")}catch(I){}}();nt.exports=N},2333:function(nt){var V=Object.prototype,m=V.toString;function y(A){return m.call(A)}nt.exports=y},5569:function(nt){function V(m,y){return function(A){return m(y(A))}}nt.exports=V},45357:function(nt,V,m){var y=m(96874),A=Math.max;function b(z,k,N){return k=A(k===void 0?z.length-1:k,0),function(){for(var w=arguments,I=-1,C=A(w.length-k,0),f=Array(C);++I0){if(++z>=V)return arguments[0]}else z=0;return b.apply(void 0,arguments)}}nt.exports=A},37465:function(nt,V,m){var y=m(38407);function A(){this.__data__=new y,this.size=0}nt.exports=A},63779:function(nt){function V(m){var y=this.__data__,A=y.delete(m);return this.size=y.size,A}nt.exports=V},67599:function(nt){function V(m){return this.__data__.get(m)}nt.exports=V},44758:function(nt){function V(m){return this.__data__.has(m)}nt.exports=V},34309:function(nt,V,m){var y=m(38407),A=m(57071),b=m(83369),z=200;function k(N,w){var I=this.__data__;if(I instanceof y){var C=I.__data__;if(!A||C.length=C||Ce<0||fe&&Pt>=j}function ye(){var We=A();if(ge(We))return xe(We);J=setTimeout(ye,Ee(We))}function xe(We){return J=void 0,ke&&S?we(We):(S=P=void 0,re)}function be(){J!==void 0&&clearTimeout(J),de=0,S=ie=P=J=void 0}function Ie(){return J===void 0?re:xe(A())}function me(){var We=A(),Ce=ge(We);if(S=arguments,P=this,ie=We,Ce){if(J===void 0)return Ne(ie);if(fe)return clearTimeout(J),J=setTimeout(ye,C),we(ie)}return J===void 0&&(J=setTimeout(ye,C)),re}return me.cancel=be,me.flush=Ie,me}nt.exports=w},53816:function(nt,V,m){var y=m(69389),A=m(79833),b=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,z="\\u0300-\\u036f",k="\\ufe20-\\ufe2f",N="\\u20d0-\\u20ff",w=z+k+N,I="["+w+"]",C=RegExp(I,"g");function f(S){return S=A(S),S&&S.replace(b,y).replace(C,"")}nt.exports=f},77813:function(nt){function V(m,y){return m===y||m!==m&&y!==y}nt.exports=V},27361:function(nt,V,m){var y=m(97786);function A(b,z,k){var N=b==null?void 0:y(b,z);return N===void 0?k:N}nt.exports=A},6557:function(nt){function V(m){return m}nt.exports=V},35694:function(nt,V,m){var y=m(9454),A=m(37005),b=Object.prototype,z=b.hasOwnProperty,k=b.propertyIsEnumerable,N=y(function(){return arguments}())?y:function(w){return A(w)&&z.call(w,"callee")&&!k.call(w,"callee")};nt.exports=N},1469:function(nt){var V=Array.isArray;nt.exports=V},98612:function(nt,V,m){var y=m(23560),A=m(41780);function b(z){return z!=null&&A(z.length)&&!y(z)}nt.exports=b},29246:function(nt,V,m){var y=m(98612),A=m(37005);function b(z){return A(z)&&y(z)}nt.exports=b},51584:function(nt,V,m){var y=m(44239),A=m(37005),b="[object Boolean]";function z(k){return k===!0||k===!1||A(k)&&y(k)==b}nt.exports=z},44144:function(nt,V,m){nt=m.nmd(nt);var y=m(55639),A=m(95062),b=V&&!V.nodeType&&V,z=b&&!0&&nt&&!nt.nodeType&&nt,k=z&&z.exports===b,N=k?y.Buffer:void 0,w=N?N.isBuffer:void 0,I=w||A;nt.exports=I},18446:function(nt,V,m){var y=m(90939);function A(b,z){return y(b,z)}nt.exports=A},23560:function(nt,V,m){var y=m(44239),A=m(13218),b="[object AsyncFunction]",z="[object Function]",k="[object GeneratorFunction]",N="[object Proxy]";function w(I){if(!A(I))return!1;var C=y(I);return C==z||C==k||C==b||C==N}nt.exports=w},41780:function(nt){var V=9007199254740991;function m(y){return typeof y=="number"&&y>-1&&y%1==0&&y<=V}nt.exports=m},56688:function(nt,V,m){var y=m(25588),A=m(7518),b=m(31167),z=b&&b.isMap,k=z?A(z):y;nt.exports=k},14293:function(nt){function V(m){return m==null}nt.exports=V},81763:function(nt,V,m){var y=m(44239),A=m(37005),b="[object Number]";function z(k){return typeof k=="number"||A(k)&&y(k)==b}nt.exports=z},13218:function(nt){function V(m){var y=typeof m;return m!=null&&(y=="object"||y=="function")}nt.exports=V},37005:function(nt){function V(m){return m!=null&&typeof m=="object"}nt.exports=V},68630:function(nt,V,m){var y=m(44239),A=m(85924),b=m(37005),z="[object Object]",k=Function.prototype,N=Object.prototype,w=k.toString,I=N.hasOwnProperty,C=w.call(Object);function f(S){if(!b(S)||y(S)!=z)return!1;var P=A(S);if(P===null)return!0;var j=I.call(P,"constructor")&&P.constructor;return typeof j=="function"&&j instanceof j&&w.call(j)==C}nt.exports=f},72928:function(nt,V,m){var y=m(29221),A=m(7518),b=m(31167),z=b&&b.isSet,k=z?A(z):y;nt.exports=k},47037:function(nt,V,m){var y=m(44239),A=m(1469),b=m(37005),z="[object String]";function k(N){return typeof N=="string"||!A(N)&&b(N)&&y(N)==z}nt.exports=k},33448:function(nt,V,m){var y=m(44239),A=m(37005),b="[object Symbol]";function z(k){return typeof k=="symbol"||A(k)&&y(k)==b}nt.exports=z},36719:function(nt,V,m){var y=m(38749),A=m(7518),b=m(31167),z=b&&b.isTypedArray,k=z?A(z):y;nt.exports=k},52353:function(nt){function V(m){return m===void 0}nt.exports=V},3674:function(nt,V,m){var y=m(14636),A=m(280),b=m(98612);function z(k){return b(k)?y(k):A(k)}nt.exports=z},81704:function(nt,V,m){var y=m(14636),A=m(35014),b=m(98612);function z(k){return b(k)?y(k,!0):A(k)}nt.exports=z},96486:function(nt,V,m){nt=m.nmd(nt);var y;(function(){var A,b="4.17.21",z=200,k="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",N="Expected a function",w="Invalid `variable` option passed into `_.template`",I="__lodash_hash_undefined__",C=500,f="__lodash_placeholder__",S=1,P=2,j=4,re=1,J=2,ie=1,de=2,he=4,fe=8,ke=16,we=32,Ne=64,Ee=128,ge=256,ye=512,xe=30,be="...",Ie=800,me=16,We=1,Ce=2,Pt=3,ct=1/0,Ue=9007199254740991,bt=17976931348623157e292,ht=0/0,Bt=4294967295,mt=Bt-1,_n=Bt>>>1,Bn=[["ary",Ee],["bind",ie],["bindKey",de],["curry",fe],["curryRight",ke],["flip",ye],["partial",we],["partialRight",Ne],["rearg",ge]],Er="[object Arguments]",Yr="[object Array]",oi="[object AsyncFunction]",to="[object Boolean]",yo="[object Date]",vr="[object DOMException]",Po="[object Error]",ss="[object Function]",ve="[object GeneratorFunction]",_o="[object Map]",ci="[object Number]",Bi="[object Null]",wi="[object Object]",io="[object Promise]",ln="[object Proxy]",Ve="[object RegExp]",_t="[object Set]",Ct="[object String]",jt="[object Symbol]",on="[object Undefined]",Ot="[object WeakMap]",Tt="[object WeakSet]",xt="[object ArrayBuffer]",Ht="[object DataView]",Zn="[object Float32Array]",tn="[object Float64Array]",hr="[object Int8Array]",Zi="[object Int16Array]",Ri="[object Int32Array]",Pi="[object Uint8Array]",$o="[object Uint8ClampedArray]",ys="[object Uint16Array]",xn="[object Uint32Array]",Hr=/\b__p \+= '';/g,Jr=/\b(__p \+=) '' \+/g,Yi=/(__e\(.*?\)|\b__t\)) \+\n'';/g,xo=/&(?:amp|lt|gt|quot|#39);/g,na=/[&<>"']/g,Vn=RegExp(xo.source),Xn=RegExp(na.source),Mr=/<%-([\s\S]+?)%>/g,li=/<%([\s\S]+?)%>/g,Cr=/<%=([\s\S]+?)%>/g,qr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ii=/^\w*$/,rn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Jn=/[\\^$.*+?()[\]{}|]/g,Vr=RegExp(Jn.source),so=/^\s+/,rs=/\s/,zt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,pn=/\{\n\/\* \[wrapped with (.+)\] \*/,_r=/,? & /,Gr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ui=/[()=,{}\[\]\/\s]/,Ci=/\\(\\)?/g,lo=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Kr=/\w*$/,ti=/^[-+]0x[0-9a-f]+$/i,Wi=/^0b[01]+$/i,Tr=/^\[object .+?Constructor\]$/,Qt=/^0o[0-7]+$/i,Gn=/^(?:0|[1-9]\d*)$/,yi=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ln=/($^)/,Si=/['\n\r\u2028\u2029\\]/g,tr="\\ud800-\\udfff",vi="\\u0300-\\u036f",Ni="\\ufe20-\\ufe2f",kr="\\u20d0-\\u20ff",Qn=vi+Ni+kr,ds="\\u2700-\\u27bf",_a="a-z\\xdf-\\xf6\\xf8-\\xff",da="\\xac\\xb1\\xd7\\xf7",zs="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ja="\\u2000-\\u206f",Co=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",dl="A-Z\\xc0-\\xd6\\xd8-\\xde",Fr="\\ufe0e\\ufe0f",fs=da+zs+ja+Co,jo="['\u2019]",Es="["+tr+"]",xs="["+fs+"]",Za="["+Qn+"]",tl="\\d+",xl="["+ds+"]",Qa="["+_a+"]",si="[^"+tr+fs+tl+ds+_a+dl+"]",co="\\ud83c[\\udffb-\\udfff]",dn="(?:"+Za+"|"+co+")",Dn="[^"+tr+"]",Nn="(?:\\ud83c[\\udde6-\\uddff]){2}",tt="[\\ud800-\\udbff][\\udc00-\\udfff]",dt="["+dl+"]",vt="\\u200d",ze="(?:"+Qa+"|"+si+")",lt="(?:"+dt+"|"+si+")",Et="(?:"+jo+"(?:d|ll|m|re|s|t|ve))?",an="(?:"+jo+"(?:D|LL|M|RE|S|T|VE))?",jn=dn+"?",xr="["+Fr+"]?",Ti="(?:"+vt+"(?:"+[Dn,Nn,tt].join("|")+")"+xr+jn+")*",$i="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Vi="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",us=xr+jn+Ti,ks="(?:"+[xl,Nn,tt].join("|")+")"+us,Os="(?:"+[Dn+Za+"?",Za,Nn,tt,Es].join("|")+")",pa=RegExp(jo,"g"),no=RegExp(Za,"g"),Cs=RegExp(co+"(?="+co+")|"+Os+us,"g"),ea=RegExp([dt+"?"+Qa+"+"+Et+"(?="+[xs,dt,"$"].join("|")+")",lt+"+"+an+"(?="+[xs,dt+ze,"$"].join("|")+")",dt+"?"+ze+"+"+Et,dt+"+"+an,Vi,$i,tl,ks].join("|"),"g"),fa=RegExp("["+vt+tr+Qn+Fr+"]"),Bl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ma=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],gl=-1,ia={};ia[Zn]=ia[tn]=ia[hr]=ia[Zi]=ia[Ri]=ia[Pi]=ia[$o]=ia[ys]=ia[xn]=!0,ia[Er]=ia[Yr]=ia[xt]=ia[to]=ia[Ht]=ia[yo]=ia[Po]=ia[ss]=ia[_o]=ia[ci]=ia[wi]=ia[Ve]=ia[_t]=ia[Ct]=ia[Ot]=!1;var Nl={};Nl[Er]=Nl[Yr]=Nl[xt]=Nl[Ht]=Nl[to]=Nl[yo]=Nl[Zn]=Nl[tn]=Nl[hr]=Nl[Zi]=Nl[Ri]=Nl[_o]=Nl[ci]=Nl[wi]=Nl[Ve]=Nl[_t]=Nl[Ct]=Nl[jt]=Nl[Pi]=Nl[$o]=Nl[ys]=Nl[xn]=!0,Nl[Po]=Nl[ss]=Nl[Ot]=!1;var cs={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},zi={"&":"&","<":"<",">":">",'"':""","'":"'"},Ji={"&":"&","<":"<",">":">",""":'"',"'":"'"},ta={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ms=parseFloat,Ua=parseInt,ju=typeof m.g=="object"&&m.g&&m.g.Object===Object&&m.g,rc=typeof self=="object"&&self&&self.Object===Object&&self,Pc=ju||rc||Function("return this")(),ho=V&&!V.nodeType&&V,qi=ho&&!0&&nt&&!nt.nodeType&&nt,os=qi&&qi.exports===ho,$n=os&&ju.process,mr=function(){try{var Ba=qi&&qi.require&&qi.require("util").types;return Ba||$n&&$n.binding&&$n.binding("util")}catch(ru){}}(),Qr=mr&&mr.isArrayBuffer,ni=mr&&mr.isDate,Ki=mr&&mr.isMap,ro=mr&&mr.isRegExp,Ei=mr&&mr.isSet,ns=mr&&mr.isTypedArray;function ua(Ba,ru,zl){switch(zl.length){case 0:return Ba.call(ru);case 1:return Ba.call(ru,zl[0]);case 2:return Ba.call(ru,zl[0],zl[1]);case 3:return Ba.call(ru,zl[0],zl[1],zl[2])}return Ba.apply(ru,zl)}function Na(Ba,ru,zl,Au){for(var Uu=-1,Vd=Ba==null?0:Ba.length;++Uu-1}function Xs(Ba,ru,zl){for(var Au=-1,Uu=Ba==null?0:Ba.length;++Au-1;);return zl}function vd(Ba,ru){for(var zl=Ba.length;zl--&&ma(ru,Ba[zl],0)>-1;);return zl}function Yd(Ba,ru){for(var zl=Ba.length,Au=0;zl--;)Ba[zl]===ru&&++Au;return Au}var nh=Fu(cs),Wd=Fu(zi);function yh(Ba){return"\\"+ta[Ba]}function id(Ba,ru){return Ba==null?A:Ba[ru]}function nd(Ba){return fa.test(Ba)}function Pf(Ba){return Bl.test(Ba)}function Jd(Ba){for(var ru,zl=[];!(ru=Ba.next()).done;)zl.push(ru.value);return zl}function cc(Ba){var ru=-1,zl=Array(Ba.size);return Ba.forEach(function(Au,Uu){zl[++ru]=[Uu,Au]}),zl}function Yc(Ba,ru){return function(zl){return Ba(ru(zl))}}function Wh(Ba,ru){for(var zl=-1,Au=Ba.length,Uu=0,Vd=[];++zl-1}function ne(ce,Be){var Zt=this.__data__,Ar=dc(Zt,ce);return Ar<0?(++this.size,Zt.push([ce,Be])):Zt[Ar][1]=Be,this}Iu.prototype.clear=pc,Iu.prototype.delete=zc,Iu.prototype.get=Rd,Iu.prototype.has=X,Iu.prototype.set=ne;function Q(ce){var Be=-1,Zt=ce==null?0:ce.length;for(this.clear();++Be=Be?ce:Be)),ce}function Xh(ce,Be,Zt,Ar,No,Qs){var Tl,Ul=Be&S,Ou=Be&P,rd=Be&j;if(Zt&&(Tl=No?Zt(ce,Ar,No,Qs):Zt(ce)),Tl!==A)return Tl;if(!hg(ce))return ce;var od=gf(ce);if(od){if(Tl=ir(ce),!Ul)return pr(ce,Tl)}else{var Dd=sa(ce),Yh=Dd==ss||Dd==ve;if(oh(ce))return Vt(ce,Ul);if(Dd==wi||Dd==Er||Yh&&!No){if(Tl=Ou||Yh?{}:xi(ce),!Ul)return Ou?mo(ce,fd(Tl,ce)):fo(ce,wc(Tl,ce))}else{if(!Nl[Dd])return No?ce:{};Tl=ji(ce,Dd,Ul)}}Qs||(Qs=new Xo);var If=Qs.get(ce);if(If)return If;Qs.set(ce,Tl),wv(ce)?ce.forEach(function(zp){Tl.add(Xh(zp,Be,Zt,zp,ce,Qs))}):z0(ce)&&ce.forEach(function(zp,kg){Tl.set(kg,Xh(zp,Be,Zt,kg,ce,Qs))});var pp=rd?Ou?kt:So:Ou?$0:hm,gp=od?A:pp(ce);return cl(gp||ce,function(zp,kg){gp&&(kg=zp,zp=ce[kg]),Cu(Tl,kg,Xh(zp,Be,Zt,kg,ce,Qs))}),Tl}function Nc(ce){var Be=hm(ce);return function(Zt){return Hc(Zt,ce,Be)}}function Hc(ce,Be,Zt){var Ar=Zt.length;if(ce==null)return!Ar;for(ce=sh(ce);Ar--;){var No=Zt[Ar],Qs=Be[No],Tl=ce[No];if(Tl===A&&!(No in ce)||!Qs(Tl))return!1}return!0}function tf(ce,Be,Zt){if(typeof ce!="function")throw new Uh(N);return Gs(function(){ce.apply(A,Zt)},Be)}function hh(ce,Be,Zt,Ar){var No=-1,Qs=ku,Tl=!0,Ul=ce.length,Ou=[],rd=Be.length;if(!Ul)return Ou;Zt&&(Be=Ya(Be,sd(Zt))),Ar?(Qs=Xs,Tl=!1):Be.length>=z&&(Qs=Fc,Tl=!1,Be=new Zr(Be));e:for(;++NoNo?0:No+Zt),Ar=Ar===A||Ar>No?No:vc(Ar),Ar<0&&(Ar+=No),Ar=Zt>Ar?0:xh(Ar);Zt0&&Zt(Ul)?Be>1?vp(Ul,Be-1,Zt,Ar,No):qa(No,Ul):Ar||(No[No.length]=Ul)}return No}var Gc=Eo(),Oc=Eo(!0);function ad(ce,Be){return ce&&Gc(ce,Be,hm)}function yd(ce,Be){return ce&&Oc(ce,Be,hm)}function Bd(ce,Be){return Wa(Be,function(Zt){return dg(ce[Zt])})}function Dc(ce,Be){Be=rt(Be,ce);for(var Zt=0,Ar=Be.length;ce!=null&&ZtBe}function Io(ce,Be){return ce!=null&&Vh.call(ce,Be)}function Hg(ce,Be){return ce!=null&&Be in sh(ce)}function Zp(ce,Be,Zt){return ce>=Ff(Be,Zt)&&ce=120&&od.length>=120)?new Zr(Tl&&od):A}od=ce[0];var Dd=-1,Yh=Ul[0];e:for(;++Dd-1;)Ul!==ce&&sg.call(Ul,Ou,1),sg.call(ce,Ou,1);return ce}function Gp(ce,Be){for(var Zt=ce?Be.length:0,Ar=Zt-1;Zt--;){var No=Be[Zt];if(Zt==Ar||No!==Qs){var Qs=No;aa(No)?sg.call(ce,No,1):Km(ce,No)}}return ce}function P0(ce,Be){return ce+Np(Af()*(Be-ce+1))}function wp(ce,Be,Zt,Ar){for(var No=-1,Qs=of(Pd((Be-ce)/(Zt||1)),0),Tl=zl(Qs);Qs--;)Tl[Ar?Qs:++No]=ce,ce+=Zt;return Tl}function Xf(ce,Be){var Zt="";if(!ce||Be<1||Be>Ue)return Zt;do Be%2&&(Zt+=ce),Be=Np(Be/2),Be&&(ce+=ce);while(Be);return Zt}function Zh(ce,Be){return Kc(va(ce,Be,Lv),ce+"")}function a0(ce){return yl(uv(ce))}function k0(ce,Be){var Zt=uv(ce);return et(Zt,Qd(Be,0,Zt.length))}function Zg(ce,Be,Zt,Ar){if(!hg(ce))return ce;Be=rt(Be,ce);for(var No=-1,Qs=Be.length,Tl=Qs-1,Ul=ce;Ul!=null&&++NoNo?0:No+Be),Zt=Zt>No?No:Zt,Zt<0&&(Zt+=No),No=Be>Zt?0:Zt-Be>>>0,Be>>>=0;for(var Qs=zl(No);++Ar>>1,Tl=ce[Qs];Tl!==null&&!E0(Tl)&&(Zt?Tl<=Be:Tl=z){var rd=Be?null:Ft(ce);if(rd)return uf(rd);Tl=!1,No=Fc,Ou=new Zr}else Ou=Be?[]:Ul;e:for(;++Ar=Ar?ce:$d(ce,Be,Zt)}var Ut=pg||function(ce){return Pc.clearTimeout(ce)};function Vt(ce,Be){if(Be)return ce.slice();var Zt=ce.length,Ar=Qu?Qu(Zt):new ce.constructor(Zt);return ce.copy(Ar),Ar}function Xt(ce){var Be=new ce.constructor(ce.byteLength);return new yf(Be).set(new yf(ce)),Be}function sn(ce,Be){var Zt=Be?Xt(ce.buffer):ce.buffer;return new ce.constructor(Zt,ce.byteOffset,ce.byteLength)}function mn(ce){var Be=new ce.constructor(ce.source,Kr.exec(ce));return Be.lastIndex=ce.lastIndex,Be}function On(ce){return Hd?sh(Hd.call(ce)):{}}function lr(ce,Be){var Zt=Be?Xt(ce.buffer):ce.buffer;return new ce.constructor(Zt,ce.byteOffset,ce.length)}function wr(ce,Be){if(ce!==Be){var Zt=ce!==A,Ar=ce===null,No=ce===ce,Qs=E0(ce),Tl=Be!==A,Ul=Be===null,Ou=Be===Be,rd=E0(Be);if(!Ul&&!rd&&!Qs&&ce>Be||Qs&&Tl&&Ou&&!Ul&&!rd||Ar&&Tl&&Ou||!Zt&&Ou||!No)return 1;if(!Ar&&!Qs&&!rd&&ce=Ul)return Ou;var rd=Zt[Ar];return Ou*(rd=="desc"?-1:1)}}return ce.index-Be.index}function Or(ce,Be,Zt,Ar){for(var No=-1,Qs=ce.length,Tl=Zt.length,Ul=-1,Ou=Be.length,rd=of(Qs-Tl,0),od=zl(Ou+rd),Dd=!Ar;++Ul1?Zt[No-1]:A,Tl=No>2?Zt[2]:A;for(Qs=ce.length>3&&typeof Qs=="function"?(No--,Qs):A,Tl&&Ho(Zt[0],Zt[1],Tl)&&(Qs=No<3?A:Qs,No=1),Be=sh(Be);++Ar-1?No[Qs?Be[Tl]:Tl]:A}}function Un(ce){return br(function(Be){var Zt=Be.length,Ar=Zt,No=q.prototype.thru;for(ce&&Be.reverse();Ar--;){var Qs=Be[Ar];if(typeof Qs!="function")throw new Uh(N);if(No&&!Tl&&An(Qs)=="wrapper")var Tl=new q([],!0)}for(Ar=Tl?Ar:Zt;++Ar1&&tm.reverse(),od&&OuUl))return!1;var rd=Qs.get(ce),od=Qs.get(Be);if(rd&&od)return rd==Be&&od==ce;var Dd=-1,Yh=!0,If=Zt&J?new Zr:A;for(Qs.set(ce,Be),Qs.set(Be,ce);++Dd1?"& ":"")+Be[Ar],Be=Be.join(Zt>2?", ":" "),ce.replace(zt,`{ -/* [wrapped with `+Be+`] */ -`)}function Ds(ce){return gf(ce)||Sp(ce)||!!(Ah&&ce&&ce[Ah])}function aa(ce,Be){var Zt=typeof ce;return Be=Be==null?Ue:Be,!!Be&&(Zt=="number"||Zt!="symbol"&&Gn.test(ce))&&ce>-1&&ce%1==0&&ce0){if(++Be>=Ie)return arguments[0]}else Be=0;return ce.apply(A,arguments)}}function et(ce,Be){var Zt=-1,Ar=ce.length,No=Ar-1;for(Be=Be===A?Ar:Be;++Zt1?ce[Be-1]:A;return Zt=typeof Zt=="function"?(ce.pop(),Zt):A,Lo(ce,Zt)});function pu(ce){var Be=wo(ce);return Be.__chain__=!0,Be}function oc(ce,Be){return Be(ce),ce}function cd(ce,Be){return Be(ce)}var Ao=br(function(ce){var Be=ce.length,Zt=Be?ce[0]:0,Ar=this.__wrapped__,No=function(Qs){return dh(Qs,ce)};return Be>1||this.__actions__.length||!(Ar instanceof ae)||!aa(Zt)?this.thru(No):(Ar=Ar.slice(Zt,+Zt+(Be?1:0)),Ar.__actions__.push({func:cd,args:[No],thisArg:A}),new q(Ar,this.__chain__).thru(function(Qs){return Be&&!Qs.length&&Qs.push(A),Qs}))});function Jh(){return pu(this)}function xc(){return new q(this.value(),this.__chain__)}function fh(){this.__values__===A&&(this.__values__=hu(this.value()));var ce=this.__index__>=this.__values__.length,Be=ce?A:this.__values__[this.__index__++];return{done:ce,value:Be}}function Gd(){return this}function _(ce){for(var Be,Zt=this;Zt instanceof F;){var Ar=Li(Zt);Ar.__index__=0,Ar.__values__=A,Be?No.__wrapped__=Ar:Be=Ar;var No=Ar;Zt=Zt.__wrapped__}return No.__wrapped__=ce,Be}function R(){var ce=this.__wrapped__;if(ce instanceof ae){var Be=ce;return this.__actions__.length&&(Be=new ae(this)),Be=Be.reverse(),Be.__actions__.push({func:cd,args:[jd],thisArg:A}),new q(Be,this.__chain__)}return this.thru(jd)}function Z(){return pe(this.__wrapped__,this.__actions__)}var ue=fi(function(ce,Be,Zt){Vh.call(ce,Zt)?++ce[Zt]:Td(ce,Zt,1)});function Pe(ce,Be,Zt){var Ar=gf(ce)?Ml:bh;return Zt&&Ho(ce,Be,Zt)&&(Be=A),Ar(ce,cr(Be,3))}function Qe(ce,Be){var Zt=gf(ce)?Wa:Wp;return Zt(ce,cr(Be,3))}var wt=ai(Du),Wt=ai(jc);function Rn(ce,Be){return vp(Da(ce,Be),1)}function ur(ce,Be){return vp(Da(ce,Be),ct)}function zr(ce,Be,Zt){return Zt=Zt===A?1:vc(Zt),vp(Da(ce,Be),Zt)}function hi(ce,Be){var Zt=gf(ce)?cl:rh;return Zt(ce,cr(Be,3))}function po(ce,Be){var Zt=gf(ce)?Zl:zh;return Zt(ce,cr(Be,3))}var ko=fi(function(ce,Be,Zt){Vh.call(ce,Zt)?ce[Zt].push(Be):Td(ce,Zt,[Be])});function Zs(ce,Be,Zt,Ar){ce=Of(ce)?ce:uv(ce),Zt=Zt&&!Ar?vc(Zt):0;var No=ce.length;return Zt<0&&(Zt=of(No+Zt,0)),mv(ce)?Zt<=No&&ce.indexOf(Be,Zt)>-1:!!No&&ma(ce,Be,Zt)>-1}var Js=Zh(function(ce,Be,Zt){var Ar=-1,No=typeof Be=="function",Qs=Of(ce)?zl(ce.length):[];return rh(ce,function(Tl){Qs[++Ar]=No?ua(Be,Tl,Zt):Zd(Tl,Be,Zt)}),Qs}),sl=fi(function(ce,Be,Zt){Td(ce,Zt,Be)});function Da(ce,Be){var Zt=gf(ce)?Ya:im;return Zt(ce,cr(Be,3))}function Ol(ce,Be,Zt,Ar){return ce==null?[]:(gf(Be)||(Be=Be==null?[]:[Be]),Zt=Ar?A:Zt,gf(Zt)||(Zt=Zt==null?[]:[Zt]),Qg(ce,Be,Zt))}var Vl=fi(function(ce,Be,Zt){ce[Zt?0:1].push(Be)},function(){return[[],[]]});function cu(ce,Be,Zt){var Ar=gf(ce)?Hl:lc,No=arguments.length<3;return Ar(ce,cr(Be,4),Zt,No,rh)}function lu(ce,Be,Zt){var Ar=gf(ce)?Jl:lc,No=arguments.length<3;return Ar(ce,cr(Be,4),Zt,No,zh)}function Hu(ce,Be){var Zt=gf(ce)?Wa:Wp;return Zt(ce,ih(cr(Be,3)))}function kc(ce){var Be=gf(ce)?yl:a0;return Be(ce)}function ac(ce,Be,Zt){(Zt?Ho(ce,Be,Zt):Be===A)?Be=1:Be=vc(Be);var Ar=gf(ce)?nu:k0;return Ar(ce,Be)}function _d(ce){var Be=gf(ce)?xu:Gm;return Be(ce)}function Xu(ce){if(ce==null)return 0;if(Of(ce))return mv(ce)?Nf(ce):ce.length;var Be=sa(ce);return Be==_o||Be==_t?ce.size:rm(ce).length}function Nd(ce,Be,Zt){var Ar=gf(ce)?vu:Y0;return Zt&&Ho(ce,Be,Zt)&&(Be=A),Ar(ce,cr(Be,3))}var Yt=Zh(function(ce,Be){if(ce==null)return[];var Zt=Be.length;return Zt>1&&Ho(ce,Be[0],Be[1])?Be=[]:Zt>2&&Ho(Be[0],Be[1],Be[2])&&(Be=[Be[0]]),Qg(ce,vp(Be,1),[])}),Mn=Cp||function(){return Pc.Date.now()};function dr(ce,Be){if(typeof Be!="function")throw new Uh(N);return ce=vc(ce),function(){if(--ce<1)return Be.apply(this,arguments)}}function Wr(ce,Be,Zt){return Be=Zt?A:Be,Be=ce&&Be==null?ce.length:Be,$t(ce,Ee,A,A,A,A,Be)}function go(ce,Be){var Zt;if(typeof Be!="function")throw new Uh(N);return ce=vc(ce),function(){return--ce>0&&(Zt=Be.apply(this,arguments)),ce<=1&&(Be=A),Zt}}var ra=Zh(function(ce,Be,Zt){var Ar=ie;if(Zt.length){var No=Wh(Zt,rr(ra));Ar|=we}return $t(ce,Ar,Be,Zt,No)}),Ga=Zh(function(ce,Be,Zt){var Ar=ie|de;if(Zt.length){var No=Wh(Zt,rr(Ga));Ar|=we}return $t(Be,Ar,ce,Zt,No)});function Aa(ce,Be,Zt){Be=Zt?A:Be;var Ar=$t(ce,fe,A,A,A,A,A,Be);return Ar.placeholder=Aa.placeholder,Ar}function Xl(ce,Be,Zt){Be=Zt?A:Be;var Ar=$t(ce,ke,A,A,A,A,A,Be);return Ar.placeholder=Xl.placeholder,Ar}function wu(ce,Be,Zt){var Ar,No,Qs,Tl,Ul,Ou,rd=0,od=!1,Dd=!1,Yh=!0;if(typeof ce!="function")throw new Uh(N);Be=eh(Be)||0,hg(Zt)&&(od=!!Zt.leading,Dd="maxWait"in Zt,Qs=Dd?of(eh(Zt.maxWait)||0,Be):Qs,Yh="trailing"in Zt?!!Zt.trailing:Yh);function If(M0){var ly=Ar,Yy=No;return Ar=No=A,rd=M0,Tl=ce.apply(Yy,ly),Tl}function pp(M0){return rd=M0,Ul=Gs(kg,Be),od?If(M0):Tl}function gp(M0){var ly=M0-Ou,Yy=M0-rd,gx=Be-ly;return Dd?Ff(gx,Qs-Yy):gx}function zp(M0){var ly=M0-Ou,Yy=M0-rd;return Ou===A||ly>=Be||ly<0||Dd&&Yy>=Qs}function kg(){var M0=Mn();if(zp(M0))return tm(M0);Ul=Gs(kg,gp(M0))}function tm(M0){return Ul=A,Yh&&Ar?If(M0):(Ar=No=A,Tl)}function Uv(){Ul!==A&&Ut(Ul),rd=0,Ar=Ou=No=Ul=A}function dv(){return Ul===A?Tl:tm(Mn())}function Hv(){var M0=Mn(),ly=zp(M0);if(Ar=arguments,No=this,Ou=M0,ly){if(Ul===A)return pp(Ou);if(Dd)return Ut(Ul),Ul=Gs(kg,Be),If(Ou)}return Ul===A&&(Ul=Gs(kg,Be)),Tl}return Hv.cancel=Uv,Hv.flush=dv,Hv}var Ts=Zh(function(ce,Be){return tf(ce,1,Be)}),Xc=Zh(function(ce,Be,Zt){return tf(ce,eh(Be)||0,Zt)});function ph(ce){return $t(ce,ye)}function gh(ce,Be){if(typeof ce!="function"||Be!=null&&typeof Be!="function")throw new Uh(N);var Zt=function(){var Ar=arguments,No=Be?Be.apply(this,Ar):Ar[0],Qs=Zt.cache;if(Qs.has(No))return Qs.get(No);var Tl=ce.apply(this,Ar);return Zt.cache=Qs.set(No,Tl)||Qs,Tl};return Zt.cache=new(gh.Cache||Q),Zt}gh.Cache=Q;function ih(ce){if(typeof ce!="function")throw new Uh(N);return function(){var Be=arguments;switch(Be.length){case 0:return!ce.call(this);case 1:return!ce.call(this,Be[0]);case 2:return!ce.call(this,Be[0],Be[1]);case 3:return!ce.call(this,Be[0],Be[1],Be[2])}return!ce.apply(this,Be)}}function wh(ce){return go(2,ce)}var cg=Xe(function(ce,Be){Be=Be.length==1&&gf(Be[0])?Ya(Be[0],sd(cr())):Ya(vp(Be,1),sd(cr()));var Zt=Be.length;return Zh(function(Ar){for(var No=-1,Qs=Ff(Ar.length,Zt);++No=Be}),Sp=Fp(function(){return arguments}())?Fp:function(ce){return Yp(ce)&&Vh.call(ce,"callee")&&!Jp.call(ce,"callee")},gf=zl.isArray,Kp=Qr?sd(Qr):zf;function Of(ce){return ce!=null&&og(ce.length)&&!dg(ce)}function Nu(ce){return Yp(ce)&&Of(ce)}function lh(ce){return ce===!0||ce===!1||Yp(ce)&&ld(ce)==to}var oh=ag||M1,Ip=ni?sd(ni):bf;function qf(ce){return Yp(ce)&&ce.nodeType===1&&!Cv(ce)}function kp(ce){if(ce==null)return!0;if(Of(ce)&&(gf(ce)||typeof ce=="string"||typeof ce.splice=="function"||oh(ce)||Bv(ce)||Sp(ce)))return!ce.length;var Be=sa(ce);if(Be==_o||Be==_t)return!ce.size;if(Oa(ce))return!rm(ce).length;for(var Zt in ce)if(Vh.call(ce,Zt))return!1;return!0}function Xp(ce,Be){return Qp(ce,Be)}function rp(ce,Be,Zt){Zt=typeof Zt=="function"?Zt:A;var Ar=Zt?Zt(ce,Be):A;return Ar===A?Qp(ce,Be,A,Zt):!!Ar}function Em(ce){if(!Yp(ce))return!1;var Be=ld(ce);return Be==Po||Be==vr||typeof ce.message=="string"&&typeof ce.name=="string"&&!Cv(ce)}function Kg(ce){return typeof ce=="number"&&Md(ce)}function dg(ce){if(!hg(ce))return!1;var Be=ld(ce);return Be==ss||Be==ve||Be==oi||Be==ln}function Xg(ce){return typeof ce=="number"&&ce==vc(ce)}function og(ce){return typeof ce=="number"&&ce>-1&&ce%1==0&&ce<=Ue}function hg(ce){var Be=typeof ce;return ce!=null&&(Be=="object"||Be=="function")}function Yp(ce){return ce!=null&&typeof ce=="object"}var z0=Ki?sd(Ki):Hf;function gy(ce,Be){return ce===Be||df(ce,Be,Ai(Be))}function H0(ce,Be,Zt){return Zt=typeof Zt=="function"?Zt:A,df(ce,Be,Ai(Be),Zt)}function q_(ce){return Uy(ce)&&ce!=+ce}function lv(ce){if(Dl(ce))throw new Uu(k);return af(ce)}function vy(ce){return ce===null}function q0(ce){return ce==null}function Uy(ce){return typeof ce=="number"||Yp(ce)&&ld(ce)==ci}function Cv(ce){if(!Yp(ce)||ld(ce)!=wi)return!1;var Be=Bc(ce);if(Be===null)return!0;var Zt=Vh.call(Be,"constructor")&&Be.constructor;return typeof Zt=="function"&&Zt instanceof Zt&&ed.call(Zt)==ka}var gv=ro?sd(ro):jg;function c1(ce){return Xg(ce)&&ce>=-Ue&&ce<=Ue}var wv=Ei?sd(Ei):lp;function mv(ce){return typeof ce=="string"||!gf(ce)&&Yp(ce)&&ld(ce)==Ct}function E0(ce){return typeof ce=="symbol"||Yp(ce)&&ld(ce)==jt}var Bv=ns?sd(ns):lg;function d1(ce){return ce===A}function q1(ce){return Yp(ce)&&sa(ce)==Ot}function zv(ce){return Yp(ce)&&ld(ce)==Tt}var ey=Ls(jm),Ku=Ls(function(ce,Be){return ce<=Be});function hu(ce){if(!ce)return[];if(Of(ce))return mv(ce)?ch(ce):pr(ce);if(ap&&ce[ap])return Jd(ce[ap]());var Be=sa(ce),Zt=Be==_o?cc:Be==_t?uf:uv;return Zt(ce)}function qc(ce){if(!ce)return ce===0?ce:0;if(ce=eh(ce),ce===ct||ce===-ct){var Be=ce<0?-1:1;return Be*bt}return ce===ce?ce:0}function vc(ce){var Be=qc(ce),Zt=Be%1;return Be===Be?Zt?Be-Zt:Be:0}function xh(ce){return ce?Qd(vc(ce),0,Bt):0}function eh(ce){if(typeof ce=="number")return ce;if(E0(ce))return ht;if(hg(ce)){var Be=typeof ce.valueOf=="function"?ce.valueOf():ce;ce=hg(Be)?Be+"":Be}if(typeof ce!="string")return ce===0?ce:+ce;ce=Xd(ce);var Zt=Wi.test(ce);return Zt||Qt.test(ce)?Ua(ce.slice(2),Zt?2:8):ti.test(ce)?ht:+ce}function rf(ce){return Xr(ce,$0(ce))}function Ep(ce){return ce?Qd(vc(ce),-Ue,Ue):ce===0?ce:0}function Ph(ce){return ce==null?"":yp(ce)}var cp=uo(function(ce,Be){if(Oa(Be)||Of(Be)){Xr(Be,hm(Be),ce);return}for(var Zt in Be)Vh.call(Be,Zt)&&Cu(ce,Zt,Be[Zt])}),fp=uo(function(ce,Be){Xr(Be,$0(Be),ce)}),t0=uo(function(ce,Be,Zt,Ar){Xr(Be,$0(Be),ce,Ar)}),Dg=uo(function(ce,Be,Zt,Ar){Xr(Be,hm(Be),ce,Ar)}),Xm=br(dh);function Z0(ce,Be){var Zt=D(ce);return Be==null?Zt:wc(Zt,Be)}var Sv=Zh(function(ce,Be){ce=sh(ce);var Zt=-1,Ar=Be.length,No=Ar>2?Be[2]:A;for(No&&Ho(Be[0],Be[1],No)&&(Ar=1);++Zt1),Qs}),Xr(ce,kt(ce),Zt),Ar&&(Zt=Xh(Zt,S|P|j,Tn));for(var No=Be.length;No--;)Km(Zt,Be[No]);return Zt});function f1(ce,Be){return y0(ce,ih(cr(Be)))}var Hy=br(function(ce,Be){return ce==null?{}:Lm(ce,Be)});function y0(ce,Be){if(ce==null)return{};var Zt=Ya(kt(ce),function(Ar){return[Ar]});return Be=cr(Be),Rm(ce,Zt,function(Ar,No){return Be(Ar,No[0])})}function J_(ce,Be,Zt){Be=rt(Be,ce);var Ar=-1,No=Be.length;for(No||(No=1,ce=A);++ArBe){var Ar=ce;ce=Be,Be=Ar}if(Zt||ce%1||Be%1){var No=Af();return Ff(ce+No*(Be-ce+ms("1e-"+((No+"").length-1))),Be)}return P0(ce,Be)}var yv=Dr(function(ce,Be,Zt){return Be=Be.toLowerCase(),ce+(Zt?jv(Be):Be)});function jv(ce){return Ky(Ph(ce).toLowerCase())}function Wv(ce){return ce=Ph(ce),ce&&ce.replace(yi,nh).replace(no,"")}function Ny(ce,Be,Zt){ce=Ph(ce),Be=yp(Be);var Ar=ce.length;Zt=Zt===A?Ar:Qd(vc(Zt),0,Ar);var No=Zt;return Zt-=Be.length,Zt>=0&&ce.slice(Zt,No)==Be}function e_(ce){return ce=Ph(ce),ce&&Xn.test(ce)?ce.replace(na,Wd):ce}function iv(ce){return ce=Ph(ce),ce&&Vr.test(ce)?ce.replace(Jn,"\\$&"):ce}var S_=Dr(function(ce,Be,Zt){return ce+(Zt?"-":"")+Be.toLowerCase()}),E_=Dr(function(ce,Be,Zt){return ce+(Zt?" ":"")+Be.toLowerCase()}),iy=Rs("toLowerCase");function P1(ce,Be,Zt){ce=Ph(ce),Be=vc(Be);var Ar=Be?Nf(ce):0;if(!Be||Ar>=Be)return ce;var No=(Be-Ar)/2;return Di(Np(No),Zt)+ce+Di(Pd(No),Zt)}function Db(ce,Be,Zt){ce=Ph(ce),Be=vc(Be);var Ar=Be?Nf(ce):0;return Be&&Ar>>0,Zt?(ce=Ph(ce),ce&&(typeof Be=="string"||Be!=null&&!gv(Be))&&(Be=yp(Be),!Be&&nd(ce))?It(ch(ce),0,Zt):ce.split(Be,Zt)):[]}var lx=Dr(function(ce,Be,Zt){return ce+(Zt?" ":"")+Ky(Be)});function D_(ce,Be,Zt){return ce=Ph(ce),Zt=Zt==null?0:Qd(vc(Zt),0,ce.length),Be=yp(Be),ce.slice(Zt,Zt+Be.length)==Be}function A_(ce,Be,Zt){var Ar=wo.templateSettings;Zt&&Ho(ce,Be,Zt)&&(Be=A),ce=Ph(ce),Be=t0({},Be,Ar,Gt);var No=t0({},Be.imports,Ar.imports,Gt),Qs=hm(No),Tl=Mu(No,Qs),Ul,Ou,rd=0,od=Be.interpolate||Ln,Dd="__p += '",Yh=Vf((Be.escape||Ln).source+"|"+od.source+"|"+(od===Cr?lo:Ln).source+"|"+(Be.evaluate||Ln).source+"|$","g"),If="//# sourceURL="+(Vh.call(Be,"sourceURL")?(Be.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++gl+"]")+` -`;ce.replace(Yh,function(zp,kg,tm,Uv,dv,Hv){return tm||(tm=Uv),Dd+=ce.slice(rd,Hv).replace(Si,yh),kg&&(Ul=!0,Dd+=`' + + `+C+" - "+S}else return" "+C}V.listMetadataForTarget=w;function A(C){if(C.name)return C.name;var f=C.toString(),S=f.match(/^function\s*([^\s(]+)/);return S?S[1]:"Anonymous function: "+f}V.getFunctionName=A},76051:function(nt,V,m){"use strict";var y=m(45119)(),I=m(97683),b=I("Object.prototype.toString"),z=function(A){return y&&A&&typeof A=="object"&&Symbol.toStringTag in A?!1:b(A)==="[object Arguments]"},k=function(A){return z(A)?!0:A!==null&&typeof A=="object"&&typeof A.length=="number"&&A.length>=0&&b(A)!=="[object Array]"&&b(A.callee)==="[object Function]"},N=function(){return z(arguments)}();z.isLegacyArguments=k,nt.exports=N?z:k},22948:function(nt){nt.exports=function(m){return!m||typeof m=="string"?!1:m instanceof Array||Array.isArray(m)||m.length>=0&&(m.splice instanceof Function||Object.getOwnPropertyDescriptor(m,m.length-1)&&m.constructor.name!=="String")}},5012:function(nt,V,m){"use strict";var y=Date.prototype.getDay,I=function(w){try{return y.call(w),!0}catch(A){return!1}},b=Object.prototype.toString,z="[object Date]",k=m(45119)();nt.exports=function(w){return typeof w!="object"||w===null?!1:k?I(w):b.call(w)===z}},11644:function(nt,V,m){"use strict";var y=m(97683),I=m(45119)(),b,z,k,N;if(I){b=y("Object.prototype.hasOwnProperty"),z=y("RegExp.prototype.exec"),k={};var w=function(){throw k};N={toString:w,valueOf:w},typeof Symbol.toPrimitive=="symbol"&&(N[Symbol.toPrimitive]=w)}var A=y("Object.prototype.toString"),C=Object.getOwnPropertyDescriptor,f="[object RegExp]";nt.exports=I?function(P){if(!P||typeof P!="object")return!1;var W=C(P,"lastIndex"),ne=W&&b(W,"value");if(!ne)return!1;try{z(P,N)}catch(re){return re===k}}:function(P){return!P||typeof P!="object"&&typeof P!="function"?!1:A(P)===f}},99100:function(nt){var V={}.toString;nt.exports=Array.isArray||function(m){return V.call(m)=="[object Array]"}},15584:function(nt,V,m){var y=m(73893),I=m(33152),b=y(I,"DataView");nt.exports=b},76414:function(nt,V,m){var y=m(64696),I=m(16824),b=m(23476),z=m(63122),k=m(37279);function N(w){var A=-1,C=w==null?0:w.length;for(this.clear();++A-1}nt.exports=I},94874:function(nt){function V(m,y,I){for(var b=-1,z=m==null?0:m.length;++b=y?m:y)),m}nt.exports=V},99045:function(nt,V,m){var y=m(91866),I=m(60661),b=m(60348),z=m(91937),k=m(26680),N=m(32315),w=m(47760),A=m(15168),C=m(71678),f=m(12076),S=m(22675),P=m(66139),W=m(79264),ne=m(97541),re=m(4084),ce=m(80744),pe=m(57835),he=m(41626),fe=m(20816),Be=m(65226),Ie=m(55451),We=m(56730),De=1,ve=2,ye=4,we="[object Arguments]",Ce="[object Array]",Ae="[object Boolean]",me="[object Date]",je="[object Error]",xe="[object Function]",Pt="[object GeneratorFunction]",ct="[object Map]",He="[object Number]",wt="[object Object]",dt="[object RegExp]",Bt="[object Set]",gt="[object String]",_n="[object Symbol]",Bn="[object WeakMap]",Er="[object ArrayBuffer]",Yr="[object DataView]",oi="[object Float32Array]",to="[object Float64Array]",yo="[object Int8Array]",yr="[object Int16Array]",Po="[object Int32Array]",as="[object Uint8Array]",ge="[object Uint8ClampedArray]",_o="[object Uint16Array]",ci="[object Uint32Array]",Bi={};Bi[we]=Bi[Ce]=Bi[Er]=Bi[Yr]=Bi[Ae]=Bi[me]=Bi[oi]=Bi[to]=Bi[yo]=Bi[yr]=Bi[Po]=Bi[ct]=Bi[He]=Bi[wt]=Bi[dt]=Bi[Bt]=Bi[gt]=Bi[_n]=Bi[as]=Bi[ge]=Bi[_o]=Bi[ci]=!0,Bi[je]=Bi[xe]=Bi[Bn]=!1;function Ci(io,ln,Ve,_t,xt,Wt){var on,Ot=ln&De,Tt=ln&ve,bt=ln&ye;if(Ve&&(on=xt?Ve(io,_t,xt,Wt):Ve(io)),on!==void 0)return on;if(!fe(io))return io;var Ht=ce(io);if(Ht){if(on=W(io),!Ot)return w(io,on)}else{var Wn=P(io),tn=Wn==xe||Wn==Pt;if(pe(io))return N(io,Ot);if(Wn==wt||Wn==we||tn&&!xt){if(on=Tt||tn?{}:re(io),!Ot)return Tt?C(io,k(on,io)):A(io,z(on,io))}else{if(!Bi[Wn])return xt?io:{};on=ne(io,Wn,Ot)}}Wt||(Wt=new y);var hr=Wt.get(io);if(hr)return hr;Wt.set(io,on),Be(io)?io.forEach(function(Pi){on.add(Ci(Pi,ln,Ve,Pi,io,Wt))}):he(io)&&io.forEach(function(Pi,Wo){on.set(Wo,Ci(Pi,ln,Ve,Wo,io,Wt))});var Zi=bt?Tt?S:f:Tt?We:Ie,Ri=Ht?void 0:Zi(io);return I(Ri||io,function(Pi,Wo){Ri&&(Wo=Pi,Pi=io[Wo]),b(on,Wo,Ci(Pi,ln,Ve,Wo,io,Wt))}),on}nt.exports=Ci},35024:function(nt,V,m){var y=m(20816),I=Object.create,b=function(){function z(){}return function(k){if(!y(k))return{};if(I)return I(k);z.prototype=k;var N=new z;return z.prototype=void 0,N}}();nt.exports=b},51533:function(nt){function V(m,y,I,b){for(var z=m.length,k=I+(b?1:-1);b?k--:++k-1;)ce!==C&&w.call(ce,pe,1),w.call(C,pe,1);return C}nt.exports=A},92918:function(nt,V,m){var y=m(46962),I=m(19652),b=m(71152);function z(k,N){return b(I(k,N,y),k+"")}nt.exports=z},63989:function(nt,V,m){var y=m(13503),I=m(35234),b=m(46962),z=I?function(k,N){return I(k,"toString",{configurable:!0,enumerable:!1,value:y(N),writable:!0})}:b;nt.exports=z},75760:function(nt){function V(m,y,I){var b=-1,z=m.length;y<0&&(y=-y>z?0:z+y),I=I>z?z:I,I<0&&(I+=z),z=y>I?0:I-y>>>0,y>>>=0;for(var k=Array(z);++b=w){var he=f?null:k(C);if(he)return N(he);re=!1,W=z,pe=new y}else pe=f?[]:ce;e:for(;++P=N?b:y(b,z,k)}nt.exports=I},20188:function(nt,V,m){var y=m(77945);function I(b){var z=new b.constructor(b.byteLength);return new y(z).set(new y(b)),z}nt.exports=I},32315:function(nt,V,m){nt=m.nmd(nt);var y=m(33152),I=V&&!V.nodeType&&V,b=I&&!0&&nt&&!nt.nodeType&&nt,z=b&&b.exports===I,k=z?y.Buffer:void 0,N=k?k.allocUnsafe:void 0;function w(A,C){if(C)return A.slice();var f=A.length,S=N?N(f):new A.constructor(f);return A.copy(S),S}nt.exports=w},27984:function(nt,V,m){var y=m(20188);function I(b,z){var k=z?y(b.buffer):b.buffer;return new b.constructor(k,b.byteOffset,b.byteLength)}nt.exports=I},78583:function(nt){var V=/\w*$/;function m(y){var I=new y.constructor(y.source,V.exec(y));return I.lastIndex=y.lastIndex,I}nt.exports=m},28757:function(nt,V,m){var y=m(91869),I=y?y.prototype:void 0,b=I?I.valueOf:void 0;function z(k){return b?Object(b.call(k)):{}}nt.exports=z},78358:function(nt,V,m){var y=m(20188);function I(b,z){var k=z?y(b.buffer):b.buffer;return new b.constructor(k,b.byteOffset,b.length)}nt.exports=I},47760:function(nt){function V(m,y){var I=-1,b=m.length;for(y||(y=Array(b));++I1?N[A-1]:void 0,f=A>2?N[2]:void 0;for(C=z.length>3&&typeof C=="function"?(A--,C):void 0,f&&I(N[0],N[1],f)&&(C=A<3?void 0:C,A=1),k=Object(k);++wne))return!1;var ce=P.get(w),pe=P.get(A);if(ce&&pe)return ce==A&&pe==w;var he=-1,fe=!0,Be=C&k?new y:void 0;for(P.set(w,A),P.set(A,w);++he-1&&I%1==0&&I-1}nt.exports=I},54238:function(nt,V,m){var y=m(67971);function I(b,z){var k=this.__data__,N=y(k,b);return N<0?(++this.size,k.push([b,z])):k[N][1]=z,this}nt.exports=I},35365:function(nt,V,m){var y=m(76414),I=m(99746),b=m(40164);function z(){this.size=0,this.__data__={hash:new y,map:new(b||I),string:new y}}nt.exports=z},63765:function(nt,V,m){var y=m(89819);function I(b){var z=y(this,b).delete(b);return this.size-=z?1:0,z}nt.exports=I},12608:function(nt,V,m){var y=m(89819);function I(b){return y(this,b).get(b)}nt.exports=I},10203:function(nt,V,m){var y=m(89819);function I(b){return y(this,b).has(b)}nt.exports=I},11298:function(nt,V,m){var y=m(89819);function I(b,z){var k=y(this,b),N=k.size;return k.set(b,z),this.size+=k.size==N?0:1,this}nt.exports=I},83383:function(nt){function V(m){var y=-1,I=Array(m.size);return m.forEach(function(b,z){I[++y]=[z,b]}),I}nt.exports=V},26332:function(nt,V,m){var y=m(52858),I=500;function b(z){var k=y(z,function(w){return N.size===I&&N.clear(),w}),N=k.cache;return k}nt.exports=b},65294:function(nt,V,m){var y=m(73893),I=y(Object,"create");nt.exports=I},23730:function(nt,V,m){var y=m(31030),I=y(Object.keys,Object);nt.exports=I},97817:function(nt){function V(m){var y=[];if(m!=null)for(var I in Object(m))y.push(I);return y}nt.exports=V},52495:function(nt,V,m){nt=m.nmd(nt);var y=m(37675),I=V&&!V.nodeType&&V,b=I&&!0&&nt&&!nt.nodeType&&nt,z=b&&b.exports===I,k=z&&y.process,N=function(){try{var w=b&&b.require&&b.require("util").types;return w||k&&k.binding&&k.binding("util")}catch(A){}}();nt.exports=N},74702:function(nt){var V=Object.prototype,m=V.toString;function y(I){return m.call(I)}nt.exports=y},31030:function(nt){function V(m,y){return function(I){return m(y(I))}}nt.exports=V},19652:function(nt,V,m){var y=m(79628),I=Math.max;function b(z,k,N){return k=I(k===void 0?z.length-1:k,0),function(){for(var w=arguments,A=-1,C=I(w.length-k,0),f=Array(C);++A0){if(++z>=V)return arguments[0]}else z=0;return b.apply(void 0,arguments)}}nt.exports=I},31119:function(nt,V,m){var y=m(99746);function I(){this.__data__=new y,this.size=0}nt.exports=I},64399:function(nt){function V(m){var y=this.__data__,I=y.delete(m);return this.size=y.size,I}nt.exports=V},81897:function(nt){function V(m){return this.__data__.get(m)}nt.exports=V},90558:function(nt){function V(m){return this.__data__.has(m)}nt.exports=V},64841:function(nt,V,m){var y=m(99746),I=m(40164),b=m(52166),z=200;function k(N,w){var A=this.__data__;if(A instanceof y){var C=A.__data__;if(!I||C.length=C||xe<0||fe&&Pt>=W}function ye(){var je=I();if(ve(je))return we(je);re=setTimeout(ye,De(je))}function we(je){return re=void 0,Be&&S?Ie(je):(S=P=void 0,ne)}function Ce(){re!==void 0&&clearTimeout(re),pe=0,S=ce=P=re=void 0}function Ae(){return re===void 0?ne:we(I())}function me(){var je=I(),xe=ve(je);if(S=arguments,P=this,ce=je,xe){if(re===void 0)return We(ce);if(fe)return clearTimeout(re),re=setTimeout(ye,C),Ie(ce)}return re===void 0&&(re=setTimeout(ye,C)),ne}return me.cancel=Ce,me.flush=Ae,me}nt.exports=w},31876:function(nt,V,m){var y=m(70668),I=m(44140),b=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,z="\\u0300-\\u036f",k="\\ufe20-\\ufe2f",N="\\u20d0-\\u20ff",w=z+k+N,A="["+w+"]",C=RegExp(A,"g");function f(S){return S=I(S),S&&S.replace(b,y).replace(C,"")}nt.exports=f},43607:function(nt){function V(m,y){return m===y||m!==m&&y!==y}nt.exports=V},44231:function(nt,V,m){var y=m(89147);function I(b,z,k){var N=b==null?void 0:y(b,z);return N===void 0?k:N}nt.exports=I},46962:function(nt){function V(m){return m}nt.exports=V},13053:function(nt,V,m){var y=m(4977),I=m(93913),b=Object.prototype,z=b.hasOwnProperty,k=b.propertyIsEnumerable,N=y(function(){return arguments}())?y:function(w){return I(w)&&z.call(w,"callee")&&!k.call(w,"callee")};nt.exports=N},80744:function(nt){var V=Array.isArray;nt.exports=V},24665:function(nt,V,m){var y=m(9363),I=m(11156);function b(z){return z!=null&&I(z.length)&&!y(z)}nt.exports=b},41590:function(nt,V,m){var y=m(24665),I=m(93913);function b(z){return I(z)&&y(z)}nt.exports=b},26561:function(nt,V,m){var y=m(86756),I=m(93913),b="[object Boolean]";function z(k){return k===!0||k===!1||I(k)&&y(k)==b}nt.exports=z},57835:function(nt,V,m){nt=m.nmd(nt);var y=m(33152),I=m(55950),b=V&&!V.nodeType&&V,z=b&&!0&&nt&&!nt.nodeType&&nt,k=z&&z.exports===b,N=k?y.Buffer:void 0,w=N?N.isBuffer:void 0,A=w||I;nt.exports=A},98621:function(nt,V,m){var y=m(77295);function I(b,z){return y(b,z)}nt.exports=I},9363:function(nt,V,m){var y=m(86756),I=m(20816),b="[object AsyncFunction]",z="[object Function]",k="[object GeneratorFunction]",N="[object Proxy]";function w(A){if(!I(A))return!1;var C=y(A);return C==z||C==k||C==b||C==N}nt.exports=w},11156:function(nt){var V=9007199254740991;function m(y){return typeof y=="number"&&y>-1&&y%1==0&&y<=V}nt.exports=m},41626:function(nt,V,m){var y=m(55005),I=m(38342),b=m(52495),z=b&&b.isMap,k=z?I(z):y;nt.exports=k},93544:function(nt){function V(m){return m==null}nt.exports=V},68868:function(nt,V,m){var y=m(86756),I=m(93913),b="[object Number]";function z(k){return typeof k=="number"||I(k)&&y(k)==b}nt.exports=z},20816:function(nt){function V(m){var y=typeof m;return m!=null&&(y=="object"||y=="function")}nt.exports=V},93913:function(nt){function V(m){return m!=null&&typeof m=="object"}nt.exports=V},19308:function(nt,V,m){var y=m(86756),I=m(49217),b=m(93913),z="[object Object]",k=Function.prototype,N=Object.prototype,w=k.toString,A=N.hasOwnProperty,C=w.call(Object);function f(S){if(!b(S)||y(S)!=z)return!1;var P=I(S);if(P===null)return!0;var W=A.call(P,"constructor")&&P.constructor;return typeof W=="function"&&W instanceof W&&w.call(W)==C}nt.exports=f},65226:function(nt,V,m){var y=m(38652),I=m(38342),b=m(52495),z=b&&b.isSet,k=z?I(z):y;nt.exports=k},7941:function(nt,V,m){var y=m(86756),I=m(80744),b=m(93913),z="[object String]";function k(N){return typeof N=="string"||!I(N)&&b(N)&&y(N)==z}nt.exports=k},45029:function(nt,V,m){var y=m(86756),I=m(93913),b="[object Symbol]";function z(k){return typeof k=="symbol"||I(k)&&y(k)==b}nt.exports=z},18397:function(nt,V,m){var y=m(10766),I=m(38342),b=m(52495),z=b&&b.isTypedArray,k=z?I(z):y;nt.exports=k},16513:function(nt){function V(m){return m===void 0}nt.exports=V},55451:function(nt,V,m){var y=m(63333),I=m(6019),b=m(24665);function z(k){return b(k)?y(k):I(k)}nt.exports=z},56730:function(nt,V,m){var y=m(63333),I=m(33988),b=m(24665);function z(k){return b(k)?y(k,!0):I(k)}nt.exports=z},89392:function(nt,V,m){nt=m.nmd(nt);var y;(function(){var I,b="4.17.21",z=200,k="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",N="Expected a function",w="Invalid `variable` option passed into `_.template`",A="__lodash_hash_undefined__",C=500,f="__lodash_placeholder__",S=1,P=2,W=4,ne=1,re=2,ce=1,pe=2,he=4,fe=8,Be=16,Ie=32,We=64,De=128,ve=256,ye=512,we=30,Ce="...",Ae=800,me=16,je=1,xe=2,Pt=3,ct=1/0,He=9007199254740991,wt=17976931348623157e292,dt=0/0,Bt=4294967295,gt=Bt-1,_n=Bt>>>1,Bn=[["ary",De],["bind",ce],["bindKey",pe],["curry",fe],["curryRight",Be],["flip",ye],["partial",Ie],["partialRight",We],["rearg",ve]],Er="[object Arguments]",Yr="[object Array]",oi="[object AsyncFunction]",to="[object Boolean]",yo="[object Date]",yr="[object DOMException]",Po="[object Error]",as="[object Function]",ge="[object GeneratorFunction]",_o="[object Map]",ci="[object Number]",Bi="[object Null]",Ci="[object Object]",io="[object Promise]",ln="[object Proxy]",Ve="[object RegExp]",_t="[object Set]",xt="[object String]",Wt="[object Symbol]",on="[object Undefined]",Ot="[object WeakMap]",Tt="[object WeakSet]",bt="[object ArrayBuffer]",Ht="[object DataView]",Wn="[object Float32Array]",tn="[object Float64Array]",hr="[object Int8Array]",Zi="[object Int16Array]",Ri="[object Int32Array]",Pi="[object Uint8Array]",Wo="[object Uint8ClampedArray]",ys="[object Uint16Array]",xn="[object Uint32Array]",Hr=/\b__p \+= '';/g,Jr=/\b(__p \+=) '' \+/g,Yi=/(__e\(.*?\)|\b__t\)) \+\n'';/g,xo=/&(?:amp|lt|gt|quot|#39);/g,na=/[&<>"']/g,Un=RegExp(xo.source),Xn=RegExp(na.source),Mr=/<%-([\s\S]+?)%>/g,li=/<%([\s\S]+?)%>/g,wr=/<%=([\s\S]+?)%>/g,qr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ii=/^\w*$/,rn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Qn=/[\\^$.*+?()[\]{}|]/g,Vr=RegExp(Qn.source),so=/^\s+/,rs=/\s/,zt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,pn=/\{\n\/\* \[wrapped with (.+)\] \*/,br=/,? & /,Gr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ui=/[()=,{}\[\]\/\s]/,xi=/\\(\\)?/g,lo=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Kr=/\w*$/,ti=/^[-+]0x[0-9a-f]+$/i,ji=/^0b[01]+$/i,Tr=/^\[object .+?Constructor\]$/,Qt=/^0o[0-7]+$/i,Gn=/^(?:0|[1-9]\d*)$/,yi=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ln=/($^)/,Si=/['\n\r\u2028\u2029\\]/g,tr="\\ud800-\\udfff",vi="\\u0300-\\u036f",Ni="\\ufe20-\\ufe2f",kr="\\u20d0-\\u20ff",qn=vi+Ni+kr,ds="\\u2700-\\u27bf",_a="a-z\\xdf-\\xf6\\xf8-\\xff",da="\\xac\\xb1\\xd7\\xf7",zs="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Wa="\\u2000-\\u206f",Co=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",cl="A-Z\\xc0-\\xd6\\xd8-\\xde",Fr="\\ufe0e\\ufe0f",fs=da+zs+Wa+Co,jo="['\u2019]",Es="["+tr+"]",xs="["+fs+"]",Za="["+qn+"]",tl="\\d+",xl="["+ds+"]",Qa="["+_a+"]",si="[^"+tr+fs+tl+ds+_a+cl+"]",co="\\ud83c[\\udffb-\\udfff]",dn="(?:"+Za+"|"+co+")",An="[^"+tr+"]",Nn="(?:\\ud83c[\\udde6-\\uddff]){2}",tt="[\\ud800-\\udbff][\\udc00-\\udfff]",ht="["+cl+"]",vt="\\u200d",Fe="(?:"+Qa+"|"+si+")",lt="(?:"+ht+"|"+si+")",Et="(?:"+jo+"(?:d|ll|m|re|s|t|ve))?",an="(?:"+jo+"(?:D|LL|M|RE|S|T|VE))?",jn=dn+"?",Cr="["+Fr+"]?",Ti="(?:"+vt+"(?:"+[An,Nn,tt].join("|")+")"+Cr+jn+")*",$i="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Vi="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",us=Cr+jn+Ti,ks="(?:"+[xl,Nn,tt].join("|")+")"+us,Os="(?:"+[An+Za+"?",Za,Nn,tt,Es].join("|")+")",pa=RegExp(jo,"g"),no=RegExp(Za,"g"),Cs=RegExp(co+"(?="+co+")|"+Os+us,"g"),ea=RegExp([ht+"?"+Qa+"+"+Et+"(?="+[xs,ht,"$"].join("|")+")",lt+"+"+an+"(?="+[xs,ht+Fe,"$"].join("|")+")",ht+"?"+Fe+"+"+Et,ht+"+"+an,Vi,$i,tl,ks].join("|"),"g"),fa=RegExp("["+vt+tr+qn+Fr+"]"),Bl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ma=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],pl=-1,oa={};oa[Wn]=oa[tn]=oa[hr]=oa[Zi]=oa[Ri]=oa[Pi]=oa[Wo]=oa[ys]=oa[xn]=!0,oa[Er]=oa[Yr]=oa[bt]=oa[to]=oa[Ht]=oa[yo]=oa[Po]=oa[as]=oa[_o]=oa[ci]=oa[Ci]=oa[Ve]=oa[_t]=oa[xt]=oa[Ot]=!1;var Nl={};Nl[Er]=Nl[Yr]=Nl[bt]=Nl[Ht]=Nl[to]=Nl[yo]=Nl[Wn]=Nl[tn]=Nl[hr]=Nl[Zi]=Nl[Ri]=Nl[_o]=Nl[ci]=Nl[Ci]=Nl[Ve]=Nl[_t]=Nl[xt]=Nl[Wt]=Nl[Pi]=Nl[Wo]=Nl[ys]=Nl[xn]=!0,Nl[Po]=Nl[as]=Nl[Ot]=!1;var cs={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},zi={"&":"&","<":"<",">":">",'"':""","'":"'"},qi={"&":"&","<":"<",">":">",""":'"',"'":"'"},ta={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ms=parseFloat,Ua=parseInt,$u=typeof m.g=="object"&&m.g&&m.g.Object===Object&&m.g,rc=typeof self=="object"&&self&&self.Object===Object&&self,Pc=$u||rc||Function("return this")(),ho=V&&!V.nodeType&&V,Ji=ho&&!0&&nt&&!nt.nodeType&&nt,ss=Ji&&Ji.exports===ho,$n=ss&&$u.process,mr=function(){try{var Ba=Ji&&Ji.require&&Ji.require("util").types;return Ba||$n&&$n.binding&&$n.binding("util")}catch(ru){}}(),Qr=mr&&mr.isArrayBuffer,ni=mr&&mr.isDate,Ki=mr&&mr.isMap,ro=mr&&mr.isRegExp,Ei=mr&&mr.isSet,ns=mr&&mr.isTypedArray;function ca(Ba,ru,zl){switch(zl.length){case 0:return Ba.call(ru);case 1:return Ba.call(ru,zl[0]);case 2:return Ba.call(ru,zl[0],zl[1]);case 3:return Ba.call(ru,zl[0],zl[1],zl[2])}return Ba.apply(ru,zl)}function Na(Ba,ru,zl,Au){for(var Vu=-1,Vd=Ba==null?0:Ba.length;++Vu-1}function Xs(Ba,ru,zl){for(var Au=-1,Vu=Ba==null?0:Ba.length;++Au-1;);return zl}function vd(Ba,ru){for(var zl=Ba.length;zl--&&ma(ru,Ba[zl],0)>-1;);return zl}function Xd(Ba,ru){for(var zl=Ba.length,Au=0;zl--;)Ba[zl]===ru&&++Au;return Au}var th=Nu(cs),jd=Nu(zi);function vh(Ba){return"\\"+ta[Ba]}function id(Ba,ru){return Ba==null?I:Ba[ru]}function nd(Ba){return fa.test(Ba)}function Pf(Ba){return Bl.test(Ba)}function qd(Ba){for(var ru,zl=[];!(ru=Ba.next()).done;)zl.push(ru.value);return zl}function cc(Ba){var ru=-1,zl=Array(Ba.size);return Ba.forEach(function(Au,Vu){zl[++ru]=[Vu,Au]}),zl}function Xc(Ba,ru){return function(zl){return Ba(ru(zl))}}function jh(Ba,ru){for(var zl=-1,Au=Ba.length,Vu=0,Vd=[];++zl-1}function te(ue,Ne){var Zt=this.__data__,Ar=dc(Zt,ue);return Ar<0?(++this.size,Zt.push([ue,Ne])):Zt[Ar][1]=Ne,this}Iu.prototype.clear=pc,Iu.prototype.delete=zc,Iu.prototype.get=Rd,Iu.prototype.has=X,Iu.prototype.set=te;function J(ue){var Ne=-1,Zt=ue==null?0:ue.length;for(this.clear();++Ne=Ne?ue:Ne)),ue}function Xh(ue,Ne,Zt,Ar,No,Qs){var Tl,Vl=Ne&S,Mu=Ne&P,rd=Ne&W;if(Zt&&(Tl=No?Zt(ue,Ar,No,Qs):Zt(ue)),Tl!==I)return Tl;if(!hg(ue))return ue;var sd=mf(ue);if(sd){if(Tl=ir(ue),!Vl)return pr(ue,Tl)}else{var Dd=aa(ue),Yh=Dd==as||Dd==ge;if(ih(ue))return Vt(ue,Vl);if(Dd==Ci||Dd==Er||Yh&&!No){if(Tl=Mu||Yh?{}:bi(ue),!Vl)return Mu?mo(ue,hd(Tl,ue)):fo(ue,wc(Tl,ue))}else{if(!Nl[Dd])return No?ue:{};Tl=Wi(ue,Dd,Vl)}}Qs||(Qs=new Xo);var If=Qs.get(ue);if(If)return If;Qs.set(ue,Tl),Sv(ue)?ue.forEach(function(zp){Tl.add(Xh(zp,Ne,Zt,zp,ue,Qs))}):B0(ue)&&ue.forEach(function(zp,kg){Tl.set(kg,Xh(zp,Ne,Zt,kg,ue,Qs))});var fp=rd?Mu?kt:So:Mu?z0:fm,pp=sd?I:fp(ue);return ul(pp||ue,function(zp,kg){pp&&(kg=zp,zp=ue[kg]),Cu(Tl,kg,Xh(zp,Ne,Zt,kg,ue,Qs))}),Tl}function Nc(ue){var Ne=fm(ue);return function(Zt){return Uc(Zt,ue,Ne)}}function Uc(ue,Ne,Zt){var Ar=Zt.length;if(ue==null)return!Ar;for(ue=oh(ue);Ar--;){var No=Zt[Ar],Qs=Ne[No],Tl=ue[No];if(Tl===I&&!(No in ue)||!Qs(Tl))return!1}return!0}function tf(ue,Ne,Zt){if(typeof ue!="function")throw new Uh(N);return Gs(function(){ue.apply(I,Zt)},Ne)}function dh(ue,Ne,Zt,Ar){var No=-1,Qs=Pu,Tl=!0,Vl=ue.length,Mu=[],rd=Ne.length;if(!Vl)return Mu;Zt&&(Ne=Ya(Ne,ad(Zt))),Ar?(Qs=Xs,Tl=!1):Ne.length>=z&&(Qs=Fc,Tl=!1,Ne=new Zr(Ne));e:for(;++NoNo?0:No+Zt),Ar=Ar===I||Ar>No?No:vc(Ar),Ar<0&&(Ar+=No),Ar=Zt>Ar?0:bh(Ar);Zt0&&Zt(Vl)?Ne>1?vp(Vl,Ne-1,Zt,Ar,No):qa(No,Vl):Ar||(No[No.length]=Vl)}return No}var Zc=Eo(),Oc=Eo(!0);function ld(ue,Ne){return ue&&Zc(ue,Ne,fm)}function yd(ue,Ne){return ue&&Oc(ue,Ne,fm)}function Bd(ue,Ne){return ja(Ne,function(Zt){return dg(ue[Zt])})}function Dc(ue,Ne){Ne=rt(Ne,ue);for(var Zt=0,Ar=Ne.length;ue!=null&&ZtNe}function Io(ue,Ne){return ue!=null&&Vh.call(ue,Ne)}function Gg(ue,Ne){return ue!=null&&Ne in oh(ue)}function Hp(ue,Ne,Zt){return ue>=Ff(Ne,Zt)&&ue=120&&sd.length>=120)?new Zr(Tl&&sd):I}sd=ue[0];var Dd=-1,Yh=Vl[0];e:for(;++Dd-1;)Vl!==ue&&sg.call(Vl,Mu,1),sg.call(ue,Mu,1);return ue}function Zp(ue,Ne){for(var Zt=ue?Ne.length:0,Ar=Zt-1;Zt--;){var No=Ne[Zt];if(Zt==Ar||No!==Qs){var Qs=No;la(No)?sg.call(ue,No,1):Km(ue,No)}}return ue}function k0(ue,Ne){return ue+Np(Af()*(Ne-ue+1))}function Sp(ue,Ne,Zt,Ar){for(var No=-1,Qs=of(Pd((Ne-ue)/(Zt||1)),0),Tl=zl(Qs);Qs--;)Tl[Ar?Qs:++No]=ue,ue+=Zt;return Tl}function Xf(ue,Ne){var Zt="";if(!ue||Ne<1||Ne>He)return Zt;do Ne%2&&(Zt+=ue),Ne=Np(Ne/2),Ne&&(ue+=ue);while(Ne);return Zt}function Zh(ue,Ne){return Gc(va(ue,Ne,Pv),ue+"")}function a0(ue){return yl(cv(ue))}function M0(ue,Ne){var Zt=cv(ue);return et(Zt,Jd(Ne,0,Zt.length))}function Kg(ue,Ne,Zt,Ar){if(!hg(ue))return ue;Ne=rt(Ne,ue);for(var No=-1,Qs=Ne.length,Tl=Qs-1,Vl=ue;Vl!=null&&++NoNo?0:No+Ne),Zt=Zt>No?No:Zt,Zt<0&&(Zt+=No),No=Ne>Zt?0:Zt-Ne>>>0,Ne>>>=0;for(var Qs=zl(No);++Ar>>1,Tl=ue[Qs];Tl!==null&&!E0(Tl)&&(Zt?Tl<=Ne:Tl=z){var rd=Ne?null:Ft(ue);if(rd)return uf(rd);Tl=!1,No=Fc,Mu=new Zr}else Mu=Ne?[]:Vl;e:for(;++Ar=Ar?ue:$d(ue,Ne,Zt)}var Ut=pg||function(ue){return Pc.clearTimeout(ue)};function Vt(ue,Ne){if(Ne)return ue.slice();var Zt=ue.length,Ar=Qu?Qu(Zt):new ue.constructor(Zt);return ue.copy(Ar),Ar}function Xt(ue){var Ne=new ue.constructor(ue.byteLength);return new gf(Ne).set(new gf(ue)),Ne}function sn(ue,Ne){var Zt=Ne?Xt(ue.buffer):ue.buffer;return new ue.constructor(Zt,ue.byteOffset,ue.byteLength)}function mn(ue){var Ne=new ue.constructor(ue.source,Kr.exec(ue));return Ne.lastIndex=ue.lastIndex,Ne}function On(ue){return Hd?oh(Hd.call(ue)):{}}function lr(ue,Ne){var Zt=Ne?Xt(ue.buffer):ue.buffer;return new ue.constructor(Zt,ue.byteOffset,ue.length)}function Sr(ue,Ne){if(ue!==Ne){var Zt=ue!==I,Ar=ue===null,No=ue===ue,Qs=E0(ue),Tl=Ne!==I,Vl=Ne===null,Mu=Ne===Ne,rd=E0(Ne);if(!Vl&&!rd&&!Qs&&ue>Ne||Qs&&Tl&&Mu&&!Vl&&!rd||Ar&&Tl&&Mu||!Zt&&Mu||!No)return 1;if(!Ar&&!Qs&&!rd&&ue=Vl)return Mu;var rd=Zt[Ar];return Mu*(rd=="desc"?-1:1)}}return ue.index-Ne.index}function Or(ue,Ne,Zt,Ar){for(var No=-1,Qs=ue.length,Tl=Zt.length,Vl=-1,Mu=Ne.length,rd=of(Qs-Tl,0),sd=zl(Mu+rd),Dd=!Ar;++Vl1?Zt[No-1]:I,Tl=No>2?Zt[2]:I;for(Qs=ue.length>3&&typeof Qs=="function"?(No--,Qs):I,Tl&&Ho(Zt[0],Zt[1],Tl)&&(Qs=No<3?I:Qs,No=1),Ne=oh(Ne);++Ar-1?No[Qs?Ne[Tl]:Tl]:I}}function Hn(ue){return xr(function(Ne){var Zt=Ne.length,Ar=Zt,No=q.prototype.thru;for(ue&&Ne.reverse();Ar--;){var Qs=Ne[Ar];if(typeof Qs!="function")throw new Uh(N);if(No&&!Tl&&In(Qs)=="wrapper")var Tl=new q([],!0)}for(Ar=Tl?Ar:Zt;++Ar1&&tm.reverse(),sd&&MuVl))return!1;var rd=Qs.get(ue),sd=Qs.get(Ne);if(rd&&sd)return rd==Ne&&sd==ue;var Dd=-1,Yh=!0,If=Zt&re?new Zr:I;for(Qs.set(ue,Ne),Qs.set(Ne,ue);++Dd1?"& ":"")+Ne[Ar],Ne=Ne.join(Zt>2?", ":" "),ue.replace(zt,`{ +/* [wrapped with `+Ne+`] */ +`)}function Ds(ue){return mf(ue)||Ep(ue)||!!(Ah&&ue&&ue[Ah])}function la(ue,Ne){var Zt=typeof ue;return Ne=Ne==null?He:Ne,!!Ne&&(Zt=="number"||Zt!="symbol"&&Gn.test(ue))&&ue>-1&&ue%1==0&&ue0){if(++Ne>=Ae)return arguments[0]}else Ne=0;return ue.apply(I,arguments)}}function et(ue,Ne){var Zt=-1,Ar=ue.length,No=Ar-1;for(Ne=Ne===I?Ar:Ne;++Zt1?ue[Ne-1]:I;return Zt=typeof Zt=="function"?(ue.pop(),Zt):I,Lo(ue,Zt)});function pu(ue){var Ne=wo(ue);return Ne.__chain__=!0,Ne}function ic(ue,Ne){return Ne(ue),ue}function od(ue,Ne){return Ne(ue)}var Ao=xr(function(ue){var Ne=ue.length,Zt=Ne?ue[0]:0,Ar=this.__wrapped__,No=function(Qs){return ch(Qs,ue)};return Ne>1||this.__actions__.length||!(Ar instanceof se)||!la(Zt)?this.thru(No):(Ar=Ar.slice(Zt,+Zt+(Ne?1:0)),Ar.__actions__.push({func:od,args:[No],thisArg:I}),new q(Ar,this.__chain__).thru(function(Qs){return Ne&&!Qs.length&&Qs.push(I),Qs}))});function Qh(){return pu(this)}function xc(){return new q(this.value(),this.__chain__)}function hh(){this.__values__===I&&(this.__values__=hu(this.value()));var ue=this.__index__>=this.__values__.length,Ne=ue?I:this.__values__[this.__index__++];return{done:ue,value:Ne}}function Gd(){return this}function _(ue){for(var Ne,Zt=this;Zt instanceof F;){var Ar=Li(Zt);Ar.__index__=0,Ar.__values__=I,Ne?No.__wrapped__=Ar:Ne=Ar;var No=Ar;Zt=Zt.__wrapped__}return No.__wrapped__=ue,Ne}function R(){var ue=this.__wrapped__;if(ue instanceof se){var Ne=ue;return this.__actions__.length&&(Ne=new se(this)),Ne=Ne.reverse(),Ne.__actions__.push({func:od,args:[Wd],thisArg:I}),new q(Ne,this.__chain__)}return this.thru(Wd)}function G(){return de(this.__wrapped__,this.__actions__)}var le=fi(function(ue,Ne,Zt){Vh.call(ue,Zt)?++ue[Zt]:Td(ue,Zt,1)});function ke(ue,Ne,Zt){var Ar=mf(ue)?Ml:_h;return Zt&&Ho(ue,Ne,Zt)&&(Ne=I),Ar(ue,cr(Ne,3))}function Qe(ue,Ne){var Zt=mf(ue)?ja:jp;return Zt(ue,cr(Ne,3))}var Ct=ai(Du),jt=ai(Wc);function Rn(ue,Ne){return vp(Da(ue,Ne),1)}function ur(ue,Ne){return vp(Da(ue,Ne),ct)}function zr(ue,Ne,Zt){return Zt=Zt===I?1:vc(Zt),vp(Da(ue,Ne),Zt)}function hi(ue,Ne){var Zt=mf(ue)?ul:nh;return Zt(ue,cr(Ne,3))}function po(ue,Ne){var Zt=mf(ue)?Hl:zh;return Zt(ue,cr(Ne,3))}var ko=fi(function(ue,Ne,Zt){Vh.call(ue,Zt)?ue[Zt].push(Ne):Td(ue,Zt,[Ne])});function Zs(ue,Ne,Zt,Ar){ue=Of(ue)?ue:cv(ue),Zt=Zt&&!Ar?vc(Zt):0;var No=ue.length;return Zt<0&&(Zt=of(No+Zt,0)),vv(ue)?Zt<=No&&ue.indexOf(Ne,Zt)>-1:!!No&&ma(ue,Ne,Zt)>-1}var Js=Zh(function(ue,Ne,Zt){var Ar=-1,No=typeof Ne=="function",Qs=Of(ue)?zl(ue.length):[];return nh(ue,function(Tl){Qs[++Ar]=No?ca(Ne,Tl,Zt):Zd(Tl,Ne,Zt)}),Qs}),sl=fi(function(ue,Ne,Zt){Td(ue,Zt,Ne)});function Da(ue,Ne){var Zt=mf(ue)?Ya:im;return Zt(ue,cr(Ne,3))}function Ol(ue,Ne,Zt,Ar){return ue==null?[]:(mf(Ne)||(Ne=Ne==null?[]:[Ne]),Zt=Ar?I:Zt,mf(Zt)||(Zt=Zt==null?[]:[Zt]),Qg(ue,Ne,Zt))}var jl=fi(function(ue,Ne,Zt){ue[Zt?0:1].push(Ne)},function(){return[[],[]]});function cu(ue,Ne,Zt){var Ar=mf(ue)?Ul:lc,No=arguments.length<3;return Ar(ue,cr(Ne,4),Zt,No,nh)}function lu(ue,Ne,Zt){var Ar=mf(ue)?ql:lc,No=arguments.length<3;return Ar(ue,cr(Ne,4),Zt,No,zh)}function Uu(ue,Ne){var Zt=mf(ue)?ja:jp;return Zt(ue,rh(cr(Ne,3)))}function kc(ue){var Ne=mf(ue)?yl:a0;return Ne(ue)}function ac(ue,Ne,Zt){(Zt?Ho(ue,Ne,Zt):Ne===I)?Ne=1:Ne=vc(Ne);var Ar=mf(ue)?nu:M0;return Ar(ue,Ne)}function _d(ue){var Ne=mf(ue)?xu:Gm;return Ne(ue)}function Xu(ue){if(ue==null)return 0;if(Of(ue))return vv(ue)?Nf(ue):ue.length;var Ne=aa(ue);return Ne==_o||Ne==_t?ue.size:rm(ue).length}function Nd(ue,Ne,Zt){var Ar=mf(ue)?vu:K0;return Zt&&Ho(ue,Ne,Zt)&&(Ne=I),Ar(ue,cr(Ne,3))}var Yt=Zh(function(ue,Ne){if(ue==null)return[];var Zt=Ne.length;return Zt>1&&Ho(ue,Ne[0],Ne[1])?Ne=[]:Zt>2&&Ho(Ne[0],Ne[1],Ne[2])&&(Ne=[Ne[0]]),Qg(ue,vp(Ne,1),[])}),Mn=wp||function(){return Pc.Date.now()};function dr(ue,Ne){if(typeof Ne!="function")throw new Uh(N);return ue=vc(ue),function(){if(--ue<1)return Ne.apply(this,arguments)}}function jr(ue,Ne,Zt){return Ne=Zt?I:Ne,Ne=ue&&Ne==null?ue.length:Ne,$t(ue,De,I,I,I,I,Ne)}function go(ue,Ne){var Zt;if(typeof Ne!="function")throw new Uh(N);return ue=vc(ue),function(){return--ue>0&&(Zt=Ne.apply(this,arguments)),ue<=1&&(Ne=I),Zt}}var ia=Zh(function(ue,Ne,Zt){var Ar=ce;if(Zt.length){var No=jh(Zt,rr(ia));Ar|=Ie}return $t(ue,Ar,Ne,Zt,No)}),Ga=Zh(function(ue,Ne,Zt){var Ar=ce|pe;if(Zt.length){var No=jh(Zt,rr(Ga));Ar|=Ie}return $t(Ne,Ar,ue,Zt,No)});function Aa(ue,Ne,Zt){Ne=Zt?I:Ne;var Ar=$t(ue,fe,I,I,I,I,I,Ne);return Ar.placeholder=Aa.placeholder,Ar}function Xl(ue,Ne,Zt){Ne=Zt?I:Ne;var Ar=$t(ue,Be,I,I,I,I,I,Ne);return Ar.placeholder=Xl.placeholder,Ar}function wu(ue,Ne,Zt){var Ar,No,Qs,Tl,Vl,Mu,rd=0,sd=!1,Dd=!1,Yh=!0;if(typeof ue!="function")throw new Uh(N);Ne=Qd(Ne)||0,hg(Zt)&&(sd=!!Zt.leading,Dd="maxWait"in Zt,Qs=Dd?of(Qd(Zt.maxWait)||0,Ne):Qs,Yh="trailing"in Zt?!!Zt.trailing:Yh);function If(O0){var c1=Ar,X1=No;return Ar=No=I,rd=O0,Tl=ue.apply(X1,c1),Tl}function fp(O0){return rd=O0,Vl=Gs(kg,Ne),sd?If(O0):Tl}function pp(O0){var c1=O0-Mu,X1=O0-rd,_x=Ne-c1;return Dd?Ff(_x,Qs-X1):_x}function zp(O0){var c1=O0-Mu,X1=O0-rd;return Mu===I||c1>=Ne||c1<0||Dd&&X1>=Qs}function kg(){var O0=Mn();if(zp(O0))return tm(O0);Vl=Gs(kg,pp(O0))}function tm(O0){return Vl=I,Yh&&Ar?If(O0):(Ar=No=I,Tl)}function Zv(){Vl!==I&&Ut(Vl),rd=0,Ar=Mu=No=Vl=I}function hv(){return Vl===I?Tl:tm(Mn())}function Gv(){var O0=Mn(),c1=zp(O0);if(Ar=arguments,No=this,Mu=O0,c1){if(Vl===I)return fp(Mu);if(Dd)return Ut(Vl),Vl=Gs(kg,Ne),If(Mu)}return Vl===I&&(Vl=Gs(kg,Ne)),Tl}return Gv.cancel=Zv,Gv.flush=hv,Gv}var Ts=Zh(function(ue,Ne){return tf(ue,1,Ne)}),Kc=Zh(function(ue,Ne,Zt){return tf(ue,Qd(Ne)||0,Zt)});function fh(ue){return $t(ue,ye)}function ph(ue,Ne){if(typeof ue!="function"||Ne!=null&&typeof Ne!="function")throw new Uh(N);var Zt=function(){var Ar=arguments,No=Ne?Ne.apply(this,Ar):Ar[0],Qs=Zt.cache;if(Qs.has(No))return Qs.get(No);var Tl=ue.apply(this,Ar);return Zt.cache=Qs.set(No,Tl)||Qs,Tl};return Zt.cache=new(ph.Cache||J),Zt}ph.Cache=J;function rh(ue){if(typeof ue!="function")throw new Uh(N);return function(){var Ne=arguments;switch(Ne.length){case 0:return!ue.call(this);case 1:return!ue.call(this,Ne[0]);case 2:return!ue.call(this,Ne[0],Ne[1]);case 3:return!ue.call(this,Ne[0],Ne[1],Ne[2])}return!ue.apply(this,Ne)}}function wh(ue){return go(2,ue)}var cg=Xe(function(ue,Ne){Ne=Ne.length==1&&mf(Ne[0])?Ya(Ne[0],ad(cr())):Ya(vp(Ne,1),ad(cr()));var Zt=Ne.length;return Zh(function(Ar){for(var No=-1,Qs=Ff(Ar.length,Zt);++No=Ne}),Ep=Fp(function(){return arguments}())?Fp:function(ue){return Xp(ue)&&Vh.call(ue,"callee")&&!qp.call(ue,"callee")},mf=zl.isArray,Gp=Qr?ad(Qr):zf;function Of(ue){return ue!=null&&ig(ue.length)&&!dg(ue)}function Ru(ue){return Xp(ue)&&Of(ue)}function ah(ue){return ue===!0||ue===!1||Xp(ue)&&ud(ue)==to}var ih=ag||ky,Lp=ni?ad(ni):bf;function qf(ue){return Xp(ue)&&ue.nodeType===1&&!wv(ue)}function kp(ue){if(ue==null)return!0;if(Of(ue)&&(mf(ue)||typeof ue=="string"||typeof ue.splice=="function"||ih(ue)||$v(ue)||Ep(ue)))return!ue.length;var Ne=aa(ue);if(Ne==_o||Ne==_t)return!ue.size;if(Oa(ue))return!rm(ue).length;for(var Zt in ue)if(Vh.call(ue,Zt))return!1;return!0}function Kp(ue,Ne){return Jp(ue,Ne)}function rp(ue,Ne,Zt){Zt=typeof Zt=="function"?Zt:I;var Ar=Zt?Zt(ue,Ne):I;return Ar===I?Jp(ue,Ne,I,Zt):!!Ar}function Sm(ue){if(!Xp(ue))return!1;var Ne=ud(ue);return Ne==Po||Ne==yr||typeof ue.message=="string"&&typeof ue.name=="string"&&!wv(ue)}function Yg(ue){return typeof ue=="number"&&Md(ue)}function dg(ue){if(!hg(ue))return!1;var Ne=ud(ue);return Ne==as||Ne==ge||Ne==oi||Ne==ln}function qg(ue){return typeof ue=="number"&&ue==vc(ue)}function ig(ue){return typeof ue=="number"&&ue>-1&&ue%1==0&&ue<=He}function hg(ue){var Ne=typeof ue;return ue!=null&&(Ne=="object"||Ne=="function")}function Xp(ue){return ue!=null&&typeof ue=="object"}var B0=Ki?ad(Ki):Hf;function v1(ue,Ne){return ue===Ne||df(ue,Ne,Ai(Ne))}function j0(ue,Ne,Zt){return Zt=typeof Zt=="function"?Zt:I,df(ue,Ne,Ai(Ne),Zt)}function q_(ue){return V1(ue)&&ue!=+ue}function uv(ue){if(Dl(ue))throw new Vu(k);return af(ue)}function y1(ue){return ue===null}function X0(ue){return ue==null}function V1(ue){return typeof ue=="number"||Xp(ue)&&ud(ue)==ci}function wv(ue){if(!Xp(ue)||ud(ue)!=Ci)return!1;var Ne=Bc(ue);if(Ne===null)return!0;var Zt=Vh.call(Ne,"constructor")&&Ne.constructor;return typeof Zt=="function"&&Zt instanceof Zt&&ed.call(Zt)==Pa}var mv=ro?ad(ro):jg;function sy(ue){return qg(ue)&&ue>=-He&&ue<=He}var Sv=Ei?ad(Ei):ap;function vv(ue){return typeof ue=="string"||!mf(ue)&&Xp(ue)&&ud(ue)==xt}function E0(ue){return typeof ue=="symbol"||Xp(ue)&&ud(ue)==Wt}var $v=ns?ad(ns):lg;function ay(ue){return ue===I}function Ky(ue){return Xp(ue)&&aa(ue)==Ot}function Wv(ue){return Xp(ue)&&ud(ue)==Tt}var n1=Ls(zm),Gu=Ls(function(ue,Ne){return ue<=Ne});function hu(ue){if(!ue)return[];if(Of(ue))return vv(ue)?uh(ue):pr(ue);if(sp&&ue[sp])return qd(ue[sp]());var Ne=aa(ue),Zt=Ne==_o?cc:Ne==_t?uf:cv;return Zt(ue)}function Yc(ue){if(!ue)return ue===0?ue:0;if(ue=Qd(ue),ue===ct||ue===-ct){var Ne=ue<0?-1:1;return Ne*wt}return ue===ue?ue:0}function vc(ue){var Ne=Yc(ue),Zt=Ne%1;return Ne===Ne?Zt?Ne-Zt:Ne:0}function bh(ue){return ue?Jd(vc(ue),0,Bt):0}function Qd(ue){if(typeof ue=="number")return ue;if(E0(ue))return dt;if(hg(ue)){var Ne=typeof ue.valueOf=="function"?ue.valueOf():ue;ue=hg(Ne)?Ne+"":Ne}if(typeof ue!="string")return ue===0?ue:+ue;ue=Kd(ue);var Zt=ji.test(ue);return Zt||Qt.test(ue)?Ua(ue.slice(2),Zt?2:8):ti.test(ue)?dt:+ue}function rf(ue){return Xr(ue,z0(ue))}function Tp(ue){return ue?Jd(vc(ue),-He,He):ue===0?ue:0}function Ph(ue){return ue==null?"":yp(ue)}var up=uo(function(ue,Ne){if(Oa(Ne)||Of(Ne)){Xr(Ne,fm(Ne),ue);return}for(var Zt in Ne)Vh.call(Ne,Zt)&&Cu(ue,Zt,Ne[Zt])}),hp=uo(function(ue,Ne){Xr(Ne,z0(Ne),ue)}),t0=uo(function(ue,Ne,Zt,Ar){Xr(Ne,z0(Ne),ue,Ar)}),Dg=uo(function(ue,Ne,Zt,Ar){Xr(Ne,fm(Ne),ue,Ar)}),Xm=xr(ch);function V0(ue,Ne){var Zt=D(ue);return Ne==null?Zt:wc(Zt,Ne)}var Ev=Zh(function(ue,Ne){ue=oh(ue);var Zt=-1,Ar=Ne.length,No=Ar>2?Ne[2]:I;for(No&&Ho(Ne[0],Ne[1],No)&&(Ar=1);++Zt1),Qs}),Xr(ue,kt(ue),Zt),Ar&&(Zt=Xh(Zt,S|P|W,Dn));for(var No=Ne.length;No--;)Km(Zt,Ne[No]);return Zt});function uy(ue,Ne){return y0(ue,rh(cr(Ne)))}var U1=xr(function(ue,Ne){return ue==null?{}:Lm(ue,Ne)});function y0(ue,Ne){if(ue==null)return{};var Zt=Ya(kt(ue),function(Ar){return[Ar]});return Ne=cr(Ne),Om(ue,Zt,function(Ar,No){return Ne(Ar,No[0])})}function J_(ue,Ne,Zt){Ne=rt(Ne,ue);var Ar=-1,No=Ne.length;for(No||(No=1,ue=I);++ArNe){var Ar=ue;ue=Ne,Ne=Ar}if(Zt||ue%1||Ne%1){var No=Af();return Ff(ue+No*(Ne-ue+ms("1e-"+((No+"").length-1))),Ne)}return k0(ue,Ne)}var _v=Dr(function(ue,Ne,Zt){return Ne=Ne.toLowerCase(),ue+(Zt?Vv(Ne):Ne)});function Vv(ue){return G1(Ph(ue).toLowerCase())}function Uv(ue){return ue=Ph(ue),ue&&ue.replace(yi,th).replace(no,"")}function R1(ue,Ne,Zt){ue=Ph(ue),Ne=yp(Ne);var Ar=ue.length;Zt=Zt===I?Ar:Jd(vc(Zt),0,Ar);var No=Zt;return Zt-=Ne.length,Zt>=0&&ue.slice(Zt,No)==Ne}function qy(ue){return ue=Ph(ue),ue&&Xn.test(ue)?ue.replace(na,jd):ue}function ov(ue){return ue=Ph(ue),ue&&Vr.test(ue)?ue.replace(Qn,"\\$&"):ue}var w_=Dr(function(ue,Ne,Zt){return ue+(Zt?"-":"")+Ne.toLowerCase()}),S_=Dr(function(ue,Ne,Zt){return ue+(Zt?" ":"")+Ne.toLowerCase()}),s1=Rs("toLowerCase");function Ly(ue,Ne,Zt){ue=Ph(ue),Ne=vc(Ne);var Ar=Ne?Nf(ue):0;if(!Ne||Ar>=Ne)return ue;var No=(Ne-Ar)/2;return Di(Np(No),Zt)+ue+Di(Pd(No),Zt)}function Lb(ue,Ne,Zt){ue=Ph(ue),Ne=vc(Ne);var Ar=Ne?Nf(ue):0;return Ne&&Ar>>0,Zt?(ue=Ph(ue),ue&&(typeof Ne=="string"||Ne!=null&&!mv(Ne))&&(Ne=yp(Ne),!Ne&&nd(ue))?It(uh(ue),0,Zt):ue.split(Ne,Zt)):[]}var hx=Dr(function(ue,Ne,Zt){return ue+(Zt?" ":"")+G1(Ne)});function T_(ue,Ne,Zt){return ue=Ph(ue),Zt=Zt==null?0:Jd(vc(Zt),0,ue.length),Ne=yp(Ne),ue.slice(Zt,Zt+Ne.length)==Ne}function D_(ue,Ne,Zt){var Ar=wo.templateSettings;Zt&&Ho(ue,Ne,Zt)&&(Ne=I),ue=Ph(ue),Ne=t0({},Ne,Ar,Gt);var No=t0({},Ne.imports,Ar.imports,Gt),Qs=fm(No),Tl=ku(No,Qs),Vl,Mu,rd=0,sd=Ne.interpolate||Ln,Dd="__p += '",Yh=Vf((Ne.escape||Ln).source+"|"+sd.source+"|"+(sd===wr?lo:Ln).source+"|"+(Ne.evaluate||Ln).source+"|$","g"),If="//# sourceURL="+(Vh.call(Ne,"sourceURL")?(Ne.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++pl+"]")+` +`;ue.replace(Yh,function(zp,kg,tm,Zv,hv,Gv){return tm||(tm=Zv),Dd+=ue.slice(rd,Gv).replace(Si,vh),kg&&(Vl=!0,Dd+=`' + __e(`+kg+`) + -'`),dv&&(Ou=!0,Dd+=`'; -`+dv+`; +'`),hv&&(Mu=!0,Dd+=`'; +`+hv+`; __p += '`),tm&&(Dd+=`' + ((__t = (`+tm+`)) == null ? '' : __t) + -'`),rd=Hv+zp.length,zp}),Dd+=`'; -`;var pp=Vh.call(Be,"variable")&&Be.variable;if(!pp)Dd=`with (obj) { +'`),rd=Gv+zp.length,zp}),Dd+=`'; +`;var fp=Vh.call(Ne,"variable")&&Ne.variable;if(!fp)Dd=`with (obj) { `+Dd+` } -`;else if(ui.test(pp))throw new Uu(w);Dd=(Ou?Dd.replace(Hr,""):Dd).replace(Jr,"$1").replace(Yi,"$1;"),Dd="function("+(pp||"obj")+`) { -`+(pp?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(Ul?", __e = _.escape":"")+(Ou?`, __j = Array.prototype.join; +`;else if(ui.test(fp))throw new Vu(w);Dd=(Mu?Dd.replace(Hr,""):Dd).replace(Jr,"$1").replace(Yi,"$1;"),Dd="function("+(fp||"obj")+`) { +`+(fp?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(Vl?", __e = _.escape":"")+(Mu?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+Dd+`return __p -}`;var gp=k1(function(){return Vd(Qs,If+"return "+Dd).apply(A,Tl)});if(gp.source=Dd,Em(gp))throw gp;return gp}function I_(ce){return Ph(ce).toLowerCase()}function qx(ce){return Ph(ce).toUpperCase()}function ux(ce,Be,Zt){if(ce=Ph(ce),ce&&(Zt||Be===A))return Xd(ce);if(!ce||!(Be=yp(Be)))return ce;var Ar=ch(ce),No=ch(Be),Qs=hd(Ar,No),Tl=vd(Ar,No)+1;return It(Ar,Qs,Tl).join("")}function yS(ce,Be,Zt){if(ce=Ph(ce),ce&&(Zt||Be===A))return ce.slice(0,Th(ce)+1);if(!ce||!(Be=yp(Be)))return ce;var Ar=ch(ce),No=vd(Ar,ch(Be))+1;return It(Ar,0,No).join("")}function oy(ce,Be,Zt){if(ce=Ph(ce),ce&&(Zt||Be===A))return ce.replace(so,"");if(!ce||!(Be=yp(Be)))return ce;var Ar=ch(ce),No=hd(Ar,ch(Be));return It(Ar,No).join("")}function Vv(ce,Be){var Zt=xe,Ar=be;if(hg(Be)){var No="separator"in Be?Be.separator:No;Zt="length"in Be?vc(Be.length):Zt,Ar="omission"in Be?yp(Be.omission):Ar}ce=Ph(ce);var Qs=ce.length;if(nd(ce)){var Tl=ch(ce);Qs=Tl.length}if(Zt>=Qs)return ce;var Ul=Zt-Nf(Ar);if(Ul<1)return Ar;var Ou=Tl?It(Tl,0,Ul).join(""):ce.slice(0,Ul);if(No===A)return Ou+Ar;if(Tl&&(Ul+=Ou.length-Ul),gv(No)){if(ce.slice(Ul).search(No)){var rd,od=Ou;for(No.global||(No=Vf(No.source,Ph(Kr.exec(No))+"g")),No.lastIndex=0;rd=No.exec(od);)var Dd=rd.index;Ou=Ou.slice(0,Dd===A?Ul:Dd)}}else if(ce.indexOf(yp(No),Ul)!=Ul){var Yh=Ou.lastIndexOf(No);Yh>-1&&(Ou=Ou.slice(0,Yh))}return Ou+Ar}function Gy(ce){return ce=Ph(ce),ce&&Vn.test(ce)?ce.replace(xo,yu):ce}var Dv=Dr(function(ce,Be,Zt){return ce+(Zt?" ":"")+Be.toUpperCase()}),Ky=Rs("toUpperCase");function L_(ce,Be,Zt){return ce=Ph(ce),Be=Zt?A:Be,Be===A?Pf(ce)?Bu(ce):Eu(ce):ce.match(Be)||[]}var k1=Zh(function(ce,Be){try{return ua(ce,A,Be)}catch(Zt){return Em(Zt)?Zt:new Uu(Zt)}}),Xy=br(function(ce,Be){return cl(Be,function(Zt){Zt=Lr(Zt),Td(ce,Zt,ra(ce[Zt],ce))}),ce});function xy(ce){var Be=ce==null?0:ce.length,Zt=cr();return ce=Be?Ya(ce,function(Ar){if(typeof Ar[1]!="function")throw new Uh(N);return[Zt(Ar[0]),Ar[1]]}):[],Zh(function(Ar){for(var No=-1;++NoUe)return[];var Zt=Bt,Ar=Ff(ce,Bt);Be=cr(Be),ce-=Bt;for(var No=zd(Ar,Be);++Zt0||Be<0)?new ae(Zt):(ce<0?Zt=Zt.takeRight(-ce):ce&&(Zt=Zt.drop(ce)),Be!==A&&(Be=vc(Be),Zt=Be<0?Zt.dropRight(-Be):Zt.take(Be-ce)),Zt)},ae.prototype.takeRightWhile=function(ce){return this.reverse().takeWhile(ce).reverse()},ae.prototype.toArray=function(){return this.take(Bt)},ad(ae.prototype,function(ce,Be){var Zt=/^(?:filter|find|map|reject)|While$/.test(Be),Ar=/^(?:head|last)$/.test(Be),No=wo[Ar?"take"+(Be=="last"?"Right":""):Be],Qs=Ar||/^find/.test(Be);No&&(wo.prototype[Be]=function(){var Tl=this.__wrapped__,Ul=Ar?[1]:arguments,Ou=Tl instanceof ae,rd=Ul[0],od=Ou||gf(Tl),Dd=function(kg){var tm=No.apply(wo,qa([kg],Ul));return Ar&&Yh?tm[0]:tm};od&&Zt&&typeof rd=="function"&&rd.length!=1&&(Ou=od=!1);var Yh=this.__chain__,If=!!this.__actions__.length,pp=Qs&&!Yh,gp=Ou&&!If;if(!Qs&&od){Tl=gp?Tl:new ae(this);var zp=ce.apply(Tl,Ul);return zp.__actions__.push({func:cd,args:[Dd],thisArg:A}),new q(zp,Yh)}return pp&&gp?ce.apply(this,Ul):(zp=this.thru(Dd),pp?Ar?zp.value()[0]:zp.value():zp)})}),cl(["pop","push","shift","sort","splice","unshift"],function(ce){var Be=kf[ce],Zt=/^(?:push|sort|unshift)$/.test(ce)?"tap":"thru",Ar=/^(?:pop|shift)$/.test(ce);wo.prototype[ce]=function(){var No=arguments;if(Ar&&!this.__chain__){var Qs=this.value();return Be.apply(gf(Qs)?Qs:[],No)}return this[Zt](function(Tl){return Be.apply(gf(Tl)?Tl:[],No)})}}),ad(ae.prototype,function(ce,Be){var Zt=wo[Be];if(Zt){var Ar=Zt.name+"";Vh.call(Cd,Ar)||(Cd[Ar]=[]),Cd[Ar].push({name:Be,func:Zt})}}),Cd[jr(A,de).name]=[{name:"wrapper",func:A}],ae.prototype.clone=He,ae.prototype.reverse=qt,ae.prototype.value=zn,wo.prototype.at=Ao,wo.prototype.chain=Jh,wo.prototype.commit=xc,wo.prototype.next=fh,wo.prototype.plant=_,wo.prototype.reverse=R,wo.prototype.toJSON=wo.prototype.valueOf=wo.prototype.value=Z,wo.prototype.first=wo.prototype.head,ap&&(wo.prototype[ap]=Gd),wo},qd=wd();Pc._=qd,y=function(){return qd}.call(V,m,V,nt),y!==A&&(nt.exports=y)}).call(this)},15644:function(nt,V,m){var y=m(83369),A="Expected a function";function b(z,k){if(typeof z!="function"||k!=null&&typeof k!="function")throw new TypeError(A);var N=function(){var w=arguments,I=k?k.apply(this,w):w[0],C=N.cache;if(C.has(I))return C.get(I);var f=z.apply(this,w);return N.cache=C.set(I,f)||C,f};return N.cache=new(b.Cache||y),N}b.Cache=y,nt.exports=b},82492:function(nt,V,m){var y=m(42980),A=m(21463),b=A(function(z,k,N){y(z,k,N)});nt.exports=b},30236:function(nt,V,m){var y=m(42980),A=m(21463),b=A(function(z,k,N,w){y(z,k,N,w)});nt.exports=b},50308:function(nt){function V(){}nt.exports=V},7771:function(nt,V,m){var y=m(55639),A=function(){return y.Date.now()};nt.exports=A},97019:function(nt,V,m){var y=m(5976),A=m(45604),b=y(A);nt.exports=b},45604:function(nt,V,m){var y=m(65464);function A(b,z){return b&&b.length&&z&&z.length?y(b,z):b}nt.exports=A},70479:function(nt){function V(){return[]}nt.exports=V},95062:function(nt){function V(){return!1}nt.exports=V},23493:function(nt,V,m){var y=m(23279),A=m(13218),b="Expected a function";function z(k,N,w){var I=!0,C=!0;if(typeof k!="function")throw new TypeError(b);return A(w)&&(I="leading"in w?!!w.leading:I,C="trailing"in w?!!w.trailing:C),y(k,N,{leading:I,maxWait:N,trailing:C})}nt.exports=z},14841:function(nt,V,m){var y=m(4107),A=m(13218),b=m(33448),z=0/0,k=/^[-+]0x[0-9a-f]+$/i,N=/^0b[01]+$/i,w=/^0o[0-7]+$/i,I=parseInt;function C(f){if(typeof f=="number")return f;if(b(f))return z;if(A(f)){var S=typeof f.valueOf=="function"?f.valueOf():f;f=A(S)?S+"":S}if(typeof f!="string")return f===0?f:+f;f=y(f);var P=N.test(f);return P||w.test(f)?I(f.slice(2),P?2:8):k.test(f)?z:+f}nt.exports=C},59881:function(nt,V,m){var y=m(98363),A=m(81704);function b(z){return y(z,A(z))}nt.exports=b},79833:function(nt,V,m){var y=m(80531);function A(b){return b==null?"":y(b)}nt.exports=A},44908:function(nt,V,m){var y=m(45652);function A(b){return b&&b.length?y(b):[]}nt.exports=A},11700:function(nt,V,m){var y=m(98805),A=y("toUpperCase");nt.exports=A},58748:function(nt,V,m){var y=m(49029),A=m(93157),b=m(79833),z=m(2757);function k(N,w,I){return N=b(N),w=I?void 0:w,w===void 0?A(N)?z(N):y(N):N.match(w)||[]}nt.exports=k},6158:function(nt){(function(V,m){nt.exports=m()})(this,function(){"use strict";var V,m,y;function A(b,z){if(!V)V=z;else if(!m)m=z;else{var k="var sharedChunk = {}; ("+V+")(sharedChunk); ("+m+")(sharedChunk);",N={};V(N),y=z(N),typeof window!="undefined"&&(y.workerUrl=window.URL.createObjectURL(new Blob([k],{type:"text/javascript"})))}}return A(["exports"],function(b){"use strict";function z(_,R){return _(R={exports:{}},R.exports),R.exports}var k=N;function N(_,R,Z,ue){this.cx=3*_,this.bx=3*(Z-_)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*R,this.by=3*(ue-R)-this.cy,this.ay=1-this.cy-this.by,this.p1x=_,this.p1y=ue,this.p2x=Z,this.p2y=ue}N.prototype.sampleCurveX=function(_){return((this.ax*_+this.bx)*_+this.cx)*_},N.prototype.sampleCurveY=function(_){return((this.ay*_+this.by)*_+this.cy)*_},N.prototype.sampleCurveDerivativeX=function(_){return(3*this.ax*_+2*this.bx)*_+this.cx},N.prototype.solveCurveX=function(_,R){var Z,ue,Pe,Qe,wt;for(R===void 0&&(R=1e-6),Pe=_,wt=0;wt<8;wt++){if(Qe=this.sampleCurveX(Pe)-_,Math.abs(Qe)(ue=1))return ue;for(;ZQe?Z=Pe:ue=Pe,Pe=.5*(ue-Z)+Z}return Pe},N.prototype.solve=function(_,R){return this.sampleCurveY(this.solveCurveX(_,R))};var w=I;function I(_,R){this.x=_,this.y=R}I.prototype={clone:function(){return new I(this.x,this.y)},add:function(_){return this.clone()._add(_)},sub:function(_){return this.clone()._sub(_)},multByPoint:function(_){return this.clone()._multByPoint(_)},divByPoint:function(_){return this.clone()._divByPoint(_)},mult:function(_){return this.clone()._mult(_)},div:function(_){return this.clone()._div(_)},rotate:function(_){return this.clone()._rotate(_)},rotateAround:function(_,R){return this.clone()._rotateAround(_,R)},matMult:function(_){return this.clone()._matMult(_)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(_){return this.x===_.x&&this.y===_.y},dist:function(_){return Math.sqrt(this.distSqr(_))},distSqr:function(_){var R=_.x-this.x,Z=_.y-this.y;return R*R+Z*Z},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(_){return Math.atan2(this.y-_.y,this.x-_.x)},angleWith:function(_){return this.angleWithSep(_.x,_.y)},angleWithSep:function(_,R){return Math.atan2(this.x*R-this.y*_,this.x*_+this.y*R)},_matMult:function(_){var R=_[2]*this.x+_[3]*this.y;return this.x=_[0]*this.x+_[1]*this.y,this.y=R,this},_add:function(_){return this.x+=_.x,this.y+=_.y,this},_sub:function(_){return this.x-=_.x,this.y-=_.y,this},_mult:function(_){return this.x*=_,this.y*=_,this},_div:function(_){return this.x/=_,this.y/=_,this},_multByPoint:function(_){return this.x*=_.x,this.y*=_.y,this},_divByPoint:function(_){return this.x/=_.x,this.y/=_.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var _=this.y;return this.y=this.x,this.x=-_,this},_rotate:function(_){var R=Math.cos(_),Z=Math.sin(_),ue=Z*this.x+R*this.y;return this.x=R*this.x-Z*this.y,this.y=ue,this},_rotateAround:function(_,R){var Z=Math.cos(_),ue=Math.sin(_),Pe=R.y+ue*(this.x-R.x)+Z*(this.y-R.y);return this.x=R.x+Z*(this.x-R.x)-ue*(this.y-R.y),this.y=Pe,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},I.convert=function(_){return _ instanceof I?_:Array.isArray(_)?new I(_[0],_[1]):_};var C=typeof self!="undefined"?self:{},f=Math.pow(2,53)-1;function S(_,R,Z,ue){var Pe=new k(_,R,Z,ue);return function(Qe){return Pe.solve(Qe)}}var P=S(.25,.1,.25,1);function j(_,R,Z){return Math.min(Z,Math.max(R,_))}function re(_,R,Z){var ue=Z-R,Pe=((_-R)%ue+ue)%ue+R;return Pe===R?Z:Pe}function J(_){for(var R=[],Z=arguments.length-1;Z-- >0;)R[Z]=arguments[Z+1];for(var ue=0,Pe=R;ue>R/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,_)}()}function fe(_){return!!_&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(_)}function ke(_,R){_.forEach(function(Z){R[Z]&&(R[Z]=R[Z].bind(R))})}function we(_,R){return _.indexOf(R,_.length-R.length)!==-1}function Ne(_,R,Z){var ue={};for(var Pe in _)ue[Pe]=R.call(Z||this,_[Pe],Pe,_);return ue}function Ee(_,R,Z){var ue={};for(var Pe in _)R.call(Z||this,_[Pe],Pe,_)&&(ue[Pe]=_[Pe]);return ue}function ge(_){return Array.isArray(_)?_.map(ge):typeof _=="object"&&_?Ne(_,ge):_}var ye={};function xe(_){ye[_]||(typeof console!="undefined"&&console.warn(_),ye[_]=!0)}function be(_,R,Z){return(Z.y-_.y)*(R.x-_.x)>(R.y-_.y)*(Z.x-_.x)}function Ie(_){for(var R=0,Z=0,ue=_.length,Pe=ue-1,Qe=void 0,wt=void 0;Z@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,function(ue,Pe,Qe,wt){var Wt=Qe||wt;return R[Pe]=!Wt||Wt.toLowerCase(),""}),R["max-age"]){var Z=parseInt(R["max-age"],10);isNaN(Z)?delete R["max-age"]:R["max-age"]=Z}return R}var Ce=null;function Pt(_){if(Ce==null){var R=_.navigator?_.navigator.userAgent:null;Ce=!!_.safari||!(!R||!(/\b(iPad|iPhone|iPod)\b/.test(R)||R.match("Safari")&&!R.match("Chrome")))}return Ce}function ct(_){try{var R=C[_];return R.setItem("_mapbox_test_",1),R.removeItem("_mapbox_test_"),!0}catch(Z){return!1}}var Ue,bt,ht,Bt,mt=C.performance&&C.performance.now?C.performance.now.bind(C.performance):Date.now.bind(Date),_n=C.requestAnimationFrame||C.mozRequestAnimationFrame||C.webkitRequestAnimationFrame||C.msRequestAnimationFrame,Bn=C.cancelAnimationFrame||C.mozCancelAnimationFrame||C.webkitCancelAnimationFrame||C.msCancelAnimationFrame,Er={now:mt,frame:function(_){var R=_n(_);return{cancel:function(){return Bn(R)}}},getImageData:function(_,R){R===void 0&&(R=0);var Z=C.document.createElement("canvas"),ue=Z.getContext("2d");if(!ue)throw new Error("failed to create canvas 2d context");return Z.width=_.width,Z.height=_.height,ue.drawImage(_,0,0,_.width,_.height),ue.getImageData(-R,-R,_.width+2*R,_.height+2*R)},resolveURL:function(_){return Ue||(Ue=C.document.createElement("a")),Ue.href=_,Ue.href},hardwareConcurrency:C.navigator&&C.navigator.hardwareConcurrency||4,get devicePixelRatio(){return C.devicePixelRatio},get prefersReducedMotion(){return!!C.matchMedia&&(bt==null&&(bt=C.matchMedia("(prefers-reduced-motion: reduce)")),bt.matches)}},Yr={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},oi={supported:!1,testSupport:function(_){!to&&Bt&&(yo?vr(_):ht=_)}},to=!1,yo=!1;function vr(_){var R=_.createTexture();_.bindTexture(_.TEXTURE_2D,R);try{if(_.texImage2D(_.TEXTURE_2D,0,_.RGBA,_.RGBA,_.UNSIGNED_BYTE,Bt),_.isContextLost())return;oi.supported=!0}catch(Z){}_.deleteTexture(R),to=!0}C.document&&((Bt=C.document.createElement("img")).onload=function(){ht&&vr(ht),ht=null,yo=!0},Bt.onerror=function(){to=!0,ht=null},Bt.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var Po="01",ss=function(_,R){this._transformRequestFn=_,this._customAccessToken=R,this._createSkuToken()};function ve(_){return _.indexOf("mapbox:")===0}ss.prototype._createSkuToken=function(){var _=function(){for(var R="",Z=0;Z<10;Z++)R+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",Po,R].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=_.token,this._skuTokenExpiresAt=_.tokenExpiresAt},ss.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},ss.prototype.transformRequest=function(_,R){return this._transformRequestFn&&this._transformRequestFn(_,R)||{url:_}},ss.prototype.normalizeStyleURL=function(_,R){if(!ve(_))return _;var Z=wi(_);return Z.path="/styles/v1"+Z.path,this._makeAPIURL(Z,this._customAccessToken||R)},ss.prototype.normalizeGlyphsURL=function(_,R){if(!ve(_))return _;var Z=wi(_);return Z.path="/fonts/v1"+Z.path,this._makeAPIURL(Z,this._customAccessToken||R)},ss.prototype.normalizeSourceURL=function(_,R){if(!ve(_))return _;var Z=wi(_);return Z.path="/v4/"+Z.authority+".json",Z.params.push("secure"),this._makeAPIURL(Z,this._customAccessToken||R)},ss.prototype.normalizeSpriteURL=function(_,R,Z,ue){var Pe=wi(_);return ve(_)?(Pe.path="/styles/v1"+Pe.path+"/sprite"+R+Z,this._makeAPIURL(Pe,this._customAccessToken||ue)):(Pe.path+=""+R+Z,io(Pe))},ss.prototype.normalizeTileURL=function(_,R){if(this._isSkuTokenExpired()&&this._createSkuToken(),_&&!ve(_))return _;var Z=wi(_);Z.path=Z.path.replace(/(\.(png|jpg)\d*)(?=$)/,(Er.devicePixelRatio>=2||R===512?"@2x":"")+(oi.supported?".webp":"$1")),Z.path=Z.path.replace(/^.+\/v4\//,"/"),Z.path="/v4"+Z.path;var ue=this._customAccessToken||function(Pe){for(var Qe=0,wt=Pe;Qe=0&&_.params.splice(Pe,1)}if(ue.path!=="/"&&(_.path=""+ue.path+_.path),!Yr.REQUIRE_ACCESS_TOKEN)return io(_);if(!(R=R||Yr.ACCESS_TOKEN))throw new Error("An API access token is required to use Mapbox GL. "+Z);if(R[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+Z);return _.params=_.params.filter(function(Qe){return Qe.indexOf("access_token")===-1}),_.params.push("access_token="+R),io(_)};var _o=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function ci(_){return _o.test(_)}var Bi=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function wi(_){var R=_.match(Bi);if(!R)throw new Error("Unable to parse URL object");return{protocol:R[1],authority:R[2],path:R[3]||"/",params:R[4]?R[4].split("&"):[]}}function io(_){var R=_.params.length?"?"+_.params.join("&"):"";return _.protocol+"://"+_.authority+_.path+R}function ln(_){if(!_)return null;var R=_.split(".");if(!R||R.length!==3)return null;try{return JSON.parse(decodeURIComponent(C.atob(R[1]).split("").map(function(Z){return"%"+("00"+Z.charCodeAt(0).toString(16)).slice(-2)}).join("")))}catch(Z){return null}}var Ve=function(_){this.type=_,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};Ve.prototype.getStorageKey=function(_){var R,Z=ln(Yr.ACCESS_TOKEN);return R=Z&&Z.u?C.btoa(encodeURIComponent(Z.u).replace(/%([0-9A-F]{2})/g,function(ue,Pe){return String.fromCharCode(+("0x"+Pe))})):Yr.ACCESS_TOKEN||"",_?"mapbox.eventData."+_+":"+R:"mapbox.eventData:"+R},Ve.prototype.fetchEventData=function(){var _=ct("localStorage"),R=this.getStorageKey(),Z=this.getStorageKey("uuid");if(_)try{var ue=C.localStorage.getItem(R);ue&&(this.eventData=JSON.parse(ue));var Pe=C.localStorage.getItem(Z);Pe&&(this.anonId=Pe)}catch(Qe){xe("Unable to read from LocalStorage")}},Ve.prototype.saveEventData=function(){var _=ct("localStorage"),R=this.getStorageKey(),Z=this.getStorageKey("uuid");if(_)try{C.localStorage.setItem(Z,this.anonId),Object.keys(this.eventData).length>=1&&C.localStorage.setItem(R,JSON.stringify(this.eventData))}catch(ue){xe("Unable to write to LocalStorage")}},Ve.prototype.processRequests=function(_){},Ve.prototype.postEvent=function(_,R,Z,ue){var Pe=this;if(Yr.EVENTS_URL){var Qe=wi(Yr.EVENTS_URL);Qe.params.push("access_token="+(ue||Yr.ACCESS_TOKEN||""));var wt={event:this.type,created:new Date(_).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:"1.13.3",skuId:Po,userId:this.anonId},Wt=R?J(wt,R):wt,Rn={url:io(Qe),headers:{"Content-Type":"text/plain"},body:JSON.stringify([Wt])};this.pendingRequest=na(Rn,function(ur){Pe.pendingRequest=null,Z(ur),Pe.saveEventData(),Pe.processRequests(ue)})}},Ve.prototype.queueRequest=function(_,R){this.queue.push(_),this.processRequests(R)};var _t,Ct,jt=function(_){function R(){_.call(this,"map.load"),this.success={},this.skuToken=""}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype.postMapLoadEvent=function(Z,ue,Pe,Qe){this.skuToken=Pe;var wt=!(!Qe&&!Yr.ACCESS_TOKEN),Wt=Array.isArray(Z)&&Z.some(function(Rn){return ve(Rn)||ci(Rn)});Yr.EVENTS_URL&&wt&&Wt&&this.queueRequest({id:ue,timestamp:Date.now()},Qe)},R.prototype.processRequests=function(Z){var ue=this;if(!this.pendingRequest&&this.queue.length!==0){var Pe=this.queue.shift(),Qe=Pe.id,wt=Pe.timestamp;Qe&&this.success[Qe]||(this.anonId||this.fetchEventData(),fe(this.anonId)||(this.anonId=he()),this.postEvent(wt,{skuToken:this.skuToken},function(Wt){Wt||Qe&&(ue.success[Qe]=!0)},Z))}},R}(Ve),on=new(function(_){function R(Z){_.call(this,"appUserTurnstile"),this._customAccessToken=Z}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype.postTurnstileEvent=function(Z,ue){Yr.EVENTS_URL&&Yr.ACCESS_TOKEN&&Array.isArray(Z)&&Z.some(function(Pe){return ve(Pe)||ci(Pe)})&&this.queueRequest(Date.now(),ue)},R.prototype.processRequests=function(Z){var ue=this;if(!this.pendingRequest&&this.queue.length!==0){this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();var Pe=ln(Yr.ACCESS_TOKEN),Qe=Pe?Pe.u:Yr.ACCESS_TOKEN,wt=Qe!==this.eventData.tokenU;fe(this.anonId)||(this.anonId=he(),wt=!0);var Wt=this.queue.shift();if(this.eventData.lastSuccess){var Rn=new Date(this.eventData.lastSuccess),ur=new Date(Wt),zr=(Wt-this.eventData.lastSuccess)/864e5;wt=wt||zr>=1||zr<-1||Rn.getDate()!==ur.getDate()}else wt=!0;if(!wt)return this.processRequests();this.postEvent(Wt,{"enabled.telemetry":!1},function(hi){hi||(ue.eventData.lastSuccess=Wt,ue.eventData.tokenU=Qe)},Z)}},R}(Ve)),Ot=on.postTurnstileEvent.bind(on),Tt=new jt,xt=Tt.postMapLoadEvent.bind(Tt),Ht=500,Zn=50;function tn(){C.caches&&!_t&&(_t=C.caches.open("mapbox-tiles"))}function hr(_){var R=_.indexOf("?");return R<0?_:_.slice(0,R)}var Zi,Ri=1/0;function Pi(){return Zi==null&&(Zi=C.OffscreenCanvas&&new C.OffscreenCanvas(1,1).getContext("2d")&&typeof C.createImageBitmap=="function"),Zi}var $o={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};typeof Object.freeze=="function"&&Object.freeze($o);var ys=function(_){function R(Z,ue,Pe){ue===401&&ci(Pe)&&(Z+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),_.call(this,Z),this.status=ue,this.url=Pe,this.name=this.constructor.name,this.message=Z}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype.toString=function(){return this.name+": "+this.message+" ("+this.status+"): "+this.url},R}(Error),xn=me()?function(){return self.worker&&self.worker.referrer}:function(){return(C.location.protocol==="blob:"?C.parent:C).location.href},Hr,Jr,Yi=function(_,R){if(!(/^file:/.test(Z=_.url)||/^file:/.test(xn())&&!/^\w+:/.test(Z))){if(C.fetch&&C.Request&&C.AbortController&&C.Request.prototype.hasOwnProperty("signal"))return function(ue,Pe){var Qe,wt=new C.AbortController,Wt=new C.Request(ue.url,{method:ue.method||"GET",body:ue.body,credentials:ue.credentials,headers:ue.headers,referrer:xn(),signal:wt.signal}),Rn=!1,ur=!1,zr=(Qe=Wt.url).indexOf("sku=")>0&&ci(Qe);ue.type==="json"&&Wt.headers.set("Accept","application/json");var hi=function(ko,Zs,Js){if(!ur){if(ko&&ko.message!=="SecurityError"&&xe(ko),Zs&&Js)return po(Zs);var sl=Date.now();C.fetch(Wt).then(function(Da){if(Da.ok){var Ol=zr?Da.clone():null;return po(Da,Ol,sl)}return Pe(new ys(Da.statusText,Da.status,ue.url))}).catch(function(Da){Da.code!==20&&Pe(new Error(Da.message))})}},po=function(ko,Zs,Js){(ue.type==="arrayBuffer"?ko.arrayBuffer():ue.type==="json"?ko.json():ko.text()).then(function(sl){ur||(Zs&&Js&&function(Da,Ol,Vl){if(tn(),_t){var cu={status:Ol.status,statusText:Ol.statusText,headers:new C.Headers};Ol.headers.forEach(function(Hu,kc){return cu.headers.set(kc,Hu)});var lu=We(Ol.headers.get("Cache-Control")||"");lu["no-store"]||(lu["max-age"]&&cu.headers.set("Expires",new Date(Vl+1e3*lu["max-age"]).toUTCString()),new Date(cu.headers.get("Expires")).getTime()-Vl<42e4||function(Hu,kc){if(Ct===void 0)try{new Response(new ReadableStream),Ct=!0}catch(ac){Ct=!1}Ct?kc(Hu.body):Hu.blob().then(kc)}(Ol,function(Hu){var kc=new C.Response(Hu,cu);tn(),_t&&_t.then(function(ac){return ac.put(hr(Da.url),kc)}).catch(function(ac){return xe(ac.message)})}))}}(Wt,Zs,Js),Rn=!0,Pe(null,sl,ko.headers.get("Cache-Control"),ko.headers.get("Expires")))}).catch(function(sl){ur||Pe(new Error(sl.message))})};return zr?function(ko,Zs){if(tn(),!_t)return Zs(null);var Js=hr(ko.url);_t.then(function(sl){sl.match(Js).then(function(Da){var Ol=function(Vl){if(!Vl)return!1;var cu=new Date(Vl.headers.get("Expires")||0),lu=We(Vl.headers.get("Cache-Control")||"");return cu>Date.now()&&!lu["no-cache"]}(Da);sl.delete(Js),Ol&&sl.put(Js,Da.clone()),Zs(null,Da,Ol)}).catch(Zs)}).catch(Zs)}(Wt,hi):hi(null,null),{cancel:function(){ur=!0,Rn||wt.abort()}}}(_,R);if(me()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",_,R,void 0,!0)}var Z;return function(ue,Pe){var Qe=new C.XMLHttpRequest;for(var wt in Qe.open(ue.method||"GET",ue.url,!0),ue.type==="arrayBuffer"&&(Qe.responseType="arraybuffer"),ue.headers)Qe.setRequestHeader(wt,ue.headers[wt]);return ue.type==="json"&&(Qe.responseType="text",Qe.setRequestHeader("Accept","application/json")),Qe.withCredentials=ue.credentials==="include",Qe.onerror=function(){Pe(new Error(Qe.statusText))},Qe.onload=function(){if((Qe.status>=200&&Qe.status<300||Qe.status===0)&&Qe.response!==null){var Wt=Qe.response;if(ue.type==="json")try{Wt=JSON.parse(Qe.response)}catch(Rn){return Pe(Rn)}Pe(null,Wt,Qe.getResponseHeader("Cache-Control"),Qe.getResponseHeader("Expires"))}else Pe(new ys(Qe.statusText,Qe.status,ue.url))},Qe.send(ue.body),{cancel:function(){return Qe.abort()}}}(_,R)},xo=function(_,R){return Yi(J(_,{type:"arrayBuffer"}),R)},na=function(_,R){return Yi(J(_,{method:"POST"}),R)},Vn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";Hr=[],Jr=0;var Xn=function(_,R){if(oi.supported&&(_.headers||(_.headers={}),_.headers.accept="image/webp,*/*"),Jr>=Yr.MAX_PARALLEL_IMAGE_REQUESTS){var Z={requestParameters:_,callback:R,cancelled:!1,cancel:function(){this.cancelled=!0}};return Hr.push(Z),Z}Jr++;var ue=!1,Pe=function(){if(!ue)for(ue=!0,Jr--;Hr.length&&Jr0||this._oneTimeListeners&&this._oneTimeListeners[_]&&this._oneTimeListeners[_].length>0||this._eventedParent&&this._eventedParent.listens(_)},ii.prototype.setEventedParent=function(_,R){return this._eventedParent=_,this._eventedParentData=R,this};var rn={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}},Jn=function(_,R,Z,ue){this.message=(_?_+": ":"")+Z,ue&&(this.identifier=ue),R!=null&&R.__line__&&(this.line=R.__line__)};function Vr(_){var R=_.value;return R?[new Jn(_.key,R,"constants have been deprecated as of v8")]:[]}function so(_){for(var R=[],Z=arguments.length-1;Z-- >0;)R[Z]=arguments[Z+1];for(var ue=0,Pe=R;ue":_.itemType.kind==="value"?"array":"array<"+R+">"}return _.kind}var Si=[Gr,ui,Ci,lo,Kr,Qt,ti,yi(Wi),Gn];function tr(_,R){if(R.kind==="error")return null;if(_.kind==="array"){if(R.kind==="array"&&(R.N===0&&R.itemType.kind==="value"||!tr(_.itemType,R.itemType))&&(typeof _.N!="number"||_.N===R.N))return null}else{if(_.kind===R.kind)return null;if(_.kind==="value"){for(var Z=0,ue=Si;Z255?255:Wt}function Pe(Wt){return ue(Wt[Wt.length-1]==="%"?parseFloat(Wt)/100*255:parseInt(Wt))}function Qe(Wt){return(Rn=Wt[Wt.length-1]==="%"?parseFloat(Wt)/100:parseFloat(Wt))<0?0:Rn>1?1:Rn;var Rn}function wt(Wt,Rn,ur){return ur<0?ur+=1:ur>1&&(ur-=1),6*ur<1?Wt+(Rn-Wt)*ur*6:2*ur<1?Rn:3*ur<2?Wt+(Rn-Wt)*(2/3-ur)*6:Wt}try{R.parseCSSColor=function(Wt){var Rn,ur=Wt.replace(/ /g,"").toLowerCase();if(ur in Z)return Z[ur].slice();if(ur[0]==="#")return ur.length===4?(Rn=parseInt(ur.substr(1),16))>=0&&Rn<=4095?[(3840&Rn)>>4|(3840&Rn)>>8,240&Rn|(240&Rn)>>4,15&Rn|(15&Rn)<<4,1]:null:ur.length===7&&(Rn=parseInt(ur.substr(1),16))>=0&&Rn<=16777215?[(16711680&Rn)>>16,(65280&Rn)>>8,255&Rn,1]:null;var zr=ur.indexOf("("),hi=ur.indexOf(")");if(zr!==-1&&hi+1===ur.length){var po=ur.substr(0,zr),ko=ur.substr(zr+1,hi-(zr+1)).split(","),Zs=1;switch(po){case"rgba":if(ko.length!==4)return null;Zs=Qe(ko.pop());case"rgb":return ko.length!==3?null:[Pe(ko[0]),Pe(ko[1]),Pe(ko[2]),Zs];case"hsla":if(ko.length!==4)return null;Zs=Qe(ko.pop());case"hsl":if(ko.length!==3)return null;var Js=(parseFloat(ko[0])%360+360)%360/360,sl=Qe(ko[1]),Da=Qe(ko[2]),Ol=Da<=.5?Da*(sl+1):Da+sl-Da*sl,Vl=2*Da-Ol;return[ue(255*wt(Vl,Ol,Js+1/3)),ue(255*wt(Vl,Ol,Js)),ue(255*wt(Vl,Ol,Js-1/3)),Zs];default:return null}}return null}}catch(Wt){}}).parseCSSColor,Qn=function(_,R,Z,ue){ue===void 0&&(ue=1),this.r=_,this.g=R,this.b=Z,this.a=ue};Qn.parse=function(_){if(_){if(_ instanceof Qn)return _;if(typeof _=="string"){var R=kr(_);if(R)return new Qn(R[0]/255*R[3],R[1]/255*R[3],R[2]/255*R[3],R[3])}}},Qn.prototype.toString=function(){var _=this.toArray(),R=_[1],Z=_[2],ue=_[3];return"rgba("+Math.round(_[0])+","+Math.round(R)+","+Math.round(Z)+","+ue+")"},Qn.prototype.toArray=function(){var _=this.a;return _===0?[0,0,0,0]:[255*this.r/_,255*this.g/_,255*this.b/_,_]},Qn.black=new Qn(0,0,0,1),Qn.white=new Qn(1,1,1,1),Qn.transparent=new Qn(0,0,0,0),Qn.red=new Qn(1,0,0,1);var ds=function(_,R,Z){this.sensitivity=_?R?"variant":"case":R?"accent":"base",this.locale=Z,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};ds.prototype.compare=function(_,R){return this.collator.compare(_,R)},ds.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var _a=function(_,R,Z,ue,Pe){this.text=_,this.image=R,this.scale=Z,this.fontStack=ue,this.textColor=Pe},da=function(_){this.sections=_};da.fromString=function(_){return new da([new _a(_,null,null,null,null)])},da.prototype.isEmpty=function(){return this.sections.length===0||!this.sections.some(function(_){return _.text.length!==0||_.image&&_.image.name.length!==0})},da.factory=function(_){return _ instanceof da?_:da.fromString(_)},da.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(_){return _.text}).join("")},da.prototype.serialize=function(){for(var _=["format"],R=0,Z=this.sections;R=0&&_<=255&&typeof R=="number"&&R>=0&&R<=255&&typeof Z=="number"&&Z>=0&&Z<=255?ue===void 0||typeof ue=="number"&&ue>=0&&ue<=1?null:"Invalid rgba value ["+[_,R,Z,ue].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+(typeof ue=="number"?[_,R,Z,ue]:[_,R,Z]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function Co(_){if(_===null||typeof _=="string"||typeof _=="boolean"||typeof _=="number"||_ instanceof Qn||_ instanceof ds||_ instanceof da||_ instanceof zs)return!0;if(Array.isArray(_)){for(var R=0,Z=_;R2){var Wt=_[1];if(typeof Wt!="string"||!(Wt in Es)||Wt==="object")return R.error('The item type argument of "array" must be one of string, number, boolean',1);Qe=Es[Wt],ue++}else Qe=Wi;if(_.length>3){if(_[2]!==null&&(typeof _[2]!="number"||_[2]<0||_[2]!==Math.floor(_[2])))return R.error('The length argument to "array" must be a positive integer literal',2);wt=_[2],ue++}Z=yi(Qe,wt)}else Z=Es[Pe];for(var Rn=[];ue<_.length;ue++){var ur=R.parse(_[ue],ue,Wi);if(!ur)return null;Rn.push(ur)}return new xs(Z,Rn)},xs.prototype.evaluate=function(_){for(var R=0;R1)&&R.push(ue)}}return R.concat(this.args.map(function(Pe){return Pe.serialize()}))};var Za=function(_){this.type=Qt,this.sections=_};Za.parse=function(_,R){if(_.length<2)return R.error("Expected at least one argument.");var Z=_[1];if(!Array.isArray(Z)&&typeof Z=="object")return R.error("First argument must be an image or text section.");for(var ue=[],Pe=!1,Qe=1;Qe<=_.length-1;++Qe){var wt=_[Qe];if(Pe&&typeof wt=="object"&&!Array.isArray(wt)){Pe=!1;var Wt=null;if(wt["font-scale"]&&!(Wt=R.parse(wt["font-scale"],1,ui)))return null;var Rn=null;if(wt["text-font"]&&!(Rn=R.parse(wt["text-font"],1,yi(Ci))))return null;var ur=null;if(wt["text-color"]&&!(ur=R.parse(wt["text-color"],1,Kr)))return null;var zr=ue[ue.length-1];zr.scale=Wt,zr.font=Rn,zr.textColor=ur}else{var hi=R.parse(_[Qe],1,Wi);if(!hi)return null;var po=hi.type.kind;if(po!=="string"&&po!=="value"&&po!=="null"&&po!=="resolvedImage")return R.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");Pe=!0,ue.push({content:hi,scale:null,font:null,textColor:null})}}return new Za(ue)},Za.prototype.evaluate=function(_){return new da(this.sections.map(function(R){var Z=R.content.evaluate(_);return dl(Z)===Gn?new _a("",Z,null,null,null):new _a(Fr(Z),null,R.scale?R.scale.evaluate(_):null,R.font?R.font.evaluate(_).join(","):null,R.textColor?R.textColor.evaluate(_):null)}))},Za.prototype.eachChild=function(_){for(var R=0,Z=this.sections;R-1),Z},tl.prototype.eachChild=function(_){_(this.input)},tl.prototype.outputDefined=function(){return!1},tl.prototype.serialize=function(){return["image",this.input.serialize()]};var xl={"to-boolean":lo,"to-color":Kr,"to-number":ui,"to-string":Ci},Qa=function(_,R){this.type=_,this.args=R};Qa.parse=function(_,R){if(_.length<2)return R.error("Expected at least one argument.");var Z=_[0];if((Z==="to-boolean"||Z==="to-string")&&_.length!==2)return R.error("Expected one argument.");for(var ue=xl[Z],Pe=[],Qe=1;Qe<_.length;Qe++){var wt=R.parse(_[Qe],Qe,Wi);if(!wt)return null;Pe.push(wt)}return new Qa(ue,Pe)},Qa.prototype.evaluate=function(_){if(this.type.kind==="boolean")return!!this.args[0].evaluate(_);if(this.type.kind==="color"){for(var R,Z,ue=0,Pe=this.args;ue4?"Invalid rbga value "+JSON.stringify(R)+": expected an array containing either three or four numeric values.":ja(R[0],R[1],R[2],R[3])))return new Qn(R[0]/255,R[1]/255,R[2]/255,R[3])}throw new jo(Z||"Could not parse color from value '"+(typeof R=="string"?R:String(JSON.stringify(R)))+"'")}if(this.type.kind==="number"){for(var wt=null,Wt=0,Rn=this.args;Wt=R[2]||_[1]<=R[1]||_[3]>=R[3])}function dt(_,R){var Z=(180+_[0])/360,ue=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+_[1]*Math.PI/360)))/360,Pe=Math.pow(2,R.z);return[Math.round(Z*Pe*8192),Math.round(ue*Pe*8192)]}function vt(_,R,Z){return R[1]>_[1]!=Z[1]>_[1]&&_[0]<(Z[0]-R[0])*(_[1]-R[1])/(Z[1]-R[1])+R[0]}function ze(_,R){for(var Z,ue,Pe,Qe,wt,Wt,Rn,ur=!1,zr=0,hi=R.length;zr0&&Wt<0||wt<0&&Wt>0}function an(_,R,Z){for(var ue=0,Pe=Z;ueZ[2]){var Pe=.5*ue,Qe=_[0]-Z[0]>Pe?-ue:Z[0]-_[0]>Pe?ue:0;Qe===0&&(Qe=_[0]-Z[2]>Pe?-ue:Z[2]-_[0]>Pe?ue:0),_[0]+=Qe}Nn(R,_)}function us(_,R,Z,ue){for(var Pe=8192*Math.pow(2,ue.z),Qe=[8192*ue.x,8192*ue.y],wt=[],Wt=0,Rn=_;Wt=0)return!1;var Z=!0;return _.eachChild(function(ue){Z&&!Cs(ue,R)&&(Z=!1)}),Z}Os.parse=function(_,R){if(_.length!==2)return R.error("'within' expression requires exactly one argument, but found "+(_.length-1)+" instead.");if(Co(_[1])){var Z=_[1];if(Z.type==="FeatureCollection")for(var ue=0;ueR))throw new jo("Input is not a number.");Qe=wt-1}return 0}fa.prototype.parse=function(_,R,Z,ue,Pe){return Pe===void 0&&(Pe={}),R?this.concat(R,Z,ue)._parse(_,Pe):this._parse(_,Pe)},fa.prototype._parse=function(_,R){function Z(ur,zr,hi){return hi==="assert"?new xs(zr,[ur]):hi==="coerce"?new Qa(zr,[ur]):ur}if(_!==null&&typeof _!="string"&&typeof _!="boolean"&&typeof _!="number"||(_=["literal",_]),Array.isArray(_)){if(_.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var ue=_[0];if(typeof ue!="string")return this.error("Expression name must be a string, but found "+typeof ue+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var Pe=this.registry[ue];if(Pe){var Qe=Pe.parse(_,this);if(!Qe)return null;if(this.expectedType){var wt=this.expectedType,Wt=Qe.type;if(wt.kind!=="string"&&wt.kind!=="number"&&wt.kind!=="boolean"&&wt.kind!=="object"&&wt.kind!=="array"||Wt.kind!=="value")if(wt.kind!=="color"&&wt.kind!=="formatted"&&wt.kind!=="resolvedImage"||Wt.kind!=="value"&&Wt.kind!=="string"){if(this.checkSubtype(wt,Wt))return null}else Qe=Z(Qe,wt,R.typeAnnotation||"coerce");else Qe=Z(Qe,wt,R.typeAnnotation||"assert")}if(!(Qe instanceof fs)&&Qe.type.kind!=="resolvedImage"&&function ur(zr){if(zr instanceof ea)return ur(zr.boundExpression);if(zr instanceof dn&&zr.name==="error"||zr instanceof Dn||zr instanceof Os)return!1;var hi=zr instanceof Qa||zr instanceof xs,po=!0;return zr.eachChild(function(ko){po=hi?po&&ur(ko):po&&ko instanceof fs}),!!po&&pa(zr)&&Cs(zr,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}(Qe)){var Rn=new co;try{Qe=new fs(Qe.type,Qe.evaluate(Rn))}catch(ur){return this.error(ur.message),null}}return Qe}return this.error('Unknown expression "'+ue+'". If you wanted a literal array, use ["literal", [...]].',0)}return this.error(_===void 0?"'undefined' value invalid. Use null instead.":typeof _=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':"Expected an array, but found "+typeof _+" instead.")},fa.prototype.concat=function(_,R,Z){var ue=typeof _=="number"?this.path.concat(_):this.path,Pe=Z?this.scope.concat(Z):this.scope;return new fa(this.registry,ue,R||null,Pe,this.errors)},fa.prototype.error=function(_){for(var R=[],Z=arguments.length-1;Z-- >0;)R[Z]=arguments[Z+1];var ue=""+this.key+R.map(function(Pe){return"["+Pe+"]"}).join("");this.errors.push(new pn(ue,_))},fa.prototype.checkSubtype=function(_,R){var Z=tr(_,R);return Z&&this.error(Z),Z};var Ma=function(_,R,Z){this.type=_,this.input=R,this.labels=[],this.outputs=[];for(var ue=0,Pe=Z;ue=wt)return R.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',Rn);var zr=R.parse(Wt,ur,Pe);if(!zr)return null;Pe=Pe||zr.type,ue.push([wt,zr])}return new Ma(Pe,Z,ue)},Ma.prototype.evaluate=function(_){var R=this.labels,Z=this.outputs;if(R.length===1)return Z[0].evaluate(_);var ue=this.input.evaluate(_);if(ue<=R[0])return Z[0].evaluate(_);var Pe=R.length;return ue>=R[Pe-1]?Z[Pe-1].evaluate(_):Z[Bl(R,ue)].evaluate(_)},Ma.prototype.eachChild=function(_){_(this.input);for(var R=0,Z=this.outputs;R0&&_.push(this.labels[R]),_.push(this.outputs[R].serialize());return _};var ia=Object.freeze({__proto__:null,number:gl,color:function(_,R,Z){return new Qn(gl(_.r,R.r,Z),gl(_.g,R.g,Z),gl(_.b,R.b,Z),gl(_.a,R.a,Z))},array:function(_,R,Z){return _.map(function(ue,Pe){return gl(ue,R[Pe],Z)})}}),Nl=6/29*3*(6/29),cs=Math.PI/180,zi=180/Math.PI;function Ji(_){return _>.008856451679035631?Math.pow(_,1/3):_/Nl+4/29}function ta(_){return _>6/29?_*_*_:Nl*(_-4/29)}function ms(_){return 255*(_<=.0031308?12.92*_:1.055*Math.pow(_,1/2.4)-.055)}function Ua(_){return(_/=255)<=.04045?_/12.92:Math.pow((_+.055)/1.055,2.4)}function ju(_){var R=Ua(_.r),Z=Ua(_.g),ue=Ua(_.b),Pe=Ji((.4124564*R+.3575761*Z+.1804375*ue)/.95047),Qe=Ji((.2126729*R+.7151522*Z+.072175*ue)/1);return{l:116*Qe-16,a:500*(Pe-Qe),b:200*(Qe-Ji((.0193339*R+.119192*Z+.9503041*ue)/1.08883)),alpha:_.a}}function rc(_){var R=(_.l+16)/116,Z=isNaN(_.a)?R:R+_.a/500,ue=isNaN(_.b)?R:R-_.b/200;return R=1*ta(R),Z=.95047*ta(Z),ue=1.08883*ta(ue),new Qn(ms(3.2404542*Z-1.5371385*R-.4985314*ue),ms(-.969266*Z+1.8760108*R+.041556*ue),ms(.0556434*Z-.2040259*R+1.0572252*ue),_.alpha)}function Pc(_,R,Z){var ue=R-_;return _+Z*(ue>180||ue<-180?ue-360*Math.round(ue/360):ue)}var ho={forward:ju,reverse:rc,interpolate:function(_,R,Z){return{l:gl(_.l,R.l,Z),a:gl(_.a,R.a,Z),b:gl(_.b,R.b,Z),alpha:gl(_.alpha,R.alpha,Z)}}},qi={forward:function(_){var R=ju(_),Z=R.l,ue=R.a,Pe=R.b,Qe=Math.atan2(Pe,ue)*zi;return{h:Qe<0?Qe+360:Qe,c:Math.sqrt(ue*ue+Pe*Pe),l:Z,alpha:_.a}},reverse:function(_){var R=_.h*cs,Z=_.c;return rc({l:_.l,a:Math.cos(R)*Z,b:Math.sin(R)*Z,alpha:_.alpha})},interpolate:function(_,R,Z){return{h:Pc(_.h,R.h,Z),c:gl(_.c,R.c,Z),l:gl(_.l,R.l,Z),alpha:gl(_.alpha,R.alpha,Z)}}},os=Object.freeze({__proto__:null,lab:ho,hcl:qi}),$n=function(_,R,Z,ue,Pe){this.type=_,this.operator=R,this.interpolation=Z,this.input=ue,this.labels=[],this.outputs=[];for(var Qe=0,wt=Pe;Qe1}))return R.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);ue={name:"cubic-bezier",controlPoints:Wt}}if(_.length-1<4)return R.error("Expected at least 4 arguments, but found only "+(_.length-1)+".");if((_.length-1)%2!=0)return R.error("Expected an even number of arguments.");if(!(Pe=R.parse(Pe,2,ui)))return null;var Rn=[],ur=null;Z==="interpolate-hcl"||Z==="interpolate-lab"?ur=Kr:R.expectedType&&R.expectedType.kind!=="value"&&(ur=R.expectedType);for(var zr=0;zr=hi)return R.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',ko);var Js=R.parse(po,Zs,ur);if(!Js)return null;ur=ur||Js.type,Rn.push([hi,Js])}return ur.kind==="number"||ur.kind==="color"||ur.kind==="array"&&ur.itemType.kind==="number"&&typeof ur.N=="number"?new $n(ur,Z,ue,Pe,Rn):R.error("Type "+Ln(ur)+" is not interpolatable.")},$n.prototype.evaluate=function(_){var R=this.labels,Z=this.outputs;if(R.length===1)return Z[0].evaluate(_);var ue=this.input.evaluate(_);if(ue<=R[0])return Z[0].evaluate(_);var Pe=R.length;if(ue>=R[Pe-1])return Z[Pe-1].evaluate(_);var Qe=Bl(R,ue),wt=$n.interpolationFactor(this.interpolation,ue,R[Qe],R[Qe+1]),Wt=Z[Qe].evaluate(_),Rn=Z[Qe+1].evaluate(_);return this.operator==="interpolate"?ia[this.type.kind.toLowerCase()](Wt,Rn,wt):this.operator==="interpolate-hcl"?qi.reverse(qi.interpolate(qi.forward(Wt),qi.forward(Rn),wt)):ho.reverse(ho.interpolate(ho.forward(Wt),ho.forward(Rn),wt))},$n.prototype.eachChild=function(_){_(this.input);for(var R=0,Z=this.outputs;R=Z.length)throw new jo("Array index out of bounds: "+R+" > "+(Z.length-1)+".");if(R!==Math.floor(R))throw new jo("Array index must be an integer, but found "+R+" instead.");return Z[R]},Ki.prototype.eachChild=function(_){_(this.index),_(this.input)},Ki.prototype.outputDefined=function(){return!1},Ki.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var ro=function(_,R){this.type=lo,this.needle=_,this.haystack=R};ro.parse=function(_,R){if(_.length!==3)return R.error("Expected 2 arguments, but found "+(_.length-1)+" instead.");var Z=R.parse(_[1],1,Wi),ue=R.parse(_[2],2,Wi);return Z&&ue?vi(Z.type,[lo,Ci,ui,Gr,Wi])?new ro(Z,ue):R.error("Expected first argument to be of type boolean, string, number or null, but found "+Ln(Z.type)+" instead"):null},ro.prototype.evaluate=function(_){var R=this.needle.evaluate(_),Z=this.haystack.evaluate(_);if(!Z)return!1;if(!Ni(R,["boolean","string","number","null"]))throw new jo("Expected first argument to be of type boolean, string, number or null, but found "+Ln(dl(R))+" instead.");if(!Ni(Z,["string","array"]))throw new jo("Expected second argument to be of type array or string, but found "+Ln(dl(Z))+" instead.");return Z.indexOf(R)>=0},ro.prototype.eachChild=function(_){_(this.needle),_(this.haystack)},ro.prototype.outputDefined=function(){return!0},ro.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var Ei=function(_,R,Z){this.type=ui,this.needle=_,this.haystack=R,this.fromIndex=Z};Ei.parse=function(_,R){if(_.length<=2||_.length>=5)return R.error("Expected 3 or 4 arguments, but found "+(_.length-1)+" instead.");var Z=R.parse(_[1],1,Wi),ue=R.parse(_[2],2,Wi);if(!Z||!ue)return null;if(!vi(Z.type,[lo,Ci,ui,Gr,Wi]))return R.error("Expected first argument to be of type boolean, string, number or null, but found "+Ln(Z.type)+" instead");if(_.length===4){var Pe=R.parse(_[3],3,ui);return Pe?new Ei(Z,ue,Pe):null}return new Ei(Z,ue)},Ei.prototype.evaluate=function(_){var R=this.needle.evaluate(_),Z=this.haystack.evaluate(_);if(!Ni(R,["boolean","string","number","null"]))throw new jo("Expected first argument to be of type boolean, string, number or null, but found "+Ln(dl(R))+" instead.");if(!Ni(Z,["string","array"]))throw new jo("Expected second argument to be of type array or string, but found "+Ln(dl(Z))+" instead.");if(this.fromIndex){var ue=this.fromIndex.evaluate(_);return Z.indexOf(R,ue)}return Z.indexOf(R)},Ei.prototype.eachChild=function(_){_(this.needle),_(this.haystack),this.fromIndex&&_(this.fromIndex)},Ei.prototype.outputDefined=function(){return!1},Ei.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var _=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),_]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var ns=function(_,R,Z,ue,Pe,Qe){this.inputType=_,this.type=R,this.input=Z,this.cases=ue,this.outputs=Pe,this.otherwise=Qe};ns.parse=function(_,R){if(_.length<5)return R.error("Expected at least 4 arguments, but found only "+(_.length-1)+".");if(_.length%2!=1)return R.error("Expected an even number of arguments.");var Z,ue;R.expectedType&&R.expectedType.kind!=="value"&&(ue=R.expectedType);for(var Pe={},Qe=[],wt=2;wt<_.length-1;wt+=2){var Wt=_[wt],Rn=_[wt+1];Array.isArray(Wt)||(Wt=[Wt]);var ur=R.concat(wt);if(Wt.length===0)return ur.error("Expected at least one branch label.");for(var zr=0,hi=Wt;zrNumber.MAX_SAFE_INTEGER)return ur.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof po=="number"&&Math.floor(po)!==po)return ur.error("Numeric branch labels must be integer values.");if(Z){if(ur.checkSubtype(Z,dl(po)))return null}else Z=dl(po);if(Pe[String(po)]!==void 0)return ur.error("Branch labels must be unique.");Pe[String(po)]=Qe.length}var ko=R.parse(Rn,wt,ue);if(!ko)return null;ue=ue||ko.type,Qe.push(ko)}var Zs=R.parse(_[1],1,Wi);if(!Zs)return null;var Js=R.parse(_[_.length-1],_.length-1,ue);return Js?Zs.type.kind!=="value"&&R.concat(1).checkSubtype(Z,Zs.type)?null:new ns(Z,ue,Zs,Pe,Qe,Js):null},ns.prototype.evaluate=function(_){var R=this.input.evaluate(_);return(dl(R)===this.inputType&&this.outputs[this.cases[R]]||this.otherwise).evaluate(_)},ns.prototype.eachChild=function(_){_(this.input),this.outputs.forEach(_),_(this.otherwise)},ns.prototype.outputDefined=function(){return this.outputs.every(function(_){return _.outputDefined()})&&this.otherwise.outputDefined()},ns.prototype.serialize=function(){for(var _=this,R=["match",this.input.serialize()],Z=[],ue={},Pe=0,Qe=Object.keys(this.cases).sort();Pe=5)return R.error("Expected 3 or 4 arguments, but found "+(_.length-1)+" instead.");var Z=R.parse(_[1],1,Wi),ue=R.parse(_[2],2,ui);if(!Z||!ue)return null;if(!vi(Z.type,[yi(Wi),Ci,Wi]))return R.error("Expected first argument to be of type array or string, but found "+Ln(Z.type)+" instead");if(_.length===4){var Pe=R.parse(_[3],3,ui);return Pe?new Na(Z.type,Z,ue,Pe):null}return new Na(Z.type,Z,ue)},Na.prototype.evaluate=function(_){var R=this.input.evaluate(_),Z=this.beginIndex.evaluate(_);if(!Ni(R,["string","array"]))throw new jo("Expected first argument to be of type array or string, but found "+Ln(dl(R))+" instead.");if(this.endIndex){var ue=this.endIndex.evaluate(_);return R.slice(Z,ue)}return R.slice(Z)},Na.prototype.eachChild=function(_){_(this.input),_(this.beginIndex),this.endIndex&&_(this.endIndex)},Na.prototype.outputDefined=function(){return!1},Na.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var _=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),_]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};var Wa=Ml("==",function(_,R,Z){return R===Z},Zl),ku=Ml("!=",function(_,R,Z){return R!==Z},function(_,R,Z,ue){return!Zl(0,R,Z,ue)}),Xs=Ml("<",function(_,R,Z){return R",function(_,R,Z){return R>Z},function(_,R,Z,ue){return ue.compare(R,Z)>0}),qa=Ml("<=",function(_,R,Z){return R<=Z},function(_,R,Z,ue){return ue.compare(R,Z)<=0}),Hl=Ml(">=",function(_,R,Z){return R>=Z},function(_,R,Z,ue){return ue.compare(R,Z)>=0}),Jl=function(_,R,Z,ue,Pe){this.type=Ci,this.number=_,this.locale=R,this.currency=Z,this.minFractionDigits=ue,this.maxFractionDigits=Pe};Jl.parse=function(_,R){if(_.length!==3)return R.error("Expected two arguments.");var Z=R.parse(_[1],1,ui);if(!Z)return null;var ue=_[2];if(typeof ue!="object"||Array.isArray(ue))return R.error("NumberFormat options argument must be an object.");var Pe=null;if(ue.locale&&!(Pe=R.parse(ue.locale,1,Ci)))return null;var Qe=null;if(ue.currency&&!(Qe=R.parse(ue.currency,1,Ci)))return null;var wt=null;if(ue["min-fraction-digits"]&&!(wt=R.parse(ue["min-fraction-digits"],1,ui)))return null;var Wt=null;return ue["max-fraction-digits"]&&!(Wt=R.parse(ue["max-fraction-digits"],1,ui))?null:new Jl(Z,Pe,Qe,wt,Wt)},Jl.prototype.evaluate=function(_){return new Intl.NumberFormat(this.locale?this.locale.evaluate(_):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(_):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(_):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(_):void 0}).format(this.number.evaluate(_))},Jl.prototype.eachChild=function(_){_(this.number),this.locale&&_(this.locale),this.currency&&_(this.currency),this.minFractionDigits&&_(this.minFractionDigits),this.maxFractionDigits&&_(this.maxFractionDigits)},Jl.prototype.outputDefined=function(){return!1},Jl.prototype.serialize=function(){var _={};return this.locale&&(_.locale=this.locale.serialize()),this.currency&&(_.currency=this.currency.serialize()),this.minFractionDigits&&(_["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(_["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),_]};var vu=function(_){this.type=ui,this.input=_};vu.parse=function(_,R){if(_.length!==2)return R.error("Expected 1 argument, but found "+(_.length-1)+" instead.");var Z=R.parse(_[1],1);return Z?Z.type.kind!=="array"&&Z.type.kind!=="string"&&Z.type.kind!=="value"?R.error("Expected argument of type string or array, but found "+Ln(Z.type)+" instead."):new vu(Z):null},vu.prototype.evaluate=function(_){var R=this.input.evaluate(_);if(typeof R=="string"||Array.isArray(R))return R.length;throw new jo("Expected value to be of type string or array, but found "+Ln(dl(R))+" instead.")},vu.prototype.eachChild=function(_){_(this.input)},vu.prototype.outputDefined=function(){return!1},vu.prototype.serialize=function(){var _=["length"];return this.eachChild(function(R){_.push(R.serialize())}),_};var au={"==":Wa,"!=":ku,">":Ya,"<":Xs,">=":Hl,"<=":qa,array:xs,at:Ki,boolean:xs,case:ua,coalesce:Qr,collator:Dn,format:Za,image:tl,in:ro,"index-of":Ei,interpolate:$n,"interpolate-hcl":$n,"interpolate-lab":$n,length:vu,let:ni,literal:fs,match:ns,number:xs,"number-format":Jl,object:xs,slice:Na,step:Ma,string:xs,"to-boolean":Qa,"to-color":Qa,"to-number":Qa,"to-string":Qa,var:ea,within:Os};function bn(_,R){var Z=R[0],ue=R[1],Pe=R[2],Qe=R[3];Z=Z.evaluate(_),ue=ue.evaluate(_),Pe=Pe.evaluate(_);var wt=Qe?Qe.evaluate(_):1,Wt=ja(Z,ue,Pe,wt);if(Wt)throw new jo(Wt);return new Qn(Z/255*wt,ue/255*wt,Pe/255*wt,wt)}function Eu(_,R){return _ in R}function ts(_,R){var Z=R[_];return Z===void 0?null:Z}function Vs(_){return{type:_}}function ma(_){return{result:"success",value:_}}function Il(_){return{result:"error",value:_}}function El(_){return _["property-type"]==="data-driven"||_["property-type"]==="cross-faded-data-driven"}function ml(_){return!!_.expression&&_.expression.parameters.indexOf("zoom")>-1}function fu(_){return!!_.expression&&_.expression.interpolated}function Fu(_){return _ instanceof Number?"number":_ instanceof String?"string":_ instanceof Boolean?"boolean":Array.isArray(_)?"array":_===null?"null":typeof _}function lc(_){return typeof _=="object"&&_!==null&&!Array.isArray(_)}function Ic(_){return _}function Uc(_,R,Z){return _!==void 0?_:R!==void 0?R:Z!==void 0?Z:void 0}function zd(_,R,Z,ue,Pe){return Uc(typeof Z===Pe?ue[Z]:void 0,_.default,R.default)}function th(_,R,Z){if(Fu(Z)!=="number")return Uc(_.default,R.default);var ue=_.stops.length;if(ue===1||Z<=_.stops[0][0])return _.stops[0][1];if(Z>=_.stops[ue-1][0])return _.stops[ue-1][1];var Pe=Bl(_.stops.map(function(Qe){return Qe[0]}),Z);return _.stops[Pe][1]}function Xd(_,R,Z){var ue=_.base!==void 0?_.base:1;if(Fu(Z)!=="number")return Uc(_.default,R.default);var Pe=_.stops.length;if(Pe===1||Z<=_.stops[0][0])return _.stops[0][1];if(Z>=_.stops[Pe-1][0])return _.stops[Pe-1][1];var Qe=Bl(_.stops.map(function(hi){return hi[0]}),Z),wt=function(hi,po,ko,Zs){var Js=Zs-ko,sl=hi-ko;return Js===0?0:po===1?sl/Js:(Math.pow(po,sl)-1)/(Math.pow(po,Js)-1)}(Z,ue,_.stops[Qe][0],_.stops[Qe+1][0]),Wt=_.stops[Qe][1],Rn=_.stops[Qe+1][1],ur=ia[R.type]||Ic;if(_.colorSpace&&_.colorSpace!=="rgb"){var zr=os[_.colorSpace];ur=function(hi,po){return zr.reverse(zr.interpolate(zr.forward(hi),zr.forward(po),wt))}}return typeof Wt.evaluate=="function"?{evaluate:function(){for(var hi=[],po=arguments.length;po--;)hi[po]=arguments[po];var ko=Wt.evaluate.apply(void 0,hi),Zs=Rn.evaluate.apply(void 0,hi);if(ko!==void 0&&Zs!==void 0)return ur(ko,Zs,wt)}}:ur(Wt,Rn,wt)}function sd(_,R,Z){return R.type==="color"?Z=Qn.parse(Z):R.type==="formatted"?Z=da.fromString(Z.toString()):R.type==="resolvedImage"?Z=zs.fromString(Z.toString()):Fu(Z)===R.type||R.type==="enum"&&R.values[Z]||(Z=void 0),Uc(Z,_.default,R.default)}dn.register(au,{error:[{kind:"error"},[Ci],function(_,R){throw new jo(R[0].evaluate(_))}],typeof:[Ci,[Wi],function(_,R){return Ln(dl(R[0].evaluate(_)))}],"to-rgba":[yi(ui,4),[Kr],function(_,R){return R[0].evaluate(_).toArray()}],rgb:[Kr,[ui,ui,ui],bn],rgba:[Kr,[ui,ui,ui,ui],bn],has:{type:lo,overloads:[[[Ci],function(_,R){return Eu(R[0].evaluate(_),_.properties())}],[[Ci,ti],function(_,R){var Z=R[1];return Eu(R[0].evaluate(_),Z.evaluate(_))}]]},get:{type:Wi,overloads:[[[Ci],function(_,R){return ts(R[0].evaluate(_),_.properties())}],[[Ci,ti],function(_,R){var Z=R[1];return ts(R[0].evaluate(_),Z.evaluate(_))}]]},"feature-state":[Wi,[Ci],function(_,R){return ts(R[0].evaluate(_),_.featureState||{})}],properties:[ti,[],function(_){return _.properties()}],"geometry-type":[Ci,[],function(_){return _.geometryType()}],id:[Wi,[],function(_){return _.id()}],zoom:[ui,[],function(_){return _.globals.zoom}],"heatmap-density":[ui,[],function(_){return _.globals.heatmapDensity||0}],"line-progress":[ui,[],function(_){return _.globals.lineProgress||0}],accumulated:[Wi,[],function(_){return _.globals.accumulated===void 0?null:_.globals.accumulated}],"+":[ui,Vs(ui),function(_,R){for(var Z=0,ue=0,Pe=R;ue":[lo,[Ci,Wi],function(_,R){var Z=R[0],ue=R[1],Pe=_.properties()[Z.value],Qe=ue.value;return typeof Pe==typeof Qe&&Pe>Qe}],"filter-id->":[lo,[Wi],function(_,R){var Z=R[0],ue=_.id(),Pe=Z.value;return typeof ue==typeof Pe&&ue>Pe}],"filter-<=":[lo,[Ci,Wi],function(_,R){var Z=R[0],ue=R[1],Pe=_.properties()[Z.value],Qe=ue.value;return typeof Pe==typeof Qe&&Pe<=Qe}],"filter-id-<=":[lo,[Wi],function(_,R){var Z=R[0],ue=_.id(),Pe=Z.value;return typeof ue==typeof Pe&&ue<=Pe}],"filter->=":[lo,[Ci,Wi],function(_,R){var Z=R[0],ue=R[1],Pe=_.properties()[Z.value],Qe=ue.value;return typeof Pe==typeof Qe&&Pe>=Qe}],"filter-id->=":[lo,[Wi],function(_,R){var Z=R[0],ue=_.id(),Pe=Z.value;return typeof ue==typeof Pe&&ue>=Pe}],"filter-has":[lo,[Wi],function(_,R){return R[0].value in _.properties()}],"filter-has-id":[lo,[],function(_){return _.id()!==null&&_.id()!==void 0}],"filter-type-in":[lo,[yi(Ci)],function(_,R){return R[0].value.indexOf(_.geometryType())>=0}],"filter-id-in":[lo,[yi(Wi)],function(_,R){return R[0].value.indexOf(_.id())>=0}],"filter-in-small":[lo,[Ci,yi(Wi)],function(_,R){var Z=R[0];return R[1].value.indexOf(_.properties()[Z.value])>=0}],"filter-in-large":[lo,[Ci,yi(Wi)],function(_,R){var Z=R[0],ue=R[1];return function(Pe,Qe,wt,Wt){for(;wt<=Wt;){var Rn=wt+Wt>>1;if(Qe[Rn]===Pe)return!0;Qe[Rn]>Pe?Wt=Rn-1:wt=Rn+1}return!1}(_.properties()[Z.value],ue.value,0,ue.value.length-1)}],all:{type:lo,overloads:[[[lo,lo],function(_,R){var Z=R[1];return R[0].evaluate(_)&&Z.evaluate(_)}],[Vs(lo),function(_,R){for(var Z=0,ue=R;Z0&&typeof _[0]=="string"&&_[0]in au}function hd(_,R){var Z=new fa(au,[],R?function(Pe){var Qe={color:Kr,string:Ci,number:ui,enum:Ci,boolean:lo,formatted:Qt,resolvedImage:Gn};return Pe.type==="array"?yi(Qe[Pe.value]||Wi,Pe.length):Qe[Pe.type]}(R):void 0),ue=Z.parse(_,void 0,void 0,void 0,R&&R.type==="string"?{typeAnnotation:"coerce"}:void 0);return ue?ma(new Mu(ue,R)):Il(Z.errors)}Mu.prototype.evaluateWithoutErrorHandling=function(_,R,Z,ue,Pe,Qe){return this._evaluator.globals=_,this._evaluator.feature=R,this._evaluator.featureState=Z,this._evaluator.canonical=ue,this._evaluator.availableImages=Pe||null,this._evaluator.formattedSection=Qe,this.expression.evaluate(this._evaluator)},Mu.prototype.evaluate=function(_,R,Z,ue,Pe,Qe){this._evaluator.globals=_,this._evaluator.feature=R||null,this._evaluator.featureState=Z||null,this._evaluator.canonical=ue,this._evaluator.availableImages=Pe||null,this._evaluator.formattedSection=Qe||null;try{var wt=this.expression.evaluate(this._evaluator);if(wt==null||typeof wt=="number"&&wt!=wt)return this._defaultValue;if(this._enumValues&&!(wt in this._enumValues))throw new jo("Expected value to be one of "+Object.keys(this._enumValues).map(function(Wt){return JSON.stringify(Wt)}).join(", ")+", but found "+JSON.stringify(wt)+" instead.");return wt}catch(Wt){return this._warningHistory[Wt.message]||(this._warningHistory[Wt.message]=!0,typeof console!="undefined"&&console.warn(Wt.message)),this._defaultValue}};var vd=function(_,R){this.kind=_,this._styleExpression=R,this.isStateDependent=_!=="constant"&&!no(R.expression)};vd.prototype.evaluateWithoutErrorHandling=function(_,R,Z,ue,Pe,Qe){return this._styleExpression.evaluateWithoutErrorHandling(_,R,Z,ue,Pe,Qe)},vd.prototype.evaluate=function(_,R,Z,ue,Pe,Qe){return this._styleExpression.evaluate(_,R,Z,ue,Pe,Qe)};var Yd=function(_,R,Z,ue){this.kind=_,this.zoomStops=Z,this._styleExpression=R,this.isStateDependent=_!=="camera"&&!no(R.expression),this.interpolationType=ue};function nh(_,R){if((_=hd(_,R)).result==="error")return _;var Z=_.value.expression,ue=pa(Z);if(!ue&&!El(R))return Il([new pn("","data expressions not supported")]);var Pe=Cs(Z,["zoom"]);if(!Pe&&!ml(R))return Il([new pn("","zoom expressions not supported")]);var Qe=function wt(Wt){var Rn=null;if(Wt instanceof ni)Rn=wt(Wt.result);else if(Wt instanceof Qr)for(var ur=0,zr=Wt.args;urue.maximum?[new Jn(R,Z,Z+" is greater than the maximum value "+ue.maximum)]:[]}function Pf(_){var R,Z,ue,Pe=_.valueSpec,Qe=rs(_.value.type),wt={},Wt=Qe!=="categorical"&&_.value.property===void 0,Rn=!Wt,ur=Fu(_.value.stops)==="array"&&Fu(_.value.stops[0])==="array"&&Fu(_.value.stops[0][0])==="object",zr=yh({key:_.key,value:_.value,valueSpec:_.styleSpec.function,style:_.style,styleSpec:_.styleSpec,objectElementValidators:{stops:function(ko){if(Qe==="identity")return[new Jn(ko.key,ko.value,'identity function may not have a "stops" property')];var Zs=[],Js=ko.value;return Zs=Zs.concat(id({key:ko.key,value:Js,valueSpec:ko.valueSpec,style:ko.style,styleSpec:ko.styleSpec,arrayElementValidator:hi})),Fu(Js)==="array"&&Js.length===0&&Zs.push(new Jn(ko.key,Js,"array must have at least one stop")),Zs},default:function(ko){return Uu({key:ko.key,value:ko.value,valueSpec:Pe,style:ko.style,styleSpec:ko.styleSpec})}}});return Qe==="identity"&&Wt&&zr.push(new Jn(_.key,_.value,'missing required property "property"')),Qe==="identity"||_.value.stops||zr.push(new Jn(_.key,_.value,'missing required property "stops"')),Qe==="exponential"&&_.valueSpec.expression&&!fu(_.valueSpec)&&zr.push(new Jn(_.key,_.value,"exponential functions not supported")),_.styleSpec.$version>=8&&(Rn&&!El(_.valueSpec)?zr.push(new Jn(_.key,_.value,"property functions not supported")):Wt&&!ml(_.valueSpec)&&zr.push(new Jn(_.key,_.value,"zoom functions not supported"))),Qe!=="categorical"&&!ur||_.value.property!==void 0||zr.push(new Jn(_.key,_.value,'"property" property is required')),zr;function hi(ko){var Zs=[],Js=ko.value,sl=ko.key;if(Fu(Js)!=="array")return[new Jn(sl,Js,"array expected, "+Fu(Js)+" found")];if(Js.length!==2)return[new Jn(sl,Js,"array length 2 expected, length "+Js.length+" found")];if(ur){if(Fu(Js[0])!=="object")return[new Jn(sl,Js,"object expected, "+Fu(Js[0])+" found")];if(Js[0].zoom===void 0)return[new Jn(sl,Js,"object stop key must have zoom")];if(Js[0].value===void 0)return[new Jn(sl,Js,"object stop key must have value")];if(ue&&ue>rs(Js[0].zoom))return[new Jn(sl,Js[0].zoom,"stop zoom values must appear in ascending order")];rs(Js[0].zoom)!==ue&&(ue=rs(Js[0].zoom),Z=void 0,wt={}),Zs=Zs.concat(yh({key:sl+"[0]",value:Js[0],valueSpec:{zoom:{}},style:ko.style,styleSpec:ko.styleSpec,objectElementValidators:{zoom:nd,value:po}}))}else Zs=Zs.concat(po({key:sl+"[0]",value:Js[0],valueSpec:{},style:ko.style,styleSpec:ko.styleSpec},Js));return Fc(zt(Js[1]))?Zs.concat([new Jn(sl+"[1]",Js[1],"expressions are not allowed in function stops.")]):Zs.concat(Uu({key:sl+"[1]",value:Js[1],valueSpec:Pe,style:ko.style,styleSpec:ko.styleSpec}))}function po(ko,Zs){var Js=Fu(ko.value),sl=rs(ko.value),Da=ko.value!==null?ko.value:Zs;if(R){if(Js!==R)return[new Jn(ko.key,Da,Js+" stop domain type must match previous stop domain type "+R)]}else R=Js;if(Js!=="number"&&Js!=="string"&&Js!=="boolean")return[new Jn(ko.key,Da,"stop domain value must be a number, string, or boolean")];if(Js!=="number"&&Qe!=="categorical"){var Ol="number expected, "+Js+" found";return El(Pe)&&Qe===void 0&&(Ol+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Jn(ko.key,Da,Ol)]}return Qe!=="categorical"||Js!=="number"||isFinite(sl)&&Math.floor(sl)===sl?Qe!=="categorical"&&Js==="number"&&Z!==void 0&&sl=2&&_[1]!=="$id"&&_[1]!=="$type";case"in":return _.length>=3&&(typeof _[1]!="string"||Array.isArray(_[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return _.length!==3||Array.isArray(_[1])||Array.isArray(_[2]);case"any":case"all":for(var R=0,Z=_.slice(1);RR?1:0}function Sf(_){if(!_)return!0;var R,Z=_[0];return _.length<=1?Z!=="any":Z==="=="?xp(_[1],_[2],"=="):Z==="!="?Th(xp(_[1],_[2],"==")):Z==="<"||Z===">"||Z==="<="||Z===">="?xp(_[1],_[2],Z):Z==="any"?(R=_.slice(1),["any"].concat(R.map(Sf))):Z==="all"?["all"].concat(_.slice(1).map(Sf)):Z==="none"?["all"].concat(_.slice(1).map(Sf).map(Th)):Z==="in"?Nf(_[1],_.slice(2)):Z==="!in"?Th(Nf(_[1],_.slice(2))):Z==="has"?ch(_[1]):Z==="!has"?Th(ch(_[1])):Z!=="within"||_}function xp(_,R,Z){switch(_){case"$type":return["filter-type-"+Z,R];case"$id":return["filter-id-"+Z,R];default:return["filter-"+Z,_,R]}}function Nf(_,R){if(R.length===0)return!1;switch(_){case"$type":return["filter-type-in",["literal",R]];case"$id":return["filter-id-in",["literal",R]];default:return R.length>200&&!R.some(function(Z){return typeof Z!=typeof R[0]})?["filter-in-large",_,["literal",R.sort(Lh)]]:["filter-in-small",_,["literal",R]]}}function ch(_){switch(_){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",_]}}function Th(_){return["!",_]}function yu(_){return Yc(zt(_.value))?Jd(so({},_,{expressionContext:"filter",valueSpec:{value:"boolean"}})):function R(Z){var ue=Z.value,Pe=Z.key;if(Fu(ue)!=="array")return[new Jn(Pe,ue,"array expected, "+Fu(ue)+" found")];var Qe,wt=Z.styleSpec,Wt=[];if(ue.length<1)return[new Jn(Pe,ue,"filter array must have at least 1 element")];switch(Wt=Wt.concat(cc({key:Pe+"[0]",value:ue[0],valueSpec:wt.filter_operator,style:Z.style,styleSpec:Z.styleSpec})),rs(ue[0])){case"<":case"<=":case">":case">=":ue.length>=2&&rs(ue[1])==="$type"&&Wt.push(new Jn(Pe,ue,'"$type" cannot be use with operator "'+ue[0]+'"'));case"==":case"!=":ue.length!==3&&Wt.push(new Jn(Pe,ue,'filter array for operator "'+ue[0]+'" must have 3 elements'));case"in":case"!in":ue.length>=2&&(Qe=Fu(ue[1]))!=="string"&&Wt.push(new Jn(Pe+"[1]",ue[1],"string expected, "+Qe+" found"));for(var Rn=2;Rn=zr[ko+0]&&ue>=zr[ko+1])?(wt[po]=!0,Qe.push(ur[po])):wt[po]=!1}}},ed.prototype._forEachCell=function(_,R,Z,ue,Pe,Qe,wt,Wt){for(var Rn=this._convertToCellCoord(_),ur=this._convertToCellCoord(R),zr=this._convertToCellCoord(Z),hi=this._convertToCellCoord(ue),po=Rn;po<=zr;po++)for(var ko=ur;ko<=hi;ko++){var Zs=this.d*ko+po;if((!Wt||Wt(this._convertFromCellCoord(po),this._convertFromCellCoord(ko),this._convertFromCellCoord(po+1),this._convertFromCellCoord(ko+1)))&&Pe.call(this,_,R,Z,ue,Zs,Qe,wt,Wt))return}},ed.prototype._convertFromCellCoord=function(_){return(_-this.padding)/this.scale},ed.prototype._convertToCellCoord=function(_){return Math.max(0,Math.min(this.d-1,Math.floor(_*this.scale)+this.padding))},ed.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var _=this.cells,R=3+this.cells.length+1+1,Z=0,ue=0;ue=0)){var zr=_[ur];Rn[ur]=cf[Wt].shallow.indexOf(ur)>=0?zr:Qi(zr,R)}_ instanceof Error&&(Rn.message=_.message)}if(Rn.$name)throw new Error("$name property is reserved for worker serialization logic.");return Wt!=="Object"&&(Rn.$name=Wt),Rn}throw new Error("can't serialize object of type "+typeof _)}function bc(_){if(_==null||typeof _=="boolean"||typeof _=="number"||typeof _=="string"||_ instanceof Boolean||_ instanceof Number||_ instanceof String||_ instanceof Date||_ instanceof RegExp||as(_)||Op(_)||ArrayBuffer.isView(_)||_ instanceof Vh)return _;if(Array.isArray(_))return _.map(bc);if(typeof _=="object"){var R=_.$name||"Object",Z=cf[R].klass;if(!Z)throw new Error("can't deserialize unregistered class "+R);if(Z.deserialize)return Z.deserialize(_);for(var ue=Object.create(Z.prototype),Pe=0,Qe=Object.keys(_);Pe=0?Wt:bc(Wt)}}return ue}throw new Error("can't deserialize object of type "+typeof _)}var yf=function(){this.first=!0};yf.prototype.update=function(_,R){var Z=Math.floor(_);return this.first?(this.first=!1,this.lastIntegerZoom=Z,this.lastIntegerZoomTime=0,this.lastZoom=_,this.lastFloorZoom=Z,!0):(this.lastFloorZoom>Z?(this.lastIntegerZoom=Z+1,this.lastIntegerZoomTime=R):this.lastFloorZoom=128&&_<=255},Arabic:function(_){return _>=1536&&_<=1791},"Arabic Supplement":function(_){return _>=1872&&_<=1919},"Arabic Extended-A":function(_){return _>=2208&&_<=2303},"Hangul Jamo":function(_){return _>=4352&&_<=4607},"Unified Canadian Aboriginal Syllabics":function(_){return _>=5120&&_<=5759},Khmer:function(_){return _>=6016&&_<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(_){return _>=6320&&_<=6399},"General Punctuation":function(_){return _>=8192&&_<=8303},"Letterlike Symbols":function(_){return _>=8448&&_<=8527},"Number Forms":function(_){return _>=8528&&_<=8591},"Miscellaneous Technical":function(_){return _>=8960&&_<=9215},"Control Pictures":function(_){return _>=9216&&_<=9279},"Optical Character Recognition":function(_){return _>=9280&&_<=9311},"Enclosed Alphanumerics":function(_){return _>=9312&&_<=9471},"Geometric Shapes":function(_){return _>=9632&&_<=9727},"Miscellaneous Symbols":function(_){return _>=9728&&_<=9983},"Miscellaneous Symbols and Arrows":function(_){return _>=11008&&_<=11263},"CJK Radicals Supplement":function(_){return _>=11904&&_<=12031},"Kangxi Radicals":function(_){return _>=12032&&_<=12255},"Ideographic Description Characters":function(_){return _>=12272&&_<=12287},"CJK Symbols and Punctuation":function(_){return _>=12288&&_<=12351},Hiragana:function(_){return _>=12352&&_<=12447},Katakana:function(_){return _>=12448&&_<=12543},Bopomofo:function(_){return _>=12544&&_<=12591},"Hangul Compatibility Jamo":function(_){return _>=12592&&_<=12687},Kanbun:function(_){return _>=12688&&_<=12703},"Bopomofo Extended":function(_){return _>=12704&&_<=12735},"CJK Strokes":function(_){return _>=12736&&_<=12783},"Katakana Phonetic Extensions":function(_){return _>=12784&&_<=12799},"Enclosed CJK Letters and Months":function(_){return _>=12800&&_<=13055},"CJK Compatibility":function(_){return _>=13056&&_<=13311},"CJK Unified Ideographs Extension A":function(_){return _>=13312&&_<=19903},"Yijing Hexagram Symbols":function(_){return _>=19904&&_<=19967},"CJK Unified Ideographs":function(_){return _>=19968&&_<=40959},"Yi Syllables":function(_){return _>=40960&&_<=42127},"Yi Radicals":function(_){return _>=42128&&_<=42191},"Hangul Jamo Extended-A":function(_){return _>=43360&&_<=43391},"Hangul Syllables":function(_){return _>=44032&&_<=55215},"Hangul Jamo Extended-B":function(_){return _>=55216&&_<=55295},"Private Use Area":function(_){return _>=57344&&_<=63743},"CJK Compatibility Ideographs":function(_){return _>=63744&&_<=64255},"Arabic Presentation Forms-A":function(_){return _>=64336&&_<=65023},"Vertical Forms":function(_){return _>=65040&&_<=65055},"CJK Compatibility Forms":function(_){return _>=65072&&_<=65103},"Small Form Variants":function(_){return _>=65104&&_<=65135},"Arabic Presentation Forms-B":function(_){return _>=65136&&_<=65279},"Halfwidth and Fullwidth Forms":function(_){return _>=65280&&_<=65519}};function Bc(_){for(var R=0,Z=_;R=65097&&_<=65103)||Qu["CJK Compatibility Ideographs"](_)||Qu["CJK Compatibility"](_)||Qu["CJK Radicals Supplement"](_)||Qu["CJK Strokes"](_)||!(!Qu["CJK Symbols and Punctuation"](_)||_>=12296&&_<=12305||_>=12308&&_<=12319||_===12336)||Qu["CJK Unified Ideographs Extension A"](_)||Qu["CJK Unified Ideographs"](_)||Qu["Enclosed CJK Letters and Months"](_)||Qu["Hangul Compatibility Jamo"](_)||Qu["Hangul Jamo Extended-A"](_)||Qu["Hangul Jamo Extended-B"](_)||Qu["Hangul Jamo"](_)||Qu["Hangul Syllables"](_)||Qu.Hiragana(_)||Qu["Ideographic Description Characters"](_)||Qu.Kanbun(_)||Qu["Kangxi Radicals"](_)||Qu["Katakana Phonetic Extensions"](_)||Qu.Katakana(_)&&_!==12540||!(!Qu["Halfwidth and Fullwidth Forms"](_)||_===65288||_===65289||_===65293||_>=65306&&_<=65310||_===65339||_===65341||_===65343||_>=65371&&_<=65503||_===65507||_>=65512&&_<=65519)||!(!Qu["Small Form Variants"](_)||_>=65112&&_<=65118||_>=65123&&_<=65126)||Qu["Unified Canadian Aboriginal Syllabics"](_)||Qu["Unified Canadian Aboriginal Syllabics Extended"](_)||Qu["Vertical Forms"](_)||Qu["Yijing Hexagram Symbols"](_)||Qu["Yi Syllables"](_)||Qu["Yi Radicals"](_))))}function Jp(_){return!(Df(_)||function(R){return!!(Qu["Latin-1 Supplement"](R)&&(R===167||R===169||R===174||R===177||R===188||R===189||R===190||R===215||R===247)||Qu["General Punctuation"](R)&&(R===8214||R===8224||R===8225||R===8240||R===8241||R===8251||R===8252||R===8258||R===8263||R===8264||R===8265||R===8273)||Qu["Letterlike Symbols"](R)||Qu["Number Forms"](R)||Qu["Miscellaneous Technical"](R)&&(R>=8960&&R<=8967||R>=8972&&R<=8991||R>=8996&&R<=9e3||R===9003||R>=9085&&R<=9114||R>=9150&&R<=9165||R===9167||R>=9169&&R<=9179||R>=9186&&R<=9215)||Qu["Control Pictures"](R)&&R!==9251||Qu["Optical Character Recognition"](R)||Qu["Enclosed Alphanumerics"](R)||Qu["Geometric Shapes"](R)||Qu["Miscellaneous Symbols"](R)&&!(R>=9754&&R<=9759)||Qu["Miscellaneous Symbols and Arrows"](R)&&(R>=11026&&R<=11055||R>=11088&&R<=11097||R>=11192&&R<=11243)||Qu["CJK Symbols and Punctuation"](R)||Qu.Katakana(R)||Qu["Private Use Area"](R)||Qu["CJK Compatibility Forms"](R)||Qu["Small Form Variants"](R)||Qu["Halfwidth and Fullwidth Forms"](R)||R===8734||R===8756||R===8757||R>=9984&&R<=10087||R>=10102&&R<=10131||R===65532||R===65533)}(_))}function sg(_){return _>=1424&&_<=2303||Qu["Arabic Presentation Forms-A"](_)||Qu["Arabic Presentation Forms-B"](_)}function Ah(_,R){return!(!R&&sg(_)||_>=2304&&_<=3583||_>=3840&&_<=4255||Qu.Khmer(_))}function ap(_){for(var R=0,Z=_;R-1&&(tp="error"),Rp&&Rp(_)};function Uf(){Pd.fire(new Cr("pluginStateChange",{pluginStatus:tp,pluginURL:pg}))}var Pd=new ii,Np=function(){return tp},$p=function(){if(tp!=="deferred"||!pg)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");tp="loading",Uf(),pg&&xo({url:pg},function(_){_?Cp(_):(tp="loaded",Uf())})},ag={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return tp==="loaded"||ag.applyArabicShaping!=null},isLoading:function(){return tp==="loading"},setState:function(_){tp=_.pluginStatus,pg=_.pluginURL},isParsed:function(){return ag.applyArabicShaping!=null&&ag.processBidirectionalText!=null&&ag.processStyledBidirectionalText!=null},getPluginURL:function(){return pg}},Md=function(_,R){this.zoom=_,R?(this.now=R.now,this.fadeDuration=R.fadeDuration,this.zoomHistory=R.zoomHistory,this.transition=R.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new yf,this.transition={})};Md.prototype.isSupportedScript=function(_){return function(R,Z){for(var ue=0,Pe=R;uethis.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:R+(1-R)*Z}:{fromScale:.5,toScale:1,t:1-(1-Z)*R}};var jp=function(_,R){this.property=_,this.value=R,this.expression=function(Z,ue){if(lc(Z))return new Wd(Z,ue);if(Fc(Z)){var Pe=nh(Z,ue);if(Pe.result==="error")throw new Error(Pe.value.map(function(wt){return wt.key+": "+wt.message}).join(", "));return Pe.value}var Qe=Z;return typeof Z=="string"&&ue.type==="color"&&(Qe=Qn.parse(Z)),{kind:"constant",evaluate:function(){return Qe}}}(R===void 0?_.specification.default:R,_.specification)};jp.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},jp.prototype.possiblyEvaluate=function(_,R,Z){return this.property.possiblyEvaluate(this,_,R,Z)};var Ih=function(_){this.property=_,this.value=new jp(_,void 0)};Ih.prototype.transitioned=function(_,R){return new Ff(this.property,this.value,R,J({},_.transition,this.transition),_.now)},Ih.prototype.untransitioned=function(){return new Ff(this.property,this.value,null,{},0)};var of=function(_){this._properties=_,this._values=Object.create(_.defaultTransitionablePropertyValues)};of.prototype.getValue=function(_){return ge(this._values[_].value.value)},of.prototype.setValue=function(_,R){this._values.hasOwnProperty(_)||(this._values[_]=new Ih(this._values[_].property)),this._values[_].value=new jp(this._values[_].property,R===null?void 0:ge(R))},of.prototype.getTransition=function(_){return ge(this._values[_].transition)},of.prototype.setTransition=function(_,R){this._values.hasOwnProperty(_)||(this._values[_]=new Ih(this._values[_].property)),this._values[_].transition=ge(R)||void 0},of.prototype.serialize=function(){for(var _={},R=0,Z=Object.keys(this._values);Rthis.end)return this.prior=null,Pe;if(this.value.isDataDriven())return this.prior=null,Pe;if(ue=1)return 1;var Rn=Wt*Wt,ur=Rn*Wt;return 4*(Wt<.5?ur:3*(Wt-Rn)+ur-.75)}(wt))}return Pe};var iu=function(_){this._properties=_,this._values=Object.create(_.defaultTransitioningPropertyValues)};iu.prototype.possiblyEvaluate=function(_,R,Z){for(var ue=new np(this._properties),Pe=0,Qe=Object.keys(this._values);PeQe.zoomHistory.lastIntegerZoom?{from:Z,to:ue}:{from:Pe,to:ue}},R.prototype.interpolate=function(Z){return Z},R}(td),_f=function(_){this.specification=_};_f.prototype.possiblyEvaluate=function(_,R,Z,ue){if(_.value!==void 0){if(_.expression.kind==="constant"){var Pe=_.expression.evaluate(R,null,{},Z,ue);return this._calculate(Pe,Pe,Pe,R)}return this._calculate(_.expression.evaluate(new Md(Math.floor(R.zoom-1),R)),_.expression.evaluate(new Md(Math.floor(R.zoom),R)),_.expression.evaluate(new Md(Math.floor(R.zoom+1),R)),R)}},_f.prototype._calculate=function(_,R,Z,ue){return ue.zoom>ue.zoomHistory.lastIntegerZoom?{from:_,to:R}:{from:Z,to:R}},_f.prototype.interpolate=function(_){return _};var Hh=function(_){this.specification=_};Hh.prototype.possiblyEvaluate=function(_,R,Z,ue){return!!_.expression.evaluate(R,null,{},Z,ue)},Hh.prototype.interpolate=function(){return!1};var Dp=function(_){for(var R in this.properties=_,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],_){var Z=_[R];Z.specification.overridable&&this.overridableProperties.push(R);var ue=this.defaultPropertyValues[R]=new jp(Z,void 0),Pe=this.defaultTransitionablePropertyValues[R]=new Ih(Z);this.defaultTransitioningPropertyValues[R]=Pe.untransitioned(),this.defaultPossiblyEvaluatedValues[R]=ue.possiblyEvaluate({})}};Qc("DataDrivenProperty",td),Qc("DataConstantProperty",Od),Qc("CrossFadedDataDrivenProperty",Tp),Qc("CrossFadedProperty",_f),Qc("ColorRampProperty",Hh);var Vp=function(_){function R(Z,ue){if(_.call(this),this.id=Z.id,this.type=Z.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},Z.type!=="custom"&&(this.metadata=(Z=Z).metadata,this.minzoom=Z.minzoom,this.maxzoom=Z.maxzoom,Z.type!=="background"&&(this.source=Z.source,this.sourceLayer=Z["source-layer"],this.filter=Z.filter),ue.layout&&(this._unevaluatedLayout=new mp(ue.layout)),ue.paint)){for(var Pe in this._transitionablePaint=new of(ue.paint),Z.paint)this.setPaintProperty(Pe,Z.paint[Pe],{validate:!1});for(var Qe in Z.layout)this.setLayoutProperty(Qe,Z.layout[Qe],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new np(ue.paint)}}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},R.prototype.getLayoutProperty=function(Z){return Z==="visibility"?this.visibility:this._unevaluatedLayout.getValue(Z)},R.prototype.setLayoutProperty=function(Z,ue,Pe){Pe===void 0&&(Pe={}),ue!=null&&this._validate(Bh,"layers."+this.id+".layout."+Z,Z,ue,Pe)||(Z!=="visibility"?this._unevaluatedLayout.setValue(Z,ue):this.visibility=ue)},R.prototype.getPaintProperty=function(Z){return we(Z,"-transition")?this._transitionablePaint.getTransition(Z.slice(0,-11)):this._transitionablePaint.getValue(Z)},R.prototype.setPaintProperty=function(Z,ue,Pe){if(Pe===void 0&&(Pe={}),ue!=null&&this._validate(kf,"layers."+this.id+".paint."+Z,Z,ue,Pe))return!1;if(we(Z,"-transition"))return this._transitionablePaint.setTransition(Z.slice(0,-11),ue||void 0),!1;var Qe=this._transitionablePaint._values[Z],wt=Qe.property.specification["property-type"]==="cross-faded-data-driven",Wt=Qe.value.isDataDriven(),Rn=Qe.value;this._transitionablePaint.setValue(Z,ue),this._handleSpecialPaintPropertyUpdate(Z);var ur=this._transitionablePaint._values[Z].value;return ur.isDataDriven()||Wt||wt||this._handleOverridablePaintPropertyUpdate(Z,Rn,ur)},R.prototype._handleSpecialPaintPropertyUpdate=function(Z){},R.prototype._handleOverridablePaintPropertyUpdate=function(Z,ue,Pe){return!1},R.prototype.isHidden=function(Z){return!!(this.minzoom&&Z=this.maxzoom)||this.visibility==="none"},R.prototype.updateTransitions=function(Z){this._transitioningPaint=this._transitionablePaint.transitioned(Z,this._transitioningPaint)},R.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},R.prototype.recalculate=function(Z,ue){Z.getCrossfadeParameters&&(this._crossfadeParameters=Z.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(Z,void 0,ue)),this.paint=this._transitioningPaint.possiblyEvaluate(Z,void 0,ue)},R.prototype.serialize=function(){var Z={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(Z.layout=Z.layout||{},Z.layout.visibility=this.visibility),Ee(Z,function(ue,Pe){return!(ue===void 0||Pe==="layout"&&!Object.keys(ue).length||Pe==="paint"&&!Object.keys(ue).length)})},R.prototype._validate=function(Z,ue,Pe,Qe,wt){return wt===void 0&&(wt={}),(!wt||wt.validate!==!1)&&Kf(this,Z.call(vf,{key:ue,layerType:this.type,objectKey:Pe,value:Qe,styleSpec:rn,style:{glyphs:!0,sprite:!0}}))},R.prototype.is3D=function(){return!1},R.prototype.isTileClipped=function(){return!1},R.prototype.hasOffscreenPass=function(){return!1},R.prototype.resize=function(){},R.prototype.isStateDependent=function(){for(var Z in this.paint._values){var ue=this.paint.get(Z);if(ue instanceof Af&&El(ue.property.specification)&&(ue.value.kind==="source"||ue.value.kind==="composite")&&ue.value.isStateDependent)return!0}return!1},R}(ii),Cd={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},qh=function(_,R){this._structArray=_,this._pos1=R*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},kh=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function _h(_,R){R===void 0&&(R=1);var Z=0,ue=0;return{members:_.map(function(Pe){var Qe=Cd[Pe.type].BYTES_PER_ELEMENT,wt=Z=Bf(Z,Math.max(R,Qe)),Wt=Pe.components||1;return ue=Math.max(ue,Qe),Z+=Qe*Wt,{name:Pe.name,type:Pe.type,components:Wt,offset:wt}}),size:Bf(Z,Math.max(ue,R)),alignment:R}}function Bf(_,R){return Math.ceil(_/R)*R}kh.serialize=function(_,R){return _._trim(),R&&(_.isTransferred=!0,R.push(_.arrayBuffer)),{length:_.length,arrayBuffer:_.arrayBuffer}},kh.deserialize=function(_){var R=Object.create(this.prototype);return R.arrayBuffer=_.arrayBuffer,R.length=_.length,R.capacity=_.arrayBuffer.byteLength/R.bytesPerElement,R._refreshViews(),R},kh.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},kh.prototype.clear=function(){this.length=0},kh.prototype.resize=function(_){this.reserve(_),this.length=_},kh.prototype.reserve=function(_){if(_>this.capacity){this.capacity=Math.max(_,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var R=this.uint8;this._refreshViews(),R&&this.uint8.set(R)}},kh.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var bd=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(Z,ue){var Pe=this.length;return this.resize(Pe+1),this.emplace(Pe,Z,ue)},R.prototype.emplace=function(Z,ue,Pe){var Qe=2*Z;return this.int16[Qe+0]=ue,this.int16[Qe+1]=Pe,Z},R}(kh);bd.prototype.bytesPerElement=4,Qc("StructArrayLayout2i4",bd);var $c=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(Z,ue,Pe,Qe){var wt=this.length;return this.resize(wt+1),this.emplace(wt,Z,ue,Pe,Qe)},R.prototype.emplace=function(Z,ue,Pe,Qe,wt){var Wt=4*Z;return this.int16[Wt+0]=ue,this.int16[Wt+1]=Pe,this.int16[Wt+2]=Qe,this.int16[Wt+3]=wt,Z},R}(kh);$c.prototype.bytesPerElement=8,Qc("StructArrayLayout4i8",$c);var Hd=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(Z,ue,Pe,Qe,wt,Wt){var Rn=this.length;return this.resize(Rn+1),this.emplace(Rn,Z,ue,Pe,Qe,wt,Wt)},R.prototype.emplace=function(Z,ue,Pe,Qe,wt,Wt,Rn){var ur=6*Z;return this.int16[ur+0]=ue,this.int16[ur+1]=Pe,this.int16[ur+2]=Qe,this.int16[ur+3]=wt,this.int16[ur+4]=Wt,this.int16[ur+5]=Rn,Z},R}(kh);Hd.prototype.bytesPerElement=12,Qc("StructArrayLayout2i4i12",Hd);var vh=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(Z,ue,Pe,Qe,wt,Wt){var Rn=this.length;return this.resize(Rn+1),this.emplace(Rn,Z,ue,Pe,Qe,wt,Wt)},R.prototype.emplace=function(Z,ue,Pe,Qe,wt,Wt,Rn){var ur=4*Z,zr=8*Z;return this.int16[ur+0]=ue,this.int16[ur+1]=Pe,this.uint8[zr+4]=Qe,this.uint8[zr+5]=wt,this.uint8[zr+6]=Wt,this.uint8[zr+7]=Rn,Z},R}(kh);vh.prototype.bytesPerElement=8,Qc("StructArrayLayout2i4ub8",vh);var wo=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(Z,ue){var Pe=this.length;return this.resize(Pe+1),this.emplace(Pe,Z,ue)},R.prototype.emplace=function(Z,ue,Pe){var Qe=2*Z;return this.float32[Qe+0]=ue,this.float32[Qe+1]=Pe,Z},R}(kh);wo.prototype.bytesPerElement=8,Qc("StructArrayLayout2f8",wo);var D=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(Z,ue,Pe,Qe,wt,Wt,Rn,ur,zr,hi){var po=this.length;return this.resize(po+1),this.emplace(po,Z,ue,Pe,Qe,wt,Wt,Rn,ur,zr,hi)},R.prototype.emplace=function(Z,ue,Pe,Qe,wt,Wt,Rn,ur,zr,hi,po){var ko=10*Z;return this.uint16[ko+0]=ue,this.uint16[ko+1]=Pe,this.uint16[ko+2]=Qe,this.uint16[ko+3]=wt,this.uint16[ko+4]=Wt,this.uint16[ko+5]=Rn,this.uint16[ko+6]=ur,this.uint16[ko+7]=zr,this.uint16[ko+8]=hi,this.uint16[ko+9]=po,Z},R}(kh);D.prototype.bytesPerElement=20,Qc("StructArrayLayout10ui20",D);var F=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(Z,ue,Pe,Qe,wt,Wt,Rn,ur,zr,hi,po,ko){var Zs=this.length;return this.resize(Zs+1),this.emplace(Zs,Z,ue,Pe,Qe,wt,Wt,Rn,ur,zr,hi,po,ko)},R.prototype.emplace=function(Z,ue,Pe,Qe,wt,Wt,Rn,ur,zr,hi,po,ko,Zs){var Js=12*Z;return this.int16[Js+0]=ue,this.int16[Js+1]=Pe,this.int16[Js+2]=Qe,this.int16[Js+3]=wt,this.uint16[Js+4]=Wt,this.uint16[Js+5]=Rn,this.uint16[Js+6]=ur,this.uint16[Js+7]=zr,this.int16[Js+8]=hi,this.int16[Js+9]=po,this.int16[Js+10]=ko,this.int16[Js+11]=Zs,Z},R}(kh);F.prototype.bytesPerElement=24,Qc("StructArrayLayout4i4ui4i24",F);var q=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(Z,ue,Pe){var Qe=this.length;return this.resize(Qe+1),this.emplace(Qe,Z,ue,Pe)},R.prototype.emplace=function(Z,ue,Pe,Qe){var wt=3*Z;return this.float32[wt+0]=ue,this.float32[wt+1]=Pe,this.float32[wt+2]=Qe,Z},R}(kh);q.prototype.bytesPerElement=12,Qc("StructArrayLayout3f12",q);var ae=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(Z){var ue=this.length;return this.resize(ue+1),this.emplace(ue,Z)},R.prototype.emplace=function(Z,ue){return this.uint32[1*Z+0]=ue,Z},R}(kh);ae.prototype.bytesPerElement=4,Qc("StructArrayLayout1ul4",ae);var He=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(Z,ue,Pe,Qe,wt,Wt,Rn,ur,zr){var hi=this.length;return this.resize(hi+1),this.emplace(hi,Z,ue,Pe,Qe,wt,Wt,Rn,ur,zr)},R.prototype.emplace=function(Z,ue,Pe,Qe,wt,Wt,Rn,ur,zr,hi){var po=10*Z,ko=5*Z;return this.int16[po+0]=ue,this.int16[po+1]=Pe,this.int16[po+2]=Qe,this.int16[po+3]=wt,this.int16[po+4]=Wt,this.int16[po+5]=Rn,this.uint32[ko+3]=ur,this.uint16[po+8]=zr,this.uint16[po+9]=hi,Z},R}(kh);He.prototype.bytesPerElement=20,Qc("StructArrayLayout6i1ul2ui20",He);var qt=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(Z,ue,Pe,Qe,wt,Wt){var Rn=this.length;return this.resize(Rn+1),this.emplace(Rn,Z,ue,Pe,Qe,wt,Wt)},R.prototype.emplace=function(Z,ue,Pe,Qe,wt,Wt,Rn){var ur=6*Z;return this.int16[ur+0]=ue,this.int16[ur+1]=Pe,this.int16[ur+2]=Qe,this.int16[ur+3]=wt,this.int16[ur+4]=Wt,this.int16[ur+5]=Rn,Z},R}(kh);qt.prototype.bytesPerElement=12,Qc("StructArrayLayout2i2i2i12",qt);var zn=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(Z,ue,Pe,Qe,wt){var Wt=this.length;return this.resize(Wt+1),this.emplace(Wt,Z,ue,Pe,Qe,wt)},R.prototype.emplace=function(Z,ue,Pe,Qe,wt,Wt){var Rn=4*Z,ur=8*Z;return this.float32[Rn+0]=ue,this.float32[Rn+1]=Pe,this.float32[Rn+2]=Qe,this.int16[ur+6]=wt,this.int16[ur+7]=Wt,Z},R}(kh);zn.prototype.bytesPerElement=16,Qc("StructArrayLayout2f1f2i16",zn);var di=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(Z,ue,Pe,Qe){var wt=this.length;return this.resize(wt+1),this.emplace(wt,Z,ue,Pe,Qe)},R.prototype.emplace=function(Z,ue,Pe,Qe,wt){var Wt=12*Z,Rn=3*Z;return this.uint8[Wt+0]=ue,this.uint8[Wt+1]=Pe,this.float32[Rn+1]=Qe,this.float32[Rn+2]=wt,Z},R}(kh);di.prototype.bytesPerElement=12,Qc("StructArrayLayout2ub2f12",di);var Uo=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(Z,ue,Pe){var Qe=this.length;return this.resize(Qe+1),this.emplace(Qe,Z,ue,Pe)},R.prototype.emplace=function(Z,ue,Pe,Qe){var wt=3*Z;return this.uint16[wt+0]=ue,this.uint16[wt+1]=Pe,this.uint16[wt+2]=Qe,Z},R}(kh);Uo.prototype.bytesPerElement=6,Qc("StructArrayLayout3ui6",Uo);var la=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(Z,ue,Pe,Qe,wt,Wt,Rn,ur,zr,hi,po,ko,Zs,Js,sl,Da,Ol){var Vl=this.length;return this.resize(Vl+1),this.emplace(Vl,Z,ue,Pe,Qe,wt,Wt,Rn,ur,zr,hi,po,ko,Zs,Js,sl,Da,Ol)},R.prototype.emplace=function(Z,ue,Pe,Qe,wt,Wt,Rn,ur,zr,hi,po,ko,Zs,Js,sl,Da,Ol,Vl){var cu=24*Z,lu=12*Z,Hu=48*Z;return this.int16[cu+0]=ue,this.int16[cu+1]=Pe,this.uint16[cu+2]=Qe,this.uint16[cu+3]=wt,this.uint32[lu+2]=Wt,this.uint32[lu+3]=Rn,this.uint32[lu+4]=ur,this.uint16[cu+10]=zr,this.uint16[cu+11]=hi,this.uint16[cu+12]=po,this.float32[lu+7]=ko,this.float32[lu+8]=Zs,this.uint8[Hu+36]=Js,this.uint8[Hu+37]=sl,this.uint8[Hu+38]=Da,this.uint32[lu+10]=Ol,this.int16[cu+22]=Vl,Z},R}(kh);la.prototype.bytesPerElement=48,Qc("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",la);var Cl=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(Z,ue,Pe,Qe,wt,Wt,Rn,ur,zr,hi,po,ko,Zs,Js,sl,Da,Ol,Vl,cu,lu,Hu,kc,ac,_d,Xu,Nd,Yt,Mn){var dr=this.length;return this.resize(dr+1),this.emplace(dr,Z,ue,Pe,Qe,wt,Wt,Rn,ur,zr,hi,po,ko,Zs,Js,sl,Da,Ol,Vl,cu,lu,Hu,kc,ac,_d,Xu,Nd,Yt,Mn)},R.prototype.emplace=function(Z,ue,Pe,Qe,wt,Wt,Rn,ur,zr,hi,po,ko,Zs,Js,sl,Da,Ol,Vl,cu,lu,Hu,kc,ac,_d,Xu,Nd,Yt,Mn,dr){var Wr=34*Z,go=17*Z;return this.int16[Wr+0]=ue,this.int16[Wr+1]=Pe,this.int16[Wr+2]=Qe,this.int16[Wr+3]=wt,this.int16[Wr+4]=Wt,this.int16[Wr+5]=Rn,this.int16[Wr+6]=ur,this.int16[Wr+7]=zr,this.uint16[Wr+8]=hi,this.uint16[Wr+9]=po,this.uint16[Wr+10]=ko,this.uint16[Wr+11]=Zs,this.uint16[Wr+12]=Js,this.uint16[Wr+13]=sl,this.uint16[Wr+14]=Da,this.uint16[Wr+15]=Ol,this.uint16[Wr+16]=Vl,this.uint16[Wr+17]=cu,this.uint16[Wr+18]=lu,this.uint16[Wr+19]=Hu,this.uint16[Wr+20]=kc,this.uint16[Wr+21]=ac,this.uint16[Wr+22]=_d,this.uint32[go+12]=Xu,this.float32[go+13]=Nd,this.float32[go+14]=Yt,this.float32[go+15]=Mn,this.float32[go+16]=dr,Z},R}(kh);Cl.prototype.bytesPerElement=68,Qc("StructArrayLayout8i15ui1ul4f68",Cl);var Ll=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(Z){var ue=this.length;return this.resize(ue+1),this.emplace(ue,Z)},R.prototype.emplace=function(Z,ue){return this.float32[1*Z+0]=ue,Z},R}(kh);Ll.prototype.bytesPerElement=4,Qc("StructArrayLayout1f4",Ll);var zu=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(Z,ue,Pe){var Qe=this.length;return this.resize(Qe+1),this.emplace(Qe,Z,ue,Pe)},R.prototype.emplace=function(Z,ue,Pe,Qe){var wt=3*Z;return this.int16[wt+0]=ue,this.int16[wt+1]=Pe,this.int16[wt+2]=Qe,Z},R}(kh);zu.prototype.bytesPerElement=6,Qc("StructArrayLayout3i6",zu);var Iu=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(Z,ue,Pe){var Qe=this.length;return this.resize(Qe+1),this.emplace(Qe,Z,ue,Pe)},R.prototype.emplace=function(Z,ue,Pe,Qe){var wt=4*Z;return this.uint32[2*Z+0]=ue,this.uint16[wt+2]=Pe,this.uint16[wt+3]=Qe,Z},R}(kh);Iu.prototype.bytesPerElement=8,Qc("StructArrayLayout1ul2ui8",Iu);var pc=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(Z,ue){var Pe=this.length;return this.resize(Pe+1),this.emplace(Pe,Z,ue)},R.prototype.emplace=function(Z,ue,Pe){var Qe=2*Z;return this.uint16[Qe+0]=ue,this.uint16[Qe+1]=Pe,Z},R}(kh);pc.prototype.bytesPerElement=4,Qc("StructArrayLayout2ui4",pc);var zc=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(Z){var ue=this.length;return this.resize(ue+1),this.emplace(ue,Z)},R.prototype.emplace=function(Z,ue){return this.uint16[1*Z+0]=ue,Z},R}(kh);zc.prototype.bytesPerElement=2,Qc("StructArrayLayout1ui2",zc);var Rd=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(Z,ue,Pe,Qe){var wt=this.length;return this.resize(wt+1),this.emplace(wt,Z,ue,Pe,Qe)},R.prototype.emplace=function(Z,ue,Pe,Qe,wt){var Wt=4*Z;return this.float32[Wt+0]=ue,this.float32[Wt+1]=Pe,this.float32[Wt+2]=Qe,this.float32[Wt+3]=wt,Z},R}(kh);Rd.prototype.bytesPerElement=16,Qc("StructArrayLayout4f16",Rd);var X=function(_){function R(){_.apply(this,arguments)}_&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R;var Z={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return Z.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},Z.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},Z.x1.get=function(){return this._structArray.int16[this._pos2+2]},Z.y1.get=function(){return this._structArray.int16[this._pos2+3]},Z.x2.get=function(){return this._structArray.int16[this._pos2+4]},Z.y2.get=function(){return this._structArray.int16[this._pos2+5]},Z.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},Z.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},Z.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},Z.anchorPoint.get=function(){return new w(this.anchorPointX,this.anchorPointY)},Object.defineProperties(R.prototype,Z),R}(qh);X.prototype.size=20;var ne=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype.get=function(Z){return new X(this,Z)},R}(He);Qc("CollisionBoxArray",ne);var Q=function(_){function R(){_.apply(this,arguments)}_&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R;var Z={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return Z.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},Z.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},Z.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},Z.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},Z.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},Z.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},Z.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},Z.segment.get=function(){return this._structArray.uint16[this._pos2+10]},Z.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},Z.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},Z.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},Z.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},Z.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},Z.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},Z.placedOrientation.set=function(ue){this._structArray.uint8[this._pos1+37]=ue},Z.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},Z.hidden.set=function(ue){this._structArray.uint8[this._pos1+38]=ue},Z.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},Z.crossTileID.set=function(ue){this._structArray.uint32[this._pos4+10]=ue},Z.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(R.prototype,Z),R}(qh);Q.prototype.size=48;var le=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype.get=function(Z){return new Q(this,Z)},R}(la);Qc("PlacedSymbolArray",le);var it=function(_){function R(){_.apply(this,arguments)}_&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R;var Z={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return Z.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},Z.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},Z.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},Z.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},Z.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},Z.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},Z.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},Z.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},Z.key.get=function(){return this._structArray.uint16[this._pos2+8]},Z.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},Z.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},Z.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},Z.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},Z.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},Z.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},Z.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},Z.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},Z.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},Z.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},Z.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},Z.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},Z.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},Z.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},Z.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},Z.crossTileID.set=function(ue){this._structArray.uint32[this._pos4+12]=ue},Z.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},Z.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},Z.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},Z.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(R.prototype,Z),R}(qh);it.prototype.size=68;var Rt=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype.get=function(Z){return new it(this,Z)},R}(Cl);Qc("SymbolInstanceArray",Rt);var en=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype.getoffsetX=function(Z){return this.float32[1*Z+0]},R}(Ll);Qc("GlyphOffsetArray",en);var Yn=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype.getx=function(Z){return this.int16[3*Z+0]},R.prototype.gety=function(Z){return this.int16[3*Z+1]},R.prototype.gettileUnitDistanceFromAnchor=function(Z){return this.int16[3*Z+2]},R}(zu);Qc("SymbolLineVertexArray",Yn);var Zr=function(_){function R(){_.apply(this,arguments)}_&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R;var Z={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return Z.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},Z.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},Z.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(R.prototype,Z),R}(qh);Zr.prototype.size=8;var fr=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype.get=function(Z){return new Zr(this,Z)},R}(Iu);Qc("FeatureIndexArray",fr);var es=_h([{name:"a_pos",components:2,type:"Int16"}],4).members,Xo=function(_){_===void 0&&(_=[]),this.segments=_};function Ss(_,R){return 256*(_=j(Math.floor(_),0,255))+j(Math.floor(R),0,255)}Xo.prototype.prepareSegment=function(_,R,Z,ue){var Pe=this.segments[this.segments.length-1];return _>Xo.MAX_VERTEX_ARRAY_LENGTH&&xe("Max vertices per segment is "+Xo.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+_),(!Pe||Pe.vertexLength+_>Xo.MAX_VERTEX_ARRAY_LENGTH||Pe.sortKey!==ue)&&(Pe={vertexOffset:R.length,primitiveOffset:Z.length,vertexLength:0,primitiveLength:0},ue!==void 0&&(Pe.sortKey=ue),this.segments.push(Pe)),Pe},Xo.prototype.get=function(){return this.segments},Xo.prototype.destroy=function(){for(var _=0,R=this.segments;_>>16)*Wt&65535)<<16)&4294967295)<<15|ur>>>17))*Rn+(((ur>>>16)*Rn&65535)<<16)&4294967295)<<13|Qe>>>19))+((5*(Qe>>>16)&65535)<<16)&4294967295))+((58964+(wt>>>16)&65535)<<16);switch(ur=0,ue){case 3:ur^=(255&R.charCodeAt(zr+2))<<16;case 2:ur^=(255&R.charCodeAt(zr+1))<<8;case 1:Qe^=ur=(65535&(ur=(ur=(65535&(ur^=255&R.charCodeAt(zr)))*Wt+(((ur>>>16)*Wt&65535)<<16)&4294967295)<<15|ur>>>17))*Rn+(((ur>>>16)*Rn&65535)<<16)&4294967295}return Qe^=R.length,Qe=2246822507*(65535&(Qe^=Qe>>>16))+((2246822507*(Qe>>>16)&65535)<<16)&4294967295,Qe=3266489909*(65535&(Qe^=Qe>>>13))+((3266489909*(Qe>>>16)&65535)<<16)&4294967295,(Qe^=Qe>>>16)>>>0}}),Wo=z(function(_){_.exports=function(R,Z){for(var ue,Pe=R.length,Qe=Z^Pe,wt=0;Pe>=4;)ue=1540483477*(65535&(ue=255&R.charCodeAt(wt)|(255&R.charCodeAt(++wt))<<8|(255&R.charCodeAt(++wt))<<16|(255&R.charCodeAt(++wt))<<24))+((1540483477*(ue>>>16)&65535)<<16),Qe=1540483477*(65535&Qe)+((1540483477*(Qe>>>16)&65535)<<16)^(ue=1540483477*(65535&(ue^=ue>>>24))+((1540483477*(ue>>>16)&65535)<<16)),Pe-=4,++wt;switch(Pe){case 3:Qe^=(255&R.charCodeAt(wt+2))<<16;case 2:Qe^=(255&R.charCodeAt(wt+1))<<8;case 1:Qe=1540483477*(65535&(Qe^=255&R.charCodeAt(wt)))+((1540483477*(Qe>>>16)&65535)<<16)}return Qe=1540483477*(65535&(Qe^=Qe>>>13))+((1540483477*(Qe>>>16)&65535)<<16),(Qe^=Qe>>>15)>>>0}}),Ws=qs,za=Wo;Ws.murmur3=qs,Ws.murmur2=za;var yl=function(){this.ids=[],this.positions=[],this.indexed=!1};yl.prototype.add=function(_,R,Z,ue){this.ids.push(xu(_)),this.positions.push(R,Z,ue)},yl.prototype.getPositions=function(_){for(var R=xu(_),Z=0,ue=this.ids.length-1;Z>1;this.ids[Pe]>=R?ue=Pe:Z=Pe+1}for(var Qe=[];this.ids[Z]===R;)Qe.push({index:this.positions[3*Z],start:this.positions[3*Z+1],end:this.positions[3*Z+2]}),Z++;return Qe},yl.serialize=function(_,R){var Z=new Float64Array(_.ids),ue=new Uint32Array(_.positions);return function Pe(Qe,wt,Wt,Rn){for(;Wt>1],zr=Wt-1,hi=Rn+1;;){do zr++;while(Qe[zr]ur);if(zr>=hi)break;Tu(Qe,zr,hi),Tu(wt,3*zr,3*hi),Tu(wt,3*zr+1,3*hi+1),Tu(wt,3*zr+2,3*hi+2)}hi-Wtwt.x+1||Rnwt.y+1)&&xe("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return Z}function ad(_,R){return{type:_.type,id:_.id,properties:_.properties,geometry:R?Oc(_):[]}}function yd(_,R,Z,ue,Pe){_.emplaceBack(2*R+(ue+1)/2,2*Z+(Pe+1)/2)}var Bd=function(_){this.zoom=_.zoom,this.overscaling=_.overscaling,this.layers=_.layers,this.layerIds=this.layers.map(function(R){return R.id}),this.index=_.index,this.hasPattern=!1,this.layoutVertexArray=new bd,this.indexArray=new Uo,this.segments=new Xo,this.programConfigurations=new Mh(_.layers,_.zoom),this.stateDependentLayerIds=this.layers.filter(function(R){return R.isStateDependent()}).map(function(R){return R.id})};function Dc(_,R){for(var Z=0;Z<_.length;Z++)if(Zd(R,_[Z]))return!0;for(var ue=0;ue1){if(Io(_,R))return!0;for(var ue=0;ue1?Z:Z.sub(R)._mult(Pe)._add(R))}function Fm(_,R){for(var Z,ue,Pe,Qe=!1,wt=0;wt<_.length;wt++)for(var Wt=0,Rn=(Z=_[wt]).length-1;WtR.y!=(Pe=Z[Rn]).y>R.y&&R.x<(Pe.x-ue.x)*(R.y-ue.y)/(Pe.y-ue.y)+ue.x&&(Qe=!Qe);return Qe}function Zd(_,R){for(var Z=!1,ue=0,Pe=_.length-1;ue<_.length;Pe=ue++){var Qe=_[ue],wt=_[Pe];Qe.y>R.y!=wt.y>R.y&&R.x<(wt.x-Qe.x)*(R.y-Qe.y)/(wt.y-Qe.y)+Qe.x&&(Z=!Z)}return Z}function Fp(_,R,Z){var ue=Z[0],Pe=Z[2];if(_.xPe.x&&R.x>Pe.x||_.yPe.y&&R.y>Pe.y)return!1;var Qe=be(_,R,Z[0]);return Qe!==be(_,R,Z[1])||Qe!==be(_,R,Z[2])||Qe!==be(_,R,Z[3])}function zf(_,R,Z){var ue=R.paint.get(_).value;return ue.kind==="constant"?ue.value:Z.programConfigurations.get(R.id).getMaxValue(_)}function bf(_){return Math.sqrt(_[0]*_[0]+_[1]*_[1])}function Qp(_,R,Z,ue,Pe){if(!R[0]&&!R[1])return _;var Qe=w.convert(R)._mult(Pe);Z==="viewport"&&Qe._rotate(-ue);for(var wt=[],Wt=0;Wt<_.length;Wt++)wt.push(_[Wt].sub(Qe));return wt}Bd.prototype.populate=function(_,R,Z){var ue=this.layers[0],Pe=[],Qe=null;ue.type==="circle"&&(Qe=ue.layout.get("circle-sort-key"));for(var wt=0,Wt=_;wt=8192||zr<0||zr>=8192)){var hi=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,_.sortKey),po=hi.vertexLength;yd(this.layoutVertexArray,ur,zr,-1,-1),yd(this.layoutVertexArray,ur,zr,1,-1),yd(this.layoutVertexArray,ur,zr,1,1),yd(this.layoutVertexArray,ur,zr,-1,1),this.indexArray.emplaceBack(po,po+1,po+2),this.indexArray.emplaceBack(po,po+3,po+2),hi.vertexLength+=4,hi.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,_,Z,{},ue)},Qc("CircleBucket",Bd,{omit:["layers"]});var Bp=new Dp({"circle-sort-key":new td(rn.layout_circle["circle-sort-key"])}),Hf={paint:new Dp({"circle-radius":new td(rn.paint_circle["circle-radius"]),"circle-color":new td(rn.paint_circle["circle-color"]),"circle-blur":new td(rn.paint_circle["circle-blur"]),"circle-opacity":new td(rn.paint_circle["circle-opacity"]),"circle-translate":new Od(rn.paint_circle["circle-translate"]),"circle-translate-anchor":new Od(rn.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new Od(rn.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new Od(rn.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new td(rn.paint_circle["circle-stroke-width"]),"circle-stroke-color":new td(rn.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new td(rn.paint_circle["circle-stroke-opacity"])}),layout:Bp},df=typeof Float32Array!="undefined"?Float32Array:Array;function af(_){return _[0]=1,_[1]=0,_[2]=0,_[3]=0,_[4]=0,_[5]=1,_[6]=0,_[7]=0,_[8]=0,_[9]=0,_[10]=1,_[11]=0,_[12]=0,_[13]=0,_[14]=0,_[15]=1,_}function jg(_,R,Z){var ue=R[0],Pe=R[1],Qe=R[2],wt=R[3],Wt=R[4],Rn=R[5],ur=R[6],zr=R[7],hi=R[8],po=R[9],ko=R[10],Zs=R[11],Js=R[12],sl=R[13],Da=R[14],Ol=R[15],Vl=Z[0],cu=Z[1],lu=Z[2],Hu=Z[3];return _[0]=Vl*ue+cu*Wt+lu*hi+Hu*Js,_[1]=Vl*Pe+cu*Rn+lu*po+Hu*sl,_[2]=Vl*Qe+cu*ur+lu*ko+Hu*Da,_[3]=Vl*wt+cu*zr+lu*Zs+Hu*Ol,_[4]=(Vl=Z[4])*ue+(cu=Z[5])*Wt+(lu=Z[6])*hi+(Hu=Z[7])*Js,_[5]=Vl*Pe+cu*Rn+lu*po+Hu*sl,_[6]=Vl*Qe+cu*ur+lu*ko+Hu*Da,_[7]=Vl*wt+cu*zr+lu*Zs+Hu*Ol,_[8]=(Vl=Z[8])*ue+(cu=Z[9])*Wt+(lu=Z[10])*hi+(Hu=Z[11])*Js,_[9]=Vl*Pe+cu*Rn+lu*po+Hu*sl,_[10]=Vl*Qe+cu*ur+lu*ko+Hu*Da,_[11]=Vl*wt+cu*zr+lu*Zs+Hu*Ol,_[12]=(Vl=Z[12])*ue+(cu=Z[13])*Wt+(lu=Z[14])*hi+(Hu=Z[15])*Js,_[13]=Vl*Pe+cu*Rn+lu*po+Hu*sl,_[14]=Vl*Qe+cu*ur+lu*ko+Hu*Da,_[15]=Vl*wt+cu*zr+lu*Zs+Hu*Ol,_}Math.hypot||(Math.hypot=function(){for(var _=arguments,R=0,Z=arguments.length;Z--;)R+=_[Z]*_[Z];return Math.sqrt(R)});var lp,lg=jg;function Id(_,R,Z){var ue=R[0],Pe=R[1],Qe=R[2],wt=R[3];return _[0]=Z[0]*ue+Z[4]*Pe+Z[8]*Qe+Z[12]*wt,_[1]=Z[1]*ue+Z[5]*Pe+Z[9]*Qe+Z[13]*wt,_[2]=Z[2]*ue+Z[6]*Pe+Z[10]*Qe+Z[14]*wt,_[3]=Z[3]*ue+Z[7]*Pe+Z[11]*Qe+Z[15]*wt,_}lp=new df(3),df!=Float32Array&&(lp[0]=0,lp[1]=0,lp[2]=0),function(){var _=new df(4);df!=Float32Array&&(_[0]=0,_[1]=0,_[2]=0,_[3]=0)}();var rm=(function(){var _=new df(2);df!=Float32Array&&(_[0]=0,_[1]=0)}(),function(_){function R(Z){_.call(this,Z,Hf)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype.createBucket=function(Z){return new Bd(Z)},R.prototype.queryRadius=function(Z){var ue=Z;return zf("circle-radius",this,ue)+zf("circle-stroke-width",this,ue)+bf(this.paint.get("circle-translate"))},R.prototype.queryIntersectsFeature=function(Z,ue,Pe,Qe,wt,Wt,Rn,ur){for(var zr=Qp(Z,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),Wt.angle,Rn),hi=this.paint.get("circle-radius").evaluate(ue,Pe)+this.paint.get("circle-stroke-width").evaluate(ue,Pe),po=this.paint.get("circle-pitch-alignment")==="map",ko=po?zr:function(kc,ac){return kc.map(function(_d){return Im(_d,ac)})}(zr,ur),Zs=po?hi*Rn:hi,Js=0,sl=Qe;Js_.width||Pe.height>_.height||Z.x>_.width-Pe.width||Z.y>_.height-Pe.height)throw new RangeError("out of range source coordinates for image copy");if(Pe.width>R.width||Pe.height>R.height||ue.x>R.width-Pe.width||ue.y>R.height-Pe.height)throw new RangeError("out of range destination coordinates for image copy");for(var wt=_.data,Wt=R.data,Rn=0;Rn80*Z){ue=Qe=_[0],Pe=wt=_[1];for(var Zs=Z;ZsQe&&(Qe=Wt),Rn>wt&&(wt=Rn);ur=(ur=Math.max(Qe-ue,wt-Pe))!==0?1/ur:0}return a0(po,ko,Z,ue,Pe,ur),ko}function Xf(_,R,Z,ue,Pe){var Qe,wt;if(Pe===rt(_,R,Z,ue)>0)for(Qe=R;Qe=R;Qe-=ue)wt=_e(Qe,_[Qe],_[Qe+1],wt);return wt&&sm(wt,wt.next)&&(at(wt),wt=wt.next),wt}function Zh(_,R){if(!_)return _;R||(R=_);var Z,ue=_;do if(Z=!1,ue.steiner||!sm(ue,ue.next)&&yp(ue.prev,ue,ue.next)!==0)ue=ue.next;else{if(at(ue),(ue=R=ue.prev)===ue.next)break;Z=!0}while(Z||ue!==R);return R}function a0(_,R,Z,ue,Pe,Qe,wt){if(_){!wt&&Qe&&function(zr,hi,po,ko){var Zs=zr;do Zs.z===null&&(Zs.z=Wg(Zs.x,Zs.y,hi,po,ko)),Zs.prevZ=Zs.prev,Zs.nextZ=Zs.next,Zs=Zs.next;while(Zs!==zr);Zs.prevZ.nextZ=null,Zs.prevZ=null,function(Js){var sl,Da,Ol,Vl,cu,lu,Hu,kc,ac=1;do{for(Da=Js,Js=null,cu=null,lu=0;Da;){for(lu++,Ol=Da,Hu=0,sl=0;sl0||kc>0&&Ol;)Hu!==0&&(kc===0||!Ol||Da.z<=Ol.z)?(Vl=Da,Da=Da.nextZ,Hu--):(Vl=Ol,Ol=Ol.nextZ,kc--),cu?cu.nextZ=Vl:Js=Vl,Vl.prevZ=cu,cu=Vl;Da=Ol}cu.nextZ=null,ac*=2}while(lu>1)}(Zs)}(_,ue,Pe,Qe);for(var Wt,Rn,ur=_;_.prev!==_.next;)if(Wt=_.prev,Rn=_.next,Qe?Zg(_,ue,Pe,Qe):k0(_))R.push(Wt.i/Z),R.push(_.i/Z),R.push(Rn.i/Z),at(_),_=Rn.next,ur=Rn.next;else if((_=Rn)===ur){wt?wt===1?a0(_=Vm(Zh(_),R,Z),R,Z,ue,Pe,Qe,2):wt===2&&m0(_,R,Z,ue,Pe,Qe):a0(Zh(_),R,Z,ue,Pe,Qe,1);break}}}function k0(_){var R=_.prev,Z=_,ue=_.next;if(yp(R,Z,ue)>=0)return!1;for(var Pe=_.next.next;Pe!==_.prev;){if(_m(R.x,R.y,Z.x,Z.y,ue.x,ue.y,Pe.x,Pe.y)&&yp(Pe.prev,Pe,Pe.next)>=0)return!1;Pe=Pe.next}return!0}function Zg(_,R,Z,ue){var Pe=_.prev,Qe=_,wt=_.next;if(yp(Pe,Qe,wt)>=0)return!1;for(var Wt=Pe.x>Qe.x?Pe.x>wt.x?Pe.x:wt.x:Qe.x>wt.x?Qe.x:wt.x,Rn=Pe.y>Qe.y?Pe.y>wt.y?Pe.y:wt.y:Qe.y>wt.y?Qe.y:wt.y,ur=Wg(Pe.x=ur&&po&&po.z<=zr;){if(hi!==_.prev&&hi!==_.next&&_m(Pe.x,Pe.y,Qe.x,Qe.y,wt.x,wt.y,hi.x,hi.y)&&yp(hi.prev,hi,hi.next)>=0||(hi=hi.prevZ,po!==_.prev&&po!==_.next&&_m(Pe.x,Pe.y,Qe.x,Qe.y,wt.x,wt.y,po.x,po.y)&&yp(po.prev,po,po.next)>=0))return!1;po=po.nextZ}for(;hi&&hi.z>=ur;){if(hi!==_.prev&&hi!==_.next&&_m(Pe.x,Pe.y,Qe.x,Qe.y,wt.x,wt.y,hi.x,hi.y)&&yp(hi.prev,hi,hi.next)>=0)return!1;hi=hi.prevZ}for(;po&&po.z<=zr;){if(po!==_.prev&&po!==_.next&&_m(Pe.x,Pe.y,Qe.x,Qe.y,wt.x,wt.y,po.x,po.y)&&yp(po.prev,po,po.next)>=0)return!1;po=po.nextZ}return!0}function Vm(_,R,Z){var ue=_;do{var Pe=ue.prev,Qe=ue.next.next;!sm(Pe,Qe)&&Km(Pe,ue,ue.next,Qe)&&pe(Pe,Qe)&&pe(Qe,Pe)&&(R.push(Pe.i/Z),R.push(ue.i/Z),R.push(Qe.i/Z),at(ue),at(ue.next),ue=_=Qe),ue=ue.next}while(ue!==_);return Zh(ue)}function m0(_,R,Z,ue,Pe,Qe){var wt=_;do{for(var Wt=wt.next.next;Wt!==wt.prev;){if(wt.i!==Wt.i&&Um(wt,Wt)){var Rn=H(wt,Wt);return wt=Zh(wt,wt.next),Rn=Zh(Rn,Rn.next),a0(wt,R,Z,ue,Pe,Qe),void a0(Rn,R,Z,ue,Pe,Qe)}Wt=Wt.next}wt=wt.next}while(wt!==_)}function Gm(_,R){return _.x-R.x}function $d(_,R){if(R=function(ue,Pe){var Qe,wt=Pe,Wt=ue.x,Rn=ue.y,ur=-1/0;do{if(Rn<=wt.y&&Rn>=wt.next.y&&wt.next.y!==wt.y){var zr=wt.x+(Rn-wt.y)*(wt.next.x-wt.x)/(wt.next.y-wt.y);if(zr<=Wt&&zr>ur){if(ur=zr,zr===Wt){if(Rn===wt.y)return wt;if(Rn===wt.next.y)return wt.next}Qe=wt.x=wt.x&&wt.x>=ko&&Wt!==wt.x&&_m(RnQe.x||wt.x===Qe.x&&Y0(Qe,wt)))&&(Qe=wt,Js=hi)),wt=wt.next;while(wt!==po);return Qe}(_,R)){var Z=H(R,_);Zh(R,R.next),Zh(Z,Z.next)}}function Y0(_,R){return yp(_.prev,_,R.prev)<0&&yp(R.next,_,_.next)<0}function Wg(_,R,Z,ue,Pe){return(_=1431655765&((_=858993459&((_=252645135&((_=16711935&((_=32767*(_-Z)*Pe)|_<<8))|_<<4))|_<<2))|_<<1))|(R=1431655765&((R=858993459&((R=252645135&((R=16711935&((R=32767*(R-ue)*Pe)|R<<8))|R<<4))|R<<2))|R<<1))<<1}function e0(_){var R=_,Z=_;do(R.x=0&&(_-wt)*(ue-Wt)-(Z-wt)*(R-Wt)>=0&&(Z-wt)*(Qe-Wt)-(Pe-wt)*(ue-Wt)>=0}function Um(_,R){return _.next.i!==R.i&&_.prev.i!==R.i&&!function(Z,ue){var Pe=Z;do{if(Pe.i!==Z.i&&Pe.next.i!==Z.i&&Pe.i!==ue.i&&Pe.next.i!==ue.i&&Km(Pe,Pe.next,Z,ue))return!0;Pe=Pe.next}while(Pe!==Z);return!1}(_,R)&&(pe(_,R)&&pe(R,_)&&function(Z,ue){var Pe=Z,Qe=!1,wt=(Z.x+ue.x)/2,Wt=(Z.y+ue.y)/2;do Pe.y>Wt!=Pe.next.y>Wt&&Pe.next.y!==Pe.y&&wt<(Pe.next.x-Pe.x)*(Wt-Pe.y)/(Pe.next.y-Pe.y)+Pe.x&&(Qe=!Qe),Pe=Pe.next;while(Pe!==Z);return Qe}(_,R)&&(yp(_.prev,_,R.prev)||yp(_,R.prev,R))||sm(_,R)&&yp(_.prev,_,_.next)>0&&yp(R.prev,R,R.next)>0)}function yp(_,R,Z){return(R.y-_.y)*(Z.x-R.x)-(R.x-_.x)*(Z.y-R.y)}function sm(_,R){return _.x===R.x&&_.y===R.y}function Km(_,R,Z,ue){var Pe=Pg(yp(_,R,Z)),Qe=Pg(yp(_,R,ue)),wt=Pg(yp(Z,ue,_)),Wt=Pg(yp(Z,ue,R));return Pe!==Qe&&wt!==Wt||!(Pe!==0||!Ap(_,Z,R))||!(Qe!==0||!Ap(_,ue,R))||!(wt!==0||!Ap(Z,_,ue))||!(Wt!==0||!Ap(Z,R,ue))}function Ap(_,R,Z){return R.x<=Math.max(_.x,Z.x)&&R.x>=Math.min(_.x,Z.x)&&R.y<=Math.max(_.y,Z.y)&&R.y>=Math.min(_.y,Z.y)}function Pg(_){return _>0?1:_<0?-1:0}function pe(_,R){return yp(_.prev,_,_.next)<0?yp(_,R,_.next)>=0&&yp(_,_.prev,R)>=0:yp(_,R,_.prev)<0||yp(_,_.next,R)<0}function H(_,R){var Z=new gn(_.i,_.x,_.y),ue=new gn(R.i,R.x,R.y),Pe=_.next,Qe=R.prev;return _.next=R,R.prev=_,Z.next=Pe,Pe.prev=Z,ue.next=Z,Z.prev=ue,Qe.next=ue,ue.prev=Qe,ue}function _e(_,R,Z,ue){var Pe=new gn(_,R,Z);return ue?(Pe.next=ue.next,Pe.prev=ue,ue.next.prev=Pe,ue.next=Pe):(Pe.prev=Pe,Pe.next=Pe),Pe}function at(_){_.next.prev=_.prev,_.prev.next=_.next,_.prevZ&&(_.prevZ.nextZ=_.nextZ),_.nextZ&&(_.nextZ.prevZ=_.prevZ)}function gn(_,R,Z){this.i=_,this.x=R,this.y=Z,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function rt(_,R,Z,ue){for(var Pe=0,Qe=R,wt=Z-ue;QeRn;){if(ur-Rn>600){var hi=ur-Rn+1,po=Wt-Rn+1,ko=Math.log(hi),Zs=.5*Math.exp(2*ko/3),Js=.5*Math.sqrt(ko*Zs*(hi-Zs)/hi)*(po-hi/2<0?-1:1);Qe(wt,Wt,Math.max(Rn,Math.floor(Wt-po*Zs/hi+Js)),Math.min(ur,Math.floor(Wt+(hi-po)*Zs/hi+Js)),zr)}var sl=wt[Wt],Da=Rn,Ol=ur;for(It(wt,Rn,Wt),zr(wt[ur],sl)>0&&It(wt,Rn,ur);Da0;)Ol--}zr(wt[Rn],sl)===0?It(wt,Rn,Ol):It(wt,++Ol,ur),Ol<=Wt&&(Rn=Ol+1),Wt<=Ol&&(ur=Ol-1)}})(_,R,Z||0,ue||_.length-1,Pe||Ut)}function It(_,R,Z){var ue=_[R];_[R]=_[Z],_[Z]=ue}function Ut(_,R){return _R?1:0}function Vt(_,R){var Z=_.length;if(Z<=1)return[_];for(var ue,Pe,Qe=[],wt=0;wt1)for(var Rn=0;Rn0&&Z.holes.push(ue+=_[Pe-1].length)}return Z},Gp.default=P0;var On=function(_){this.zoom=_.zoom,this.overscaling=_.overscaling,this.layers=_.layers,this.layerIds=this.layers.map(function(R){return R.id}),this.index=_.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new bd,this.indexArray=new Uo,this.indexArray2=new pc,this.programConfigurations=new Mh(_.layers,_.zoom),this.segments=new Xo,this.segments2=new Xo,this.stateDependentLayerIds=this.layers.filter(function(R){return R.isStateDependent()}).map(function(R){return R.id})};On.prototype.populate=function(_,R,Z){this.hasPattern=sn("fill",this.layers,R);for(var ue=this.layers[0].layout.get("fill-sort-key"),Pe=[],Qe=0,wt=_;Qe>3}if(Pe--,ue===1||ue===2)Qe+=_.readSVarint(),wt+=_.readSVarint(),ue===1&&(R&&Wt.push(R),R=[]),R.push(new w(Qe,wt));else{if(ue!==7)throw new Error("unknown command "+ue);R&&R.push(R[0].clone())}}return R&&Wt.push(R),Wt},pr.prototype.bbox=function(){var _=this._pbf;_.pos=this._geometry;for(var R=_.readVarint()+_.pos,Z=1,ue=0,Pe=0,Qe=0,wt=1/0,Wt=-1/0,Rn=1/0,ur=-1/0;_.pos>3}if(ue--,Z===1||Z===2)(Pe+=_.readSVarint())Wt&&(Wt=Pe),(Qe+=_.readSVarint())ur&&(ur=Qe);else if(Z!==7)throw new Error("unknown command "+Z)}return[wt,Rn,Wt,ur]},pr.prototype.toGeoJSON=function(_,R,Z){var ue,Pe,Qe=this.extent*Math.pow(2,Z),wt=this.extent*_,Wt=this.extent*R,Rn=this.loadGeometry(),ur=pr.types[this.type];function zr(ko){for(var Zs=0;Zs>3;Pe=wt===1?ue.readString():wt===2?ue.readFloat():wt===3?ue.readDouble():wt===4?ue.readVarint64():wt===5?ue.readVarint():wt===6?ue.readSVarint():wt===7?ue.readBoolean():null}return Pe}(Z))}function Fi(_,R,Z){if(_===3){var ue=new mo(Z,Z.readVarint()+Z.pos);ue.length&&(R[ue.name]=ue)}}fi.prototype.feature=function(_){if(_<0||_>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[_];var R=this._pbf.readVarint()+this._pbf.pos;return new nr(this._pbf,R,this.extent,this._keys,this._values)};var Eo={VectorTile:function(_,R){this.layers=_.readFields(Fi,{},R)},VectorTileFeature:nr,VectorTileLayer:mo},vo=Eo.VectorTileFeature.types,Rs=Math.pow(2,13);function Dr(_,R,Z,ue,Pe,Qe,wt,Wt){_.emplaceBack(R,Z,2*Math.floor(ue*Rs)+wt,Pe*Rs*2,Qe*Rs*2,Math.round(Wt))}var Ii=function(_){this.zoom=_.zoom,this.overscaling=_.overscaling,this.layers=_.layers,this.layerIds=this.layers.map(function(R){return R.id}),this.index=_.index,this.hasPattern=!1,this.layoutVertexArray=new Hd,this.indexArray=new Uo,this.programConfigurations=new Mh(_.layers,_.zoom),this.segments=new Xo,this.stateDependentLayerIds=this.layers.filter(function(R){return R.isStateDependent()}).map(function(R){return R.id})};function Ir(_,R){return _.x===R.x&&(_.x<0||_.x>8192)||_.y===R.y&&(_.y<0||_.y>8192)}Ii.prototype.populate=function(_,R,Z){this.features=[],this.hasPattern=sn("fill-extrusion",this.layers,R);for(var ue=0,Pe=_;ue8192})||go.every(function(ra){return ra.y<0})||go.every(function(ra){return ra.y>8192})))for(var Js=0,sl=0;sl=1){var Ol=Zs[sl-1];if(!Ir(Da,Ol)){hi.vertexLength+4>Xo.MAX_VERTEX_ARRAY_LENGTH&&(hi=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var Vl=Da.sub(Ol)._perp()._unit(),cu=Ol.dist(Da);Js+cu>32768&&(Js=0),Dr(this.layoutVertexArray,Da.x,Da.y,Vl.x,Vl.y,0,0,Js),Dr(this.layoutVertexArray,Da.x,Da.y,Vl.x,Vl.y,0,1,Js),Dr(this.layoutVertexArray,Ol.x,Ol.y,Vl.x,Vl.y,0,0,Js+=cu),Dr(this.layoutVertexArray,Ol.x,Ol.y,Vl.x,Vl.y,0,1,Js);var lu=hi.vertexLength;this.indexArray.emplaceBack(lu,lu+2,lu+1),this.indexArray.emplaceBack(lu+1,lu+2,lu+3),hi.vertexLength+=4,hi.primitiveLength+=2}}}}if(hi.vertexLength+Rn>Xo.MAX_VERTEX_ARRAY_LENGTH&&(hi=this.segments.prepareSegment(Rn,this.layoutVertexArray,this.indexArray)),vo[_.type]==="Polygon"){for(var Hu=[],kc=[],ac=hi.vertexLength,_d=0,Xu=Wt;_d=2&&_[Rn-1].equals(_[Rn-2]);)Rn--;for(var ur=0;ur0;if(kc&&Da>ur){var _d=zr.dist(ko);if(_d>2*hi){var Xu=zr.sub(zr.sub(ko)._mult(hi/_d)._round());this.updateDistance(ko,Xu),this.addCurrentVertex(Xu,Js,0,0,po),ko=Xu}}var Nd=ko&&Zs,Yt=Nd?Z:Wt?"butt":ue;if(Nd&&Yt==="round"&&(luPe&&(Yt="bevel"),Yt==="bevel"&&(lu>2&&(Yt="flipbevel"),lu100)Ol=sl.mult(-1);else{var Mn=lu*Js.add(sl).mag()/Js.sub(sl).mag();Ol._perp()._mult(Mn*(ac?-1:1))}this.addCurrentVertex(zr,Ol,0,0,po),this.addCurrentVertex(zr,Ol.mult(-1),0,0,po)}else if(Yt==="bevel"||Yt==="fakeround"){var dr=-Math.sqrt(lu*lu-1),Wr=ac?dr:0,go=ac?0:dr;if(ko&&this.addCurrentVertex(zr,Js,Wr,go,po),Yt==="fakeround")for(var ra=Math.round(180*Hu/Math.PI/20),Ga=1;Ga2*hi){var ph=zr.add(Zs.sub(zr)._mult(hi/Xc)._round());this.updateDistance(zr,ph),this.addCurrentVertex(ph,sl,0,0,po),zr=ph}}}}},Ls.prototype.addCurrentVertex=function(_,R,Z,ue,Pe,Qe){Qe===void 0&&(Qe=!1);var wt=R.y*ue-R.x,Wt=-R.y-R.x*ue;this.addHalfVertex(_,R.x+R.y*Z,R.y-R.x*Z,Qe,!1,Z,Pe),this.addHalfVertex(_,wt,Wt,Qe,!0,-ue,Pe),this.distance>hs/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(_,R,Z,ue,Pe,Qe))},Ls.prototype.addHalfVertex=function(_,R,Z,ue,Pe,Qe,wt){var Wt=.5*(this.lineClips?this.scaledDistance*(hs-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((_.x<<1)+(ue?1:0),(_.y<<1)+(Pe?1:0),Math.round(63*R)+128,Math.round(63*Z)+128,1+(Qe===0?0:Qe<0?-1:1)|(63&Wt)<<2,Wt>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);var Rn=wt.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,Rn),wt.primitiveLength++),Pe?this.e2=Rn:this.e1=Rn},Ls.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},Ls.prototype.updateDistance=function(_,R){this.distance+=_.dist(R),this.updateScaledDistance()},Qc("LineBucket",Ls,{omit:["layers","patternFeatures"]});var Ye=new Dp({"line-cap":new Od(rn.layout_line["line-cap"]),"line-join":new td(rn.layout_line["line-join"]),"line-miter-limit":new Od(rn.layout_line["line-miter-limit"]),"line-round-limit":new Od(rn.layout_line["line-round-limit"]),"line-sort-key":new td(rn.layout_line["line-sort-key"])}),gt={paint:new Dp({"line-opacity":new td(rn.paint_line["line-opacity"]),"line-color":new td(rn.paint_line["line-color"]),"line-translate":new Od(rn.paint_line["line-translate"]),"line-translate-anchor":new Od(rn.paint_line["line-translate-anchor"]),"line-width":new td(rn.paint_line["line-width"]),"line-gap-width":new td(rn.paint_line["line-gap-width"]),"line-offset":new td(rn.paint_line["line-offset"]),"line-blur":new td(rn.paint_line["line-blur"]),"line-dasharray":new _f(rn.paint_line["line-dasharray"]),"line-pattern":new Tp(rn.paint_line["line-pattern"]),"line-gradient":new Hh(rn.paint_line["line-gradient"])}),layout:Ye},Ft=new(function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype.possiblyEvaluate=function(Z,ue){return ue=new Md(Math.floor(ue.zoom),{now:ue.now,fadeDuration:ue.fadeDuration,zoomHistory:ue.zoomHistory,transition:ue.transition}),_.prototype.possiblyEvaluate.call(this,Z,ue)},R.prototype.evaluate=function(Z,ue,Pe,Qe){return ue=J({},ue,{zoom:Math.floor(ue.zoom)}),_.prototype.evaluate.call(this,Z,ue,Pe,Qe)},R}(td))(gt.paint.properties["line-width"].specification);Ft.useIntegerZoom=!0;var Dt=function(_){function R(Z){_.call(this,Z,gt),this.gradientVersion=0}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._handleSpecialPaintPropertyUpdate=function(Z){Z==="line-gradient"&&(this.stepInterpolant=this._transitionablePaint._values["line-gradient"].value.expression._styleExpression.expression instanceof Ma,this.gradientVersion=(this.gradientVersion+1)%f)},R.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},R.prototype.recalculate=function(Z,ue){_.prototype.recalculate.call(this,Z,ue),this.paint._values["line-floorwidth"]=Ft.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,Z)},R.prototype.createBucket=function(Z){return new Ls(Z)},R.prototype.queryRadius=function(Z){var ue=Z,Pe=$t(zf("line-width",this,ue),zf("line-gap-width",this,ue)),Qe=zf("line-offset",this,ue);return Pe/2+Math.abs(Qe)+bf(this.paint.get("line-translate"))},R.prototype.queryIntersectsFeature=function(Z,ue,Pe,Qe,wt,Wt,Rn){var ur=Qp(Z,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),Wt.angle,Rn),zr=Rn/2*$t(this.paint.get("line-width").evaluate(ue,Pe),this.paint.get("line-gap-width").evaluate(ue,Pe)),hi=this.paint.get("line-offset").evaluate(ue,Pe);return hi&&(Qe=function(po,ko){for(var Zs=[],Js=new w(0,0),sl=0;sl=3){for(var Da=0;Da0?R+2*_:_}var Gt=_h([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),Pr=_h([{name:"a_projected_pos",components:3,type:"Float32"}],4),Tn=(_h([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),_h([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),Sn=(_h([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]),_h([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),cn=_h([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function qn(_,R,Z){return _.sections.forEach(function(ue){ue.text=function(Pe,Qe,wt){var Wt=Qe.layout.get("text-transform").evaluate(wt,{});return Wt==="uppercase"?Pe=Pe.toLocaleUpperCase():Wt==="lowercase"&&(Pe=Pe.toLocaleLowerCase()),ag.applyArabicShaping&&(Pe=ag.applyArabicShaping(Pe)),Pe}(ue.text,R,Z)}),_}_h([{name:"triangle",components:3,type:"Uint16"}]),_h([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),_h([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),_h([{type:"Float32",name:"offsetX"}]),_h([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var br={"!":"\uFE15","#":"\uFF03",$:"\uFF04","%":"\uFF05","&":"\uFF06","(":"\uFE35",")":"\uFE36","*":"\uFF0A","+":"\uFF0B",",":"\uFE10","-":"\uFE32",".":"\u30FB","/":"\uFF0F",":":"\uFE13",";":"\uFE14","<":"\uFE3F","=":"\uFF1D",">":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"},So=function(_,R,Z,ue,Pe){var Qe,wt,Wt=8*Pe-ue-1,Rn=(1<>1,zr=-7,hi=Z?Pe-1:0,po=Z?-1:1,ko=_[R+hi];for(hi+=po,Qe=ko&(1<<-zr)-1,ko>>=-zr,zr+=Wt;zr>0;Qe=256*Qe+_[R+hi],hi+=po,zr-=8);for(wt=Qe&(1<<-zr)-1,Qe>>=-zr,zr+=ue;zr>0;wt=256*wt+_[R+hi],hi+=po,zr-=8);if(Qe===0)Qe=1-ur;else{if(Qe===Rn)return wt?NaN:1/0*(ko?-1:1);wt+=Math.pow(2,ue),Qe-=ur}return(ko?-1:1)*wt*Math.pow(2,Qe-ue)},kt=function(_,R,Z,ue,Pe,Qe){var wt,Wt,Rn,ur=8*Qe-Pe-1,zr=(1<>1,po=Pe===23?Math.pow(2,-24)-Math.pow(2,-77):0,ko=ue?0:Qe-1,Zs=ue?1:-1,Js=R<0||R===0&&1/R<0?1:0;for(R=Math.abs(R),isNaN(R)||R===1/0?(Wt=isNaN(R)?1:0,wt=zr):(wt=Math.floor(Math.log(R)/Math.LN2),R*(Rn=Math.pow(2,-wt))<1&&(wt--,Rn*=2),(R+=wt+hi>=1?po/Rn:po*Math.pow(2,1-hi))*Rn>=2&&(wt++,Rn/=2),wt+hi>=zr?(Wt=0,wt=zr):wt+hi>=1?(Wt=(R*Rn-1)*Math.pow(2,Pe),wt+=hi):(Wt=R*Math.pow(2,hi-1)*Math.pow(2,Pe),wt=0));Pe>=8;_[Z+ko]=255&Wt,ko+=Zs,Wt/=256,Pe-=8);for(wt=wt<0;_[Z+ko]=255&wt,ko+=Zs,wt/=256,ur-=8);_[Z+ko-Zs]|=128*Js},er=An;function An(_){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(_)?_:new Uint8Array(_||0),this.pos=0,this.type=0,this.length=this.buf.length}An.Varint=0,An.Fixed64=1,An.Bytes=2,An.Fixed32=5;var rr=typeof TextDecoder=="undefined"?null:new TextDecoder("utf8");function cr(_){return _.type===An.Bytes?_.readVarint()+_.pos:_.pos+1}function Br(_,R,Z){return Z?4294967296*R+(_>>>0):4294967296*(R>>>0)+(_>>>0)}function Ai(_,R,Z){var ue=R<=16383?1:R<=2097151?2:R<=268435455?3:Math.floor(Math.log(R)/(7*Math.LN2));Z.realloc(ue);for(var Pe=Z.pos-1;Pe>=_;Pe--)Z.buf[Pe+ue]=Z.buf[Pe]}function De(_,R){for(var Z=0;Z<_.length;Z++)R.writeVarint(_[Z])}function Zo(_,R){for(var Z=0;Z<_.length;Z++)R.writeSVarint(_[Z])}function js(_,R){for(var Z=0;Z<_.length;Z++)R.writeFloat(_[Z])}function ba(_,R){for(var Z=0;Z<_.length;Z++)R.writeDouble(_[Z])}function sa(_,R){for(var Z=0;Z<_.length;Z++)R.writeBoolean(_[Z])}function Ps(_,R){for(var Z=0;Z<_.length;Z++)R.writeFixed32(_[Z])}function ha(_,R){for(var Z=0;Z<_.length;Z++)R.writeSFixed32(_[Z])}function To(_,R){for(var Z=0;Z<_.length;Z++)R.writeFixed64(_[Z])}function ir(_,R){for(var Z=0;Z<_.length;Z++)R.writeSFixed64(_[Z])}function xi(_,R){return(_[R]|_[R+1]<<8|_[R+2]<<16)+16777216*_[R+3]}function ji(_,R,Z){_[Z]=R,_[Z+1]=R>>>8,_[Z+2]=R>>>16,_[Z+3]=R>>>24}function is(_,R){return(_[R]|_[R+1]<<8|_[R+2]<<16)+(_[R+3]<<24)}function Ds(_,R,Z){_===1&&Z.readMessage(aa,R)}function aa(_,R,Z){if(_===3){var ue=Z.readMessage(Ho,{}),Pe=ue.width,Qe=ue.height,wt=ue.left,Wt=ue.top,Rn=ue.advance;R.push({id:ue.id,bitmap:new Lg({width:Pe+6,height:Qe+6},ue.bitmap),metrics:{width:Pe,height:Qe,left:wt,top:Wt,advance:Rn}})}}function Ho(_,R,Z){_===1?R.id=Z.readVarint():_===2?R.bitmap=Z.readBytes():_===3?R.width=Z.readVarint():_===4?R.height=Z.readVarint():_===5?R.left=Z.readSVarint():_===6?R.top=Z.readSVarint():_===7&&(R.advance=Z.readVarint())}function or(_){for(var R=0,Z=0,ue=0,Pe=_;ue=0;po--){var ko=wt[po];if(!(hi.w>ko.w||hi.h>ko.h)){if(hi.x=ko.x,hi.y=ko.y,Rn=Math.max(Rn,hi.y+hi.h),Wt=Math.max(Wt,hi.x+hi.w),hi.w===ko.w&&hi.h===ko.h){var Zs=wt.pop();po>3,Qe=this.pos;this.type=7&ue,_(Pe,R,this),this.pos===Qe&&this.skip(ue)}return R},readMessage:function(_,R){return this.readFields(_,R,this.readVarint()+this.pos)},readFixed32:function(){var _=xi(this.buf,this.pos);return this.pos+=4,_},readSFixed32:function(){var _=is(this.buf,this.pos);return this.pos+=4,_},readFixed64:function(){var _=xi(this.buf,this.pos)+4294967296*xi(this.buf,this.pos+4);return this.pos+=8,_},readSFixed64:function(){var _=xi(this.buf,this.pos)+4294967296*is(this.buf,this.pos+4);return this.pos+=8,_},readFloat:function(){var _=So(this.buf,this.pos,!0,23,4);return this.pos+=4,_},readDouble:function(){var _=So(this.buf,this.pos,!0,52,8);return this.pos+=8,_},readVarint:function(_){var R,Z,ue=this.buf;return R=127&(Z=ue[this.pos++]),Z<128?R:(R|=(127&(Z=ue[this.pos++]))<<7,Z<128?R:(R|=(127&(Z=ue[this.pos++]))<<14,Z<128?R:(R|=(127&(Z=ue[this.pos++]))<<21,Z<128?R:function(Pe,Qe,wt){var Wt,Rn,ur=wt.buf;if(Wt=(112&(Rn=ur[wt.pos++]))>>4,Rn<128||(Wt|=(127&(Rn=ur[wt.pos++]))<<3,Rn<128)||(Wt|=(127&(Rn=ur[wt.pos++]))<<10,Rn<128)||(Wt|=(127&(Rn=ur[wt.pos++]))<<17,Rn<128)||(Wt|=(127&(Rn=ur[wt.pos++]))<<24,Rn<128)||(Wt|=(1&(Rn=ur[wt.pos++]))<<31,Rn<128))return Br(Pe,Wt,Qe);throw new Error("Expected varint not more than 10 bytes")}(R|=(15&(Z=ue[this.pos]))<<28,_,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var _=this.readVarint();return _%2==1?(_+1)/-2:_/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var _=this.readVarint()+this.pos,R=this.pos;return this.pos=_,_-R>=12&&rr?function(Z,ue,Pe){return rr.decode(Z.subarray(ue,Pe))}(this.buf,R,_):function(Z,ue,Pe){for(var Qe="",wt=ue;wt239?4:zr>223?3:zr>191?2:1;if(wt+po>Pe)break;po===1?zr<128&&(hi=zr):po===2?(192&(Wt=Z[wt+1]))==128&&(hi=(31&zr)<<6|63&Wt)<=127&&(hi=null):po===3?(Rn=Z[wt+2],(192&(Wt=Z[wt+1]))==128&&(192&Rn)==128&&((hi=(15&zr)<<12|(63&Wt)<<6|63&Rn)<=2047||hi>=55296&&hi<=57343)&&(hi=null)):po===4&&(Rn=Z[wt+2],ur=Z[wt+3],(192&(Wt=Z[wt+1]))==128&&(192&Rn)==128&&(192&ur)==128&&((hi=(15&zr)<<18|(63&Wt)<<12|(63&Rn)<<6|63&ur)<=65535||hi>=1114112)&&(hi=null)),hi===null?(hi=65533,po=1):hi>65535&&(hi-=65536,Qe+=String.fromCharCode(hi>>>10&1023|55296),hi=56320|1023&hi),Qe+=String.fromCharCode(hi),wt+=po}return Qe}(this.buf,R,_)},readBytes:function(){var _=this.readVarint()+this.pos,R=this.buf.subarray(this.pos,_);return this.pos=_,R},readPackedVarint:function(_,R){if(this.type!==An.Bytes)return _.push(this.readVarint(R));var Z=cr(this);for(_=_||[];this.pos127;);else if(R===An.Bytes)this.pos=this.readVarint()+this.pos;else if(R===An.Fixed32)this.pos+=4;else{if(R!==An.Fixed64)throw new Error("Unimplemented type: "+R);this.pos+=8}},writeTag:function(_,R){this.writeVarint(_<<3|R)},realloc:function(_){for(var R=this.length||16;R268435455||_<0?function(R,Z){var ue,Pe;if(R>=0?(ue=R%4294967296|0,Pe=R/4294967296|0):(Pe=~(-R/4294967296),4294967295^(ue=~(-R%4294967296))?ue=ue+1|0:(ue=0,Pe=Pe+1|0)),R>=18446744073709552e3||R<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");Z.realloc(10),function(Qe,wt,Wt){Wt.buf[Wt.pos++]=127&Qe|128,Qe>>>=7,Wt.buf[Wt.pos++]=127&Qe|128,Qe>>>=7,Wt.buf[Wt.pos++]=127&Qe|128,Qe>>>=7,Wt.buf[Wt.pos++]=127&Qe|128,Wt.buf[Wt.pos]=127&(Qe>>>=7)}(ue,0,Z),function(Qe,wt){var Wt=(7&Qe)<<4;wt.buf[wt.pos++]|=Wt|((Qe>>>=3)?128:0),Qe&&(wt.buf[wt.pos++]=127&Qe|((Qe>>>=7)?128:0),Qe&&(wt.buf[wt.pos++]=127&Qe|((Qe>>>=7)?128:0),Qe&&(wt.buf[wt.pos++]=127&Qe|((Qe>>>=7)?128:0),Qe&&(wt.buf[wt.pos++]=127&Qe|((Qe>>>=7)?128:0),Qe&&(wt.buf[wt.pos++]=127&Qe)))))}(Pe,Z)}(_,this):(this.realloc(4),this.buf[this.pos++]=127&_|(_>127?128:0),_<=127||(this.buf[this.pos++]=127&(_>>>=7)|(_>127?128:0),_<=127||(this.buf[this.pos++]=127&(_>>>=7)|(_>127?128:0),_<=127||(this.buf[this.pos++]=_>>>7&127))))},writeSVarint:function(_){this.writeVarint(_<0?2*-_-1:2*_)},writeBoolean:function(_){this.writeVarint(!!_)},writeString:function(_){_=String(_),this.realloc(4*_.length),this.pos++;var R=this.pos;this.pos=function(ue,Pe,Qe){for(var wt,Wt,Rn=0;Rn55295&&wt<57344){if(!Wt){wt>56319||Rn+1===Pe.length?(ue[Qe++]=239,ue[Qe++]=191,ue[Qe++]=189):Wt=wt;continue}if(wt<56320){ue[Qe++]=239,ue[Qe++]=191,ue[Qe++]=189,Wt=wt;continue}wt=Wt-55296<<10|wt-56320|65536,Wt=null}else Wt&&(ue[Qe++]=239,ue[Qe++]=191,ue[Qe++]=189,Wt=null);wt<128?ue[Qe++]=wt:(wt<2048?ue[Qe++]=wt>>6|192:(wt<65536?ue[Qe++]=wt>>12|224:(ue[Qe++]=wt>>18|240,ue[Qe++]=wt>>12&63|128),ue[Qe++]=wt>>6&63|128),ue[Qe++]=63&wt|128)}return Qe}(this.buf,_,this.pos);var Z=this.pos-R;Z>=128&&Ai(R,Z,this),this.pos=R-1,this.writeVarint(Z),this.pos+=Z},writeFloat:function(_){this.realloc(4),kt(this.buf,_,this.pos,!0,23,4),this.pos+=4},writeDouble:function(_){this.realloc(8),kt(this.buf,_,this.pos,!0,52,8),this.pos+=8},writeBytes:function(_){var R=_.length;this.writeVarint(R),this.realloc(R);for(var Z=0;Z=128&&Ai(Z,ue,this),this.pos=Z-1,this.writeVarint(ue),this.pos+=ue},writeMessage:function(_,R,Z){this.writeTag(_,An.Bytes),this.writeRawMessage(R,Z)},writePackedVarint:function(_,R){R.length&&this.writeMessage(_,De,R)},writePackedSVarint:function(_,R){R.length&&this.writeMessage(_,Zo,R)},writePackedBoolean:function(_,R){R.length&&this.writeMessage(_,sa,R)},writePackedFloat:function(_,R){R.length&&this.writeMessage(_,js,R)},writePackedDouble:function(_,R){R.length&&this.writeMessage(_,ba,R)},writePackedFixed32:function(_,R){R.length&&this.writeMessage(_,Ps,R)},writePackedSFixed32:function(_,R){R.length&&this.writeMessage(_,ha,R)},writePackedFixed64:function(_,R){R.length&&this.writeMessage(_,To,R)},writePackedSFixed64:function(_,R){R.length&&this.writeMessage(_,ir,R)},writeBytesField:function(_,R){this.writeTag(_,An.Bytes),this.writeBytes(R)},writeFixed32Field:function(_,R){this.writeTag(_,An.Fixed32),this.writeFixed32(R)},writeSFixed32Field:function(_,R){this.writeTag(_,An.Fixed32),this.writeSFixed32(R)},writeFixed64Field:function(_,R){this.writeTag(_,An.Fixed64),this.writeFixed64(R)},writeSFixed64Field:function(_,R){this.writeTag(_,An.Fixed64),this.writeSFixed64(R)},writeVarintField:function(_,R){this.writeTag(_,An.Varint),this.writeVarint(R)},writeSVarintField:function(_,R){this.writeTag(_,An.Varint),this.writeSVarint(R)},writeStringField:function(_,R){this.writeTag(_,An.Bytes),this.writeString(R)},writeFloatField:function(_,R){this.writeTag(_,An.Fixed32),this.writeFloat(R)},writeDoubleField:function(_,R){this.writeTag(_,An.Fixed64),this.writeDouble(R)},writeBooleanField:function(_,R){this.writeVarintField(_,!!R)}};var eo=function(_,R){var Z=R.pixelRatio,ue=R.version,Pe=R.stretchX,Qe=R.stretchY,wt=R.content;this.paddedRect=_,this.pixelRatio=Z,this.stretchX=Pe,this.stretchY=Qe,this.content=wt,this.version=ue},vs={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};vs.tl.get=function(){return[this.paddedRect.x+1,this.paddedRect.y+1]},vs.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]},vs.tlbr.get=function(){return this.tl.concat(this.br)},vs.displaySize.get=function(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]},Object.defineProperties(eo.prototype,vs);var ul=function(_,R){var Z={},ue={};this.haveRenderCallbacks=[];var Pe=[];this.addImages(_,Z,Pe),this.addImages(R,ue,Pe);var Qe=or(Pe),wt=new ug({width:Qe.w||1,height:Qe.h||1});for(var Wt in _){var Rn=_[Wt],ur=Z[Wt].paddedRect;ug.copy(Rn.data,wt,{x:0,y:0},{x:ur.x+1,y:ur.y+1},Rn.data)}for(var zr in R){var hi=R[zr],po=ue[zr].paddedRect,ko=po.x+1,Zs=po.y+1,Js=hi.data.width,sl=hi.data.height;ug.copy(hi.data,wt,{x:0,y:0},{x:ko,y:Zs},hi.data),ug.copy(hi.data,wt,{x:0,y:sl-1},{x:ko,y:Zs-1},{width:Js,height:1}),ug.copy(hi.data,wt,{x:0,y:0},{x:ko,y:Zs+sl},{width:Js,height:1}),ug.copy(hi.data,wt,{x:Js-1,y:0},{x:ko-1,y:Zs},{width:1,height:sl}),ug.copy(hi.data,wt,{x:0,y:0},{x:ko+Js,y:Zs},{width:1,height:sl})}this.image=wt,this.iconPositions=Z,this.patternPositions=ue};ul.prototype.addImages=function(_,R,Z){for(var ue in _){var Pe=_[ue],Qe={x:0,y:0,w:Pe.data.width+2,h:Pe.data.height+2};Z.push(Qe),R[ue]=new eo(Qe,Pe),Pe.hasRenderCallback&&this.haveRenderCallbacks.push(ue)}},ul.prototype.patchUpdatedImages=function(_,R){for(var Z in _.dispatchRenderCallbacks(this.haveRenderCallbacks),_.updatedImages)this.patchUpdatedImage(this.iconPositions[Z],_.getImage(Z),R),this.patchUpdatedImage(this.patternPositions[Z],_.getImage(Z),R)},ul.prototype.patchUpdatedImage=function(_,R,Z){if(_&&R&&_.version!==R.version){_.version=R.version;var ue=_.tl;Z.update(R.data,void 0,{x:ue[0],y:ue[1]})}},Qc("ImagePosition",eo),Qc("ImageAtlas",ul);var Dl={horizontal:1,vertical:2,horizontalOnly:3},Oa=function(){this.scale=1,this.fontStack="",this.imageName=null};Oa.forText=function(_,R){var Z=new Oa;return Z.scale=_||1,Z.fontStack=R,Z},Oa.forImage=function(_){var R=new Oa;return R.imageName=_,R};var _s=function(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null};function wl(_,R,Z,ue,Pe,Qe,wt,Wt,Rn,ur,zr,hi,po,ko,Zs,Js){var sl,Da=_s.fromFeature(_,Pe);hi===Dl.vertical&&Da.verticalizePunctuation();var Ol=ag.processBidirectionalText,Vl=ag.processStyledBidirectionalText;if(Ol&&Da.sections.length===1){sl=[];for(var cu=0,lu=Ol(Da.toString(),$l(Da,ur,Qe,R,ue,ko,Zs));cu0&&Ip>Ef&&(Ef=Ip)}else{var qf=ra[Fd.fontStack],kp=qf&&qf[Tg];if(kp&&kp.rect)gf=kp.rect,Sp=kp.metrics;else{var Xp=go[Fd.fontStack],rp=Xp&&Xp[Tg];if(!rp)continue;Sp=rp.metrics}cm=24*(Yf-Fd.scale)}Nu?(Wr.verticalizable=!0,kd.push({glyph:Tg,imageName:Kp,x:wh,y:cg+cm,vertical:Nu,scale:Fd.scale,fontStack:Fd.fontStack,sectionIndex:$h,metrics:Sp,rect:gf}),wh+=Of*Fd.scale+ph):(kd.push({glyph:Tg,imageName:Kp,x:wh,y:cg+cm,vertical:Nu,scale:Fd.scale,fontStack:Fd.fontStack,sectionIndex:$h,metrics:Sp,rect:gf}),wh+=Sp.advance*Fd.scale+ph)}kd.length!==0&&(yg=Math.max(wh-ph,yg),tu(kd,0,kd.length-1,nf,Ef)),wh=0;var Em=Xl*Yf+Ef;Mf.lineOffset=Math.max(Ef,em),cg+=Em,Fh=Math.max(Em,Fh),++Ko}else cg+=Xl,++Ko}var Kg,dg=cg- -17,Xg=su(wu),og=Xg.horizontalAlign,hg=Xg.verticalAlign;(function(Yp,z0,gy,H0,q_,lv,vy,q0,Uy){var Cv,gv=(z0-gy)*q_;Cv=lv!==vy?-q0*H0- -17:(-H0*Uy+.5)*vy;for(var c1=0,wv=Yp;c1=0&&ue>=_&&nl[this.text.charCodeAt(ue)];ue--)Z--;this.text=this.text.substring(_,Z),this.sectionIndex=this.sectionIndex.slice(_,Z)},_s.prototype.substring=function(_,R){var Z=new _s;return Z.text=this.text.substring(_,R),Z.sectionIndex=this.sectionIndex.slice(_,R),Z.sections=this.sections,Z},_s.prototype.toString=function(){return this.text},_s.prototype.getMaxScale=function(){var _=this;return this.sectionIndex.reduce(function(R,Z){return Math.max(R,_.sections[Z].scale)},0)},_s.prototype.addTextSection=function(_,R){this.text+=_.text,this.sections.push(Oa.forText(_.scale,_.fontStack||R));for(var Z=this.sections.length-1,ue=0;ue<_.text.length;++ue)this.sectionIndex.push(Z)},_s.prototype.addImageSection=function(_){var R=_.image?_.image.name:"";if(R.length!==0){var Z=this.getNextImageSectionCharCode();Z?(this.text+=String.fromCharCode(Z),this.sections.push(Oa.forImage(R)),this.sectionIndex.push(this.sections.length-1)):xe("Reached maximum number of images 6401")}else xe("Can't add FormattedSection with an empty image.")},_s.prototype.getNextImageSectionCharCode=function(){return this.imageSectionID?this.imageSectionID>=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var nl={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},mc={};function pl(_,R,Z,ue,Pe,Qe){if(R.imageName){var wt=ue[R.imageName];return wt?wt.displaySize[0]*R.scale*24/Qe+Pe:0}var Wt=Z[R.fontStack],Rn=Wt&&Wt[_];return Rn?Rn.metrics.advance*R.scale+Pe:0}function ic(_,R,Z,ue){var Pe=Math.pow(_-R,2);return ue?_=0,hi=0,po=0;po<_.length();po++){var ko=_.getSection(po),Zs=_.getCharCode(po);if(nl[Zs]||(hi+=pl(Zs,ko,ue,Pe,R,wt)),po<_.length()-1){var Js=!((Wt=Zs)<11904||!(Qu["Bopomofo Extended"](Wt)||Qu.Bopomofo(Wt)||Qu["CJK Compatibility Forms"](Wt)||Qu["CJK Compatibility Ideographs"](Wt)||Qu["CJK Compatibility"](Wt)||Qu["CJK Radicals Supplement"](Wt)||Qu["CJK Strokes"](Wt)||Qu["CJK Symbols and Punctuation"](Wt)||Qu["CJK Unified Ideographs Extension A"](Wt)||Qu["CJK Unified Ideographs"](Wt)||Qu["Enclosed CJK Letters and Months"](Wt)||Qu["Halfwidth and Fullwidth Forms"](Wt)||Qu.Hiragana(Wt)||Qu["Ideographic Description Characters"](Wt)||Qu["Kangxi Radicals"](Wt)||Qu["Katakana Phonetic Extensions"](Wt)||Qu.Katakana(Wt)||Qu["Vertical Forms"](Wt)||Qu["Yi Radicals"](Wt)||Qu["Yi Syllables"](Wt)));(mc[Zs]||Js||ko.imageName)&&Rn.push(qu(po+1,hi,ur,Rn,va(Zs,_.getCharCode(po+1),Js&&zr),!1))}}return function sl(Da){return Da?sl(Da.priorBreak).concat(Da.index):[]}(qu(_.length(),hi,ur,Rn,0,!0))}function su(_){var R=.5,Z=.5;switch(_){case"right":case"top-right":case"bottom-right":R=1;break;case"left":case"top-left":case"bottom-left":R=0}switch(_){case"bottom":case"bottom-right":case"bottom-left":Z=1;break;case"top":case"top-right":case"top-left":Z=0}return{horizontalAlign:R,verticalAlign:Z}}function tu(_,R,Z,ue,Pe){if(ue||Pe)for(var Qe=_[Z],wt=(_[Z].x+Qe.metrics.advance*Qe.scale)*ue,Wt=R;Wt<=Z;Wt++)_[Wt].x-=wt,_[Wt].y+=Pe}function Gs(_,R,Z,ue,Pe,Qe){var wt,Wt=_.image;if(Wt.content){var Rn=Wt.content,ur=Wt.pixelRatio||1;wt=[Rn[0]/ur,Rn[1]/ur,Wt.displaySize[0]-Rn[2]/ur,Wt.displaySize[1]-Rn[3]/ur]}var zr,hi,po,ko,Zs=R.left*Qe,Js=R.right*Qe;Z==="width"||Z==="both"?(ko=Pe[0]+Zs-ue[3],hi=Pe[0]+Js+ue[1]):hi=(ko=Pe[0]+(Zs+Js-Wt.displaySize[0])/2)+Wt.displaySize[0];var sl=R.top*Qe,Da=R.bottom*Qe;return Z==="height"||Z==="both"?(zr=Pe[1]+sl-ue[0],po=Pe[1]+Da+ue[2]):po=(zr=Pe[1]+(sl+Da-Wt.displaySize[1])/2)+Wt.displaySize[1],{image:Wt,top:zr,right:hi,bottom:po,left:ko,collisionPadding:wt}}mc[10]=!0,mc[32]=!0,mc[38]=!0,mc[40]=!0,mc[41]=!0,mc[43]=!0,mc[45]=!0,mc[47]=!0,mc[173]=!0,mc[183]=!0,mc[8203]=!0,mc[8208]=!0,mc[8211]=!0,mc[8231]=!0;var Kc=function(_){function R(Z,ue,Pe,Qe){_.call(this,Z,ue),this.angle=Pe,Qe!==void 0&&(this.segment=Qe)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype.clone=function(){return new R(this.x,this.y,this.angle,this.segment)},R}(w);function Le(_,R){var Z=R.expression;if(Z.kind==="constant")return{kind:"constant",layoutSize:Z.evaluate(new Md(_+1))};if(Z.kind==="source")return{kind:"source"};for(var ue=Z.zoomStops,Pe=Z.interpolationType,Qe=0;Qe-Z/2;){if(--wt<0)return!1;Wt-=_[wt].dist(Qe),Qe=_[wt]}Wt+=_[wt].dist(_[wt+1]),wt++;for(var Rn=[],ur=0;Wtue;)ur-=Rn.shift().angleDelta;if(ur>Pe)return!1;wt++,Wt+=zr.dist(hi)}return!0}function Cn(_){for(var R=0,Z=0;Z<_.length-1;Z++)R+=_[Z].dist(_[Z+1]);return R}function ei(_,R,Z){return _?.6*R*Z:0}function Li(_,R){return Math.max(_?_.right-_.left:0,R?R.right-R.left:0)}function ps(_,R,Z,ue,Pe,Qe){for(var wt=ei(Z,Pe,Qe),Wt=Li(Z,ue)*Qe,Rn=0,ur=Cn(_)/2,zr=0;zr<_.length-1;zr++){var hi=_[zr],po=_[zr+1],ko=hi.dist(po);if(Rn+ko>ur){var Zs=(ur-Rn)/ko,Js=gl(hi.x,po.x,Zs),sl=gl(hi.y,po.y,Zs),Da=new Kc(Js,sl,po.angleTo(hi),zr);return Da._round(),!wt||Lr(_,Da,Wt,wt,R)?Da:void 0}Rn+=ko}}function xa(_,R,Z,ue,Pe,Qe,wt,Wt,Rn){var ur=ei(ue,Qe,wt),zr=Li(ue,Pe),hi=zr*wt,po=_[0].x===0||_[0].x===Rn||_[0].y===0||_[0].y===Rn;return R-hi=0&&Ga=0&&Aa=0&&Xu+kc<=ac){var Xl=new Kc(Ga,Aa,go,Yt);Xl._round(),Da&&!Lr(Zs,Xl,Vl,Da,Ol)||Nd.push(Xl)}}_d+=Wr}return lu||Nd.length||cu||(Nd=ko(Zs,_d/2,sl,Da,Ol,Vl,cu,!0,Hu)),Nd}(_,po?R/2*Wt%R:(zr/2+2*Qe)*wt*Wt%R,R,ur,Z,hi,po,!1,Rn)}function Sa(_,R,Z,ue,Pe){for(var Qe=[],wt=0;wt<_.length;wt++)for(var Wt=_[wt],Rn=void 0,ur=0;ur=ue&&hi.x>=ue||(zr.x>=ue?zr=new w(ue,zr.y+(ue-zr.x)/(hi.x-zr.x)*(hi.y-zr.y))._round():hi.x>=ue&&(hi=new w(ue,zr.y+(ue-zr.x)/(hi.x-zr.x)*(hi.y-zr.y))._round()),zr.y>=Pe&&hi.y>=Pe||(zr.y>=Pe?zr=new w(zr.x+(Pe-zr.y)/(hi.y-zr.y)*(hi.x-zr.x),Pe)._round():hi.y>=Pe&&(hi=new w(zr.x+(Pe-zr.y)/(hi.y-zr.y)*(hi.x-zr.x),Pe)._round()),Rn&&zr.equals(Rn[Rn.length-1])||Qe.push(Rn=[zr]),Rn.push(hi)))))}return Qe}function _l(_,R,Z,ue){var Pe=[],Qe=_.image,wt=Qe.pixelRatio,Wt=Qe.paddedRect.w-2,Rn=Qe.paddedRect.h-2,ur=_.right-_.left,zr=_.bottom-_.top,hi=Qe.stretchX||[[0,Wt]],po=Qe.stretchY||[[0,Rn]],ko=function(Ga,Aa){return Ga+Aa[1]-Aa[0]},Zs=hi.reduce(ko,0),Js=po.reduce(ko,0),sl=Wt-Zs,Da=Rn-Js,Ol=0,Vl=Zs,cu=0,lu=Js,Hu=0,kc=sl,ac=0,_d=Da;if(Qe.content&&ue){var Xu=Qe.content;Ol=Ql(hi,0,Xu[0]),cu=Ql(po,0,Xu[1]),Vl=Ql(hi,Xu[0],Xu[2]),lu=Ql(po,Xu[1],Xu[3]),Hu=Xu[0]-Ol,ac=Xu[1]-cu,kc=Xu[2]-Xu[0]-Vl,_d=Xu[3]-Xu[1]-lu}var Nd=function(Ga,Aa,Xl,wu){var Ts=ws(Ga.stretch-Ol,Vl,ur,_.left),Xc=Ha(Ga.fixed-Hu,kc,Ga.stretch,Zs),ph=ws(Aa.stretch-cu,lu,zr,_.top),gh=Ha(Aa.fixed-ac,_d,Aa.stretch,Js),ih=ws(Xl.stretch-Ol,Vl,ur,_.left),wh=Ha(Xl.fixed-Hu,kc,Xl.stretch,Zs),cg=ws(wu.stretch-cu,lu,zr,_.top),yg=Ha(wu.fixed-ac,_d,wu.stretch,Js),Fh=new w(Ts,ph),nf=new w(ih,ph),Ko=new w(ih,cg),Rl=new w(Ts,cg),Zf=new w(Xc/wt,gh/wt),$f=new w(wh/wt,yg/wt),Yf=R*Math.PI/180;if(Yf){var em=Math.sin(Yf),Mf=Math.cos(Yf),kd=[Mf,-em,em,Mf];Fh._matMult(kd),nf._matMult(kd),Rl._matMult(kd),Ko._matMult(kd)}var Ef=Ga.stretch+Ga.fixed,Rg=Aa.stretch+Aa.fixed;return{tl:Fh,tr:nf,bl:Rl,br:Ko,tex:{x:Qe.paddedRect.x+1+Ef,y:Qe.paddedRect.y+1+Rg,w:Xl.stretch+Xl.fixed-Ef,h:wu.stretch+wu.fixed-Rg},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:Zf,pixelOffsetBR:$f,minFontScaleX:kc/wt/ur,minFontScaleY:_d/wt/zr,isSDF:Z}};if(ue&&(Qe.stretchX||Qe.stretchY))for(var Yt=Ju(hi,sl,Zs),Mn=Ju(po,Da,Js),dr=0;dr0&&(ko=Math.max(10,ko),this.circleDiameter=ko)}else{var Zs=Qe.top*wt-Wt,Js=Qe.bottom*wt+Wt,sl=Qe.left*wt-Wt,Da=Qe.right*wt+Wt,Ol=Qe.collisionPadding;if(Ol&&(sl-=Ol[0]*wt,Zs-=Ol[1]*wt,Da+=Ol[2]*wt,Js+=Ol[3]*wt),ur){var Vl=new w(sl,Zs),cu=new w(Da,Zs),lu=new w(sl,Js),Hu=new w(Da,Js),kc=ur*Math.PI/180;Vl._rotate(kc),cu._rotate(kc),lu._rotate(kc),Hu._rotate(kc),sl=Math.min(Vl.x,cu.x,lu.x,Hu.x),Da=Math.max(Vl.x,cu.x,lu.x,Hu.x),Zs=Math.min(Vl.y,cu.y,lu.y,Hu.y),Js=Math.max(Vl.y,cu.y,lu.y,Hu.y)}_.emplaceBack(R.x,R.y,sl,Zs,Da,Js,Z,ue,Pe)}this.boxEndIndex=_.length},Ka=function(_,R){if(_===void 0&&(_=[]),R===void 0&&(R=Ca),this.data=_,this.length=this.data.length,this.compare=R,this.length>0)for(var Z=(this.length>>1)-1;Z>=0;Z--)this._down(Z)};function Ca(_,R){return _R?1:0}function Du(_,R,Z){R===void 0&&(R=1),Z===void 0&&(Z=!1);for(var ue=1/0,Pe=1/0,Qe=-1/0,wt=-1/0,Wt=_[0],Rn=0;RnQe)&&(Qe=ur.x),(!Rn||ur.y>wt)&&(wt=ur.y)}var zr=Math.min(Qe-ue,wt-Pe),hi=zr/2,po=new Ka([],jc);if(zr===0)return new w(ue,Pe);for(var ko=ue;koJs.d||!Js.d)&&(Js=Da,Z&&console.log("found best %d after %d probes",Math.round(1e4*Da.d)/1e4,sl)),Da.max-Js.d<=R||(po.push(new Qo(Da.p.x-(hi=Da.h/2),Da.p.y-hi,hi,_)),po.push(new Qo(Da.p.x+hi,Da.p.y-hi,hi,_)),po.push(new Qo(Da.p.x-hi,Da.p.y+hi,hi,_)),po.push(new Qo(Da.p.x+hi,Da.p.y+hi,hi,_)),sl+=4)}return Z&&(console.log("num probes: "+sl),console.log("best distance: "+Js.d)),Js.p}function jc(_,R){return R.max-_.max}function Qo(_,R,Z,ue){this.p=new w(_,R),this.h=Z,this.d=function(Pe,Qe){for(var wt=!1,Wt=1/0,Rn=0;RnPe.y!=Zs.y>Pe.y&&Pe.x<(Zs.x-ko.x)*(Pe.y-ko.y)/(Zs.y-ko.y)+ko.x&&(wt=!wt),Wt=Math.min(Wt,vm(Pe,ko,Zs))}return(wt?1:-1)*Math.sqrt(Wt)}(this.p,ue),this.max=this.d+this.h*Math.SQRT2}Ka.prototype.push=function(_){this.data.push(_),this.length++,this._up(this.length-1)},Ka.prototype.pop=function(){if(this.length!==0){var _=this.data[0],R=this.data.pop();return this.length--,this.length>0&&(this.data[0]=R,this._down(0)),_}},Ka.prototype.peek=function(){return this.data[0]},Ka.prototype._up=function(_){for(var R=this.data,Z=this.compare,ue=R[_];_>0;){var Pe=_-1>>1,Qe=R[Pe];if(Z(ue,Qe)>=0)break;R[_]=Qe,_=Pe}R[_]=ue},Ka.prototype._down=function(_){for(var R=this.data,Z=this.compare,ue=this.length>>1,Pe=R[_];_=0)break;R[_]=wt,_=Qe}R[_]=Pe};var Do=Number.POSITIVE_INFINITY;function As(_,R){return R[1]!==Do?function(Z,ue,Pe){var Qe=0,wt=0;switch(ue=Math.abs(ue),Pe=Math.abs(Pe),Z){case"top-right":case"top-left":case"top":wt=Pe-7;break;case"bottom-right":case"bottom-left":case"bottom":wt=7-Pe}switch(Z){case"top-right":case"bottom-right":case"right":Qe=-ue;break;case"top-left":case"bottom-left":case"left":Qe=ue}return[Qe,wt]}(_,R[0],R[1]):function(Z,ue){var Pe=0,Qe=0;ue<0&&(ue=0);var wt=ue/Math.sqrt(2);switch(Z){case"top-right":case"top-left":Qe=wt-7;break;case"bottom-right":case"bottom-left":Qe=7-wt;break;case"bottom":Qe=7-ue;break;case"top":Qe=ue-7}switch(Z){case"top-right":case"bottom-right":Pe=-wt;break;case"top-left":case"bottom-left":Pe=wt;break;case"left":Pe=ue;break;case"right":Pe=-ue}return[Pe,Qe]}(_,R[0])}function wa(_){switch(_){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function Pa(_,R,Z,ue,Pe,Qe,wt,Wt,Rn,ur,zr,hi,po,ko,Zs){var Js=function(cu,lu,Hu,kc,ac,_d,Xu,Nd){for(var Yt=kc.layout.get("text-rotate").evaluate(_d,{})*Math.PI/180,Mn=[],dr=0,Wr=lu.positionedLines;dr32640&&xe(_.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'):sl.kind==="composite"&&((Da=[128*ko.compositeTextSizes[0].evaluate(wt,{},Zs),128*ko.compositeTextSizes[1].evaluate(wt,{},Zs)])[0]>32640||Da[1]>32640)&&xe(_.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'),_.addSymbols(_.text,Js,Da,Wt,Qe,wt,ur,R,Rn.lineStartIndex,Rn.lineLength,po,Zs);for(var Ol=0,Vl=zr;Ol=0;wt--)if(ue.dist(Qe[wt])0)&&(Qe.value.kind!=="constant"||Qe.value.value.length>0),ur=Wt.value.kind!=="constant"||!!Wt.value.value||Object.keys(Wt.parameters).length>0,zr=Pe.get("symbol-sort-key");if(this.features=[],Rn||ur){for(var hi=R.iconDependencies,po=R.glyphDependencies,ko=R.availableImages,Zs=new Md(this.zoom),Js=0,sl=_;Js=0;for(var go=0,ra=ac.sections;go=0;Wt--)Qe[Wt]={x:R[Wt].x,y:R[Wt].y,tileUnitDistanceFromAnchor:Pe},Wt>0&&(Pe+=R[Wt-1].dist(R[Wt]));for(var Rn=0;Rn0},Ys.prototype.hasIconData=function(){return this.icon.segments.get().length>0},Ys.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},Ys.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},Ys.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},Ys.prototype.addIndicesForPlacedSymbol=function(_,R){for(var Z=_.placedSymbolArray.get(R),ue=Z.vertexStartIndex+4*Z.numGlyphs,Pe=Z.vertexStartIndex;Pe1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(_),this.sortedAngle=_,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var Z=0,ue=this.symbolInstanceIndexes;Z=0&&Wt.indexOf(Qe)===wt&&R.addIndicesForPlacedSymbol(R.text,Qe)}),Pe.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,Pe.verticalPlacedTextSymbolIndex),Pe.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,Pe.placedIconSymbolIndex),Pe.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,Pe.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},Qc("SymbolBucket",Ys,{omit:["layers","collisionBoxArray","features","compareText"]}),Ys.MAX_GLYPHS=65535,Ys.addDynamicAttributes=gi;var vl=new Dp({"symbol-placement":new Od(rn.layout_symbol["symbol-placement"]),"symbol-spacing":new Od(rn.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Od(rn.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new td(rn.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Od(rn.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Od(rn.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Od(rn.layout_symbol["icon-ignore-placement"]),"icon-optional":new Od(rn.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Od(rn.layout_symbol["icon-rotation-alignment"]),"icon-size":new td(rn.layout_symbol["icon-size"]),"icon-text-fit":new Od(rn.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Od(rn.layout_symbol["icon-text-fit-padding"]),"icon-image":new td(rn.layout_symbol["icon-image"]),"icon-rotate":new td(rn.layout_symbol["icon-rotate"]),"icon-padding":new Od(rn.layout_symbol["icon-padding"]),"icon-keep-upright":new Od(rn.layout_symbol["icon-keep-upright"]),"icon-offset":new td(rn.layout_symbol["icon-offset"]),"icon-anchor":new td(rn.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Od(rn.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Od(rn.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Od(rn.layout_symbol["text-rotation-alignment"]),"text-field":new td(rn.layout_symbol["text-field"]),"text-font":new td(rn.layout_symbol["text-font"]),"text-size":new td(rn.layout_symbol["text-size"]),"text-max-width":new td(rn.layout_symbol["text-max-width"]),"text-line-height":new Od(rn.layout_symbol["text-line-height"]),"text-letter-spacing":new td(rn.layout_symbol["text-letter-spacing"]),"text-justify":new td(rn.layout_symbol["text-justify"]),"text-radial-offset":new td(rn.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Od(rn.layout_symbol["text-variable-anchor"]),"text-anchor":new td(rn.layout_symbol["text-anchor"]),"text-max-angle":new Od(rn.layout_symbol["text-max-angle"]),"text-writing-mode":new Od(rn.layout_symbol["text-writing-mode"]),"text-rotate":new td(rn.layout_symbol["text-rotate"]),"text-padding":new Od(rn.layout_symbol["text-padding"]),"text-keep-upright":new Od(rn.layout_symbol["text-keep-upright"]),"text-transform":new td(rn.layout_symbol["text-transform"]),"text-offset":new td(rn.layout_symbol["text-offset"]),"text-allow-overlap":new Od(rn.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Od(rn.layout_symbol["text-ignore-placement"]),"text-optional":new Od(rn.layout_symbol["text-optional"])}),mu={paint:new Dp({"icon-opacity":new td(rn.paint_symbol["icon-opacity"]),"icon-color":new td(rn.paint_symbol["icon-color"]),"icon-halo-color":new td(rn.paint_symbol["icon-halo-color"]),"icon-halo-width":new td(rn.paint_symbol["icon-halo-width"]),"icon-halo-blur":new td(rn.paint_symbol["icon-halo-blur"]),"icon-translate":new Od(rn.paint_symbol["icon-translate"]),"icon-translate-anchor":new Od(rn.paint_symbol["icon-translate-anchor"]),"text-opacity":new td(rn.paint_symbol["text-opacity"]),"text-color":new td(rn.paint_symbol["text-color"],{runtimeType:Kr,getOverride:function(_){return _.textColor},hasOverride:function(_){return!!_.textColor}}),"text-halo-color":new td(rn.paint_symbol["text-halo-color"]),"text-halo-width":new td(rn.paint_symbol["text-halo-width"]),"text-halo-blur":new td(rn.paint_symbol["text-halo-blur"]),"text-translate":new Od(rn.paint_symbol["text-translate"]),"text-translate-anchor":new Od(rn.paint_symbol["text-translate-anchor"])}),layout:vl},hc=function(_){this.type=_.property.overrides?_.property.overrides.runtimeType:Gr,this.defaultValue=_};hc.prototype.evaluate=function(_){if(_.formattedSection){var R=this.defaultValue.property.overrides;if(R&&R.hasOverride(_.formattedSection))return R.getOverride(_.formattedSection)}return _.feature&&_.featureState?this.defaultValue.evaluate(_.feature,_.featureState):this.defaultValue.property.specification.default},hc.prototype.eachChild=function(_){this.defaultValue.isConstant()||_(this.defaultValue.value._styleExpression.expression)},hc.prototype.outputDefined=function(){return!1},hc.prototype.serialize=function(){return null},Qc("FormatSectionOverride",hc,{omit:["defaultValue"]});var ud=function(_){function R(Z){_.call(this,Z,mu)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype.recalculate=function(Z,ue){if(_.prototype.recalculate.call(this,Z,ue),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout._values["icon-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout._values["text-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var Pe=this.layout.get("text-writing-mode");if(Pe){for(var Qe=[],wt=0,Wt=Pe;wt",targetMapId:ue,sourceMapId:Qe.mapId})}}},$e.prototype.receive=function(_){var R=_.data,Z=R.id;if(Z&&(!R.targetMapId||this.mapId===R.targetMapId))if(R.type===""){delete this.tasks[Z];var ue=this.cancelCallbacks[Z];delete this.cancelCallbacks[Z],ue&&ue()}else me()||R.mustQueue?(this.tasks[Z]=R,this.taskQueue.push(Z),this.invoker.trigger()):this.processTask(Z,R)},$e.prototype.process=function(){if(this.taskQueue.length){var _=this.taskQueue.shift(),R=this.tasks[_];delete this.tasks[_],this.taskQueue.length&&this.invoker.trigger(),R&&this.processTask(_,R)}},$e.prototype.processTask=function(_,R){var Z=this;if(R.type===""){var ue=this.callbacks[_];delete this.callbacks[_],ue&&(R.error?ue(bc(R.error)):ue(null,bc(R.data)))}else{var Pe=!1,Qe=Pt(this.globalScope)?void 0:[],wt=R.hasCallback?function(zr,hi){Pe=!0,delete Z.cancelCallbacks[_],Z.target.postMessage({id:_,type:"",sourceMapId:Z.mapId,error:zr?Qi(zr):null,data:Qi(hi,Qe)},Qe)}:function(zr){Pe=!0},Wt=null,Rn=bc(R.data);if(this.parent[R.type])Wt=this.parent[R.type](R.sourceMapId,Rn,wt);else if(this.parent.getWorkerSource){var ur=R.type.split(".");Wt=this.parent.getWorkerSource(R.sourceMapId,ur[0],Rn.source)[ur[1]](Rn,wt)}else wt(new Error("Could not find function "+R.type));!Pe&&Wt&&Wt.cancel&&(this.cancelCallbacks[_]=Wt.cancel)}},$e.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};var Re=function(_,R){_&&(R?this.setSouthWest(_).setNorthEast(R):_.length===4?this.setSouthWest([_[0],_[1]]).setNorthEast([_[2],_[3]]):this.setSouthWest(_[0]).setNorthEast(_[1]))};Re.prototype.setNorthEast=function(_){return this._ne=_ instanceof ot?new ot(_.lng,_.lat):ot.convert(_),this},Re.prototype.setSouthWest=function(_){return this._sw=_ instanceof ot?new ot(_.lng,_.lat):ot.convert(_),this},Re.prototype.extend=function(_){var R,Z,ue=this._sw,Pe=this._ne;if(_ instanceof ot)R=_,Z=_;else{if(!(_ instanceof Re))return Array.isArray(_)?_.length===4||_.every(Array.isArray)?this.extend(Re.convert(_)):this.extend(ot.convert(_)):this;if(Z=_._ne,!(R=_._sw)||!Z)return this}return ue||Pe?(ue.lng=Math.min(R.lng,ue.lng),ue.lat=Math.min(R.lat,ue.lat),Pe.lng=Math.max(Z.lng,Pe.lng),Pe.lat=Math.max(Z.lat,Pe.lat)):(this._sw=new ot(R.lng,R.lat),this._ne=new ot(Z.lng,Z.lat)),this},Re.prototype.getCenter=function(){return new ot((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Re.prototype.getSouthWest=function(){return this._sw},Re.prototype.getNorthEast=function(){return this._ne},Re.prototype.getNorthWest=function(){return new ot(this.getWest(),this.getNorth())},Re.prototype.getSouthEast=function(){return new ot(this.getEast(),this.getSouth())},Re.prototype.getWest=function(){return this._sw.lng},Re.prototype.getSouth=function(){return this._sw.lat},Re.prototype.getEast=function(){return this._ne.lng},Re.prototype.getNorth=function(){return this._ne.lat},Re.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Re.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},Re.prototype.isEmpty=function(){return!(this._sw&&this._ne)},Re.prototype.contains=function(_){var R=ot.convert(_),Z=R.lng,ue=R.lat,Pe=this._sw.lng<=Z&&Z<=this._ne.lng;return this._sw.lng>this._ne.lng&&(Pe=this._sw.lng>=Z&&Z>=this._ne.lng),this._sw.lat<=ue&&ue<=this._ne.lat&&Pe},Re.convert=function(_){return!_||_ instanceof Re?_:new Re(_)};var ot=function(_,R){if(isNaN(_)||isNaN(R))throw new Error("Invalid LngLat object: ("+_+", "+R+")");if(this.lng=+_,this.lat=+R,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};ot.prototype.wrap=function(){return new ot(re(this.lng,-180,180),this.lat)},ot.prototype.toArray=function(){return[this.lng,this.lat]},ot.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},ot.prototype.distanceTo=function(_){var R=Math.PI/180,Z=this.lat*R,ue=_.lat*R,Pe=Math.sin(Z)*Math.sin(ue)+Math.cos(Z)*Math.cos(ue)*Math.cos((_.lng-this.lng)*R);return 63710088e-1*Math.acos(Math.min(Pe,1))},ot.prototype.toBounds=function(_){_===void 0&&(_=0);var R=360*_/40075017,Z=R/Math.cos(Math.PI/180*this.lat);return new Re(new ot(this.lng-Z,this.lat-R),new ot(this.lng+Z,this.lat+R))},ot.convert=function(_){if(_ instanceof ot)return _;if(Array.isArray(_)&&(_.length===2||_.length===3))return new ot(Number(_[0]),Number(_[1]));if(!Array.isArray(_)&&typeof _=="object"&&_!==null)return new ot(Number("lng"in _?_.lng:_.lon),Number(_.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var Lt=2*Math.PI*63710088e-1;function nn(_){return Lt*Math.cos(_*Math.PI/180)}function Fn(_){return(180+_)/360}function Kn(_){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+_*Math.PI/360)))/360}function Mi(_,R){return _/nn(R)}function Yo(_){return 360/Math.PI*Math.atan(Math.exp((180-360*_)*Math.PI/180))-90}var Lo=function(_,R,Z){Z===void 0&&(Z=0),this.x=+_,this.y=+R,this.z=+Z};Lo.fromLngLat=function(_,R){R===void 0&&(R=0);var Z=ot.convert(_);return new Lo(Fn(Z.lng),Kn(Z.lat),Mi(R,Z.lat))},Lo.prototype.toLngLat=function(){return new ot(360*this.x-180,Yo(this.y))},Lo.prototype.toAltitude=function(){return this.z*nn(Yo(this.y))},Lo.prototype.meterInMercatorCoordinateUnits=function(){return 1/Lt*(_=Yo(this.y),1/Math.cos(_*Math.PI/180));var _};var Bo=function(_,R,Z){this.z=_,this.x=R,this.y=Z,this.key=Kl(0,_,_,R,Z)};Bo.prototype.equals=function(_){return this.z===_.z&&this.x===_.x&&this.y===_.y},Bo.prototype.url=function(_,R){var Z,ue,Pe,Qe,wt,Wt=(ue=this.y,Pe=this.z,Qe=Je(256*(Z=this.x),256*(ue=Math.pow(2,Pe)-ue-1),Pe),wt=Je(256*(Z+1),256*(ue+1),Pe),Qe[0]+","+Qe[1]+","+wt[0]+","+wt[1]),Rn=function(ur,zr,hi){for(var po,ko="",Zs=ur;Zs>0;Zs--)ko+=(zr&(po=1<this.canonical.z?new gu(_,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new gu(_,this.wrap,_,this.canonical.x>>R,this.canonical.y>>R)},gu.prototype.calculateScaledKey=function(_,R){var Z=this.canonical.z-_;return _>this.canonical.z?Kl(this.wrap*+R,_,this.canonical.z,this.canonical.x,this.canonical.y):Kl(this.wrap*+R,_,_,this.canonical.x>>Z,this.canonical.y>>Z)},gu.prototype.isChildOf=function(_){if(_.wrap!==this.wrap)return!1;var R=this.canonical.z-_.canonical.z;return _.overscaledZ===0||_.overscaledZ>R&&_.canonical.y===this.canonical.y>>R},gu.prototype.children=function(_){if(this.overscaledZ>=_)return[new gu(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var R=this.canonical.z+1,Z=2*this.canonical.x,ue=2*this.canonical.y;return[new gu(R,this.wrap,R,Z,ue),new gu(R,this.wrap,R,Z+1,ue),new gu(R,this.wrap,R,Z,ue+1),new gu(R,this.wrap,R,Z+1,ue+1)]},gu.prototype.isLessThan=function(_){return this.wrap<_.wrap||!(this.wrap>_.wrap)&&(this.overscaledZ<_.overscaledZ||!(this.overscaledZ>_.overscaledZ)&&(this.canonical.x<_.canonical.x||!(this.canonical.x>_.canonical.x)&&this.canonical.y<_.canonical.y))},gu.prototype.wrapped=function(){return new gu(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)},gu.prototype.unwrapTo=function(_){return new gu(this.overscaledZ,_,this.canonical.z,this.canonical.x,this.canonical.y)},gu.prototype.overscaleFactor=function(){return Math.pow(2,this.overscaledZ-this.canonical.z)},gu.prototype.toUnwrapped=function(){return new $u(this.wrap,this.canonical)},gu.prototype.toString=function(){return this.overscaledZ+"/"+this.canonical.x+"/"+this.canonical.y},gu.prototype.getTilePoint=function(_){return this.canonical.getTilePoint(new Lo(_.x-this.wrap,_.y))},Qc("CanonicalTileID",Bo),Qc("OverscaledTileID",gu,{omit:["posMatrix"]});var Sl=function(_,R,Z){if(this.uid=_,R.height!==R.width)throw new RangeError("DEM tiles must be square");if(Z&&Z!=="mapbox"&&Z!=="terrarium")return xe('"'+Z+'" is not a valid encoding type. Valid types include "mapbox" and "terrarium".');this.stride=R.height;var ue=this.dim=R.height-2;this.data=new Uint32Array(R.data.buffer),this.encoding=Z||"mapbox";for(var Pe=0;Pe=this.dim+1||R<-1||R>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(R+1)*this.stride+(_+1)},Sl.prototype._unpackMapbox=function(_,R,Z){return(256*_*256+256*R+Z)/10-1e4},Sl.prototype._unpackTerrarium=function(_,R,Z){return 256*_+R+Z/256-32768},Sl.prototype.getPixels=function(){return new ug({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Sl.prototype.backfillBorder=function(_,R,Z){if(this.dim!==_.dim)throw new Error("dem dimension mismatch");var ue=R*this.dim,Pe=R*this.dim+this.dim,Qe=Z*this.dim,wt=Z*this.dim+this.dim;switch(R){case-1:ue=Pe-1;break;case 1:Pe=ue+1}switch(Z){case-1:Qe=wt-1;break;case 1:wt=Qe+1}for(var Wt=-R*this.dim,Rn=-Z*this.dim,ur=Qe;ur=0&&zr[3]>=0&&Wt.insert(wt,zr[0],zr[1],zr[2],zr[3])}},oc.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new Eo.VectorTile(new er(this.rawTileData)).layers,this.sourceLayerCoder=new ql(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},oc.prototype.query=function(_,R,Z,ue){var Pe=this;this.loadVTLayers();for(var Qe=_.params||{},wt=8192/_.tileSize/_.scale,Wt=uf(Qe.filter),Rn=_.queryGeometry,ur=_.queryPadding*wt,zr=Ao(Rn),hi=this.grid.query(zr.minX-ur,zr.minY-ur,zr.maxX+ur,zr.maxY+ur),po=Ao(_.cameraQueryGeometry),ko=this.grid3D.query(po.minX-ur,po.minY-ur,po.maxX+ur,po.maxY+ur,function(cu,lu,Hu,kc){return function(ac,_d,Xu,Nd,Yt){for(var Mn=0,dr=ac;Mn=Wr.x&&Yt>=Wr.y)return!0}var go=[new w(_d,Xu),new w(_d,Yt),new w(Nd,Yt),new w(Nd,Xu)];if(ac.length>2){for(var ra=0,Ga=go;ra=0)return!0;return!1}(Qe,hi)){var po=this.sourceLayerCoder.decode(Z),ko=this.vtLayers[po].feature(ue);if(Pe.needGeometry){var Zs=ad(ko,!0);if(!Pe.filter(new Md(this.tileID.overscaledZ),Zs,this.tileID.canonical))return}else if(!Pe.filter(new Md(this.tileID.overscaledZ),ko))return;for(var Js=this.getId(ko,po),sl=0;slue)Pe=!1;else if(R)if(this.expirationTimeZn&&(_.getActor().send("enforceCacheSizeLimit",Ht),Ri=0)},b.clamp=j,b.clearTileCache=function(_){var R=C.caches.delete("mapbox-tiles");_&&R.catch(_).then(function(){return _()})},b.clipLine=Sa,b.clone=function(_){var R=new df(16);return R[0]=_[0],R[1]=_[1],R[2]=_[2],R[3]=_[3],R[4]=_[4],R[5]=_[5],R[6]=_[6],R[7]=_[7],R[8]=_[8],R[9]=_[9],R[10]=_[10],R[11]=_[11],R[12]=_[12],R[13]=_[13],R[14]=_[14],R[15]=_[15],R},b.clone$1=ge,b.clone$2=function(_){var R=new df(3);return R[0]=_[0],R[1]=_[1],R[2]=_[2],R},b.collisionCircleLayout=cn,b.config=Yr,b.create=function(){var _=new df(16);return df!=Float32Array&&(_[1]=0,_[2]=0,_[3]=0,_[4]=0,_[6]=0,_[7]=0,_[8]=0,_[9]=0,_[11]=0,_[12]=0,_[13]=0,_[14]=0),_[0]=1,_[5]=1,_[10]=1,_[15]=1,_},b.create$1=function(){var _=new df(9);return df!=Float32Array&&(_[1]=0,_[2]=0,_[3]=0,_[5]=0,_[6]=0,_[7]=0),_[0]=1,_[4]=1,_[8]=1,_},b.create$2=function(){var _=new df(4);return df!=Float32Array&&(_[1]=0,_[2]=0),_[0]=1,_[3]=1,_},b.createCommonjsModule=z,b.createExpression=hd,b.createLayout=_h,b.createStyleLayer=function(_){return _.type==="custom"?new eg(_):new Gg[_.type](_)},b.cross=function(_,R,Z){var ue=R[0],Pe=R[1],Qe=R[2],wt=Z[0],Wt=Z[1],Rn=Z[2];return _[0]=Pe*Rn-Qe*Wt,_[1]=Qe*wt-ue*Rn,_[2]=ue*Wt-Pe*wt,_},b.deepEqual=function _(R,Z){if(Array.isArray(R)){if(!Array.isArray(Z)||R.length!==Z.length)return!1;for(var ue=0;ue0&&(Qe=1/Math.sqrt(Qe)),_[0]=R[0]*Qe,_[1]=R[1]*Qe,_[2]=R[2]*Qe,_},b.number=gl,b.offscreenCanvasSupported=Pi,b.ortho=function(_,R,Z,ue,Pe,Qe,wt){var Wt=1/(R-Z),Rn=1/(ue-Pe),ur=1/(Qe-wt);return _[0]=-2*Wt,_[1]=0,_[2]=0,_[3]=0,_[4]=0,_[5]=-2*Rn,_[6]=0,_[7]=0,_[8]=0,_[9]=0,_[10]=2*ur,_[11]=0,_[12]=(R+Z)*Wt,_[13]=(Pe+ue)*Rn,_[14]=(wt+Qe)*ur,_[15]=1,_},b.parseGlyphPBF=function(_){return new er(_).readFields(Ds,[])},b.pbf=er,b.performSymbolLayout=function(_,R,Z,ue,Pe,Qe,wt){_.createArrays(),_.tilePixelRatio=8192/(512*_.overscaling),_.compareText={},_.iconsNeedLinear=!1;var Wt=_.layers[0].layout,Rn=_.layers[0]._unevaluatedLayout._values,ur={};if(_.textSizeData.kind==="composite"){var zr=_.textSizeData,hi=zr.maxZoom;ur.compositeTextSizes=[Rn["text-size"].possiblyEvaluate(new Md(zr.minZoom),wt),Rn["text-size"].possiblyEvaluate(new Md(hi),wt)]}if(_.iconSizeData.kind==="composite"){var po=_.iconSizeData,ko=po.maxZoom;ur.compositeIconSizes=[Rn["icon-size"].possiblyEvaluate(new Md(po.minZoom),wt),Rn["icon-size"].possiblyEvaluate(new Md(ko),wt)]}ur.layoutTextSize=Rn["text-size"].possiblyEvaluate(new Md(_.zoom+1),wt),ur.layoutIconSize=Rn["icon-size"].possiblyEvaluate(new Md(_.zoom+1),wt),ur.textMaxSize=Rn["text-size"].possiblyEvaluate(new Md(18));for(var Zs=24*Wt.get("text-line-height"),Js=Wt.get("text-rotation-alignment")==="map"&&Wt.get("symbol-placement")!=="point",sl=Wt.get("text-keep-upright"),Da=Wt.get("text-size"),Ol=function(){var lu=cu[Vl],Hu=Wt.get("text-font").evaluate(lu,{},wt).join(","),kc=Da.evaluate(lu,{},wt),ac=ur.layoutTextSize.evaluate(lu,{},wt),_d=ur.layoutIconSize.evaluate(lu,{},wt),Xu={horizontal:{},vertical:void 0},Nd=lu.text,Yt=[0,0];if(Nd){var Mn=Nd.toString(),dr=24*Wt.get("text-letter-spacing").evaluate(lu,{},wt),Wr=function(Rl){for(var Zf=0,$f=Rl;Zf<$f.length;Zf+=1)if(Yf=$f[Zf].charCodeAt(0),Qu.Arabic(Yf)||Qu["Arabic Supplement"](Yf)||Qu["Arabic Extended-A"](Yf)||Qu["Arabic Presentation Forms-A"](Yf)||Qu["Arabic Presentation Forms-B"](Yf))return!1;var Yf;return!0}(Mn)?dr:0,go=Wt.get("text-anchor").evaluate(lu,{},wt),ra=Wt.get("text-variable-anchor");if(!ra){var Ga=Wt.get("text-radial-offset").evaluate(lu,{},wt);Yt=Ga?As(go,[24*Ga,Do]):Wt.get("text-offset").evaluate(lu,{},wt).map(function(Rl){return 24*Rl})}var Aa=Js?"center":Wt.get("text-justify").evaluate(lu,{},wt),Xl=Wt.get("symbol-placement"),wu=Xl==="point"?24*Wt.get("text-max-width").evaluate(lu,{},wt):0,Ts=function(){_.allowVerticalPlacement&&Bc(Mn)&&(Xu.vertical=wl(Nd,R,Z,Pe,Hu,wu,Zs,go,"left",Wr,Yt,Dl.vertical,!0,Xl,ac,kc))};if(!Js&&ra){for(var Xc=Aa==="auto"?ra.map(function(Rl){return wa(Rl)}):[Aa],ph=!1,gh=0;gh=8192||qc.y<0||qc.y>=8192||function(vc,xh,eh,rf,Ep,Ph,cp,fp,t0,Dg,Xm,Z0,Sv,vv,Ng,dm,Yx,h1,fg,Ev,v0,Bm,Gf,Tv,x_){var C_,l0,yy,hm,$0,D1=vc.addToLineVertexArray(xh,eh),Gi=0,w_=0,J1=0,_y=0,f1=-1,Hy=-1,y0={},J_=Ws(""),by=0,ty=0;if(fp._unevaluatedLayout.getValue("text-radial-offset")===void 0?(by=(C_=fp.layout.get("text-offset").evaluate(v0,{},Tv).map(function(Vg){return 24*Vg}))[0],ty=C_[1]):(by=24*fp.layout.get("text-radial-offset").evaluate(v0,{},Tv),ty=Do),vc.allowVerticalPlacement&&rf.vertical){var A1=fp.layout.get("text-rotate").evaluate(v0,{},Tv)+90;hm=new gr(t0,xh,Dg,Xm,Z0,rf.vertical,Sv,vv,Ng,A1),cp&&($0=new gr(t0,xh,Dg,Xm,Z0,cp,Yx,h1,Ng,A1))}if(Ep){var I1=fp.layout.get("icon-rotate").evaluate(v0,{}),Zy=fp.layout.get("icon-text-fit")!=="none",L1=_l(Ep,I1,Gf,Zy),$v=cp?_l(cp,I1,Gf,Zy):void 0;yy=new gr(t0,xh,Dg,Xm,Z0,Ep,Yx,h1,!1,I1),Gi=4*L1.length;var ny=vc.iconSizeData,uv=null;ny.kind==="source"?(uv=[128*fp.layout.get("icon-size").evaluate(v0,{})])[0]>32640&&xe(vc.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'):ny.kind==="composite"&&((uv=[128*Bm.compositeIconSizes[0].evaluate(v0,{},Tv),128*Bm.compositeIconSizes[1].evaluate(v0,{},Tv)])[0]>32640||uv[1]>32640)&&xe(vc.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'),vc.addSymbols(vc.icon,L1,uv,Ev,fg,v0,!1,xh,D1.lineStartIndex,D1.lineLength,-1,Tv),f1=vc.icon.placedSymbolArray.length-1,$v&&(w_=4*$v.length,vc.addSymbols(vc.icon,$v,uv,Ev,fg,v0,Dl.vertical,xh,D1.lineStartIndex,D1.lineLength,-1,Tv),Hy=vc.icon.placedSymbolArray.length-1)}for(var Q1 in rf.horizontal){var ry=rf.horizontal[Q1];if(!l0){J_=Ws(ry.text);var cv=fp.layout.get("text-rotate").evaluate(v0,{},Tv);l0=new gr(t0,xh,Dg,Xm,Z0,ry,Sv,vv,Ng,cv)}var rv=ry.positionedLines.length===1;if(J1+=Pa(vc,xh,ry,Ph,fp,Ng,v0,dm,D1,rf.vertical?Dl.horizontal:Dl.horizontalOnly,rv?Object.keys(rf.horizontal):[Q1],y0,f1,Bm,Tv),rv)break}rf.vertical&&(_y+=Pa(vc,xh,rf.vertical,Ph,fp,Ng,v0,dm,D1,Dl.vertical,["vertical"],y0,Hy,Bm,Tv));var yv=l0?l0.boxStartIndex:vc.collisionBoxArray.length,jv=l0?l0.boxEndIndex:vc.collisionBoxArray.length,Wv=hm?hm.boxStartIndex:vc.collisionBoxArray.length,Ny=hm?hm.boxEndIndex:vc.collisionBoxArray.length,e_=yy?yy.boxStartIndex:vc.collisionBoxArray.length,iv=yy?yy.boxEndIndex:vc.collisionBoxArray.length,S_=$0?$0.boxStartIndex:vc.collisionBoxArray.length,E_=$0?$0.boxEndIndex:vc.collisionBoxArray.length,iy=-1,P1=function(Vg,Q_){return Vg&&Vg.circleDiameter?Math.max(Vg.circleDiameter,Q_):Q_};iy=P1(l0,iy),iy=P1(hm,iy),iy=P1(yy,iy);var Db=(iy=P1($0,iy))>-1?1:0;Db&&(iy*=x_/24),vc.glyphOffsetArray.length>=Ys.MAX_GLYPHS&&xe("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),v0.sortKey!==void 0&&vc.addToSortKeyRanges(vc.symbolInstances.length,v0.sortKey),vc.symbolInstances.emplaceBack(xh.x,xh.y,y0.right>=0?y0.right:-1,y0.center>=0?y0.center:-1,y0.left>=0?y0.left:-1,y0.vertical||-1,f1,Hy,J_,yv,jv,Wv,Ny,e_,iv,S_,E_,Dg,J1,_y,Gi,w_,Db,0,Sv,by,ty,iy)}(Rl,qc,hu,$f,Yf,em,cm,Rl.layers[0],Rl.collisionBoxArray,Zf.index,Zf.sourceLayerIndex,Rl.index,Nu,qf,rp,Rg,oh,kp,Em,gf,Zf,Mf,Fd,$h,kd)};if(Kg==="line")for(var hg=0,Yp=Sa(Zf.geometry,0,0,8192,8192);hg1){var Uy=ps(q0,Xp,$f.vertical||Kp,Yf,24,lh);Uy&&og(q0,Uy)}}else if(Zf.type==="Polygon")for(var Cv=0,gv=Vt(Zf.geometry,0);Cv=yi.maxzoom||yi.visibility!=="none"&&(C(Gn,this.zoom,Mr),(zt[yi.id]=yi.createBucket({index:rn.bucketLayerIDs.length,layers:Gn,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:Ci,sourceID:this.source})).populate(lo,pn,this.tileID.canonical),rn.bucketLayerIDs.push(Gn.map(function(Ni){return Ni.id})))}}}var Ln=b.mapObject(pn.glyphDependencies,function(Ni){return Object.keys(Ni).map(Number)});Object.keys(Ln).length?li.send("getGlyphs",{uid:this.uid,stacks:Ln},function(Ni,kr){Jn||(Jn=Ni,Vr=kr,vi.call(qr))}):Vr={};var Si=Object.keys(pn.iconDependencies);Si.length?li.send("getImages",{icons:Si,source:this.source,tileID:this.tileID,type:"icons"},function(Ni,kr){Jn||(Jn=Ni,so=kr,vi.call(qr))}):so={};var tr=Object.keys(pn.patternDependencies);function vi(){if(Jn)return Cr(Jn);if(Vr&&so&&rs){var Ni=new w(Vr),kr=new b.ImageAtlas(so,rs);for(var Qn in zt){var ds=zt[Qn];ds instanceof b.SymbolBucket?(C(ds.layers,this.zoom,Mr),b.performSymbolLayout(ds,Vr,Ni.positions,so,kr.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):ds.hasPattern&&(ds instanceof b.LineBucket||ds instanceof b.FillBucket||ds instanceof b.FillExtrusionBucket)&&(C(ds.layers,this.zoom,Mr),ds.addFeatures(pn,this.tileID.canonical,kr.patternPositions))}this.status="done",Cr(null,{buckets:b.values(zt).filter(function(_a){return!_a.isEmpty()}),featureIndex:rn,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:Ni.image,imageAtlas:kr,glyphMap:this.returnDependencies?Vr:null,iconMap:this.returnDependencies?so:null,glyphPositions:this.returnDependencies?Ni.positions:null})}}tr.length?li.send("getImages",{icons:tr,source:this.source,tileID:this.tileID,type:"patterns"},function(Ni,kr){Jn||(Jn=Ni,rs=kr,vi.call(qr))}):rs={},vi.call(this)};var S=function(Vn,Xn,Mr,li){this.actor=Vn,this.layerIndex=Xn,this.availableImages=Mr,this.loadVectorData=li||f,this.loading={},this.loaded={}};S.prototype.loadTile=function(Vn,Xn){var Mr=this,li=Vn.uid;this.loading||(this.loading={});var Cr=!!(Vn&&Vn.request&&Vn.request.collectResourceTiming)&&new b.RequestPerformance(Vn.request),qr=this.loading[li]=new I(Vn);qr.abort=this.loadVectorData(Vn,function(ii,rn){if(delete Mr.loading[li],ii||!rn)return qr.status="done",Mr.loaded[li]=qr,Xn(ii);var Jn=rn.rawData,Vr={};rn.expires&&(Vr.expires=rn.expires),rn.cacheControl&&(Vr.cacheControl=rn.cacheControl);var so={};if(Cr){var rs=Cr.finish();rs&&(so.resourceTiming=JSON.parse(JSON.stringify(rs)))}qr.vectorTile=rn.vectorTile,qr.parse(rn.vectorTile,Mr.layerIndex,Mr.availableImages,Mr.actor,function(zt,pn){if(zt||!pn)return Xn(zt);Xn(null,b.extend({rawTileData:Jn.slice(0)},pn,Vr,so))}),Mr.loaded=Mr.loaded||{},Mr.loaded[li]=qr})},S.prototype.reloadTile=function(Vn,Xn){var Mr=this,li=this.loaded,Cr=Vn.uid,qr=this;if(li&&li[Cr]){var ii=li[Cr];ii.showCollisionBoxes=Vn.showCollisionBoxes;var rn=function(Jn,Vr){var so=ii.reloadCallback;so&&(delete ii.reloadCallback,ii.parse(ii.vectorTile,qr.layerIndex,Mr.availableImages,qr.actor,so)),Xn(Jn,Vr)};ii.status==="parsing"?ii.reloadCallback=rn:ii.status==="done"&&(ii.vectorTile?ii.parse(ii.vectorTile,this.layerIndex,this.availableImages,this.actor,rn):rn())}},S.prototype.abortTile=function(Vn,Xn){var Mr=this.loading,li=Vn.uid;Mr&&Mr[li]&&Mr[li].abort&&(Mr[li].abort(),delete Mr[li]),Xn()},S.prototype.removeTile=function(Vn,Xn){var Mr=this.loaded,li=Vn.uid;Mr&&Mr[li]&&delete Mr[li],Xn()};var P=b.window.ImageBitmap,j=function(){this.loaded={}};function re(Vn,Xn){if(Vn.length!==0){J(Vn[0],Xn);for(var Mr=1;Mr=Math.abs(rn)?Mr-Jn+rn:rn-Jn+Mr,Mr=Jn}Mr+li>=0!=!!Xn&&Vn.reverse()}j.prototype.loadTile=function(Vn,Xn){var Mr=Vn.uid,li=Vn.encoding,Cr=Vn.rawImageData,qr=P&&Cr instanceof P?this.getImageData(Cr):Cr,ii=new b.DEMData(Mr,qr,li);this.loaded=this.loaded||{},this.loaded[Mr]=ii,Xn(null,ii)},j.prototype.getImageData=function(Vn){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(Vn.width,Vn.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=Vn.width,this.offscreenCanvas.height=Vn.height,this.offscreenCanvasContext.drawImage(Vn,0,0,Vn.width,Vn.height);var Xn=this.offscreenCanvasContext.getImageData(-1,-1,Vn.width+2,Vn.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new b.RGBAImage({width:Xn.width,height:Xn.height},Xn.data)},j.prototype.removeTile=function(Vn){var Xn=this.loaded,Mr=Vn.uid;Xn&&Xn[Mr]&&delete Xn[Mr]};var ie=b.vectorTile.VectorTileFeature.prototype.toGeoJSON,de=function(Vn){this._feature=Vn,this.extent=b.EXTENT,this.type=Vn.type,this.properties=Vn.tags,"id"in Vn&&!isNaN(Vn.id)&&(this.id=parseInt(Vn.id,10))};de.prototype.loadGeometry=function(){if(this._feature.type===1){for(var Vn=[],Xn=0,Mr=this._feature.geometry;Xn>31}function Ce(Vn,Xn){for(var Mr=Vn.loadGeometry(),li=Vn.type,Cr=0,qr=0,ii=Mr.length,rn=0;rn>1;(function Ci(lo,Kr,ti,Wi,Tr,Qt){for(;Tr>Wi;){if(Tr-Wi>600){var Gn=Tr-Wi+1,yi=ti-Wi+1,Ln=Math.log(Gn),Si=.5*Math.exp(2*Ln/3),tr=.5*Math.sqrt(Ln*Si*(Gn-Si)/Gn)*(yi-Gn/2<0?-1:1);Ci(lo,Kr,ti,Math.max(Wi,Math.floor(ti-yi*Si/Gn+tr)),Math.min(Tr,Math.floor(ti+(Gn-yi)*Si/Gn+tr)),Qt)}var vi=Kr[2*ti+Qt],Ni=Wi,kr=Tr;for(ct(lo,Kr,Wi,ti),Kr[2*Tr+Qt]>vi&&ct(lo,Kr,Wi,Tr);Nivi;)kr--}Kr[2*Wi+Qt]===vi?ct(lo,Kr,Wi,kr):ct(lo,Kr,++kr,Tr),kr<=ti&&(Wi=kr+1),ti<=kr&&(Tr=kr-1)}})(so,rs,ui,pn,_r,Gr%2),Vr(so,rs,zt,pn,ui-1,Gr+1),Vr(so,rs,zt,ui+1,_r,Gr+1)}})(ii,rn,li,0,ii.length-1,0)};mt.prototype.range=function(Vn,Xn,Mr,li){return function(Cr,qr,ii,rn,Jn,Vr,so){for(var rs,zt,pn=[0,Cr.length-1,0],_r=[];pn.length;){var Gr=pn.pop(),ui=pn.pop(),Ci=pn.pop();if(ui-Ci<=so)for(var lo=Ci;lo<=ui;lo++)zt=qr[2*lo+1],(rs=qr[2*lo])>=ii&&rs<=Jn&&zt>=rn&&zt<=Vr&&_r.push(Cr[lo]);else{var Kr=Math.floor((Ci+ui)/2);zt=qr[2*Kr+1],(rs=qr[2*Kr])>=ii&&rs<=Jn&&zt>=rn&&zt<=Vr&&_r.push(Cr[Kr]);var ti=(Gr+1)%2;(Gr===0?ii<=rs:rn<=zt)&&(pn.push(Ci),pn.push(Kr-1),pn.push(ti)),(Gr===0?Jn>=rs:Vr>=zt)&&(pn.push(Kr+1),pn.push(ui),pn.push(ti))}}return _r}(this.ids,this.coords,Vn,Xn,Mr,li,this.nodeSize)},mt.prototype.within=function(Vn,Xn,Mr){return function(li,Cr,qr,ii,rn,Jn){for(var Vr=[0,li.length-1,0],so=[],rs=rn*rn;Vr.length;){var zt=Vr.pop(),pn=Vr.pop(),_r=Vr.pop();if(pn-_r<=Jn)for(var Gr=_r;Gr<=pn;Gr++)bt(Cr[2*Gr],Cr[2*Gr+1],qr,ii)<=rs&&so.push(li[Gr]);else{var ui=Math.floor((_r+pn)/2),Ci=Cr[2*ui],lo=Cr[2*ui+1];bt(Ci,lo,qr,ii)<=rs&&so.push(li[ui]);var Kr=(zt+1)%2;(zt===0?qr-rn<=Ci:ii-rn<=lo)&&(Vr.push(_r),Vr.push(ui-1),Vr.push(Kr)),(zt===0?qr+rn>=Ci:ii+rn>=lo)&&(Vr.push(ui+1),Vr.push(pn),Vr.push(Kr))}}return so}(this.ids,this.coords,Vn,Xn,Mr,this.nodeSize)};var _n={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(Vn){return Vn}},Bn=function(Vn){this.options=Po(Object.create(_n),Vn),this.trees=new Array(this.options.maxZoom+1)};function Er(Vn,Xn,Mr,li,Cr){return{x:Vn,y:Xn,zoom:1/0,id:Mr,parentId:-1,numPoints:li,properties:Cr}}function Yr(Vn,Xn){var Mr=Vn.geometry.coordinates,li=Mr[1];return{x:yo(Mr[0]),y:vr(li),zoom:1/0,index:Xn,parentId:-1}}function oi(Vn){return{type:"Feature",id:Vn.id,properties:to(Vn),geometry:{type:"Point",coordinates:[(li=Vn.x,360*(li-.5)),(Xn=Vn.y,Mr=(180-360*Xn)*Math.PI/180,360*Math.atan(Math.exp(Mr))/Math.PI-90)]}};var Xn,Mr,li}function to(Vn){var Xn=Vn.numPoints,Mr=Xn>=1e4?Math.round(Xn/1e3)+"k":Xn>=1e3?Math.round(Xn/100)/10+"k":Xn;return Po(Po({},Vn.properties),{cluster:!0,cluster_id:Vn.id,point_count:Xn,point_count_abbreviated:Mr})}function yo(Vn){return Vn/360+.5}function vr(Vn){var Xn=Math.sin(Vn*Math.PI/180),Mr=.5-.25*Math.log((1+Xn)/(1-Xn))/Math.PI;return Mr<0?0:Mr>1?1:Mr}function Po(Vn,Xn){for(var Mr in Xn)Vn[Mr]=Xn[Mr];return Vn}function ss(Vn){return Vn.x}function ve(Vn){return Vn.y}function _o(Vn,Xn,Mr,li,Cr,qr){var ii=Cr-Mr,rn=qr-li;if(ii!==0||rn!==0){var Jn=((Vn-Mr)*ii+(Xn-li)*rn)/(ii*ii+rn*rn);Jn>1?(Mr=Cr,li=qr):Jn>0&&(Mr+=ii*Jn,li+=rn*Jn)}return(ii=Vn-Mr)*ii+(rn=Xn-li)*rn}function ci(Vn,Xn,Mr,li){var Cr={id:Vn===void 0?null:Vn,type:Xn,geometry:Mr,tags:li,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(qr){var ii=qr.geometry,rn=qr.type;if(rn==="Point"||rn==="MultiPoint"||rn==="LineString")Bi(qr,ii);else if(rn==="Polygon"||rn==="MultiLineString")for(var Jn=0;Jn0&&(ii+=li?(Cr*Vr-Jn*qr)/2:Math.sqrt(Math.pow(Jn-Cr,2)+Math.pow(Vr-qr,2))),Cr=Jn,qr=Vr}var so=Xn.length-3;Xn[2]=1,function rs(zt,pn,_r,Gr){for(var ui,Ci=Gr,lo=_r-pn>>1,Kr=_r-pn,ti=zt[pn],Wi=zt[pn+1],Tr=zt[_r],Qt=zt[_r+1],Gn=pn+3;Gn<_r;Gn+=3){var yi=_o(zt[Gn],zt[Gn+1],ti,Wi,Tr,Qt);if(yi>Ci)ui=Gn,Ci=yi;else if(yi===Ci){var Ln=Math.abs(Gn-lo);LnGr&&(ui-pn>3&&rs(zt,pn,ui,Gr),zt[ui+2]=Ci,_r-ui>3&&rs(zt,ui,_r,Gr))}(Xn,0,so,Mr),Xn[so+2]=1,Xn.size=Math.abs(ii),Xn.start=0,Xn.end=Xn.size}function Ve(Vn,Xn,Mr,li){for(var Cr=0;Cr1?1:Mr}function jt(Vn,Xn,Mr,li,Cr,qr,ii,rn){if(li/=Xn,qr>=(Mr/=Xn)&&ii=li)return null;for(var Jn=[],Vr=0;Vr=Mr&&_r=li)){var Gr=[];if(zt==="Point"||zt==="MultiPoint")on(rs,Gr,Mr,li,Cr);else if(zt==="LineString")Ot(rs,Gr,Mr,li,Cr,!1,rn.lineMetrics);else if(zt==="MultiLineString")xt(rs,Gr,Mr,li,Cr,!1);else if(zt==="Polygon")xt(rs,Gr,Mr,li,Cr,!0);else if(zt==="MultiPolygon")for(var ui=0;ui=Mr&&ii<=li&&(Xn.push(Vn[qr]),Xn.push(Vn[qr+1]),Xn.push(Vn[qr+2]))}}function Ot(Vn,Xn,Mr,li,Cr,qr,ii){for(var rn,Jn,Vr=Tt(Vn),so=Cr===0?Zn:tn,rs=Vn.start,zt=0;ztMr&&(Jn=so(Vr,pn,_r,ui,Ci,Mr),ii&&(Vr.start=rs+rn*Jn)):lo>li?Kr=Mr&&(Jn=so(Vr,pn,_r,ui,Ci,Mr),ti=!0),Kr>li&&lo<=li&&(Jn=so(Vr,pn,_r,ui,Ci,li),ti=!0),!qr&&ti&&(ii&&(Vr.end=rs+rn*Jn),Xn.push(Vr),Vr=Tt(Vn)),ii&&(rs+=rn)}var Wi=Vn.length-3;pn=Vn[Wi],_r=Vn[Wi+1],Gr=Vn[Wi+2],(lo=Cr===0?pn:_r)>=Mr&&lo<=li&&Ht(Vr,pn,_r,Gr),Wi=Vr.length-3,qr&&Wi>=3&&(Vr[Wi]!==Vr[0]||Vr[Wi+1]!==Vr[1])&&Ht(Vr,Vr[0],Vr[1],Vr[2]),Vr.length&&Xn.push(Vr)}function Tt(Vn){var Xn=[];return Xn.size=Vn.size,Xn.start=Vn.start,Xn.end=Vn.end,Xn}function xt(Vn,Xn,Mr,li,Cr,qr){for(var ii=0;iiii.maxX&&(ii.maxX=so),rs>ii.maxY&&(ii.maxY=rs)}return ii}function ys(Vn,Xn,Mr,li){var Cr=Xn.geometry,qr=Xn.type,ii=[];if(qr==="Point"||qr==="MultiPoint")for(var rn=0;rn0&&Xn.size<(Cr?ii:li))Mr.numPoints+=Xn.length/3;else{for(var rn=[],Jn=0;Jnii)&&(Mr.numSimplified++,rn.push(Xn[Jn]),rn.push(Xn[Jn+1])),Mr.numPoints++;Cr&&function(Vr,so){for(var rs=0,zt=0,pn=Vr.length,_r=pn-2;zt0===so)for(zt=0,pn=Vr.length;zt24)throw new Error("maxZoom should be in the 0-24 range");if(Xn.promoteId&&Xn.generateId)throw new Error("promoteId and generateId cannot be used together.");var li=function(Cr,qr){var ii=[];if(Cr.type==="FeatureCollection")for(var rn=0;rn=li;Vr--){var so=+Date.now();rn=this._cluster(rn,Vr),this.trees[Vr]=new mt(rn,ss,ve,qr,Float32Array),Mr&&console.log("z%d: %d clusters in %dms",Vr,rn.length,+Date.now()-so)}return Mr&&console.timeEnd("total time"),this},Bn.prototype.getClusters=function(Vn,Xn){var Mr=((Vn[0]+180)%360+360)%360-180,li=Math.max(-90,Math.min(90,Vn[1])),Cr=Vn[2]===180?180:((Vn[2]+180)%360+360)%360-180,qr=Math.max(-90,Math.min(90,Vn[3]));if(Vn[2]-Vn[0]>=360)Mr=-180,Cr=180;else if(Mr>Cr){var ii=this.getClusters([Mr,li,180,qr],Xn),rn=this.getClusters([-180,li,Cr,qr],Xn);return ii.concat(rn)}for(var Jn=this.trees[this._limitZoom(Xn)],Vr=[],so=0,rs=Jn.range(yo(Mr),vr(qr),yo(Cr),vr(li));soXn&&(zt+=Gr.numPoints||1)}if(zt>=qr){for(var ui=Jn.x*rs,Ci=Jn.y*rs,lo=Cr&&rs>1?this._map(Jn,!0):null,Kr=(rn<<5)+(Xn+1)+this.points.length,ti=0,Wi=so;ti1)for(var Gn=0,yi=so;Gn>5},Bn.prototype._getOriginZoom=function(Vn){return(Vn-this.points.length)%32},Bn.prototype._map=function(Vn,Xn){if(Vn.numPoints)return Xn?Po({},Vn.properties):Vn.properties;var Mr=this.points[Vn.index].properties,li=this.options.map(Mr);return Xn&&li===Mr?Po({},li):li},Hr.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Hr.prototype.splitTile=function(Vn,Xn,Mr,li,Cr,qr,ii){for(var rn=[Vn,Xn,Mr,li],Jn=this.options,Vr=Jn.debug;rn.length;){li=rn.pop(),Mr=rn.pop(),Xn=rn.pop(),Vn=rn.pop();var so=1<1&&console.time("creation"),zt=this.tiles[rs]=$o(Vn,Xn,Mr,li,Jn),this.tileCoords.push({z:Xn,x:Mr,y:li}),Vr)){Vr>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",Xn,Mr,li,zt.numFeatures,zt.numPoints,zt.numSimplified),console.timeEnd("creation"));var pn="z"+Xn;this.stats[pn]=(this.stats[pn]||0)+1,this.total++}if(zt.source=Vn,Cr){if(Xn===Jn.maxZoom||Xn===Cr)continue;var _r=1<1&&console.time("clipping");var Gr,ui,Ci,lo,Kr,ti,Wi=.5*Jn.buffer/Jn.extent,Tr=.5-Wi,Qt=.5+Wi,Gn=1+Wi;Gr=ui=Ci=lo=null,Kr=jt(Vn,so,Mr-Wi,Mr+Qt,0,zt.minX,zt.maxX,Jn),ti=jt(Vn,so,Mr+Tr,Mr+Gn,0,zt.minX,zt.maxX,Jn),Vn=null,Kr&&(Gr=jt(Kr,so,li-Wi,li+Qt,1,zt.minY,zt.maxY,Jn),ui=jt(Kr,so,li+Tr,li+Gn,1,zt.minY,zt.maxY,Jn),Kr=null),ti&&(Ci=jt(ti,so,li-Wi,li+Qt,1,zt.minY,zt.maxY,Jn),lo=jt(ti,so,li+Tr,li+Gn,1,zt.minY,zt.maxY,Jn),ti=null),Vr>1&&console.timeEnd("clipping"),rn.push(Gr||[],Xn+1,2*Mr,2*li),rn.push(ui||[],Xn+1,2*Mr,2*li+1),rn.push(Ci||[],Xn+1,2*Mr+1,2*li),rn.push(lo||[],Xn+1,2*Mr+1,2*li+1)}}},Hr.prototype.getTile=function(Vn,Xn,Mr){var li=this.options,Cr=li.extent,qr=li.debug;if(Vn<0||Vn>24)return null;var ii=1<1&&console.log("drilling down to z%d-%d-%d",Vn,Xn,Mr);for(var Jn,Vr=Vn,so=Xn,rs=Mr;!Jn&&Vr>0;)Vr--,so=Math.floor(so/2),rs=Math.floor(rs/2),Jn=this.tiles[Jr(Vr,so,rs)];return Jn&&Jn.source?(qr>1&&console.log("found parent tile z%d-%d-%d",Vr,so,rs),qr>1&&console.time("drilling down"),this.splitTile(Jn.source,Vr,so,rs,Vn,Xn,Mr),qr>1&&console.timeEnd("drilling down"),this.tiles[rn]?Ri(this.tiles[rn],Cr):null):null};var xo=function(Vn){function Xn(Mr,li,Cr,qr){Vn.call(this,Mr,li,Cr,Yi),qr&&(this.loadGeoJSON=qr)}return Vn&&(Xn.__proto__=Vn),(Xn.prototype=Object.create(Vn&&Vn.prototype)).constructor=Xn,Xn.prototype.loadData=function(Mr,li){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=li,this._pendingLoadDataParams=Mr,this._state&&this._state!=="Idle"?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},Xn.prototype._loadData=function(){var Mr=this;if(this._pendingCallback&&this._pendingLoadDataParams){var li=this._pendingCallback,Cr=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var qr=!!(Cr&&Cr.request&&Cr.request.collectResourceTiming)&&new b.RequestPerformance(Cr.request);this.loadGeoJSON(Cr,function(ii,rn){if(ii||!rn)return li(ii);if(typeof rn!="object")return li(new Error("Input data given to '"+Cr.source+"' is not a valid GeoJSON object."));(function zt(pn,_r){var Gr,ui=pn&&pn.type;if(ui==="FeatureCollection")for(Gr=0;Gr=0?0:X.button},k.remove=function(X){X.parentNode&&X.parentNode.removeChild(X)};var J=function(X){function ne(){X.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new b.RGBAImage({width:1,height:1}),this.dirty=!0}return X&&(ne.__proto__=X),(ne.prototype=Object.create(X&&X.prototype)).constructor=ne,ne.prototype.isLoaded=function(){return this.loaded},ne.prototype.setLoaded=function(Q){if(this.loaded!==Q&&(this.loaded=Q,Q)){for(var le=0,it=this.requestors;le=0?1.2:1))}function ke(X,ne,Q,le,it,Rt,en){for(var Yn=0;Yn65535)Zr(new Error("glyphs > 65535 not supported"));else if(Xo.ranges[oa])Zr(null,{stack:fr,id:es,glyph:Ss});else{var qs=Xo.requests[oa];qs||(qs=Xo.requests[oa]=[],Ne.loadGlyphRange(fr,oa,Q.url,Q.requestManager,function(Wo,Ws){if(Ws){for(var za in Ws)Q._doesCharSupportLocalGlyph(+za)||(Xo.glyphs[+za]=Ws[+za]);Xo.ranges[oa]=!0}for(var yl=0,nu=qs;yl1&&(Yn=X[++en]);var fr=Math.abs(Zr-Yn.left),es=Math.abs(Zr-Yn.right),Xo=Math.min(fr,es),Ss=void 0,oa=it/Q*(le+1);if(Yn.isDash){var qs=le-Math.abs(oa);Ss=Math.sqrt(Xo*Xo+qs*qs)}else Ss=le-Math.sqrt(Xo*Xo+oa*oa);this.data[Rt+Zr]=Math.max(0,Math.min(255,Ss+128))}},xe.prototype.addRegularDash=function(X){for(var ne=X.length-1;ne>=0;--ne){var Q=X[ne],le=X[ne+1];Q.zeroLength?X.splice(ne,1):le&&le.isDash===Q.isDash&&(le.left=Q.left,X.splice(ne,1))}var it=X[0],Rt=X[X.length-1];it.isDash===Rt.isDash&&(it.left=Rt.left-this.width,Rt.right=it.right+this.width);for(var en=this.width*this.nextRow,Yn=0,Zr=X[Yn],fr=0;fr1&&(Zr=X[++Yn]);var es=Math.abs(fr-Zr.left),Xo=Math.abs(fr-Zr.right),Ss=Math.min(es,Xo);this.data[en+fr]=Math.max(0,Math.min(255,(Zr.isDash?Ss:-Ss)+128))}},xe.prototype.addDash=function(X,ne){var Q=ne?7:0,le=2*Q+1;if(this.nextRow+le>this.height)return b.warnOnce("LineAtlas out of space"),null;for(var it=0,Rt=0;Rt=Q&&X.x=le&&X.y0&&(fr[new b.OverscaledTileID(Q.overscaledZ,en,le.z,Rt,le.y-1).key]={backfilled:!1},fr[new b.OverscaledTileID(Q.overscaledZ,Q.wrap,le.z,le.x,le.y-1).key]={backfilled:!1},fr[new b.OverscaledTileID(Q.overscaledZ,Zr,le.z,Yn,le.y-1).key]={backfilled:!1}),le.y+10&&(it.resourceTiming=Q._resourceTiming,Q._resourceTiming=[]),Q.fire(new b.Event("data",it))}})},ne.prototype.onAdd=function(Q){this.map=Q,this.load()},ne.prototype.setData=function(Q){var le=this;return this._data=Q,this.fire(new b.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(it){if(it)le.fire(new b.ErrorEvent(it));else{var Rt={dataType:"source",sourceDataType:"content"};le._collectResourceTiming&&le._resourceTiming&&le._resourceTiming.length>0&&(Rt.resourceTiming=le._resourceTiming,le._resourceTiming=[]),le.fire(new b.Event("data",Rt))}}),this},ne.prototype.getClusterExpansionZoom=function(Q,le){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:Q,source:this.id},le),this},ne.prototype.getClusterChildren=function(Q,le){return this.actor.send("geojson.getClusterChildren",{clusterId:Q,source:this.id},le),this},ne.prototype.getClusterLeaves=function(Q,le,it,Rt){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:Q,limit:le,offset:it},Rt),this},ne.prototype._updateWorkerData=function(Q){var le=this;this._loaded=!1;var it=b.extend({},this.workerOptions),Rt=this._data;typeof Rt=="string"?(it.request=this.map._requestManager.transformRequest(b.browser.resolveURL(Rt),b.ResourceType.Source),it.request.collectResourceTiming=this._collectResourceTiming):it.data=JSON.stringify(Rt),this.actor.send(this.type+".loadData",it,function(en,Yn){le._removed||Yn&&Yn.abandoned||(le._loaded=!0,Yn&&Yn.resourceTiming&&Yn.resourceTiming[le.id]&&(le._resourceTiming=Yn.resourceTiming[le.id].slice(0)),le.actor.send(le.type+".coalesce",{source:it.source},null),Q(en))})},ne.prototype.loaded=function(){return this._loaded},ne.prototype.loadTile=function(Q,le){var it=this,Rt=Q.actor?"reloadTile":"loadTile";Q.actor=this.actor,Q.request=this.actor.send(Rt,{type:this.type,uid:Q.uid,tileID:Q.tileID,zoom:Q.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:b.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},function(en,Yn){return delete Q.request,Q.unloadVectorData(),Q.aborted?le(null):en?le(en):(Q.loadVectorData(Yn,it.map.painter,Rt==="reloadTile"),le(null))})},ne.prototype.abortTile=function(Q){Q.request&&(Q.request.cancel(),delete Q.request),Q.aborted=!0},ne.prototype.unloadTile=function(Q){Q.unloadVectorData(),this.actor.send("removeTile",{uid:Q.uid,type:this.type,source:this.id})},ne.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},ne.prototype.serialize=function(){return b.extend({},this._options,{type:this.type,data:this._data})},ne.prototype.hasTransition=function(){return!1},ne}(b.Evented),Ue=b.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),bt=function(X){function ne(Q,le,it,Rt){X.call(this),this.id=Q,this.dispatcher=it,this.coordinates=le.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(Rt),this.options=le}return X&&(ne.__proto__=X),(ne.prototype=Object.create(X&&X.prototype)).constructor=ne,ne.prototype.load=function(Q,le){var it=this;this._loaded=!1,this.fire(new b.Event("dataloading",{dataType:"source"})),this.url=this.options.url,b.getImage(this.map._requestManager.transformRequest(this.url,b.ResourceType.Image),function(Rt,en){it._loaded=!0,Rt?it.fire(new b.ErrorEvent(Rt)):en&&(it.image=en,Q&&(it.coordinates=Q),le&&le(),it._finishLoading())})},ne.prototype.loaded=function(){return this._loaded},ne.prototype.updateImage=function(Q){var le=this;return this.image&&Q.url?(this.options.url=Q.url,this.load(Q.coordinates,function(){le.texture=null}),this):this},ne.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new b.Event("data",{dataType:"source",sourceDataType:"metadata"})))},ne.prototype.onAdd=function(Q){this.map=Q,this.load()},ne.prototype.setCoordinates=function(Q){var le=this;this.coordinates=Q;var it=Q.map(b.MercatorCoordinate.fromLngLat);this.tileID=function(en){for(var Yn=1/0,Zr=1/0,fr=-1/0,es=-1/0,Xo=0,Ss=en;Xole.end(0)?this.fire(new b.ErrorEvent(new b.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+le.start(0)+" and "+le.end(0)+"-second mark."))):this.video.currentTime=Q}},ne.prototype.getVideo=function(){return this.video},ne.prototype.onAdd=function(Q){this.map||(this.map=Q,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},ne.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var Q=this.map.painter.context,le=Q.gl;for(var it in this.boundsBuffer||(this.boundsBuffer=Q.createVertexBuffer(this._boundsArray,Ue.members)),this.boundsSegments||(this.boundsSegments=b.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(le.LINEAR,le.CLAMP_TO_EDGE),le.texSubImage2D(le.TEXTURE_2D,0,0,0,le.RGBA,le.UNSIGNED_BYTE,this.video)):(this.texture=new b.Texture(Q,this.video,le.RGBA),this.texture.bind(le.LINEAR,le.CLAMP_TO_EDGE)),this.tiles){var Rt=this.tiles[it];Rt.state!=="loaded"&&(Rt.state="loaded",Rt.texture=this.texture)}}},ne.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},ne.prototype.hasTransition=function(){return this.video&&!this.video.paused},ne}(bt),Bt=function(X){function ne(Q,le,it,Rt){X.call(this,Q,le,it,Rt),le.coordinates?Array.isArray(le.coordinates)&&le.coordinates.length===4&&!le.coordinates.some(function(en){return!Array.isArray(en)||en.length!==2||en.some(function(Yn){return typeof Yn!="number"})})||this.fire(new b.ErrorEvent(new b.ValidationError("sources."+Q,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new b.ErrorEvent(new b.ValidationError("sources."+Q,null,'missing required property "coordinates"'))),le.animate&&typeof le.animate!="boolean"&&this.fire(new b.ErrorEvent(new b.ValidationError("sources."+Q,null,'optional "animate" property must be a boolean value'))),le.canvas?typeof le.canvas=="string"||le.canvas instanceof b.window.HTMLCanvasElement||this.fire(new b.ErrorEvent(new b.ValidationError("sources."+Q,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new b.ErrorEvent(new b.ValidationError("sources."+Q,null,'missing required property "canvas"'))),this.options=le,this.animate=le.animate===void 0||le.animate}return X&&(ne.__proto__=X),(ne.prototype=Object.create(X&&X.prototype)).constructor=ne,ne.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof b.window.HTMLCanvasElement?this.options.canvas:b.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new b.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())},ne.prototype.getCanvas=function(){return this.canvas},ne.prototype.onAdd=function(Q){this.map=Q,this.load(),this.canvas&&this.animate&&this.play()},ne.prototype.onRemove=function(){this.pause()},ne.prototype.prepare=function(){var Q=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,Q=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,Q=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var le=this.map.painter.context,it=le.gl;for(var Rt in this.boundsBuffer||(this.boundsBuffer=le.createVertexBuffer(this._boundsArray,Ue.members)),this.boundsSegments||(this.boundsSegments=b.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(Q||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new b.Texture(le,this.canvas,it.RGBA,{premultiply:!0}),this.tiles){var en=this.tiles[Rt];en.state!=="loaded"&&(en.state="loaded",en.texture=this.texture)}}},ne.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},ne.prototype.hasTransition=function(){return this._playing},ne.prototype._hasInvalidDimensions=function(){for(var Q=0,le=[this.canvas.width,this.canvas.height];Qthis.max){var en=this._getAndRemoveByKey(this.order[0]);en&&this.onRemove(en)}return this},Yr.prototype.has=function(X){return X.wrapped().key in this.data},Yr.prototype.getAndRemove=function(X){return this.has(X)?this._getAndRemoveByKey(X.wrapped().key):null},Yr.prototype._getAndRemoveByKey=function(X){var ne=this.data[X].shift();return ne.timeout&&clearTimeout(ne.timeout),this.data[X].length===0&&delete this.data[X],this.order.splice(this.order.indexOf(X),1),ne.value},Yr.prototype.getByKey=function(X){var ne=this.data[X];return ne?ne[0].value:null},Yr.prototype.get=function(X){return this.has(X)?this.data[X.wrapped().key][0].value:null},Yr.prototype.remove=function(X,ne){if(!this.has(X))return this;var Q=X.wrapped().key,le=ne===void 0?0:this.data[Q].indexOf(ne),it=this.data[Q][le];return this.data[Q].splice(le,1),it.timeout&&clearTimeout(it.timeout),this.data[Q].length===0&&delete this.data[Q],this.onRemove(it.value),this.order.splice(this.order.indexOf(Q),1),this},Yr.prototype.setMaxSize=function(X){for(this.max=X;this.order.length>this.max;){var ne=this._getAndRemoveByKey(this.order[0]);ne&&this.onRemove(ne)}return this},Yr.prototype.filter=function(X){var ne=[];for(var Q in this.data)for(var le=0,it=this.data[Q];le1||(Math.abs(es)>1&&(Math.abs(es+Ss)===1?es+=Ss:Math.abs(es-Ss)===1&&(es-=Ss)),fr.dem&&Zr.dem&&(Zr.dem.backfillBorder(fr.dem,es,Xo),Zr.neighboringTiles&&Zr.neighboringTiles[oa]&&(Zr.neighboringTiles[oa].backfilled=!0)))}},ne.prototype.getTile=function(Q){return this.getTileByID(Q.key)},ne.prototype.getTileByID=function(Q){return this._tiles[Q]},ne.prototype._retainLoadedChildren=function(Q,le,it,Rt){for(var en in this._tiles){var Yn=this._tiles[en];if(!(Rt[en]||!Yn.hasData()||Yn.tileID.overscaledZ<=le||Yn.tileID.overscaledZ>it)){for(var Zr=Yn.tileID;Yn&&Yn.tileID.overscaledZ>le+1;){var fr=Yn.tileID.scaledTo(Yn.tileID.overscaledZ-1);(Yn=this._tiles[fr.key])&&Yn.hasData()&&(Zr=fr)}for(var es=Zr;es.overscaledZ>le;)if(Q[(es=es.scaledTo(es.overscaledZ-1)).key]){Rt[Zr.key]=Zr;break}}}},ne.prototype.findLoadedParent=function(Q,le){if(Q.key in this._loadedParentTiles){var it=this._loadedParentTiles[Q.key];return it&&it.tileID.overscaledZ>=le?it:null}for(var Rt=Q.overscaledZ-1;Rt>=le;Rt--){var en=Q.scaledTo(Rt),Yn=this._getLoadedTile(en);if(Yn)return Yn}},ne.prototype._getLoadedTile=function(Q){var le=this._tiles[Q.key];return le&&le.hasData()?le:this._cache.getByKey(Q.wrapped().key)},ne.prototype.updateCacheSize=function(Q){var le=Math.ceil(Q.width/this._source.tileSize)+1,it=Math.ceil(Q.height/this._source.tileSize)+1,Rt=Math.floor(le*it*5),en=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,Rt):Rt;this._cache.setMaxSize(en)},ne.prototype.handleWrapJump=function(Q){var le=Math.round((Q-(this._prevLng===void 0?Q:this._prevLng))/360);if(this._prevLng=Q,le){var it={};for(var Rt in this._tiles){var en=this._tiles[Rt];en.tileID=en.tileID.unwrapTo(en.tileID.wrap+le),it[en.tileID.key]=en}for(var Yn in this._tiles=it,this._timers)clearTimeout(this._timers[Yn]),delete this._timers[Yn];for(var Zr in this._tiles)this._setTileReloadTimer(Zr,this._tiles[Zr])}},ne.prototype.update=function(Q){var le=this;if(this.transform=Q,this._sourceLoaded&&!this._paused){var it;this.updateCacheSize(Q),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?it=Q.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(dc){return new b.OverscaledTileID(dc.canonical.z,dc.wrap,dc.canonical.z,dc.canonical.x,dc.canonical.y)}):(it=Q.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(it=it.filter(function(dc){return le._source.hasTile(dc)}))):it=[];var Rt=Q.coveringZoomLevel(this._source),en=Math.max(Rt-ne.maxOverzooming,this._source.minzoom),Yn=Math.max(Rt+ne.maxUnderzooming,this._source.minzoom),Zr=this._updateRetainedTiles(it,Rt);if(so(this._source.type)){for(var fr={},es={},Xo=0,Ss=Object.keys(Zr);Xothis._source.maxzoom){var za=Wo.children(this._source.maxzoom)[0],yl=this.getTile(za);if(yl&&yl.hasData()){it[za.key]=za;continue}}else{var nu=Wo.children(this._source.maxzoom);if(it[nu[0].key]&&it[nu[1].key]&&it[nu[2].key]&&it[nu[3].key])continue}for(var xu=Ws.wasRequested(),Tu=Wo.overscaledZ-1;Tu>=en;--Tu){var Cu=Wo.scaledTo(Tu);if(Rt[Cu.key]||(Rt[Cu.key]=!0,!(Ws=this.getTile(Cu))&&xu&&(Ws=this._addTile(Cu)),Ws&&(it[Cu.key]=Cu,xu=Ws.wasRequested(),Ws.hasData())))break}}}return it},ne.prototype._updateLoadedParentTileCache=function(){for(var Q in this._loadedParentTiles={},this._tiles){for(var le=[],it=void 0,Rt=this._tiles[Q].tileID;Rt.overscaledZ>0;){if(Rt.key in this._loadedParentTiles){it=this._loadedParentTiles[Rt.key];break}le.push(Rt.key);var en=Rt.scaledTo(Rt.overscaledZ-1);if(it=this._getLoadedTile(en))break;Rt=en}for(var Yn=0,Zr=le;Yn0||(le.hasData()&&le.state!=="reloading"?this._cache.add(le.tileID,le,le.getExpiryTimeout()):(le.aborted=!0,this._abortTile(le),this._unloadTile(le))))},ne.prototype.clearTiles=function(){for(var Q in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(Q);this._cache.reset()},ne.prototype.tilesIn=function(Q,le,it){var Rt=this,en=[],Yn=this.transform;if(!Yn)return en;for(var Zr=it?Yn.getCameraQueryGeometry(Q):Q,fr=Q.map(function(Tu){return Yn.pointCoordinate(Tu)}),es=Zr.map(function(Tu){return Yn.pointCoordinate(Tu)}),Xo=this.getIds(),Ss=1/0,oa=1/0,qs=-1/0,Wo=-1/0,Ws=0,za=es;Ws=0&&fd[1].y+wc>=0){var Td=fr.map(function(Qd){return dc.getTilePoint(Qd)}),dh=es.map(function(Qd){return dc.getTilePoint(Qd)});en.push({tile:Cu,tileID:dc,queryGeometry:Td,cameraQueryGeometry:dh,scale:Zc})}}},xu=0;xu=b.browser.now())return!0}return!1},ne.prototype.setFeatureState=function(Q,le,it){this._state.updateState(Q=Q||"_geojsonTileLayer",le,it)},ne.prototype.removeFeatureState=function(Q,le,it){this._state.removeFeatureState(Q=Q||"_geojsonTileLayer",le,it)},ne.prototype.getFeatureState=function(Q,le){return this._state.getState(Q=Q||"_geojsonTileLayer",le)},ne.prototype.setDependencies=function(Q,le,it){var Rt=this._tiles[Q];Rt&&Rt.setDependencies(le,it)},ne.prototype.reloadTilesForDependencies=function(Q,le){for(var it in this._tiles)this._tiles[it].hasDependency(Q,le)&&this._reloadTile(it,"reloading");this._cache.filter(function(Rt){return!Rt.hasDependency(Q,le)})},ne}(b.Evented);function Vr(X,ne){var Q=Math.abs(2*X.wrap)-+(X.wrap<0),le=Math.abs(2*ne.wrap)-+(ne.wrap<0);return X.overscaledZ-ne.overscaledZ||le-Q||ne.canonical.y-X.canonical.y||ne.canonical.x-X.canonical.x}function so(X){return X==="raster"||X==="image"||X==="video"}function rs(){return new b.window.Worker(Rd.workerUrl)}Jn.maxOverzooming=10,Jn.maxUnderzooming=3;var zt="mapboxgl_preloaded_worker_pool",pn=function(){this.active={}};pn.prototype.acquire=function(X){if(!this.workers)for(this.workers=[];this.workers.length0?(le-Rt)/en:0;return this.points[it].mult(1-Yn).add(this.points[ne].mult(Yn))};var tr=function(X,ne,Q){var le=this.boxCells=[],it=this.circleCells=[];this.xCellCount=Math.ceil(X/Q),this.yCellCount=Math.ceil(ne/Q);for(var Rt=0;Rt=-ne[0]&&Q<=ne[0]&&le>=-ne[1]&&le<=ne[1]}function _a(X,ne,Q,le,it,Rt,en,Yn){var Zr=le?X.textSizeData:X.iconSizeData,fr=b.evaluateSizeForZoom(Zr,Q.transform.zoom),es=[256/Q.width*2+1,256/Q.height*2+1],Xo=le?X.text.dynamicLayoutVertexArray:X.icon.dynamicLayoutVertexArray;Xo.clear();for(var Ss=X.lineVertexArray,oa=le?X.text.placedSymbolArray:X.icon.placedSymbolArray,qs=Q.transform.width/Q.transform.height,Wo=!1,Ws=0;WsMath.abs(Q.x-ne.x)*le?{useVertical:!0}:(X===b.WritingMode.vertical?ne.yQ.x)?{needsFlipping:!0}:null}function ja(X,ne,Q,le,it,Rt,en,Yn,Zr,fr,es,Xo,Ss,oa){var qs,Wo=ne/24,Ws=X.lineOffsetX*Wo,za=X.lineOffsetY*Wo;if(X.numGlyphs>1){var yl=X.glyphStartIndex+X.numGlyphs,nu=X.lineStartIndex,xu=X.lineStartIndex+X.lineLength,Tu=da(Wo,Yn,Ws,za,Q,es,Xo,X,Zr,Rt,Ss);if(!Tu)return{notEnoughRoom:!0};var Cu=kr(Tu.first.point,en).point,dc=kr(Tu.last.point,en).point;if(le&&!Q){var Zc=zs(X.writingMode,Cu,dc,oa);if(Zc)return Zc}qs=[Tu.first];for(var wc=X.glyphStartIndex+1;wc0?Qd.point:Co(Xo,dh,fd,1,it),Nc=zs(X.writingMode,fd,Xh,oa);if(Nc)return Nc}var Hc=dl(Wo*Yn.getoffsetX(X.glyphStartIndex),Ws,za,Q,es,Xo,X.segment,X.lineStartIndex,X.lineStartIndex+X.lineLength,Zr,Rt,Ss);if(!Hc)return{notEnoughRoom:!0};qs=[Hc]}for(var tf=0,hh=qs;tf0?1:-1,qs=0;le&&(oa*=-1,qs=Math.PI),oa<0&&(qs+=Math.PI);for(var Wo=oa>0?Yn+en:Yn+en+1,Ws=it,za=it,yl=0,nu=0,xu=Math.abs(Ss),Tu=[];yl+nu<=xu;){if((Wo+=oa)=Zr)return null;if(za=Ws,Tu.push(Ws),(Ws=Xo[Wo])===void 0){var Cu=new b.Point(fr.getx(Wo),fr.gety(Wo)),dc=kr(Cu,es);if(dc.signedDistanceFromCamera>0)Ws=Xo[Wo]=dc.point;else{var Zc=Wo-oa;Ws=Co(yl===0?Rt:new b.Point(fr.getx(Zc),fr.gety(Zc)),Cu,za,xu-yl+1,es)}}yl+=nu,nu=za.dist(Ws)}var wc=(xu-yl)/nu,fd=Ws.sub(za),Td=fd.mult(wc)._add(za);Td._add(fd._unit()._perp()._mult(Q*oa));var dh=qs+Math.atan2(Ws.y-za.y,Ws.x-za.x);return Tu.push(Td),{point:Td,angle:dh,path:Tu}}tr.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},tr.prototype.insert=function(X,ne,Q,le,it){this._forEachCell(ne,Q,le,it,this._insertBoxCell,this.boxUid++),this.boxKeys.push(X),this.bboxes.push(ne),this.bboxes.push(Q),this.bboxes.push(le),this.bboxes.push(it)},tr.prototype.insertCircle=function(X,ne,Q,le){this._forEachCell(ne-le,Q-le,ne+le,Q+le,this._insertCircleCell,this.circleUid++),this.circleKeys.push(X),this.circles.push(ne),this.circles.push(Q),this.circles.push(le)},tr.prototype._insertBoxCell=function(X,ne,Q,le,it,Rt){this.boxCells[it].push(Rt)},tr.prototype._insertCircleCell=function(X,ne,Q,le,it,Rt){this.circleCells[it].push(Rt)},tr.prototype._query=function(X,ne,Q,le,it,Rt){if(Q<0||X>this.width||le<0||ne>this.height)return!it&&[];var en=[];if(X<=0&&ne<=0&&this.width<=Q&&this.height<=le){if(it)return!0;for(var Yn=0;Yn0:en},tr.prototype._queryCircle=function(X,ne,Q,le,it){var Rt=X-Q,en=X+Q,Yn=ne-Q,Zr=ne+Q;if(en<0||Rt>this.width||Zr<0||Yn>this.height)return!le&&[];var fr=[];return this._forEachCell(Rt,Yn,en,Zr,this._queryCellCircle,fr,{hitTest:le,circle:{x:X,y:ne,radius:Q},seenUids:{box:{},circle:{}}},it),le?fr.length>0:fr},tr.prototype.query=function(X,ne,Q,le,it){return this._query(X,ne,Q,le,!1,it)},tr.prototype.hitTest=function(X,ne,Q,le,it){return this._query(X,ne,Q,le,!0,it)},tr.prototype.hitTestCircle=function(X,ne,Q,le){return this._queryCircle(X,ne,Q,!0,le)},tr.prototype._queryCell=function(X,ne,Q,le,it,Rt,en,Yn){var Zr=en.seenUids,fr=this.boxCells[it];if(fr!==null)for(var es=this.bboxes,Xo=0,Ss=fr;Xo=es[qs+0]&&le>=es[qs+1]&&(!Yn||Yn(this.boxKeys[oa]))){if(en.hitTest)return Rt.push(!0),!0;Rt.push({key:this.boxKeys[oa],x1:es[qs],y1:es[qs+1],x2:es[qs+2],y2:es[qs+3]})}}}var Wo=this.circleCells[it];if(Wo!==null)for(var Ws=this.circles,za=0,yl=Wo;zaen*en+Yn*Yn},tr.prototype._circleAndRectCollide=function(X,ne,Q,le,it,Rt,en){var Yn=(Rt-le)/2,Zr=Math.abs(X-(le+Yn));if(Zr>Yn+Q)return!1;var fr=(en-it)/2,es=Math.abs(ne-(it+fr));if(es>fr+Q)return!1;if(Zr<=Yn||es<=fr)return!0;var Xo=Zr-Yn,Ss=es-fr;return Xo*Xo+Ss*Ss<=Q*Q};var Fr=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function fs(X,ne){for(var Q=0;Q=1;Xh--)Qd.push(Td.path[Xh]);for(var Nc=1;Nc0){for(var rh=Qd[0].clone(),zh=Qd[0].clone(),bh=1;bh=Zc.x&&zh.x<=wc.x&&rh.y>=Zc.y&&zh.y<=wc.y?[Qd]:zh.xwc.x||zh.ywc.y?[]:b.clipLine([Qd],Zc.x,Zc.y,wc.x,wc.y)}for(var Mh=0,Cg=hh;Mh=this.screenRightBoundary||le<100||ne>this.screenBottomBoundary},Es.prototype.isInsideGrid=function(X,ne,Q,le){return Q>=0&&X=0&&ne0?(this.prevPlacement&&this.prevPlacement.variableOffsets[Xo.crossTileID]&&this.prevPlacement.placements[Xo.crossTileID]&&this.prevPlacement.placements[Xo.crossTileID].text&&(Wo=this.prevPlacement.variableOffsets[Xo.crossTileID].anchor),this.variableOffsets[Xo.crossTileID]={textOffset:Ws,width:Q,height:le,anchor:X,textBoxScale:it,prevAnchor:Wo},this.markUsedJustification(Ss,X,Xo,oa),Ss.allowVerticalPlacement&&(this.markUsedOrientation(Ss,oa,Xo),this.placedOrientations[Xo.crossTileID]=oa),{shift:za,placedGlyphBoxes:yl}):void 0},Nn.prototype.placeLayerBucketPart=function(X,ne,Q){var le=this,it=X.parameters,Rt=it.bucket,en=it.layout,Yn=it.posMatrix,Zr=it.textLabelPlaneMatrix,fr=it.labelToScreenMatrix,es=it.textPixelRatio,Xo=it.holdingForFade,Ss=it.collisionBoxArray,oa=it.partiallyEvaluatedTextSize,qs=it.collisionGroup,Wo=en.get("text-optional"),Ws=en.get("icon-optional"),za=en.get("text-allow-overlap"),yl=en.get("icon-allow-overlap"),nu=en.get("text-rotation-alignment")==="map",xu=en.get("text-pitch-alignment")==="map",Tu=en.get("icon-text-fit")!=="none",Cu=en.get("symbol-z-order")==="viewport-y",dc=za&&(yl||!Rt.hasIconData()||Ws),Zc=yl&&(za||!Rt.hasTextData()||Wo);!Rt.collisionArrays&&Ss&&Rt.deserializeCollisionBoxes(Ss);var wc=function(Nc,Hc){if(!ne[Nc.crossTileID])if(Xo)le.placements[Nc.crossTileID]=new xl(!1,!1,!1);else{var tf,hh=!1,rh=!1,zh=!0,bh=null,Mh={box:null,offscreen:null},Cg={box:null,offscreen:null},Wp=null,vp=null,Gc=0,Oc=0,ad=0;Hc.textFeatureIndex?Gc=Hc.textFeatureIndex:Nc.useRuntimeCollisionCircles&&(Gc=Nc.featureIndex),Hc.verticalTextFeatureIndex&&(Oc=Hc.verticalTextFeatureIndex);var yd=Hc.textBox;if(yd){var Bd=function(df){var af=b.WritingMode.horizontal;if(Rt.allowVerticalPlacement&&!df&&le.prevPlacement){var jg=le.prevPlacement.placedOrientations[Nc.crossTileID];jg&&(le.placedOrientations[Nc.crossTileID]=jg,le.markUsedOrientation(Rt,af=jg,Nc))}return af},Dc=function(df,af){if(Rt.allowVerticalPlacement&&Nc.numVerticalGlyphVertices>0&&Hc.verticalTextBox)for(var jg=0,lp=Rt.writingModes;jg0&&(xd=xd.filter(function(df){return df!==ld.anchor})).unshift(ld.anchor)}var Sc=function(df,af,jg){for(var lp=df.x2-df.x1,lg=df.y2-df.y1,Id=Nc.textBoxScale,rm=Tu&&!yl?af:null,Im={box:[],offscreen:!1},jm=za?2*xd.length:xd.length,im=0;im=xd.length,Nc,Rt,jg,rm);if(wm&&(Im=wm.placedGlyphBoxes)&&Im.box&&Im.box.length){hh=!0,bh=wm.shift;break}}return Im};Dc(function(){return Sc(yd,Hc.iconBox,b.WritingMode.horizontal)},function(){var df=Hc.verticalTextBox;return Rt.allowVerticalPlacement&&!(Mh&&Mh.box&&Mh.box.length)&&Nc.numVerticalGlyphVertices>0&&df?Sc(df,Hc.verticalIconBox,b.WritingMode.vertical):{box:null,offscreen:null}}),Mh&&(hh=Mh.box,zh=Mh.offscreen);var Io=Bd(Mh&&Mh.box);if(!hh&&le.prevPlacement){var Hg=le.prevPlacement.variableOffsets[Nc.crossTileID];Hg&&(le.variableOffsets[Nc.crossTileID]=Hg,le.markUsedJustification(Rt,Hg.anchor,Nc,Io))}}else{var Zp=function(df,af){var jg=le.collisionIndex.placeCollisionBox(df,za,es,Yn,qs.predicate);return jg&&jg.box&&jg.box.length&&(le.markUsedOrientation(Rt,af,Nc),le.placedOrientations[Nc.crossTileID]=af),jg};Dc(function(){return Zp(yd,b.WritingMode.horizontal)},function(){var df=Hc.verticalTextBox;return Rt.allowVerticalPlacement&&Nc.numVerticalGlyphVertices>0&&df?Zp(df,b.WritingMode.vertical):{box:null,offscreen:null}}),Bd(Mh&&Mh.box&&Mh.box.length)}}if(hh=(tf=Mh)&&tf.box&&tf.box.length>0,zh=tf&&tf.offscreen,Nc.useRuntimeCollisionCircles){var vm=Rt.text.placedSymbolArray.get(Nc.centerJustifiedTextSymbolIndex),Fm=b.evaluateSizeForFeature(Rt.textSizeData,oa,vm),Zd=en.get("text-padding");Wp=le.collisionIndex.placeCollisionCircles(za,vm,Rt.lineVertexArray,Rt.glyphOffsetArray,Fm,Yn,Zr,fr,Q,xu,qs.predicate,Nc.collisionCircleDiameter,Zd),hh=za||Wp.circles.length>0&&!Wp.collisionDetected,zh=zh&&Wp.offscreen}if(Hc.iconFeatureIndex&&(ad=Hc.iconFeatureIndex),Hc.iconBox){var Fp=function(df){var af=Tu&&bh?Dn(df,bh.x,bh.y,nu,xu,le.transform.angle):df;return le.collisionIndex.placeCollisionBox(af,yl,es,Yn,qs.predicate)};rh=Cg&&Cg.box&&Cg.box.length&&Hc.verticalIconBox?(vp=Fp(Hc.verticalIconBox)).box.length>0:(vp=Fp(Hc.iconBox)).box.length>0,zh=zh&&vp.offscreen}var zf=Wo||Nc.numHorizontalGlyphVertices===0&&Nc.numVerticalGlyphVertices===0,bf=Ws||Nc.numIconVertices===0;if(zf||bf?bf?zf||(rh=rh&&hh):hh=rh&&hh:rh=hh=rh&&hh,hh&&tf&&tf.box&&le.collisionIndex.insertCollisionBox(tf.box,en.get("text-ignore-placement"),Rt.bucketInstanceId,Cg&&Cg.box&&Oc?Oc:Gc,qs.ID),rh&&vp&&le.collisionIndex.insertCollisionBox(vp.box,en.get("icon-ignore-placement"),Rt.bucketInstanceId,ad,qs.ID),Wp&&(hh&&le.collisionIndex.insertCollisionCircles(Wp.circles,en.get("text-ignore-placement"),Rt.bucketInstanceId,Gc,qs.ID),Q)){var Qp=Rt.bucketInstanceId,Bp=le.collisionCircleArrays[Qp];Bp===void 0&&(Bp=le.collisionCircleArrays[Qp]=new Qa);for(var Hf=0;Hf=0;--Td){var dh=fd[Td];wc(Rt.symbolInstances.get(dh),Rt.collisionArrays[dh])}else for(var Qd=X.symbolInstanceStart;Qd=0&&(X.text.placedSymbolArray.get(Yn).crossTileID=it>=0&&Yn!==it?0:Q.crossTileID)}},Nn.prototype.markUsedOrientation=function(X,ne,Q){for(var le=ne===b.WritingMode.horizontal||ne===b.WritingMode.horizontalOnly?ne:0,it=ne===b.WritingMode.vertical?ne:0,Rt=0,en=[Q.leftJustifiedTextSymbolIndex,Q.centerJustifiedTextSymbolIndex,Q.rightJustifiedTextSymbolIndex];Rt0,Zc=le.placedOrientations[yl.crossTileID],wc=Zc===b.WritingMode.vertical,fd=Zc===b.WritingMode.horizontal||Zc===b.WritingMode.horizontalOnly;if(nu>0||xu>0){var Td=xr(Cu.text);oa(X.text,nu,wc?Ti:Td),oa(X.text,xu,fd?Ti:Td);var dh=Cu.text.isHidden();[yl.rightJustifiedTextSymbolIndex,yl.centerJustifiedTextSymbolIndex,yl.leftJustifiedTextSymbolIndex].forEach(function(Mh){Mh>=0&&(X.text.placedSymbolArray.get(Mh).hidden=dh||wc?1:0)}),yl.verticalPlacedTextSymbolIndex>=0&&(X.text.placedSymbolArray.get(yl.verticalPlacedTextSymbolIndex).hidden=dh||fd?1:0);var Qd=le.variableOffsets[yl.crossTileID];Qd&&le.markUsedJustification(X,Qd.anchor,yl,Zc);var Xh=le.placedOrientations[yl.crossTileID];Xh&&(le.markUsedJustification(X,"left",yl,Xh),le.markUsedOrientation(X,Xh,yl))}if(dc){var Nc=xr(Cu.icon),Hc=!(Xo&&yl.verticalPlacedIconSymbolIndex&&wc);yl.placedIconSymbolIndex>=0&&(oa(X.icon,yl.numIconVertices,Hc?Nc:Ti),X.icon.placedSymbolArray.get(yl.placedIconSymbolIndex).hidden=Cu.icon.isHidden()),yl.verticalPlacedIconSymbolIndex>=0&&(oa(X.icon,yl.numVerticalIconVertices,Hc?Ti:Nc),X.icon.placedSymbolArray.get(yl.verticalPlacedIconSymbolIndex).hidden=Cu.icon.isHidden())}if(X.hasIconCollisionBoxData()||X.hasTextCollisionBoxData()){var tf=X.collisionArrays[za];if(tf){var hh=new b.Point(0,0);if(tf.textBox||tf.verticalTextBox){var rh=!0;if(Zr){var zh=le.variableOffsets[Tu];zh?(hh=dn(zh.anchor,zh.width,zh.height,zh.textOffset,zh.textBoxScale),fr&&hh._rotate(es?le.transform.angle:-le.transform.angle)):rh=!1}tf.textBox&&tt(X.textCollisionBox.collisionVertexArray,Cu.text.placed,!rh||wc,hh.x,hh.y),tf.verticalTextBox&&tt(X.textCollisionBox.collisionVertexArray,Cu.text.placed,!rh||fd,hh.x,hh.y)}var bh=!!(!fd&&tf.verticalIconBox);tf.iconBox&&tt(X.iconCollisionBox.collisionVertexArray,Cu.icon.placed,bh,Xo?hh.x:0,Xo?hh.y:0),tf.verticalIconBox&&tt(X.iconCollisionBox.collisionVertexArray,Cu.icon.placed,!bh,Xo?hh.x:0,Xo?hh.y:0)}}},Wo=0;WoX},Nn.prototype.setStale=function(){this.stale=!0};var dt=Math.pow(2,25),vt=Math.pow(2,24),ze=Math.pow(2,17),lt=Math.pow(2,16),Et=Math.pow(2,9),an=Math.pow(2,8),jn=Math.pow(2,1);function xr(X){if(X.opacity===0&&!X.placed)return 0;if(X.opacity===1&&X.placed)return 4294967295;var ne=X.placed?1:0,Q=Math.floor(127*X.opacity);return Q*dt+ne*vt+Q*ze+ne*lt+Q*Et+ne*an+Q*jn+ne}var Ti=0,$i=function(X){this._sortAcrossTiles=X.layout.get("symbol-z-order")!=="viewport-y"&&X.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};$i.prototype.continuePlacement=function(X,ne,Q,le,it){for(var Rt=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var en=ne[X[this._currentPlacementIndex]],Yn=this.placement.collisionIndex.transform.zoom;if(en.type==="symbol"&&(!en.minzoom||en.minzoom<=Yn)&&(!en.maxzoom||en.maxzoom>Yn)){if(this._inProgressLayer||(this._inProgressLayer=new $i(en)),this._inProgressLayer.continuePlacement(Q[en.source],this.placement,this._showCollisionBoxes,en,Rt))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Vi.prototype.commit=function(X){return this.placement.commit(X),this.placement};var us=512/b.EXTENT/2,ks=function(X,ne,Q){this.tileID=X,this.indexedSymbolInstances={},this.bucketInstanceId=Q;for(var le=0;leX.overscaledZ)for(var Yn in en){var Zr=en[Yn];Zr.tileID.isChildOf(X)&&Zr.findMatches(ne.symbolInstances,X,it)}else{var fr=en[X.scaledTo(Number(Rt)).key];fr&&fr.findMatches(ne.symbolInstances,X,it)}}for(var es=0;es1?"@2x":"",Xo=b.getJSON(Rt.transformRequest(Rt.normalizeSpriteURL(it,es,".json"),b.ResourceType.SpriteJSON),function(qs,Wo){Xo=null,fr||(fr=qs,Yn=Wo,oa())}),Ss=b.getImage(Rt.transformRequest(Rt.normalizeSpriteURL(it,es,".png"),b.ResourceType.SpriteImage),function(qs,Wo){Ss=null,fr||(fr=qs,Zr=Wo,oa())});function oa(){if(fr)en(fr);else if(Yn&&Zr){var qs=b.browser.getImageData(Zr),Wo={};for(var Ws in Yn){var za=Yn[Ws],yl=za.width,nu=za.height,xu=za.x,Tu=za.y,Cu=za.sdf,dc=za.pixelRatio,Zc=za.stretchX,wc=za.stretchY,fd=za.content,Td=new b.RGBAImage({width:yl,height:nu});b.RGBAImage.copy(qs,Td,{x:xu,y:Tu},{x:0,y:0},{width:yl,height:nu}),Wo[Ws]={data:Td,pixelRatio:dc,sdf:Cu,stretchX:Zc,stretchY:wc,content:fd}}en(null,Wo)}}return{cancel:function(){Xo&&(Xo.cancel(),Xo=null),Ss&&(Ss.cancel(),Ss=null)}}}(Q,this.map._requestManager,function(it,Rt){if(le._spriteRequest=null,it)le.fire(new b.ErrorEvent(it));else if(Rt)for(var en in Rt)le.imageManager.addImage(en,Rt[en]);le.imageManager.setLoaded(!0),le._availableImages=le.imageManager.listImages(),le.dispatcher.broadcast("setImages",le._availableImages),le.fire(new b.Event("data",{dataType:"style"}))})},ne.prototype._validateLayer=function(Q){var le=this.sourceCaches[Q.source];if(le){var it=Q.sourceLayer;if(it){var Rt=le.getSource();(Rt.type==="geojson"||Rt.vectorLayerIds&&Rt.vectorLayerIds.indexOf(it)===-1)&&this.fire(new b.ErrorEvent(new Error('Source layer "'+it+'" does not exist on source "'+Rt.id+'" as specified by style layer "'+Q.id+'"')))}}},ne.prototype.loaded=function(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(var Q in this.sourceCaches)if(!this.sourceCaches[Q].loaded())return!1;return!!this.imageManager.isLoaded()},ne.prototype._serializeLayers=function(Q){for(var le=[],it=0,Rt=Q;it0)throw new Error("Unimplemented: "+Rt.map(function(en){return en.command}).join(", ")+".");return it.forEach(function(en){en.command!=="setTransition"&&le[en.command].apply(le,en.args)}),this.stylesheet=Q,!0},ne.prototype.addImage=function(Q,le){if(this.getImage(Q))return this.fire(new b.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(Q,le),this._afterImageUpdated(Q)},ne.prototype.updateImage=function(Q,le){this.imageManager.updateImage(Q,le)},ne.prototype.getImage=function(Q){return this.imageManager.getImage(Q)},ne.prototype.removeImage=function(Q){if(!this.getImage(Q))return this.fire(new b.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(Q),this._afterImageUpdated(Q)},ne.prototype._afterImageUpdated=function(Q){this._availableImages=this.imageManager.listImages(),this._changedImages[Q]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new b.Event("data",{dataType:"style"}))},ne.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},ne.prototype.addSource=function(Q,le,it){var Rt=this;if(it===void 0&&(it={}),this._checkLoaded(),this.sourceCaches[Q]!==void 0)throw new Error("There is already a source with this ID");if(!le.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(le).join(", ")+".");if(!(["vector","raster","geojson","video","image"].indexOf(le.type)>=0&&this._validate(b.validateStyle.source,"sources."+Q,le,null,it))){this.map&&this.map._collectResourceTiming&&(le.collectResourceTiming=!0);var en=this.sourceCaches[Q]=new Jn(Q,le,this.dispatcher);en.style=this,en.setEventedParent(this,function(){return{isSourceLoaded:Rt.loaded(),source:en.serialize(),sourceId:Q}}),en.onAdd(this.map),this._changed=!0}},ne.prototype.removeSource=function(Q){if(this._checkLoaded(),this.sourceCaches[Q]===void 0)throw new Error("There is no source with this ID");for(var le in this._layers)if(this._layers[le].source===Q)return this.fire(new b.ErrorEvent(new Error('Source "'+Q+'" cannot be removed while layer "'+le+'" is using it.')));var it=this.sourceCaches[Q];delete this.sourceCaches[Q],delete this._updatedSources[Q],it.fire(new b.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:Q})),it.setEventedParent(null),it.clearTiles(),it.onRemove&&it.onRemove(this.map),this._changed=!0},ne.prototype.setGeoJSONSourceData=function(Q,le){this._checkLoaded(),this.sourceCaches[Q].getSource().setData(le),this._changed=!0},ne.prototype.getSource=function(Q){return this.sourceCaches[Q]&&this.sourceCaches[Q].getSource()},ne.prototype.addLayer=function(Q,le,it){it===void 0&&(it={}),this._checkLoaded();var Rt=Q.id;if(this.getLayer(Rt))this.fire(new b.ErrorEvent(new Error('Layer with id "'+Rt+'" already exists on this map')));else{var en;if(Q.type==="custom"){if(Cs(this,b.validateCustomStyleLayer(Q)))return;en=b.createStyleLayer(Q)}else{if(typeof Q.source=="object"&&(this.addSource(Rt,Q.source),Q=b.clone$1(Q),Q=b.extend(Q,{source:Rt})),this._validate(b.validateStyle.layer,"layers."+Rt,Q,{arrayIndex:-1},it))return;en=b.createStyleLayer(Q),this._validateLayer(en),en.setEventedParent(this,{layer:{id:Rt}}),this._serializedLayers[en.id]=en.serialize()}var Yn=le?this._order.indexOf(le):this._order.length;if(le&&Yn===-1)this.fire(new b.ErrorEvent(new Error('Layer with id "'+le+'" does not exist on this map.')));else{if(this._order.splice(Yn,0,Rt),this._layerOrderChanged=!0,this._layers[Rt]=en,this._removedLayers[Rt]&&en.source&&en.type!=="custom"){var Zr=this._removedLayers[Rt];delete this._removedLayers[Rt],Zr.type!==en.type?this._updatedSources[en.source]="clear":(this._updatedSources[en.source]="reload",this.sourceCaches[en.source].pause())}this._updateLayer(en),en.onAdd&&en.onAdd(this.map)}}},ne.prototype.moveLayer=function(Q,le){if(this._checkLoaded(),this._changed=!0,this._layers[Q]){if(Q!==le){var it=this._order.indexOf(Q);this._order.splice(it,1);var Rt=le?this._order.indexOf(le):this._order.length;le&&Rt===-1?this.fire(new b.ErrorEvent(new Error('Layer with id "'+le+'" does not exist on this map.'))):(this._order.splice(Rt,0,Q),this._layerOrderChanged=!0)}}else this.fire(new b.ErrorEvent(new Error("The layer '"+Q+"' does not exist in the map's style and cannot be moved.")))},ne.prototype.removeLayer=function(Q){this._checkLoaded();var le=this._layers[Q];if(le){le.setEventedParent(null);var it=this._order.indexOf(Q);this._order.splice(it,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[Q]=le,delete this._layers[Q],delete this._serializedLayers[Q],delete this._updatedLayers[Q],delete this._updatedPaintProps[Q],le.onRemove&&le.onRemove(this.map)}else this.fire(new b.ErrorEvent(new Error("The layer '"+Q+"' does not exist in the map's style and cannot be removed.")))},ne.prototype.getLayer=function(Q){return this._layers[Q]},ne.prototype.hasLayer=function(Q){return Q in this._layers},ne.prototype.setLayerZoomRange=function(Q,le,it){this._checkLoaded();var Rt=this.getLayer(Q);Rt?Rt.minzoom===le&&Rt.maxzoom===it||(le!=null&&(Rt.minzoom=le),it!=null&&(Rt.maxzoom=it),this._updateLayer(Rt)):this.fire(new b.ErrorEvent(new Error("The layer '"+Q+"' does not exist in the map's style and cannot have zoom extent.")))},ne.prototype.setFilter=function(Q,le,it){it===void 0&&(it={}),this._checkLoaded();var Rt=this.getLayer(Q);if(Rt){if(!b.deepEqual(Rt.filter,le))return le==null?(Rt.filter=void 0,void this._updateLayer(Rt)):void(this._validate(b.validateStyle.filter,"layers."+Rt.id+".filter",le,null,it)||(Rt.filter=b.clone$1(le),this._updateLayer(Rt)))}else this.fire(new b.ErrorEvent(new Error("The layer '"+Q+"' does not exist in the map's style and cannot be filtered.")))},ne.prototype.getFilter=function(Q){return b.clone$1(this.getLayer(Q).filter)},ne.prototype.setLayoutProperty=function(Q,le,it,Rt){Rt===void 0&&(Rt={}),this._checkLoaded();var en=this.getLayer(Q);en?b.deepEqual(en.getLayoutProperty(le),it)||(en.setLayoutProperty(le,it,Rt),this._updateLayer(en)):this.fire(new b.ErrorEvent(new Error("The layer '"+Q+"' does not exist in the map's style and cannot be styled.")))},ne.prototype.getLayoutProperty=function(Q,le){var it=this.getLayer(Q);if(it)return it.getLayoutProperty(le);this.fire(new b.ErrorEvent(new Error("The layer '"+Q+"' does not exist in the map's style.")))},ne.prototype.setPaintProperty=function(Q,le,it,Rt){Rt===void 0&&(Rt={}),this._checkLoaded();var en=this.getLayer(Q);en?b.deepEqual(en.getPaintProperty(le),it)||(en.setPaintProperty(le,it,Rt)&&this._updateLayer(en),this._changed=!0,this._updatedPaintProps[Q]=!0):this.fire(new b.ErrorEvent(new Error("The layer '"+Q+"' does not exist in the map's style and cannot be styled.")))},ne.prototype.getPaintProperty=function(Q,le){return this.getLayer(Q).getPaintProperty(le)},ne.prototype.setFeatureState=function(Q,le){this._checkLoaded();var it=Q.source,Rt=Q.sourceLayer,en=this.sourceCaches[it];if(en!==void 0){var Yn=en.getSource().type;Yn==="geojson"&&Rt?this.fire(new b.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):Yn!=="vector"||Rt?(Q.id===void 0&&this.fire(new b.ErrorEvent(new Error("The feature id parameter must be provided."))),en.setFeatureState(Rt,Q.id,le)):this.fire(new b.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new b.ErrorEvent(new Error("The source '"+it+"' does not exist in the map's style.")))},ne.prototype.removeFeatureState=function(Q,le){this._checkLoaded();var it=Q.source,Rt=this.sourceCaches[it];if(Rt!==void 0){var en=Rt.getSource().type,Yn=en==="vector"?Q.sourceLayer:void 0;en!=="vector"||Yn?le&&typeof Q.id!="string"&&typeof Q.id!="number"?this.fire(new b.ErrorEvent(new Error("A feature id is required to remove its specific state property."))):Rt.removeFeatureState(Yn,Q.id,le):this.fire(new b.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new b.ErrorEvent(new Error("The source '"+it+"' does not exist in the map's style.")))},ne.prototype.getFeatureState=function(Q){this._checkLoaded();var le=Q.source,it=Q.sourceLayer,Rt=this.sourceCaches[le];if(Rt!==void 0){if(Rt.getSource().type!=="vector"||it)return Q.id===void 0&&this.fire(new b.ErrorEvent(new Error("The feature id parameter must be provided."))),Rt.getFeatureState(it,Q.id);this.fire(new b.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new b.ErrorEvent(new Error("The source '"+le+"' does not exist in the map's style.")))},ne.prototype.getTransition=function(){return b.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},ne.prototype.serialize=function(){return b.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:b.mapObject(this.sourceCaches,function(Q){return Q.serialize()}),layers:this._serializeLayers(this._order)},function(Q){return Q!==void 0})},ne.prototype._updateLayer=function(Q){this._updatedLayers[Q.id]=!0,Q.source&&!this._updatedSources[Q.source]&&this.sourceCaches[Q.source].getSource().type!=="raster"&&(this._updatedSources[Q.source]="reload",this.sourceCaches[Q.source].pause()),this._changed=!0},ne.prototype._flattenAndSortRenderedFeatures=function(Q){for(var le=this,it=function(Zc){return le._layers[Zc].type==="fill-extrusion"},Rt={},en=[],Yn=this._order.length-1;Yn>=0;Yn--){var Zr=this._order[Yn];if(it(Zr)){Rt[Zr]=Yn;for(var fr=0,es=Q;fr=0;Wo--){var Ws=this._order[Wo];if(it(Ws))for(var za=en.length-1;za>=0;za--){var yl=en[za].feature;if(Rt[yl.layer.id]=Qs)return ue;var Vl=Zt-Nf(Ar);if(Vl<1)return Ar;var Mu=Tl?It(Tl,0,Vl).join(""):ue.slice(0,Vl);if(No===I)return Mu+Ar;if(Tl&&(Vl+=Mu.length-Vl),mv(No)){if(ue.slice(Vl).search(No)){var rd,sd=Mu;for(No.global||(No=Vf(No.source,Ph(Kr.exec(No))+"g")),No.lastIndex=0;rd=No.exec(sd);)var Dd=rd.index;Mu=Mu.slice(0,Dd===I?Vl:Dd)}}else if(ue.indexOf(yp(No),Vl)!=Vl){var Yh=Mu.lastIndexOf(No);Yh>-1&&(Mu=Mu.slice(0,Yh))}return Mu+Ar}function Z1(ue){return ue=Ph(ue),ue&&Un.test(ue)?ue.replace(xo,yu):ue}var Av=Dr(function(ue,Ne,Zt){return ue+(Zt?" ":"")+Ne.toUpperCase()}),G1=Rs("toUpperCase");function I_(ue,Ne,Zt){return ue=Ph(ue),Ne=Zt?I:Ne,Ne===I?Pf(ue)?Fu(ue):Eu(ue):ue.match(Ne)||[]}var Py=Zh(function(ue,Ne){try{return ca(ue,I,Ne)}catch(Zt){return Sm(Zt)?Zt:new Vu(Zt)}}),K1=xr(function(ue,Ne){return ul(Ne,function(Zt){Zt=Lr(Zt),Td(ue,Zt,ia(ue[Zt],ue))}),ue});function C1(ue){var Ne=ue==null?0:ue.length,Zt=cr();return ue=Ne?Ya(ue,function(Ar){if(typeof Ar[1]!="function")throw new Uh(N);return[Zt(Ar[0]),Ar[1]]}):[],Zh(function(Ar){for(var No=-1;++NoHe)return[];var Zt=Bt,Ar=Ff(ue,Bt);Ne=cr(Ne),ue-=Bt;for(var No=zd(Ar,Ne);++Zt0||Ne<0)?new se(Zt):(ue<0?Zt=Zt.takeRight(-ue):ue&&(Zt=Zt.drop(ue)),Ne!==I&&(Ne=vc(Ne),Zt=Ne<0?Zt.dropRight(-Ne):Zt.take(Ne-ue)),Zt)},se.prototype.takeRightWhile=function(ue){return this.reverse().takeWhile(ue).reverse()},se.prototype.toArray=function(){return this.take(Bt)},ld(se.prototype,function(ue,Ne){var Zt=/^(?:filter|find|map|reject)|While$/.test(Ne),Ar=/^(?:head|last)$/.test(Ne),No=wo[Ar?"take"+(Ne=="last"?"Right":""):Ne],Qs=Ar||/^find/.test(Ne);No&&(wo.prototype[Ne]=function(){var Tl=this.__wrapped__,Vl=Ar?[1]:arguments,Mu=Tl instanceof se,rd=Vl[0],sd=Mu||mf(Tl),Dd=function(kg){var tm=No.apply(wo,qa([kg],Vl));return Ar&&Yh?tm[0]:tm};sd&&Zt&&typeof rd=="function"&&rd.length!=1&&(Mu=sd=!1);var Yh=this.__chain__,If=!!this.__actions__.length,fp=Qs&&!Yh,pp=Mu&&!If;if(!Qs&&sd){Tl=pp?Tl:new se(this);var zp=ue.apply(Tl,Vl);return zp.__actions__.push({func:od,args:[Dd],thisArg:I}),new q(zp,Yh)}return fp&&pp?ue.apply(this,Vl):(zp=this.thru(Dd),fp?Ar?zp.value()[0]:zp.value():zp)})}),ul(["pop","push","shift","sort","splice","unshift"],function(ue){var Ne=kf[ue],Zt=/^(?:push|sort|unshift)$/.test(ue)?"tap":"thru",Ar=/^(?:pop|shift)$/.test(ue);wo.prototype[ue]=function(){var No=arguments;if(Ar&&!this.__chain__){var Qs=this.value();return Ne.apply(mf(Qs)?Qs:[],No)}return this[Zt](function(Tl){return Ne.apply(mf(Tl)?Tl:[],No)})}}),ld(se.prototype,function(ue,Ne){var Zt=wo[Ne];if(Zt){var Ar=Zt.name+"";Vh.call(Cd,Ar)||(Cd[Ar]=[]),Cd[Ar].push({name:Ne,func:Zt})}}),Cd[Wr(I,pe).name]=[{name:"wrapper",func:I}],se.prototype.clone=Ue,se.prototype.reverse=qt,se.prototype.value=zn,wo.prototype.at=Ao,wo.prototype.chain=Qh,wo.prototype.commit=xc,wo.prototype.next=hh,wo.prototype.plant=_,wo.prototype.reverse=R,wo.prototype.toJSON=wo.prototype.valueOf=wo.prototype.value=G,wo.prototype.first=wo.prototype.head,sp&&(wo.prototype[sp]=Gd),wo},Yd=wd();Pc._=Yd,y=function(){return Yd}.call(V,m,V,nt),y!==I&&(nt.exports=y)}).call(this)},52858:function(nt,V,m){var y=m(52166),I="Expected a function";function b(z,k){if(typeof z!="function"||k!=null&&typeof k!="function")throw new TypeError(I);var N=function(){var w=arguments,A=k?k.apply(this,w):w[0],C=N.cache;if(C.has(A))return C.get(A);var f=z.apply(this,w);return N.cache=C.set(A,f)||C,f};return N.cache=new(b.Cache||y),N}b.Cache=y,nt.exports=b},28440:function(nt,V,m){var y=m(50097),I=m(63323),b=I(function(z,k,N){y(z,k,N)});nt.exports=b},24602:function(nt,V,m){var y=m(50097),I=m(63323),b=I(function(z,k,N,w){y(z,k,N,w)});nt.exports=b},9958:function(nt){function V(){}nt.exports=V},5795:function(nt,V,m){var y=m(33152),I=function(){return y.Date.now()};nt.exports=I},63536:function(nt,V,m){var y=m(92918),I=m(14989),b=y(I);nt.exports=b},14989:function(nt,V,m){var y=m(23442);function I(b,z){return b&&b.length&&z&&z.length?y(b,z):b}nt.exports=I},4134:function(nt){function V(){return[]}nt.exports=V},55950:function(nt){function V(){return!1}nt.exports=V},46700:function(nt,V,m){var y=m(41571),I=m(20816),b="Expected a function";function z(k,N,w){var A=!0,C=!0;if(typeof k!="function")throw new TypeError(b);return I(w)&&(A="leading"in w?!!w.leading:A,C="trailing"in w?!!w.trailing:C),y(k,N,{leading:A,maxWait:N,trailing:C})}nt.exports=z},20168:function(nt,V,m){var y=m(13927),I=m(20816),b=m(45029),z=0/0,k=/^[-+]0x[0-9a-f]+$/i,N=/^0b[01]+$/i,w=/^0o[0-7]+$/i,A=parseInt;function C(f){if(typeof f=="number")return f;if(b(f))return z;if(I(f)){var S=typeof f.valueOf=="function"?f.valueOf():f;f=I(S)?S+"":S}if(typeof f!="string")return f===0?f:+f;f=y(f);var P=N.test(f);return P||w.test(f)?A(f.slice(2),P?2:8):k.test(f)?z:+f}nt.exports=C},20480:function(nt,V,m){var y=m(95378),I=m(56730);function b(z){return y(z,I(z))}nt.exports=b},44140:function(nt,V,m){var y=m(50230);function I(b){return b==null?"":y(b)}nt.exports=I},21691:function(nt,V,m){var y=m(29098);function I(b){return b&&b.length?y(b):[]}nt.exports=I},53592:function(nt,V,m){var y=m(97815),I=y("toUpperCase");nt.exports=I},61503:function(nt,V,m){var y=m(34130),I=m(62840),b=m(44140),z=m(97681);function k(N,w,A){return N=b(N),w=A?void 0:w,w===void 0?I(N)?z(N):y(N):N.match(w)||[]}nt.exports=k},17369:function(nt){(function(V,m){nt.exports=m()})(this,function(){"use strict";var V,m,y;function I(b,z){if(!V)V=z;else if(!m)m=z;else{var k="var sharedChunk = {}; ("+V+")(sharedChunk); ("+m+")(sharedChunk);",N={};V(N),y=z(N),typeof window!="undefined"&&(y.workerUrl=window.URL.createObjectURL(new Blob([k],{type:"text/javascript"})))}}return I(["exports"],function(b){"use strict";function z(_,R){return _(R={exports:{}},R.exports),R.exports}var k=N;function N(_,R,G,le){this.cx=3*_,this.bx=3*(G-_)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*R,this.by=3*(le-R)-this.cy,this.ay=1-this.cy-this.by,this.p1x=_,this.p1y=le,this.p2x=G,this.p2y=le}N.prototype.sampleCurveX=function(_){return((this.ax*_+this.bx)*_+this.cx)*_},N.prototype.sampleCurveY=function(_){return((this.ay*_+this.by)*_+this.cy)*_},N.prototype.sampleCurveDerivativeX=function(_){return(3*this.ax*_+2*this.bx)*_+this.cx},N.prototype.solveCurveX=function(_,R){var G,le,ke,Qe,Ct;for(R===void 0&&(R=1e-6),ke=_,Ct=0;Ct<8;Ct++){if(Qe=this.sampleCurveX(ke)-_,Math.abs(Qe)(le=1))return le;for(;GQe?G=ke:le=ke,ke=.5*(le-G)+G}return ke},N.prototype.solve=function(_,R){return this.sampleCurveY(this.solveCurveX(_,R))};var w=A;function A(_,R){this.x=_,this.y=R}A.prototype={clone:function(){return new A(this.x,this.y)},add:function(_){return this.clone()._add(_)},sub:function(_){return this.clone()._sub(_)},multByPoint:function(_){return this.clone()._multByPoint(_)},divByPoint:function(_){return this.clone()._divByPoint(_)},mult:function(_){return this.clone()._mult(_)},div:function(_){return this.clone()._div(_)},rotate:function(_){return this.clone()._rotate(_)},rotateAround:function(_,R){return this.clone()._rotateAround(_,R)},matMult:function(_){return this.clone()._matMult(_)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(_){return this.x===_.x&&this.y===_.y},dist:function(_){return Math.sqrt(this.distSqr(_))},distSqr:function(_){var R=_.x-this.x,G=_.y-this.y;return R*R+G*G},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(_){return Math.atan2(this.y-_.y,this.x-_.x)},angleWith:function(_){return this.angleWithSep(_.x,_.y)},angleWithSep:function(_,R){return Math.atan2(this.x*R-this.y*_,this.x*_+this.y*R)},_matMult:function(_){var R=_[2]*this.x+_[3]*this.y;return this.x=_[0]*this.x+_[1]*this.y,this.y=R,this},_add:function(_){return this.x+=_.x,this.y+=_.y,this},_sub:function(_){return this.x-=_.x,this.y-=_.y,this},_mult:function(_){return this.x*=_,this.y*=_,this},_div:function(_){return this.x/=_,this.y/=_,this},_multByPoint:function(_){return this.x*=_.x,this.y*=_.y,this},_divByPoint:function(_){return this.x/=_.x,this.y/=_.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var _=this.y;return this.y=this.x,this.x=-_,this},_rotate:function(_){var R=Math.cos(_),G=Math.sin(_),le=G*this.x+R*this.y;return this.x=R*this.x-G*this.y,this.y=le,this},_rotateAround:function(_,R){var G=Math.cos(_),le=Math.sin(_),ke=R.y+le*(this.x-R.x)+G*(this.y-R.y);return this.x=R.x+G*(this.x-R.x)-le*(this.y-R.y),this.y=ke,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},A.convert=function(_){return _ instanceof A?_:Array.isArray(_)?new A(_[0],_[1]):_};var C=typeof self!="undefined"?self:{},f=Math.pow(2,53)-1;function S(_,R,G,le){var ke=new k(_,R,G,le);return function(Qe){return ke.solve(Qe)}}var P=S(.25,.1,.25,1);function W(_,R,G){return Math.min(G,Math.max(R,_))}function ne(_,R,G){var le=G-R,ke=((_-R)%le+le)%le+R;return ke===R?G:ke}function re(_){for(var R=[],G=arguments.length-1;G-- >0;)R[G]=arguments[G+1];for(var le=0,ke=R;le>R/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,_)}()}function fe(_){return!!_&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(_)}function Be(_,R){_.forEach(function(G){R[G]&&(R[G]=R[G].bind(R))})}function Ie(_,R){return _.indexOf(R,_.length-R.length)!==-1}function We(_,R,G){var le={};for(var ke in _)le[ke]=R.call(G||this,_[ke],ke,_);return le}function De(_,R,G){var le={};for(var ke in _)R.call(G||this,_[ke],ke,_)&&(le[ke]=_[ke]);return le}function ve(_){return Array.isArray(_)?_.map(ve):typeof _=="object"&&_?We(_,ve):_}var ye={};function we(_){ye[_]||(typeof console!="undefined"&&console.warn(_),ye[_]=!0)}function Ce(_,R,G){return(G.y-_.y)*(R.x-_.x)>(R.y-_.y)*(G.x-_.x)}function Ae(_){for(var R=0,G=0,le=_.length,ke=le-1,Qe=void 0,Ct=void 0;G@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,function(le,ke,Qe,Ct){var jt=Qe||Ct;return R[ke]=!jt||jt.toLowerCase(),""}),R["max-age"]){var G=parseInt(R["max-age"],10);isNaN(G)?delete R["max-age"]:R["max-age"]=G}return R}var xe=null;function Pt(_){if(xe==null){var R=_.navigator?_.navigator.userAgent:null;xe=!!_.safari||!(!R||!(/\b(iPad|iPhone|iPod)\b/.test(R)||R.match("Safari")&&!R.match("Chrome")))}return xe}function ct(_){try{var R=C[_];return R.setItem("_mapbox_test_",1),R.removeItem("_mapbox_test_"),!0}catch(G){return!1}}var He,wt,dt,Bt,gt=C.performance&&C.performance.now?C.performance.now.bind(C.performance):Date.now.bind(Date),_n=C.requestAnimationFrame||C.mozRequestAnimationFrame||C.webkitRequestAnimationFrame||C.msRequestAnimationFrame,Bn=C.cancelAnimationFrame||C.mozCancelAnimationFrame||C.webkitCancelAnimationFrame||C.msCancelAnimationFrame,Er={now:gt,frame:function(_){var R=_n(_);return{cancel:function(){return Bn(R)}}},getImageData:function(_,R){R===void 0&&(R=0);var G=C.document.createElement("canvas"),le=G.getContext("2d");if(!le)throw new Error("failed to create canvas 2d context");return G.width=_.width,G.height=_.height,le.drawImage(_,0,0,_.width,_.height),le.getImageData(-R,-R,_.width+2*R,_.height+2*R)},resolveURL:function(_){return He||(He=C.document.createElement("a")),He.href=_,He.href},hardwareConcurrency:C.navigator&&C.navigator.hardwareConcurrency||4,get devicePixelRatio(){return C.devicePixelRatio},get prefersReducedMotion(){return!!C.matchMedia&&(wt==null&&(wt=C.matchMedia("(prefers-reduced-motion: reduce)")),wt.matches)}},Yr={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},oi={supported:!1,testSupport:function(_){!to&&Bt&&(yo?yr(_):dt=_)}},to=!1,yo=!1;function yr(_){var R=_.createTexture();_.bindTexture(_.TEXTURE_2D,R);try{if(_.texImage2D(_.TEXTURE_2D,0,_.RGBA,_.RGBA,_.UNSIGNED_BYTE,Bt),_.isContextLost())return;oi.supported=!0}catch(G){}_.deleteTexture(R),to=!0}C.document&&((Bt=C.document.createElement("img")).onload=function(){dt&&yr(dt),dt=null,yo=!0},Bt.onerror=function(){to=!0,dt=null},Bt.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var Po="01",as=function(_,R){this._transformRequestFn=_,this._customAccessToken=R,this._createSkuToken()};function ge(_){return _.indexOf("mapbox:")===0}as.prototype._createSkuToken=function(){var _=function(){for(var R="",G=0;G<10;G++)R+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",Po,R].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=_.token,this._skuTokenExpiresAt=_.tokenExpiresAt},as.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},as.prototype.transformRequest=function(_,R){return this._transformRequestFn&&this._transformRequestFn(_,R)||{url:_}},as.prototype.normalizeStyleURL=function(_,R){if(!ge(_))return _;var G=Ci(_);return G.path="/styles/v1"+G.path,this._makeAPIURL(G,this._customAccessToken||R)},as.prototype.normalizeGlyphsURL=function(_,R){if(!ge(_))return _;var G=Ci(_);return G.path="/fonts/v1"+G.path,this._makeAPIURL(G,this._customAccessToken||R)},as.prototype.normalizeSourceURL=function(_,R){if(!ge(_))return _;var G=Ci(_);return G.path="/v4/"+G.authority+".json",G.params.push("secure"),this._makeAPIURL(G,this._customAccessToken||R)},as.prototype.normalizeSpriteURL=function(_,R,G,le){var ke=Ci(_);return ge(_)?(ke.path="/styles/v1"+ke.path+"/sprite"+R+G,this._makeAPIURL(ke,this._customAccessToken||le)):(ke.path+=""+R+G,io(ke))},as.prototype.normalizeTileURL=function(_,R){if(this._isSkuTokenExpired()&&this._createSkuToken(),_&&!ge(_))return _;var G=Ci(_);G.path=G.path.replace(/(\.(png|jpg)\d*)(?=$)/,(Er.devicePixelRatio>=2||R===512?"@2x":"")+(oi.supported?".webp":"$1")),G.path=G.path.replace(/^.+\/v4\//,"/"),G.path="/v4"+G.path;var le=this._customAccessToken||function(ke){for(var Qe=0,Ct=ke;Qe=0&&_.params.splice(ke,1)}if(le.path!=="/"&&(_.path=""+le.path+_.path),!Yr.REQUIRE_ACCESS_TOKEN)return io(_);if(!(R=R||Yr.ACCESS_TOKEN))throw new Error("An API access token is required to use Mapbox GL. "+G);if(R[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+G);return _.params=_.params.filter(function(Qe){return Qe.indexOf("access_token")===-1}),_.params.push("access_token="+R),io(_)};var _o=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function ci(_){return _o.test(_)}var Bi=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function Ci(_){var R=_.match(Bi);if(!R)throw new Error("Unable to parse URL object");return{protocol:R[1],authority:R[2],path:R[3]||"/",params:R[4]?R[4].split("&"):[]}}function io(_){var R=_.params.length?"?"+_.params.join("&"):"";return _.protocol+"://"+_.authority+_.path+R}function ln(_){if(!_)return null;var R=_.split(".");if(!R||R.length!==3)return null;try{return JSON.parse(decodeURIComponent(C.atob(R[1]).split("").map(function(G){return"%"+("00"+G.charCodeAt(0).toString(16)).slice(-2)}).join("")))}catch(G){return null}}var Ve=function(_){this.type=_,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};Ve.prototype.getStorageKey=function(_){var R,G=ln(Yr.ACCESS_TOKEN);return R=G&&G.u?C.btoa(encodeURIComponent(G.u).replace(/%([0-9A-F]{2})/g,function(le,ke){return String.fromCharCode(+("0x"+ke))})):Yr.ACCESS_TOKEN||"",_?"mapbox.eventData."+_+":"+R:"mapbox.eventData:"+R},Ve.prototype.fetchEventData=function(){var _=ct("localStorage"),R=this.getStorageKey(),G=this.getStorageKey("uuid");if(_)try{var le=C.localStorage.getItem(R);le&&(this.eventData=JSON.parse(le));var ke=C.localStorage.getItem(G);ke&&(this.anonId=ke)}catch(Qe){we("Unable to read from LocalStorage")}},Ve.prototype.saveEventData=function(){var _=ct("localStorage"),R=this.getStorageKey(),G=this.getStorageKey("uuid");if(_)try{C.localStorage.setItem(G,this.anonId),Object.keys(this.eventData).length>=1&&C.localStorage.setItem(R,JSON.stringify(this.eventData))}catch(le){we("Unable to write to LocalStorage")}},Ve.prototype.processRequests=function(_){},Ve.prototype.postEvent=function(_,R,G,le){var ke=this;if(Yr.EVENTS_URL){var Qe=Ci(Yr.EVENTS_URL);Qe.params.push("access_token="+(le||Yr.ACCESS_TOKEN||""));var Ct={event:this.type,created:new Date(_).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:"1.13.3",skuId:Po,userId:this.anonId},jt=R?re(Ct,R):Ct,Rn={url:io(Qe),headers:{"Content-Type":"text/plain"},body:JSON.stringify([jt])};this.pendingRequest=na(Rn,function(ur){ke.pendingRequest=null,G(ur),ke.saveEventData(),ke.processRequests(le)})}},Ve.prototype.queueRequest=function(_,R){this.queue.push(_),this.processRequests(R)};var _t,xt,Wt=function(_){function R(){_.call(this,"map.load"),this.success={},this.skuToken=""}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype.postMapLoadEvent=function(G,le,ke,Qe){this.skuToken=ke;var Ct=!(!Qe&&!Yr.ACCESS_TOKEN),jt=Array.isArray(G)&&G.some(function(Rn){return ge(Rn)||ci(Rn)});Yr.EVENTS_URL&&Ct&&jt&&this.queueRequest({id:le,timestamp:Date.now()},Qe)},R.prototype.processRequests=function(G){var le=this;if(!this.pendingRequest&&this.queue.length!==0){var ke=this.queue.shift(),Qe=ke.id,Ct=ke.timestamp;Qe&&this.success[Qe]||(this.anonId||this.fetchEventData(),fe(this.anonId)||(this.anonId=he()),this.postEvent(Ct,{skuToken:this.skuToken},function(jt){jt||Qe&&(le.success[Qe]=!0)},G))}},R}(Ve),on=new(function(_){function R(G){_.call(this,"appUserTurnstile"),this._customAccessToken=G}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype.postTurnstileEvent=function(G,le){Yr.EVENTS_URL&&Yr.ACCESS_TOKEN&&Array.isArray(G)&&G.some(function(ke){return ge(ke)||ci(ke)})&&this.queueRequest(Date.now(),le)},R.prototype.processRequests=function(G){var le=this;if(!this.pendingRequest&&this.queue.length!==0){this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();var ke=ln(Yr.ACCESS_TOKEN),Qe=ke?ke.u:Yr.ACCESS_TOKEN,Ct=Qe!==this.eventData.tokenU;fe(this.anonId)||(this.anonId=he(),Ct=!0);var jt=this.queue.shift();if(this.eventData.lastSuccess){var Rn=new Date(this.eventData.lastSuccess),ur=new Date(jt),zr=(jt-this.eventData.lastSuccess)/864e5;Ct=Ct||zr>=1||zr<-1||Rn.getDate()!==ur.getDate()}else Ct=!0;if(!Ct)return this.processRequests();this.postEvent(jt,{"enabled.telemetry":!1},function(hi){hi||(le.eventData.lastSuccess=jt,le.eventData.tokenU=Qe)},G)}},R}(Ve)),Ot=on.postTurnstileEvent.bind(on),Tt=new Wt,bt=Tt.postMapLoadEvent.bind(Tt),Ht=500,Wn=50;function tn(){C.caches&&!_t&&(_t=C.caches.open("mapbox-tiles"))}function hr(_){var R=_.indexOf("?");return R<0?_:_.slice(0,R)}var Zi,Ri=1/0;function Pi(){return Zi==null&&(Zi=C.OffscreenCanvas&&new C.OffscreenCanvas(1,1).getContext("2d")&&typeof C.createImageBitmap=="function"),Zi}var Wo={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};typeof Object.freeze=="function"&&Object.freeze(Wo);var ys=function(_){function R(G,le,ke){le===401&&ci(ke)&&(G+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),_.call(this,G),this.status=le,this.url=ke,this.name=this.constructor.name,this.message=G}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype.toString=function(){return this.name+": "+this.message+" ("+this.status+"): "+this.url},R}(Error),xn=me()?function(){return self.worker&&self.worker.referrer}:function(){return(C.location.protocol==="blob:"?C.parent:C).location.href},Hr,Jr,Yi=function(_,R){if(!(/^file:/.test(G=_.url)||/^file:/.test(xn())&&!/^\w+:/.test(G))){if(C.fetch&&C.Request&&C.AbortController&&C.Request.prototype.hasOwnProperty("signal"))return function(le,ke){var Qe,Ct=new C.AbortController,jt=new C.Request(le.url,{method:le.method||"GET",body:le.body,credentials:le.credentials,headers:le.headers,referrer:xn(),signal:Ct.signal}),Rn=!1,ur=!1,zr=(Qe=jt.url).indexOf("sku=")>0&&ci(Qe);le.type==="json"&&jt.headers.set("Accept","application/json");var hi=function(ko,Zs,Js){if(!ur){if(ko&&ko.message!=="SecurityError"&&we(ko),Zs&&Js)return po(Zs);var sl=Date.now();C.fetch(jt).then(function(Da){if(Da.ok){var Ol=zr?Da.clone():null;return po(Da,Ol,sl)}return ke(new ys(Da.statusText,Da.status,le.url))}).catch(function(Da){Da.code!==20&&ke(new Error(Da.message))})}},po=function(ko,Zs,Js){(le.type==="arrayBuffer"?ko.arrayBuffer():le.type==="json"?ko.json():ko.text()).then(function(sl){ur||(Zs&&Js&&function(Da,Ol,jl){if(tn(),_t){var cu={status:Ol.status,statusText:Ol.statusText,headers:new C.Headers};Ol.headers.forEach(function(Uu,kc){return cu.headers.set(kc,Uu)});var lu=je(Ol.headers.get("Cache-Control")||"");lu["no-store"]||(lu["max-age"]&&cu.headers.set("Expires",new Date(jl+1e3*lu["max-age"]).toUTCString()),new Date(cu.headers.get("Expires")).getTime()-jl<42e4||function(Uu,kc){if(xt===void 0)try{new Response(new ReadableStream),xt=!0}catch(ac){xt=!1}xt?kc(Uu.body):Uu.blob().then(kc)}(Ol,function(Uu){var kc=new C.Response(Uu,cu);tn(),_t&&_t.then(function(ac){return ac.put(hr(Da.url),kc)}).catch(function(ac){return we(ac.message)})}))}}(jt,Zs,Js),Rn=!0,ke(null,sl,ko.headers.get("Cache-Control"),ko.headers.get("Expires")))}).catch(function(sl){ur||ke(new Error(sl.message))})};return zr?function(ko,Zs){if(tn(),!_t)return Zs(null);var Js=hr(ko.url);_t.then(function(sl){sl.match(Js).then(function(Da){var Ol=function(jl){if(!jl)return!1;var cu=new Date(jl.headers.get("Expires")||0),lu=je(jl.headers.get("Cache-Control")||"");return cu>Date.now()&&!lu["no-cache"]}(Da);sl.delete(Js),Ol&&sl.put(Js,Da.clone()),Zs(null,Da,Ol)}).catch(Zs)}).catch(Zs)}(jt,hi):hi(null,null),{cancel:function(){ur=!0,Rn||Ct.abort()}}}(_,R);if(me()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",_,R,void 0,!0)}var G;return function(le,ke){var Qe=new C.XMLHttpRequest;for(var Ct in Qe.open(le.method||"GET",le.url,!0),le.type==="arrayBuffer"&&(Qe.responseType="arraybuffer"),le.headers)Qe.setRequestHeader(Ct,le.headers[Ct]);return le.type==="json"&&(Qe.responseType="text",Qe.setRequestHeader("Accept","application/json")),Qe.withCredentials=le.credentials==="include",Qe.onerror=function(){ke(new Error(Qe.statusText))},Qe.onload=function(){if((Qe.status>=200&&Qe.status<300||Qe.status===0)&&Qe.response!==null){var jt=Qe.response;if(le.type==="json")try{jt=JSON.parse(Qe.response)}catch(Rn){return ke(Rn)}ke(null,jt,Qe.getResponseHeader("Cache-Control"),Qe.getResponseHeader("Expires"))}else ke(new ys(Qe.statusText,Qe.status,le.url))},Qe.send(le.body),{cancel:function(){return Qe.abort()}}}(_,R)},xo=function(_,R){return Yi(re(_,{type:"arrayBuffer"}),R)},na=function(_,R){return Yi(re(_,{method:"POST"}),R)},Un="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";Hr=[],Jr=0;var Xn=function(_,R){if(oi.supported&&(_.headers||(_.headers={}),_.headers.accept="image/webp,*/*"),Jr>=Yr.MAX_PARALLEL_IMAGE_REQUESTS){var G={requestParameters:_,callback:R,cancelled:!1,cancel:function(){this.cancelled=!0}};return Hr.push(G),G}Jr++;var le=!1,ke=function(){if(!le)for(le=!0,Jr--;Hr.length&&Jr0||this._oneTimeListeners&&this._oneTimeListeners[_]&&this._oneTimeListeners[_].length>0||this._eventedParent&&this._eventedParent.listens(_)},ii.prototype.setEventedParent=function(_,R){return this._eventedParent=_,this._eventedParentData=R,this};var rn={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}},Qn=function(_,R,G,le){this.message=(_?_+": ":"")+G,le&&(this.identifier=le),R!=null&&R.__line__&&(this.line=R.__line__)};function Vr(_){var R=_.value;return R?[new Qn(_.key,R,"constants have been deprecated as of v8")]:[]}function so(_){for(var R=[],G=arguments.length-1;G-- >0;)R[G]=arguments[G+1];for(var le=0,ke=R;le":_.itemType.kind==="value"?"array":"array<"+R+">"}return _.kind}var Si=[Gr,ui,xi,lo,Kr,Qt,ti,yi(ji),Gn];function tr(_,R){if(R.kind==="error")return null;if(_.kind==="array"){if(R.kind==="array"&&(R.N===0&&R.itemType.kind==="value"||!tr(_.itemType,R.itemType))&&(typeof _.N!="number"||_.N===R.N))return null}else{if(_.kind===R.kind)return null;if(_.kind==="value"){for(var G=0,le=Si;G255?255:jt}function ke(jt){return le(jt[jt.length-1]==="%"?parseFloat(jt)/100*255:parseInt(jt))}function Qe(jt){return(Rn=jt[jt.length-1]==="%"?parseFloat(jt)/100:parseFloat(jt))<0?0:Rn>1?1:Rn;var Rn}function Ct(jt,Rn,ur){return ur<0?ur+=1:ur>1&&(ur-=1),6*ur<1?jt+(Rn-jt)*ur*6:2*ur<1?Rn:3*ur<2?jt+(Rn-jt)*(2/3-ur)*6:jt}try{R.parseCSSColor=function(jt){var Rn,ur=jt.replace(/ /g,"").toLowerCase();if(ur in G)return G[ur].slice();if(ur[0]==="#")return ur.length===4?(Rn=parseInt(ur.substr(1),16))>=0&&Rn<=4095?[(3840&Rn)>>4|(3840&Rn)>>8,240&Rn|(240&Rn)>>4,15&Rn|(15&Rn)<<4,1]:null:ur.length===7&&(Rn=parseInt(ur.substr(1),16))>=0&&Rn<=16777215?[(16711680&Rn)>>16,(65280&Rn)>>8,255&Rn,1]:null;var zr=ur.indexOf("("),hi=ur.indexOf(")");if(zr!==-1&&hi+1===ur.length){var po=ur.substr(0,zr),ko=ur.substr(zr+1,hi-(zr+1)).split(","),Zs=1;switch(po){case"rgba":if(ko.length!==4)return null;Zs=Qe(ko.pop());case"rgb":return ko.length!==3?null:[ke(ko[0]),ke(ko[1]),ke(ko[2]),Zs];case"hsla":if(ko.length!==4)return null;Zs=Qe(ko.pop());case"hsl":if(ko.length!==3)return null;var Js=(parseFloat(ko[0])%360+360)%360/360,sl=Qe(ko[1]),Da=Qe(ko[2]),Ol=Da<=.5?Da*(sl+1):Da+sl-Da*sl,jl=2*Da-Ol;return[le(255*Ct(jl,Ol,Js+1/3)),le(255*Ct(jl,Ol,Js)),le(255*Ct(jl,Ol,Js-1/3)),Zs];default:return null}}return null}}catch(jt){}}).parseCSSColor,qn=function(_,R,G,le){le===void 0&&(le=1),this.r=_,this.g=R,this.b=G,this.a=le};qn.parse=function(_){if(_){if(_ instanceof qn)return _;if(typeof _=="string"){var R=kr(_);if(R)return new qn(R[0]/255*R[3],R[1]/255*R[3],R[2]/255*R[3],R[3])}}},qn.prototype.toString=function(){var _=this.toArray(),R=_[1],G=_[2],le=_[3];return"rgba("+Math.round(_[0])+","+Math.round(R)+","+Math.round(G)+","+le+")"},qn.prototype.toArray=function(){var _=this.a;return _===0?[0,0,0,0]:[255*this.r/_,255*this.g/_,255*this.b/_,_]},qn.black=new qn(0,0,0,1),qn.white=new qn(1,1,1,1),qn.transparent=new qn(0,0,0,0),qn.red=new qn(1,0,0,1);var ds=function(_,R,G){this.sensitivity=_?R?"variant":"case":R?"accent":"base",this.locale=G,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};ds.prototype.compare=function(_,R){return this.collator.compare(_,R)},ds.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var _a=function(_,R,G,le,ke){this.text=_,this.image=R,this.scale=G,this.fontStack=le,this.textColor=ke},da=function(_){this.sections=_};da.fromString=function(_){return new da([new _a(_,null,null,null,null)])},da.prototype.isEmpty=function(){return this.sections.length===0||!this.sections.some(function(_){return _.text.length!==0||_.image&&_.image.name.length!==0})},da.factory=function(_){return _ instanceof da?_:da.fromString(_)},da.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(_){return _.text}).join("")},da.prototype.serialize=function(){for(var _=["format"],R=0,G=this.sections;R=0&&_<=255&&typeof R=="number"&&R>=0&&R<=255&&typeof G=="number"&&G>=0&&G<=255?le===void 0||typeof le=="number"&&le>=0&&le<=1?null:"Invalid rgba value ["+[_,R,G,le].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+(typeof le=="number"?[_,R,G,le]:[_,R,G]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function Co(_){if(_===null||typeof _=="string"||typeof _=="boolean"||typeof _=="number"||_ instanceof qn||_ instanceof ds||_ instanceof da||_ instanceof zs)return!0;if(Array.isArray(_)){for(var R=0,G=_;R2){var jt=_[1];if(typeof jt!="string"||!(jt in Es)||jt==="object")return R.error('The item type argument of "array" must be one of string, number, boolean',1);Qe=Es[jt],le++}else Qe=ji;if(_.length>3){if(_[2]!==null&&(typeof _[2]!="number"||_[2]<0||_[2]!==Math.floor(_[2])))return R.error('The length argument to "array" must be a positive integer literal',2);Ct=_[2],le++}G=yi(Qe,Ct)}else G=Es[ke];for(var Rn=[];le<_.length;le++){var ur=R.parse(_[le],le,ji);if(!ur)return null;Rn.push(ur)}return new xs(G,Rn)},xs.prototype.evaluate=function(_){for(var R=0;R1)&&R.push(le)}}return R.concat(this.args.map(function(ke){return ke.serialize()}))};var Za=function(_){this.type=Qt,this.sections=_};Za.parse=function(_,R){if(_.length<2)return R.error("Expected at least one argument.");var G=_[1];if(!Array.isArray(G)&&typeof G=="object")return R.error("First argument must be an image or text section.");for(var le=[],ke=!1,Qe=1;Qe<=_.length-1;++Qe){var Ct=_[Qe];if(ke&&typeof Ct=="object"&&!Array.isArray(Ct)){ke=!1;var jt=null;if(Ct["font-scale"]&&!(jt=R.parse(Ct["font-scale"],1,ui)))return null;var Rn=null;if(Ct["text-font"]&&!(Rn=R.parse(Ct["text-font"],1,yi(xi))))return null;var ur=null;if(Ct["text-color"]&&!(ur=R.parse(Ct["text-color"],1,Kr)))return null;var zr=le[le.length-1];zr.scale=jt,zr.font=Rn,zr.textColor=ur}else{var hi=R.parse(_[Qe],1,ji);if(!hi)return null;var po=hi.type.kind;if(po!=="string"&&po!=="value"&&po!=="null"&&po!=="resolvedImage")return R.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");ke=!0,le.push({content:hi,scale:null,font:null,textColor:null})}}return new Za(le)},Za.prototype.evaluate=function(_){return new da(this.sections.map(function(R){var G=R.content.evaluate(_);return cl(G)===Gn?new _a("",G,null,null,null):new _a(Fr(G),null,R.scale?R.scale.evaluate(_):null,R.font?R.font.evaluate(_).join(","):null,R.textColor?R.textColor.evaluate(_):null)}))},Za.prototype.eachChild=function(_){for(var R=0,G=this.sections;R-1),G},tl.prototype.eachChild=function(_){_(this.input)},tl.prototype.outputDefined=function(){return!1},tl.prototype.serialize=function(){return["image",this.input.serialize()]};var xl={"to-boolean":lo,"to-color":Kr,"to-number":ui,"to-string":xi},Qa=function(_,R){this.type=_,this.args=R};Qa.parse=function(_,R){if(_.length<2)return R.error("Expected at least one argument.");var G=_[0];if((G==="to-boolean"||G==="to-string")&&_.length!==2)return R.error("Expected one argument.");for(var le=xl[G],ke=[],Qe=1;Qe<_.length;Qe++){var Ct=R.parse(_[Qe],Qe,ji);if(!Ct)return null;ke.push(Ct)}return new Qa(le,ke)},Qa.prototype.evaluate=function(_){if(this.type.kind==="boolean")return!!this.args[0].evaluate(_);if(this.type.kind==="color"){for(var R,G,le=0,ke=this.args;le4?"Invalid rbga value "+JSON.stringify(R)+": expected an array containing either three or four numeric values.":Wa(R[0],R[1],R[2],R[3])))return new qn(R[0]/255,R[1]/255,R[2]/255,R[3])}throw new jo(G||"Could not parse color from value '"+(typeof R=="string"?R:String(JSON.stringify(R)))+"'")}if(this.type.kind==="number"){for(var Ct=null,jt=0,Rn=this.args;jt=R[2]||_[1]<=R[1]||_[3]>=R[3])}function ht(_,R){var G=(180+_[0])/360,le=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+_[1]*Math.PI/360)))/360,ke=Math.pow(2,R.z);return[Math.round(G*ke*8192),Math.round(le*ke*8192)]}function vt(_,R,G){return R[1]>_[1]!=G[1]>_[1]&&_[0]<(G[0]-R[0])*(_[1]-R[1])/(G[1]-R[1])+R[0]}function Fe(_,R){for(var G,le,ke,Qe,Ct,jt,Rn,ur=!1,zr=0,hi=R.length;zr0&&jt<0||Ct<0&&jt>0}function an(_,R,G){for(var le=0,ke=G;leG[2]){var ke=.5*le,Qe=_[0]-G[0]>ke?-le:G[0]-_[0]>ke?le:0;Qe===0&&(Qe=_[0]-G[2]>ke?-le:G[2]-_[0]>ke?le:0),_[0]+=Qe}Nn(R,_)}function us(_,R,G,le){for(var ke=8192*Math.pow(2,le.z),Qe=[8192*le.x,8192*le.y],Ct=[],jt=0,Rn=_;jt=0)return!1;var G=!0;return _.eachChild(function(le){G&&!Cs(le,R)&&(G=!1)}),G}Os.parse=function(_,R){if(_.length!==2)return R.error("'within' expression requires exactly one argument, but found "+(_.length-1)+" instead.");if(Co(_[1])){var G=_[1];if(G.type==="FeatureCollection")for(var le=0;leR))throw new jo("Input is not a number.");Qe=Ct-1}return 0}fa.prototype.parse=function(_,R,G,le,ke){return ke===void 0&&(ke={}),R?this.concat(R,G,le)._parse(_,ke):this._parse(_,ke)},fa.prototype._parse=function(_,R){function G(ur,zr,hi){return hi==="assert"?new xs(zr,[ur]):hi==="coerce"?new Qa(zr,[ur]):ur}if(_!==null&&typeof _!="string"&&typeof _!="boolean"&&typeof _!="number"||(_=["literal",_]),Array.isArray(_)){if(_.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var le=_[0];if(typeof le!="string")return this.error("Expression name must be a string, but found "+typeof le+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var ke=this.registry[le];if(ke){var Qe=ke.parse(_,this);if(!Qe)return null;if(this.expectedType){var Ct=this.expectedType,jt=Qe.type;if(Ct.kind!=="string"&&Ct.kind!=="number"&&Ct.kind!=="boolean"&&Ct.kind!=="object"&&Ct.kind!=="array"||jt.kind!=="value")if(Ct.kind!=="color"&&Ct.kind!=="formatted"&&Ct.kind!=="resolvedImage"||jt.kind!=="value"&&jt.kind!=="string"){if(this.checkSubtype(Ct,jt))return null}else Qe=G(Qe,Ct,R.typeAnnotation||"coerce");else Qe=G(Qe,Ct,R.typeAnnotation||"assert")}if(!(Qe instanceof fs)&&Qe.type.kind!=="resolvedImage"&&function ur(zr){if(zr instanceof ea)return ur(zr.boundExpression);if(zr instanceof dn&&zr.name==="error"||zr instanceof An||zr instanceof Os)return!1;var hi=zr instanceof Qa||zr instanceof xs,po=!0;return zr.eachChild(function(ko){po=hi?po&&ur(ko):po&&ko instanceof fs}),!!po&&pa(zr)&&Cs(zr,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}(Qe)){var Rn=new co;try{Qe=new fs(Qe.type,Qe.evaluate(Rn))}catch(ur){return this.error(ur.message),null}}return Qe}return this.error('Unknown expression "'+le+'". If you wanted a literal array, use ["literal", [...]].',0)}return this.error(_===void 0?"'undefined' value invalid. Use null instead.":typeof _=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':"Expected an array, but found "+typeof _+" instead.")},fa.prototype.concat=function(_,R,G){var le=typeof _=="number"?this.path.concat(_):this.path,ke=G?this.scope.concat(G):this.scope;return new fa(this.registry,le,R||null,ke,this.errors)},fa.prototype.error=function(_){for(var R=[],G=arguments.length-1;G-- >0;)R[G]=arguments[G+1];var le=""+this.key+R.map(function(ke){return"["+ke+"]"}).join("");this.errors.push(new pn(le,_))},fa.prototype.checkSubtype=function(_,R){var G=tr(_,R);return G&&this.error(G),G};var Ma=function(_,R,G){this.type=_,this.input=R,this.labels=[],this.outputs=[];for(var le=0,ke=G;le=Ct)return R.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',Rn);var zr=R.parse(jt,ur,ke);if(!zr)return null;ke=ke||zr.type,le.push([Ct,zr])}return new Ma(ke,G,le)},Ma.prototype.evaluate=function(_){var R=this.labels,G=this.outputs;if(R.length===1)return G[0].evaluate(_);var le=this.input.evaluate(_);if(le<=R[0])return G[0].evaluate(_);var ke=R.length;return le>=R[ke-1]?G[ke-1].evaluate(_):G[Bl(R,le)].evaluate(_)},Ma.prototype.eachChild=function(_){_(this.input);for(var R=0,G=this.outputs;R0&&_.push(this.labels[R]),_.push(this.outputs[R].serialize());return _};var oa=Object.freeze({__proto__:null,number:pl,color:function(_,R,G){return new qn(pl(_.r,R.r,G),pl(_.g,R.g,G),pl(_.b,R.b,G),pl(_.a,R.a,G))},array:function(_,R,G){return _.map(function(le,ke){return pl(le,R[ke],G)})}}),Nl=6/29*3*(6/29),cs=Math.PI/180,zi=180/Math.PI;function qi(_){return _>.008856451679035631?Math.pow(_,1/3):_/Nl+4/29}function ta(_){return _>6/29?_*_*_:Nl*(_-4/29)}function ms(_){return 255*(_<=.0031308?12.92*_:1.055*Math.pow(_,1/2.4)-.055)}function Ua(_){return(_/=255)<=.04045?_/12.92:Math.pow((_+.055)/1.055,2.4)}function $u(_){var R=Ua(_.r),G=Ua(_.g),le=Ua(_.b),ke=qi((.4124564*R+.3575761*G+.1804375*le)/.95047),Qe=qi((.2126729*R+.7151522*G+.072175*le)/1);return{l:116*Qe-16,a:500*(ke-Qe),b:200*(Qe-qi((.0193339*R+.119192*G+.9503041*le)/1.08883)),alpha:_.a}}function rc(_){var R=(_.l+16)/116,G=isNaN(_.a)?R:R+_.a/500,le=isNaN(_.b)?R:R-_.b/200;return R=1*ta(R),G=.95047*ta(G),le=1.08883*ta(le),new qn(ms(3.2404542*G-1.5371385*R-.4985314*le),ms(-.969266*G+1.8760108*R+.041556*le),ms(.0556434*G-.2040259*R+1.0572252*le),_.alpha)}function Pc(_,R,G){var le=R-_;return _+G*(le>180||le<-180?le-360*Math.round(le/360):le)}var ho={forward:$u,reverse:rc,interpolate:function(_,R,G){return{l:pl(_.l,R.l,G),a:pl(_.a,R.a,G),b:pl(_.b,R.b,G),alpha:pl(_.alpha,R.alpha,G)}}},Ji={forward:function(_){var R=$u(_),G=R.l,le=R.a,ke=R.b,Qe=Math.atan2(ke,le)*zi;return{h:Qe<0?Qe+360:Qe,c:Math.sqrt(le*le+ke*ke),l:G,alpha:_.a}},reverse:function(_){var R=_.h*cs,G=_.c;return rc({l:_.l,a:Math.cos(R)*G,b:Math.sin(R)*G,alpha:_.alpha})},interpolate:function(_,R,G){return{h:Pc(_.h,R.h,G),c:pl(_.c,R.c,G),l:pl(_.l,R.l,G),alpha:pl(_.alpha,R.alpha,G)}}},ss=Object.freeze({__proto__:null,lab:ho,hcl:Ji}),$n=function(_,R,G,le,ke){this.type=_,this.operator=R,this.interpolation=G,this.input=le,this.labels=[],this.outputs=[];for(var Qe=0,Ct=ke;Qe1}))return R.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);le={name:"cubic-bezier",controlPoints:jt}}if(_.length-1<4)return R.error("Expected at least 4 arguments, but found only "+(_.length-1)+".");if((_.length-1)%2!=0)return R.error("Expected an even number of arguments.");if(!(ke=R.parse(ke,2,ui)))return null;var Rn=[],ur=null;G==="interpolate-hcl"||G==="interpolate-lab"?ur=Kr:R.expectedType&&R.expectedType.kind!=="value"&&(ur=R.expectedType);for(var zr=0;zr=hi)return R.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',ko);var Js=R.parse(po,Zs,ur);if(!Js)return null;ur=ur||Js.type,Rn.push([hi,Js])}return ur.kind==="number"||ur.kind==="color"||ur.kind==="array"&&ur.itemType.kind==="number"&&typeof ur.N=="number"?new $n(ur,G,le,ke,Rn):R.error("Type "+Ln(ur)+" is not interpolatable.")},$n.prototype.evaluate=function(_){var R=this.labels,G=this.outputs;if(R.length===1)return G[0].evaluate(_);var le=this.input.evaluate(_);if(le<=R[0])return G[0].evaluate(_);var ke=R.length;if(le>=R[ke-1])return G[ke-1].evaluate(_);var Qe=Bl(R,le),Ct=$n.interpolationFactor(this.interpolation,le,R[Qe],R[Qe+1]),jt=G[Qe].evaluate(_),Rn=G[Qe+1].evaluate(_);return this.operator==="interpolate"?oa[this.type.kind.toLowerCase()](jt,Rn,Ct):this.operator==="interpolate-hcl"?Ji.reverse(Ji.interpolate(Ji.forward(jt),Ji.forward(Rn),Ct)):ho.reverse(ho.interpolate(ho.forward(jt),ho.forward(Rn),Ct))},$n.prototype.eachChild=function(_){_(this.input);for(var R=0,G=this.outputs;R=G.length)throw new jo("Array index out of bounds: "+R+" > "+(G.length-1)+".");if(R!==Math.floor(R))throw new jo("Array index must be an integer, but found "+R+" instead.");return G[R]},Ki.prototype.eachChild=function(_){_(this.index),_(this.input)},Ki.prototype.outputDefined=function(){return!1},Ki.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var ro=function(_,R){this.type=lo,this.needle=_,this.haystack=R};ro.parse=function(_,R){if(_.length!==3)return R.error("Expected 2 arguments, but found "+(_.length-1)+" instead.");var G=R.parse(_[1],1,ji),le=R.parse(_[2],2,ji);return G&&le?vi(G.type,[lo,xi,ui,Gr,ji])?new ro(G,le):R.error("Expected first argument to be of type boolean, string, number or null, but found "+Ln(G.type)+" instead"):null},ro.prototype.evaluate=function(_){var R=this.needle.evaluate(_),G=this.haystack.evaluate(_);if(!G)return!1;if(!Ni(R,["boolean","string","number","null"]))throw new jo("Expected first argument to be of type boolean, string, number or null, but found "+Ln(cl(R))+" instead.");if(!Ni(G,["string","array"]))throw new jo("Expected second argument to be of type array or string, but found "+Ln(cl(G))+" instead.");return G.indexOf(R)>=0},ro.prototype.eachChild=function(_){_(this.needle),_(this.haystack)},ro.prototype.outputDefined=function(){return!0},ro.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var Ei=function(_,R,G){this.type=ui,this.needle=_,this.haystack=R,this.fromIndex=G};Ei.parse=function(_,R){if(_.length<=2||_.length>=5)return R.error("Expected 3 or 4 arguments, but found "+(_.length-1)+" instead.");var G=R.parse(_[1],1,ji),le=R.parse(_[2],2,ji);if(!G||!le)return null;if(!vi(G.type,[lo,xi,ui,Gr,ji]))return R.error("Expected first argument to be of type boolean, string, number or null, but found "+Ln(G.type)+" instead");if(_.length===4){var ke=R.parse(_[3],3,ui);return ke?new Ei(G,le,ke):null}return new Ei(G,le)},Ei.prototype.evaluate=function(_){var R=this.needle.evaluate(_),G=this.haystack.evaluate(_);if(!Ni(R,["boolean","string","number","null"]))throw new jo("Expected first argument to be of type boolean, string, number or null, but found "+Ln(cl(R))+" instead.");if(!Ni(G,["string","array"]))throw new jo("Expected second argument to be of type array or string, but found "+Ln(cl(G))+" instead.");if(this.fromIndex){var le=this.fromIndex.evaluate(_);return G.indexOf(R,le)}return G.indexOf(R)},Ei.prototype.eachChild=function(_){_(this.needle),_(this.haystack),this.fromIndex&&_(this.fromIndex)},Ei.prototype.outputDefined=function(){return!1},Ei.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var _=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),_]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var ns=function(_,R,G,le,ke,Qe){this.inputType=_,this.type=R,this.input=G,this.cases=le,this.outputs=ke,this.otherwise=Qe};ns.parse=function(_,R){if(_.length<5)return R.error("Expected at least 4 arguments, but found only "+(_.length-1)+".");if(_.length%2!=1)return R.error("Expected an even number of arguments.");var G,le;R.expectedType&&R.expectedType.kind!=="value"&&(le=R.expectedType);for(var ke={},Qe=[],Ct=2;Ct<_.length-1;Ct+=2){var jt=_[Ct],Rn=_[Ct+1];Array.isArray(jt)||(jt=[jt]);var ur=R.concat(Ct);if(jt.length===0)return ur.error("Expected at least one branch label.");for(var zr=0,hi=jt;zrNumber.MAX_SAFE_INTEGER)return ur.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof po=="number"&&Math.floor(po)!==po)return ur.error("Numeric branch labels must be integer values.");if(G){if(ur.checkSubtype(G,cl(po)))return null}else G=cl(po);if(ke[String(po)]!==void 0)return ur.error("Branch labels must be unique.");ke[String(po)]=Qe.length}var ko=R.parse(Rn,Ct,le);if(!ko)return null;le=le||ko.type,Qe.push(ko)}var Zs=R.parse(_[1],1,ji);if(!Zs)return null;var Js=R.parse(_[_.length-1],_.length-1,le);return Js?Zs.type.kind!=="value"&&R.concat(1).checkSubtype(G,Zs.type)?null:new ns(G,le,Zs,ke,Qe,Js):null},ns.prototype.evaluate=function(_){var R=this.input.evaluate(_);return(cl(R)===this.inputType&&this.outputs[this.cases[R]]||this.otherwise).evaluate(_)},ns.prototype.eachChild=function(_){_(this.input),this.outputs.forEach(_),_(this.otherwise)},ns.prototype.outputDefined=function(){return this.outputs.every(function(_){return _.outputDefined()})&&this.otherwise.outputDefined()},ns.prototype.serialize=function(){for(var _=this,R=["match",this.input.serialize()],G=[],le={},ke=0,Qe=Object.keys(this.cases).sort();ke=5)return R.error("Expected 3 or 4 arguments, but found "+(_.length-1)+" instead.");var G=R.parse(_[1],1,ji),le=R.parse(_[2],2,ui);if(!G||!le)return null;if(!vi(G.type,[yi(ji),xi,ji]))return R.error("Expected first argument to be of type array or string, but found "+Ln(G.type)+" instead");if(_.length===4){var ke=R.parse(_[3],3,ui);return ke?new Na(G.type,G,le,ke):null}return new Na(G.type,G,le)},Na.prototype.evaluate=function(_){var R=this.input.evaluate(_),G=this.beginIndex.evaluate(_);if(!Ni(R,["string","array"]))throw new jo("Expected first argument to be of type array or string, but found "+Ln(cl(R))+" instead.");if(this.endIndex){var le=this.endIndex.evaluate(_);return R.slice(G,le)}return R.slice(G)},Na.prototype.eachChild=function(_){_(this.input),_(this.beginIndex),this.endIndex&&_(this.endIndex)},Na.prototype.outputDefined=function(){return!1},Na.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var _=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),_]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};var ja=Ml("==",function(_,R,G){return R===G},Hl),Pu=Ml("!=",function(_,R,G){return R!==G},function(_,R,G,le){return!Hl(0,R,G,le)}),Xs=Ml("<",function(_,R,G){return R",function(_,R,G){return R>G},function(_,R,G,le){return le.compare(R,G)>0}),qa=Ml("<=",function(_,R,G){return R<=G},function(_,R,G,le){return le.compare(R,G)<=0}),Ul=Ml(">=",function(_,R,G){return R>=G},function(_,R,G,le){return le.compare(R,G)>=0}),ql=function(_,R,G,le,ke){this.type=xi,this.number=_,this.locale=R,this.currency=G,this.minFractionDigits=le,this.maxFractionDigits=ke};ql.parse=function(_,R){if(_.length!==3)return R.error("Expected two arguments.");var G=R.parse(_[1],1,ui);if(!G)return null;var le=_[2];if(typeof le!="object"||Array.isArray(le))return R.error("NumberFormat options argument must be an object.");var ke=null;if(le.locale&&!(ke=R.parse(le.locale,1,xi)))return null;var Qe=null;if(le.currency&&!(Qe=R.parse(le.currency,1,xi)))return null;var Ct=null;if(le["min-fraction-digits"]&&!(Ct=R.parse(le["min-fraction-digits"],1,ui)))return null;var jt=null;return le["max-fraction-digits"]&&!(jt=R.parse(le["max-fraction-digits"],1,ui))?null:new ql(G,ke,Qe,Ct,jt)},ql.prototype.evaluate=function(_){return new Intl.NumberFormat(this.locale?this.locale.evaluate(_):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(_):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(_):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(_):void 0}).format(this.number.evaluate(_))},ql.prototype.eachChild=function(_){_(this.number),this.locale&&_(this.locale),this.currency&&_(this.currency),this.minFractionDigits&&_(this.minFractionDigits),this.maxFractionDigits&&_(this.maxFractionDigits)},ql.prototype.outputDefined=function(){return!1},ql.prototype.serialize=function(){var _={};return this.locale&&(_.locale=this.locale.serialize()),this.currency&&(_.currency=this.currency.serialize()),this.minFractionDigits&&(_["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(_["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),_]};var vu=function(_){this.type=ui,this.input=_};vu.parse=function(_,R){if(_.length!==2)return R.error("Expected 1 argument, but found "+(_.length-1)+" instead.");var G=R.parse(_[1],1);return G?G.type.kind!=="array"&&G.type.kind!=="string"&&G.type.kind!=="value"?R.error("Expected argument of type string or array, but found "+Ln(G.type)+" instead."):new vu(G):null},vu.prototype.evaluate=function(_){var R=this.input.evaluate(_);if(typeof R=="string"||Array.isArray(R))return R.length;throw new jo("Expected value to be of type string or array, but found "+Ln(cl(R))+" instead.")},vu.prototype.eachChild=function(_){_(this.input)},vu.prototype.outputDefined=function(){return!1},vu.prototype.serialize=function(){var _=["length"];return this.eachChild(function(R){_.push(R.serialize())}),_};var au={"==":ja,"!=":Pu,">":Ya,"<":Xs,">=":Ul,"<=":qa,array:xs,at:Ki,boolean:xs,case:ca,coalesce:Qr,collator:An,format:Za,image:tl,in:ro,"index-of":Ei,interpolate:$n,"interpolate-hcl":$n,"interpolate-lab":$n,length:vu,let:ni,literal:fs,match:ns,number:xs,"number-format":ql,object:xs,slice:Na,step:Ma,string:xs,"to-boolean":Qa,"to-color":Qa,"to-number":Qa,"to-string":Qa,var:ea,within:Os};function bn(_,R){var G=R[0],le=R[1],ke=R[2],Qe=R[3];G=G.evaluate(_),le=le.evaluate(_),ke=ke.evaluate(_);var Ct=Qe?Qe.evaluate(_):1,jt=Wa(G,le,ke,Ct);if(jt)throw new jo(jt);return new qn(G/255*Ct,le/255*Ct,ke/255*Ct,Ct)}function Eu(_,R){return _ in R}function ts(_,R){var G=R[_];return G===void 0?null:G}function Vs(_){return{type:_}}function ma(_){return{result:"success",value:_}}function Il(_){return{result:"error",value:_}}function El(_){return _["property-type"]==="data-driven"||_["property-type"]==="cross-faded-data-driven"}function gl(_){return!!_.expression&&_.expression.parameters.indexOf("zoom")>-1}function fu(_){return!!_.expression&&_.expression.interpolated}function Nu(_){return _ instanceof Number?"number":_ instanceof String?"string":_ instanceof Boolean?"boolean":Array.isArray(_)?"array":_===null?"null":typeof _}function lc(_){return typeof _=="object"&&_!==null&&!Array.isArray(_)}function Ic(_){return _}function Vc(_,R,G){return _!==void 0?_:R!==void 0?R:G!==void 0?G:void 0}function zd(_,R,G,le,ke){return Vc(typeof G===ke?le[G]:void 0,_.default,R.default)}function eh(_,R,G){if(Nu(G)!=="number")return Vc(_.default,R.default);var le=_.stops.length;if(le===1||G<=_.stops[0][0])return _.stops[0][1];if(G>=_.stops[le-1][0])return _.stops[le-1][1];var ke=Bl(_.stops.map(function(Qe){return Qe[0]}),G);return _.stops[ke][1]}function Kd(_,R,G){var le=_.base!==void 0?_.base:1;if(Nu(G)!=="number")return Vc(_.default,R.default);var ke=_.stops.length;if(ke===1||G<=_.stops[0][0])return _.stops[0][1];if(G>=_.stops[ke-1][0])return _.stops[ke-1][1];var Qe=Bl(_.stops.map(function(hi){return hi[0]}),G),Ct=function(hi,po,ko,Zs){var Js=Zs-ko,sl=hi-ko;return Js===0?0:po===1?sl/Js:(Math.pow(po,sl)-1)/(Math.pow(po,Js)-1)}(G,le,_.stops[Qe][0],_.stops[Qe+1][0]),jt=_.stops[Qe][1],Rn=_.stops[Qe+1][1],ur=oa[R.type]||Ic;if(_.colorSpace&&_.colorSpace!=="rgb"){var zr=ss[_.colorSpace];ur=function(hi,po){return zr.reverse(zr.interpolate(zr.forward(hi),zr.forward(po),Ct))}}return typeof jt.evaluate=="function"?{evaluate:function(){for(var hi=[],po=arguments.length;po--;)hi[po]=arguments[po];var ko=jt.evaluate.apply(void 0,hi),Zs=Rn.evaluate.apply(void 0,hi);if(ko!==void 0&&Zs!==void 0)return ur(ko,Zs,Ct)}}:ur(jt,Rn,Ct)}function ad(_,R,G){return R.type==="color"?G=qn.parse(G):R.type==="formatted"?G=da.fromString(G.toString()):R.type==="resolvedImage"?G=zs.fromString(G.toString()):Nu(G)===R.type||R.type==="enum"&&R.values[G]||(G=void 0),Vc(G,_.default,R.default)}dn.register(au,{error:[{kind:"error"},[xi],function(_,R){throw new jo(R[0].evaluate(_))}],typeof:[xi,[ji],function(_,R){return Ln(cl(R[0].evaluate(_)))}],"to-rgba":[yi(ui,4),[Kr],function(_,R){return R[0].evaluate(_).toArray()}],rgb:[Kr,[ui,ui,ui],bn],rgba:[Kr,[ui,ui,ui,ui],bn],has:{type:lo,overloads:[[[xi],function(_,R){return Eu(R[0].evaluate(_),_.properties())}],[[xi,ti],function(_,R){var G=R[1];return Eu(R[0].evaluate(_),G.evaluate(_))}]]},get:{type:ji,overloads:[[[xi],function(_,R){return ts(R[0].evaluate(_),_.properties())}],[[xi,ti],function(_,R){var G=R[1];return ts(R[0].evaluate(_),G.evaluate(_))}]]},"feature-state":[ji,[xi],function(_,R){return ts(R[0].evaluate(_),_.featureState||{})}],properties:[ti,[],function(_){return _.properties()}],"geometry-type":[xi,[],function(_){return _.geometryType()}],id:[ji,[],function(_){return _.id()}],zoom:[ui,[],function(_){return _.globals.zoom}],"heatmap-density":[ui,[],function(_){return _.globals.heatmapDensity||0}],"line-progress":[ui,[],function(_){return _.globals.lineProgress||0}],accumulated:[ji,[],function(_){return _.globals.accumulated===void 0?null:_.globals.accumulated}],"+":[ui,Vs(ui),function(_,R){for(var G=0,le=0,ke=R;le":[lo,[xi,ji],function(_,R){var G=R[0],le=R[1],ke=_.properties()[G.value],Qe=le.value;return typeof ke==typeof Qe&&ke>Qe}],"filter-id->":[lo,[ji],function(_,R){var G=R[0],le=_.id(),ke=G.value;return typeof le==typeof ke&&le>ke}],"filter-<=":[lo,[xi,ji],function(_,R){var G=R[0],le=R[1],ke=_.properties()[G.value],Qe=le.value;return typeof ke==typeof Qe&&ke<=Qe}],"filter-id-<=":[lo,[ji],function(_,R){var G=R[0],le=_.id(),ke=G.value;return typeof le==typeof ke&&le<=ke}],"filter->=":[lo,[xi,ji],function(_,R){var G=R[0],le=R[1],ke=_.properties()[G.value],Qe=le.value;return typeof ke==typeof Qe&&ke>=Qe}],"filter-id->=":[lo,[ji],function(_,R){var G=R[0],le=_.id(),ke=G.value;return typeof le==typeof ke&&le>=ke}],"filter-has":[lo,[ji],function(_,R){return R[0].value in _.properties()}],"filter-has-id":[lo,[],function(_){return _.id()!==null&&_.id()!==void 0}],"filter-type-in":[lo,[yi(xi)],function(_,R){return R[0].value.indexOf(_.geometryType())>=0}],"filter-id-in":[lo,[yi(ji)],function(_,R){return R[0].value.indexOf(_.id())>=0}],"filter-in-small":[lo,[xi,yi(ji)],function(_,R){var G=R[0];return R[1].value.indexOf(_.properties()[G.value])>=0}],"filter-in-large":[lo,[xi,yi(ji)],function(_,R){var G=R[0],le=R[1];return function(ke,Qe,Ct,jt){for(;Ct<=jt;){var Rn=Ct+jt>>1;if(Qe[Rn]===ke)return!0;Qe[Rn]>ke?jt=Rn-1:Ct=Rn+1}return!1}(_.properties()[G.value],le.value,0,le.value.length-1)}],all:{type:lo,overloads:[[[lo,lo],function(_,R){var G=R[1];return R[0].evaluate(_)&&G.evaluate(_)}],[Vs(lo),function(_,R){for(var G=0,le=R;G0&&typeof _[0]=="string"&&_[0]in au}function dd(_,R){var G=new fa(au,[],R?function(ke){var Qe={color:Kr,string:xi,number:ui,enum:xi,boolean:lo,formatted:Qt,resolvedImage:Gn};return ke.type==="array"?yi(Qe[ke.value]||ji,ke.length):Qe[ke.type]}(R):void 0),le=G.parse(_,void 0,void 0,void 0,R&&R.type==="string"?{typeAnnotation:"coerce"}:void 0);return le?ma(new ku(le,R)):Il(G.errors)}ku.prototype.evaluateWithoutErrorHandling=function(_,R,G,le,ke,Qe){return this._evaluator.globals=_,this._evaluator.feature=R,this._evaluator.featureState=G,this._evaluator.canonical=le,this._evaluator.availableImages=ke||null,this._evaluator.formattedSection=Qe,this.expression.evaluate(this._evaluator)},ku.prototype.evaluate=function(_,R,G,le,ke,Qe){this._evaluator.globals=_,this._evaluator.feature=R||null,this._evaluator.featureState=G||null,this._evaluator.canonical=le,this._evaluator.availableImages=ke||null,this._evaluator.formattedSection=Qe||null;try{var Ct=this.expression.evaluate(this._evaluator);if(Ct==null||typeof Ct=="number"&&Ct!=Ct)return this._defaultValue;if(this._enumValues&&!(Ct in this._enumValues))throw new jo("Expected value to be one of "+Object.keys(this._enumValues).map(function(jt){return JSON.stringify(jt)}).join(", ")+", but found "+JSON.stringify(Ct)+" instead.");return Ct}catch(jt){return this._warningHistory[jt.message]||(this._warningHistory[jt.message]=!0,typeof console!="undefined"&&console.warn(jt.message)),this._defaultValue}};var vd=function(_,R){this.kind=_,this._styleExpression=R,this.isStateDependent=_!=="constant"&&!no(R.expression)};vd.prototype.evaluateWithoutErrorHandling=function(_,R,G,le,ke,Qe){return this._styleExpression.evaluateWithoutErrorHandling(_,R,G,le,ke,Qe)},vd.prototype.evaluate=function(_,R,G,le,ke,Qe){return this._styleExpression.evaluate(_,R,G,le,ke,Qe)};var Xd=function(_,R,G,le){this.kind=_,this.zoomStops=G,this._styleExpression=R,this.isStateDependent=_!=="camera"&&!no(R.expression),this.interpolationType=le};function th(_,R){if((_=dd(_,R)).result==="error")return _;var G=_.value.expression,le=pa(G);if(!le&&!El(R))return Il([new pn("","data expressions not supported")]);var ke=Cs(G,["zoom"]);if(!ke&&!gl(R))return Il([new pn("","zoom expressions not supported")]);var Qe=function Ct(jt){var Rn=null;if(jt instanceof ni)Rn=Ct(jt.result);else if(jt instanceof Qr)for(var ur=0,zr=jt.args;urle.maximum?[new Qn(R,G,G+" is greater than the maximum value "+le.maximum)]:[]}function Pf(_){var R,G,le,ke=_.valueSpec,Qe=rs(_.value.type),Ct={},jt=Qe!=="categorical"&&_.value.property===void 0,Rn=!jt,ur=Nu(_.value.stops)==="array"&&Nu(_.value.stops[0])==="array"&&Nu(_.value.stops[0][0])==="object",zr=vh({key:_.key,value:_.value,valueSpec:_.styleSpec.function,style:_.style,styleSpec:_.styleSpec,objectElementValidators:{stops:function(ko){if(Qe==="identity")return[new Qn(ko.key,ko.value,'identity function may not have a "stops" property')];var Zs=[],Js=ko.value;return Zs=Zs.concat(id({key:ko.key,value:Js,valueSpec:ko.valueSpec,style:ko.style,styleSpec:ko.styleSpec,arrayElementValidator:hi})),Nu(Js)==="array"&&Js.length===0&&Zs.push(new Qn(ko.key,Js,"array must have at least one stop")),Zs},default:function(ko){return Vu({key:ko.key,value:ko.value,valueSpec:ke,style:ko.style,styleSpec:ko.styleSpec})}}});return Qe==="identity"&&jt&&zr.push(new Qn(_.key,_.value,'missing required property "property"')),Qe==="identity"||_.value.stops||zr.push(new Qn(_.key,_.value,'missing required property "stops"')),Qe==="exponential"&&_.valueSpec.expression&&!fu(_.valueSpec)&&zr.push(new Qn(_.key,_.value,"exponential functions not supported")),_.styleSpec.$version>=8&&(Rn&&!El(_.valueSpec)?zr.push(new Qn(_.key,_.value,"property functions not supported")):jt&&!gl(_.valueSpec)&&zr.push(new Qn(_.key,_.value,"zoom functions not supported"))),Qe!=="categorical"&&!ur||_.value.property!==void 0||zr.push(new Qn(_.key,_.value,'"property" property is required')),zr;function hi(ko){var Zs=[],Js=ko.value,sl=ko.key;if(Nu(Js)!=="array")return[new Qn(sl,Js,"array expected, "+Nu(Js)+" found")];if(Js.length!==2)return[new Qn(sl,Js,"array length 2 expected, length "+Js.length+" found")];if(ur){if(Nu(Js[0])!=="object")return[new Qn(sl,Js,"object expected, "+Nu(Js[0])+" found")];if(Js[0].zoom===void 0)return[new Qn(sl,Js,"object stop key must have zoom")];if(Js[0].value===void 0)return[new Qn(sl,Js,"object stop key must have value")];if(le&&le>rs(Js[0].zoom))return[new Qn(sl,Js[0].zoom,"stop zoom values must appear in ascending order")];rs(Js[0].zoom)!==le&&(le=rs(Js[0].zoom),G=void 0,Ct={}),Zs=Zs.concat(vh({key:sl+"[0]",value:Js[0],valueSpec:{zoom:{}},style:ko.style,styleSpec:ko.styleSpec,objectElementValidators:{zoom:nd,value:po}}))}else Zs=Zs.concat(po({key:sl+"[0]",value:Js[0],valueSpec:{},style:ko.style,styleSpec:ko.styleSpec},Js));return Fc(zt(Js[1]))?Zs.concat([new Qn(sl+"[1]",Js[1],"expressions are not allowed in function stops.")]):Zs.concat(Vu({key:sl+"[1]",value:Js[1],valueSpec:ke,style:ko.style,styleSpec:ko.styleSpec}))}function po(ko,Zs){var Js=Nu(ko.value),sl=rs(ko.value),Da=ko.value!==null?ko.value:Zs;if(R){if(Js!==R)return[new Qn(ko.key,Da,Js+" stop domain type must match previous stop domain type "+R)]}else R=Js;if(Js!=="number"&&Js!=="string"&&Js!=="boolean")return[new Qn(ko.key,Da,"stop domain value must be a number, string, or boolean")];if(Js!=="number"&&Qe!=="categorical"){var Ol="number expected, "+Js+" found";return El(ke)&&Qe===void 0&&(Ol+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Qn(ko.key,Da,Ol)]}return Qe!=="categorical"||Js!=="number"||isFinite(sl)&&Math.floor(sl)===sl?Qe!=="categorical"&&Js==="number"&&G!==void 0&&sl=2&&_[1]!=="$id"&&_[1]!=="$type";case"in":return _.length>=3&&(typeof _[1]!="string"||Array.isArray(_[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return _.length!==3||Array.isArray(_[1])||Array.isArray(_[2]);case"any":case"all":for(var R=0,G=_.slice(1);RR?1:0}function Sf(_){if(!_)return!0;var R,G=_[0];return _.length<=1?G!=="any":G==="=="?Cp(_[1],_[2],"=="):G==="!="?Th(Cp(_[1],_[2],"==")):G==="<"||G===">"||G==="<="||G===">="?Cp(_[1],_[2],G):G==="any"?(R=_.slice(1),["any"].concat(R.map(Sf))):G==="all"?["all"].concat(_.slice(1).map(Sf)):G==="none"?["all"].concat(_.slice(1).map(Sf).map(Th)):G==="in"?Nf(_[1],_.slice(2)):G==="!in"?Th(Nf(_[1],_.slice(2))):G==="has"?uh(_[1]):G==="!has"?Th(uh(_[1])):G!=="within"||_}function Cp(_,R,G){switch(_){case"$type":return["filter-type-"+G,R];case"$id":return["filter-id-"+G,R];default:return["filter-"+G,_,R]}}function Nf(_,R){if(R.length===0)return!1;switch(_){case"$type":return["filter-type-in",["literal",R]];case"$id":return["filter-id-in",["literal",R]];default:return R.length>200&&!R.some(function(G){return typeof G!=typeof R[0]})?["filter-in-large",_,["literal",R.sort(Lh)]]:["filter-in-small",_,["literal",R]]}}function uh(_){switch(_){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",_]}}function Th(_){return["!",_]}function yu(_){return Xc(zt(_.value))?qd(so({},_,{expressionContext:"filter",valueSpec:{value:"boolean"}})):function R(G){var le=G.value,ke=G.key;if(Nu(le)!=="array")return[new Qn(ke,le,"array expected, "+Nu(le)+" found")];var Qe,Ct=G.styleSpec,jt=[];if(le.length<1)return[new Qn(ke,le,"filter array must have at least 1 element")];switch(jt=jt.concat(cc({key:ke+"[0]",value:le[0],valueSpec:Ct.filter_operator,style:G.style,styleSpec:G.styleSpec})),rs(le[0])){case"<":case"<=":case">":case">=":le.length>=2&&rs(le[1])==="$type"&&jt.push(new Qn(ke,le,'"$type" cannot be use with operator "'+le[0]+'"'));case"==":case"!=":le.length!==3&&jt.push(new Qn(ke,le,'filter array for operator "'+le[0]+'" must have 3 elements'));case"in":case"!in":le.length>=2&&(Qe=Nu(le[1]))!=="string"&&jt.push(new Qn(ke+"[1]",le[1],"string expected, "+Qe+" found"));for(var Rn=2;Rn=zr[ko+0]&&le>=zr[ko+1])?(Ct[po]=!0,Qe.push(ur[po])):Ct[po]=!1}}},ed.prototype._forEachCell=function(_,R,G,le,ke,Qe,Ct,jt){for(var Rn=this._convertToCellCoord(_),ur=this._convertToCellCoord(R),zr=this._convertToCellCoord(G),hi=this._convertToCellCoord(le),po=Rn;po<=zr;po++)for(var ko=ur;ko<=hi;ko++){var Zs=this.d*ko+po;if((!jt||jt(this._convertFromCellCoord(po),this._convertFromCellCoord(ko),this._convertFromCellCoord(po+1),this._convertFromCellCoord(ko+1)))&&ke.call(this,_,R,G,le,Zs,Qe,Ct,jt))return}},ed.prototype._convertFromCellCoord=function(_){return(_-this.padding)/this.scale},ed.prototype._convertToCellCoord=function(_){return Math.max(0,Math.min(this.d-1,Math.floor(_*this.scale)+this.padding))},ed.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var _=this.cells,R=3+this.cells.length+1+1,G=0,le=0;le=0)){var zr=_[ur];Rn[ur]=cf[jt].shallow.indexOf(ur)>=0?zr:Qi(zr,R)}_ instanceof Error&&(Rn.message=_.message)}if(Rn.$name)throw new Error("$name property is reserved for worker serialization logic.");return jt!=="Object"&&(Rn.$name=jt),Rn}throw new Error("can't serialize object of type "+typeof _)}function bc(_){if(_==null||typeof _=="boolean"||typeof _=="number"||typeof _=="string"||_ instanceof Boolean||_ instanceof Number||_ instanceof String||_ instanceof Date||_ instanceof RegExp||is(_)||Op(_)||ArrayBuffer.isView(_)||_ instanceof Vh)return _;if(Array.isArray(_))return _.map(bc);if(typeof _=="object"){var R=_.$name||"Object",G=cf[R].klass;if(!G)throw new Error("can't deserialize unregistered class "+R);if(G.deserialize)return G.deserialize(_);for(var le=Object.create(G.prototype),ke=0,Qe=Object.keys(_);ke=0?jt:bc(jt)}}return le}throw new Error("can't deserialize object of type "+typeof _)}var gf=function(){this.first=!0};gf.prototype.update=function(_,R){var G=Math.floor(_);return this.first?(this.first=!1,this.lastIntegerZoom=G,this.lastIntegerZoomTime=0,this.lastZoom=_,this.lastFloorZoom=G,!0):(this.lastFloorZoom>G?(this.lastIntegerZoom=G+1,this.lastIntegerZoomTime=R):this.lastFloorZoom=128&&_<=255},Arabic:function(_){return _>=1536&&_<=1791},"Arabic Supplement":function(_){return _>=1872&&_<=1919},"Arabic Extended-A":function(_){return _>=2208&&_<=2303},"Hangul Jamo":function(_){return _>=4352&&_<=4607},"Unified Canadian Aboriginal Syllabics":function(_){return _>=5120&&_<=5759},Khmer:function(_){return _>=6016&&_<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(_){return _>=6320&&_<=6399},"General Punctuation":function(_){return _>=8192&&_<=8303},"Letterlike Symbols":function(_){return _>=8448&&_<=8527},"Number Forms":function(_){return _>=8528&&_<=8591},"Miscellaneous Technical":function(_){return _>=8960&&_<=9215},"Control Pictures":function(_){return _>=9216&&_<=9279},"Optical Character Recognition":function(_){return _>=9280&&_<=9311},"Enclosed Alphanumerics":function(_){return _>=9312&&_<=9471},"Geometric Shapes":function(_){return _>=9632&&_<=9727},"Miscellaneous Symbols":function(_){return _>=9728&&_<=9983},"Miscellaneous Symbols and Arrows":function(_){return _>=11008&&_<=11263},"CJK Radicals Supplement":function(_){return _>=11904&&_<=12031},"Kangxi Radicals":function(_){return _>=12032&&_<=12255},"Ideographic Description Characters":function(_){return _>=12272&&_<=12287},"CJK Symbols and Punctuation":function(_){return _>=12288&&_<=12351},Hiragana:function(_){return _>=12352&&_<=12447},Katakana:function(_){return _>=12448&&_<=12543},Bopomofo:function(_){return _>=12544&&_<=12591},"Hangul Compatibility Jamo":function(_){return _>=12592&&_<=12687},Kanbun:function(_){return _>=12688&&_<=12703},"Bopomofo Extended":function(_){return _>=12704&&_<=12735},"CJK Strokes":function(_){return _>=12736&&_<=12783},"Katakana Phonetic Extensions":function(_){return _>=12784&&_<=12799},"Enclosed CJK Letters and Months":function(_){return _>=12800&&_<=13055},"CJK Compatibility":function(_){return _>=13056&&_<=13311},"CJK Unified Ideographs Extension A":function(_){return _>=13312&&_<=19903},"Yijing Hexagram Symbols":function(_){return _>=19904&&_<=19967},"CJK Unified Ideographs":function(_){return _>=19968&&_<=40959},"Yi Syllables":function(_){return _>=40960&&_<=42127},"Yi Radicals":function(_){return _>=42128&&_<=42191},"Hangul Jamo Extended-A":function(_){return _>=43360&&_<=43391},"Hangul Syllables":function(_){return _>=44032&&_<=55215},"Hangul Jamo Extended-B":function(_){return _>=55216&&_<=55295},"Private Use Area":function(_){return _>=57344&&_<=63743},"CJK Compatibility Ideographs":function(_){return _>=63744&&_<=64255},"Arabic Presentation Forms-A":function(_){return _>=64336&&_<=65023},"Vertical Forms":function(_){return _>=65040&&_<=65055},"CJK Compatibility Forms":function(_){return _>=65072&&_<=65103},"Small Form Variants":function(_){return _>=65104&&_<=65135},"Arabic Presentation Forms-B":function(_){return _>=65136&&_<=65279},"Halfwidth and Fullwidth Forms":function(_){return _>=65280&&_<=65519}};function Bc(_){for(var R=0,G=_;R=65097&&_<=65103)||Qu["CJK Compatibility Ideographs"](_)||Qu["CJK Compatibility"](_)||Qu["CJK Radicals Supplement"](_)||Qu["CJK Strokes"](_)||!(!Qu["CJK Symbols and Punctuation"](_)||_>=12296&&_<=12305||_>=12308&&_<=12319||_===12336)||Qu["CJK Unified Ideographs Extension A"](_)||Qu["CJK Unified Ideographs"](_)||Qu["Enclosed CJK Letters and Months"](_)||Qu["Hangul Compatibility Jamo"](_)||Qu["Hangul Jamo Extended-A"](_)||Qu["Hangul Jamo Extended-B"](_)||Qu["Hangul Jamo"](_)||Qu["Hangul Syllables"](_)||Qu.Hiragana(_)||Qu["Ideographic Description Characters"](_)||Qu.Kanbun(_)||Qu["Kangxi Radicals"](_)||Qu["Katakana Phonetic Extensions"](_)||Qu.Katakana(_)&&_!==12540||!(!Qu["Halfwidth and Fullwidth Forms"](_)||_===65288||_===65289||_===65293||_>=65306&&_<=65310||_===65339||_===65341||_===65343||_>=65371&&_<=65503||_===65507||_>=65512&&_<=65519)||!(!Qu["Small Form Variants"](_)||_>=65112&&_<=65118||_>=65123&&_<=65126)||Qu["Unified Canadian Aboriginal Syllabics"](_)||Qu["Unified Canadian Aboriginal Syllabics Extended"](_)||Qu["Vertical Forms"](_)||Qu["Yijing Hexagram Symbols"](_)||Qu["Yi Syllables"](_)||Qu["Yi Radicals"](_))))}function qp(_){return!(Df(_)||function(R){return!!(Qu["Latin-1 Supplement"](R)&&(R===167||R===169||R===174||R===177||R===188||R===189||R===190||R===215||R===247)||Qu["General Punctuation"](R)&&(R===8214||R===8224||R===8225||R===8240||R===8241||R===8251||R===8252||R===8258||R===8263||R===8264||R===8265||R===8273)||Qu["Letterlike Symbols"](R)||Qu["Number Forms"](R)||Qu["Miscellaneous Technical"](R)&&(R>=8960&&R<=8967||R>=8972&&R<=8991||R>=8996&&R<=9e3||R===9003||R>=9085&&R<=9114||R>=9150&&R<=9165||R===9167||R>=9169&&R<=9179||R>=9186&&R<=9215)||Qu["Control Pictures"](R)&&R!==9251||Qu["Optical Character Recognition"](R)||Qu["Enclosed Alphanumerics"](R)||Qu["Geometric Shapes"](R)||Qu["Miscellaneous Symbols"](R)&&!(R>=9754&&R<=9759)||Qu["Miscellaneous Symbols and Arrows"](R)&&(R>=11026&&R<=11055||R>=11088&&R<=11097||R>=11192&&R<=11243)||Qu["CJK Symbols and Punctuation"](R)||Qu.Katakana(R)||Qu["Private Use Area"](R)||Qu["CJK Compatibility Forms"](R)||Qu["Small Form Variants"](R)||Qu["Halfwidth and Fullwidth Forms"](R)||R===8734||R===8756||R===8757||R>=9984&&R<=10087||R>=10102&&R<=10131||R===65532||R===65533)}(_))}function sg(_){return _>=1424&&_<=2303||Qu["Arabic Presentation Forms-A"](_)||Qu["Arabic Presentation Forms-B"](_)}function Ah(_,R){return!(!R&&sg(_)||_>=2304&&_<=3583||_>=3840&&_<=4255||Qu.Khmer(_))}function sp(_){for(var R=0,G=_;R-1&&(tp="error"),Rp&&Rp(_)};function Uf(){Pd.fire(new wr("pluginStateChange",{pluginStatus:tp,pluginURL:pg}))}var Pd=new ii,Np=function(){return tp},$p=function(){if(tp!=="deferred"||!pg)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");tp="loading",Uf(),pg&&xo({url:pg},function(_){_?wp(_):(tp="loaded",Uf())})},ag={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return tp==="loaded"||ag.applyArabicShaping!=null},isLoading:function(){return tp==="loading"},setState:function(_){tp=_.pluginStatus,pg=_.pluginURL},isParsed:function(){return ag.applyArabicShaping!=null&&ag.processBidirectionalText!=null&&ag.processStyledBidirectionalText!=null},getPluginURL:function(){return pg}},Md=function(_,R){this.zoom=_,R?(this.now=R.now,this.fadeDuration=R.fadeDuration,this.zoomHistory=R.zoomHistory,this.transition=R.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new gf,this.transition={})};Md.prototype.isSupportedScript=function(_){return function(R,G){for(var le=0,ke=R;lethis.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:R+(1-R)*G}:{fromScale:.5,toScale:1,t:1-(1-G)*R}};var Wp=function(_,R){this.property=_,this.value=R,this.expression=function(G,le){if(lc(G))return new jd(G,le);if(Fc(G)){var ke=th(G,le);if(ke.result==="error")throw new Error(ke.value.map(function(Ct){return Ct.key+": "+Ct.message}).join(", "));return ke.value}var Qe=G;return typeof G=="string"&&le.type==="color"&&(Qe=qn.parse(G)),{kind:"constant",evaluate:function(){return Qe}}}(R===void 0?_.specification.default:R,_.specification)};Wp.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},Wp.prototype.possiblyEvaluate=function(_,R,G){return this.property.possiblyEvaluate(this,_,R,G)};var Ih=function(_){this.property=_,this.value=new Wp(_,void 0)};Ih.prototype.transitioned=function(_,R){return new Ff(this.property,this.value,R,re({},_.transition,this.transition),_.now)},Ih.prototype.untransitioned=function(){return new Ff(this.property,this.value,null,{},0)};var of=function(_){this._properties=_,this._values=Object.create(_.defaultTransitionablePropertyValues)};of.prototype.getValue=function(_){return ve(this._values[_].value.value)},of.prototype.setValue=function(_,R){this._values.hasOwnProperty(_)||(this._values[_]=new Ih(this._values[_].property)),this._values[_].value=new Wp(this._values[_].property,R===null?void 0:ve(R))},of.prototype.getTransition=function(_){return ve(this._values[_].transition)},of.prototype.setTransition=function(_,R){this._values.hasOwnProperty(_)||(this._values[_]=new Ih(this._values[_].property)),this._values[_].transition=ve(R)||void 0},of.prototype.serialize=function(){for(var _={},R=0,G=Object.keys(this._values);Rthis.end)return this.prior=null,ke;if(this.value.isDataDriven())return this.prior=null,ke;if(le=1)return 1;var Rn=jt*jt,ur=Rn*jt;return 4*(jt<.5?ur:3*(jt-Rn)+ur-.75)}(Ct))}return ke};var iu=function(_){this._properties=_,this._values=Object.create(_.defaultTransitioningPropertyValues)};iu.prototype.possiblyEvaluate=function(_,R,G){for(var le=new np(this._properties),ke=0,Qe=Object.keys(this._values);keQe.zoomHistory.lastIntegerZoom?{from:G,to:le}:{from:ke,to:le}},R.prototype.interpolate=function(G){return G},R}(td),_f=function(_){this.specification=_};_f.prototype.possiblyEvaluate=function(_,R,G,le){if(_.value!==void 0){if(_.expression.kind==="constant"){var ke=_.expression.evaluate(R,null,{},G,le);return this._calculate(ke,ke,ke,R)}return this._calculate(_.expression.evaluate(new Md(Math.floor(R.zoom-1),R)),_.expression.evaluate(new Md(Math.floor(R.zoom),R)),_.expression.evaluate(new Md(Math.floor(R.zoom+1),R)),R)}},_f.prototype._calculate=function(_,R,G,le){return le.zoom>le.zoomHistory.lastIntegerZoom?{from:_,to:R}:{from:G,to:R}},_f.prototype.interpolate=function(_){return _};var Hh=function(_){this.specification=_};Hh.prototype.possiblyEvaluate=function(_,R,G,le){return!!_.expression.evaluate(R,null,{},G,le)},Hh.prototype.interpolate=function(){return!1};var Ap=function(_){for(var R in this.properties=_,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],_){var G=_[R];G.specification.overridable&&this.overridableProperties.push(R);var le=this.defaultPropertyValues[R]=new Wp(G,void 0),ke=this.defaultTransitionablePropertyValues[R]=new Ih(G);this.defaultTransitioningPropertyValues[R]=ke.untransitioned(),this.defaultPossiblyEvaluatedValues[R]=le.possiblyEvaluate({})}};Qc("DataDrivenProperty",td),Qc("DataConstantProperty",Od),Qc("CrossFadedDataDrivenProperty",Dp),Qc("CrossFadedProperty",_f),Qc("ColorRampProperty",Hh);var Vp=function(_){function R(G,le){if(_.call(this),this.id=G.id,this.type=G.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},G.type!=="custom"&&(this.metadata=(G=G).metadata,this.minzoom=G.minzoom,this.maxzoom=G.maxzoom,G.type!=="background"&&(this.source=G.source,this.sourceLayer=G["source-layer"],this.filter=G.filter),le.layout&&(this._unevaluatedLayout=new mp(le.layout)),le.paint)){for(var ke in this._transitionablePaint=new of(le.paint),G.paint)this.setPaintProperty(ke,G.paint[ke],{validate:!1});for(var Qe in G.layout)this.setLayoutProperty(Qe,G.layout[Qe],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new np(le.paint)}}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},R.prototype.getLayoutProperty=function(G){return G==="visibility"?this.visibility:this._unevaluatedLayout.getValue(G)},R.prototype.setLayoutProperty=function(G,le,ke){ke===void 0&&(ke={}),le!=null&&this._validate(Bh,"layers."+this.id+".layout."+G,G,le,ke)||(G!=="visibility"?this._unevaluatedLayout.setValue(G,le):this.visibility=le)},R.prototype.getPaintProperty=function(G){return Ie(G,"-transition")?this._transitionablePaint.getTransition(G.slice(0,-11)):this._transitionablePaint.getValue(G)},R.prototype.setPaintProperty=function(G,le,ke){if(ke===void 0&&(ke={}),le!=null&&this._validate(kf,"layers."+this.id+".paint."+G,G,le,ke))return!1;if(Ie(G,"-transition"))return this._transitionablePaint.setTransition(G.slice(0,-11),le||void 0),!1;var Qe=this._transitionablePaint._values[G],Ct=Qe.property.specification["property-type"]==="cross-faded-data-driven",jt=Qe.value.isDataDriven(),Rn=Qe.value;this._transitionablePaint.setValue(G,le),this._handleSpecialPaintPropertyUpdate(G);var ur=this._transitionablePaint._values[G].value;return ur.isDataDriven()||jt||Ct||this._handleOverridablePaintPropertyUpdate(G,Rn,ur)},R.prototype._handleSpecialPaintPropertyUpdate=function(G){},R.prototype._handleOverridablePaintPropertyUpdate=function(G,le,ke){return!1},R.prototype.isHidden=function(G){return!!(this.minzoom&&G=this.maxzoom)||this.visibility==="none"},R.prototype.updateTransitions=function(G){this._transitioningPaint=this._transitionablePaint.transitioned(G,this._transitioningPaint)},R.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},R.prototype.recalculate=function(G,le){G.getCrossfadeParameters&&(this._crossfadeParameters=G.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(G,void 0,le)),this.paint=this._transitioningPaint.possiblyEvaluate(G,void 0,le)},R.prototype.serialize=function(){var G={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(G.layout=G.layout||{},G.layout.visibility=this.visibility),De(G,function(le,ke){return!(le===void 0||ke==="layout"&&!Object.keys(le).length||ke==="paint"&&!Object.keys(le).length)})},R.prototype._validate=function(G,le,ke,Qe,Ct){return Ct===void 0&&(Ct={}),(!Ct||Ct.validate!==!1)&&Kf(this,G.call(yf,{key:le,layerType:this.type,objectKey:ke,value:Qe,styleSpec:rn,style:{glyphs:!0,sprite:!0}}))},R.prototype.is3D=function(){return!1},R.prototype.isTileClipped=function(){return!1},R.prototype.hasOffscreenPass=function(){return!1},R.prototype.resize=function(){},R.prototype.isStateDependent=function(){for(var G in this.paint._values){var le=this.paint.get(G);if(le instanceof Af&&El(le.property.specification)&&(le.value.kind==="source"||le.value.kind==="composite")&&le.value.isStateDependent)return!0}return!1},R}(ii),Cd={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Jh=function(_,R){this._structArray=_,this._pos1=R*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},kh=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function yh(_,R){R===void 0&&(R=1);var G=0,le=0;return{members:_.map(function(ke){var Qe=Cd[ke.type].BYTES_PER_ELEMENT,Ct=G=Bf(G,Math.max(R,Qe)),jt=ke.components||1;return le=Math.max(le,Qe),G+=Qe*jt,{name:ke.name,type:ke.type,components:jt,offset:Ct}}),size:Bf(G,Math.max(le,R)),alignment:R}}function Bf(_,R){return Math.ceil(_/R)*R}kh.serialize=function(_,R){return _._trim(),R&&(_.isTransferred=!0,R.push(_.arrayBuffer)),{length:_.length,arrayBuffer:_.arrayBuffer}},kh.deserialize=function(_){var R=Object.create(this.prototype);return R.arrayBuffer=_.arrayBuffer,R.length=_.length,R.capacity=_.arrayBuffer.byteLength/R.bytesPerElement,R._refreshViews(),R},kh.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},kh.prototype.clear=function(){this.length=0},kh.prototype.resize=function(_){this.reserve(_),this.length=_},kh.prototype.reserve=function(_){if(_>this.capacity){this.capacity=Math.max(_,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var R=this.uint8;this._refreshViews(),R&&this.uint8.set(R)}},kh.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var bd=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(G,le){var ke=this.length;return this.resize(ke+1),this.emplace(ke,G,le)},R.prototype.emplace=function(G,le,ke){var Qe=2*G;return this.int16[Qe+0]=le,this.int16[Qe+1]=ke,G},R}(kh);bd.prototype.bytesPerElement=4,Qc("StructArrayLayout2i4",bd);var $c=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(G,le,ke,Qe){var Ct=this.length;return this.resize(Ct+1),this.emplace(Ct,G,le,ke,Qe)},R.prototype.emplace=function(G,le,ke,Qe,Ct){var jt=4*G;return this.int16[jt+0]=le,this.int16[jt+1]=ke,this.int16[jt+2]=Qe,this.int16[jt+3]=Ct,G},R}(kh);$c.prototype.bytesPerElement=8,Qc("StructArrayLayout4i8",$c);var Hd=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(G,le,ke,Qe,Ct,jt){var Rn=this.length;return this.resize(Rn+1),this.emplace(Rn,G,le,ke,Qe,Ct,jt)},R.prototype.emplace=function(G,le,ke,Qe,Ct,jt,Rn){var ur=6*G;return this.int16[ur+0]=le,this.int16[ur+1]=ke,this.int16[ur+2]=Qe,this.int16[ur+3]=Ct,this.int16[ur+4]=jt,this.int16[ur+5]=Rn,G},R}(kh);Hd.prototype.bytesPerElement=12,Qc("StructArrayLayout2i4i12",Hd);var mh=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(G,le,ke,Qe,Ct,jt){var Rn=this.length;return this.resize(Rn+1),this.emplace(Rn,G,le,ke,Qe,Ct,jt)},R.prototype.emplace=function(G,le,ke,Qe,Ct,jt,Rn){var ur=4*G,zr=8*G;return this.int16[ur+0]=le,this.int16[ur+1]=ke,this.uint8[zr+4]=Qe,this.uint8[zr+5]=Ct,this.uint8[zr+6]=jt,this.uint8[zr+7]=Rn,G},R}(kh);mh.prototype.bytesPerElement=8,Qc("StructArrayLayout2i4ub8",mh);var wo=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(G,le){var ke=this.length;return this.resize(ke+1),this.emplace(ke,G,le)},R.prototype.emplace=function(G,le,ke){var Qe=2*G;return this.float32[Qe+0]=le,this.float32[Qe+1]=ke,G},R}(kh);wo.prototype.bytesPerElement=8,Qc("StructArrayLayout2f8",wo);var D=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(G,le,ke,Qe,Ct,jt,Rn,ur,zr,hi){var po=this.length;return this.resize(po+1),this.emplace(po,G,le,ke,Qe,Ct,jt,Rn,ur,zr,hi)},R.prototype.emplace=function(G,le,ke,Qe,Ct,jt,Rn,ur,zr,hi,po){var ko=10*G;return this.uint16[ko+0]=le,this.uint16[ko+1]=ke,this.uint16[ko+2]=Qe,this.uint16[ko+3]=Ct,this.uint16[ko+4]=jt,this.uint16[ko+5]=Rn,this.uint16[ko+6]=ur,this.uint16[ko+7]=zr,this.uint16[ko+8]=hi,this.uint16[ko+9]=po,G},R}(kh);D.prototype.bytesPerElement=20,Qc("StructArrayLayout10ui20",D);var F=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(G,le,ke,Qe,Ct,jt,Rn,ur,zr,hi,po,ko){var Zs=this.length;return this.resize(Zs+1),this.emplace(Zs,G,le,ke,Qe,Ct,jt,Rn,ur,zr,hi,po,ko)},R.prototype.emplace=function(G,le,ke,Qe,Ct,jt,Rn,ur,zr,hi,po,ko,Zs){var Js=12*G;return this.int16[Js+0]=le,this.int16[Js+1]=ke,this.int16[Js+2]=Qe,this.int16[Js+3]=Ct,this.uint16[Js+4]=jt,this.uint16[Js+5]=Rn,this.uint16[Js+6]=ur,this.uint16[Js+7]=zr,this.int16[Js+8]=hi,this.int16[Js+9]=po,this.int16[Js+10]=ko,this.int16[Js+11]=Zs,G},R}(kh);F.prototype.bytesPerElement=24,Qc("StructArrayLayout4i4ui4i24",F);var q=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(G,le,ke){var Qe=this.length;return this.resize(Qe+1),this.emplace(Qe,G,le,ke)},R.prototype.emplace=function(G,le,ke,Qe){var Ct=3*G;return this.float32[Ct+0]=le,this.float32[Ct+1]=ke,this.float32[Ct+2]=Qe,G},R}(kh);q.prototype.bytesPerElement=12,Qc("StructArrayLayout3f12",q);var se=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(G){var le=this.length;return this.resize(le+1),this.emplace(le,G)},R.prototype.emplace=function(G,le){return this.uint32[1*G+0]=le,G},R}(kh);se.prototype.bytesPerElement=4,Qc("StructArrayLayout1ul4",se);var Ue=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(G,le,ke,Qe,Ct,jt,Rn,ur,zr){var hi=this.length;return this.resize(hi+1),this.emplace(hi,G,le,ke,Qe,Ct,jt,Rn,ur,zr)},R.prototype.emplace=function(G,le,ke,Qe,Ct,jt,Rn,ur,zr,hi){var po=10*G,ko=5*G;return this.int16[po+0]=le,this.int16[po+1]=ke,this.int16[po+2]=Qe,this.int16[po+3]=Ct,this.int16[po+4]=jt,this.int16[po+5]=Rn,this.uint32[ko+3]=ur,this.uint16[po+8]=zr,this.uint16[po+9]=hi,G},R}(kh);Ue.prototype.bytesPerElement=20,Qc("StructArrayLayout6i1ul2ui20",Ue);var qt=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(G,le,ke,Qe,Ct,jt){var Rn=this.length;return this.resize(Rn+1),this.emplace(Rn,G,le,ke,Qe,Ct,jt)},R.prototype.emplace=function(G,le,ke,Qe,Ct,jt,Rn){var ur=6*G;return this.int16[ur+0]=le,this.int16[ur+1]=ke,this.int16[ur+2]=Qe,this.int16[ur+3]=Ct,this.int16[ur+4]=jt,this.int16[ur+5]=Rn,G},R}(kh);qt.prototype.bytesPerElement=12,Qc("StructArrayLayout2i2i2i12",qt);var zn=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(G,le,ke,Qe,Ct){var jt=this.length;return this.resize(jt+1),this.emplace(jt,G,le,ke,Qe,Ct)},R.prototype.emplace=function(G,le,ke,Qe,Ct,jt){var Rn=4*G,ur=8*G;return this.float32[Rn+0]=le,this.float32[Rn+1]=ke,this.float32[Rn+2]=Qe,this.int16[ur+6]=Ct,this.int16[ur+7]=jt,G},R}(kh);zn.prototype.bytesPerElement=16,Qc("StructArrayLayout2f1f2i16",zn);var di=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(G,le,ke,Qe){var Ct=this.length;return this.resize(Ct+1),this.emplace(Ct,G,le,ke,Qe)},R.prototype.emplace=function(G,le,ke,Qe,Ct){var jt=12*G,Rn=3*G;return this.uint8[jt+0]=le,this.uint8[jt+1]=ke,this.float32[Rn+1]=Qe,this.float32[Rn+2]=Ct,G},R}(kh);di.prototype.bytesPerElement=12,Qc("StructArrayLayout2ub2f12",di);var Uo=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(G,le,ke){var Qe=this.length;return this.resize(Qe+1),this.emplace(Qe,G,le,ke)},R.prototype.emplace=function(G,le,ke,Qe){var Ct=3*G;return this.uint16[Ct+0]=le,this.uint16[Ct+1]=ke,this.uint16[Ct+2]=Qe,G},R}(kh);Uo.prototype.bytesPerElement=6,Qc("StructArrayLayout3ui6",Uo);var ua=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(G,le,ke,Qe,Ct,jt,Rn,ur,zr,hi,po,ko,Zs,Js,sl,Da,Ol){var jl=this.length;return this.resize(jl+1),this.emplace(jl,G,le,ke,Qe,Ct,jt,Rn,ur,zr,hi,po,ko,Zs,Js,sl,Da,Ol)},R.prototype.emplace=function(G,le,ke,Qe,Ct,jt,Rn,ur,zr,hi,po,ko,Zs,Js,sl,Da,Ol,jl){var cu=24*G,lu=12*G,Uu=48*G;return this.int16[cu+0]=le,this.int16[cu+1]=ke,this.uint16[cu+2]=Qe,this.uint16[cu+3]=Ct,this.uint32[lu+2]=jt,this.uint32[lu+3]=Rn,this.uint32[lu+4]=ur,this.uint16[cu+10]=zr,this.uint16[cu+11]=hi,this.uint16[cu+12]=po,this.float32[lu+7]=ko,this.float32[lu+8]=Zs,this.uint8[Uu+36]=Js,this.uint8[Uu+37]=sl,this.uint8[Uu+38]=Da,this.uint32[lu+10]=Ol,this.int16[cu+22]=jl,G},R}(kh);ua.prototype.bytesPerElement=48,Qc("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",ua);var Cl=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(G,le,ke,Qe,Ct,jt,Rn,ur,zr,hi,po,ko,Zs,Js,sl,Da,Ol,jl,cu,lu,Uu,kc,ac,_d,Xu,Nd,Yt,Mn){var dr=this.length;return this.resize(dr+1),this.emplace(dr,G,le,ke,Qe,Ct,jt,Rn,ur,zr,hi,po,ko,Zs,Js,sl,Da,Ol,jl,cu,lu,Uu,kc,ac,_d,Xu,Nd,Yt,Mn)},R.prototype.emplace=function(G,le,ke,Qe,Ct,jt,Rn,ur,zr,hi,po,ko,Zs,Js,sl,Da,Ol,jl,cu,lu,Uu,kc,ac,_d,Xu,Nd,Yt,Mn,dr){var jr=34*G,go=17*G;return this.int16[jr+0]=le,this.int16[jr+1]=ke,this.int16[jr+2]=Qe,this.int16[jr+3]=Ct,this.int16[jr+4]=jt,this.int16[jr+5]=Rn,this.int16[jr+6]=ur,this.int16[jr+7]=zr,this.uint16[jr+8]=hi,this.uint16[jr+9]=po,this.uint16[jr+10]=ko,this.uint16[jr+11]=Zs,this.uint16[jr+12]=Js,this.uint16[jr+13]=sl,this.uint16[jr+14]=Da,this.uint16[jr+15]=Ol,this.uint16[jr+16]=jl,this.uint16[jr+17]=cu,this.uint16[jr+18]=lu,this.uint16[jr+19]=Uu,this.uint16[jr+20]=kc,this.uint16[jr+21]=ac,this.uint16[jr+22]=_d,this.uint32[go+12]=Xu,this.float32[go+13]=Nd,this.float32[go+14]=Yt,this.float32[go+15]=Mn,this.float32[go+16]=dr,G},R}(kh);Cl.prototype.bytesPerElement=68,Qc("StructArrayLayout8i15ui1ul4f68",Cl);var Ll=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(G){var le=this.length;return this.resize(le+1),this.emplace(le,G)},R.prototype.emplace=function(G,le){return this.float32[1*G+0]=le,G},R}(kh);Ll.prototype.bytesPerElement=4,Qc("StructArrayLayout1f4",Ll);var Bu=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(G,le,ke){var Qe=this.length;return this.resize(Qe+1),this.emplace(Qe,G,le,ke)},R.prototype.emplace=function(G,le,ke,Qe){var Ct=3*G;return this.int16[Ct+0]=le,this.int16[Ct+1]=ke,this.int16[Ct+2]=Qe,G},R}(kh);Bu.prototype.bytesPerElement=6,Qc("StructArrayLayout3i6",Bu);var Iu=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(G,le,ke){var Qe=this.length;return this.resize(Qe+1),this.emplace(Qe,G,le,ke)},R.prototype.emplace=function(G,le,ke,Qe){var Ct=4*G;return this.uint32[2*G+0]=le,this.uint16[Ct+2]=ke,this.uint16[Ct+3]=Qe,G},R}(kh);Iu.prototype.bytesPerElement=8,Qc("StructArrayLayout1ul2ui8",Iu);var pc=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(G,le){var ke=this.length;return this.resize(ke+1),this.emplace(ke,G,le)},R.prototype.emplace=function(G,le,ke){var Qe=2*G;return this.uint16[Qe+0]=le,this.uint16[Qe+1]=ke,G},R}(kh);pc.prototype.bytesPerElement=4,Qc("StructArrayLayout2ui4",pc);var zc=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(G){var le=this.length;return this.resize(le+1),this.emplace(le,G)},R.prototype.emplace=function(G,le){return this.uint16[1*G+0]=le,G},R}(kh);zc.prototype.bytesPerElement=2,Qc("StructArrayLayout1ui2",zc);var Rd=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(G,le,ke,Qe){var Ct=this.length;return this.resize(Ct+1),this.emplace(Ct,G,le,ke,Qe)},R.prototype.emplace=function(G,le,ke,Qe,Ct){var jt=4*G;return this.float32[jt+0]=le,this.float32[jt+1]=ke,this.float32[jt+2]=Qe,this.float32[jt+3]=Ct,G},R}(kh);Rd.prototype.bytesPerElement=16,Qc("StructArrayLayout4f16",Rd);var X=function(_){function R(){_.apply(this,arguments)}_&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R;var G={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return G.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},G.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},G.x1.get=function(){return this._structArray.int16[this._pos2+2]},G.y1.get=function(){return this._structArray.int16[this._pos2+3]},G.x2.get=function(){return this._structArray.int16[this._pos2+4]},G.y2.get=function(){return this._structArray.int16[this._pos2+5]},G.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},G.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},G.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},G.anchorPoint.get=function(){return new w(this.anchorPointX,this.anchorPointY)},Object.defineProperties(R.prototype,G),R}(Jh);X.prototype.size=20;var te=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype.get=function(G){return new X(this,G)},R}(Ue);Qc("CollisionBoxArray",te);var J=function(_){function R(){_.apply(this,arguments)}_&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R;var G={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return G.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},G.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},G.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},G.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},G.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},G.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},G.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},G.segment.get=function(){return this._structArray.uint16[this._pos2+10]},G.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},G.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},G.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},G.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},G.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},G.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},G.placedOrientation.set=function(le){this._structArray.uint8[this._pos1+37]=le},G.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},G.hidden.set=function(le){this._structArray.uint8[this._pos1+38]=le},G.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},G.crossTileID.set=function(le){this._structArray.uint32[this._pos4+10]=le},G.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(R.prototype,G),R}(Jh);J.prototype.size=48;var ae=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype.get=function(G){return new J(this,G)},R}(ua);Qc("PlacedSymbolArray",ae);var it=function(_){function R(){_.apply(this,arguments)}_&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R;var G={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return G.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},G.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},G.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},G.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},G.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},G.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},G.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},G.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},G.key.get=function(){return this._structArray.uint16[this._pos2+8]},G.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},G.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},G.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},G.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},G.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},G.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},G.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},G.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},G.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},G.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},G.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},G.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},G.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},G.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},G.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},G.crossTileID.set=function(le){this._structArray.uint32[this._pos4+12]=le},G.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},G.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},G.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},G.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(R.prototype,G),R}(Jh);it.prototype.size=68;var Rt=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype.get=function(G){return new it(this,G)},R}(Cl);Qc("SymbolInstanceArray",Rt);var en=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype.getoffsetX=function(G){return this.float32[1*G+0]},R}(Ll);Qc("GlyphOffsetArray",en);var Yn=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype.getx=function(G){return this.int16[3*G+0]},R.prototype.gety=function(G){return this.int16[3*G+1]},R.prototype.gettileUnitDistanceFromAnchor=function(G){return this.int16[3*G+2]},R}(Bu);Qc("SymbolLineVertexArray",Yn);var Zr=function(_){function R(){_.apply(this,arguments)}_&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R;var G={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return G.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},G.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},G.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(R.prototype,G),R}(Jh);Zr.prototype.size=8;var fr=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype.get=function(G){return new Zr(this,G)},R}(Iu);Qc("FeatureIndexArray",fr);var es=yh([{name:"a_pos",components:2,type:"Int16"}],4).members,Xo=function(_){_===void 0&&(_=[]),this.segments=_};function Ss(_,R){return 256*(_=W(Math.floor(_),0,255))+W(Math.floor(R),0,255)}Xo.prototype.prepareSegment=function(_,R,G,le){var ke=this.segments[this.segments.length-1];return _>Xo.MAX_VERTEX_ARRAY_LENGTH&&we("Max vertices per segment is "+Xo.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+_),(!ke||ke.vertexLength+_>Xo.MAX_VERTEX_ARRAY_LENGTH||ke.sortKey!==le)&&(ke={vertexOffset:R.length,primitiveOffset:G.length,vertexLength:0,primitiveLength:0},le!==void 0&&(ke.sortKey=le),this.segments.push(ke)),ke},Xo.prototype.get=function(){return this.segments},Xo.prototype.destroy=function(){for(var _=0,R=this.segments;_>>16)*jt&65535)<<16)&4294967295)<<15|ur>>>17))*Rn+(((ur>>>16)*Rn&65535)<<16)&4294967295)<<13|Qe>>>19))+((5*(Qe>>>16)&65535)<<16)&4294967295))+((58964+(Ct>>>16)&65535)<<16);switch(ur=0,le){case 3:ur^=(255&R.charCodeAt(zr+2))<<16;case 2:ur^=(255&R.charCodeAt(zr+1))<<8;case 1:Qe^=ur=(65535&(ur=(ur=(65535&(ur^=255&R.charCodeAt(zr)))*jt+(((ur>>>16)*jt&65535)<<16)&4294967295)<<15|ur>>>17))*Rn+(((ur>>>16)*Rn&65535)<<16)&4294967295}return Qe^=R.length,Qe=2246822507*(65535&(Qe^=Qe>>>16))+((2246822507*(Qe>>>16)&65535)<<16)&4294967295,Qe=3266489909*(65535&(Qe^=Qe>>>13))+((3266489909*(Qe>>>16)&65535)<<16)&4294967295,(Qe^=Qe>>>16)>>>0}}),Vo=z(function(_){_.exports=function(R,G){for(var le,ke=R.length,Qe=G^ke,Ct=0;ke>=4;)le=1540483477*(65535&(le=255&R.charCodeAt(Ct)|(255&R.charCodeAt(++Ct))<<8|(255&R.charCodeAt(++Ct))<<16|(255&R.charCodeAt(++Ct))<<24))+((1540483477*(le>>>16)&65535)<<16),Qe=1540483477*(65535&Qe)+((1540483477*(Qe>>>16)&65535)<<16)^(le=1540483477*(65535&(le^=le>>>24))+((1540483477*(le>>>16)&65535)<<16)),ke-=4,++Ct;switch(ke){case 3:Qe^=(255&R.charCodeAt(Ct+2))<<16;case 2:Qe^=(255&R.charCodeAt(Ct+1))<<8;case 1:Qe=1540483477*(65535&(Qe^=255&R.charCodeAt(Ct)))+((1540483477*(Qe>>>16)&65535)<<16)}return Qe=1540483477*(65535&(Qe^=Qe>>>13))+((1540483477*(Qe>>>16)&65535)<<16),(Qe^=Qe>>>15)>>>0}}),js=qs,za=Vo;js.murmur3=qs,js.murmur2=za;var yl=function(){this.ids=[],this.positions=[],this.indexed=!1};yl.prototype.add=function(_,R,G,le){this.ids.push(xu(_)),this.positions.push(R,G,le)},yl.prototype.getPositions=function(_){for(var R=xu(_),G=0,le=this.ids.length-1;G>1;this.ids[ke]>=R?le=ke:G=ke+1}for(var Qe=[];this.ids[G]===R;)Qe.push({index:this.positions[3*G],start:this.positions[3*G+1],end:this.positions[3*G+2]}),G++;return Qe},yl.serialize=function(_,R){var G=new Float64Array(_.ids),le=new Uint32Array(_.positions);return function ke(Qe,Ct,jt,Rn){for(;jt>1],zr=jt-1,hi=Rn+1;;){do zr++;while(Qe[zr]ur);if(zr>=hi)break;Tu(Qe,zr,hi),Tu(Ct,3*zr,3*hi),Tu(Ct,3*zr+1,3*hi+1),Tu(Ct,3*zr+2,3*hi+2)}hi-jtCt.x+1||RnCt.y+1)&&we("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return G}function ld(_,R){return{type:_.type,id:_.id,properties:_.properties,geometry:R?Oc(_):[]}}function yd(_,R,G,le,ke){_.emplaceBack(2*R+(le+1)/2,2*G+(ke+1)/2)}var Bd=function(_){this.zoom=_.zoom,this.overscaling=_.overscaling,this.layers=_.layers,this.layerIds=this.layers.map(function(R){return R.id}),this.index=_.index,this.hasPattern=!1,this.layoutVertexArray=new bd,this.indexArray=new Uo,this.segments=new Xo,this.programConfigurations=new Mh(_.layers,_.zoom),this.stateDependentLayerIds=this.layers.filter(function(R){return R.isStateDependent()}).map(function(R){return R.id})};function Dc(_,R){for(var G=0;G<_.length;G++)if(Zd(R,_[G]))return!0;for(var le=0;le1){if(Io(_,R))return!0;for(var le=0;le1?G:G.sub(R)._mult(ke)._add(R))}function Nm(_,R){for(var G,le,ke,Qe=!1,Ct=0;Ct<_.length;Ct++)for(var jt=0,Rn=(G=_[Ct]).length-1;jtR.y!=(ke=G[Rn]).y>R.y&&R.x<(ke.x-le.x)*(R.y-le.y)/(ke.y-le.y)+le.x&&(Qe=!Qe);return Qe}function Zd(_,R){for(var G=!1,le=0,ke=_.length-1;le<_.length;ke=le++){var Qe=_[le],Ct=_[ke];Qe.y>R.y!=Ct.y>R.y&&R.x<(Ct.x-Qe.x)*(R.y-Qe.y)/(Ct.y-Qe.y)+Qe.x&&(G=!G)}return G}function Fp(_,R,G){var le=G[0],ke=G[2];if(_.xke.x&&R.x>ke.x||_.yke.y&&R.y>ke.y)return!1;var Qe=Ce(_,R,G[0]);return Qe!==Ce(_,R,G[1])||Qe!==Ce(_,R,G[2])||Qe!==Ce(_,R,G[3])}function zf(_,R,G){var le=R.paint.get(_).value;return le.kind==="constant"?le.value:G.programConfigurations.get(R.id).getMaxValue(_)}function bf(_){return Math.sqrt(_[0]*_[0]+_[1]*_[1])}function Jp(_,R,G,le,ke){if(!R[0]&&!R[1])return _;var Qe=w.convert(R)._mult(ke);G==="viewport"&&Qe._rotate(-le);for(var Ct=[],jt=0;jt<_.length;jt++)Ct.push(_[jt].sub(Qe));return Ct}Bd.prototype.populate=function(_,R,G){var le=this.layers[0],ke=[],Qe=null;le.type==="circle"&&(Qe=le.layout.get("circle-sort-key"));for(var Ct=0,jt=_;Ct=8192||zr<0||zr>=8192)){var hi=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,_.sortKey),po=hi.vertexLength;yd(this.layoutVertexArray,ur,zr,-1,-1),yd(this.layoutVertexArray,ur,zr,1,-1),yd(this.layoutVertexArray,ur,zr,1,1),yd(this.layoutVertexArray,ur,zr,-1,1),this.indexArray.emplaceBack(po,po+1,po+2),this.indexArray.emplaceBack(po,po+3,po+2),hi.vertexLength+=4,hi.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,_,G,{},le)},Qc("CircleBucket",Bd,{omit:["layers"]});var Bp=new Ap({"circle-sort-key":new td(rn.layout_circle["circle-sort-key"])}),Hf={paint:new Ap({"circle-radius":new td(rn.paint_circle["circle-radius"]),"circle-color":new td(rn.paint_circle["circle-color"]),"circle-blur":new td(rn.paint_circle["circle-blur"]),"circle-opacity":new td(rn.paint_circle["circle-opacity"]),"circle-translate":new Od(rn.paint_circle["circle-translate"]),"circle-translate-anchor":new Od(rn.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new Od(rn.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new Od(rn.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new td(rn.paint_circle["circle-stroke-width"]),"circle-stroke-color":new td(rn.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new td(rn.paint_circle["circle-stroke-opacity"])}),layout:Bp},df=typeof Float32Array!="undefined"?Float32Array:Array;function af(_){return _[0]=1,_[1]=0,_[2]=0,_[3]=0,_[4]=0,_[5]=1,_[6]=0,_[7]=0,_[8]=0,_[9]=0,_[10]=1,_[11]=0,_[12]=0,_[13]=0,_[14]=0,_[15]=1,_}function jg(_,R,G){var le=R[0],ke=R[1],Qe=R[2],Ct=R[3],jt=R[4],Rn=R[5],ur=R[6],zr=R[7],hi=R[8],po=R[9],ko=R[10],Zs=R[11],Js=R[12],sl=R[13],Da=R[14],Ol=R[15],jl=G[0],cu=G[1],lu=G[2],Uu=G[3];return _[0]=jl*le+cu*jt+lu*hi+Uu*Js,_[1]=jl*ke+cu*Rn+lu*po+Uu*sl,_[2]=jl*Qe+cu*ur+lu*ko+Uu*Da,_[3]=jl*Ct+cu*zr+lu*Zs+Uu*Ol,_[4]=(jl=G[4])*le+(cu=G[5])*jt+(lu=G[6])*hi+(Uu=G[7])*Js,_[5]=jl*ke+cu*Rn+lu*po+Uu*sl,_[6]=jl*Qe+cu*ur+lu*ko+Uu*Da,_[7]=jl*Ct+cu*zr+lu*Zs+Uu*Ol,_[8]=(jl=G[8])*le+(cu=G[9])*jt+(lu=G[10])*hi+(Uu=G[11])*Js,_[9]=jl*ke+cu*Rn+lu*po+Uu*sl,_[10]=jl*Qe+cu*ur+lu*ko+Uu*Da,_[11]=jl*Ct+cu*zr+lu*Zs+Uu*Ol,_[12]=(jl=G[12])*le+(cu=G[13])*jt+(lu=G[14])*hi+(Uu=G[15])*Js,_[13]=jl*ke+cu*Rn+lu*po+Uu*sl,_[14]=jl*Qe+cu*ur+lu*ko+Uu*Da,_[15]=jl*Ct+cu*zr+lu*Zs+Uu*Ol,_}Math.hypot||(Math.hypot=function(){for(var _=arguments,R=0,G=arguments.length;G--;)R+=_[G]*_[G];return Math.sqrt(R)});var ap,lg=jg;function Id(_,R,G){var le=R[0],ke=R[1],Qe=R[2],Ct=R[3];return _[0]=G[0]*le+G[4]*ke+G[8]*Qe+G[12]*Ct,_[1]=G[1]*le+G[5]*ke+G[9]*Qe+G[13]*Ct,_[2]=G[2]*le+G[6]*ke+G[10]*Qe+G[14]*Ct,_[3]=G[3]*le+G[7]*ke+G[11]*Qe+G[15]*Ct,_}ap=new df(3),df!=Float32Array&&(ap[0]=0,ap[1]=0,ap[2]=0),function(){var _=new df(4);df!=Float32Array&&(_[0]=0,_[1]=0,_[2]=0,_[3]=0)}();var rm=(function(){var _=new df(2);df!=Float32Array&&(_[0]=0,_[1]=0)}(),function(_){function R(G){_.call(this,G,Hf)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype.createBucket=function(G){return new Bd(G)},R.prototype.queryRadius=function(G){var le=G;return zf("circle-radius",this,le)+zf("circle-stroke-width",this,le)+bf(this.paint.get("circle-translate"))},R.prototype.queryIntersectsFeature=function(G,le,ke,Qe,Ct,jt,Rn,ur){for(var zr=Jp(G,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),jt.angle,Rn),hi=this.paint.get("circle-radius").evaluate(le,ke)+this.paint.get("circle-stroke-width").evaluate(le,ke),po=this.paint.get("circle-pitch-alignment")==="map",ko=po?zr:function(kc,ac){return kc.map(function(_d){return Im(_d,ac)})}(zr,ur),Zs=po?hi*Rn:hi,Js=0,sl=Qe;Js_.width||ke.height>_.height||G.x>_.width-ke.width||G.y>_.height-ke.height)throw new RangeError("out of range source coordinates for image copy");if(ke.width>R.width||ke.height>R.height||le.x>R.width-ke.width||le.y>R.height-ke.height)throw new RangeError("out of range destination coordinates for image copy");for(var Ct=_.data,jt=R.data,Rn=0;Rn80*G){le=Qe=_[0],ke=Ct=_[1];for(var Zs=G;ZsQe&&(Qe=jt),Rn>Ct&&(Ct=Rn);ur=(ur=Math.max(Qe-le,Ct-ke))!==0?1/ur:0}return a0(po,ko,G,le,ke,ur),ko}function Xf(_,R,G,le,ke){var Qe,Ct;if(ke===rt(_,R,G,le)>0)for(Qe=R;Qe=R;Qe-=le)Ct=_e(Qe,_[Qe],_[Qe+1],Ct);return Ct&&sm(Ct,Ct.next)&&(at(Ct),Ct=Ct.next),Ct}function Zh(_,R){if(!_)return _;R||(R=_);var G,le=_;do if(G=!1,le.steiner||!sm(le,le.next)&&yp(le.prev,le,le.next)!==0)le=le.next;else{if(at(le),(le=R=le.prev)===le.next)break;G=!0}while(G||le!==R);return R}function a0(_,R,G,le,ke,Qe,Ct){if(_){!Ct&&Qe&&function(zr,hi,po,ko){var Zs=zr;do Zs.z===null&&(Zs.z=Vg(Zs.x,Zs.y,hi,po,ko)),Zs.prevZ=Zs.prev,Zs.nextZ=Zs.next,Zs=Zs.next;while(Zs!==zr);Zs.prevZ.nextZ=null,Zs.prevZ=null,function(Js){var sl,Da,Ol,jl,cu,lu,Uu,kc,ac=1;do{for(Da=Js,Js=null,cu=null,lu=0;Da;){for(lu++,Ol=Da,Uu=0,sl=0;sl0||kc>0&&Ol;)Uu!==0&&(kc===0||!Ol||Da.z<=Ol.z)?(jl=Da,Da=Da.nextZ,Uu--):(jl=Ol,Ol=Ol.nextZ,kc--),cu?cu.nextZ=jl:Js=jl,jl.prevZ=cu,cu=jl;Da=Ol}cu.nextZ=null,ac*=2}while(lu>1)}(Zs)}(_,le,ke,Qe);for(var jt,Rn,ur=_;_.prev!==_.next;)if(jt=_.prev,Rn=_.next,Qe?Kg(_,le,ke,Qe):M0(_))R.push(jt.i/G),R.push(_.i/G),R.push(Rn.i/G),at(_),_=Rn.next,ur=Rn.next;else if((_=Rn)===ur){Ct?Ct===1?a0(_=Wm(Zh(_),R,G),R,G,le,ke,Qe,2):Ct===2&&m0(_,R,G,le,ke,Qe):a0(Zh(_),R,G,le,ke,Qe,1);break}}}function M0(_){var R=_.prev,G=_,le=_.next;if(yp(R,G,le)>=0)return!1;for(var ke=_.next.next;ke!==_.prev;){if(ym(R.x,R.y,G.x,G.y,le.x,le.y,ke.x,ke.y)&&yp(ke.prev,ke,ke.next)>=0)return!1;ke=ke.next}return!0}function Kg(_,R,G,le){var ke=_.prev,Qe=_,Ct=_.next;if(yp(ke,Qe,Ct)>=0)return!1;for(var jt=ke.x>Qe.x?ke.x>Ct.x?ke.x:Ct.x:Qe.x>Ct.x?Qe.x:Ct.x,Rn=ke.y>Qe.y?ke.y>Ct.y?ke.y:Ct.y:Qe.y>Ct.y?Qe.y:Ct.y,ur=Vg(ke.x=ur&&po&&po.z<=zr;){if(hi!==_.prev&&hi!==_.next&&ym(ke.x,ke.y,Qe.x,Qe.y,Ct.x,Ct.y,hi.x,hi.y)&&yp(hi.prev,hi,hi.next)>=0||(hi=hi.prevZ,po!==_.prev&&po!==_.next&&ym(ke.x,ke.y,Qe.x,Qe.y,Ct.x,Ct.y,po.x,po.y)&&yp(po.prev,po,po.next)>=0))return!1;po=po.nextZ}for(;hi&&hi.z>=ur;){if(hi!==_.prev&&hi!==_.next&&ym(ke.x,ke.y,Qe.x,Qe.y,Ct.x,Ct.y,hi.x,hi.y)&&yp(hi.prev,hi,hi.next)>=0)return!1;hi=hi.prevZ}for(;po&&po.z<=zr;){if(po!==_.prev&&po!==_.next&&ym(ke.x,ke.y,Qe.x,Qe.y,Ct.x,Ct.y,po.x,po.y)&&yp(po.prev,po,po.next)>=0)return!1;po=po.nextZ}return!0}function Wm(_,R,G){var le=_;do{var ke=le.prev,Qe=le.next.next;!sm(ke,Qe)&&Km(ke,le,le.next,Qe)&&de(ke,Qe)&&de(Qe,ke)&&(R.push(ke.i/G),R.push(le.i/G),R.push(Qe.i/G),at(le),at(le.next),le=_=Qe),le=le.next}while(le!==_);return Zh(le)}function m0(_,R,G,le,ke,Qe){var Ct=_;do{for(var jt=Ct.next.next;jt!==Ct.prev;){if(Ct.i!==jt.i&&jm(Ct,jt)){var Rn=H(Ct,jt);return Ct=Zh(Ct,Ct.next),Rn=Zh(Rn,Rn.next),a0(Ct,R,G,le,ke,Qe),void a0(Rn,R,G,le,ke,Qe)}jt=jt.next}Ct=Ct.next}while(Ct!==_)}function Gm(_,R){return _.x-R.x}function $d(_,R){if(R=function(le,ke){var Qe,Ct=ke,jt=le.x,Rn=le.y,ur=-1/0;do{if(Rn<=Ct.y&&Rn>=Ct.next.y&&Ct.next.y!==Ct.y){var zr=Ct.x+(Rn-Ct.y)*(Ct.next.x-Ct.x)/(Ct.next.y-Ct.y);if(zr<=jt&&zr>ur){if(ur=zr,zr===jt){if(Rn===Ct.y)return Ct;if(Rn===Ct.next.y)return Ct.next}Qe=Ct.x=Ct.x&&Ct.x>=ko&&jt!==Ct.x&&ym(RnQe.x||Ct.x===Qe.x&&K0(Qe,Ct)))&&(Qe=Ct,Js=hi)),Ct=Ct.next;while(Ct!==po);return Qe}(_,R)){var G=H(R,_);Zh(R,R.next),Zh(G,G.next)}}function K0(_,R){return yp(_.prev,_,R.prev)<0&&yp(R.next,_,_.next)<0}function Vg(_,R,G,le,ke){return(_=1431655765&((_=858993459&((_=252645135&((_=16711935&((_=32767*(_-G)*ke)|_<<8))|_<<4))|_<<2))|_<<1))|(R=1431655765&((R=858993459&((R=252645135&((R=16711935&((R=32767*(R-le)*ke)|R<<8))|R<<4))|R<<2))|R<<1))<<1}function e0(_){var R=_,G=_;do(R.x=0&&(_-Ct)*(le-jt)-(G-Ct)*(R-jt)>=0&&(G-Ct)*(Qe-jt)-(ke-Ct)*(le-jt)>=0}function jm(_,R){return _.next.i!==R.i&&_.prev.i!==R.i&&!function(G,le){var ke=G;do{if(ke.i!==G.i&&ke.next.i!==G.i&&ke.i!==le.i&&ke.next.i!==le.i&&Km(ke,ke.next,G,le))return!0;ke=ke.next}while(ke!==G);return!1}(_,R)&&(de(_,R)&&de(R,_)&&function(G,le){var ke=G,Qe=!1,Ct=(G.x+le.x)/2,jt=(G.y+le.y)/2;do ke.y>jt!=ke.next.y>jt&&ke.next.y!==ke.y&&Ct<(ke.next.x-ke.x)*(jt-ke.y)/(ke.next.y-ke.y)+ke.x&&(Qe=!Qe),ke=ke.next;while(ke!==G);return Qe}(_,R)&&(yp(_.prev,_,R.prev)||yp(_,R.prev,R))||sm(_,R)&&yp(_.prev,_,_.next)>0&&yp(R.prev,R,R.next)>0)}function yp(_,R,G){return(R.y-_.y)*(G.x-R.x)-(R.x-_.x)*(G.y-R.y)}function sm(_,R){return _.x===R.x&&_.y===R.y}function Km(_,R,G,le){var ke=Pg(yp(_,R,G)),Qe=Pg(yp(_,R,le)),Ct=Pg(yp(G,le,_)),jt=Pg(yp(G,le,R));return ke!==Qe&&Ct!==jt||!(ke!==0||!Ip(_,G,R))||!(Qe!==0||!Ip(_,le,R))||!(Ct!==0||!Ip(G,_,le))||!(jt!==0||!Ip(G,R,le))}function Ip(_,R,G){return R.x<=Math.max(_.x,G.x)&&R.x>=Math.min(_.x,G.x)&&R.y<=Math.max(_.y,G.y)&&R.y>=Math.min(_.y,G.y)}function Pg(_){return _>0?1:_<0?-1:0}function de(_,R){return yp(_.prev,_,_.next)<0?yp(_,R,_.next)>=0&&yp(_,_.prev,R)>=0:yp(_,R,_.prev)<0||yp(_,_.next,R)<0}function H(_,R){var G=new gn(_.i,_.x,_.y),le=new gn(R.i,R.x,R.y),ke=_.next,Qe=R.prev;return _.next=R,R.prev=_,G.next=ke,ke.prev=G,le.next=G,G.prev=le,Qe.next=le,le.prev=Qe,le}function _e(_,R,G,le){var ke=new gn(_,R,G);return le?(ke.next=le.next,ke.prev=le,le.next.prev=ke,le.next=ke):(ke.prev=ke,ke.next=ke),ke}function at(_){_.next.prev=_.prev,_.prev.next=_.next,_.prevZ&&(_.prevZ.nextZ=_.nextZ),_.nextZ&&(_.nextZ.prevZ=_.prevZ)}function gn(_,R,G){this.i=_,this.x=R,this.y=G,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function rt(_,R,G,le){for(var ke=0,Qe=R,Ct=G-le;QeRn;){if(ur-Rn>600){var hi=ur-Rn+1,po=jt-Rn+1,ko=Math.log(hi),Zs=.5*Math.exp(2*ko/3),Js=.5*Math.sqrt(ko*Zs*(hi-Zs)/hi)*(po-hi/2<0?-1:1);Qe(Ct,jt,Math.max(Rn,Math.floor(jt-po*Zs/hi+Js)),Math.min(ur,Math.floor(jt+(hi-po)*Zs/hi+Js)),zr)}var sl=Ct[jt],Da=Rn,Ol=ur;for(It(Ct,Rn,jt),zr(Ct[ur],sl)>0&&It(Ct,Rn,ur);Da0;)Ol--}zr(Ct[Rn],sl)===0?It(Ct,Rn,Ol):It(Ct,++Ol,ur),Ol<=jt&&(Rn=Ol+1),jt<=Ol&&(ur=Ol-1)}})(_,R,G||0,le||_.length-1,ke||Ut)}function It(_,R,G){var le=_[R];_[R]=_[G],_[G]=le}function Ut(_,R){return _R?1:0}function Vt(_,R){var G=_.length;if(G<=1)return[_];for(var le,ke,Qe=[],Ct=0;Ct1)for(var Rn=0;Rn0&&G.holes.push(le+=_[ke-1].length)}return G},Zp.default=k0;var On=function(_){this.zoom=_.zoom,this.overscaling=_.overscaling,this.layers=_.layers,this.layerIds=this.layers.map(function(R){return R.id}),this.index=_.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new bd,this.indexArray=new Uo,this.indexArray2=new pc,this.programConfigurations=new Mh(_.layers,_.zoom),this.segments=new Xo,this.segments2=new Xo,this.stateDependentLayerIds=this.layers.filter(function(R){return R.isStateDependent()}).map(function(R){return R.id})};On.prototype.populate=function(_,R,G){this.hasPattern=sn("fill",this.layers,R);for(var le=this.layers[0].layout.get("fill-sort-key"),ke=[],Qe=0,Ct=_;Qe>3}if(ke--,le===1||le===2)Qe+=_.readSVarint(),Ct+=_.readSVarint(),le===1&&(R&&jt.push(R),R=[]),R.push(new w(Qe,Ct));else{if(le!==7)throw new Error("unknown command "+le);R&&R.push(R[0].clone())}}return R&&jt.push(R),jt},pr.prototype.bbox=function(){var _=this._pbf;_.pos=this._geometry;for(var R=_.readVarint()+_.pos,G=1,le=0,ke=0,Qe=0,Ct=1/0,jt=-1/0,Rn=1/0,ur=-1/0;_.pos>3}if(le--,G===1||G===2)(ke+=_.readSVarint())jt&&(jt=ke),(Qe+=_.readSVarint())ur&&(ur=Qe);else if(G!==7)throw new Error("unknown command "+G)}return[Ct,Rn,jt,ur]},pr.prototype.toGeoJSON=function(_,R,G){var le,ke,Qe=this.extent*Math.pow(2,G),Ct=this.extent*_,jt=this.extent*R,Rn=this.loadGeometry(),ur=pr.types[this.type];function zr(ko){for(var Zs=0;Zs>3;ke=Ct===1?le.readString():Ct===2?le.readFloat():Ct===3?le.readDouble():Ct===4?le.readVarint64():Ct===5?le.readVarint():Ct===6?le.readSVarint():Ct===7?le.readBoolean():null}return ke}(G))}function Fi(_,R,G){if(_===3){var le=new mo(G,G.readVarint()+G.pos);le.length&&(R[le.name]=le)}}fi.prototype.feature=function(_){if(_<0||_>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[_];var R=this._pbf.readVarint()+this._pbf.pos;return new nr(this._pbf,R,this.extent,this._keys,this._values)};var Eo={VectorTile:function(_,R){this.layers=_.readFields(Fi,{},R)},VectorTileFeature:nr,VectorTileLayer:mo},vo=Eo.VectorTileFeature.types,Rs=Math.pow(2,13);function Dr(_,R,G,le,ke,Qe,Ct,jt){_.emplaceBack(R,G,2*Math.floor(le*Rs)+Ct,ke*Rs*2,Qe*Rs*2,Math.round(jt))}var Ii=function(_){this.zoom=_.zoom,this.overscaling=_.overscaling,this.layers=_.layers,this.layerIds=this.layers.map(function(R){return R.id}),this.index=_.index,this.hasPattern=!1,this.layoutVertexArray=new Hd,this.indexArray=new Uo,this.programConfigurations=new Mh(_.layers,_.zoom),this.segments=new Xo,this.stateDependentLayerIds=this.layers.filter(function(R){return R.isStateDependent()}).map(function(R){return R.id})};function Ir(_,R){return _.x===R.x&&(_.x<0||_.x>8192)||_.y===R.y&&(_.y<0||_.y>8192)}Ii.prototype.populate=function(_,R,G){this.features=[],this.hasPattern=sn("fill-extrusion",this.layers,R);for(var le=0,ke=_;le8192})||go.every(function(ia){return ia.y<0})||go.every(function(ia){return ia.y>8192})))for(var Js=0,sl=0;sl=1){var Ol=Zs[sl-1];if(!Ir(Da,Ol)){hi.vertexLength+4>Xo.MAX_VERTEX_ARRAY_LENGTH&&(hi=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var jl=Da.sub(Ol)._perp()._unit(),cu=Ol.dist(Da);Js+cu>32768&&(Js=0),Dr(this.layoutVertexArray,Da.x,Da.y,jl.x,jl.y,0,0,Js),Dr(this.layoutVertexArray,Da.x,Da.y,jl.x,jl.y,0,1,Js),Dr(this.layoutVertexArray,Ol.x,Ol.y,jl.x,jl.y,0,0,Js+=cu),Dr(this.layoutVertexArray,Ol.x,Ol.y,jl.x,jl.y,0,1,Js);var lu=hi.vertexLength;this.indexArray.emplaceBack(lu,lu+2,lu+1),this.indexArray.emplaceBack(lu+1,lu+2,lu+3),hi.vertexLength+=4,hi.primitiveLength+=2}}}}if(hi.vertexLength+Rn>Xo.MAX_VERTEX_ARRAY_LENGTH&&(hi=this.segments.prepareSegment(Rn,this.layoutVertexArray,this.indexArray)),vo[_.type]==="Polygon"){for(var Uu=[],kc=[],ac=hi.vertexLength,_d=0,Xu=jt;_d=2&&_[Rn-1].equals(_[Rn-2]);)Rn--;for(var ur=0;ur0;if(kc&&Da>ur){var _d=zr.dist(ko);if(_d>2*hi){var Xu=zr.sub(zr.sub(ko)._mult(hi/_d)._round());this.updateDistance(ko,Xu),this.addCurrentVertex(Xu,Js,0,0,po),ko=Xu}}var Nd=ko&&Zs,Yt=Nd?G:jt?"butt":le;if(Nd&&Yt==="round"&&(luke&&(Yt="bevel"),Yt==="bevel"&&(lu>2&&(Yt="flipbevel"),lu100)Ol=sl.mult(-1);else{var Mn=lu*Js.add(sl).mag()/Js.sub(sl).mag();Ol._perp()._mult(Mn*(ac?-1:1))}this.addCurrentVertex(zr,Ol,0,0,po),this.addCurrentVertex(zr,Ol.mult(-1),0,0,po)}else if(Yt==="bevel"||Yt==="fakeround"){var dr=-Math.sqrt(lu*lu-1),jr=ac?dr:0,go=ac?0:dr;if(ko&&this.addCurrentVertex(zr,Js,jr,go,po),Yt==="fakeround")for(var ia=Math.round(180*Uu/Math.PI/20),Ga=1;Ga2*hi){var fh=zr.add(Zs.sub(zr)._mult(hi/Kc)._round());this.updateDistance(zr,fh),this.addCurrentVertex(fh,sl,0,0,po),zr=fh}}}}},Ls.prototype.addCurrentVertex=function(_,R,G,le,ke,Qe){Qe===void 0&&(Qe=!1);var Ct=R.y*le-R.x,jt=-R.y-R.x*le;this.addHalfVertex(_,R.x+R.y*G,R.y-R.x*G,Qe,!1,G,ke),this.addHalfVertex(_,Ct,jt,Qe,!0,-le,ke),this.distance>hs/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(_,R,G,le,ke,Qe))},Ls.prototype.addHalfVertex=function(_,R,G,le,ke,Qe,Ct){var jt=.5*(this.lineClips?this.scaledDistance*(hs-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((_.x<<1)+(le?1:0),(_.y<<1)+(ke?1:0),Math.round(63*R)+128,Math.round(63*G)+128,1+(Qe===0?0:Qe<0?-1:1)|(63&jt)<<2,jt>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);var Rn=Ct.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,Rn),Ct.primitiveLength++),ke?this.e2=Rn:this.e1=Rn},Ls.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},Ls.prototype.updateDistance=function(_,R){this.distance+=_.dist(R),this.updateScaledDistance()},Qc("LineBucket",Ls,{omit:["layers","patternFeatures"]});var Ye=new Ap({"line-cap":new Od(rn.layout_line["line-cap"]),"line-join":new td(rn.layout_line["line-join"]),"line-miter-limit":new Od(rn.layout_line["line-miter-limit"]),"line-round-limit":new Od(rn.layout_line["line-round-limit"]),"line-sort-key":new td(rn.layout_line["line-sort-key"])}),mt={paint:new Ap({"line-opacity":new td(rn.paint_line["line-opacity"]),"line-color":new td(rn.paint_line["line-color"]),"line-translate":new Od(rn.paint_line["line-translate"]),"line-translate-anchor":new Od(rn.paint_line["line-translate-anchor"]),"line-width":new td(rn.paint_line["line-width"]),"line-gap-width":new td(rn.paint_line["line-gap-width"]),"line-offset":new td(rn.paint_line["line-offset"]),"line-blur":new td(rn.paint_line["line-blur"]),"line-dasharray":new _f(rn.paint_line["line-dasharray"]),"line-pattern":new Dp(rn.paint_line["line-pattern"]),"line-gradient":new Hh(rn.paint_line["line-gradient"])}),layout:Ye},Ft=new(function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype.possiblyEvaluate=function(G,le){return le=new Md(Math.floor(le.zoom),{now:le.now,fadeDuration:le.fadeDuration,zoomHistory:le.zoomHistory,transition:le.transition}),_.prototype.possiblyEvaluate.call(this,G,le)},R.prototype.evaluate=function(G,le,ke,Qe){return le=re({},le,{zoom:Math.floor(le.zoom)}),_.prototype.evaluate.call(this,G,le,ke,Qe)},R}(td))(mt.paint.properties["line-width"].specification);Ft.useIntegerZoom=!0;var Dt=function(_){function R(G){_.call(this,G,mt),this.gradientVersion=0}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype._handleSpecialPaintPropertyUpdate=function(G){G==="line-gradient"&&(this.stepInterpolant=this._transitionablePaint._values["line-gradient"].value.expression._styleExpression.expression instanceof Ma,this.gradientVersion=(this.gradientVersion+1)%f)},R.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},R.prototype.recalculate=function(G,le){_.prototype.recalculate.call(this,G,le),this.paint._values["line-floorwidth"]=Ft.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,G)},R.prototype.createBucket=function(G){return new Ls(G)},R.prototype.queryRadius=function(G){var le=G,ke=$t(zf("line-width",this,le),zf("line-gap-width",this,le)),Qe=zf("line-offset",this,le);return ke/2+Math.abs(Qe)+bf(this.paint.get("line-translate"))},R.prototype.queryIntersectsFeature=function(G,le,ke,Qe,Ct,jt,Rn){var ur=Jp(G,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),jt.angle,Rn),zr=Rn/2*$t(this.paint.get("line-width").evaluate(le,ke),this.paint.get("line-gap-width").evaluate(le,ke)),hi=this.paint.get("line-offset").evaluate(le,ke);return hi&&(Qe=function(po,ko){for(var Zs=[],Js=new w(0,0),sl=0;sl=3){for(var Da=0;Da0?R+2*_:_}var Gt=yh([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),Pr=yh([{name:"a_projected_pos",components:3,type:"Float32"}],4),Dn=(yh([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),yh([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),Sn=(yh([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]),yh([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),cn=yh([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function Jn(_,R,G){return _.sections.forEach(function(le){le.text=function(ke,Qe,Ct){var jt=Qe.layout.get("text-transform").evaluate(Ct,{});return jt==="uppercase"?ke=ke.toLocaleUpperCase():jt==="lowercase"&&(ke=ke.toLocaleLowerCase()),ag.applyArabicShaping&&(ke=ag.applyArabicShaping(ke)),ke}(le.text,R,G)}),_}yh([{name:"triangle",components:3,type:"Uint16"}]),yh([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),yh([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),yh([{type:"Float32",name:"offsetX"}]),yh([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var xr={"!":"\uFE15","#":"\uFF03",$:"\uFF04","%":"\uFF05","&":"\uFF06","(":"\uFE35",")":"\uFE36","*":"\uFF0A","+":"\uFF0B",",":"\uFE10","-":"\uFE32",".":"\u30FB","/":"\uFF0F",":":"\uFE13",";":"\uFE14","<":"\uFE3F","=":"\uFF1D",">":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"},So=function(_,R,G,le,ke){var Qe,Ct,jt=8*ke-le-1,Rn=(1<>1,zr=-7,hi=G?ke-1:0,po=G?-1:1,ko=_[R+hi];for(hi+=po,Qe=ko&(1<<-zr)-1,ko>>=-zr,zr+=jt;zr>0;Qe=256*Qe+_[R+hi],hi+=po,zr-=8);for(Ct=Qe&(1<<-zr)-1,Qe>>=-zr,zr+=le;zr>0;Ct=256*Ct+_[R+hi],hi+=po,zr-=8);if(Qe===0)Qe=1-ur;else{if(Qe===Rn)return Ct?NaN:1/0*(ko?-1:1);Ct+=Math.pow(2,le),Qe-=ur}return(ko?-1:1)*Ct*Math.pow(2,Qe-le)},kt=function(_,R,G,le,ke,Qe){var Ct,jt,Rn,ur=8*Qe-ke-1,zr=(1<>1,po=ke===23?Math.pow(2,-24)-Math.pow(2,-77):0,ko=le?0:Qe-1,Zs=le?1:-1,Js=R<0||R===0&&1/R<0?1:0;for(R=Math.abs(R),isNaN(R)||R===1/0?(jt=isNaN(R)?1:0,Ct=zr):(Ct=Math.floor(Math.log(R)/Math.LN2),R*(Rn=Math.pow(2,-Ct))<1&&(Ct--,Rn*=2),(R+=Ct+hi>=1?po/Rn:po*Math.pow(2,1-hi))*Rn>=2&&(Ct++,Rn/=2),Ct+hi>=zr?(jt=0,Ct=zr):Ct+hi>=1?(jt=(R*Rn-1)*Math.pow(2,ke),Ct+=hi):(jt=R*Math.pow(2,hi-1)*Math.pow(2,ke),Ct=0));ke>=8;_[G+ko]=255&jt,ko+=Zs,jt/=256,ke-=8);for(Ct=Ct<0;_[G+ko]=255&Ct,ko+=Zs,Ct/=256,ur-=8);_[G+ko-Zs]|=128*Js},er=In;function In(_){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(_)?_:new Uint8Array(_||0),this.pos=0,this.type=0,this.length=this.buf.length}In.Varint=0,In.Fixed64=1,In.Bytes=2,In.Fixed32=5;var rr=typeof TextDecoder=="undefined"?null:new TextDecoder("utf8");function cr(_){return _.type===In.Bytes?_.readVarint()+_.pos:_.pos+1}function Br(_,R,G){return G?4294967296*R+(_>>>0):4294967296*(R>>>0)+(_>>>0)}function Ai(_,R,G){var le=R<=16383?1:R<=2097151?2:R<=268435455?3:Math.floor(Math.log(R)/(7*Math.LN2));G.realloc(le);for(var ke=G.pos-1;ke>=_;ke--)G.buf[ke+le]=G.buf[ke]}function Ee(_,R){for(var G=0;G<_.length;G++)R.writeVarint(_[G])}function Zo(_,R){for(var G=0;G<_.length;G++)R.writeSVarint(_[G])}function Ws(_,R){for(var G=0;G<_.length;G++)R.writeFloat(_[G])}function ba(_,R){for(var G=0;G<_.length;G++)R.writeDouble(_[G])}function aa(_,R){for(var G=0;G<_.length;G++)R.writeBoolean(_[G])}function Ps(_,R){for(var G=0;G<_.length;G++)R.writeFixed32(_[G])}function ha(_,R){for(var G=0;G<_.length;G++)R.writeSFixed32(_[G])}function To(_,R){for(var G=0;G<_.length;G++)R.writeFixed64(_[G])}function ir(_,R){for(var G=0;G<_.length;G++)R.writeSFixed64(_[G])}function bi(_,R){return(_[R]|_[R+1]<<8|_[R+2]<<16)+16777216*_[R+3]}function Wi(_,R,G){_[G]=R,_[G+1]=R>>>8,_[G+2]=R>>>16,_[G+3]=R>>>24}function os(_,R){return(_[R]|_[R+1]<<8|_[R+2]<<16)+(_[R+3]<<24)}function Ds(_,R,G){_===1&&G.readMessage(la,R)}function la(_,R,G){if(_===3){var le=G.readMessage(Ho,{}),ke=le.width,Qe=le.height,Ct=le.left,jt=le.top,Rn=le.advance;R.push({id:le.id,bitmap:new Lg({width:ke+6,height:Qe+6},le.bitmap),metrics:{width:ke,height:Qe,left:Ct,top:jt,advance:Rn}})}}function Ho(_,R,G){_===1?R.id=G.readVarint():_===2?R.bitmap=G.readBytes():_===3?R.width=G.readVarint():_===4?R.height=G.readVarint():_===5?R.left=G.readSVarint():_===6?R.top=G.readSVarint():_===7&&(R.advance=G.readVarint())}function or(_){for(var R=0,G=0,le=0,ke=_;le=0;po--){var ko=Ct[po];if(!(hi.w>ko.w||hi.h>ko.h)){if(hi.x=ko.x,hi.y=ko.y,Rn=Math.max(Rn,hi.y+hi.h),jt=Math.max(jt,hi.x+hi.w),hi.w===ko.w&&hi.h===ko.h){var Zs=Ct.pop();po>3,Qe=this.pos;this.type=7&le,_(ke,R,this),this.pos===Qe&&this.skip(le)}return R},readMessage:function(_,R){return this.readFields(_,R,this.readVarint()+this.pos)},readFixed32:function(){var _=bi(this.buf,this.pos);return this.pos+=4,_},readSFixed32:function(){var _=os(this.buf,this.pos);return this.pos+=4,_},readFixed64:function(){var _=bi(this.buf,this.pos)+4294967296*bi(this.buf,this.pos+4);return this.pos+=8,_},readSFixed64:function(){var _=bi(this.buf,this.pos)+4294967296*os(this.buf,this.pos+4);return this.pos+=8,_},readFloat:function(){var _=So(this.buf,this.pos,!0,23,4);return this.pos+=4,_},readDouble:function(){var _=So(this.buf,this.pos,!0,52,8);return this.pos+=8,_},readVarint:function(_){var R,G,le=this.buf;return R=127&(G=le[this.pos++]),G<128?R:(R|=(127&(G=le[this.pos++]))<<7,G<128?R:(R|=(127&(G=le[this.pos++]))<<14,G<128?R:(R|=(127&(G=le[this.pos++]))<<21,G<128?R:function(ke,Qe,Ct){var jt,Rn,ur=Ct.buf;if(jt=(112&(Rn=ur[Ct.pos++]))>>4,Rn<128||(jt|=(127&(Rn=ur[Ct.pos++]))<<3,Rn<128)||(jt|=(127&(Rn=ur[Ct.pos++]))<<10,Rn<128)||(jt|=(127&(Rn=ur[Ct.pos++]))<<17,Rn<128)||(jt|=(127&(Rn=ur[Ct.pos++]))<<24,Rn<128)||(jt|=(1&(Rn=ur[Ct.pos++]))<<31,Rn<128))return Br(ke,jt,Qe);throw new Error("Expected varint not more than 10 bytes")}(R|=(15&(G=le[this.pos]))<<28,_,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var _=this.readVarint();return _%2==1?(_+1)/-2:_/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var _=this.readVarint()+this.pos,R=this.pos;return this.pos=_,_-R>=12&&rr?function(G,le,ke){return rr.decode(G.subarray(le,ke))}(this.buf,R,_):function(G,le,ke){for(var Qe="",Ct=le;Ct239?4:zr>223?3:zr>191?2:1;if(Ct+po>ke)break;po===1?zr<128&&(hi=zr):po===2?(192&(jt=G[Ct+1]))==128&&(hi=(31&zr)<<6|63&jt)<=127&&(hi=null):po===3?(Rn=G[Ct+2],(192&(jt=G[Ct+1]))==128&&(192&Rn)==128&&((hi=(15&zr)<<12|(63&jt)<<6|63&Rn)<=2047||hi>=55296&&hi<=57343)&&(hi=null)):po===4&&(Rn=G[Ct+2],ur=G[Ct+3],(192&(jt=G[Ct+1]))==128&&(192&Rn)==128&&(192&ur)==128&&((hi=(15&zr)<<18|(63&jt)<<12|(63&Rn)<<6|63&ur)<=65535||hi>=1114112)&&(hi=null)),hi===null?(hi=65533,po=1):hi>65535&&(hi-=65536,Qe+=String.fromCharCode(hi>>>10&1023|55296),hi=56320|1023&hi),Qe+=String.fromCharCode(hi),Ct+=po}return Qe}(this.buf,R,_)},readBytes:function(){var _=this.readVarint()+this.pos,R=this.buf.subarray(this.pos,_);return this.pos=_,R},readPackedVarint:function(_,R){if(this.type!==In.Bytes)return _.push(this.readVarint(R));var G=cr(this);for(_=_||[];this.pos127;);else if(R===In.Bytes)this.pos=this.readVarint()+this.pos;else if(R===In.Fixed32)this.pos+=4;else{if(R!==In.Fixed64)throw new Error("Unimplemented type: "+R);this.pos+=8}},writeTag:function(_,R){this.writeVarint(_<<3|R)},realloc:function(_){for(var R=this.length||16;R268435455||_<0?function(R,G){var le,ke;if(R>=0?(le=R%4294967296|0,ke=R/4294967296|0):(ke=~(-R/4294967296),4294967295^(le=~(-R%4294967296))?le=le+1|0:(le=0,ke=ke+1|0)),R>=18446744073709552e3||R<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");G.realloc(10),function(Qe,Ct,jt){jt.buf[jt.pos++]=127&Qe|128,Qe>>>=7,jt.buf[jt.pos++]=127&Qe|128,Qe>>>=7,jt.buf[jt.pos++]=127&Qe|128,Qe>>>=7,jt.buf[jt.pos++]=127&Qe|128,jt.buf[jt.pos]=127&(Qe>>>=7)}(le,0,G),function(Qe,Ct){var jt=(7&Qe)<<4;Ct.buf[Ct.pos++]|=jt|((Qe>>>=3)?128:0),Qe&&(Ct.buf[Ct.pos++]=127&Qe|((Qe>>>=7)?128:0),Qe&&(Ct.buf[Ct.pos++]=127&Qe|((Qe>>>=7)?128:0),Qe&&(Ct.buf[Ct.pos++]=127&Qe|((Qe>>>=7)?128:0),Qe&&(Ct.buf[Ct.pos++]=127&Qe|((Qe>>>=7)?128:0),Qe&&(Ct.buf[Ct.pos++]=127&Qe)))))}(ke,G)}(_,this):(this.realloc(4),this.buf[this.pos++]=127&_|(_>127?128:0),_<=127||(this.buf[this.pos++]=127&(_>>>=7)|(_>127?128:0),_<=127||(this.buf[this.pos++]=127&(_>>>=7)|(_>127?128:0),_<=127||(this.buf[this.pos++]=_>>>7&127))))},writeSVarint:function(_){this.writeVarint(_<0?2*-_-1:2*_)},writeBoolean:function(_){this.writeVarint(!!_)},writeString:function(_){_=String(_),this.realloc(4*_.length),this.pos++;var R=this.pos;this.pos=function(le,ke,Qe){for(var Ct,jt,Rn=0;Rn55295&&Ct<57344){if(!jt){Ct>56319||Rn+1===ke.length?(le[Qe++]=239,le[Qe++]=191,le[Qe++]=189):jt=Ct;continue}if(Ct<56320){le[Qe++]=239,le[Qe++]=191,le[Qe++]=189,jt=Ct;continue}Ct=jt-55296<<10|Ct-56320|65536,jt=null}else jt&&(le[Qe++]=239,le[Qe++]=191,le[Qe++]=189,jt=null);Ct<128?le[Qe++]=Ct:(Ct<2048?le[Qe++]=Ct>>6|192:(Ct<65536?le[Qe++]=Ct>>12|224:(le[Qe++]=Ct>>18|240,le[Qe++]=Ct>>12&63|128),le[Qe++]=Ct>>6&63|128),le[Qe++]=63&Ct|128)}return Qe}(this.buf,_,this.pos);var G=this.pos-R;G>=128&&Ai(R,G,this),this.pos=R-1,this.writeVarint(G),this.pos+=G},writeFloat:function(_){this.realloc(4),kt(this.buf,_,this.pos,!0,23,4),this.pos+=4},writeDouble:function(_){this.realloc(8),kt(this.buf,_,this.pos,!0,52,8),this.pos+=8},writeBytes:function(_){var R=_.length;this.writeVarint(R),this.realloc(R);for(var G=0;G=128&&Ai(G,le,this),this.pos=G-1,this.writeVarint(le),this.pos+=le},writeMessage:function(_,R,G){this.writeTag(_,In.Bytes),this.writeRawMessage(R,G)},writePackedVarint:function(_,R){R.length&&this.writeMessage(_,Ee,R)},writePackedSVarint:function(_,R){R.length&&this.writeMessage(_,Zo,R)},writePackedBoolean:function(_,R){R.length&&this.writeMessage(_,aa,R)},writePackedFloat:function(_,R){R.length&&this.writeMessage(_,Ws,R)},writePackedDouble:function(_,R){R.length&&this.writeMessage(_,ba,R)},writePackedFixed32:function(_,R){R.length&&this.writeMessage(_,Ps,R)},writePackedSFixed32:function(_,R){R.length&&this.writeMessage(_,ha,R)},writePackedFixed64:function(_,R){R.length&&this.writeMessage(_,To,R)},writePackedSFixed64:function(_,R){R.length&&this.writeMessage(_,ir,R)},writeBytesField:function(_,R){this.writeTag(_,In.Bytes),this.writeBytes(R)},writeFixed32Field:function(_,R){this.writeTag(_,In.Fixed32),this.writeFixed32(R)},writeSFixed32Field:function(_,R){this.writeTag(_,In.Fixed32),this.writeSFixed32(R)},writeFixed64Field:function(_,R){this.writeTag(_,In.Fixed64),this.writeFixed64(R)},writeSFixed64Field:function(_,R){this.writeTag(_,In.Fixed64),this.writeSFixed64(R)},writeVarintField:function(_,R){this.writeTag(_,In.Varint),this.writeVarint(R)},writeSVarintField:function(_,R){this.writeTag(_,In.Varint),this.writeSVarint(R)},writeStringField:function(_,R){this.writeTag(_,In.Bytes),this.writeString(R)},writeFloatField:function(_,R){this.writeTag(_,In.Fixed32),this.writeFloat(R)},writeDoubleField:function(_,R){this.writeTag(_,In.Fixed64),this.writeDouble(R)},writeBooleanField:function(_,R){this.writeVarintField(_,!!R)}};var eo=function(_,R){var G=R.pixelRatio,le=R.version,ke=R.stretchX,Qe=R.stretchY,Ct=R.content;this.paddedRect=_,this.pixelRatio=G,this.stretchX=ke,this.stretchY=Qe,this.content=Ct,this.version=le},vs={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};vs.tl.get=function(){return[this.paddedRect.x+1,this.paddedRect.y+1]},vs.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]},vs.tlbr.get=function(){return this.tl.concat(this.br)},vs.displaySize.get=function(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]},Object.defineProperties(eo.prototype,vs);var ll=function(_,R){var G={},le={};this.haveRenderCallbacks=[];var ke=[];this.addImages(_,G,ke),this.addImages(R,le,ke);var Qe=or(ke),Ct=new ug({width:Qe.w||1,height:Qe.h||1});for(var jt in _){var Rn=_[jt],ur=G[jt].paddedRect;ug.copy(Rn.data,Ct,{x:0,y:0},{x:ur.x+1,y:ur.y+1},Rn.data)}for(var zr in R){var hi=R[zr],po=le[zr].paddedRect,ko=po.x+1,Zs=po.y+1,Js=hi.data.width,sl=hi.data.height;ug.copy(hi.data,Ct,{x:0,y:0},{x:ko,y:Zs},hi.data),ug.copy(hi.data,Ct,{x:0,y:sl-1},{x:ko,y:Zs-1},{width:Js,height:1}),ug.copy(hi.data,Ct,{x:0,y:0},{x:ko,y:Zs+sl},{width:Js,height:1}),ug.copy(hi.data,Ct,{x:Js-1,y:0},{x:ko-1,y:Zs},{width:1,height:sl}),ug.copy(hi.data,Ct,{x:0,y:0},{x:ko+Js,y:Zs},{width:1,height:sl})}this.image=Ct,this.iconPositions=G,this.patternPositions=le};ll.prototype.addImages=function(_,R,G){for(var le in _){var ke=_[le],Qe={x:0,y:0,w:ke.data.width+2,h:ke.data.height+2};G.push(Qe),R[le]=new eo(Qe,ke),ke.hasRenderCallback&&this.haveRenderCallbacks.push(le)}},ll.prototype.patchUpdatedImages=function(_,R){for(var G in _.dispatchRenderCallbacks(this.haveRenderCallbacks),_.updatedImages)this.patchUpdatedImage(this.iconPositions[G],_.getImage(G),R),this.patchUpdatedImage(this.patternPositions[G],_.getImage(G),R)},ll.prototype.patchUpdatedImage=function(_,R,G){if(_&&R&&_.version!==R.version){_.version=R.version;var le=_.tl;G.update(R.data,void 0,{x:le[0],y:le[1]})}},Qc("ImagePosition",eo),Qc("ImageAtlas",ll);var Dl={horizontal:1,vertical:2,horizontalOnly:3},Oa=function(){this.scale=1,this.fontStack="",this.imageName=null};Oa.forText=function(_,R){var G=new Oa;return G.scale=_||1,G.fontStack=R,G},Oa.forImage=function(_){var R=new Oa;return R.imageName=_,R};var _s=function(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null};function wl(_,R,G,le,ke,Qe,Ct,jt,Rn,ur,zr,hi,po,ko,Zs,Js){var sl,Da=_s.fromFeature(_,ke);hi===Dl.vertical&&Da.verticalizePunctuation();var Ol=ag.processBidirectionalText,jl=ag.processStyledBidirectionalText;if(Ol&&Da.sections.length===1){sl=[];for(var cu=0,lu=Ol(Da.toString(),$l(Da,ur,Qe,R,le,ko,Zs));cu0&&Lp>Ef&&(Ef=Lp)}else{var qf=ia[Fd.fontStack],kp=qf&&qf[Tg];if(kp&&kp.rect)mf=kp.rect,Ep=kp.metrics;else{var Kp=go[Fd.fontStack],rp=Kp&&Kp[Tg];if(!rp)continue;Ep=rp.metrics}dm=24*(Yf-Fd.scale)}Ru?(jr.verticalizable=!0,kd.push({glyph:Tg,imageName:Gp,x:wh,y:cg+dm,vertical:Ru,scale:Fd.scale,fontStack:Fd.fontStack,sectionIndex:$h,metrics:Ep,rect:mf}),wh+=Of*Fd.scale+fh):(kd.push({glyph:Tg,imageName:Gp,x:wh,y:cg+dm,vertical:Ru,scale:Fd.scale,fontStack:Fd.fontStack,sectionIndex:$h,metrics:Ep,rect:mf}),wh+=Ep.advance*Fd.scale+fh)}kd.length!==0&&(yg=Math.max(wh-fh,yg),tu(kd,0,kd.length-1,nf,Ef)),wh=0;var Sm=Xl*Yf+Ef;Mf.lineOffset=Math.max(Ef,em),cg+=Sm,Nh=Math.max(Sm,Nh),++Ko}else cg+=Xl,++Ko}var Yg,dg=cg- -17,qg=su(wu),ig=qg.horizontalAlign,hg=qg.verticalAlign;(function(Xp,B0,v1,j0,q_,uv,y1,X0,V1){var wv,mv=(B0-v1)*q_;wv=uv!==y1?-X0*j0- -17:(-j0*V1+.5)*y1;for(var sy=0,Sv=Xp;sy=0&&le>=_&&nl[this.text.charCodeAt(le)];le--)G--;this.text=this.text.substring(_,G),this.sectionIndex=this.sectionIndex.slice(_,G)},_s.prototype.substring=function(_,R){var G=new _s;return G.text=this.text.substring(_,R),G.sectionIndex=this.sectionIndex.slice(_,R),G.sections=this.sections,G},_s.prototype.toString=function(){return this.text},_s.prototype.getMaxScale=function(){var _=this;return this.sectionIndex.reduce(function(R,G){return Math.max(R,_.sections[G].scale)},0)},_s.prototype.addTextSection=function(_,R){this.text+=_.text,this.sections.push(Oa.forText(_.scale,_.fontStack||R));for(var G=this.sections.length-1,le=0;le<_.text.length;++le)this.sectionIndex.push(G)},_s.prototype.addImageSection=function(_){var R=_.image?_.image.name:"";if(R.length!==0){var G=this.getNextImageSectionCharCode();G?(this.text+=String.fromCharCode(G),this.sections.push(Oa.forImage(R)),this.sectionIndex.push(this.sections.length-1)):we("Reached maximum number of images 6401")}else we("Can't add FormattedSection with an empty image.")},_s.prototype.getNextImageSectionCharCode=function(){return this.imageSectionID?this.imageSectionID>=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var nl={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},mc={};function fl(_,R,G,le,ke,Qe){if(R.imageName){var Ct=le[R.imageName];return Ct?Ct.displaySize[0]*R.scale*24/Qe+ke:0}var jt=G[R.fontStack],Rn=jt&&jt[_];return Rn?Rn.metrics.advance*R.scale+ke:0}function oc(_,R,G,le){var ke=Math.pow(_-R,2);return le?_=0,hi=0,po=0;po<_.length();po++){var ko=_.getSection(po),Zs=_.getCharCode(po);if(nl[Zs]||(hi+=fl(Zs,ko,le,ke,R,Ct)),po<_.length()-1){var Js=!((jt=Zs)<11904||!(Qu["Bopomofo Extended"](jt)||Qu.Bopomofo(jt)||Qu["CJK Compatibility Forms"](jt)||Qu["CJK Compatibility Ideographs"](jt)||Qu["CJK Compatibility"](jt)||Qu["CJK Radicals Supplement"](jt)||Qu["CJK Strokes"](jt)||Qu["CJK Symbols and Punctuation"](jt)||Qu["CJK Unified Ideographs Extension A"](jt)||Qu["CJK Unified Ideographs"](jt)||Qu["Enclosed CJK Letters and Months"](jt)||Qu["Halfwidth and Fullwidth Forms"](jt)||Qu.Hiragana(jt)||Qu["Ideographic Description Characters"](jt)||Qu["Kangxi Radicals"](jt)||Qu["Katakana Phonetic Extensions"](jt)||Qu.Katakana(jt)||Qu["Vertical Forms"](jt)||Qu["Yi Radicals"](jt)||Qu["Yi Syllables"](jt)));(mc[Zs]||Js||ko.imageName)&&Rn.push(qu(po+1,hi,ur,Rn,va(Zs,_.getCharCode(po+1),Js&&zr),!1))}}return function sl(Da){return Da?sl(Da.priorBreak).concat(Da.index):[]}(qu(_.length(),hi,ur,Rn,0,!0))}function su(_){var R=.5,G=.5;switch(_){case"right":case"top-right":case"bottom-right":R=1;break;case"left":case"top-left":case"bottom-left":R=0}switch(_){case"bottom":case"bottom-right":case"bottom-left":G=1;break;case"top":case"top-right":case"top-left":G=0}return{horizontalAlign:R,verticalAlign:G}}function tu(_,R,G,le,ke){if(le||ke)for(var Qe=_[G],Ct=(_[G].x+Qe.metrics.advance*Qe.scale)*le,jt=R;jt<=G;jt++)_[jt].x-=Ct,_[jt].y+=ke}function Gs(_,R,G,le,ke,Qe){var Ct,jt=_.image;if(jt.content){var Rn=jt.content,ur=jt.pixelRatio||1;Ct=[Rn[0]/ur,Rn[1]/ur,jt.displaySize[0]-Rn[2]/ur,jt.displaySize[1]-Rn[3]/ur]}var zr,hi,po,ko,Zs=R.left*Qe,Js=R.right*Qe;G==="width"||G==="both"?(ko=ke[0]+Zs-le[3],hi=ke[0]+Js+le[1]):hi=(ko=ke[0]+(Zs+Js-jt.displaySize[0])/2)+jt.displaySize[0];var sl=R.top*Qe,Da=R.bottom*Qe;return G==="height"||G==="both"?(zr=ke[1]+sl-le[0],po=ke[1]+Da+le[2]):po=(zr=ke[1]+(sl+Da-jt.displaySize[1])/2)+jt.displaySize[1],{image:jt,top:zr,right:hi,bottom:po,left:ko,collisionPadding:Ct}}mc[10]=!0,mc[32]=!0,mc[38]=!0,mc[40]=!0,mc[41]=!0,mc[43]=!0,mc[45]=!0,mc[47]=!0,mc[173]=!0,mc[183]=!0,mc[8203]=!0,mc[8208]=!0,mc[8211]=!0,mc[8231]=!0;var Gc=function(_){function R(G,le,ke,Qe){_.call(this,G,le),this.angle=ke,Qe!==void 0&&(this.segment=Qe)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype.clone=function(){return new R(this.x,this.y,this.angle,this.segment)},R}(w);function Le(_,R){var G=R.expression;if(G.kind==="constant")return{kind:"constant",layoutSize:G.evaluate(new Md(_+1))};if(G.kind==="source")return{kind:"source"};for(var le=G.zoomStops,ke=G.interpolationType,Qe=0;Qe-G/2;){if(--Ct<0)return!1;jt-=_[Ct].dist(Qe),Qe=_[Ct]}jt+=_[Ct].dist(_[Ct+1]),Ct++;for(var Rn=[],ur=0;jtle;)ur-=Rn.shift().angleDelta;if(ur>ke)return!1;Ct++,jt+=zr.dist(hi)}return!0}function Cn(_){for(var R=0,G=0;G<_.length-1;G++)R+=_[G].dist(_[G+1]);return R}function ei(_,R,G){return _?.6*R*G:0}function Li(_,R){return Math.max(_?_.right-_.left:0,R?R.right-R.left:0)}function ps(_,R,G,le,ke,Qe){for(var Ct=ei(G,ke,Qe),jt=Li(G,le)*Qe,Rn=0,ur=Cn(_)/2,zr=0;zr<_.length-1;zr++){var hi=_[zr],po=_[zr+1],ko=hi.dist(po);if(Rn+ko>ur){var Zs=(ur-Rn)/ko,Js=pl(hi.x,po.x,Zs),sl=pl(hi.y,po.y,Zs),Da=new Gc(Js,sl,po.angleTo(hi),zr);return Da._round(),!Ct||Lr(_,Da,jt,Ct,R)?Da:void 0}Rn+=ko}}function xa(_,R,G,le,ke,Qe,Ct,jt,Rn){var ur=ei(le,Qe,Ct),zr=Li(le,ke),hi=zr*Ct,po=_[0].x===0||_[0].x===Rn||_[0].y===0||_[0].y===Rn;return R-hi=0&&Ga=0&&Aa=0&&Xu+kc<=ac){var Xl=new Gc(Ga,Aa,go,Yt);Xl._round(),Da&&!Lr(Zs,Xl,jl,Da,Ol)||Nd.push(Xl)}}_d+=jr}return lu||Nd.length||cu||(Nd=ko(Zs,_d/2,sl,Da,Ol,jl,cu,!0,Uu)),Nd}(_,po?R/2*jt%R:(zr/2+2*Qe)*Ct*jt%R,R,ur,G,hi,po,!1,Rn)}function Sa(_,R,G,le,ke){for(var Qe=[],Ct=0;Ct<_.length;Ct++)for(var jt=_[Ct],Rn=void 0,ur=0;ur=le&&hi.x>=le||(zr.x>=le?zr=new w(le,zr.y+(le-zr.x)/(hi.x-zr.x)*(hi.y-zr.y))._round():hi.x>=le&&(hi=new w(le,zr.y+(le-zr.x)/(hi.x-zr.x)*(hi.y-zr.y))._round()),zr.y>=ke&&hi.y>=ke||(zr.y>=ke?zr=new w(zr.x+(ke-zr.y)/(hi.y-zr.y)*(hi.x-zr.x),ke)._round():hi.y>=ke&&(hi=new w(zr.x+(ke-zr.y)/(hi.y-zr.y)*(hi.x-zr.x),ke)._round()),Rn&&zr.equals(Rn[Rn.length-1])||Qe.push(Rn=[zr]),Rn.push(hi)))))}return Qe}function _l(_,R,G,le){var ke=[],Qe=_.image,Ct=Qe.pixelRatio,jt=Qe.paddedRect.w-2,Rn=Qe.paddedRect.h-2,ur=_.right-_.left,zr=_.bottom-_.top,hi=Qe.stretchX||[[0,jt]],po=Qe.stretchY||[[0,Rn]],ko=function(Ga,Aa){return Ga+Aa[1]-Aa[0]},Zs=hi.reduce(ko,0),Js=po.reduce(ko,0),sl=jt-Zs,Da=Rn-Js,Ol=0,jl=Zs,cu=0,lu=Js,Uu=0,kc=sl,ac=0,_d=Da;if(Qe.content&&le){var Xu=Qe.content;Ol=Ql(hi,0,Xu[0]),cu=Ql(po,0,Xu[1]),jl=Ql(hi,Xu[0],Xu[2]),lu=Ql(po,Xu[1],Xu[3]),Uu=Xu[0]-Ol,ac=Xu[1]-cu,kc=Xu[2]-Xu[0]-jl,_d=Xu[3]-Xu[1]-lu}var Nd=function(Ga,Aa,Xl,wu){var Ts=ws(Ga.stretch-Ol,jl,ur,_.left),Kc=Ha(Ga.fixed-Uu,kc,Ga.stretch,Zs),fh=ws(Aa.stretch-cu,lu,zr,_.top),ph=Ha(Aa.fixed-ac,_d,Aa.stretch,Js),rh=ws(Xl.stretch-Ol,jl,ur,_.left),wh=Ha(Xl.fixed-Uu,kc,Xl.stretch,Zs),cg=ws(wu.stretch-cu,lu,zr,_.top),yg=Ha(wu.fixed-ac,_d,wu.stretch,Js),Nh=new w(Ts,fh),nf=new w(rh,fh),Ko=new w(rh,cg),Rl=new w(Ts,cg),Zf=new w(Kc/Ct,ph/Ct),$f=new w(wh/Ct,yg/Ct),Yf=R*Math.PI/180;if(Yf){var em=Math.sin(Yf),Mf=Math.cos(Yf),kd=[Mf,-em,em,Mf];Nh._matMult(kd),nf._matMult(kd),Rl._matMult(kd),Ko._matMult(kd)}var Ef=Ga.stretch+Ga.fixed,Rg=Aa.stretch+Aa.fixed;return{tl:Nh,tr:nf,bl:Rl,br:Ko,tex:{x:Qe.paddedRect.x+1+Ef,y:Qe.paddedRect.y+1+Rg,w:Xl.stretch+Xl.fixed-Ef,h:wu.stretch+wu.fixed-Rg},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:Zf,pixelOffsetBR:$f,minFontScaleX:kc/Ct/ur,minFontScaleY:_d/Ct/zr,isSDF:G}};if(le&&(Qe.stretchX||Qe.stretchY))for(var Yt=Ju(hi,sl,Zs),Mn=Ju(po,Da,Js),dr=0;dr0&&(ko=Math.max(10,ko),this.circleDiameter=ko)}else{var Zs=Qe.top*Ct-jt,Js=Qe.bottom*Ct+jt,sl=Qe.left*Ct-jt,Da=Qe.right*Ct+jt,Ol=Qe.collisionPadding;if(Ol&&(sl-=Ol[0]*Ct,Zs-=Ol[1]*Ct,Da+=Ol[2]*Ct,Js+=Ol[3]*Ct),ur){var jl=new w(sl,Zs),cu=new w(Da,Zs),lu=new w(sl,Js),Uu=new w(Da,Js),kc=ur*Math.PI/180;jl._rotate(kc),cu._rotate(kc),lu._rotate(kc),Uu._rotate(kc),sl=Math.min(jl.x,cu.x,lu.x,Uu.x),Da=Math.max(jl.x,cu.x,lu.x,Uu.x),Zs=Math.min(jl.y,cu.y,lu.y,Uu.y),Js=Math.max(jl.y,cu.y,lu.y,Uu.y)}_.emplaceBack(R.x,R.y,sl,Zs,Da,Js,G,le,ke)}this.boxEndIndex=_.length},Ka=function(_,R){if(_===void 0&&(_=[]),R===void 0&&(R=Ca),this.data=_,this.length=this.data.length,this.compare=R,this.length>0)for(var G=(this.length>>1)-1;G>=0;G--)this._down(G)};function Ca(_,R){return _R?1:0}function Du(_,R,G){R===void 0&&(R=1),G===void 0&&(G=!1);for(var le=1/0,ke=1/0,Qe=-1/0,Ct=-1/0,jt=_[0],Rn=0;RnQe)&&(Qe=ur.x),(!Rn||ur.y>Ct)&&(Ct=ur.y)}var zr=Math.min(Qe-le,Ct-ke),hi=zr/2,po=new Ka([],Wc);if(zr===0)return new w(le,ke);for(var ko=le;koJs.d||!Js.d)&&(Js=Da,G&&console.log("found best %d after %d probes",Math.round(1e4*Da.d)/1e4,sl)),Da.max-Js.d<=R||(po.push(new Qo(Da.p.x-(hi=Da.h/2),Da.p.y-hi,hi,_)),po.push(new Qo(Da.p.x+hi,Da.p.y-hi,hi,_)),po.push(new Qo(Da.p.x-hi,Da.p.y+hi,hi,_)),po.push(new Qo(Da.p.x+hi,Da.p.y+hi,hi,_)),sl+=4)}return G&&(console.log("num probes: "+sl),console.log("best distance: "+Js.d)),Js.p}function Wc(_,R){return R.max-_.max}function Qo(_,R,G,le){this.p=new w(_,R),this.h=G,this.d=function(ke,Qe){for(var Ct=!1,jt=1/0,Rn=0;Rnke.y!=Zs.y>ke.y&&ke.x<(Zs.x-ko.x)*(ke.y-ko.y)/(Zs.y-ko.y)+ko.x&&(Ct=!Ct),jt=Math.min(jt,mm(ke,ko,Zs))}return(Ct?1:-1)*Math.sqrt(jt)}(this.p,le),this.max=this.d+this.h*Math.SQRT2}Ka.prototype.push=function(_){this.data.push(_),this.length++,this._up(this.length-1)},Ka.prototype.pop=function(){if(this.length!==0){var _=this.data[0],R=this.data.pop();return this.length--,this.length>0&&(this.data[0]=R,this._down(0)),_}},Ka.prototype.peek=function(){return this.data[0]},Ka.prototype._up=function(_){for(var R=this.data,G=this.compare,le=R[_];_>0;){var ke=_-1>>1,Qe=R[ke];if(G(le,Qe)>=0)break;R[_]=Qe,_=ke}R[_]=le},Ka.prototype._down=function(_){for(var R=this.data,G=this.compare,le=this.length>>1,ke=R[_];_=0)break;R[_]=Ct,_=Qe}R[_]=ke};var Do=Number.POSITIVE_INFINITY;function As(_,R){return R[1]!==Do?function(G,le,ke){var Qe=0,Ct=0;switch(le=Math.abs(le),ke=Math.abs(ke),G){case"top-right":case"top-left":case"top":Ct=ke-7;break;case"bottom-right":case"bottom-left":case"bottom":Ct=7-ke}switch(G){case"top-right":case"bottom-right":case"right":Qe=-le;break;case"top-left":case"bottom-left":case"left":Qe=le}return[Qe,Ct]}(_,R[0],R[1]):function(G,le){var ke=0,Qe=0;le<0&&(le=0);var Ct=le/Math.sqrt(2);switch(G){case"top-right":case"top-left":Qe=Ct-7;break;case"bottom-right":case"bottom-left":Qe=7-Ct;break;case"bottom":Qe=7-le;break;case"top":Qe=le-7}switch(G){case"top-right":case"bottom-right":ke=-Ct;break;case"top-left":case"bottom-left":ke=Ct;break;case"left":ke=le;break;case"right":ke=-le}return[ke,Qe]}(_,R[0])}function wa(_){switch(_){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function ka(_,R,G,le,ke,Qe,Ct,jt,Rn,ur,zr,hi,po,ko,Zs){var Js=function(cu,lu,Uu,kc,ac,_d,Xu,Nd){for(var Yt=kc.layout.get("text-rotate").evaluate(_d,{})*Math.PI/180,Mn=[],dr=0,jr=lu.positionedLines;dr32640&&we(_.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'):sl.kind==="composite"&&((Da=[128*ko.compositeTextSizes[0].evaluate(Ct,{},Zs),128*ko.compositeTextSizes[1].evaluate(Ct,{},Zs)])[0]>32640||Da[1]>32640)&&we(_.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'),_.addSymbols(_.text,Js,Da,jt,Qe,Ct,ur,R,Rn.lineStartIndex,Rn.lineLength,po,Zs);for(var Ol=0,jl=zr;Ol=0;Ct--)if(le.dist(Qe[Ct])0)&&(Qe.value.kind!=="constant"||Qe.value.value.length>0),ur=jt.value.kind!=="constant"||!!jt.value.value||Object.keys(jt.parameters).length>0,zr=ke.get("symbol-sort-key");if(this.features=[],Rn||ur){for(var hi=R.iconDependencies,po=R.glyphDependencies,ko=R.availableImages,Zs=new Md(this.zoom),Js=0,sl=_;Js=0;for(var go=0,ia=ac.sections;go=0;jt--)Qe[jt]={x:R[jt].x,y:R[jt].y,tileUnitDistanceFromAnchor:ke},jt>0&&(ke+=R[jt-1].dist(R[jt]));for(var Rn=0;Rn0},Ys.prototype.hasIconData=function(){return this.icon.segments.get().length>0},Ys.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},Ys.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},Ys.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},Ys.prototype.addIndicesForPlacedSymbol=function(_,R){for(var G=_.placedSymbolArray.get(R),le=G.vertexStartIndex+4*G.numGlyphs,ke=G.vertexStartIndex;ke1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(_),this.sortedAngle=_,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var G=0,le=this.symbolInstanceIndexes;G=0&&jt.indexOf(Qe)===Ct&&R.addIndicesForPlacedSymbol(R.text,Qe)}),ke.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,ke.verticalPlacedTextSymbolIndex),ke.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,ke.placedIconSymbolIndex),ke.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,ke.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},Qc("SymbolBucket",Ys,{omit:["layers","collisionBoxArray","features","compareText"]}),Ys.MAX_GLYPHS=65535,Ys.addDynamicAttributes=gi;var ml=new Ap({"symbol-placement":new Od(rn.layout_symbol["symbol-placement"]),"symbol-spacing":new Od(rn.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Od(rn.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new td(rn.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Od(rn.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Od(rn.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Od(rn.layout_symbol["icon-ignore-placement"]),"icon-optional":new Od(rn.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Od(rn.layout_symbol["icon-rotation-alignment"]),"icon-size":new td(rn.layout_symbol["icon-size"]),"icon-text-fit":new Od(rn.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Od(rn.layout_symbol["icon-text-fit-padding"]),"icon-image":new td(rn.layout_symbol["icon-image"]),"icon-rotate":new td(rn.layout_symbol["icon-rotate"]),"icon-padding":new Od(rn.layout_symbol["icon-padding"]),"icon-keep-upright":new Od(rn.layout_symbol["icon-keep-upright"]),"icon-offset":new td(rn.layout_symbol["icon-offset"]),"icon-anchor":new td(rn.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Od(rn.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Od(rn.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Od(rn.layout_symbol["text-rotation-alignment"]),"text-field":new td(rn.layout_symbol["text-field"]),"text-font":new td(rn.layout_symbol["text-font"]),"text-size":new td(rn.layout_symbol["text-size"]),"text-max-width":new td(rn.layout_symbol["text-max-width"]),"text-line-height":new Od(rn.layout_symbol["text-line-height"]),"text-letter-spacing":new td(rn.layout_symbol["text-letter-spacing"]),"text-justify":new td(rn.layout_symbol["text-justify"]),"text-radial-offset":new td(rn.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Od(rn.layout_symbol["text-variable-anchor"]),"text-anchor":new td(rn.layout_symbol["text-anchor"]),"text-max-angle":new Od(rn.layout_symbol["text-max-angle"]),"text-writing-mode":new Od(rn.layout_symbol["text-writing-mode"]),"text-rotate":new td(rn.layout_symbol["text-rotate"]),"text-padding":new Od(rn.layout_symbol["text-padding"]),"text-keep-upright":new Od(rn.layout_symbol["text-keep-upright"]),"text-transform":new td(rn.layout_symbol["text-transform"]),"text-offset":new td(rn.layout_symbol["text-offset"]),"text-allow-overlap":new Od(rn.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Od(rn.layout_symbol["text-ignore-placement"]),"text-optional":new Od(rn.layout_symbol["text-optional"])}),mu={paint:new Ap({"icon-opacity":new td(rn.paint_symbol["icon-opacity"]),"icon-color":new td(rn.paint_symbol["icon-color"]),"icon-halo-color":new td(rn.paint_symbol["icon-halo-color"]),"icon-halo-width":new td(rn.paint_symbol["icon-halo-width"]),"icon-halo-blur":new td(rn.paint_symbol["icon-halo-blur"]),"icon-translate":new Od(rn.paint_symbol["icon-translate"]),"icon-translate-anchor":new Od(rn.paint_symbol["icon-translate-anchor"]),"text-opacity":new td(rn.paint_symbol["text-opacity"]),"text-color":new td(rn.paint_symbol["text-color"],{runtimeType:Kr,getOverride:function(_){return _.textColor},hasOverride:function(_){return!!_.textColor}}),"text-halo-color":new td(rn.paint_symbol["text-halo-color"]),"text-halo-width":new td(rn.paint_symbol["text-halo-width"]),"text-halo-blur":new td(rn.paint_symbol["text-halo-blur"]),"text-translate":new Od(rn.paint_symbol["text-translate"]),"text-translate-anchor":new Od(rn.paint_symbol["text-translate-anchor"])}),layout:ml},hc=function(_){this.type=_.property.overrides?_.property.overrides.runtimeType:Gr,this.defaultValue=_};hc.prototype.evaluate=function(_){if(_.formattedSection){var R=this.defaultValue.property.overrides;if(R&&R.hasOverride(_.formattedSection))return R.getOverride(_.formattedSection)}return _.feature&&_.featureState?this.defaultValue.evaluate(_.feature,_.featureState):this.defaultValue.property.specification.default},hc.prototype.eachChild=function(_){this.defaultValue.isConstant()||_(this.defaultValue.value._styleExpression.expression)},hc.prototype.outputDefined=function(){return!1},hc.prototype.serialize=function(){return null},Qc("FormatSectionOverride",hc,{omit:["defaultValue"]});var cd=function(_){function R(G){_.call(this,G,mu)}return _&&(R.__proto__=_),(R.prototype=Object.create(_&&_.prototype)).constructor=R,R.prototype.recalculate=function(G,le){if(_.prototype.recalculate.call(this,G,le),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout._values["icon-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout._values["text-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var ke=this.layout.get("text-writing-mode");if(ke){for(var Qe=[],Ct=0,jt=ke;Ct",targetMapId:le,sourceMapId:Qe.mapId})}}},ze.prototype.receive=function(_){var R=_.data,G=R.id;if(G&&(!R.targetMapId||this.mapId===R.targetMapId))if(R.type===""){delete this.tasks[G];var le=this.cancelCallbacks[G];delete this.cancelCallbacks[G],le&&le()}else me()||R.mustQueue?(this.tasks[G]=R,this.taskQueue.push(G),this.invoker.trigger()):this.processTask(G,R)},ze.prototype.process=function(){if(this.taskQueue.length){var _=this.taskQueue.shift(),R=this.tasks[_];delete this.tasks[_],this.taskQueue.length&&this.invoker.trigger(),R&&this.processTask(_,R)}},ze.prototype.processTask=function(_,R){var G=this;if(R.type===""){var le=this.callbacks[_];delete this.callbacks[_],le&&(R.error?le(bc(R.error)):le(null,bc(R.data)))}else{var ke=!1,Qe=Pt(this.globalScope)?void 0:[],Ct=R.hasCallback?function(zr,hi){ke=!0,delete G.cancelCallbacks[_],G.target.postMessage({id:_,type:"",sourceMapId:G.mapId,error:zr?Qi(zr):null,data:Qi(hi,Qe)},Qe)}:function(zr){ke=!0},jt=null,Rn=bc(R.data);if(this.parent[R.type])jt=this.parent[R.type](R.sourceMapId,Rn,Ct);else if(this.parent.getWorkerSource){var ur=R.type.split(".");jt=this.parent.getWorkerSource(R.sourceMapId,ur[0],Rn.source)[ur[1]](Rn,Ct)}else Ct(new Error("Could not find function "+R.type));!ke&&jt&&jt.cancel&&(this.cancelCallbacks[_]=jt.cancel)}},ze.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};var Oe=function(_,R){_&&(R?this.setSouthWest(_).setNorthEast(R):_.length===4?this.setSouthWest([_[0],_[1]]).setNorthEast([_[2],_[3]]):this.setSouthWest(_[0]).setNorthEast(_[1]))};Oe.prototype.setNorthEast=function(_){return this._ne=_ instanceof ot?new ot(_.lng,_.lat):ot.convert(_),this},Oe.prototype.setSouthWest=function(_){return this._sw=_ instanceof ot?new ot(_.lng,_.lat):ot.convert(_),this},Oe.prototype.extend=function(_){var R,G,le=this._sw,ke=this._ne;if(_ instanceof ot)R=_,G=_;else{if(!(_ instanceof Oe))return Array.isArray(_)?_.length===4||_.every(Array.isArray)?this.extend(Oe.convert(_)):this.extend(ot.convert(_)):this;if(G=_._ne,!(R=_._sw)||!G)return this}return le||ke?(le.lng=Math.min(R.lng,le.lng),le.lat=Math.min(R.lat,le.lat),ke.lng=Math.max(G.lng,ke.lng),ke.lat=Math.max(G.lat,ke.lat)):(this._sw=new ot(R.lng,R.lat),this._ne=new ot(G.lng,G.lat)),this},Oe.prototype.getCenter=function(){return new ot((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Oe.prototype.getSouthWest=function(){return this._sw},Oe.prototype.getNorthEast=function(){return this._ne},Oe.prototype.getNorthWest=function(){return new ot(this.getWest(),this.getNorth())},Oe.prototype.getSouthEast=function(){return new ot(this.getEast(),this.getSouth())},Oe.prototype.getWest=function(){return this._sw.lng},Oe.prototype.getSouth=function(){return this._sw.lat},Oe.prototype.getEast=function(){return this._ne.lng},Oe.prototype.getNorth=function(){return this._ne.lat},Oe.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Oe.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},Oe.prototype.isEmpty=function(){return!(this._sw&&this._ne)},Oe.prototype.contains=function(_){var R=ot.convert(_),G=R.lng,le=R.lat,ke=this._sw.lng<=G&&G<=this._ne.lng;return this._sw.lng>this._ne.lng&&(ke=this._sw.lng>=G&&G>=this._ne.lng),this._sw.lat<=le&&le<=this._ne.lat&&ke},Oe.convert=function(_){return!_||_ instanceof Oe?_:new Oe(_)};var ot=function(_,R){if(isNaN(_)||isNaN(R))throw new Error("Invalid LngLat object: ("+_+", "+R+")");if(this.lng=+_,this.lat=+R,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};ot.prototype.wrap=function(){return new ot(ne(this.lng,-180,180),this.lat)},ot.prototype.toArray=function(){return[this.lng,this.lat]},ot.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},ot.prototype.distanceTo=function(_){var R=Math.PI/180,G=this.lat*R,le=_.lat*R,ke=Math.sin(G)*Math.sin(le)+Math.cos(G)*Math.cos(le)*Math.cos((_.lng-this.lng)*R);return 63710088e-1*Math.acos(Math.min(ke,1))},ot.prototype.toBounds=function(_){_===void 0&&(_=0);var R=360*_/40075017,G=R/Math.cos(Math.PI/180*this.lat);return new Oe(new ot(this.lng-G,this.lat-R),new ot(this.lng+G,this.lat+R))},ot.convert=function(_){if(_ instanceof ot)return _;if(Array.isArray(_)&&(_.length===2||_.length===3))return new ot(Number(_[0]),Number(_[1]));if(!Array.isArray(_)&&typeof _=="object"&&_!==null)return new ot(Number("lng"in _?_.lng:_.lon),Number(_.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var Lt=2*Math.PI*63710088e-1;function nn(_){return Lt*Math.cos(_*Math.PI/180)}function Fn(_){return(180+_)/360}function Kn(_){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+_*Math.PI/360)))/360}function Mi(_,R){return _/nn(R)}function Yo(_){return 360/Math.PI*Math.atan(Math.exp((180-360*_)*Math.PI/180))-90}var Lo=function(_,R,G){G===void 0&&(G=0),this.x=+_,this.y=+R,this.z=+G};Lo.fromLngLat=function(_,R){R===void 0&&(R=0);var G=ot.convert(_);return new Lo(Fn(G.lng),Kn(G.lat),Mi(R,G.lat))},Lo.prototype.toLngLat=function(){return new ot(360*this.x-180,Yo(this.y))},Lo.prototype.toAltitude=function(){return this.z*nn(Yo(this.y))},Lo.prototype.meterInMercatorCoordinateUnits=function(){return 1/Lt*(_=Yo(this.y),1/Math.cos(_*Math.PI/180));var _};var Bo=function(_,R,G){this.z=_,this.x=R,this.y=G,this.key=Gl(0,_,_,R,G)};Bo.prototype.equals=function(_){return this.z===_.z&&this.x===_.x&&this.y===_.y},Bo.prototype.url=function(_,R){var G,le,ke,Qe,Ct,jt=(le=this.y,ke=this.z,Qe=Je(256*(G=this.x),256*(le=Math.pow(2,ke)-le-1),ke),Ct=Je(256*(G+1),256*(le+1),ke),Qe[0]+","+Qe[1]+","+Ct[0]+","+Ct[1]),Rn=function(ur,zr,hi){for(var po,ko="",Zs=ur;Zs>0;Zs--)ko+=(zr&(po=1<this.canonical.z?new gu(_,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new gu(_,this.wrap,_,this.canonical.x>>R,this.canonical.y>>R)},gu.prototype.calculateScaledKey=function(_,R){var G=this.canonical.z-_;return _>this.canonical.z?Gl(this.wrap*+R,_,this.canonical.z,this.canonical.x,this.canonical.y):Gl(this.wrap*+R,_,_,this.canonical.x>>G,this.canonical.y>>G)},gu.prototype.isChildOf=function(_){if(_.wrap!==this.wrap)return!1;var R=this.canonical.z-_.canonical.z;return _.overscaledZ===0||_.overscaledZ>R&&_.canonical.y===this.canonical.y>>R},gu.prototype.children=function(_){if(this.overscaledZ>=_)return[new gu(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var R=this.canonical.z+1,G=2*this.canonical.x,le=2*this.canonical.y;return[new gu(R,this.wrap,R,G,le),new gu(R,this.wrap,R,G+1,le),new gu(R,this.wrap,R,G,le+1),new gu(R,this.wrap,R,G+1,le+1)]},gu.prototype.isLessThan=function(_){return this.wrap<_.wrap||!(this.wrap>_.wrap)&&(this.overscaledZ<_.overscaledZ||!(this.overscaledZ>_.overscaledZ)&&(this.canonical.x<_.canonical.x||!(this.canonical.x>_.canonical.x)&&this.canonical.y<_.canonical.y))},gu.prototype.wrapped=function(){return new gu(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)},gu.prototype.unwrapTo=function(_){return new gu(this.overscaledZ,_,this.canonical.z,this.canonical.x,this.canonical.y)},gu.prototype.overscaleFactor=function(){return Math.pow(2,this.overscaledZ-this.canonical.z)},gu.prototype.toUnwrapped=function(){return new zu(this.wrap,this.canonical)},gu.prototype.toString=function(){return this.overscaledZ+"/"+this.canonical.x+"/"+this.canonical.y},gu.prototype.getTilePoint=function(_){return this.canonical.getTilePoint(new Lo(_.x-this.wrap,_.y))},Qc("CanonicalTileID",Bo),Qc("OverscaledTileID",gu,{omit:["posMatrix"]});var Sl=function(_,R,G){if(this.uid=_,R.height!==R.width)throw new RangeError("DEM tiles must be square");if(G&&G!=="mapbox"&&G!=="terrarium")return we('"'+G+'" is not a valid encoding type. Valid types include "mapbox" and "terrarium".');this.stride=R.height;var le=this.dim=R.height-2;this.data=new Uint32Array(R.data.buffer),this.encoding=G||"mapbox";for(var ke=0;ke=this.dim+1||R<-1||R>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(R+1)*this.stride+(_+1)},Sl.prototype._unpackMapbox=function(_,R,G){return(256*_*256+256*R+G)/10-1e4},Sl.prototype._unpackTerrarium=function(_,R,G){return 256*_+R+G/256-32768},Sl.prototype.getPixels=function(){return new ug({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Sl.prototype.backfillBorder=function(_,R,G){if(this.dim!==_.dim)throw new Error("dem dimension mismatch");var le=R*this.dim,ke=R*this.dim+this.dim,Qe=G*this.dim,Ct=G*this.dim+this.dim;switch(R){case-1:le=ke-1;break;case 1:ke=le+1}switch(G){case-1:Qe=Ct-1;break;case 1:Ct=Qe+1}for(var jt=-R*this.dim,Rn=-G*this.dim,ur=Qe;ur=0&&zr[3]>=0&&jt.insert(Ct,zr[0],zr[1],zr[2],zr[3])}},ic.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new Eo.VectorTile(new er(this.rawTileData)).layers,this.sourceLayerCoder=new Kl(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},ic.prototype.query=function(_,R,G,le){var ke=this;this.loadVTLayers();for(var Qe=_.params||{},Ct=8192/_.tileSize/_.scale,jt=uf(Qe.filter),Rn=_.queryGeometry,ur=_.queryPadding*Ct,zr=Ao(Rn),hi=this.grid.query(zr.minX-ur,zr.minY-ur,zr.maxX+ur,zr.maxY+ur),po=Ao(_.cameraQueryGeometry),ko=this.grid3D.query(po.minX-ur,po.minY-ur,po.maxX+ur,po.maxY+ur,function(cu,lu,Uu,kc){return function(ac,_d,Xu,Nd,Yt){for(var Mn=0,dr=ac;Mn=jr.x&&Yt>=jr.y)return!0}var go=[new w(_d,Xu),new w(_d,Yt),new w(Nd,Yt),new w(Nd,Xu)];if(ac.length>2){for(var ia=0,Ga=go;ia=0)return!0;return!1}(Qe,hi)){var po=this.sourceLayerCoder.decode(G),ko=this.vtLayers[po].feature(le);if(ke.needGeometry){var Zs=ld(ko,!0);if(!ke.filter(new Md(this.tileID.overscaledZ),Zs,this.tileID.canonical))return}else if(!ke.filter(new Md(this.tileID.overscaledZ),ko))return;for(var Js=this.getId(ko,po),sl=0;slle)ke=!1;else if(R)if(this.expirationTimeWn&&(_.getActor().send("enforceCacheSizeLimit",Ht),Ri=0)},b.clamp=W,b.clearTileCache=function(_){var R=C.caches.delete("mapbox-tiles");_&&R.catch(_).then(function(){return _()})},b.clipLine=Sa,b.clone=function(_){var R=new df(16);return R[0]=_[0],R[1]=_[1],R[2]=_[2],R[3]=_[3],R[4]=_[4],R[5]=_[5],R[6]=_[6],R[7]=_[7],R[8]=_[8],R[9]=_[9],R[10]=_[10],R[11]=_[11],R[12]=_[12],R[13]=_[13],R[14]=_[14],R[15]=_[15],R},b.clone$1=ve,b.clone$2=function(_){var R=new df(3);return R[0]=_[0],R[1]=_[1],R[2]=_[2],R},b.collisionCircleLayout=cn,b.config=Yr,b.create=function(){var _=new df(16);return df!=Float32Array&&(_[1]=0,_[2]=0,_[3]=0,_[4]=0,_[6]=0,_[7]=0,_[8]=0,_[9]=0,_[11]=0,_[12]=0,_[13]=0,_[14]=0),_[0]=1,_[5]=1,_[10]=1,_[15]=1,_},b.create$1=function(){var _=new df(9);return df!=Float32Array&&(_[1]=0,_[2]=0,_[3]=0,_[5]=0,_[6]=0,_[7]=0),_[0]=1,_[4]=1,_[8]=1,_},b.create$2=function(){var _=new df(4);return df!=Float32Array&&(_[1]=0,_[2]=0),_[0]=1,_[3]=1,_},b.createCommonjsModule=z,b.createExpression=dd,b.createLayout=yh,b.createStyleLayer=function(_){return _.type==="custom"?new Qp(_):new Xg[_.type](_)},b.cross=function(_,R,G){var le=R[0],ke=R[1],Qe=R[2],Ct=G[0],jt=G[1],Rn=G[2];return _[0]=ke*Rn-Qe*jt,_[1]=Qe*Ct-le*Rn,_[2]=le*jt-ke*Ct,_},b.deepEqual=function _(R,G){if(Array.isArray(R)){if(!Array.isArray(G)||R.length!==G.length)return!1;for(var le=0;le0&&(Qe=1/Math.sqrt(Qe)),_[0]=R[0]*Qe,_[1]=R[1]*Qe,_[2]=R[2]*Qe,_},b.number=pl,b.offscreenCanvasSupported=Pi,b.ortho=function(_,R,G,le,ke,Qe,Ct){var jt=1/(R-G),Rn=1/(le-ke),ur=1/(Qe-Ct);return _[0]=-2*jt,_[1]=0,_[2]=0,_[3]=0,_[4]=0,_[5]=-2*Rn,_[6]=0,_[7]=0,_[8]=0,_[9]=0,_[10]=2*ur,_[11]=0,_[12]=(R+G)*jt,_[13]=(ke+le)*Rn,_[14]=(Ct+Qe)*ur,_[15]=1,_},b.parseGlyphPBF=function(_){return new er(_).readFields(Ds,[])},b.pbf=er,b.performSymbolLayout=function(_,R,G,le,ke,Qe,Ct){_.createArrays(),_.tilePixelRatio=8192/(512*_.overscaling),_.compareText={},_.iconsNeedLinear=!1;var jt=_.layers[0].layout,Rn=_.layers[0]._unevaluatedLayout._values,ur={};if(_.textSizeData.kind==="composite"){var zr=_.textSizeData,hi=zr.maxZoom;ur.compositeTextSizes=[Rn["text-size"].possiblyEvaluate(new Md(zr.minZoom),Ct),Rn["text-size"].possiblyEvaluate(new Md(hi),Ct)]}if(_.iconSizeData.kind==="composite"){var po=_.iconSizeData,ko=po.maxZoom;ur.compositeIconSizes=[Rn["icon-size"].possiblyEvaluate(new Md(po.minZoom),Ct),Rn["icon-size"].possiblyEvaluate(new Md(ko),Ct)]}ur.layoutTextSize=Rn["text-size"].possiblyEvaluate(new Md(_.zoom+1),Ct),ur.layoutIconSize=Rn["icon-size"].possiblyEvaluate(new Md(_.zoom+1),Ct),ur.textMaxSize=Rn["text-size"].possiblyEvaluate(new Md(18));for(var Zs=24*jt.get("text-line-height"),Js=jt.get("text-rotation-alignment")==="map"&&jt.get("symbol-placement")!=="point",sl=jt.get("text-keep-upright"),Da=jt.get("text-size"),Ol=function(){var lu=cu[jl],Uu=jt.get("text-font").evaluate(lu,{},Ct).join(","),kc=Da.evaluate(lu,{},Ct),ac=ur.layoutTextSize.evaluate(lu,{},Ct),_d=ur.layoutIconSize.evaluate(lu,{},Ct),Xu={horizontal:{},vertical:void 0},Nd=lu.text,Yt=[0,0];if(Nd){var Mn=Nd.toString(),dr=24*jt.get("text-letter-spacing").evaluate(lu,{},Ct),jr=function(Rl){for(var Zf=0,$f=Rl;Zf<$f.length;Zf+=1)if(Yf=$f[Zf].charCodeAt(0),Qu.Arabic(Yf)||Qu["Arabic Supplement"](Yf)||Qu["Arabic Extended-A"](Yf)||Qu["Arabic Presentation Forms-A"](Yf)||Qu["Arabic Presentation Forms-B"](Yf))return!1;var Yf;return!0}(Mn)?dr:0,go=jt.get("text-anchor").evaluate(lu,{},Ct),ia=jt.get("text-variable-anchor");if(!ia){var Ga=jt.get("text-radial-offset").evaluate(lu,{},Ct);Yt=Ga?As(go,[24*Ga,Do]):jt.get("text-offset").evaluate(lu,{},Ct).map(function(Rl){return 24*Rl})}var Aa=Js?"center":jt.get("text-justify").evaluate(lu,{},Ct),Xl=jt.get("symbol-placement"),wu=Xl==="point"?24*jt.get("text-max-width").evaluate(lu,{},Ct):0,Ts=function(){_.allowVerticalPlacement&&Bc(Mn)&&(Xu.vertical=wl(Nd,R,G,ke,Uu,wu,Zs,go,"left",jr,Yt,Dl.vertical,!0,Xl,ac,kc))};if(!Js&&ia){for(var Kc=Aa==="auto"?ia.map(function(Rl){return wa(Rl)}):[Aa],fh=!1,ph=0;ph=8192||Yc.y<0||Yc.y>=8192||function(vc,bh,Qd,rf,Tp,Ph,up,hp,t0,Dg,Xm,V0,Ev,yv,Ng,hm,oC,ly,fg,Tv,v0,Fm,Gf,Dv,b_){var x_,l0,_1,fm,z0,Ty=vc.addToLineVertexArray(bh,Qd),Gi=0,C_=0,Xy=0,b1=0,uy=-1,U1=-1,y0={},J_=js(""),x1=0,r1=0;if(hp._unevaluatedLayout.getValue("text-radial-offset")===void 0?(x1=(x_=hp.layout.get("text-offset").evaluate(v0,{},Dv).map(function(Ug){return 24*Ug}))[0],r1=x_[1]):(x1=24*hp.layout.get("text-radial-offset").evaluate(v0,{},Dv),r1=Do),vc.allowVerticalPlacement&&rf.vertical){var Dy=hp.layout.get("text-rotate").evaluate(v0,{},Dv)+90;fm=new gr(t0,bh,Dg,Xm,V0,rf.vertical,Ev,yv,Ng,Dy),up&&(z0=new gr(t0,bh,Dg,Xm,V0,up,oC,ly,Ng,Dy))}if(Tp){var Ay=hp.layout.get("icon-rotate").evaluate(v0,{}),H1=hp.layout.get("icon-text-fit")!=="none",Iy=_l(Tp,Ay,Gf,H1),jv=up?_l(up,Ay,Gf,H1):void 0;_1=new gr(t0,bh,Dg,Xm,V0,Tp,oC,ly,!1,Ay),Gi=4*Iy.length;var i1=vc.iconSizeData,cv=null;i1.kind==="source"?(cv=[128*hp.layout.get("icon-size").evaluate(v0,{})])[0]>32640&&we(vc.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'):i1.kind==="composite"&&((cv=[128*Fm.compositeIconSizes[0].evaluate(v0,{},Dv),128*Fm.compositeIconSizes[1].evaluate(v0,{},Dv)])[0]>32640||cv[1]>32640)&&we(vc.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'),vc.addSymbols(vc.icon,Iy,cv,Tv,fg,v0,!1,bh,Ty.lineStartIndex,Ty.lineLength,-1,Dv),uy=vc.icon.placedSymbolArray.length-1,jv&&(C_=4*jv.length,vc.addSymbols(vc.icon,jv,cv,Tv,fg,v0,Dl.vertical,bh,Ty.lineStartIndex,Ty.lineLength,-1,Dv),U1=vc.icon.placedSymbolArray.length-1)}for(var Yy in rf.horizontal){var o1=rf.horizontal[Yy];if(!l0){J_=js(o1.text);var dv=hp.layout.get("text-rotate").evaluate(v0,{},Dv);l0=new gr(t0,bh,Dg,Xm,V0,o1,Ev,yv,Ng,dv)}var iv=o1.positionedLines.length===1;if(Xy+=ka(vc,bh,o1,Ph,hp,Ng,v0,hm,Ty,rf.vertical?Dl.horizontal:Dl.horizontalOnly,iv?Object.keys(rf.horizontal):[Yy],y0,uy,Fm,Dv),iv)break}rf.vertical&&(b1+=ka(vc,bh,rf.vertical,Ph,hp,Ng,v0,hm,Ty,Dl.vertical,["vertical"],y0,U1,Fm,Dv));var _v=l0?l0.boxStartIndex:vc.collisionBoxArray.length,Vv=l0?l0.boxEndIndex:vc.collisionBoxArray.length,Uv=fm?fm.boxStartIndex:vc.collisionBoxArray.length,R1=fm?fm.boxEndIndex:vc.collisionBoxArray.length,qy=_1?_1.boxStartIndex:vc.collisionBoxArray.length,ov=_1?_1.boxEndIndex:vc.collisionBoxArray.length,w_=z0?z0.boxStartIndex:vc.collisionBoxArray.length,S_=z0?z0.boxEndIndex:vc.collisionBoxArray.length,s1=-1,Ly=function(Ug,Q_){return Ug&&Ug.circleDiameter?Math.max(Ug.circleDiameter,Q_):Q_};s1=Ly(l0,s1),s1=Ly(fm,s1),s1=Ly(_1,s1);var Lb=(s1=Ly(z0,s1))>-1?1:0;Lb&&(s1*=b_/24),vc.glyphOffsetArray.length>=Ys.MAX_GLYPHS&&we("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),v0.sortKey!==void 0&&vc.addToSortKeyRanges(vc.symbolInstances.length,v0.sortKey),vc.symbolInstances.emplaceBack(bh.x,bh.y,y0.right>=0?y0.right:-1,y0.center>=0?y0.center:-1,y0.left>=0?y0.left:-1,y0.vertical||-1,uy,U1,J_,_v,Vv,Uv,R1,qy,ov,w_,S_,Dg,Xy,b1,Gi,C_,Lb,0,Ev,x1,r1,s1)}(Rl,Yc,hu,$f,Yf,em,dm,Rl.layers[0],Rl.collisionBoxArray,Zf.index,Zf.sourceLayerIndex,Rl.index,Ru,qf,rp,Rg,ih,kp,Sm,mf,Zf,Mf,Fd,$h,kd)};if(Yg==="line")for(var hg=0,Xp=Sa(Zf.geometry,0,0,8192,8192);hg1){var V1=ps(X0,Kp,$f.vertical||Gp,Yf,24,ah);V1&&ig(X0,V1)}}else if(Zf.type==="Polygon")for(var wv=0,mv=Vt(Zf.geometry,0);wv=yi.maxzoom||yi.visibility!=="none"&&(C(Gn,this.zoom,Mr),(zt[yi.id]=yi.createBucket({index:rn.bucketLayerIDs.length,layers:Gn,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:xi,sourceID:this.source})).populate(lo,pn,this.tileID.canonical),rn.bucketLayerIDs.push(Gn.map(function(Ni){return Ni.id})))}}}var Ln=b.mapObject(pn.glyphDependencies,function(Ni){return Object.keys(Ni).map(Number)});Object.keys(Ln).length?li.send("getGlyphs",{uid:this.uid,stacks:Ln},function(Ni,kr){Qn||(Qn=Ni,Vr=kr,vi.call(qr))}):Vr={};var Si=Object.keys(pn.iconDependencies);Si.length?li.send("getImages",{icons:Si,source:this.source,tileID:this.tileID,type:"icons"},function(Ni,kr){Qn||(Qn=Ni,so=kr,vi.call(qr))}):so={};var tr=Object.keys(pn.patternDependencies);function vi(){if(Qn)return wr(Qn);if(Vr&&so&&rs){var Ni=new w(Vr),kr=new b.ImageAtlas(so,rs);for(var qn in zt){var ds=zt[qn];ds instanceof b.SymbolBucket?(C(ds.layers,this.zoom,Mr),b.performSymbolLayout(ds,Vr,Ni.positions,so,kr.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):ds.hasPattern&&(ds instanceof b.LineBucket||ds instanceof b.FillBucket||ds instanceof b.FillExtrusionBucket)&&(C(ds.layers,this.zoom,Mr),ds.addFeatures(pn,this.tileID.canonical,kr.patternPositions))}this.status="done",wr(null,{buckets:b.values(zt).filter(function(_a){return!_a.isEmpty()}),featureIndex:rn,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:Ni.image,imageAtlas:kr,glyphMap:this.returnDependencies?Vr:null,iconMap:this.returnDependencies?so:null,glyphPositions:this.returnDependencies?Ni.positions:null})}}tr.length?li.send("getImages",{icons:tr,source:this.source,tileID:this.tileID,type:"patterns"},function(Ni,kr){Qn||(Qn=Ni,rs=kr,vi.call(qr))}):rs={},vi.call(this)};var S=function(Un,Xn,Mr,li){this.actor=Un,this.layerIndex=Xn,this.availableImages=Mr,this.loadVectorData=li||f,this.loading={},this.loaded={}};S.prototype.loadTile=function(Un,Xn){var Mr=this,li=Un.uid;this.loading||(this.loading={});var wr=!!(Un&&Un.request&&Un.request.collectResourceTiming)&&new b.RequestPerformance(Un.request),qr=this.loading[li]=new A(Un);qr.abort=this.loadVectorData(Un,function(ii,rn){if(delete Mr.loading[li],ii||!rn)return qr.status="done",Mr.loaded[li]=qr,Xn(ii);var Qn=rn.rawData,Vr={};rn.expires&&(Vr.expires=rn.expires),rn.cacheControl&&(Vr.cacheControl=rn.cacheControl);var so={};if(wr){var rs=wr.finish();rs&&(so.resourceTiming=JSON.parse(JSON.stringify(rs)))}qr.vectorTile=rn.vectorTile,qr.parse(rn.vectorTile,Mr.layerIndex,Mr.availableImages,Mr.actor,function(zt,pn){if(zt||!pn)return Xn(zt);Xn(null,b.extend({rawTileData:Qn.slice(0)},pn,Vr,so))}),Mr.loaded=Mr.loaded||{},Mr.loaded[li]=qr})},S.prototype.reloadTile=function(Un,Xn){var Mr=this,li=this.loaded,wr=Un.uid,qr=this;if(li&&li[wr]){var ii=li[wr];ii.showCollisionBoxes=Un.showCollisionBoxes;var rn=function(Qn,Vr){var so=ii.reloadCallback;so&&(delete ii.reloadCallback,ii.parse(ii.vectorTile,qr.layerIndex,Mr.availableImages,qr.actor,so)),Xn(Qn,Vr)};ii.status==="parsing"?ii.reloadCallback=rn:ii.status==="done"&&(ii.vectorTile?ii.parse(ii.vectorTile,this.layerIndex,this.availableImages,this.actor,rn):rn())}},S.prototype.abortTile=function(Un,Xn){var Mr=this.loading,li=Un.uid;Mr&&Mr[li]&&Mr[li].abort&&(Mr[li].abort(),delete Mr[li]),Xn()},S.prototype.removeTile=function(Un,Xn){var Mr=this.loaded,li=Un.uid;Mr&&Mr[li]&&delete Mr[li],Xn()};var P=b.window.ImageBitmap,W=function(){this.loaded={}};function ne(Un,Xn){if(Un.length!==0){re(Un[0],Xn);for(var Mr=1;Mr=Math.abs(rn)?Mr-Qn+rn:rn-Qn+Mr,Mr=Qn}Mr+li>=0!=!!Xn&&Un.reverse()}W.prototype.loadTile=function(Un,Xn){var Mr=Un.uid,li=Un.encoding,wr=Un.rawImageData,qr=P&&wr instanceof P?this.getImageData(wr):wr,ii=new b.DEMData(Mr,qr,li);this.loaded=this.loaded||{},this.loaded[Mr]=ii,Xn(null,ii)},W.prototype.getImageData=function(Un){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(Un.width,Un.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=Un.width,this.offscreenCanvas.height=Un.height,this.offscreenCanvasContext.drawImage(Un,0,0,Un.width,Un.height);var Xn=this.offscreenCanvasContext.getImageData(-1,-1,Un.width+2,Un.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new b.RGBAImage({width:Xn.width,height:Xn.height},Xn.data)},W.prototype.removeTile=function(Un){var Xn=this.loaded,Mr=Un.uid;Xn&&Xn[Mr]&&delete Xn[Mr]};var ce=b.vectorTile.VectorTileFeature.prototype.toGeoJSON,pe=function(Un){this._feature=Un,this.extent=b.EXTENT,this.type=Un.type,this.properties=Un.tags,"id"in Un&&!isNaN(Un.id)&&(this.id=parseInt(Un.id,10))};pe.prototype.loadGeometry=function(){if(this._feature.type===1){for(var Un=[],Xn=0,Mr=this._feature.geometry;Xn>31}function xe(Un,Xn){for(var Mr=Un.loadGeometry(),li=Un.type,wr=0,qr=0,ii=Mr.length,rn=0;rn>1;(function xi(lo,Kr,ti,ji,Tr,Qt){for(;Tr>ji;){if(Tr-ji>600){var Gn=Tr-ji+1,yi=ti-ji+1,Ln=Math.log(Gn),Si=.5*Math.exp(2*Ln/3),tr=.5*Math.sqrt(Ln*Si*(Gn-Si)/Gn)*(yi-Gn/2<0?-1:1);xi(lo,Kr,ti,Math.max(ji,Math.floor(ti-yi*Si/Gn+tr)),Math.min(Tr,Math.floor(ti+(Gn-yi)*Si/Gn+tr)),Qt)}var vi=Kr[2*ti+Qt],Ni=ji,kr=Tr;for(ct(lo,Kr,ji,ti),Kr[2*Tr+Qt]>vi&&ct(lo,Kr,ji,Tr);Nivi;)kr--}Kr[2*ji+Qt]===vi?ct(lo,Kr,ji,kr):ct(lo,Kr,++kr,Tr),kr<=ti&&(ji=kr+1),ti<=kr&&(Tr=kr-1)}})(so,rs,ui,pn,br,Gr%2),Vr(so,rs,zt,pn,ui-1,Gr+1),Vr(so,rs,zt,ui+1,br,Gr+1)}})(ii,rn,li,0,ii.length-1,0)};gt.prototype.range=function(Un,Xn,Mr,li){return function(wr,qr,ii,rn,Qn,Vr,so){for(var rs,zt,pn=[0,wr.length-1,0],br=[];pn.length;){var Gr=pn.pop(),ui=pn.pop(),xi=pn.pop();if(ui-xi<=so)for(var lo=xi;lo<=ui;lo++)zt=qr[2*lo+1],(rs=qr[2*lo])>=ii&&rs<=Qn&&zt>=rn&&zt<=Vr&&br.push(wr[lo]);else{var Kr=Math.floor((xi+ui)/2);zt=qr[2*Kr+1],(rs=qr[2*Kr])>=ii&&rs<=Qn&&zt>=rn&&zt<=Vr&&br.push(wr[Kr]);var ti=(Gr+1)%2;(Gr===0?ii<=rs:rn<=zt)&&(pn.push(xi),pn.push(Kr-1),pn.push(ti)),(Gr===0?Qn>=rs:Vr>=zt)&&(pn.push(Kr+1),pn.push(ui),pn.push(ti))}}return br}(this.ids,this.coords,Un,Xn,Mr,li,this.nodeSize)},gt.prototype.within=function(Un,Xn,Mr){return function(li,wr,qr,ii,rn,Qn){for(var Vr=[0,li.length-1,0],so=[],rs=rn*rn;Vr.length;){var zt=Vr.pop(),pn=Vr.pop(),br=Vr.pop();if(pn-br<=Qn)for(var Gr=br;Gr<=pn;Gr++)wt(wr[2*Gr],wr[2*Gr+1],qr,ii)<=rs&&so.push(li[Gr]);else{var ui=Math.floor((br+pn)/2),xi=wr[2*ui],lo=wr[2*ui+1];wt(xi,lo,qr,ii)<=rs&&so.push(li[ui]);var Kr=(zt+1)%2;(zt===0?qr-rn<=xi:ii-rn<=lo)&&(Vr.push(br),Vr.push(ui-1),Vr.push(Kr)),(zt===0?qr+rn>=xi:ii+rn>=lo)&&(Vr.push(ui+1),Vr.push(pn),Vr.push(Kr))}}return so}(this.ids,this.coords,Un,Xn,Mr,this.nodeSize)};var _n={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(Un){return Un}},Bn=function(Un){this.options=Po(Object.create(_n),Un),this.trees=new Array(this.options.maxZoom+1)};function Er(Un,Xn,Mr,li,wr){return{x:Un,y:Xn,zoom:1/0,id:Mr,parentId:-1,numPoints:li,properties:wr}}function Yr(Un,Xn){var Mr=Un.geometry.coordinates,li=Mr[1];return{x:yo(Mr[0]),y:yr(li),zoom:1/0,index:Xn,parentId:-1}}function oi(Un){return{type:"Feature",id:Un.id,properties:to(Un),geometry:{type:"Point",coordinates:[(li=Un.x,360*(li-.5)),(Xn=Un.y,Mr=(180-360*Xn)*Math.PI/180,360*Math.atan(Math.exp(Mr))/Math.PI-90)]}};var Xn,Mr,li}function to(Un){var Xn=Un.numPoints,Mr=Xn>=1e4?Math.round(Xn/1e3)+"k":Xn>=1e3?Math.round(Xn/100)/10+"k":Xn;return Po(Po({},Un.properties),{cluster:!0,cluster_id:Un.id,point_count:Xn,point_count_abbreviated:Mr})}function yo(Un){return Un/360+.5}function yr(Un){var Xn=Math.sin(Un*Math.PI/180),Mr=.5-.25*Math.log((1+Xn)/(1-Xn))/Math.PI;return Mr<0?0:Mr>1?1:Mr}function Po(Un,Xn){for(var Mr in Xn)Un[Mr]=Xn[Mr];return Un}function as(Un){return Un.x}function ge(Un){return Un.y}function _o(Un,Xn,Mr,li,wr,qr){var ii=wr-Mr,rn=qr-li;if(ii!==0||rn!==0){var Qn=((Un-Mr)*ii+(Xn-li)*rn)/(ii*ii+rn*rn);Qn>1?(Mr=wr,li=qr):Qn>0&&(Mr+=ii*Qn,li+=rn*Qn)}return(ii=Un-Mr)*ii+(rn=Xn-li)*rn}function ci(Un,Xn,Mr,li){var wr={id:Un===void 0?null:Un,type:Xn,geometry:Mr,tags:li,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(qr){var ii=qr.geometry,rn=qr.type;if(rn==="Point"||rn==="MultiPoint"||rn==="LineString")Bi(qr,ii);else if(rn==="Polygon"||rn==="MultiLineString")for(var Qn=0;Qn0&&(ii+=li?(wr*Vr-Qn*qr)/2:Math.sqrt(Math.pow(Qn-wr,2)+Math.pow(Vr-qr,2))),wr=Qn,qr=Vr}var so=Xn.length-3;Xn[2]=1,function rs(zt,pn,br,Gr){for(var ui,xi=Gr,lo=br-pn>>1,Kr=br-pn,ti=zt[pn],ji=zt[pn+1],Tr=zt[br],Qt=zt[br+1],Gn=pn+3;Gnxi)ui=Gn,xi=yi;else if(yi===xi){var Ln=Math.abs(Gn-lo);LnGr&&(ui-pn>3&&rs(zt,pn,ui,Gr),zt[ui+2]=xi,br-ui>3&&rs(zt,ui,br,Gr))}(Xn,0,so,Mr),Xn[so+2]=1,Xn.size=Math.abs(ii),Xn.start=0,Xn.end=Xn.size}function Ve(Un,Xn,Mr,li){for(var wr=0;wr1?1:Mr}function Wt(Un,Xn,Mr,li,wr,qr,ii,rn){if(li/=Xn,qr>=(Mr/=Xn)&&ii=li)return null;for(var Qn=[],Vr=0;Vr=Mr&&br=li)){var Gr=[];if(zt==="Point"||zt==="MultiPoint")on(rs,Gr,Mr,li,wr);else if(zt==="LineString")Ot(rs,Gr,Mr,li,wr,!1,rn.lineMetrics);else if(zt==="MultiLineString")bt(rs,Gr,Mr,li,wr,!1);else if(zt==="Polygon")bt(rs,Gr,Mr,li,wr,!0);else if(zt==="MultiPolygon")for(var ui=0;ui=Mr&&ii<=li&&(Xn.push(Un[qr]),Xn.push(Un[qr+1]),Xn.push(Un[qr+2]))}}function Ot(Un,Xn,Mr,li,wr,qr,ii){for(var rn,Qn,Vr=Tt(Un),so=wr===0?Wn:tn,rs=Un.start,zt=0;ztMr&&(Qn=so(Vr,pn,br,ui,xi,Mr),ii&&(Vr.start=rs+rn*Qn)):lo>li?Kr=Mr&&(Qn=so(Vr,pn,br,ui,xi,Mr),ti=!0),Kr>li&&lo<=li&&(Qn=so(Vr,pn,br,ui,xi,li),ti=!0),!qr&&ti&&(ii&&(Vr.end=rs+rn*Qn),Xn.push(Vr),Vr=Tt(Un)),ii&&(rs+=rn)}var ji=Un.length-3;pn=Un[ji],br=Un[ji+1],Gr=Un[ji+2],(lo=wr===0?pn:br)>=Mr&&lo<=li&&Ht(Vr,pn,br,Gr),ji=Vr.length-3,qr&&ji>=3&&(Vr[ji]!==Vr[0]||Vr[ji+1]!==Vr[1])&&Ht(Vr,Vr[0],Vr[1],Vr[2]),Vr.length&&Xn.push(Vr)}function Tt(Un){var Xn=[];return Xn.size=Un.size,Xn.start=Un.start,Xn.end=Un.end,Xn}function bt(Un,Xn,Mr,li,wr,qr){for(var ii=0;iiii.maxX&&(ii.maxX=so),rs>ii.maxY&&(ii.maxY=rs)}return ii}function ys(Un,Xn,Mr,li){var wr=Xn.geometry,qr=Xn.type,ii=[];if(qr==="Point"||qr==="MultiPoint")for(var rn=0;rn0&&Xn.size<(wr?ii:li))Mr.numPoints+=Xn.length/3;else{for(var rn=[],Qn=0;Qnii)&&(Mr.numSimplified++,rn.push(Xn[Qn]),rn.push(Xn[Qn+1])),Mr.numPoints++;wr&&function(Vr,so){for(var rs=0,zt=0,pn=Vr.length,br=pn-2;zt0===so)for(zt=0,pn=Vr.length;zt24)throw new Error("maxZoom should be in the 0-24 range");if(Xn.promoteId&&Xn.generateId)throw new Error("promoteId and generateId cannot be used together.");var li=function(wr,qr){var ii=[];if(wr.type==="FeatureCollection")for(var rn=0;rn=li;Vr--){var so=+Date.now();rn=this._cluster(rn,Vr),this.trees[Vr]=new gt(rn,as,ge,qr,Float32Array),Mr&&console.log("z%d: %d clusters in %dms",Vr,rn.length,+Date.now()-so)}return Mr&&console.timeEnd("total time"),this},Bn.prototype.getClusters=function(Un,Xn){var Mr=((Un[0]+180)%360+360)%360-180,li=Math.max(-90,Math.min(90,Un[1])),wr=Un[2]===180?180:((Un[2]+180)%360+360)%360-180,qr=Math.max(-90,Math.min(90,Un[3]));if(Un[2]-Un[0]>=360)Mr=-180,wr=180;else if(Mr>wr){var ii=this.getClusters([Mr,li,180,qr],Xn),rn=this.getClusters([-180,li,wr,qr],Xn);return ii.concat(rn)}for(var Qn=this.trees[this._limitZoom(Xn)],Vr=[],so=0,rs=Qn.range(yo(Mr),yr(qr),yo(wr),yr(li));soXn&&(zt+=Gr.numPoints||1)}if(zt>=qr){for(var ui=Qn.x*rs,xi=Qn.y*rs,lo=wr&&rs>1?this._map(Qn,!0):null,Kr=(rn<<5)+(Xn+1)+this.points.length,ti=0,ji=so;ti1)for(var Gn=0,yi=so;Gn>5},Bn.prototype._getOriginZoom=function(Un){return(Un-this.points.length)%32},Bn.prototype._map=function(Un,Xn){if(Un.numPoints)return Xn?Po({},Un.properties):Un.properties;var Mr=this.points[Un.index].properties,li=this.options.map(Mr);return Xn&&li===Mr?Po({},li):li},Hr.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Hr.prototype.splitTile=function(Un,Xn,Mr,li,wr,qr,ii){for(var rn=[Un,Xn,Mr,li],Qn=this.options,Vr=Qn.debug;rn.length;){li=rn.pop(),Mr=rn.pop(),Xn=rn.pop(),Un=rn.pop();var so=1<1&&console.time("creation"),zt=this.tiles[rs]=Wo(Un,Xn,Mr,li,Qn),this.tileCoords.push({z:Xn,x:Mr,y:li}),Vr)){Vr>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",Xn,Mr,li,zt.numFeatures,zt.numPoints,zt.numSimplified),console.timeEnd("creation"));var pn="z"+Xn;this.stats[pn]=(this.stats[pn]||0)+1,this.total++}if(zt.source=Un,wr){if(Xn===Qn.maxZoom||Xn===wr)continue;var br=1<1&&console.time("clipping");var Gr,ui,xi,lo,Kr,ti,ji=.5*Qn.buffer/Qn.extent,Tr=.5-ji,Qt=.5+ji,Gn=1+ji;Gr=ui=xi=lo=null,Kr=Wt(Un,so,Mr-ji,Mr+Qt,0,zt.minX,zt.maxX,Qn),ti=Wt(Un,so,Mr+Tr,Mr+Gn,0,zt.minX,zt.maxX,Qn),Un=null,Kr&&(Gr=Wt(Kr,so,li-ji,li+Qt,1,zt.minY,zt.maxY,Qn),ui=Wt(Kr,so,li+Tr,li+Gn,1,zt.minY,zt.maxY,Qn),Kr=null),ti&&(xi=Wt(ti,so,li-ji,li+Qt,1,zt.minY,zt.maxY,Qn),lo=Wt(ti,so,li+Tr,li+Gn,1,zt.minY,zt.maxY,Qn),ti=null),Vr>1&&console.timeEnd("clipping"),rn.push(Gr||[],Xn+1,2*Mr,2*li),rn.push(ui||[],Xn+1,2*Mr,2*li+1),rn.push(xi||[],Xn+1,2*Mr+1,2*li),rn.push(lo||[],Xn+1,2*Mr+1,2*li+1)}}},Hr.prototype.getTile=function(Un,Xn,Mr){var li=this.options,wr=li.extent,qr=li.debug;if(Un<0||Un>24)return null;var ii=1<1&&console.log("drilling down to z%d-%d-%d",Un,Xn,Mr);for(var Qn,Vr=Un,so=Xn,rs=Mr;!Qn&&Vr>0;)Vr--,so=Math.floor(so/2),rs=Math.floor(rs/2),Qn=this.tiles[Jr(Vr,so,rs)];return Qn&&Qn.source?(qr>1&&console.log("found parent tile z%d-%d-%d",Vr,so,rs),qr>1&&console.time("drilling down"),this.splitTile(Qn.source,Vr,so,rs,Un,Xn,Mr),qr>1&&console.timeEnd("drilling down"),this.tiles[rn]?Ri(this.tiles[rn],wr):null):null};var xo=function(Un){function Xn(Mr,li,wr,qr){Un.call(this,Mr,li,wr,Yi),qr&&(this.loadGeoJSON=qr)}return Un&&(Xn.__proto__=Un),(Xn.prototype=Object.create(Un&&Un.prototype)).constructor=Xn,Xn.prototype.loadData=function(Mr,li){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=li,this._pendingLoadDataParams=Mr,this._state&&this._state!=="Idle"?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},Xn.prototype._loadData=function(){var Mr=this;if(this._pendingCallback&&this._pendingLoadDataParams){var li=this._pendingCallback,wr=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var qr=!!(wr&&wr.request&&wr.request.collectResourceTiming)&&new b.RequestPerformance(wr.request);this.loadGeoJSON(wr,function(ii,rn){if(ii||!rn)return li(ii);if(typeof rn!="object")return li(new Error("Input data given to '"+wr.source+"' is not a valid GeoJSON object."));(function zt(pn,br){var Gr,ui=pn&&pn.type;if(ui==="FeatureCollection")for(Gr=0;Gr=0?0:X.button},k.remove=function(X){X.parentNode&&X.parentNode.removeChild(X)};var re=function(X){function te(){X.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new b.RGBAImage({width:1,height:1}),this.dirty=!0}return X&&(te.__proto__=X),(te.prototype=Object.create(X&&X.prototype)).constructor=te,te.prototype.isLoaded=function(){return this.loaded},te.prototype.setLoaded=function(J){if(this.loaded!==J&&(this.loaded=J,J)){for(var ae=0,it=this.requestors;ae=0?1.2:1))}function Be(X,te,J,ae,it,Rt,en){for(var Yn=0;Yn65535)Zr(new Error("glyphs > 65535 not supported"));else if(Xo.ranges[sa])Zr(null,{stack:fr,id:es,glyph:Ss});else{var qs=Xo.requests[sa];qs||(qs=Xo.requests[sa]=[],We.loadGlyphRange(fr,sa,J.url,J.requestManager,function(Vo,js){if(js){for(var za in js)J._doesCharSupportLocalGlyph(+za)||(Xo.glyphs[+za]=js[+za]);Xo.ranges[sa]=!0}for(var yl=0,nu=qs;yl1&&(Yn=X[++en]);var fr=Math.abs(Zr-Yn.left),es=Math.abs(Zr-Yn.right),Xo=Math.min(fr,es),Ss=void 0,sa=it/J*(ae+1);if(Yn.isDash){var qs=ae-Math.abs(sa);Ss=Math.sqrt(Xo*Xo+qs*qs)}else Ss=ae-Math.sqrt(Xo*Xo+sa*sa);this.data[Rt+Zr]=Math.max(0,Math.min(255,Ss+128))}},we.prototype.addRegularDash=function(X){for(var te=X.length-1;te>=0;--te){var J=X[te],ae=X[te+1];J.zeroLength?X.splice(te,1):ae&&ae.isDash===J.isDash&&(ae.left=J.left,X.splice(te,1))}var it=X[0],Rt=X[X.length-1];it.isDash===Rt.isDash&&(it.left=Rt.left-this.width,Rt.right=it.right+this.width);for(var en=this.width*this.nextRow,Yn=0,Zr=X[Yn],fr=0;fr1&&(Zr=X[++Yn]);var es=Math.abs(fr-Zr.left),Xo=Math.abs(fr-Zr.right),Ss=Math.min(es,Xo);this.data[en+fr]=Math.max(0,Math.min(255,(Zr.isDash?Ss:-Ss)+128))}},we.prototype.addDash=function(X,te){var J=te?7:0,ae=2*J+1;if(this.nextRow+ae>this.height)return b.warnOnce("LineAtlas out of space"),null;for(var it=0,Rt=0;Rt=J&&X.x=ae&&X.y0&&(fr[new b.OverscaledTileID(J.overscaledZ,en,ae.z,Rt,ae.y-1).key]={backfilled:!1},fr[new b.OverscaledTileID(J.overscaledZ,J.wrap,ae.z,ae.x,ae.y-1).key]={backfilled:!1},fr[new b.OverscaledTileID(J.overscaledZ,Zr,ae.z,Yn,ae.y-1).key]={backfilled:!1}),ae.y+10&&(it.resourceTiming=J._resourceTiming,J._resourceTiming=[]),J.fire(new b.Event("data",it))}})},te.prototype.onAdd=function(J){this.map=J,this.load()},te.prototype.setData=function(J){var ae=this;return this._data=J,this.fire(new b.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(it){if(it)ae.fire(new b.ErrorEvent(it));else{var Rt={dataType:"source",sourceDataType:"content"};ae._collectResourceTiming&&ae._resourceTiming&&ae._resourceTiming.length>0&&(Rt.resourceTiming=ae._resourceTiming,ae._resourceTiming=[]),ae.fire(new b.Event("data",Rt))}}),this},te.prototype.getClusterExpansionZoom=function(J,ae){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:J,source:this.id},ae),this},te.prototype.getClusterChildren=function(J,ae){return this.actor.send("geojson.getClusterChildren",{clusterId:J,source:this.id},ae),this},te.prototype.getClusterLeaves=function(J,ae,it,Rt){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:J,limit:ae,offset:it},Rt),this},te.prototype._updateWorkerData=function(J){var ae=this;this._loaded=!1;var it=b.extend({},this.workerOptions),Rt=this._data;typeof Rt=="string"?(it.request=this.map._requestManager.transformRequest(b.browser.resolveURL(Rt),b.ResourceType.Source),it.request.collectResourceTiming=this._collectResourceTiming):it.data=JSON.stringify(Rt),this.actor.send(this.type+".loadData",it,function(en,Yn){ae._removed||Yn&&Yn.abandoned||(ae._loaded=!0,Yn&&Yn.resourceTiming&&Yn.resourceTiming[ae.id]&&(ae._resourceTiming=Yn.resourceTiming[ae.id].slice(0)),ae.actor.send(ae.type+".coalesce",{source:it.source},null),J(en))})},te.prototype.loaded=function(){return this._loaded},te.prototype.loadTile=function(J,ae){var it=this,Rt=J.actor?"reloadTile":"loadTile";J.actor=this.actor,J.request=this.actor.send(Rt,{type:this.type,uid:J.uid,tileID:J.tileID,zoom:J.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:b.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},function(en,Yn){return delete J.request,J.unloadVectorData(),J.aborted?ae(null):en?ae(en):(J.loadVectorData(Yn,it.map.painter,Rt==="reloadTile"),ae(null))})},te.prototype.abortTile=function(J){J.request&&(J.request.cancel(),delete J.request),J.aborted=!0},te.prototype.unloadTile=function(J){J.unloadVectorData(),this.actor.send("removeTile",{uid:J.uid,type:this.type,source:this.id})},te.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},te.prototype.serialize=function(){return b.extend({},this._options,{type:this.type,data:this._data})},te.prototype.hasTransition=function(){return!1},te}(b.Evented),He=b.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),wt=function(X){function te(J,ae,it,Rt){X.call(this),this.id=J,this.dispatcher=it,this.coordinates=ae.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(Rt),this.options=ae}return X&&(te.__proto__=X),(te.prototype=Object.create(X&&X.prototype)).constructor=te,te.prototype.load=function(J,ae){var it=this;this._loaded=!1,this.fire(new b.Event("dataloading",{dataType:"source"})),this.url=this.options.url,b.getImage(this.map._requestManager.transformRequest(this.url,b.ResourceType.Image),function(Rt,en){it._loaded=!0,Rt?it.fire(new b.ErrorEvent(Rt)):en&&(it.image=en,J&&(it.coordinates=J),ae&&ae(),it._finishLoading())})},te.prototype.loaded=function(){return this._loaded},te.prototype.updateImage=function(J){var ae=this;return this.image&&J.url?(this.options.url=J.url,this.load(J.coordinates,function(){ae.texture=null}),this):this},te.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new b.Event("data",{dataType:"source",sourceDataType:"metadata"})))},te.prototype.onAdd=function(J){this.map=J,this.load()},te.prototype.setCoordinates=function(J){var ae=this;this.coordinates=J;var it=J.map(b.MercatorCoordinate.fromLngLat);this.tileID=function(en){for(var Yn=1/0,Zr=1/0,fr=-1/0,es=-1/0,Xo=0,Ss=en;Xoae.end(0)?this.fire(new b.ErrorEvent(new b.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+ae.start(0)+" and "+ae.end(0)+"-second mark."))):this.video.currentTime=J}},te.prototype.getVideo=function(){return this.video},te.prototype.onAdd=function(J){this.map||(this.map=J,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},te.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var J=this.map.painter.context,ae=J.gl;for(var it in this.boundsBuffer||(this.boundsBuffer=J.createVertexBuffer(this._boundsArray,He.members)),this.boundsSegments||(this.boundsSegments=b.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(ae.LINEAR,ae.CLAMP_TO_EDGE),ae.texSubImage2D(ae.TEXTURE_2D,0,0,0,ae.RGBA,ae.UNSIGNED_BYTE,this.video)):(this.texture=new b.Texture(J,this.video,ae.RGBA),this.texture.bind(ae.LINEAR,ae.CLAMP_TO_EDGE)),this.tiles){var Rt=this.tiles[it];Rt.state!=="loaded"&&(Rt.state="loaded",Rt.texture=this.texture)}}},te.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},te.prototype.hasTransition=function(){return this.video&&!this.video.paused},te}(wt),Bt=function(X){function te(J,ae,it,Rt){X.call(this,J,ae,it,Rt),ae.coordinates?Array.isArray(ae.coordinates)&&ae.coordinates.length===4&&!ae.coordinates.some(function(en){return!Array.isArray(en)||en.length!==2||en.some(function(Yn){return typeof Yn!="number"})})||this.fire(new b.ErrorEvent(new b.ValidationError("sources."+J,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new b.ErrorEvent(new b.ValidationError("sources."+J,null,'missing required property "coordinates"'))),ae.animate&&typeof ae.animate!="boolean"&&this.fire(new b.ErrorEvent(new b.ValidationError("sources."+J,null,'optional "animate" property must be a boolean value'))),ae.canvas?typeof ae.canvas=="string"||ae.canvas instanceof b.window.HTMLCanvasElement||this.fire(new b.ErrorEvent(new b.ValidationError("sources."+J,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new b.ErrorEvent(new b.ValidationError("sources."+J,null,'missing required property "canvas"'))),this.options=ae,this.animate=ae.animate===void 0||ae.animate}return X&&(te.__proto__=X),(te.prototype=Object.create(X&&X.prototype)).constructor=te,te.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof b.window.HTMLCanvasElement?this.options.canvas:b.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new b.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())},te.prototype.getCanvas=function(){return this.canvas},te.prototype.onAdd=function(J){this.map=J,this.load(),this.canvas&&this.animate&&this.play()},te.prototype.onRemove=function(){this.pause()},te.prototype.prepare=function(){var J=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,J=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,J=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var ae=this.map.painter.context,it=ae.gl;for(var Rt in this.boundsBuffer||(this.boundsBuffer=ae.createVertexBuffer(this._boundsArray,He.members)),this.boundsSegments||(this.boundsSegments=b.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(J||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new b.Texture(ae,this.canvas,it.RGBA,{premultiply:!0}),this.tiles){var en=this.tiles[Rt];en.state!=="loaded"&&(en.state="loaded",en.texture=this.texture)}}},te.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},te.prototype.hasTransition=function(){return this._playing},te.prototype._hasInvalidDimensions=function(){for(var J=0,ae=[this.canvas.width,this.canvas.height];Jthis.max){var en=this._getAndRemoveByKey(this.order[0]);en&&this.onRemove(en)}return this},Yr.prototype.has=function(X){return X.wrapped().key in this.data},Yr.prototype.getAndRemove=function(X){return this.has(X)?this._getAndRemoveByKey(X.wrapped().key):null},Yr.prototype._getAndRemoveByKey=function(X){var te=this.data[X].shift();return te.timeout&&clearTimeout(te.timeout),this.data[X].length===0&&delete this.data[X],this.order.splice(this.order.indexOf(X),1),te.value},Yr.prototype.getByKey=function(X){var te=this.data[X];return te?te[0].value:null},Yr.prototype.get=function(X){return this.has(X)?this.data[X.wrapped().key][0].value:null},Yr.prototype.remove=function(X,te){if(!this.has(X))return this;var J=X.wrapped().key,ae=te===void 0?0:this.data[J].indexOf(te),it=this.data[J][ae];return this.data[J].splice(ae,1),it.timeout&&clearTimeout(it.timeout),this.data[J].length===0&&delete this.data[J],this.onRemove(it.value),this.order.splice(this.order.indexOf(J),1),this},Yr.prototype.setMaxSize=function(X){for(this.max=X;this.order.length>this.max;){var te=this._getAndRemoveByKey(this.order[0]);te&&this.onRemove(te)}return this},Yr.prototype.filter=function(X){var te=[];for(var J in this.data)for(var ae=0,it=this.data[J];ae1||(Math.abs(es)>1&&(Math.abs(es+Ss)===1?es+=Ss:Math.abs(es-Ss)===1&&(es-=Ss)),fr.dem&&Zr.dem&&(Zr.dem.backfillBorder(fr.dem,es,Xo),Zr.neighboringTiles&&Zr.neighboringTiles[sa]&&(Zr.neighboringTiles[sa].backfilled=!0)))}},te.prototype.getTile=function(J){return this.getTileByID(J.key)},te.prototype.getTileByID=function(J){return this._tiles[J]},te.prototype._retainLoadedChildren=function(J,ae,it,Rt){for(var en in this._tiles){var Yn=this._tiles[en];if(!(Rt[en]||!Yn.hasData()||Yn.tileID.overscaledZ<=ae||Yn.tileID.overscaledZ>it)){for(var Zr=Yn.tileID;Yn&&Yn.tileID.overscaledZ>ae+1;){var fr=Yn.tileID.scaledTo(Yn.tileID.overscaledZ-1);(Yn=this._tiles[fr.key])&&Yn.hasData()&&(Zr=fr)}for(var es=Zr;es.overscaledZ>ae;)if(J[(es=es.scaledTo(es.overscaledZ-1)).key]){Rt[Zr.key]=Zr;break}}}},te.prototype.findLoadedParent=function(J,ae){if(J.key in this._loadedParentTiles){var it=this._loadedParentTiles[J.key];return it&&it.tileID.overscaledZ>=ae?it:null}for(var Rt=J.overscaledZ-1;Rt>=ae;Rt--){var en=J.scaledTo(Rt),Yn=this._getLoadedTile(en);if(Yn)return Yn}},te.prototype._getLoadedTile=function(J){var ae=this._tiles[J.key];return ae&&ae.hasData()?ae:this._cache.getByKey(J.wrapped().key)},te.prototype.updateCacheSize=function(J){var ae=Math.ceil(J.width/this._source.tileSize)+1,it=Math.ceil(J.height/this._source.tileSize)+1,Rt=Math.floor(ae*it*5),en=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,Rt):Rt;this._cache.setMaxSize(en)},te.prototype.handleWrapJump=function(J){var ae=Math.round((J-(this._prevLng===void 0?J:this._prevLng))/360);if(this._prevLng=J,ae){var it={};for(var Rt in this._tiles){var en=this._tiles[Rt];en.tileID=en.tileID.unwrapTo(en.tileID.wrap+ae),it[en.tileID.key]=en}for(var Yn in this._tiles=it,this._timers)clearTimeout(this._timers[Yn]),delete this._timers[Yn];for(var Zr in this._tiles)this._setTileReloadTimer(Zr,this._tiles[Zr])}},te.prototype.update=function(J){var ae=this;if(this.transform=J,this._sourceLoaded&&!this._paused){var it;this.updateCacheSize(J),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?it=J.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(dc){return new b.OverscaledTileID(dc.canonical.z,dc.wrap,dc.canonical.z,dc.canonical.x,dc.canonical.y)}):(it=J.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(it=it.filter(function(dc){return ae._source.hasTile(dc)}))):it=[];var Rt=J.coveringZoomLevel(this._source),en=Math.max(Rt-te.maxOverzooming,this._source.minzoom),Yn=Math.max(Rt+te.maxUnderzooming,this._source.minzoom),Zr=this._updateRetainedTiles(it,Rt);if(so(this._source.type)){for(var fr={},es={},Xo=0,Ss=Object.keys(Zr);Xothis._source.maxzoom){var za=Vo.children(this._source.maxzoom)[0],yl=this.getTile(za);if(yl&&yl.hasData()){it[za.key]=za;continue}}else{var nu=Vo.children(this._source.maxzoom);if(it[nu[0].key]&&it[nu[1].key]&&it[nu[2].key]&&it[nu[3].key])continue}for(var xu=js.wasRequested(),Tu=Vo.overscaledZ-1;Tu>=en;--Tu){var Cu=Vo.scaledTo(Tu);if(Rt[Cu.key]||(Rt[Cu.key]=!0,!(js=this.getTile(Cu))&&xu&&(js=this._addTile(Cu)),js&&(it[Cu.key]=Cu,xu=js.wasRequested(),js.hasData())))break}}}return it},te.prototype._updateLoadedParentTileCache=function(){for(var J in this._loadedParentTiles={},this._tiles){for(var ae=[],it=void 0,Rt=this._tiles[J].tileID;Rt.overscaledZ>0;){if(Rt.key in this._loadedParentTiles){it=this._loadedParentTiles[Rt.key];break}ae.push(Rt.key);var en=Rt.scaledTo(Rt.overscaledZ-1);if(it=this._getLoadedTile(en))break;Rt=en}for(var Yn=0,Zr=ae;Yn0||(ae.hasData()&&ae.state!=="reloading"?this._cache.add(ae.tileID,ae,ae.getExpiryTimeout()):(ae.aborted=!0,this._abortTile(ae),this._unloadTile(ae))))},te.prototype.clearTiles=function(){for(var J in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(J);this._cache.reset()},te.prototype.tilesIn=function(J,ae,it){var Rt=this,en=[],Yn=this.transform;if(!Yn)return en;for(var Zr=it?Yn.getCameraQueryGeometry(J):J,fr=J.map(function(Tu){return Yn.pointCoordinate(Tu)}),es=Zr.map(function(Tu){return Yn.pointCoordinate(Tu)}),Xo=this.getIds(),Ss=1/0,sa=1/0,qs=-1/0,Vo=-1/0,js=0,za=es;js=0&&hd[1].y+wc>=0){var Td=fr.map(function(Jd){return dc.getTilePoint(Jd)}),ch=es.map(function(Jd){return dc.getTilePoint(Jd)});en.push({tile:Cu,tileID:dc,queryGeometry:Td,cameraQueryGeometry:ch,scale:Hc})}}},xu=0;xu=b.browser.now())return!0}return!1},te.prototype.setFeatureState=function(J,ae,it){this._state.updateState(J=J||"_geojsonTileLayer",ae,it)},te.prototype.removeFeatureState=function(J,ae,it){this._state.removeFeatureState(J=J||"_geojsonTileLayer",ae,it)},te.prototype.getFeatureState=function(J,ae){return this._state.getState(J=J||"_geojsonTileLayer",ae)},te.prototype.setDependencies=function(J,ae,it){var Rt=this._tiles[J];Rt&&Rt.setDependencies(ae,it)},te.prototype.reloadTilesForDependencies=function(J,ae){for(var it in this._tiles)this._tiles[it].hasDependency(J,ae)&&this._reloadTile(it,"reloading");this._cache.filter(function(Rt){return!Rt.hasDependency(J,ae)})},te}(b.Evented);function Vr(X,te){var J=Math.abs(2*X.wrap)-+(X.wrap<0),ae=Math.abs(2*te.wrap)-+(te.wrap<0);return X.overscaledZ-te.overscaledZ||ae-J||te.canonical.y-X.canonical.y||te.canonical.x-X.canonical.x}function so(X){return X==="raster"||X==="image"||X==="video"}function rs(){return new b.window.Worker(Rd.workerUrl)}Qn.maxOverzooming=10,Qn.maxUnderzooming=3;var zt="mapboxgl_preloaded_worker_pool",pn=function(){this.active={}};pn.prototype.acquire=function(X){if(!this.workers)for(this.workers=[];this.workers.length0?(ae-Rt)/en:0;return this.points[it].mult(1-Yn).add(this.points[te].mult(Yn))};var tr=function(X,te,J){var ae=this.boxCells=[],it=this.circleCells=[];this.xCellCount=Math.ceil(X/J),this.yCellCount=Math.ceil(te/J);for(var Rt=0;Rt=-te[0]&&J<=te[0]&&ae>=-te[1]&&ae<=te[1]}function _a(X,te,J,ae,it,Rt,en,Yn){var Zr=ae?X.textSizeData:X.iconSizeData,fr=b.evaluateSizeForZoom(Zr,J.transform.zoom),es=[256/J.width*2+1,256/J.height*2+1],Xo=ae?X.text.dynamicLayoutVertexArray:X.icon.dynamicLayoutVertexArray;Xo.clear();for(var Ss=X.lineVertexArray,sa=ae?X.text.placedSymbolArray:X.icon.placedSymbolArray,qs=J.transform.width/J.transform.height,Vo=!1,js=0;jsMath.abs(J.x-te.x)*ae?{useVertical:!0}:(X===b.WritingMode.vertical?te.yJ.x)?{needsFlipping:!0}:null}function Wa(X,te,J,ae,it,Rt,en,Yn,Zr,fr,es,Xo,Ss,sa){var qs,Vo=te/24,js=X.lineOffsetX*Vo,za=X.lineOffsetY*Vo;if(X.numGlyphs>1){var yl=X.glyphStartIndex+X.numGlyphs,nu=X.lineStartIndex,xu=X.lineStartIndex+X.lineLength,Tu=da(Vo,Yn,js,za,J,es,Xo,X,Zr,Rt,Ss);if(!Tu)return{notEnoughRoom:!0};var Cu=kr(Tu.first.point,en).point,dc=kr(Tu.last.point,en).point;if(ae&&!J){var Hc=zs(X.writingMode,Cu,dc,sa);if(Hc)return Hc}qs=[Tu.first];for(var wc=X.glyphStartIndex+1;wc0?Jd.point:Co(Xo,ch,hd,1,it),Nc=zs(X.writingMode,hd,Xh,sa);if(Nc)return Nc}var Uc=cl(Vo*Yn.getoffsetX(X.glyphStartIndex),js,za,J,es,Xo,X.segment,X.lineStartIndex,X.lineStartIndex+X.lineLength,Zr,Rt,Ss);if(!Uc)return{notEnoughRoom:!0};qs=[Uc]}for(var tf=0,dh=qs;tf0?1:-1,qs=0;ae&&(sa*=-1,qs=Math.PI),sa<0&&(qs+=Math.PI);for(var Vo=sa>0?Yn+en:Yn+en+1,js=it,za=it,yl=0,nu=0,xu=Math.abs(Ss),Tu=[];yl+nu<=xu;){if((Vo+=sa)=Zr)return null;if(za=js,Tu.push(js),(js=Xo[Vo])===void 0){var Cu=new b.Point(fr.getx(Vo),fr.gety(Vo)),dc=kr(Cu,es);if(dc.signedDistanceFromCamera>0)js=Xo[Vo]=dc.point;else{var Hc=Vo-sa;js=Co(yl===0?Rt:new b.Point(fr.getx(Hc),fr.gety(Hc)),Cu,za,xu-yl+1,es)}}yl+=nu,nu=za.dist(js)}var wc=(xu-yl)/nu,hd=js.sub(za),Td=hd.mult(wc)._add(za);Td._add(hd._unit()._perp()._mult(J*sa));var ch=qs+Math.atan2(js.y-za.y,js.x-za.x);return Tu.push(Td),{point:Td,angle:ch,path:Tu}}tr.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},tr.prototype.insert=function(X,te,J,ae,it){this._forEachCell(te,J,ae,it,this._insertBoxCell,this.boxUid++),this.boxKeys.push(X),this.bboxes.push(te),this.bboxes.push(J),this.bboxes.push(ae),this.bboxes.push(it)},tr.prototype.insertCircle=function(X,te,J,ae){this._forEachCell(te-ae,J-ae,te+ae,J+ae,this._insertCircleCell,this.circleUid++),this.circleKeys.push(X),this.circles.push(te),this.circles.push(J),this.circles.push(ae)},tr.prototype._insertBoxCell=function(X,te,J,ae,it,Rt){this.boxCells[it].push(Rt)},tr.prototype._insertCircleCell=function(X,te,J,ae,it,Rt){this.circleCells[it].push(Rt)},tr.prototype._query=function(X,te,J,ae,it,Rt){if(J<0||X>this.width||ae<0||te>this.height)return!it&&[];var en=[];if(X<=0&&te<=0&&this.width<=J&&this.height<=ae){if(it)return!0;for(var Yn=0;Yn0:en},tr.prototype._queryCircle=function(X,te,J,ae,it){var Rt=X-J,en=X+J,Yn=te-J,Zr=te+J;if(en<0||Rt>this.width||Zr<0||Yn>this.height)return!ae&&[];var fr=[];return this._forEachCell(Rt,Yn,en,Zr,this._queryCellCircle,fr,{hitTest:ae,circle:{x:X,y:te,radius:J},seenUids:{box:{},circle:{}}},it),ae?fr.length>0:fr},tr.prototype.query=function(X,te,J,ae,it){return this._query(X,te,J,ae,!1,it)},tr.prototype.hitTest=function(X,te,J,ae,it){return this._query(X,te,J,ae,!0,it)},tr.prototype.hitTestCircle=function(X,te,J,ae){return this._queryCircle(X,te,J,!0,ae)},tr.prototype._queryCell=function(X,te,J,ae,it,Rt,en,Yn){var Zr=en.seenUids,fr=this.boxCells[it];if(fr!==null)for(var es=this.bboxes,Xo=0,Ss=fr;Xo=es[qs+0]&&ae>=es[qs+1]&&(!Yn||Yn(this.boxKeys[sa]))){if(en.hitTest)return Rt.push(!0),!0;Rt.push({key:this.boxKeys[sa],x1:es[qs],y1:es[qs+1],x2:es[qs+2],y2:es[qs+3]})}}}var Vo=this.circleCells[it];if(Vo!==null)for(var js=this.circles,za=0,yl=Vo;zaen*en+Yn*Yn},tr.prototype._circleAndRectCollide=function(X,te,J,ae,it,Rt,en){var Yn=(Rt-ae)/2,Zr=Math.abs(X-(ae+Yn));if(Zr>Yn+J)return!1;var fr=(en-it)/2,es=Math.abs(te-(it+fr));if(es>fr+J)return!1;if(Zr<=Yn||es<=fr)return!0;var Xo=Zr-Yn,Ss=es-fr;return Xo*Xo+Ss*Ss<=J*J};var Fr=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function fs(X,te){for(var J=0;J=1;Xh--)Jd.push(Td.path[Xh]);for(var Nc=1;Nc0){for(var nh=Jd[0].clone(),zh=Jd[0].clone(),_h=1;_h=Hc.x&&zh.x<=wc.x&&nh.y>=Hc.y&&zh.y<=wc.y?[Jd]:zh.xwc.x||zh.ywc.y?[]:b.clipLine([Jd],Hc.x,Hc.y,wc.x,wc.y)}for(var Mh=0,Cg=dh;Mh=this.screenRightBoundary||ae<100||te>this.screenBottomBoundary},Es.prototype.isInsideGrid=function(X,te,J,ae){return J>=0&&X=0&&te0?(this.prevPlacement&&this.prevPlacement.variableOffsets[Xo.crossTileID]&&this.prevPlacement.placements[Xo.crossTileID]&&this.prevPlacement.placements[Xo.crossTileID].text&&(Vo=this.prevPlacement.variableOffsets[Xo.crossTileID].anchor),this.variableOffsets[Xo.crossTileID]={textOffset:js,width:J,height:ae,anchor:X,textBoxScale:it,prevAnchor:Vo},this.markUsedJustification(Ss,X,Xo,sa),Ss.allowVerticalPlacement&&(this.markUsedOrientation(Ss,sa,Xo),this.placedOrientations[Xo.crossTileID]=sa),{shift:za,placedGlyphBoxes:yl}):void 0},Nn.prototype.placeLayerBucketPart=function(X,te,J){var ae=this,it=X.parameters,Rt=it.bucket,en=it.layout,Yn=it.posMatrix,Zr=it.textLabelPlaneMatrix,fr=it.labelToScreenMatrix,es=it.textPixelRatio,Xo=it.holdingForFade,Ss=it.collisionBoxArray,sa=it.partiallyEvaluatedTextSize,qs=it.collisionGroup,Vo=en.get("text-optional"),js=en.get("icon-optional"),za=en.get("text-allow-overlap"),yl=en.get("icon-allow-overlap"),nu=en.get("text-rotation-alignment")==="map",xu=en.get("text-pitch-alignment")==="map",Tu=en.get("icon-text-fit")!=="none",Cu=en.get("symbol-z-order")==="viewport-y",dc=za&&(yl||!Rt.hasIconData()||js),Hc=yl&&(za||!Rt.hasTextData()||Vo);!Rt.collisionArrays&&Ss&&Rt.deserializeCollisionBoxes(Ss);var wc=function(Nc,Uc){if(!te[Nc.crossTileID])if(Xo)ae.placements[Nc.crossTileID]=new xl(!1,!1,!1);else{var tf,dh=!1,nh=!1,zh=!0,_h=null,Mh={box:null,offscreen:null},Cg={box:null,offscreen:null},jp=null,vp=null,Zc=0,Oc=0,ld=0;Uc.textFeatureIndex?Zc=Uc.textFeatureIndex:Nc.useRuntimeCollisionCircles&&(Zc=Nc.featureIndex),Uc.verticalTextFeatureIndex&&(Oc=Uc.verticalTextFeatureIndex);var yd=Uc.textBox;if(yd){var Bd=function(df){var af=b.WritingMode.horizontal;if(Rt.allowVerticalPlacement&&!df&&ae.prevPlacement){var jg=ae.prevPlacement.placedOrientations[Nc.crossTileID];jg&&(ae.placedOrientations[Nc.crossTileID]=jg,ae.markUsedOrientation(Rt,af=jg,Nc))}return af},Dc=function(df,af){if(Rt.allowVerticalPlacement&&Nc.numVerticalGlyphVertices>0&&Uc.verticalTextBox)for(var jg=0,ap=Rt.writingModes;jg0&&(xd=xd.filter(function(df){return df!==ud.anchor})).unshift(ud.anchor)}var Sc=function(df,af,jg){for(var ap=df.x2-df.x1,lg=df.y2-df.y1,Id=Nc.textBoxScale,rm=Tu&&!yl?af:null,Im={box:[],offscreen:!1},zm=za?2*xd.length:xd.length,im=0;im=xd.length,Nc,Rt,jg,rm);if(Cm&&(Im=Cm.placedGlyphBoxes)&&Im.box&&Im.box.length){dh=!0,_h=Cm.shift;break}}return Im};Dc(function(){return Sc(yd,Uc.iconBox,b.WritingMode.horizontal)},function(){var df=Uc.verticalTextBox;return Rt.allowVerticalPlacement&&!(Mh&&Mh.box&&Mh.box.length)&&Nc.numVerticalGlyphVertices>0&&df?Sc(df,Uc.verticalIconBox,b.WritingMode.vertical):{box:null,offscreen:null}}),Mh&&(dh=Mh.box,zh=Mh.offscreen);var Io=Bd(Mh&&Mh.box);if(!dh&&ae.prevPlacement){var Gg=ae.prevPlacement.variableOffsets[Nc.crossTileID];Gg&&(ae.variableOffsets[Nc.crossTileID]=Gg,ae.markUsedJustification(Rt,Gg.anchor,Nc,Io))}}else{var Hp=function(df,af){var jg=ae.collisionIndex.placeCollisionBox(df,za,es,Yn,qs.predicate);return jg&&jg.box&&jg.box.length&&(ae.markUsedOrientation(Rt,af,Nc),ae.placedOrientations[Nc.crossTileID]=af),jg};Dc(function(){return Hp(yd,b.WritingMode.horizontal)},function(){var df=Uc.verticalTextBox;return Rt.allowVerticalPlacement&&Nc.numVerticalGlyphVertices>0&&df?Hp(df,b.WritingMode.vertical):{box:null,offscreen:null}}),Bd(Mh&&Mh.box&&Mh.box.length)}}if(dh=(tf=Mh)&&tf.box&&tf.box.length>0,zh=tf&&tf.offscreen,Nc.useRuntimeCollisionCircles){var mm=Rt.text.placedSymbolArray.get(Nc.centerJustifiedTextSymbolIndex),Nm=b.evaluateSizeForFeature(Rt.textSizeData,sa,mm),Zd=en.get("text-padding");jp=ae.collisionIndex.placeCollisionCircles(za,mm,Rt.lineVertexArray,Rt.glyphOffsetArray,Nm,Yn,Zr,fr,J,xu,qs.predicate,Nc.collisionCircleDiameter,Zd),dh=za||jp.circles.length>0&&!jp.collisionDetected,zh=zh&&jp.offscreen}if(Uc.iconFeatureIndex&&(ld=Uc.iconFeatureIndex),Uc.iconBox){var Fp=function(df){var af=Tu&&_h?An(df,_h.x,_h.y,nu,xu,ae.transform.angle):df;return ae.collisionIndex.placeCollisionBox(af,yl,es,Yn,qs.predicate)};nh=Cg&&Cg.box&&Cg.box.length&&Uc.verticalIconBox?(vp=Fp(Uc.verticalIconBox)).box.length>0:(vp=Fp(Uc.iconBox)).box.length>0,zh=zh&&vp.offscreen}var zf=Vo||Nc.numHorizontalGlyphVertices===0&&Nc.numVerticalGlyphVertices===0,bf=js||Nc.numIconVertices===0;if(zf||bf?bf?zf||(nh=nh&&dh):dh=nh&&dh:nh=dh=nh&&dh,dh&&tf&&tf.box&&ae.collisionIndex.insertCollisionBox(tf.box,en.get("text-ignore-placement"),Rt.bucketInstanceId,Cg&&Cg.box&&Oc?Oc:Zc,qs.ID),nh&&vp&&ae.collisionIndex.insertCollisionBox(vp.box,en.get("icon-ignore-placement"),Rt.bucketInstanceId,ld,qs.ID),jp&&(dh&&ae.collisionIndex.insertCollisionCircles(jp.circles,en.get("text-ignore-placement"),Rt.bucketInstanceId,Zc,qs.ID),J)){var Jp=Rt.bucketInstanceId,Bp=ae.collisionCircleArrays[Jp];Bp===void 0&&(Bp=ae.collisionCircleArrays[Jp]=new Qa);for(var Hf=0;Hf=0;--Td){var ch=hd[Td];wc(Rt.symbolInstances.get(ch),Rt.collisionArrays[ch])}else for(var Jd=X.symbolInstanceStart;Jd=0&&(X.text.placedSymbolArray.get(Yn).crossTileID=it>=0&&Yn!==it?0:J.crossTileID)}},Nn.prototype.markUsedOrientation=function(X,te,J){for(var ae=te===b.WritingMode.horizontal||te===b.WritingMode.horizontalOnly?te:0,it=te===b.WritingMode.vertical?te:0,Rt=0,en=[J.leftJustifiedTextSymbolIndex,J.centerJustifiedTextSymbolIndex,J.rightJustifiedTextSymbolIndex];Rt0,Hc=ae.placedOrientations[yl.crossTileID],wc=Hc===b.WritingMode.vertical,hd=Hc===b.WritingMode.horizontal||Hc===b.WritingMode.horizontalOnly;if(nu>0||xu>0){var Td=Cr(Cu.text);sa(X.text,nu,wc?Ti:Td),sa(X.text,xu,hd?Ti:Td);var ch=Cu.text.isHidden();[yl.rightJustifiedTextSymbolIndex,yl.centerJustifiedTextSymbolIndex,yl.leftJustifiedTextSymbolIndex].forEach(function(Mh){Mh>=0&&(X.text.placedSymbolArray.get(Mh).hidden=ch||wc?1:0)}),yl.verticalPlacedTextSymbolIndex>=0&&(X.text.placedSymbolArray.get(yl.verticalPlacedTextSymbolIndex).hidden=ch||hd?1:0);var Jd=ae.variableOffsets[yl.crossTileID];Jd&&ae.markUsedJustification(X,Jd.anchor,yl,Hc);var Xh=ae.placedOrientations[yl.crossTileID];Xh&&(ae.markUsedJustification(X,"left",yl,Xh),ae.markUsedOrientation(X,Xh,yl))}if(dc){var Nc=Cr(Cu.icon),Uc=!(Xo&&yl.verticalPlacedIconSymbolIndex&&wc);yl.placedIconSymbolIndex>=0&&(sa(X.icon,yl.numIconVertices,Uc?Nc:Ti),X.icon.placedSymbolArray.get(yl.placedIconSymbolIndex).hidden=Cu.icon.isHidden()),yl.verticalPlacedIconSymbolIndex>=0&&(sa(X.icon,yl.numVerticalIconVertices,Uc?Ti:Nc),X.icon.placedSymbolArray.get(yl.verticalPlacedIconSymbolIndex).hidden=Cu.icon.isHidden())}if(X.hasIconCollisionBoxData()||X.hasTextCollisionBoxData()){var tf=X.collisionArrays[za];if(tf){var dh=new b.Point(0,0);if(tf.textBox||tf.verticalTextBox){var nh=!0;if(Zr){var zh=ae.variableOffsets[Tu];zh?(dh=dn(zh.anchor,zh.width,zh.height,zh.textOffset,zh.textBoxScale),fr&&dh._rotate(es?ae.transform.angle:-ae.transform.angle)):nh=!1}tf.textBox&&tt(X.textCollisionBox.collisionVertexArray,Cu.text.placed,!nh||wc,dh.x,dh.y),tf.verticalTextBox&&tt(X.textCollisionBox.collisionVertexArray,Cu.text.placed,!nh||hd,dh.x,dh.y)}var _h=!!(!hd&&tf.verticalIconBox);tf.iconBox&&tt(X.iconCollisionBox.collisionVertexArray,Cu.icon.placed,_h,Xo?dh.x:0,Xo?dh.y:0),tf.verticalIconBox&&tt(X.iconCollisionBox.collisionVertexArray,Cu.icon.placed,!_h,Xo?dh.x:0,Xo?dh.y:0)}}},Vo=0;VoX},Nn.prototype.setStale=function(){this.stale=!0};var ht=Math.pow(2,25),vt=Math.pow(2,24),Fe=Math.pow(2,17),lt=Math.pow(2,16),Et=Math.pow(2,9),an=Math.pow(2,8),jn=Math.pow(2,1);function Cr(X){if(X.opacity===0&&!X.placed)return 0;if(X.opacity===1&&X.placed)return 4294967295;var te=X.placed?1:0,J=Math.floor(127*X.opacity);return J*ht+te*vt+J*Fe+te*lt+J*Et+te*an+J*jn+te}var Ti=0,$i=function(X){this._sortAcrossTiles=X.layout.get("symbol-z-order")!=="viewport-y"&&X.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};$i.prototype.continuePlacement=function(X,te,J,ae,it){for(var Rt=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var en=te[X[this._currentPlacementIndex]],Yn=this.placement.collisionIndex.transform.zoom;if(en.type==="symbol"&&(!en.minzoom||en.minzoom<=Yn)&&(!en.maxzoom||en.maxzoom>Yn)){if(this._inProgressLayer||(this._inProgressLayer=new $i(en)),this._inProgressLayer.continuePlacement(J[en.source],this.placement,this._showCollisionBoxes,en,Rt))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Vi.prototype.commit=function(X){return this.placement.commit(X),this.placement};var us=512/b.EXTENT/2,ks=function(X,te,J){this.tileID=X,this.indexedSymbolInstances={},this.bucketInstanceId=J;for(var ae=0;aeX.overscaledZ)for(var Yn in en){var Zr=en[Yn];Zr.tileID.isChildOf(X)&&Zr.findMatches(te.symbolInstances,X,it)}else{var fr=en[X.scaledTo(Number(Rt)).key];fr&&fr.findMatches(te.symbolInstances,X,it)}}for(var es=0;es1?"@2x":"",Xo=b.getJSON(Rt.transformRequest(Rt.normalizeSpriteURL(it,es,".json"),b.ResourceType.SpriteJSON),function(qs,Vo){Xo=null,fr||(fr=qs,Yn=Vo,sa())}),Ss=b.getImage(Rt.transformRequest(Rt.normalizeSpriteURL(it,es,".png"),b.ResourceType.SpriteImage),function(qs,Vo){Ss=null,fr||(fr=qs,Zr=Vo,sa())});function sa(){if(fr)en(fr);else if(Yn&&Zr){var qs=b.browser.getImageData(Zr),Vo={};for(var js in Yn){var za=Yn[js],yl=za.width,nu=za.height,xu=za.x,Tu=za.y,Cu=za.sdf,dc=za.pixelRatio,Hc=za.stretchX,wc=za.stretchY,hd=za.content,Td=new b.RGBAImage({width:yl,height:nu});b.RGBAImage.copy(qs,Td,{x:xu,y:Tu},{x:0,y:0},{width:yl,height:nu}),Vo[js]={data:Td,pixelRatio:dc,sdf:Cu,stretchX:Hc,stretchY:wc,content:hd}}en(null,Vo)}}return{cancel:function(){Xo&&(Xo.cancel(),Xo=null),Ss&&(Ss.cancel(),Ss=null)}}}(J,this.map._requestManager,function(it,Rt){if(ae._spriteRequest=null,it)ae.fire(new b.ErrorEvent(it));else if(Rt)for(var en in Rt)ae.imageManager.addImage(en,Rt[en]);ae.imageManager.setLoaded(!0),ae._availableImages=ae.imageManager.listImages(),ae.dispatcher.broadcast("setImages",ae._availableImages),ae.fire(new b.Event("data",{dataType:"style"}))})},te.prototype._validateLayer=function(J){var ae=this.sourceCaches[J.source];if(ae){var it=J.sourceLayer;if(it){var Rt=ae.getSource();(Rt.type==="geojson"||Rt.vectorLayerIds&&Rt.vectorLayerIds.indexOf(it)===-1)&&this.fire(new b.ErrorEvent(new Error('Source layer "'+it+'" does not exist on source "'+Rt.id+'" as specified by style layer "'+J.id+'"')))}}},te.prototype.loaded=function(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(var J in this.sourceCaches)if(!this.sourceCaches[J].loaded())return!1;return!!this.imageManager.isLoaded()},te.prototype._serializeLayers=function(J){for(var ae=[],it=0,Rt=J;it0)throw new Error("Unimplemented: "+Rt.map(function(en){return en.command}).join(", ")+".");return it.forEach(function(en){en.command!=="setTransition"&&ae[en.command].apply(ae,en.args)}),this.stylesheet=J,!0},te.prototype.addImage=function(J,ae){if(this.getImage(J))return this.fire(new b.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(J,ae),this._afterImageUpdated(J)},te.prototype.updateImage=function(J,ae){this.imageManager.updateImage(J,ae)},te.prototype.getImage=function(J){return this.imageManager.getImage(J)},te.prototype.removeImage=function(J){if(!this.getImage(J))return this.fire(new b.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(J),this._afterImageUpdated(J)},te.prototype._afterImageUpdated=function(J){this._availableImages=this.imageManager.listImages(),this._changedImages[J]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new b.Event("data",{dataType:"style"}))},te.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},te.prototype.addSource=function(J,ae,it){var Rt=this;if(it===void 0&&(it={}),this._checkLoaded(),this.sourceCaches[J]!==void 0)throw new Error("There is already a source with this ID");if(!ae.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(ae).join(", ")+".");if(!(["vector","raster","geojson","video","image"].indexOf(ae.type)>=0&&this._validate(b.validateStyle.source,"sources."+J,ae,null,it))){this.map&&this.map._collectResourceTiming&&(ae.collectResourceTiming=!0);var en=this.sourceCaches[J]=new Qn(J,ae,this.dispatcher);en.style=this,en.setEventedParent(this,function(){return{isSourceLoaded:Rt.loaded(),source:en.serialize(),sourceId:J}}),en.onAdd(this.map),this._changed=!0}},te.prototype.removeSource=function(J){if(this._checkLoaded(),this.sourceCaches[J]===void 0)throw new Error("There is no source with this ID");for(var ae in this._layers)if(this._layers[ae].source===J)return this.fire(new b.ErrorEvent(new Error('Source "'+J+'" cannot be removed while layer "'+ae+'" is using it.')));var it=this.sourceCaches[J];delete this.sourceCaches[J],delete this._updatedSources[J],it.fire(new b.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:J})),it.setEventedParent(null),it.clearTiles(),it.onRemove&&it.onRemove(this.map),this._changed=!0},te.prototype.setGeoJSONSourceData=function(J,ae){this._checkLoaded(),this.sourceCaches[J].getSource().setData(ae),this._changed=!0},te.prototype.getSource=function(J){return this.sourceCaches[J]&&this.sourceCaches[J].getSource()},te.prototype.addLayer=function(J,ae,it){it===void 0&&(it={}),this._checkLoaded();var Rt=J.id;if(this.getLayer(Rt))this.fire(new b.ErrorEvent(new Error('Layer with id "'+Rt+'" already exists on this map')));else{var en;if(J.type==="custom"){if(Cs(this,b.validateCustomStyleLayer(J)))return;en=b.createStyleLayer(J)}else{if(typeof J.source=="object"&&(this.addSource(Rt,J.source),J=b.clone$1(J),J=b.extend(J,{source:Rt})),this._validate(b.validateStyle.layer,"layers."+Rt,J,{arrayIndex:-1},it))return;en=b.createStyleLayer(J),this._validateLayer(en),en.setEventedParent(this,{layer:{id:Rt}}),this._serializedLayers[en.id]=en.serialize()}var Yn=ae?this._order.indexOf(ae):this._order.length;if(ae&&Yn===-1)this.fire(new b.ErrorEvent(new Error('Layer with id "'+ae+'" does not exist on this map.')));else{if(this._order.splice(Yn,0,Rt),this._layerOrderChanged=!0,this._layers[Rt]=en,this._removedLayers[Rt]&&en.source&&en.type!=="custom"){var Zr=this._removedLayers[Rt];delete this._removedLayers[Rt],Zr.type!==en.type?this._updatedSources[en.source]="clear":(this._updatedSources[en.source]="reload",this.sourceCaches[en.source].pause())}this._updateLayer(en),en.onAdd&&en.onAdd(this.map)}}},te.prototype.moveLayer=function(J,ae){if(this._checkLoaded(),this._changed=!0,this._layers[J]){if(J!==ae){var it=this._order.indexOf(J);this._order.splice(it,1);var Rt=ae?this._order.indexOf(ae):this._order.length;ae&&Rt===-1?this.fire(new b.ErrorEvent(new Error('Layer with id "'+ae+'" does not exist on this map.'))):(this._order.splice(Rt,0,J),this._layerOrderChanged=!0)}}else this.fire(new b.ErrorEvent(new Error("The layer '"+J+"' does not exist in the map's style and cannot be moved.")))},te.prototype.removeLayer=function(J){this._checkLoaded();var ae=this._layers[J];if(ae){ae.setEventedParent(null);var it=this._order.indexOf(J);this._order.splice(it,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[J]=ae,delete this._layers[J],delete this._serializedLayers[J],delete this._updatedLayers[J],delete this._updatedPaintProps[J],ae.onRemove&&ae.onRemove(this.map)}else this.fire(new b.ErrorEvent(new Error("The layer '"+J+"' does not exist in the map's style and cannot be removed.")))},te.prototype.getLayer=function(J){return this._layers[J]},te.prototype.hasLayer=function(J){return J in this._layers},te.prototype.setLayerZoomRange=function(J,ae,it){this._checkLoaded();var Rt=this.getLayer(J);Rt?Rt.minzoom===ae&&Rt.maxzoom===it||(ae!=null&&(Rt.minzoom=ae),it!=null&&(Rt.maxzoom=it),this._updateLayer(Rt)):this.fire(new b.ErrorEvent(new Error("The layer '"+J+"' does not exist in the map's style and cannot have zoom extent.")))},te.prototype.setFilter=function(J,ae,it){it===void 0&&(it={}),this._checkLoaded();var Rt=this.getLayer(J);if(Rt){if(!b.deepEqual(Rt.filter,ae))return ae==null?(Rt.filter=void 0,void this._updateLayer(Rt)):void(this._validate(b.validateStyle.filter,"layers."+Rt.id+".filter",ae,null,it)||(Rt.filter=b.clone$1(ae),this._updateLayer(Rt)))}else this.fire(new b.ErrorEvent(new Error("The layer '"+J+"' does not exist in the map's style and cannot be filtered.")))},te.prototype.getFilter=function(J){return b.clone$1(this.getLayer(J).filter)},te.prototype.setLayoutProperty=function(J,ae,it,Rt){Rt===void 0&&(Rt={}),this._checkLoaded();var en=this.getLayer(J);en?b.deepEqual(en.getLayoutProperty(ae),it)||(en.setLayoutProperty(ae,it,Rt),this._updateLayer(en)):this.fire(new b.ErrorEvent(new Error("The layer '"+J+"' does not exist in the map's style and cannot be styled.")))},te.prototype.getLayoutProperty=function(J,ae){var it=this.getLayer(J);if(it)return it.getLayoutProperty(ae);this.fire(new b.ErrorEvent(new Error("The layer '"+J+"' does not exist in the map's style.")))},te.prototype.setPaintProperty=function(J,ae,it,Rt){Rt===void 0&&(Rt={}),this._checkLoaded();var en=this.getLayer(J);en?b.deepEqual(en.getPaintProperty(ae),it)||(en.setPaintProperty(ae,it,Rt)&&this._updateLayer(en),this._changed=!0,this._updatedPaintProps[J]=!0):this.fire(new b.ErrorEvent(new Error("The layer '"+J+"' does not exist in the map's style and cannot be styled.")))},te.prototype.getPaintProperty=function(J,ae){return this.getLayer(J).getPaintProperty(ae)},te.prototype.setFeatureState=function(J,ae){this._checkLoaded();var it=J.source,Rt=J.sourceLayer,en=this.sourceCaches[it];if(en!==void 0){var Yn=en.getSource().type;Yn==="geojson"&&Rt?this.fire(new b.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):Yn!=="vector"||Rt?(J.id===void 0&&this.fire(new b.ErrorEvent(new Error("The feature id parameter must be provided."))),en.setFeatureState(Rt,J.id,ae)):this.fire(new b.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new b.ErrorEvent(new Error("The source '"+it+"' does not exist in the map's style.")))},te.prototype.removeFeatureState=function(J,ae){this._checkLoaded();var it=J.source,Rt=this.sourceCaches[it];if(Rt!==void 0){var en=Rt.getSource().type,Yn=en==="vector"?J.sourceLayer:void 0;en!=="vector"||Yn?ae&&typeof J.id!="string"&&typeof J.id!="number"?this.fire(new b.ErrorEvent(new Error("A feature id is required to remove its specific state property."))):Rt.removeFeatureState(Yn,J.id,ae):this.fire(new b.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new b.ErrorEvent(new Error("The source '"+it+"' does not exist in the map's style.")))},te.prototype.getFeatureState=function(J){this._checkLoaded();var ae=J.source,it=J.sourceLayer,Rt=this.sourceCaches[ae];if(Rt!==void 0){if(Rt.getSource().type!=="vector"||it)return J.id===void 0&&this.fire(new b.ErrorEvent(new Error("The feature id parameter must be provided."))),Rt.getFeatureState(it,J.id);this.fire(new b.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new b.ErrorEvent(new Error("The source '"+ae+"' does not exist in the map's style.")))},te.prototype.getTransition=function(){return b.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},te.prototype.serialize=function(){return b.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:b.mapObject(this.sourceCaches,function(J){return J.serialize()}),layers:this._serializeLayers(this._order)},function(J){return J!==void 0})},te.prototype._updateLayer=function(J){this._updatedLayers[J.id]=!0,J.source&&!this._updatedSources[J.source]&&this.sourceCaches[J.source].getSource().type!=="raster"&&(this._updatedSources[J.source]="reload",this.sourceCaches[J.source].pause()),this._changed=!0},te.prototype._flattenAndSortRenderedFeatures=function(J){for(var ae=this,it=function(Hc){return ae._layers[Hc].type==="fill-extrusion"},Rt={},en=[],Yn=this._order.length-1;Yn>=0;Yn--){var Zr=this._order[Yn];if(it(Zr)){Rt[Zr]=Yn;for(var fr=0,es=J;fr=0;Vo--){var js=this._order[Vo];if(it(js))for(var za=en.length-1;za>=0;za--){var yl=en[za].feature;if(Rt[yl.layer.id] 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),ju=Ml("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),rc=Ml("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,0,1);}"),Pc=Ml(`#pragma mapbox: define highp vec4 color +}`,"uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),Ua=Ml("varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),$u=Ml("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),rc=Ml("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,0,1);}"),Pc=Ml(`#pragma mapbox: define highp vec4 color #pragma mapbox: define lowp float opacity void main() { #pragma mapbox: initialize highp vec4 color @@ -8260,7 +8259,7 @@ gl_FragColor=vec4(1.0); void main() { #pragma mapbox: initialize highp vec4 outline_color #pragma mapbox: initialize lowp float opacity -gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),qi=Ml(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos; +gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),Ji=Ml(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos; #pragma mapbox: define lowp float opacity #pragma mapbox: define lowp vec4 pattern_from #pragma mapbox: define lowp vec4 pattern_to @@ -8284,7 +8283,7 @@ void main() { #pragma mapbox: initialize mediump vec4 pattern_to #pragma mapbox: initialize lowp float pixel_ratio_from #pragma mapbox: initialize lowp float pixel_ratio_to -vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),os=Ml(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b; +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),ss=Ml(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b; #pragma mapbox: define lowp float opacity #pragma mapbox: define lowp vec4 pattern_from #pragma mapbox: define lowp vec4 pattern_to @@ -8497,7 +8496,7 @@ void main() { #pragma mapbox: initialize lowp float offset #pragma mapbox: initialize mediump float width #pragma mapbox: initialize lowp float floorwidth -float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}`),ua=Ml(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a); +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}`),ca=Ml(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a); #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif @@ -8515,7 +8514,7 @@ void main() { #pragma mapbox: initialize lowp float opacity vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}`),cl=Ml(`#define SDF_PX 8.0 +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}`),ul=Ml(`#define SDF_PX 8.0 uniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1; #pragma mapbox: define highp vec4 fill_color #pragma mapbox: define highp vec4 halo_color @@ -8546,7 +8545,7 @@ void main() { #pragma mapbox: initialize lowp float halo_blur vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}`),Zl=Ml(`#define SDF_PX 8.0 +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}`),Hl=Ml(`#define SDF_PX 8.0 #define SDF 1.0 #define ICON 0.0 uniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1; @@ -8583,7 +8582,7 @@ void main() { #pragma mapbox: initialize lowp float halo_blur vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`);function Ml(X,ne){var Q=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,le=ne.match(/attribute ([\w]+) ([\w]+)/g),it=X.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),Rt=ne.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),en=Rt?Rt.concat(it):it,Yn={};return{fragmentSource:X=X.replace(Q,function(Zr,fr,es,Xo,Ss){return Yn[Ss]=!0,fr==="define"?` +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`);function Ml(X,te){var J=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,ae=te.match(/attribute ([\w]+) ([\w]+)/g),it=X.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),Rt=te.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),en=Rt?Rt.concat(it):it,Yn={};return{fragmentSource:X=X.replace(J,function(Zr,fr,es,Xo,Ss){return Yn[Ss]=!0,fr==="define"?` #ifndef HAS_UNIFORM_u_`+Ss+` varying `+es+" "+Xo+" "+Ss+`; #else @@ -8593,10 +8592,10 @@ uniform `+es+" "+Xo+" u_"+Ss+`; #ifdef HAS_UNIFORM_u_`+Ss+` `+es+" "+Xo+" "+Ss+" = u_"+Ss+`; #endif -`}),vertexSource:ne=ne.replace(Q,function(Zr,fr,es,Xo,Ss){var oa=Xo==="float"?"vec2":"vec4",qs=Ss.match(/color/)?"color":oa;return Yn[Ss]?fr==="define"?` +`}),vertexSource:te=te.replace(J,function(Zr,fr,es,Xo,Ss){var sa=Xo==="float"?"vec2":"vec4",qs=Ss.match(/color/)?"color":sa;return Yn[Ss]?fr==="define"?` #ifndef HAS_UNIFORM_u_`+Ss+` uniform lowp float u_`+Ss+`_t; -attribute `+es+" "+oa+" a_"+Ss+`; +attribute `+es+" "+sa+" a_"+Ss+`; varying `+es+" "+Xo+" "+Ss+`; #else uniform `+es+" "+Xo+" u_"+Ss+`; @@ -8616,7 +8615,7 @@ uniform `+es+" "+Xo+" u_"+Ss+`; `:fr==="define"?` #ifndef HAS_UNIFORM_u_`+Ss+` uniform lowp float u_`+Ss+`_t; -attribute `+es+" "+oa+" a_"+Ss+`; +attribute `+es+" "+sa+" a_"+Ss+`; #else uniform `+es+" "+Xo+" u_"+Ss+`; #endif @@ -8632,69 +8631,69 @@ uniform `+es+" "+Xo+" u_"+Ss+`; #else `+es+" "+Xo+" "+Ss+" = u_"+Ss+`; #endif -`}),staticAttributes:le,staticUniforms:en}}var Wa=Object.freeze({__proto__:null,prelude:ia,background:Nl,backgroundPattern:cs,circle:zi,clippingMask:Ji,heatmap:ta,heatmapTexture:ms,collisionBox:Ua,collisionCircle:ju,debug:rc,fill:Pc,fillOutline:ho,fillOutlinePattern:qi,fillPattern:os,fillExtrusion:$n,fillExtrusionPattern:mr,hillshadePrepare:Qr,hillshade:ni,line:Ki,lineGradient:ro,linePattern:Ei,lineSDF:ns,raster:ua,symbolIcon:Na,symbolSDF:cl,symbolTextAndIcon:Zl}),ku=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};function Xs(X){for(var ne=[],Q=0;Q>16,Yn>>16],u_pixel_coord_lower:[65535&en,65535&Yn]}}Ya.prototype.draw=function(X,ne,Q,le,it,Rt,en,Yn,Zr,fr,es,Xo,Ss,oa,qs,Wo){var Ws,za=X.gl;if(!this.failedToCreate){for(var yl in X.program.set(this.program),X.setDepthMode(Q),X.setStencilMode(le),X.setColorMode(it),X.setCullFace(Rt),this.fixedUniforms)this.fixedUniforms[yl].set(en[yl]);oa&&oa.setUniforms(X,this.binderUniforms,Xo,{zoom:Ss});for(var nu=(Ws={},Ws[za.LINES]=2,Ws[za.TRIANGLES]=3,Ws[za.LINE_STRIP]=1,Ws)[ne],xu=0,Tu=es.get();xu0?1-1/(1.001-en):-en),u_contrast_factor:(Rt=it.paint.get("raster-contrast"),Rt>0?1/(1-Rt):1+Rt),u_spin_weights:Xd(it.paint.get("raster-hue-rotate"))};var Rt,en};function Xd(X){X*=Math.PI/180;var ne=Math.sin(X),Q=Math.cos(X);return[(2*Q+1)/3,(-Math.sqrt(3)*ne-Q+1)/3,(Math.sqrt(3)*ne-Q+1)/3]}var sd,Mu=function(X,ne,Q,le,it,Rt,en,Yn,Zr,fr){var es=it.transform;return{u_is_size_zoom_constant:+(X==="constant"||X==="source"),u_is_size_feature_constant:+(X==="constant"||X==="camera"),u_size_t:ne?ne.uSizeT:0,u_size:ne?ne.uSize:0,u_camera_to_center_distance:es.cameraToCenterDistance,u_pitch:es.pitch/360*2*Math.PI,u_rotate_symbol:+Q,u_aspect_ratio:es.width/es.height,u_fade_change:it.options.fadeDuration?it.symbolFadeChange:1,u_matrix:Rt,u_label_plane_matrix:en,u_coord_matrix:Yn,u_is_text:+Zr,u_pitch_with_map:+le,u_texsize:fr,u_texture:0}},Fc=function(X,ne,Q,le,it,Rt,en,Yn,Zr,fr,es){var Xo=it.transform;return b.extend(Mu(X,ne,Q,le,it,Rt,en,Yn,Zr,fr),{u_gamma_scale:le?Math.cos(Xo._pitch)*Xo.cameraToCenterDistance:1,u_device_pixel_ratio:b.browser.devicePixelRatio,u_is_halo:+es})},hd=function(X,ne,Q,le,it,Rt,en,Yn,Zr,fr){return b.extend(Fc(X,ne,Q,le,it,Rt,en,Yn,!0,Zr,!0),{u_texsize_icon:fr,u_texture_icon:1})},vd=function(X,ne,Q){return{u_matrix:X,u_opacity:ne,u_color:Q}},Yd=function(X,ne,Q,le,it,Rt){return b.extend(function(en,Yn,Zr,fr){var es=Zr.imageManager.getPattern(en.from.toString()),Xo=Zr.imageManager.getPattern(en.to.toString()),Ss=Zr.imageManager.getPixelSize(),oa=Ss.width,qs=Ss.height,Wo=Math.pow(2,fr.tileID.overscaledZ),Ws=fr.tileSize*Math.pow(2,Zr.transform.tileZoom)/Wo,za=Ws*(fr.tileID.canonical.x+fr.tileID.wrap*Wo),yl=Ws*fr.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:es.tl,u_pattern_br_a:es.br,u_pattern_tl_b:Xo.tl,u_pattern_br_b:Xo.br,u_texsize:[oa,qs],u_mix:Yn.t,u_pattern_size_a:es.displaySize,u_pattern_size_b:Xo.displaySize,u_scale_a:Yn.fromScale,u_scale_b:Yn.toScale,u_tile_units_to_pixels:1/xs(fr,1,Zr.transform.tileZoom),u_pixel_coord_upper:[za>>16,yl>>16],u_pixel_coord_lower:[65535&za,65535&yl]}}(le,Rt,Q,it),{u_matrix:X,u_opacity:ne})},nh={fillExtrusion:function(X,ne){return{u_matrix:new b.UniformMatrix4f(X,ne.u_matrix),u_lightpos:new b.Uniform3f(X,ne.u_lightpos),u_lightintensity:new b.Uniform1f(X,ne.u_lightintensity),u_lightcolor:new b.Uniform3f(X,ne.u_lightcolor),u_vertical_gradient:new b.Uniform1f(X,ne.u_vertical_gradient),u_opacity:new b.Uniform1f(X,ne.u_opacity)}},fillExtrusionPattern:function(X,ne){return{u_matrix:new b.UniformMatrix4f(X,ne.u_matrix),u_lightpos:new b.Uniform3f(X,ne.u_lightpos),u_lightintensity:new b.Uniform1f(X,ne.u_lightintensity),u_lightcolor:new b.Uniform3f(X,ne.u_lightcolor),u_vertical_gradient:new b.Uniform1f(X,ne.u_vertical_gradient),u_height_factor:new b.Uniform1f(X,ne.u_height_factor),u_image:new b.Uniform1i(X,ne.u_image),u_texsize:new b.Uniform2f(X,ne.u_texsize),u_pixel_coord_upper:new b.Uniform2f(X,ne.u_pixel_coord_upper),u_pixel_coord_lower:new b.Uniform2f(X,ne.u_pixel_coord_lower),u_scale:new b.Uniform3f(X,ne.u_scale),u_fade:new b.Uniform1f(X,ne.u_fade),u_opacity:new b.Uniform1f(X,ne.u_opacity)}},fill:function(X,ne){return{u_matrix:new b.UniformMatrix4f(X,ne.u_matrix)}},fillPattern:function(X,ne){return{u_matrix:new b.UniformMatrix4f(X,ne.u_matrix),u_image:new b.Uniform1i(X,ne.u_image),u_texsize:new b.Uniform2f(X,ne.u_texsize),u_pixel_coord_upper:new b.Uniform2f(X,ne.u_pixel_coord_upper),u_pixel_coord_lower:new b.Uniform2f(X,ne.u_pixel_coord_lower),u_scale:new b.Uniform3f(X,ne.u_scale),u_fade:new b.Uniform1f(X,ne.u_fade)}},fillOutline:function(X,ne){return{u_matrix:new b.UniformMatrix4f(X,ne.u_matrix),u_world:new b.Uniform2f(X,ne.u_world)}},fillOutlinePattern:function(X,ne){return{u_matrix:new b.UniformMatrix4f(X,ne.u_matrix),u_world:new b.Uniform2f(X,ne.u_world),u_image:new b.Uniform1i(X,ne.u_image),u_texsize:new b.Uniform2f(X,ne.u_texsize),u_pixel_coord_upper:new b.Uniform2f(X,ne.u_pixel_coord_upper),u_pixel_coord_lower:new b.Uniform2f(X,ne.u_pixel_coord_lower),u_scale:new b.Uniform3f(X,ne.u_scale),u_fade:new b.Uniform1f(X,ne.u_fade)}},circle:function(X,ne){return{u_camera_to_center_distance:new b.Uniform1f(X,ne.u_camera_to_center_distance),u_scale_with_map:new b.Uniform1i(X,ne.u_scale_with_map),u_pitch_with_map:new b.Uniform1i(X,ne.u_pitch_with_map),u_extrude_scale:new b.Uniform2f(X,ne.u_extrude_scale),u_device_pixel_ratio:new b.Uniform1f(X,ne.u_device_pixel_ratio),u_matrix:new b.UniformMatrix4f(X,ne.u_matrix)}},collisionBox:function(X,ne){return{u_matrix:new b.UniformMatrix4f(X,ne.u_matrix),u_camera_to_center_distance:new b.Uniform1f(X,ne.u_camera_to_center_distance),u_pixels_to_tile_units:new b.Uniform1f(X,ne.u_pixels_to_tile_units),u_extrude_scale:new b.Uniform2f(X,ne.u_extrude_scale),u_overscale_factor:new b.Uniform1f(X,ne.u_overscale_factor)}},collisionCircle:function(X,ne){return{u_matrix:new b.UniformMatrix4f(X,ne.u_matrix),u_inv_matrix:new b.UniformMatrix4f(X,ne.u_inv_matrix),u_camera_to_center_distance:new b.Uniform1f(X,ne.u_camera_to_center_distance),u_viewport_size:new b.Uniform2f(X,ne.u_viewport_size)}},debug:function(X,ne){return{u_color:new b.UniformColor(X,ne.u_color),u_matrix:new b.UniformMatrix4f(X,ne.u_matrix),u_overlay:new b.Uniform1i(X,ne.u_overlay),u_overlay_scale:new b.Uniform1f(X,ne.u_overlay_scale)}},clippingMask:function(X,ne){return{u_matrix:new b.UniformMatrix4f(X,ne.u_matrix)}},heatmap:function(X,ne){return{u_extrude_scale:new b.Uniform1f(X,ne.u_extrude_scale),u_intensity:new b.Uniform1f(X,ne.u_intensity),u_matrix:new b.UniformMatrix4f(X,ne.u_matrix)}},heatmapTexture:function(X,ne){return{u_matrix:new b.UniformMatrix4f(X,ne.u_matrix),u_world:new b.Uniform2f(X,ne.u_world),u_image:new b.Uniform1i(X,ne.u_image),u_color_ramp:new b.Uniform1i(X,ne.u_color_ramp),u_opacity:new b.Uniform1f(X,ne.u_opacity)}},hillshade:function(X,ne){return{u_matrix:new b.UniformMatrix4f(X,ne.u_matrix),u_image:new b.Uniform1i(X,ne.u_image),u_latrange:new b.Uniform2f(X,ne.u_latrange),u_light:new b.Uniform2f(X,ne.u_light),u_shadow:new b.UniformColor(X,ne.u_shadow),u_highlight:new b.UniformColor(X,ne.u_highlight),u_accent:new b.UniformColor(X,ne.u_accent)}},hillshadePrepare:function(X,ne){return{u_matrix:new b.UniformMatrix4f(X,ne.u_matrix),u_image:new b.Uniform1i(X,ne.u_image),u_dimension:new b.Uniform2f(X,ne.u_dimension),u_zoom:new b.Uniform1f(X,ne.u_zoom),u_unpack:new b.Uniform4f(X,ne.u_unpack)}},line:function(X,ne){return{u_matrix:new b.UniformMatrix4f(X,ne.u_matrix),u_ratio:new b.Uniform1f(X,ne.u_ratio),u_device_pixel_ratio:new b.Uniform1f(X,ne.u_device_pixel_ratio),u_units_to_pixels:new b.Uniform2f(X,ne.u_units_to_pixels)}},lineGradient:function(X,ne){return{u_matrix:new b.UniformMatrix4f(X,ne.u_matrix),u_ratio:new b.Uniform1f(X,ne.u_ratio),u_device_pixel_ratio:new b.Uniform1f(X,ne.u_device_pixel_ratio),u_units_to_pixels:new b.Uniform2f(X,ne.u_units_to_pixels),u_image:new b.Uniform1i(X,ne.u_image),u_image_height:new b.Uniform1f(X,ne.u_image_height)}},linePattern:function(X,ne){return{u_matrix:new b.UniformMatrix4f(X,ne.u_matrix),u_texsize:new b.Uniform2f(X,ne.u_texsize),u_ratio:new b.Uniform1f(X,ne.u_ratio),u_device_pixel_ratio:new b.Uniform1f(X,ne.u_device_pixel_ratio),u_image:new b.Uniform1i(X,ne.u_image),u_units_to_pixels:new b.Uniform2f(X,ne.u_units_to_pixels),u_scale:new b.Uniform3f(X,ne.u_scale),u_fade:new b.Uniform1f(X,ne.u_fade)}},lineSDF:function(X,ne){return{u_matrix:new b.UniformMatrix4f(X,ne.u_matrix),u_ratio:new b.Uniform1f(X,ne.u_ratio),u_device_pixel_ratio:new b.Uniform1f(X,ne.u_device_pixel_ratio),u_units_to_pixels:new b.Uniform2f(X,ne.u_units_to_pixels),u_patternscale_a:new b.Uniform2f(X,ne.u_patternscale_a),u_patternscale_b:new b.Uniform2f(X,ne.u_patternscale_b),u_sdfgamma:new b.Uniform1f(X,ne.u_sdfgamma),u_image:new b.Uniform1i(X,ne.u_image),u_tex_y_a:new b.Uniform1f(X,ne.u_tex_y_a),u_tex_y_b:new b.Uniform1f(X,ne.u_tex_y_b),u_mix:new b.Uniform1f(X,ne.u_mix)}},raster:function(X,ne){return{u_matrix:new b.UniformMatrix4f(X,ne.u_matrix),u_tl_parent:new b.Uniform2f(X,ne.u_tl_parent),u_scale_parent:new b.Uniform1f(X,ne.u_scale_parent),u_buffer_scale:new b.Uniform1f(X,ne.u_buffer_scale),u_fade_t:new b.Uniform1f(X,ne.u_fade_t),u_opacity:new b.Uniform1f(X,ne.u_opacity),u_image0:new b.Uniform1i(X,ne.u_image0),u_image1:new b.Uniform1i(X,ne.u_image1),u_brightness_low:new b.Uniform1f(X,ne.u_brightness_low),u_brightness_high:new b.Uniform1f(X,ne.u_brightness_high),u_saturation_factor:new b.Uniform1f(X,ne.u_saturation_factor),u_contrast_factor:new b.Uniform1f(X,ne.u_contrast_factor),u_spin_weights:new b.Uniform3f(X,ne.u_spin_weights)}},symbolIcon:function(X,ne){return{u_is_size_zoom_constant:new b.Uniform1i(X,ne.u_is_size_zoom_constant),u_is_size_feature_constant:new b.Uniform1i(X,ne.u_is_size_feature_constant),u_size_t:new b.Uniform1f(X,ne.u_size_t),u_size:new b.Uniform1f(X,ne.u_size),u_camera_to_center_distance:new b.Uniform1f(X,ne.u_camera_to_center_distance),u_pitch:new b.Uniform1f(X,ne.u_pitch),u_rotate_symbol:new b.Uniform1i(X,ne.u_rotate_symbol),u_aspect_ratio:new b.Uniform1f(X,ne.u_aspect_ratio),u_fade_change:new b.Uniform1f(X,ne.u_fade_change),u_matrix:new b.UniformMatrix4f(X,ne.u_matrix),u_label_plane_matrix:new b.UniformMatrix4f(X,ne.u_label_plane_matrix),u_coord_matrix:new b.UniformMatrix4f(X,ne.u_coord_matrix),u_is_text:new b.Uniform1i(X,ne.u_is_text),u_pitch_with_map:new b.Uniform1i(X,ne.u_pitch_with_map),u_texsize:new b.Uniform2f(X,ne.u_texsize),u_texture:new b.Uniform1i(X,ne.u_texture)}},symbolSDF:function(X,ne){return{u_is_size_zoom_constant:new b.Uniform1i(X,ne.u_is_size_zoom_constant),u_is_size_feature_constant:new b.Uniform1i(X,ne.u_is_size_feature_constant),u_size_t:new b.Uniform1f(X,ne.u_size_t),u_size:new b.Uniform1f(X,ne.u_size),u_camera_to_center_distance:new b.Uniform1f(X,ne.u_camera_to_center_distance),u_pitch:new b.Uniform1f(X,ne.u_pitch),u_rotate_symbol:new b.Uniform1i(X,ne.u_rotate_symbol),u_aspect_ratio:new b.Uniform1f(X,ne.u_aspect_ratio),u_fade_change:new b.Uniform1f(X,ne.u_fade_change),u_matrix:new b.UniformMatrix4f(X,ne.u_matrix),u_label_plane_matrix:new b.UniformMatrix4f(X,ne.u_label_plane_matrix),u_coord_matrix:new b.UniformMatrix4f(X,ne.u_coord_matrix),u_is_text:new b.Uniform1i(X,ne.u_is_text),u_pitch_with_map:new b.Uniform1i(X,ne.u_pitch_with_map),u_texsize:new b.Uniform2f(X,ne.u_texsize),u_texture:new b.Uniform1i(X,ne.u_texture),u_gamma_scale:new b.Uniform1f(X,ne.u_gamma_scale),u_device_pixel_ratio:new b.Uniform1f(X,ne.u_device_pixel_ratio),u_is_halo:new b.Uniform1i(X,ne.u_is_halo)}},symbolTextAndIcon:function(X,ne){return{u_is_size_zoom_constant:new b.Uniform1i(X,ne.u_is_size_zoom_constant),u_is_size_feature_constant:new b.Uniform1i(X,ne.u_is_size_feature_constant),u_size_t:new b.Uniform1f(X,ne.u_size_t),u_size:new b.Uniform1f(X,ne.u_size),u_camera_to_center_distance:new b.Uniform1f(X,ne.u_camera_to_center_distance),u_pitch:new b.Uniform1f(X,ne.u_pitch),u_rotate_symbol:new b.Uniform1i(X,ne.u_rotate_symbol),u_aspect_ratio:new b.Uniform1f(X,ne.u_aspect_ratio),u_fade_change:new b.Uniform1f(X,ne.u_fade_change),u_matrix:new b.UniformMatrix4f(X,ne.u_matrix),u_label_plane_matrix:new b.UniformMatrix4f(X,ne.u_label_plane_matrix),u_coord_matrix:new b.UniformMatrix4f(X,ne.u_coord_matrix),u_is_text:new b.Uniform1i(X,ne.u_is_text),u_pitch_with_map:new b.Uniform1i(X,ne.u_pitch_with_map),u_texsize:new b.Uniform2f(X,ne.u_texsize),u_texsize_icon:new b.Uniform2f(X,ne.u_texsize_icon),u_texture:new b.Uniform1i(X,ne.u_texture),u_texture_icon:new b.Uniform1i(X,ne.u_texture_icon),u_gamma_scale:new b.Uniform1f(X,ne.u_gamma_scale),u_device_pixel_ratio:new b.Uniform1f(X,ne.u_device_pixel_ratio),u_is_halo:new b.Uniform1i(X,ne.u_is_halo)}},background:function(X,ne){return{u_matrix:new b.UniformMatrix4f(X,ne.u_matrix),u_opacity:new b.Uniform1f(X,ne.u_opacity),u_color:new b.UniformColor(X,ne.u_color)}},backgroundPattern:function(X,ne){return{u_matrix:new b.UniformMatrix4f(X,ne.u_matrix),u_opacity:new b.Uniform1f(X,ne.u_opacity),u_image:new b.Uniform1i(X,ne.u_image),u_pattern_tl_a:new b.Uniform2f(X,ne.u_pattern_tl_a),u_pattern_br_a:new b.Uniform2f(X,ne.u_pattern_br_a),u_pattern_tl_b:new b.Uniform2f(X,ne.u_pattern_tl_b),u_pattern_br_b:new b.Uniform2f(X,ne.u_pattern_br_b),u_texsize:new b.Uniform2f(X,ne.u_texsize),u_mix:new b.Uniform1f(X,ne.u_mix),u_pattern_size_a:new b.Uniform2f(X,ne.u_pattern_size_a),u_pattern_size_b:new b.Uniform2f(X,ne.u_pattern_size_b),u_scale_a:new b.Uniform1f(X,ne.u_scale_a),u_scale_b:new b.Uniform1f(X,ne.u_scale_b),u_pixel_coord_upper:new b.Uniform2f(X,ne.u_pixel_coord_upper),u_pixel_coord_lower:new b.Uniform2f(X,ne.u_pixel_coord_lower),u_tile_units_to_pixels:new b.Uniform1f(X,ne.u_tile_units_to_pixels)}}};function Wd(X,ne,Q,le,it,Rt,en){for(var Yn=X.context,Zr=Yn.gl,fr=X.useProgram("collisionBox"),es=[],Xo=0,Ss=0,oa=0;oa0){var xu=b.create(),Tu=za;b.mul(xu,Ws.placementInvProjMatrix,X.transform.glCoordMatrix),b.mul(xu,xu,Ws.placementViewportMatrix),es.push({circleArray:nu,circleOffset:Ss,transform:Tu,invTransform:xu}),Ss=Xo+=nu.length/4}yl&&fr.draw(Yn,Zr.LINES,li.disabled,Cr.disabled,X.colorModeForRenderPass(),ii.disabled,Vs(za,X.transform,Wo),Q.id,yl.layoutVertexBuffer,yl.indexBuffer,yl.segments,null,X.transform.zoom,null,null,yl.collisionVertexBuffer)}}if(en&&es.length){var Cu=X.useProgram("collisionCircle"),dc=new b.StructArrayLayout2f1f2i16;dc.resize(4*Xo),dc._trim();for(var Zc=0,wc=0,fd=es;wc=0&&(qs[Ws.associatedIconIndex]={shiftedAnchor:dc,angle:Zc})}else fs(Ws.numGlyphs,Ss)}if(es){oa.clear();for(var fd=X.icon.placedSymbolArray,Td=0;Td0){var en=b.browser.now(),Yn=(en-X.timeAdded)/Rt,Zr=ne?(en-ne.timeAdded)/Rt:-1,fr=Q.getSource(),es=it.coveringZoomLevel({tileSize:fr.tileSize,roundZoom:fr.roundZoom}),Xo=!ne||Math.abs(ne.tileID.overscaledZ-es)>Math.abs(X.tileID.overscaledZ-es),Ss=Xo&&X.refreshedUponExpiration?1:b.clamp(Xo?Yn:1-Zr,0,1);return X.refreshedUponExpiration&&Yn>=1&&(X.refreshedUponExpiration=!1),ne?{opacity:1,mix:1-Ss}:{opacity:Ss,mix:0}}return{opacity:1,mix:0}}var xp=new b.Color(1,0,0,1),Nf=new b.Color(0,1,0,1),ch=new b.Color(0,0,1,1),Th=new b.Color(1,0,1,1),yu=new b.Color(0,1,1,1);function ff(X,ne,Q,le){Bu(X,0,ne+Q/2,X.transform.width,Q,le)}function Ja(X,ne,Q,le){Bu(X,ne-Q/2,0,Q,X.transform.height,le)}function Bu(X,ne,Q,le,it,Rt){var en=X.context,Yn=en.gl;Yn.enable(Yn.SCISSOR_TEST),Yn.scissor(ne*b.browser.devicePixelRatio,Q*b.browser.devicePixelRatio,le*b.browser.devicePixelRatio,it*b.browser.devicePixelRatio),en.clear({color:Rt}),Yn.disable(Yn.SCISSOR_TEST)}function wd(X,ne,Q){var le=X.context,it=le.gl,Rt=Q.posMatrix,en=X.useProgram("debug"),Yn=li.disabled,Zr=Cr.disabled,fr=X.colorModeForRenderPass();le.activeTexture.set(it.TEXTURE0),X.emptyTexture.bind(it.LINEAR,it.CLAMP_TO_EDGE),en.draw(le,it.LINE_STRIP,Yn,Zr,fr,ii.disabled,Il(Rt,b.Color.red),"$debug",X.debugBuffer,X.tileBorderIndexBuffer,X.debugSegments);var es=ne.getTileByID(Q.key).latestRawTileData,Xo=Math.floor((es&&es.byteLength||0)/1024),Ss=ne.getTile(Q).tileSize,oa=512/Math.min(Ss,512)*(Q.overscaledZ/X.transform.zoom)*.5,qs=Q.canonical.toString();Q.overscaledZ!==Q.canonical.z&&(qs+=" => "+Q.overscaledZ),function(Wo,Ws){Wo.initDebugOverlayCanvas();var za=Wo.debugOverlayCanvas,yl=Wo.context.gl,nu=Wo.debugOverlayCanvas.getContext("2d");nu.clearRect(0,0,za.width,za.height),nu.shadowColor="white",nu.shadowBlur=2,nu.lineWidth=1.5,nu.strokeStyle="white",nu.textBaseline="top",nu.font="bold 36px Open Sans, sans-serif",nu.fillText(Ws,5,5),nu.strokeText(Ws,5,5),Wo.debugOverlayTexture.update(za),Wo.debugOverlayTexture.bind(yl.LINEAR,yl.CLAMP_TO_EDGE)}(X,qs+" "+Xo+"kb"),en.draw(le,it.TRIANGLES,Yn,Zr,qr.alphaBlended,ii.disabled,Il(Rt,b.Color.transparent,oa),"$debug",X.debugBuffer,X.quadTriangleIndexBuffer,X.debugSegments)}var qd={symbol:function(X,ne,Q,le,it){if(X.renderPass==="translucent"){var Rt=Cr.disabled,en=X.colorModeForRenderPass();Q.layout.get("text-variable-anchor")&&function(Yn,Zr,fr,es,Xo,Ss,oa){for(var qs=Zr.transform,Wo=Xo==="map",Ws=Ss==="map",za=0,yl=Yn;za256&&this.clearStencil(),Q.setColorMode(qr.disabled),Q.setDepthMode(li.disabled);var it=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var Rt=0,en=ne;Rt256&&this.clearStencil();var X=this.nextStencilID++,ne=this.context.gl;return new Cr({func:ne.NOTEQUAL,mask:255},X,255,ne.KEEP,ne.KEEP,ne.REPLACE)},Ba.prototype.stencilModeForClipping=function(X){var ne=this.context.gl;return new Cr({func:ne.EQUAL,mask:255},this._tileClippingMaskIDs[X.key],0,ne.KEEP,ne.KEEP,ne.REPLACE)},Ba.prototype.stencilConfigForOverlap=function(X){var ne,Q=this.context.gl,le=X.sort(function(Zr,fr){return fr.overscaledZ-Zr.overscaledZ}),it=le[le.length-1].overscaledZ,Rt=le[0].overscaledZ-it+1;if(Rt>1){this.currentStencilSource=void 0,this.nextStencilID+Rt>256&&this.clearStencil();for(var en={},Yn=0;Yn=0;this.currentLayer--){var nu=this.style._layers[le[this.currentLayer]],xu=it[nu.source],Tu=fr[nu.source];this._renderTileClippingMasks(nu,Tu),this.renderLayer(this,xu,nu,Tu)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?ne.pop():null},Ba.prototype.isPatternMissing=function(X){if(!X)return!1;if(!X.from||!X.to)return!0;var ne=this.imageManager.getPattern(X.from.toString()),Q=this.imageManager.getPattern(X.to.toString());return!ne||!Q},Ba.prototype.useProgram=function(X,ne){this.cache=this.cache||{};var Q=""+X+(ne?ne.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[Q]||(this.cache[Q]=new Ya(this.context,X,Wa[X],ne,nh[X],this._showOverdrawInspector)),this.cache[Q]},Ba.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},Ba.prototype.setBaseState=function(){var X=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(X.FUNC_ADD)},Ba.prototype.initDebugOverlayCanvas=function(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=b.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new b.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))},Ba.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var ru=function(X,ne){this.points=X,this.planes=ne};ru.fromInvProjectionMatrix=function(X,ne,Q){var le=Math.pow(2,Q),it=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(function(en){return b.transformMat4([],en,X)}).map(function(en){return b.scale$1([],en,1/en[3]/ne*le)}),Rt=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(function(en){var Yn=b.sub([],it[en[0]],it[en[1]]),Zr=b.sub([],it[en[2]],it[en[1]]),fr=b.normalize([],b.cross([],Yn,Zr)),es=-b.dot(fr,it[en[1]]);return fr.concat(es)});return new ru(it,Rt)};var zl=function(X,ne){this.min=X,this.max=ne,this.center=b.scale$2([],b.add([],this.min,this.max),.5)};zl.prototype.quadrant=function(X){for(var ne=[X%2==0,X<2],Q=b.clone$2(this.min),le=b.clone$2(this.max),it=0;it=0;if(Rt===0)return 0;Rt!==ne.length&&(Q=!1)}if(Q)return 2;for(var Yn=0;Yn<3;Yn++){for(var Zr=Number.MAX_VALUE,fr=-Number.MAX_VALUE,es=0;esthis.max[Yn]-this.min[Yn])return 0}return 1};var Au=function(X,ne,Q,le){if(X===void 0&&(X=0),ne===void 0&&(ne=0),Q===void 0&&(Q=0),le===void 0&&(le=0),isNaN(X)||X<0||isNaN(ne)||ne<0||isNaN(Q)||Q<0||isNaN(le)||le<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=X,this.bottom=ne,this.left=Q,this.right=le};Au.prototype.interpolate=function(X,ne,Q){return ne.top!=null&&X.top!=null&&(this.top=b.number(X.top,ne.top,Q)),ne.bottom!=null&&X.bottom!=null&&(this.bottom=b.number(X.bottom,ne.bottom,Q)),ne.left!=null&&X.left!=null&&(this.left=b.number(X.left,ne.left,Q)),ne.right!=null&&X.right!=null&&(this.right=b.number(X.right,ne.right,Q)),this},Au.prototype.getCenter=function(X,ne){var Q=b.clamp((this.left+X-this.right)/2,0,X),le=b.clamp((this.top+ne-this.bottom)/2,0,ne);return new b.Point(Q,le)},Au.prototype.equals=function(X){return this.top===X.top&&this.bottom===X.bottom&&this.left===X.left&&this.right===X.right},Au.prototype.clone=function(){return new Au(this.top,this.bottom,this.left,this.right)},Au.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var Uu=function(X,ne,Q,le,it){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=it===void 0||it,this._minZoom=X||0,this._maxZoom=ne||22,this._minPitch=Q==null?0:Q,this._maxPitch=le==null?60:le,this.setMaxBounds(),this.width=0,this.height=0,this._center=new b.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Au,this._posMatrixCache={},this._alignedPosMatrixCache={}},Vd={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};Uu.prototype.clone=function(){var X=new Uu(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return X.tileSize=this.tileSize,X.latRange=this.latRange,X.width=this.width,X.height=this.height,X._center=this._center,X.zoom=this.zoom,X.angle=this.angle,X._fov=this._fov,X._pitch=this._pitch,X._unmodified=this._unmodified,X._edgeInsets=this._edgeInsets.clone(),X._calcMatrices(),X},Vd.minZoom.get=function(){return this._minZoom},Vd.minZoom.set=function(X){this._minZoom!==X&&(this._minZoom=X,this.zoom=Math.max(this.zoom,X))},Vd.maxZoom.get=function(){return this._maxZoom},Vd.maxZoom.set=function(X){this._maxZoom!==X&&(this._maxZoom=X,this.zoom=Math.min(this.zoom,X))},Vd.minPitch.get=function(){return this._minPitch},Vd.minPitch.set=function(X){this._minPitch!==X&&(this._minPitch=X,this.pitch=Math.max(this.pitch,X))},Vd.maxPitch.get=function(){return this._maxPitch},Vd.maxPitch.set=function(X){this._maxPitch!==X&&(this._maxPitch=X,this.pitch=Math.min(this.pitch,X))},Vd.renderWorldCopies.get=function(){return this._renderWorldCopies},Vd.renderWorldCopies.set=function(X){X===void 0?X=!0:X===null&&(X=!1),this._renderWorldCopies=X},Vd.worldSize.get=function(){return this.tileSize*this.scale},Vd.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},Vd.size.get=function(){return new b.Point(this.width,this.height)},Vd.bearing.get=function(){return-this.angle/Math.PI*180},Vd.bearing.set=function(X){var ne=-b.wrap(X,-180,180)*Math.PI/180;this.angle!==ne&&(this._unmodified=!1,this.angle=ne,this._calcMatrices(),this.rotationMatrix=b.create$2(),b.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},Vd.pitch.get=function(){return this._pitch/Math.PI*180},Vd.pitch.set=function(X){var ne=b.clamp(X,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==ne&&(this._unmodified=!1,this._pitch=ne,this._calcMatrices())},Vd.fov.get=function(){return this._fov/Math.PI*180},Vd.fov.set=function(X){X=Math.max(.01,Math.min(60,X)),this._fov!==X&&(this._unmodified=!1,this._fov=X/180*Math.PI,this._calcMatrices())},Vd.zoom.get=function(){return this._zoom},Vd.zoom.set=function(X){var ne=Math.min(Math.max(X,this.minZoom),this.maxZoom);this._zoom!==ne&&(this._unmodified=!1,this._zoom=ne,this.scale=this.zoomScale(ne),this.tileZoom=Math.floor(ne),this.zoomFraction=ne-this.tileZoom,this._constrain(),this._calcMatrices())},Vd.center.get=function(){return this._center},Vd.center.set=function(X){X.lat===this._center.lat&&X.lng===this._center.lng||(this._unmodified=!1,this._center=X,this._constrain(),this._calcMatrices())},Vd.padding.get=function(){return this._edgeInsets.toJSON()},Vd.padding.set=function(X){this._edgeInsets.equals(X)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,X,1),this._calcMatrices())},Vd.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},Uu.prototype.isPaddingEqual=function(X){return this._edgeInsets.equals(X)},Uu.prototype.interpolatePadding=function(X,ne,Q){this._unmodified=!1,this._edgeInsets.interpolate(X,ne,Q),this._constrain(),this._calcMatrices()},Uu.prototype.coveringZoomLevel=function(X){var ne=(X.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/X.tileSize));return Math.max(0,ne)},Uu.prototype.getVisibleUnwrappedCoordinates=function(X){var ne=[new b.UnwrappedTileID(0,X)];if(this._renderWorldCopies)for(var Q=this.pointCoordinate(new b.Point(0,0)),le=this.pointCoordinate(new b.Point(this.width,0)),it=this.pointCoordinate(new b.Point(this.width,this.height)),Rt=this.pointCoordinate(new b.Point(0,this.height)),en=Math.floor(Math.min(Q.x,le.x,it.x,Rt.x)),Yn=Math.floor(Math.max(Q.x,le.x,it.x,Rt.x)),Zr=en-1;Zr<=Yn+1;Zr++)Zr!==0&&ne.push(new b.UnwrappedTileID(Zr,X));return ne},Uu.prototype.coveringTiles=function(X){var ne=this.coveringZoomLevel(X),Q=ne;if(X.minzoom!==void 0&&neX.maxzoom&&(ne=X.maxzoom);var le=b.MercatorCoordinate.fromLngLat(this.center),it=Math.pow(2,ne),Rt=[it*le.x,it*le.y,0],en=ru.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,ne),Yn=X.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(Yn=ne);var Zr=function(wc){return{aabb:new zl([wc*it,0,0],[(wc+1)*it,it,0]),zoom:0,x:0,y:0,wrap:wc,fullyVisible:!1}},fr=[],es=[],Xo=ne,Ss=X.reparseOverscaled?Q:ne;if(this._renderWorldCopies)for(var oa=1;oa<=3;oa++)fr.push(Zr(-oa)),fr.push(Zr(oa));for(fr.push(Zr(0));fr.length>0;){var qs=fr.pop(),Wo=qs.x,Ws=qs.y,za=qs.fullyVisible;if(!za){var yl=qs.aabb.intersects(en);if(yl===0)continue;za=yl===2}var nu=qs.aabb.distanceX(Rt),xu=qs.aabb.distanceY(Rt),Tu=Math.max(Math.abs(nu),Math.abs(xu));if(qs.zoom===Xo||Tu>3+(1<=Yn)es.push({tileID:new b.OverscaledTileID(qs.zoom===Xo?Ss:qs.zoom,qs.wrap,qs.zoom,Wo,Ws),distanceSq:b.sqrLen([Rt[0]-.5-Wo,Rt[1]-.5-Ws])});else for(var Cu=0;Cu<4;Cu++){var dc=(Wo<<1)+Cu%2,Zc=(Ws<<1)+(Cu>>1);fr.push({aabb:qs.aabb.quadrant(Cu),zoom:qs.zoom+1,x:dc,y:Zc,wrap:qs.wrap,fullyVisible:za})}}return es.sort(function(wc,fd){return wc.distanceSq-fd.distanceSq}).map(function(wc){return wc.tileID})},Uu.prototype.resize=function(X,ne){this.width=X,this.height=ne,this.pixelsToGLUnits=[2/X,-2/ne],this._constrain(),this._calcMatrices()},Vd.unmodified.get=function(){return this._unmodified},Uu.prototype.zoomScale=function(X){return Math.pow(2,X)},Uu.prototype.scaleZoom=function(X){return Math.log(X)/Math.LN2},Uu.prototype.project=function(X){var ne=b.clamp(X.lat,-this.maxValidLatitude,this.maxValidLatitude);return new b.Point(b.mercatorXfromLng(X.lng)*this.worldSize,b.mercatorYfromLat(ne)*this.worldSize)},Uu.prototype.unproject=function(X){return new b.MercatorCoordinate(X.x/this.worldSize,X.y/this.worldSize).toLngLat()},Vd.point.get=function(){return this.project(this.center)},Uu.prototype.setLocationAtPoint=function(X,ne){var Q=this.pointCoordinate(ne),le=this.pointCoordinate(this.centerPoint),it=this.locationCoordinate(X),Rt=new b.MercatorCoordinate(it.x-(Q.x-le.x),it.y-(Q.y-le.y));this.center=this.coordinateLocation(Rt),this._renderWorldCopies&&(this.center=this.center.wrap())},Uu.prototype.locationPoint=function(X){return this.coordinatePoint(this.locationCoordinate(X))},Uu.prototype.pointLocation=function(X){return this.coordinateLocation(this.pointCoordinate(X))},Uu.prototype.locationCoordinate=function(X){return b.MercatorCoordinate.fromLngLat(X)},Uu.prototype.coordinateLocation=function(X){return X.toLngLat()},Uu.prototype.pointCoordinate=function(X){var ne=[X.x,X.y,0,1],Q=[X.x,X.y,1,1];b.transformMat4(ne,ne,this.pixelMatrixInverse),b.transformMat4(Q,Q,this.pixelMatrixInverse);var le=ne[3],it=Q[3],Rt=ne[1]/le,en=Q[1]/it,Yn=ne[2]/le,Zr=Q[2]/it,fr=Yn===Zr?0:(0-Yn)/(Zr-Yn);return new b.MercatorCoordinate(b.number(ne[0]/le,Q[0]/it,fr)/this.worldSize,b.number(Rt,en,fr)/this.worldSize)},Uu.prototype.coordinatePoint=function(X){var ne=[X.x*this.worldSize,X.y*this.worldSize,0,1];return b.transformMat4(ne,ne,this.pixelMatrix),new b.Point(ne[0]/ne[3],ne[1]/ne[3])},Uu.prototype.getBounds=function(){return new b.LngLatBounds().extend(this.pointLocation(new b.Point(0,0))).extend(this.pointLocation(new b.Point(this.width,0))).extend(this.pointLocation(new b.Point(this.width,this.height))).extend(this.pointLocation(new b.Point(0,this.height)))},Uu.prototype.getMaxBounds=function(){return this.latRange&&this.latRange.length===2&&this.lngRange&&this.lngRange.length===2?new b.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},Uu.prototype.setMaxBounds=function(X){X?(this.lngRange=[X.getWest(),X.getEast()],this.latRange=[X.getSouth(),X.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},Uu.prototype.calculatePosMatrix=function(X,ne){ne===void 0&&(ne=!1);var Q=X.key,le=ne?this._alignedPosMatrixCache:this._posMatrixCache;if(le[Q])return le[Q];var it=X.canonical,Rt=this.worldSize/this.zoomScale(it.z),en=it.x+Math.pow(2,it.z)*X.wrap,Yn=b.identity(new Float64Array(16));return b.translate(Yn,Yn,[en*Rt,it.y*Rt,0]),b.scale(Yn,Yn,[Rt/b.EXTENT,Rt/b.EXTENT,1]),b.multiply(Yn,ne?this.alignedProjMatrix:this.projMatrix,Yn),le[Q]=new Float32Array(Yn),le[Q]},Uu.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},Uu.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var X,ne,Q,le,it=-90,Rt=90,en=-180,Yn=180,Zr=this.size,fr=this._unmodified;if(this.latRange){var es=this.latRange;it=b.mercatorYfromLat(es[1])*this.worldSize,X=(Rt=b.mercatorYfromLat(es[0])*this.worldSize)-itRt&&(le=Rt-Wo)}if(this.lngRange){var Ws=Ss.x,za=Zr.x/2;Ws-zaYn&&(Q=Yn-za)}Q===void 0&&le===void 0||(this.center=this.unproject(new b.Point(Q!==void 0?Q:Ss.x,le!==void 0?le:Ss.y))),this._unmodified=fr,this._constraining=!1}},Uu.prototype._calcMatrices=function(){if(this.height){var X=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;var ne=Math.PI/2+this._pitch,Q=this._fov*(.5+X.y/this.height),le=Math.sin(Q)*this.cameraToCenterDistance/Math.sin(b.clamp(Math.PI-ne-Q,.01,Math.PI-.01)),it=this.point,Rt=it.x,en=it.y,Yn=1.01*(Math.cos(Math.PI/2-this._pitch)*le+this.cameraToCenterDistance),Zr=this.height/50,fr=new Float64Array(16);b.perspective(fr,this._fov,this.width/this.height,Zr,Yn),fr[8]=2*-X.x/this.width,fr[9]=2*X.y/this.height,b.scale(fr,fr,[1,-1,1]),b.translate(fr,fr,[0,0,-this.cameraToCenterDistance]),b.rotateX(fr,fr,this._pitch),b.rotateZ(fr,fr,this.angle),b.translate(fr,fr,[-Rt,-en,0]),this.mercatorMatrix=b.scale([],fr,[this.worldSize,this.worldSize,this.worldSize]),b.scale(fr,fr,[1,1,b.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=fr,this.invProjMatrix=b.invert([],this.projMatrix);var es=this.width%2/2,Xo=this.height%2/2,Ss=Math.cos(this.angle),oa=Math.sin(this.angle),qs=Rt-Math.round(Rt)+Ss*es+oa*Xo,Wo=en-Math.round(en)+Ss*Xo+oa*es,Ws=new Float64Array(fr);if(b.translate(Ws,Ws,[qs>.5?qs-1:qs,Wo>.5?Wo-1:Wo,0]),this.alignedProjMatrix=Ws,fr=b.create(),b.scale(fr,fr,[this.width/2,-this.height/2,1]),b.translate(fr,fr,[1,-1,0]),this.labelPlaneMatrix=fr,fr=b.create(),b.scale(fr,fr,[1,-1,1]),b.translate(fr,fr,[-1,-1,0]),b.scale(fr,fr,[2/this.width,2/this.height,1]),this.glCoordMatrix=fr,this.pixelMatrix=b.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(fr=b.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=fr,this._posMatrixCache={},this._alignedPosMatrixCache={}}},Uu.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var X=this.pointCoordinate(new b.Point(0,0)),ne=[X.x*this.worldSize,X.y*this.worldSize,0,1];return b.transformMat4(ne,ne,this.pixelMatrix)[3]/this.cameraToCenterDistance},Uu.prototype.getCameraPoint=function(){var X=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new b.Point(0,X))},Uu.prototype.getCameraQueryGeometry=function(X){var ne=this.getCameraPoint();if(X.length===1)return[X[0],ne];for(var Q=ne.x,le=ne.y,it=ne.x,Rt=ne.y,en=0,Yn=X;en=3&&!X.some(function(Q){return isNaN(Q)})){var ne=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(X[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+X[2],+X[1]],zoom:+X[0],bearing:ne,pitch:+(X[4]||0)}),!0}return!1},Ud.prototype._updateHashUnthrottled=function(){var X=b.window.location.href.replace(/(#.+)?$/,this.getHashString());try{b.window.history.replaceState(b.window.history.state,null,X)}catch(ne){}};var sh={linearity:.3,easing:b.bezier(0,0,.3,1)},Vf=b.extend({deceleration:2500,maxSpeed:1400},sh),vf=b.extend({deceleration:20,maxSpeed:1400},sh),Uh=b.extend({deceleration:1e3,maxSpeed:360},sh),kf=b.extend({deceleration:1e3,maxSpeed:90},sh),Bh=function(X){this._map=X,this.clear()};function Kf(X,ne){(!X.duration||X.duration0&&ne-X[0].time>160;)X.shift()},Bh.prototype._onMoveEnd=function(X){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var ne={zoom:0,bearing:0,pitch:0,pan:new b.Point(0,0),pinchAround:void 0,around:void 0},Q=0,le=this._inertiaBuffer;Q=this._clickTolerance||this._map.fire(new ed(X.type,this._map,X))},cf.prototype.dblclick=function(X){return this._firePreventable(new ed(X.type,this._map,X))},cf.prototype.mouseover=function(X){this._map.fire(new ed(X.type,this._map,X))},cf.prototype.mouseout=function(X){this._map.fire(new ed(X.type,this._map,X))},cf.prototype.touchstart=function(X){return this._firePreventable(new Vh(X.type,this._map,X))},cf.prototype.touchmove=function(X){this._map.fire(new Vh(X.type,this._map,X))},cf.prototype.touchend=function(X){this._map.fire(new Vh(X.type,this._map,X))},cf.prototype.touchcancel=function(X){this._map.fire(new Vh(X.type,this._map,X))},cf.prototype._firePreventable=function(X){if(this._map.fire(X),X.defaultPrevented)return{}},cf.prototype.isEnabled=function(){return!0},cf.prototype.isActive=function(){return!1},cf.prototype.enable=function(){},cf.prototype.disable=function(){};var Qc=function(X){this._map=X};Qc.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Qc.prototype.mousemove=function(X){this._map.fire(new ed(X.type,this._map,X))},Qc.prototype.mousedown=function(){this._delayContextMenu=!0},Qc.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new ed("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Qc.prototype.contextmenu=function(X){this._delayContextMenu?this._contextMenuEvent=X:this._map.fire(new ed(X.type,this._map,X)),this._map.listens("contextmenu")&&X.preventDefault()},Qc.prototype.isEnabled=function(){return!0},Qc.prototype.isActive=function(){return!1},Qc.prototype.enable=function(){},Qc.prototype.disable=function(){};var ka=function(X,ne){this._map=X,this._el=X.getCanvasContainer(),this._container=X.getContainer(),this._clickTolerance=ne.clickTolerance||1};function as(X,ne){for(var Q={},le=0;lethis.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===void 0&&(this.startTime=X.timeStamp),Q.length===this.numTouches&&(this.centroid=function(le){for(var it=new b.Point(0,0),Rt=0,en=le;Rt30)&&(this.aborted=!0)}}},Op.prototype.touchend=function(X,ne,Q){if((!this.centroid||X.timeStamp-this.startTime>500)&&(this.aborted=!0),Q.length===0){var le=!this.aborted&&this.centroid;if(this.reset(),le)return le}};var Qi=function(X){this.singleTap=new Op(X),this.numTaps=X.numTaps,this.reset()};Qi.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},Qi.prototype.touchstart=function(X,ne,Q){this.singleTap.touchstart(X,ne,Q)},Qi.prototype.touchmove=function(X,ne,Q){this.singleTap.touchmove(X,ne,Q)},Qi.prototype.touchend=function(X,ne,Q){var le=this.singleTap.touchend(X,ne,Q);if(le){var it=X.timeStamp-this.lastTime<500,Rt=!this.lastTap||this.lastTap.dist(le)<30;if(it&&Rt||this.reset(),this.count++,this.lastTime=X.timeStamp,this.lastTap=le,this.count===this.numTaps)return this.reset(),le}};var bc=function(){this._zoomIn=new Qi({numTouches:1,numTaps:2}),this._zoomOut=new Qi({numTouches:2,numTaps:1}),this.reset()};bc.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},bc.prototype.touchstart=function(X,ne,Q){this._zoomIn.touchstart(X,ne,Q),this._zoomOut.touchstart(X,ne,Q)},bc.prototype.touchmove=function(X,ne,Q){this._zoomIn.touchmove(X,ne,Q),this._zoomOut.touchmove(X,ne,Q)},bc.prototype.touchend=function(X,ne,Q){var le=this,it=this._zoomIn.touchend(X,ne,Q),Rt=this._zoomOut.touchend(X,ne,Q);return it?(this._active=!0,X.preventDefault(),setTimeout(function(){return le.reset()},0),{cameraAnimation:function(en){return en.easeTo({duration:300,zoom:en.getZoom()+1,around:en.unproject(it)},{originalEvent:X})}}):Rt?(this._active=!0,X.preventDefault(),setTimeout(function(){return le.reset()},0),{cameraAnimation:function(en){return en.easeTo({duration:300,zoom:en.getZoom()-1,around:en.unproject(Rt)},{originalEvent:X})}}):void 0},bc.prototype.touchcancel=function(){this.reset()},bc.prototype.enable=function(){this._enabled=!0},bc.prototype.disable=function(){this._enabled=!1,this.reset()},bc.prototype.isEnabled=function(){return this._enabled},bc.prototype.isActive=function(){return this._active};var yf={0:1,2:2},Qu=function(X){this.reset(),this._clickTolerance=X.clickTolerance||1};Qu.prototype.blur=function(){this.reset()},Qu.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},Qu.prototype._correctButton=function(X,ne){return!1},Qu.prototype._move=function(X,ne){return{}},Qu.prototype.mousedown=function(X,ne){if(!this._lastPoint){var Q=k.mouseButton(X);this._correctButton(X,Q)&&(this._lastPoint=ne,this._eventButton=Q)}},Qu.prototype.mousemoveWindow=function(X,ne){var Q=this._lastPoint;if(Q){if(X.preventDefault(),function(le,it){var Rt=yf[it];return le.buttons===void 0||(le.buttons&Rt)!==Rt}(X,this._eventButton))this.reset();else if(this._moved||!(ne.dist(Q)0&&(this._active=!0);var le=as(Q,ne),it=new b.Point(0,0),Rt=new b.Point(0,0),en=0;for(var Yn in le){var Zr=le[Yn],fr=this._touches[Yn];fr&&(it._add(Zr),Rt._add(Zr.sub(fr)),en++,le[Yn]=Zr)}if(this._touches=le,!(enMath.abs(X.x)}var Pd=function(X){function ne(){X.apply(this,arguments)}return X&&(ne.__proto__=X),(ne.prototype=Object.create(X&&X.prototype)).constructor=ne,ne.prototype.reset=function(){X.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},ne.prototype._start=function(Q){this._lastPoints=Q,Uf(Q[0].sub(Q[1]))&&(this._valid=!1)},ne.prototype._move=function(Q,le,it){var Rt=Q[0].sub(this._lastPoints[0]),en=Q[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(Rt,en,it.timeStamp),this._valid)return this._lastPoints=Q,this._active=!0,{pitchDelta:(Rt.y+en.y)/2*-.5}},ne.prototype.gestureBeginsVertically=function(Q,le,it){if(this._valid!==void 0)return this._valid;var Rt=Q.mag()>=2,en=le.mag()>=2;if(Rt||en){if(!Rt||!en)return this._firstMove===void 0&&(this._firstMove=it),it-this._firstMove<100&&void 0;var Yn=Q.y>0==le.y>0;return Uf(Q)&&Uf(le)&&Yn}},ne}(Ah),Np={panStep:100,bearingStep:15,pitchStep:10},$p=function(){var X=Np;this._panStep=X.panStep,this._bearingStep=X.bearingStep,this._pitchStep=X.pitchStep,this._rotationDisabled=!1};function ag(X){return X*(2-X)}$p.prototype.blur=function(){this.reset()},$p.prototype.reset=function(){this._active=!1},$p.prototype.keydown=function(X){var ne=this;if(!(X.altKey||X.ctrlKey||X.metaKey)){var Q=0,le=0,it=0,Rt=0,en=0;switch(X.keyCode){case 61:case 107:case 171:case 187:Q=1;break;case 189:case 109:case 173:Q=-1;break;case 37:X.shiftKey?le=-1:(X.preventDefault(),Rt=-1);break;case 39:X.shiftKey?le=1:(X.preventDefault(),Rt=1);break;case 38:X.shiftKey?it=1:(X.preventDefault(),en=-1);break;case 40:X.shiftKey?it=-1:(X.preventDefault(),en=1);break;default:return}return this._rotationDisabled&&(le=0,it=0),{cameraAnimation:function(Yn){var Zr=Yn.getZoom();Yn.easeTo({duration:300,easeId:"keyboardHandler",easing:ag,zoom:Q?Math.round(Zr)+Q*(X.shiftKey?2:1):Zr,bearing:Yn.getBearing()+le*ne._bearingStep,pitch:Yn.getPitch()+it*ne._pitchStep,offset:[-Rt*ne._panStep,-en*ne._panStep],center:Yn.getCenter()},{originalEvent:X})}}}},$p.prototype.enable=function(){this._enabled=!0},$p.prototype.disable=function(){this._enabled=!1,this.reset()},$p.prototype.isEnabled=function(){return this._enabled},$p.prototype.isActive=function(){return this._active},$p.prototype.disableRotation=function(){this._rotationDisabled=!0},$p.prototype.enableRotation=function(){this._rotationDisabled=!1};var Md=function(X,ne){this._map=X,this._el=X.getCanvasContainer(),this._handler=ne,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=1/450,b.bindAll(["_onTimeout"],this)};Md.prototype.setZoomRate=function(X){this._defaultZoomRate=X},Md.prototype.setWheelZoomRate=function(X){this._wheelZoomRate=X},Md.prototype.isEnabled=function(){return!!this._enabled},Md.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},Md.prototype.isZooming=function(){return!!this._zooming},Md.prototype.enable=function(X){this.isEnabled()||(this._enabled=!0,this._aroundCenter=X&&X.around==="center")},Md.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Md.prototype.wheel=function(X){if(this.isEnabled()){var ne=X.deltaMode===b.window.WheelEvent.DOM_DELTA_LINE?40*X.deltaY:X.deltaY,Q=b.browser.now(),le=Q-(this._lastWheelEventTime||0);this._lastWheelEventTime=Q,ne!==0&&ne%4.000244140625==0?this._type="wheel":ne!==0&&Math.abs(ne)<4?this._type="trackpad":le>400?(this._type=null,this._lastValue=ne,this._timeout=setTimeout(this._onTimeout,40,X)):this._type||(this._type=Math.abs(le*ne)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,ne+=this._lastValue)),X.shiftKey&&ne&&(ne/=4),this._type&&(this._lastWheelEvent=X,this._delta-=ne,this._active||this._start(X)),X.preventDefault()}},Md.prototype._onTimeout=function(X){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(X)},Md.prototype._start=function(X){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var ne=k.mousePos(this._el,X);this._around=b.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(ne)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},Md.prototype.renderFrame=function(){var X=this;if(this._frameId&&(this._frameId=null,this.isActive())){var ne=this._map.transform;if(this._delta!==0){var Q=this._type==="wheel"&&Math.abs(this._delta)>4.000244140625?this._wheelZoomRate:this._defaultZoomRate,le=2/(1+Math.exp(-Math.abs(this._delta*Q)));this._delta<0&&le!==0&&(le=1/le);var it=typeof this._targetZoom=="number"?ne.zoomScale(this._targetZoom):ne.scale;this._targetZoom=Math.min(ne.maxZoom,Math.max(ne.minZoom,ne.scaleZoom(it*le))),this._type==="wheel"&&(this._startZoom=ne.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var Rt,en=typeof this._targetZoom=="number"?this._targetZoom:ne.zoom,Yn=this._startZoom,Zr=this._easing,fr=!1;if(this._type==="wheel"&&Yn&&Zr){var es=Math.min((b.browser.now()-this._lastWheelEventTime)/200,1),Xo=Zr(es);Rt=b.number(Yn,en,Xo),es<1?this._frameId||(this._frameId=!0):fr=!0}else Rt=en,fr=!0;return this._active=!0,fr&&(this._active=!1,this._finishTimeout=setTimeout(function(){X._zooming=!1,X._handler._triggerRenderFrame(),delete X._targetZoom,delete X._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!fr,zoomDelta:Rt-ne.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},Md.prototype._smoothOutEasing=function(X){var ne=b.ease;if(this._prevEase){var Q=this._prevEase,le=(b.browser.now()-Q.start)/Q.duration,it=Q.easing(le+.01)-Q.easing(le),Rt=.27/Math.sqrt(it*it+1e-4)*.01,en=Math.sqrt(.0729-Rt*Rt);ne=b.bezier(Rt,en,.25,1)}return this._prevEase={start:b.browser.now(),duration:X,easing:ne},ne},Md.prototype.blur=function(){this.reset()},Md.prototype.reset=function(){this._active=!1};var jp=function(X,ne){this._clickZoom=X,this._tapZoom=ne};jp.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},jp.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},jp.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},jp.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var Ih=function(){this.reset()};Ih.prototype.reset=function(){this._active=!1},Ih.prototype.blur=function(){this.reset()},Ih.prototype.dblclick=function(X,ne){return X.preventDefault(),{cameraAnimation:function(Q){Q.easeTo({duration:300,zoom:Q.getZoom()+(X.shiftKey?-1:1),around:Q.unproject(ne)},{originalEvent:X})}}},Ih.prototype.enable=function(){this._enabled=!0},Ih.prototype.disable=function(){this._enabled=!1,this.reset()},Ih.prototype.isEnabled=function(){return this._enabled},Ih.prototype.isActive=function(){return this._active};var of=function(){this._tap=new Qi({numTouches:1,numTaps:1}),this.reset()};of.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},of.prototype.touchstart=function(X,ne,Q){this._swipePoint||(this._tapTime&&X.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?Q.length>0&&(this._swipePoint=ne[0],this._swipeTouch=Q[0].identifier):this._tap.touchstart(X,ne,Q))},of.prototype.touchmove=function(X,ne,Q){if(this._tapTime){if(this._swipePoint){if(Q[0].identifier!==this._swipeTouch)return;var le=ne[0],it=le.y-this._swipePoint.y;return this._swipePoint=le,X.preventDefault(),this._active=!0,{zoomDelta:it/128}}}else this._tap.touchmove(X,ne,Q)},of.prototype.touchend=function(X,ne,Q){this._tapTime?this._swipePoint&&Q.length===0&&this.reset():this._tap.touchend(X,ne,Q)&&(this._tapTime=X.timeStamp)},of.prototype.touchcancel=function(){this.reset()},of.prototype.enable=function(){this._enabled=!0},of.prototype.disable=function(){this._enabled=!1,this.reset()},of.prototype.isEnabled=function(){return this._enabled},of.prototype.isActive=function(){return this._active};var Ff=function(X,ne,Q){this._el=X,this._mousePan=ne,this._touchPan=Q};Ff.prototype.enable=function(X){this._inertiaOptions=X||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},Ff.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},Ff.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},Ff.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var iu=function(X,ne,Q){this._pitchWithRotate=X.pitchWithRotate,this._mouseRotate=ne,this._mousePitch=Q};iu.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},iu.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},iu.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},iu.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var mp=function(X,ne,Q,le){this._el=X,this._touchZoom=ne,this._touchRotate=Q,this._tapDragZoom=le,this._rotationDisabled=!1,this._enabled=!0};mp.prototype.enable=function(X){this._touchZoom.enable(X),this._rotationDisabled||this._touchRotate.enable(X),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},mp.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},mp.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},mp.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},mp.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},mp.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var Af=function(X){return X.zoom||X.drag||X.pitch||X.rotate},np=function(X){function ne(){X.apply(this,arguments)}return X&&(ne.__proto__=X),(ne.prototype=Object.create(X&&X.prototype)).constructor=ne,ne}(b.Event);function Od(X){return X.panDelta&&X.panDelta.mag()||X.zoomDelta||X.bearingDelta||X.pitchDelta}var td=function(X,ne){this._map=X,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Bh(X),this._bearingSnap=ne.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(ne),b.bindAll(["handleEvent","handleWindowEvent"],this);var Q=this._el;this._listeners=[[Q,"touchstart",{passive:!0}],[Q,"touchmove",{passive:!1}],[Q,"touchend",void 0],[Q,"touchcancel",void 0],[Q,"mousedown",void 0],[Q,"mousemove",void 0],[Q,"mouseup",void 0],[b.window.document,"mousemove",{capture:!0}],[b.window.document,"mouseup",void 0],[Q,"mouseover",void 0],[Q,"mouseout",void 0],[Q,"dblclick",void 0],[Q,"click",void 0],[Q,"keydown",{capture:!1}],[Q,"keyup",void 0],[Q,"wheel",{passive:!1}],[Q,"contextmenu",void 0],[b.window,"blur",void 0]];for(var le=0,it=this._listeners;leen?Math.min(2,Cu):Math.max(.5,Cu),Td=Math.pow(fd,1-Zc),dh=Rt.unproject(xu.add(Tu.mult(Zc*Td)).mult(wc));Rt.setLocationAtPoint(Rt.renderWorldCopies?dh.wrap():dh,Wo)}it._fireMoveEvents(le)},function(Zc){it._afterEase(le,Zc)},Q),this},ne.prototype._prepareEase=function(Q,le,it){it===void 0&&(it={}),this._moving=!0,le||it.moving||this.fire(new b.Event("movestart",Q)),this._zooming&&!it.zooming&&this.fire(new b.Event("zoomstart",Q)),this._rotating&&!it.rotating&&this.fire(new b.Event("rotatestart",Q)),this._pitching&&!it.pitching&&this.fire(new b.Event("pitchstart",Q))},ne.prototype._fireMoveEvents=function(Q){this.fire(new b.Event("move",Q)),this._zooming&&this.fire(new b.Event("zoom",Q)),this._rotating&&this.fire(new b.Event("rotate",Q)),this._pitching&&this.fire(new b.Event("pitch",Q))},ne.prototype._afterEase=function(Q,le){if(!this._easeId||!le||this._easeId!==le){delete this._easeId;var it=this._zooming,Rt=this._rotating,en=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,it&&this.fire(new b.Event("zoomend",Q)),Rt&&this.fire(new b.Event("rotateend",Q)),en&&this.fire(new b.Event("pitchend",Q)),this.fire(new b.Event("moveend",Q))}},ne.prototype.flyTo=function(Q,le){var it=this;if(!Q.essential&&b.browser.prefersReducedMotion){var Rt=b.pick(Q,["center","zoom","bearing","pitch","around"]);return this.jumpTo(Rt,le)}this.stop(),Q=b.extend({offset:[0,0],speed:1.2,curve:1.42,easing:b.ease},Q);var en=this.transform,Yn=this.getZoom(),Zr=this.getBearing(),fr=this.getPitch(),es=this.getPadding(),Xo="zoom"in Q?b.clamp(+Q.zoom,en.minZoom,en.maxZoom):Yn,Ss="bearing"in Q?this._normalizeBearing(Q.bearing,Zr):Zr,oa="pitch"in Q?+Q.pitch:fr,qs="padding"in Q?Q.padding:en.padding,Wo=en.zoomScale(Xo-Yn),Ws=b.Point.convert(Q.offset),za=en.centerPoint.add(Ws),yl=en.pointLocation(za),nu=b.LngLat.convert(Q.center||yl);this._normalizeCenter(nu);var xu=en.project(yl),Tu=en.project(nu).sub(xu),Cu=Q.curve,dc=Math.max(en.width,en.height),Zc=dc/Wo,wc=Tu.mag();if("minZoom"in Q){var fd=b.clamp(Math.min(Q.minZoom,Yn,Xo),en.minZoom,en.maxZoom),Td=dc/en.zoomScale(fd-Yn);Cu=Math.sqrt(Td/wc*2)}var dh=Cu*Cu;function Qd(bh){var Mh=(Zc*Zc-dc*dc+(bh?-1:1)*dh*dh*wc*wc)/(2*(bh?Zc:dc)*dh*wc);return Math.log(Math.sqrt(Mh*Mh+1)-Mh)}function Xh(bh){return(Math.exp(bh)-Math.exp(-bh))/2}function Nc(bh){return(Math.exp(bh)+Math.exp(-bh))/2}var Hc=Qd(0),tf=function(bh){return Nc(Hc)/Nc(Hc+Cu*bh)},hh=function(bh){return dc*((Nc(Hc)*(Xh(Mh=Hc+Cu*bh)/Nc(Mh))-Xh(Hc))/dh)/wc;var Mh},rh=(Qd(1)-Hc)/Cu;if(Math.abs(wc)<1e-6||!isFinite(rh)){if(Math.abs(dc-Zc)<1e-6)return this.easeTo(Q,le);var zh=ZcQ.maxDuration&&(Q.duration=0),this._zooming=!0,this._rotating=Zr!==Ss,this._pitching=oa!==fr,this._padding=!en.isPaddingEqual(qs),this._prepareEase(le,!1),this._ease(function(bh){var Mh=bh*rh,Cg=1/tf(Mh);en.zoom=bh===1?Xo:Yn+en.scaleZoom(Cg),it._rotating&&(en.bearing=b.number(Zr,Ss,bh)),it._pitching&&(en.pitch=b.number(fr,oa,bh)),it._padding&&(en.interpolatePadding(es,qs,bh),za=en.centerPoint.add(Ws));var Wp=bh===1?nu:en.unproject(xu.add(Tu.mult(hh(Mh))).mult(Cg));en.setLocationAtPoint(en.renderWorldCopies?Wp.wrap():Wp,za),it._fireMoveEvents(le)},function(){return it._afterEase(le)},Q),this},ne.prototype.isEasing=function(){return!!this._easeFrameId},ne.prototype.stop=function(){return this._stop()},ne.prototype._stop=function(Q,le){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var it=this._onEaseEnd;delete this._onEaseEnd,it.call(this,le)}if(!Q){var Rt=this.handlers;Rt&&Rt.stop(!1)}return this},ne.prototype._ease=function(Q,le,it){it.animate===!1||it.duration===0?(Q(1),le()):(this._easeStart=b.browser.now(),this._easeOptions=it,this._onEaseFrame=Q,this._onEaseEnd=le,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},ne.prototype._renderFrameCallback=function(){var Q=Math.min((b.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(Q)),Q<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},ne.prototype._normalizeBearing=function(Q,le){Q=b.wrap(Q,-180,180);var it=Math.abs(Q-le);return Math.abs(Q-360-le)180?-360:it<-180?360:0}},ne}(b.Evented),_f=function(X){X===void 0&&(X={}),this.options=X,b.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};_f.prototype.getDefaultPosition=function(){return"bottom-right"},_f.prototype.onAdd=function(X){var ne=this.options&&this.options.compact;return this._map=X,this._container=k.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=k.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=k.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),ne&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),ne===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},_f.prototype.onRemove=function(){k.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},_f.prototype._setElementTitle=function(X,ne){var Q=this._map._getUIString("AttributionControl."+ne);X.title=Q,X.setAttribute("aria-label",Q)},_f.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},_f.prototype._updateEditLink=function(){var X=this._editLink;X||(X=this._editLink=this._container.querySelector(".mapbox-improve-map"));var ne=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||b.config.ACCESS_TOKEN}];if(X){var Q=ne.reduce(function(le,it,Rt){return it.value&&(le+=it.key+"="+it.value+(Rt=0)return!1;return!0})).join(" | ");en!==this._attribHTML&&(this._attribHTML=en,X.length?(this._innerContainer.innerHTML=en,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},_f.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var Hh=function(){b.bindAll(["_updateLogo"],this),b.bindAll(["_updateCompact"],this)};Hh.prototype.onAdd=function(X){this._map=X,this._container=k.create("div","mapboxgl-ctrl");var ne=k.create("a","mapboxgl-ctrl-logo");return ne.target="_blank",ne.rel="noopener nofollow",ne.href="https://www.mapbox.com/",ne.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),ne.setAttribute("rel","noopener nofollow"),this._container.appendChild(ne),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},Hh.prototype.onRemove=function(){k.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},Hh.prototype.getDefaultPosition=function(){return"bottom-left"},Hh.prototype._updateLogo=function(X){X&&X.sourceDataType!=="metadata"||(this._container.style.display=this._logoRequired()?"block":"none")},Hh.prototype._logoRequired=function(){if(this._map.style){var X=this._map.style.sourceCaches;for(var ne in X)if(X[ne].getSource().mapbox_logo)return!0;return!1}},Hh.prototype._updateCompact=function(){var X=this._container.children;if(X.length){var ne=X[0];this._map.getCanvasContainer().offsetWidth<250?ne.classList.add("mapboxgl-compact"):ne.classList.remove("mapboxgl-compact")}};var Dp=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};Dp.prototype.add=function(X){var ne=++this._id;return this._queue.push({callback:X,id:ne,cancelled:!1}),ne},Dp.prototype.remove=function(X){for(var ne=this._currentlyRunning,Q=0,le=ne?this._queue.concat(ne):this._queue;Qle.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(le.minPitch!=null&&le.maxPitch!=null&&le.minPitch>le.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(le.minPitch!=null&&le.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(le.maxPitch!=null&&le.maxPitch>60)throw new Error("maxPitch must be less than or equal to 60");var Rt=new Uu(le.minZoom,le.maxZoom,le.minPitch,le.maxPitch,le.renderWorldCopies);if(X.call(this,Rt,le),this._interactive=le.interactive,this._maxTileCacheSize=le.maxTileCacheSize,this._failIfMajorPerformanceCaveat=le.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=le.preserveDrawingBuffer,this._antialias=le.antialias,this._trackResize=le.trackResize,this._bearingSnap=le.bearingSnap,this._refreshExpiredTiles=le.refreshExpiredTiles,this._fadeDuration=le.fadeDuration,this._crossSourceCollisions=le.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=le.collectResourceTiming,this._renderTaskQueue=new Dp,this._controls=[],this._mapId=b.uniqueId(),this._locale=b.extend({},Vp,le.locale),this._clickTolerance=le.clickTolerance,this._requestManager=new b.RequestManager(le.transformRequest,le.accessToken),typeof le.container=="string"){if(this._container=b.window.document.getElementById(le.container),!this._container)throw new Error("Container '"+le.container+"' not found.")}else{if(!(le.container instanceof qh))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=le.container}if(le.maxBounds&&this.setMaxBounds(le.maxBounds),b.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return it._update(!1)}),this.on("moveend",function(){return it._update(!1)}),this.on("zoom",function(){return it._update(!0)}),b.window!==void 0&&(b.window.addEventListener("online",this._onWindowOnline,!1),b.window.addEventListener("resize",this._onWindowResize,!1),b.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new td(this,le),this._hash=le.hash&&new Ud(typeof le.hash=="string"&&le.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:le.center,zoom:le.zoom,bearing:le.bearing,pitch:le.pitch}),le.bounds&&(this.resize(),this.fitBounds(le.bounds,b.extend({},le.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=le.localIdeographFontFamily,le.style&&this.setStyle(le.style,{localIdeographFontFamily:le.localIdeographFontFamily}),le.attributionControl&&this.addControl(new _f({customAttribution:le.customAttribution})),this.addControl(new Hh,le.logoPosition),this.on("style.load",function(){it.transform.unmodified&&it.jumpTo(it.style.stylesheet)}),this.on("data",function(en){it._update(en.dataType==="style"),it.fire(new b.Event(en.dataType+"data",en))}),this.on("dataloading",function(en){it.fire(new b.Event(en.dataType+"dataloading",en))})}X&&(ne.__proto__=X),(ne.prototype=Object.create(X&&X.prototype)).constructor=ne;var Q={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return ne.prototype._getMapId=function(){return this._mapId},ne.prototype.addControl=function(le,it){if(it===void 0&&(it=le.getDefaultPosition?le.getDefaultPosition():"top-right"),!le||!le.onAdd)return this.fire(new b.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var Rt=le.onAdd(this);this._controls.push(le);var en=this._controlPositions[it];return it.indexOf("bottom")!==-1?en.insertBefore(Rt,en.firstChild):en.appendChild(Rt),this},ne.prototype.removeControl=function(le){if(!le||!le.onRemove)return this.fire(new b.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var it=this._controls.indexOf(le);return it>-1&&this._controls.splice(it,1),le.onRemove(this),this},ne.prototype.hasControl=function(le){return this._controls.indexOf(le)>-1},ne.prototype.resize=function(le){var it=this._containerDimensions(),Rt=it[0],en=it[1];if(Rt===this.transform.width&&en===this.transform.height)return this;this._resizeCanvas(Rt,en),this.transform.resize(Rt,en),this.painter.resize(Rt,en);var Yn=!this._moving;return Yn&&this.fire(new b.Event("movestart",le)).fire(new b.Event("move",le)),this.fire(new b.Event("resize",le)),Yn&&this.fire(new b.Event("moveend",le)),this},ne.prototype.getBounds=function(){return this.transform.getBounds()},ne.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},ne.prototype.setMaxBounds=function(le){return this.transform.setMaxBounds(b.LngLatBounds.convert(le)),this._update()},ne.prototype.setMinZoom=function(le){if((le=le==null?-2:le)>=-2&&le<=this.transform.maxZoom)return this.transform.minZoom=le,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=le,this._update(),this.getZoom()>le&&this.setZoom(le),this;throw new Error("maxZoom must be greater than the current minZoom")},ne.prototype.getMaxZoom=function(){return this.transform.maxZoom},ne.prototype.setMinPitch=function(le){if((le=le==null?0:le)<0)throw new Error("minPitch must be greater than or equal to 0");if(le>=0&&le<=this.transform.maxPitch)return this.transform.minPitch=le,this._update(),this.getPitch()60)throw new Error("maxPitch must be less than or equal to 60");if(le>=this.transform.minPitch)return this.transform.maxPitch=le,this._update(),this.getPitch()>le&&this.setPitch(le),this;throw new Error("maxPitch must be greater than the current minPitch")},ne.prototype.getMaxPitch=function(){return this.transform.maxPitch},ne.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},ne.prototype.setRenderWorldCopies=function(le){return this.transform.renderWorldCopies=le,this._update()},ne.prototype.project=function(le){return this.transform.locationPoint(b.LngLat.convert(le))},ne.prototype.unproject=function(le){return this.transform.pointLocation(b.Point.convert(le))},ne.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},ne.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},ne.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},ne.prototype._createDelegatedListener=function(le,it,Rt){var en,Yn=this;if(le==="mouseenter"||le==="mouseover"){var Zr=!1;return{layer:it,listener:Rt,delegates:{mousemove:function(es){var Xo=Yn.getLayer(it)?Yn.queryRenderedFeatures(es.point,{layers:[it]}):[];Xo.length?Zr||(Zr=!0,Rt.call(Yn,new ed(le,Yn,es.originalEvent,{features:Xo}))):Zr=!1},mouseout:function(){Zr=!1}}}}if(le==="mouseleave"||le==="mouseout"){var fr=!1;return{layer:it,listener:Rt,delegates:{mousemove:function(es){(Yn.getLayer(it)?Yn.queryRenderedFeatures(es.point,{layers:[it]}):[]).length?fr=!0:fr&&(fr=!1,Rt.call(Yn,new ed(le,Yn,es.originalEvent)))},mouseout:function(es){fr&&(fr=!1,Rt.call(Yn,new ed(le,Yn,es.originalEvent)))}}}}return{layer:it,listener:Rt,delegates:(en={},en[le]=function(es){var Xo=Yn.getLayer(it)?Yn.queryRenderedFeatures(es.point,{layers:[it]}):[];Xo.length&&(es.features=Xo,Rt.call(Yn,es),delete es.features)},en)}},ne.prototype.on=function(le,it,Rt){if(Rt===void 0)return X.prototype.on.call(this,le,it);var en=this._createDelegatedListener(le,it,Rt);for(var Yn in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[le]=this._delegatedListeners[le]||[],this._delegatedListeners[le].push(en),en.delegates)this.on(Yn,en.delegates[Yn]);return this},ne.prototype.once=function(le,it,Rt){if(Rt===void 0)return X.prototype.once.call(this,le,it);var en=this._createDelegatedListener(le,it,Rt);for(var Yn in en.delegates)this.once(Yn,en.delegates[Yn]);return this},ne.prototype.off=function(le,it,Rt){var en=this;return Rt===void 0?X.prototype.off.call(this,le,it):(this._delegatedListeners&&this._delegatedListeners[le]&&function(Yn){for(var Zr=Yn[le],fr=0;fr180;){var en=Q.locationPoint(X);if(en.x>=0&&en.y>=0&&en.x<=Q.width&&en.y<=Q.height)break;X.lng>Q.center.lng?X.lng-=360:X.lng+=360}return X}vh.prototype.down=function(X,ne){this.mouseRotate.mousedown(X,ne),this.mousePitch&&this.mousePitch.mousedown(X,ne),k.disableDrag()},vh.prototype.move=function(X,ne){var Q=this.map,le=this.mouseRotate.mousemoveWindow(X,ne);if(le&&le.bearingDelta&&Q.setBearing(Q.getBearing()+le.bearingDelta),this.mousePitch){var it=this.mousePitch.mousemoveWindow(X,ne);it&&it.pitchDelta&&Q.setPitch(Q.getPitch()+it.pitchDelta)}},vh.prototype.off=function(){var X=this.element;k.removeEventListener(X,"mousedown",this.mousedown),k.removeEventListener(X,"touchstart",this.touchstart,{passive:!1}),k.removeEventListener(X,"touchmove",this.touchmove),k.removeEventListener(X,"touchend",this.touchend),k.removeEventListener(X,"touchcancel",this.reset),this.offTemp()},vh.prototype.offTemp=function(){k.enableDrag(),k.removeEventListener(b.window,"mousemove",this.mousemove),k.removeEventListener(b.window,"mouseup",this.mouseup)},vh.prototype.mousedown=function(X){this.down(b.extend({},X,{ctrlKey:!0,preventDefault:function(){return X.preventDefault()}}),k.mousePos(this.element,X)),k.addEventListener(b.window,"mousemove",this.mousemove),k.addEventListener(b.window,"mouseup",this.mouseup)},vh.prototype.mousemove=function(X){this.move(X,k.mousePos(this.element,X))},vh.prototype.mouseup=function(X){this.mouseRotate.mouseupWindow(X),this.mousePitch&&this.mousePitch.mouseupWindow(X),this.offTemp()},vh.prototype.touchstart=function(X){X.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=k.touchPos(this.element,X.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:function(){return X.preventDefault()}},this._startPos))},vh.prototype.touchmove=function(X){X.targetTouches.length!==1?this.reset():(this._lastPos=k.touchPos(this.element,X.targetTouches)[0],this.move({preventDefault:function(){return X.preventDefault()}},this._lastPos))},vh.prototype.touchend=function(X){X.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)=le}this._isDragging&&(this._pos=Q.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new b.Event("dragstart"))),this.fire(new b.Event("drag")))},ne.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new b.Event("dragend")),this._state="inactive"},ne.prototype._addDragHandler=function(Q){this._element.contains(Q.originalEvent.target)&&(Q.preventDefault(),this._positionDelta=Q.point.sub(this._pos).add(this._offset),this._pointerdownPos=Q.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},ne.prototype.setDraggable=function(Q){return this._draggable=!!Q,this._map&&(Q?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},ne.prototype.isDraggable=function(){return this._draggable},ne.prototype.setRotation=function(Q){return this._rotation=Q||0,this._update(),this},ne.prototype.getRotation=function(){return this._rotation},ne.prototype.setRotationAlignment=function(Q){return this._rotationAlignment=Q||"auto",this._update(),this},ne.prototype.getRotationAlignment=function(){return this._rotationAlignment},ne.prototype.setPitchAlignment=function(Q){return this._pitchAlignment=Q&&Q!=="auto"?Q:this._rotationAlignment,this._update(),this},ne.prototype.getPitchAlignment=function(){return this._pitchAlignment},ne}(b.Evented),He={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},qt=0,zn=!1,di=function(X){function ne(Q){X.call(this),this.options=b.extend({},He,Q),b.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return X&&(ne.__proto__=X),(ne.prototype=Object.create(X&&X.prototype)).constructor=ne,ne.prototype.onAdd=function(Q){var le;return this._map=Q,this._container=k.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),le=this._setupUI,q!==void 0?le(q):b.window.navigator.permissions!==void 0?b.window.navigator.permissions.query({name:"geolocation"}).then(function(it){le(q=it.state!=="denied")}):le(q=!!b.window.navigator.geolocation),this._container},ne.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(b.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),k.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,qt=0,zn=!1},ne.prototype._isOutOfMapMaxBounds=function(Q){var le=this._map.getMaxBounds(),it=Q.coords;return le&&(it.longitudele.getEast()||it.latitudele.getNorth())},ne.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}},ne.prototype._onSuccess=function(Q){if(this._map){if(this._isOutOfMapMaxBounds(Q))return this._setErrorState(),this.fire(new b.Event("outofmaxbounds",Q)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=Q,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(Q),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(Q),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new b.Event("geolocate",Q)),this._finish()}},ne.prototype._updateCamera=function(Q){var le=new b.LngLat(Q.coords.longitude,Q.coords.latitude),it=Q.coords.accuracy,Rt=this._map.getBearing(),en=b.extend({bearing:Rt},this.options.fitBoundsOptions);this._map.fitBounds(le.toBounds(it),en,{geolocateSource:!0})},ne.prototype._updateMarker=function(Q){if(Q){var le=new b.LngLat(Q.coords.longitude,Q.coords.latitude);this._accuracyCircleMarker.setLngLat(le).addTo(this._map),this._userLocationDotMarker.setLngLat(le).addTo(this._map),this._accuracy=Q.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},ne.prototype._updateCircleRadius=function(){var Q=this._map._container.clientHeight/2,le=this._map.unproject([0,Q]),it=this._map.unproject([1,Q]),Rt=le.distanceTo(it),en=Math.ceil(2*this._accuracy/Rt);this._circleElement.style.width=en+"px",this._circleElement.style.height=en+"px"},ne.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},ne.prototype._onError=function(Q){if(this._map){if(this.options.trackUserLocation)if(Q.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var le=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=le,this._geolocateButton.setAttribute("aria-label",le),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(Q.code===3&&zn)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new b.Event("error",Q)),this._finish()}},ne.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},ne.prototype._setupUI=function(Q){var le=this;if(this._container.addEventListener("contextmenu",function(en){return en.preventDefault()}),this._geolocateButton=k.create("button","mapboxgl-ctrl-geolocate",this._container),k.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",Q===!1){b.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var it=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=it,this._geolocateButton.setAttribute("aria-label",it)}else{var Rt=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=Rt,this._geolocateButton.setAttribute("aria-label",Rt)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=k.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new ae(this._dotElement),this._circleElement=k.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new ae({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(en){en.geolocateSource||le._watchState!=="ACTIVE_LOCK"||en.originalEvent&&en.originalEvent.type==="resize"||(le._watchState="BACKGROUND",le._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),le._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),le.fire(new b.Event("trackuserlocationend")))})},ne.prototype.trigger=function(){if(!this._setup)return b.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new b.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":qt--,zn=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new b.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new b.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){var Q;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),++qt>1?(Q={maximumAge:6e5,timeout:0},zn=!0):(Q=this.options.positionOptions,zn=!1),this._geolocationWatchID=b.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,Q)}}else b.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},ne.prototype._clearWatch=function(){b.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},ne}(b.Evented),Uo={maxWidth:100,unit:"metric"},la=function(X){this.options=b.extend({},Uo,X),b.bindAll(["_onMove","setUnit"],this)};function Cl(X,ne,Q){var le=Q&&Q.maxWidth||100,it=X._container.clientHeight/2,Rt=X.unproject([0,it]),en=X.unproject([le,it]),Yn=Rt.distanceTo(en);if(Q&&Q.unit==="imperial"){var Zr=3.2808*Yn;Zr>5280?Ll(ne,le,Zr/5280,X._getUIString("ScaleControl.Miles")):Ll(ne,le,Zr,X._getUIString("ScaleControl.Feet"))}else Q&&Q.unit==="nautical"?Ll(ne,le,Yn/1852,X._getUIString("ScaleControl.NauticalMiles")):Yn>=1e3?Ll(ne,le,Yn/1e3,X._getUIString("ScaleControl.Kilometers")):Ll(ne,le,Yn,X._getUIString("ScaleControl.Meters"))}function Ll(X,ne,Q,le){var it,Rt,en,Yn=(it=Q,(Rt=Math.pow(10,(""+Math.floor(it)).length-1))*(en=(en=it/Rt)>=10?10:en>=5?5:en>=3?3:en>=2?2:en>=1?1:function(Zr){var fr=Math.pow(10,Math.ceil(-Math.log(Zr)/Math.LN10));return Math.round(Zr*fr)/fr}(en)));X.style.width=ne*(Yn/Q)+"px",X.innerHTML=Yn+" "+le}la.prototype.getDefaultPosition=function(){return"bottom-left"},la.prototype._onMove=function(){Cl(this._map,this._container,this.options)},la.prototype.onAdd=function(X){return this._map=X,this._container=k.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",X.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},la.prototype.onRemove=function(){k.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},la.prototype.setUnit=function(X){this.options.unit=X,Cl(this._map,this._container,this.options)};var zu=function(X){this._fullscreen=!1,X&&X.container&&(X.container instanceof b.window.HTMLElement?this._container=X.container:b.warnOnce("Full screen control 'container' must be a DOM element.")),b.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in b.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in b.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in b.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in b.window.document&&(this._fullscreenchange="MSFullscreenChange")};zu.prototype.onAdd=function(X){return this._map=X,this._container||(this._container=this._map.getContainer()),this._controlContainer=k.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",b.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},zu.prototype.onRemove=function(){k.remove(this._controlContainer),this._map=null,b.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},zu.prototype._checkFullscreenSupport=function(){return!!(b.window.document.fullscreenEnabled||b.window.document.mozFullScreenEnabled||b.window.document.msFullscreenEnabled||b.window.document.webkitFullscreenEnabled)},zu.prototype._setupUI=function(){var X=this._fullscreenButton=k.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);k.create("span","mapboxgl-ctrl-icon",X).setAttribute("aria-hidden",!0),X.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),b.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},zu.prototype._updateTitle=function(){var X=this._getTitle();this._fullscreenButton.setAttribute("aria-label",X),this._fullscreenButton.title=X},zu.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},zu.prototype._isFullscreen=function(){return this._fullscreen},zu.prototype._changeIcon=function(){(b.window.document.fullscreenElement||b.window.document.mozFullScreenElement||b.window.document.webkitFullscreenElement||b.window.document.msFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},zu.prototype._onClickFullscreen=function(){this._isFullscreen()?b.window.document.exitFullscreen?b.window.document.exitFullscreen():b.window.document.mozCancelFullScreen?b.window.document.mozCancelFullScreen():b.window.document.msExitFullscreen?b.window.document.msExitFullscreen():b.window.document.webkitCancelFullScreen&&b.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var Iu={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},pc=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),zc=function(X){function ne(Q){X.call(this),this.options=b.extend(Object.create(Iu),Q),b.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return X&&(ne.__proto__=X),(ne.prototype=Object.create(X&&X.prototype)).constructor=ne,ne.prototype.addTo=function(Q){return this._map&&this.remove(),this._map=Q,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new b.Event("open")),this},ne.prototype.isOpen=function(){return!!this._map},ne.prototype.remove=function(){return this._content&&k.remove(this._content),this._container&&(k.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new b.Event("close")),this},ne.prototype.getLngLat=function(){return this._lngLat},ne.prototype.setLngLat=function(Q){return this._lngLat=b.LngLat.convert(Q),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},ne.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},ne.prototype.getElement=function(){return this._container},ne.prototype.setText=function(Q){return this.setDOMContent(b.window.document.createTextNode(Q))},ne.prototype.setHTML=function(Q){var le,it=b.window.document.createDocumentFragment(),Rt=b.window.document.createElement("body");for(Rt.innerHTML=Q;le=Rt.firstChild;)it.appendChild(le);return this.setDOMContent(it)},ne.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},ne.prototype.setMaxWidth=function(Q){return this.options.maxWidth=Q,this._update(),this},ne.prototype.setDOMContent=function(Q){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=k.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(Q),this._createCloseButton(),this._update(),this._focusFirstElement(),this},ne.prototype.addClassName=function(Q){this._container&&this._container.classList.add(Q)},ne.prototype.removeClassName=function(Q){this._container&&this._container.classList.remove(Q)},ne.prototype.setOffset=function(Q){return this.options.offset=Q,this._update(),this},ne.prototype.toggleClassName=function(Q){if(this._container)return this._container.classList.toggle(Q)},ne.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=k.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},ne.prototype._onMouseUp=function(Q){this._update(Q.point)},ne.prototype._onMouseMove=function(Q){this._update(Q.point)},ne.prototype._onDrag=function(Q){this._update(Q.point)},ne.prototype._update=function(Q){var le=this;if(this._map&&(this._lngLat||this._trackPointer)&&this._content&&(this._container||(this._container=k.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=k.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(Xo){return le._container.classList.add(Xo)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=wo(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||Q)){var it=this._pos=this._trackPointer&&Q?Q:this._map.project(this._lngLat),Rt=this.options.anchor,en=function Xo(Ss){if(Ss){if(typeof Ss=="number"){var oa=Math.round(Math.sqrt(.5*Math.pow(Ss,2)));return{center:new b.Point(0,0),top:new b.Point(0,Ss),"top-left":new b.Point(oa,oa),"top-right":new b.Point(-oa,oa),bottom:new b.Point(0,-Ss),"bottom-left":new b.Point(oa,-oa),"bottom-right":new b.Point(-oa,-oa),left:new b.Point(Ss,0),right:new b.Point(-Ss,0)}}if(Ss instanceof b.Point||Array.isArray(Ss)){var qs=b.Point.convert(Ss);return{center:qs,top:qs,"top-left":qs,"top-right":qs,bottom:qs,"bottom-left":qs,"bottom-right":qs,left:qs,right:qs}}return{center:b.Point.convert(Ss.center||[0,0]),top:b.Point.convert(Ss.top||[0,0]),"top-left":b.Point.convert(Ss["top-left"]||[0,0]),"top-right":b.Point.convert(Ss["top-right"]||[0,0]),bottom:b.Point.convert(Ss.bottom||[0,0]),"bottom-left":b.Point.convert(Ss["bottom-left"]||[0,0]),"bottom-right":b.Point.convert(Ss["bottom-right"]||[0,0]),left:b.Point.convert(Ss.left||[0,0]),right:b.Point.convert(Ss.right||[0,0])}}return Xo(new b.Point(0,0))}(this.options.offset);if(!Rt){var Yn,Zr=this._container.offsetWidth,fr=this._container.offsetHeight;Yn=it.y+en.bottom.ythis._map.transform.height-fr?["bottom"]:[],it.xthis._map.transform.width-Zr/2&&Yn.push("right"),Rt=Yn.length===0?"bottom":Yn.join("-")}var es=it.add(en[Rt]).round();k.setTransform(this._container,D[Rt]+" translate("+es.x+"px,"+es.y+"px)"),F(this._container,Rt,"popup")}},ne.prototype._focusFirstElement=function(){if(this.options.focusAfterOpen&&this._container){var Q=this._container.querySelector(pc);Q&&Q.focus()}},ne.prototype._onClose=function(){this.remove()},ne}(b.Evented),Rd={version:b.version,supported:z,setRTLTextPlugin:b.setRTLTextPlugin,getRTLTextPluginStatus:b.getRTLTextPluginStatus,Map:Bf,NavigationControl:Hd,GeolocateControl:di,AttributionControl:_f,ScaleControl:la,FullscreenControl:zu,Popup:zc,Marker:ae,Style:Ma,LngLat:b.LngLat,LngLatBounds:b.LngLatBounds,Point:b.Point,MercatorCoordinate:b.MercatorCoordinate,Evented:b.Evented,config:b.config,prewarm:function(){ui().acquire(zt)},clearPrewarmedResources:function(){var X=_r;X&&(X.isPreloaded()&&X.numActive()===1?(X.release(zt),_r=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return b.config.ACCESS_TOKEN},set accessToken(X){b.config.ACCESS_TOKEN=X},get baseApiUrl(){return b.config.API_URL},set baseApiUrl(X){b.config.API_URL=X},get workerCount(){return pn.workerCount},set workerCount(X){pn.workerCount=X},get maxParallelImageRequests(){return b.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(X){b.config.MAX_PARALLEL_IMAGE_REQUESTS=X},clearStorage:function(X){b.clearTileCache(X)},workerUrl:""};return Rd}),y})},23978:function(nt,V,m){"use strict";m.r(V),m.d(V,{CancellationTokenSource:function(){return DK},Emitter:function(){return AK},KeyCode:function(){return IK},KeyMod:function(){return LK},MarkerSeverity:function(){return RK},MarkerTag:function(){return NK},Position:function(){return PK},Range:function(){return kK},Selection:function(){return MK},SelectionDirection:function(){return OK},Token:function(){return BK},Uri:function(){return FK},default:function(){return Bee},editor:function(){return zK},languages:function(){return $K}});var y={};m.r(y),m.d(y,{PixelRatio:function(){return dl},addMatchMediaChangeListener:function(){return Co},getZoomFactor:function(){return Fr},isAndroid:function(){return Qa},isChrome:function(){return xs},isElectron:function(){return xl},isFirefox:function(){return jo},isSafari:function(){return Za},isStandalone:function(){return co},isWebKit:function(){return Es},isWebkitWebView:function(){return tl}});var A={};m.r(A),m.d(A,{CancellationTokenSource:function(){return DK},Emitter:function(){return AK},KeyCode:function(){return IK},KeyMod:function(){return LK},MarkerSeverity:function(){return RK},MarkerTag:function(){return NK},Position:function(){return PK},Range:function(){return kK},Selection:function(){return MK},SelectionDirection:function(){return OK},Token:function(){return BK},Uri:function(){return FK},editor:function(){return zK},languages:function(){return $K}});var b={};m.r(b),m.d(b,{CancellationTokenSource:function(){return DK},Emitter:function(){return AK},KeyCode:function(){return IK},KeyMod:function(){return LK},MarkerSeverity:function(){return RK},MarkerTag:function(){return NK},Position:function(){return PK},Range:function(){return kK},Selection:function(){return MK},SelectionDirection:function(){return OK},Token:function(){return BK},Uri:function(){return FK},default:function(){return Bee},editor:function(){return zK},languages:function(){return $K}});class z{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?ie.isErrorNoTelemetry(e)?new ie(e.message+` +`}),staticAttributes:ae,staticUniforms:en}}var ja=Object.freeze({__proto__:null,prelude:oa,background:Nl,backgroundPattern:cs,circle:zi,clippingMask:qi,heatmap:ta,heatmapTexture:ms,collisionBox:Ua,collisionCircle:$u,debug:rc,fill:Pc,fillOutline:ho,fillOutlinePattern:Ji,fillPattern:ss,fillExtrusion:$n,fillExtrusionPattern:mr,hillshadePrepare:Qr,hillshade:ni,line:Ki,lineGradient:ro,linePattern:Ei,lineSDF:ns,raster:ca,symbolIcon:Na,symbolSDF:ul,symbolTextAndIcon:Hl}),Pu=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};function Xs(X){for(var te=[],J=0;J>16,Yn>>16],u_pixel_coord_lower:[65535&en,65535&Yn]}}Ya.prototype.draw=function(X,te,J,ae,it,Rt,en,Yn,Zr,fr,es,Xo,Ss,sa,qs,Vo){var js,za=X.gl;if(!this.failedToCreate){for(var yl in X.program.set(this.program),X.setDepthMode(J),X.setStencilMode(ae),X.setColorMode(it),X.setCullFace(Rt),this.fixedUniforms)this.fixedUniforms[yl].set(en[yl]);sa&&sa.setUniforms(X,this.binderUniforms,Xo,{zoom:Ss});for(var nu=(js={},js[za.LINES]=2,js[za.TRIANGLES]=3,js[za.LINE_STRIP]=1,js)[te],xu=0,Tu=es.get();xu0?1-1/(1.001-en):-en),u_contrast_factor:(Rt=it.paint.get("raster-contrast"),Rt>0?1/(1-Rt):1+Rt),u_spin_weights:Kd(it.paint.get("raster-hue-rotate"))};var Rt,en};function Kd(X){X*=Math.PI/180;var te=Math.sin(X),J=Math.cos(X);return[(2*J+1)/3,(-Math.sqrt(3)*te-J+1)/3,(Math.sqrt(3)*te-J+1)/3]}var ad,ku=function(X,te,J,ae,it,Rt,en,Yn,Zr,fr){var es=it.transform;return{u_is_size_zoom_constant:+(X==="constant"||X==="source"),u_is_size_feature_constant:+(X==="constant"||X==="camera"),u_size_t:te?te.uSizeT:0,u_size:te?te.uSize:0,u_camera_to_center_distance:es.cameraToCenterDistance,u_pitch:es.pitch/360*2*Math.PI,u_rotate_symbol:+J,u_aspect_ratio:es.width/es.height,u_fade_change:it.options.fadeDuration?it.symbolFadeChange:1,u_matrix:Rt,u_label_plane_matrix:en,u_coord_matrix:Yn,u_is_text:+Zr,u_pitch_with_map:+ae,u_texsize:fr,u_texture:0}},Fc=function(X,te,J,ae,it,Rt,en,Yn,Zr,fr,es){var Xo=it.transform;return b.extend(ku(X,te,J,ae,it,Rt,en,Yn,Zr,fr),{u_gamma_scale:ae?Math.cos(Xo._pitch)*Xo.cameraToCenterDistance:1,u_device_pixel_ratio:b.browser.devicePixelRatio,u_is_halo:+es})},dd=function(X,te,J,ae,it,Rt,en,Yn,Zr,fr){return b.extend(Fc(X,te,J,ae,it,Rt,en,Yn,!0,Zr,!0),{u_texsize_icon:fr,u_texture_icon:1})},vd=function(X,te,J){return{u_matrix:X,u_opacity:te,u_color:J}},Xd=function(X,te,J,ae,it,Rt){return b.extend(function(en,Yn,Zr,fr){var es=Zr.imageManager.getPattern(en.from.toString()),Xo=Zr.imageManager.getPattern(en.to.toString()),Ss=Zr.imageManager.getPixelSize(),sa=Ss.width,qs=Ss.height,Vo=Math.pow(2,fr.tileID.overscaledZ),js=fr.tileSize*Math.pow(2,Zr.transform.tileZoom)/Vo,za=js*(fr.tileID.canonical.x+fr.tileID.wrap*Vo),yl=js*fr.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:es.tl,u_pattern_br_a:es.br,u_pattern_tl_b:Xo.tl,u_pattern_br_b:Xo.br,u_texsize:[sa,qs],u_mix:Yn.t,u_pattern_size_a:es.displaySize,u_pattern_size_b:Xo.displaySize,u_scale_a:Yn.fromScale,u_scale_b:Yn.toScale,u_tile_units_to_pixels:1/xs(fr,1,Zr.transform.tileZoom),u_pixel_coord_upper:[za>>16,yl>>16],u_pixel_coord_lower:[65535&za,65535&yl]}}(ae,Rt,J,it),{u_matrix:X,u_opacity:te})},th={fillExtrusion:function(X,te){return{u_matrix:new b.UniformMatrix4f(X,te.u_matrix),u_lightpos:new b.Uniform3f(X,te.u_lightpos),u_lightintensity:new b.Uniform1f(X,te.u_lightintensity),u_lightcolor:new b.Uniform3f(X,te.u_lightcolor),u_vertical_gradient:new b.Uniform1f(X,te.u_vertical_gradient),u_opacity:new b.Uniform1f(X,te.u_opacity)}},fillExtrusionPattern:function(X,te){return{u_matrix:new b.UniformMatrix4f(X,te.u_matrix),u_lightpos:new b.Uniform3f(X,te.u_lightpos),u_lightintensity:new b.Uniform1f(X,te.u_lightintensity),u_lightcolor:new b.Uniform3f(X,te.u_lightcolor),u_vertical_gradient:new b.Uniform1f(X,te.u_vertical_gradient),u_height_factor:new b.Uniform1f(X,te.u_height_factor),u_image:new b.Uniform1i(X,te.u_image),u_texsize:new b.Uniform2f(X,te.u_texsize),u_pixel_coord_upper:new b.Uniform2f(X,te.u_pixel_coord_upper),u_pixel_coord_lower:new b.Uniform2f(X,te.u_pixel_coord_lower),u_scale:new b.Uniform3f(X,te.u_scale),u_fade:new b.Uniform1f(X,te.u_fade),u_opacity:new b.Uniform1f(X,te.u_opacity)}},fill:function(X,te){return{u_matrix:new b.UniformMatrix4f(X,te.u_matrix)}},fillPattern:function(X,te){return{u_matrix:new b.UniformMatrix4f(X,te.u_matrix),u_image:new b.Uniform1i(X,te.u_image),u_texsize:new b.Uniform2f(X,te.u_texsize),u_pixel_coord_upper:new b.Uniform2f(X,te.u_pixel_coord_upper),u_pixel_coord_lower:new b.Uniform2f(X,te.u_pixel_coord_lower),u_scale:new b.Uniform3f(X,te.u_scale),u_fade:new b.Uniform1f(X,te.u_fade)}},fillOutline:function(X,te){return{u_matrix:new b.UniformMatrix4f(X,te.u_matrix),u_world:new b.Uniform2f(X,te.u_world)}},fillOutlinePattern:function(X,te){return{u_matrix:new b.UniformMatrix4f(X,te.u_matrix),u_world:new b.Uniform2f(X,te.u_world),u_image:new b.Uniform1i(X,te.u_image),u_texsize:new b.Uniform2f(X,te.u_texsize),u_pixel_coord_upper:new b.Uniform2f(X,te.u_pixel_coord_upper),u_pixel_coord_lower:new b.Uniform2f(X,te.u_pixel_coord_lower),u_scale:new b.Uniform3f(X,te.u_scale),u_fade:new b.Uniform1f(X,te.u_fade)}},circle:function(X,te){return{u_camera_to_center_distance:new b.Uniform1f(X,te.u_camera_to_center_distance),u_scale_with_map:new b.Uniform1i(X,te.u_scale_with_map),u_pitch_with_map:new b.Uniform1i(X,te.u_pitch_with_map),u_extrude_scale:new b.Uniform2f(X,te.u_extrude_scale),u_device_pixel_ratio:new b.Uniform1f(X,te.u_device_pixel_ratio),u_matrix:new b.UniformMatrix4f(X,te.u_matrix)}},collisionBox:function(X,te){return{u_matrix:new b.UniformMatrix4f(X,te.u_matrix),u_camera_to_center_distance:new b.Uniform1f(X,te.u_camera_to_center_distance),u_pixels_to_tile_units:new b.Uniform1f(X,te.u_pixels_to_tile_units),u_extrude_scale:new b.Uniform2f(X,te.u_extrude_scale),u_overscale_factor:new b.Uniform1f(X,te.u_overscale_factor)}},collisionCircle:function(X,te){return{u_matrix:new b.UniformMatrix4f(X,te.u_matrix),u_inv_matrix:new b.UniformMatrix4f(X,te.u_inv_matrix),u_camera_to_center_distance:new b.Uniform1f(X,te.u_camera_to_center_distance),u_viewport_size:new b.Uniform2f(X,te.u_viewport_size)}},debug:function(X,te){return{u_color:new b.UniformColor(X,te.u_color),u_matrix:new b.UniformMatrix4f(X,te.u_matrix),u_overlay:new b.Uniform1i(X,te.u_overlay),u_overlay_scale:new b.Uniform1f(X,te.u_overlay_scale)}},clippingMask:function(X,te){return{u_matrix:new b.UniformMatrix4f(X,te.u_matrix)}},heatmap:function(X,te){return{u_extrude_scale:new b.Uniform1f(X,te.u_extrude_scale),u_intensity:new b.Uniform1f(X,te.u_intensity),u_matrix:new b.UniformMatrix4f(X,te.u_matrix)}},heatmapTexture:function(X,te){return{u_matrix:new b.UniformMatrix4f(X,te.u_matrix),u_world:new b.Uniform2f(X,te.u_world),u_image:new b.Uniform1i(X,te.u_image),u_color_ramp:new b.Uniform1i(X,te.u_color_ramp),u_opacity:new b.Uniform1f(X,te.u_opacity)}},hillshade:function(X,te){return{u_matrix:new b.UniformMatrix4f(X,te.u_matrix),u_image:new b.Uniform1i(X,te.u_image),u_latrange:new b.Uniform2f(X,te.u_latrange),u_light:new b.Uniform2f(X,te.u_light),u_shadow:new b.UniformColor(X,te.u_shadow),u_highlight:new b.UniformColor(X,te.u_highlight),u_accent:new b.UniformColor(X,te.u_accent)}},hillshadePrepare:function(X,te){return{u_matrix:new b.UniformMatrix4f(X,te.u_matrix),u_image:new b.Uniform1i(X,te.u_image),u_dimension:new b.Uniform2f(X,te.u_dimension),u_zoom:new b.Uniform1f(X,te.u_zoom),u_unpack:new b.Uniform4f(X,te.u_unpack)}},line:function(X,te){return{u_matrix:new b.UniformMatrix4f(X,te.u_matrix),u_ratio:new b.Uniform1f(X,te.u_ratio),u_device_pixel_ratio:new b.Uniform1f(X,te.u_device_pixel_ratio),u_units_to_pixels:new b.Uniform2f(X,te.u_units_to_pixels)}},lineGradient:function(X,te){return{u_matrix:new b.UniformMatrix4f(X,te.u_matrix),u_ratio:new b.Uniform1f(X,te.u_ratio),u_device_pixel_ratio:new b.Uniform1f(X,te.u_device_pixel_ratio),u_units_to_pixels:new b.Uniform2f(X,te.u_units_to_pixels),u_image:new b.Uniform1i(X,te.u_image),u_image_height:new b.Uniform1f(X,te.u_image_height)}},linePattern:function(X,te){return{u_matrix:new b.UniformMatrix4f(X,te.u_matrix),u_texsize:new b.Uniform2f(X,te.u_texsize),u_ratio:new b.Uniform1f(X,te.u_ratio),u_device_pixel_ratio:new b.Uniform1f(X,te.u_device_pixel_ratio),u_image:new b.Uniform1i(X,te.u_image),u_units_to_pixels:new b.Uniform2f(X,te.u_units_to_pixels),u_scale:new b.Uniform3f(X,te.u_scale),u_fade:new b.Uniform1f(X,te.u_fade)}},lineSDF:function(X,te){return{u_matrix:new b.UniformMatrix4f(X,te.u_matrix),u_ratio:new b.Uniform1f(X,te.u_ratio),u_device_pixel_ratio:new b.Uniform1f(X,te.u_device_pixel_ratio),u_units_to_pixels:new b.Uniform2f(X,te.u_units_to_pixels),u_patternscale_a:new b.Uniform2f(X,te.u_patternscale_a),u_patternscale_b:new b.Uniform2f(X,te.u_patternscale_b),u_sdfgamma:new b.Uniform1f(X,te.u_sdfgamma),u_image:new b.Uniform1i(X,te.u_image),u_tex_y_a:new b.Uniform1f(X,te.u_tex_y_a),u_tex_y_b:new b.Uniform1f(X,te.u_tex_y_b),u_mix:new b.Uniform1f(X,te.u_mix)}},raster:function(X,te){return{u_matrix:new b.UniformMatrix4f(X,te.u_matrix),u_tl_parent:new b.Uniform2f(X,te.u_tl_parent),u_scale_parent:new b.Uniform1f(X,te.u_scale_parent),u_buffer_scale:new b.Uniform1f(X,te.u_buffer_scale),u_fade_t:new b.Uniform1f(X,te.u_fade_t),u_opacity:new b.Uniform1f(X,te.u_opacity),u_image0:new b.Uniform1i(X,te.u_image0),u_image1:new b.Uniform1i(X,te.u_image1),u_brightness_low:new b.Uniform1f(X,te.u_brightness_low),u_brightness_high:new b.Uniform1f(X,te.u_brightness_high),u_saturation_factor:new b.Uniform1f(X,te.u_saturation_factor),u_contrast_factor:new b.Uniform1f(X,te.u_contrast_factor),u_spin_weights:new b.Uniform3f(X,te.u_spin_weights)}},symbolIcon:function(X,te){return{u_is_size_zoom_constant:new b.Uniform1i(X,te.u_is_size_zoom_constant),u_is_size_feature_constant:new b.Uniform1i(X,te.u_is_size_feature_constant),u_size_t:new b.Uniform1f(X,te.u_size_t),u_size:new b.Uniform1f(X,te.u_size),u_camera_to_center_distance:new b.Uniform1f(X,te.u_camera_to_center_distance),u_pitch:new b.Uniform1f(X,te.u_pitch),u_rotate_symbol:new b.Uniform1i(X,te.u_rotate_symbol),u_aspect_ratio:new b.Uniform1f(X,te.u_aspect_ratio),u_fade_change:new b.Uniform1f(X,te.u_fade_change),u_matrix:new b.UniformMatrix4f(X,te.u_matrix),u_label_plane_matrix:new b.UniformMatrix4f(X,te.u_label_plane_matrix),u_coord_matrix:new b.UniformMatrix4f(X,te.u_coord_matrix),u_is_text:new b.Uniform1i(X,te.u_is_text),u_pitch_with_map:new b.Uniform1i(X,te.u_pitch_with_map),u_texsize:new b.Uniform2f(X,te.u_texsize),u_texture:new b.Uniform1i(X,te.u_texture)}},symbolSDF:function(X,te){return{u_is_size_zoom_constant:new b.Uniform1i(X,te.u_is_size_zoom_constant),u_is_size_feature_constant:new b.Uniform1i(X,te.u_is_size_feature_constant),u_size_t:new b.Uniform1f(X,te.u_size_t),u_size:new b.Uniform1f(X,te.u_size),u_camera_to_center_distance:new b.Uniform1f(X,te.u_camera_to_center_distance),u_pitch:new b.Uniform1f(X,te.u_pitch),u_rotate_symbol:new b.Uniform1i(X,te.u_rotate_symbol),u_aspect_ratio:new b.Uniform1f(X,te.u_aspect_ratio),u_fade_change:new b.Uniform1f(X,te.u_fade_change),u_matrix:new b.UniformMatrix4f(X,te.u_matrix),u_label_plane_matrix:new b.UniformMatrix4f(X,te.u_label_plane_matrix),u_coord_matrix:new b.UniformMatrix4f(X,te.u_coord_matrix),u_is_text:new b.Uniform1i(X,te.u_is_text),u_pitch_with_map:new b.Uniform1i(X,te.u_pitch_with_map),u_texsize:new b.Uniform2f(X,te.u_texsize),u_texture:new b.Uniform1i(X,te.u_texture),u_gamma_scale:new b.Uniform1f(X,te.u_gamma_scale),u_device_pixel_ratio:new b.Uniform1f(X,te.u_device_pixel_ratio),u_is_halo:new b.Uniform1i(X,te.u_is_halo)}},symbolTextAndIcon:function(X,te){return{u_is_size_zoom_constant:new b.Uniform1i(X,te.u_is_size_zoom_constant),u_is_size_feature_constant:new b.Uniform1i(X,te.u_is_size_feature_constant),u_size_t:new b.Uniform1f(X,te.u_size_t),u_size:new b.Uniform1f(X,te.u_size),u_camera_to_center_distance:new b.Uniform1f(X,te.u_camera_to_center_distance),u_pitch:new b.Uniform1f(X,te.u_pitch),u_rotate_symbol:new b.Uniform1i(X,te.u_rotate_symbol),u_aspect_ratio:new b.Uniform1f(X,te.u_aspect_ratio),u_fade_change:new b.Uniform1f(X,te.u_fade_change),u_matrix:new b.UniformMatrix4f(X,te.u_matrix),u_label_plane_matrix:new b.UniformMatrix4f(X,te.u_label_plane_matrix),u_coord_matrix:new b.UniformMatrix4f(X,te.u_coord_matrix),u_is_text:new b.Uniform1i(X,te.u_is_text),u_pitch_with_map:new b.Uniform1i(X,te.u_pitch_with_map),u_texsize:new b.Uniform2f(X,te.u_texsize),u_texsize_icon:new b.Uniform2f(X,te.u_texsize_icon),u_texture:new b.Uniform1i(X,te.u_texture),u_texture_icon:new b.Uniform1i(X,te.u_texture_icon),u_gamma_scale:new b.Uniform1f(X,te.u_gamma_scale),u_device_pixel_ratio:new b.Uniform1f(X,te.u_device_pixel_ratio),u_is_halo:new b.Uniform1i(X,te.u_is_halo)}},background:function(X,te){return{u_matrix:new b.UniformMatrix4f(X,te.u_matrix),u_opacity:new b.Uniform1f(X,te.u_opacity),u_color:new b.UniformColor(X,te.u_color)}},backgroundPattern:function(X,te){return{u_matrix:new b.UniformMatrix4f(X,te.u_matrix),u_opacity:new b.Uniform1f(X,te.u_opacity),u_image:new b.Uniform1i(X,te.u_image),u_pattern_tl_a:new b.Uniform2f(X,te.u_pattern_tl_a),u_pattern_br_a:new b.Uniform2f(X,te.u_pattern_br_a),u_pattern_tl_b:new b.Uniform2f(X,te.u_pattern_tl_b),u_pattern_br_b:new b.Uniform2f(X,te.u_pattern_br_b),u_texsize:new b.Uniform2f(X,te.u_texsize),u_mix:new b.Uniform1f(X,te.u_mix),u_pattern_size_a:new b.Uniform2f(X,te.u_pattern_size_a),u_pattern_size_b:new b.Uniform2f(X,te.u_pattern_size_b),u_scale_a:new b.Uniform1f(X,te.u_scale_a),u_scale_b:new b.Uniform1f(X,te.u_scale_b),u_pixel_coord_upper:new b.Uniform2f(X,te.u_pixel_coord_upper),u_pixel_coord_lower:new b.Uniform2f(X,te.u_pixel_coord_lower),u_tile_units_to_pixels:new b.Uniform1f(X,te.u_tile_units_to_pixels)}}};function jd(X,te,J,ae,it,Rt,en){for(var Yn=X.context,Zr=Yn.gl,fr=X.useProgram("collisionBox"),es=[],Xo=0,Ss=0,sa=0;sa0){var xu=b.create(),Tu=za;b.mul(xu,js.placementInvProjMatrix,X.transform.glCoordMatrix),b.mul(xu,xu,js.placementViewportMatrix),es.push({circleArray:nu,circleOffset:Ss,transform:Tu,invTransform:xu}),Ss=Xo+=nu.length/4}yl&&fr.draw(Yn,Zr.LINES,li.disabled,wr.disabled,X.colorModeForRenderPass(),ii.disabled,Vs(za,X.transform,Vo),J.id,yl.layoutVertexBuffer,yl.indexBuffer,yl.segments,null,X.transform.zoom,null,null,yl.collisionVertexBuffer)}}if(en&&es.length){var Cu=X.useProgram("collisionCircle"),dc=new b.StructArrayLayout2f1f2i16;dc.resize(4*Xo),dc._trim();for(var Hc=0,wc=0,hd=es;wc=0&&(qs[js.associatedIconIndex]={shiftedAnchor:dc,angle:Hc})}else fs(js.numGlyphs,Ss)}if(es){sa.clear();for(var hd=X.icon.placedSymbolArray,Td=0;Td0){var en=b.browser.now(),Yn=(en-X.timeAdded)/Rt,Zr=te?(en-te.timeAdded)/Rt:-1,fr=J.getSource(),es=it.coveringZoomLevel({tileSize:fr.tileSize,roundZoom:fr.roundZoom}),Xo=!te||Math.abs(te.tileID.overscaledZ-es)>Math.abs(X.tileID.overscaledZ-es),Ss=Xo&&X.refreshedUponExpiration?1:b.clamp(Xo?Yn:1-Zr,0,1);return X.refreshedUponExpiration&&Yn>=1&&(X.refreshedUponExpiration=!1),te?{opacity:1,mix:1-Ss}:{opacity:Ss,mix:0}}return{opacity:1,mix:0}}var Cp=new b.Color(1,0,0,1),Nf=new b.Color(0,1,0,1),uh=new b.Color(0,0,1,1),Th=new b.Color(1,0,1,1),yu=new b.Color(0,1,1,1);function ff(X,te,J,ae){Fu(X,0,te+J/2,X.transform.width,J,ae)}function Ja(X,te,J,ae){Fu(X,te-J/2,0,J,X.transform.height,ae)}function Fu(X,te,J,ae,it,Rt){var en=X.context,Yn=en.gl;Yn.enable(Yn.SCISSOR_TEST),Yn.scissor(te*b.browser.devicePixelRatio,J*b.browser.devicePixelRatio,ae*b.browser.devicePixelRatio,it*b.browser.devicePixelRatio),en.clear({color:Rt}),Yn.disable(Yn.SCISSOR_TEST)}function wd(X,te,J){var ae=X.context,it=ae.gl,Rt=J.posMatrix,en=X.useProgram("debug"),Yn=li.disabled,Zr=wr.disabled,fr=X.colorModeForRenderPass();ae.activeTexture.set(it.TEXTURE0),X.emptyTexture.bind(it.LINEAR,it.CLAMP_TO_EDGE),en.draw(ae,it.LINE_STRIP,Yn,Zr,fr,ii.disabled,Il(Rt,b.Color.red),"$debug",X.debugBuffer,X.tileBorderIndexBuffer,X.debugSegments);var es=te.getTileByID(J.key).latestRawTileData,Xo=Math.floor((es&&es.byteLength||0)/1024),Ss=te.getTile(J).tileSize,sa=512/Math.min(Ss,512)*(J.overscaledZ/X.transform.zoom)*.5,qs=J.canonical.toString();J.overscaledZ!==J.canonical.z&&(qs+=" => "+J.overscaledZ),function(Vo,js){Vo.initDebugOverlayCanvas();var za=Vo.debugOverlayCanvas,yl=Vo.context.gl,nu=Vo.debugOverlayCanvas.getContext("2d");nu.clearRect(0,0,za.width,za.height),nu.shadowColor="white",nu.shadowBlur=2,nu.lineWidth=1.5,nu.strokeStyle="white",nu.textBaseline="top",nu.font="bold 36px Open Sans, sans-serif",nu.fillText(js,5,5),nu.strokeText(js,5,5),Vo.debugOverlayTexture.update(za),Vo.debugOverlayTexture.bind(yl.LINEAR,yl.CLAMP_TO_EDGE)}(X,qs+" "+Xo+"kb"),en.draw(ae,it.TRIANGLES,Yn,Zr,qr.alphaBlended,ii.disabled,Il(Rt,b.Color.transparent,sa),"$debug",X.debugBuffer,X.quadTriangleIndexBuffer,X.debugSegments)}var Yd={symbol:function(X,te,J,ae,it){if(X.renderPass==="translucent"){var Rt=wr.disabled,en=X.colorModeForRenderPass();J.layout.get("text-variable-anchor")&&function(Yn,Zr,fr,es,Xo,Ss,sa){for(var qs=Zr.transform,Vo=Xo==="map",js=Ss==="map",za=0,yl=Yn;za256&&this.clearStencil(),J.setColorMode(qr.disabled),J.setDepthMode(li.disabled);var it=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var Rt=0,en=te;Rt256&&this.clearStencil();var X=this.nextStencilID++,te=this.context.gl;return new wr({func:te.NOTEQUAL,mask:255},X,255,te.KEEP,te.KEEP,te.REPLACE)},Ba.prototype.stencilModeForClipping=function(X){var te=this.context.gl;return new wr({func:te.EQUAL,mask:255},this._tileClippingMaskIDs[X.key],0,te.KEEP,te.KEEP,te.REPLACE)},Ba.prototype.stencilConfigForOverlap=function(X){var te,J=this.context.gl,ae=X.sort(function(Zr,fr){return fr.overscaledZ-Zr.overscaledZ}),it=ae[ae.length-1].overscaledZ,Rt=ae[0].overscaledZ-it+1;if(Rt>1){this.currentStencilSource=void 0,this.nextStencilID+Rt>256&&this.clearStencil();for(var en={},Yn=0;Yn=0;this.currentLayer--){var nu=this.style._layers[ae[this.currentLayer]],xu=it[nu.source],Tu=fr[nu.source];this._renderTileClippingMasks(nu,Tu),this.renderLayer(this,xu,nu,Tu)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?te.pop():null},Ba.prototype.isPatternMissing=function(X){if(!X)return!1;if(!X.from||!X.to)return!0;var te=this.imageManager.getPattern(X.from.toString()),J=this.imageManager.getPattern(X.to.toString());return!te||!J},Ba.prototype.useProgram=function(X,te){this.cache=this.cache||{};var J=""+X+(te?te.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[J]||(this.cache[J]=new Ya(this.context,X,ja[X],te,th[X],this._showOverdrawInspector)),this.cache[J]},Ba.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},Ba.prototype.setBaseState=function(){var X=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(X.FUNC_ADD)},Ba.prototype.initDebugOverlayCanvas=function(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=b.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new b.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))},Ba.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var ru=function(X,te){this.points=X,this.planes=te};ru.fromInvProjectionMatrix=function(X,te,J){var ae=Math.pow(2,J),it=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(function(en){return b.transformMat4([],en,X)}).map(function(en){return b.scale$1([],en,1/en[3]/te*ae)}),Rt=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(function(en){var Yn=b.sub([],it[en[0]],it[en[1]]),Zr=b.sub([],it[en[2]],it[en[1]]),fr=b.normalize([],b.cross([],Yn,Zr)),es=-b.dot(fr,it[en[1]]);return fr.concat(es)});return new ru(it,Rt)};var zl=function(X,te){this.min=X,this.max=te,this.center=b.scale$2([],b.add([],this.min,this.max),.5)};zl.prototype.quadrant=function(X){for(var te=[X%2==0,X<2],J=b.clone$2(this.min),ae=b.clone$2(this.max),it=0;it=0;if(Rt===0)return 0;Rt!==te.length&&(J=!1)}if(J)return 2;for(var Yn=0;Yn<3;Yn++){for(var Zr=Number.MAX_VALUE,fr=-Number.MAX_VALUE,es=0;esthis.max[Yn]-this.min[Yn])return 0}return 1};var Au=function(X,te,J,ae){if(X===void 0&&(X=0),te===void 0&&(te=0),J===void 0&&(J=0),ae===void 0&&(ae=0),isNaN(X)||X<0||isNaN(te)||te<0||isNaN(J)||J<0||isNaN(ae)||ae<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=X,this.bottom=te,this.left=J,this.right=ae};Au.prototype.interpolate=function(X,te,J){return te.top!=null&&X.top!=null&&(this.top=b.number(X.top,te.top,J)),te.bottom!=null&&X.bottom!=null&&(this.bottom=b.number(X.bottom,te.bottom,J)),te.left!=null&&X.left!=null&&(this.left=b.number(X.left,te.left,J)),te.right!=null&&X.right!=null&&(this.right=b.number(X.right,te.right,J)),this},Au.prototype.getCenter=function(X,te){var J=b.clamp((this.left+X-this.right)/2,0,X),ae=b.clamp((this.top+te-this.bottom)/2,0,te);return new b.Point(J,ae)},Au.prototype.equals=function(X){return this.top===X.top&&this.bottom===X.bottom&&this.left===X.left&&this.right===X.right},Au.prototype.clone=function(){return new Au(this.top,this.bottom,this.left,this.right)},Au.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var Vu=function(X,te,J,ae,it){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=it===void 0||it,this._minZoom=X||0,this._maxZoom=te||22,this._minPitch=J==null?0:J,this._maxPitch=ae==null?60:ae,this.setMaxBounds(),this.width=0,this.height=0,this._center=new b.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Au,this._posMatrixCache={},this._alignedPosMatrixCache={}},Vd={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};Vu.prototype.clone=function(){var X=new Vu(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return X.tileSize=this.tileSize,X.latRange=this.latRange,X.width=this.width,X.height=this.height,X._center=this._center,X.zoom=this.zoom,X.angle=this.angle,X._fov=this._fov,X._pitch=this._pitch,X._unmodified=this._unmodified,X._edgeInsets=this._edgeInsets.clone(),X._calcMatrices(),X},Vd.minZoom.get=function(){return this._minZoom},Vd.minZoom.set=function(X){this._minZoom!==X&&(this._minZoom=X,this.zoom=Math.max(this.zoom,X))},Vd.maxZoom.get=function(){return this._maxZoom},Vd.maxZoom.set=function(X){this._maxZoom!==X&&(this._maxZoom=X,this.zoom=Math.min(this.zoom,X))},Vd.minPitch.get=function(){return this._minPitch},Vd.minPitch.set=function(X){this._minPitch!==X&&(this._minPitch=X,this.pitch=Math.max(this.pitch,X))},Vd.maxPitch.get=function(){return this._maxPitch},Vd.maxPitch.set=function(X){this._maxPitch!==X&&(this._maxPitch=X,this.pitch=Math.min(this.pitch,X))},Vd.renderWorldCopies.get=function(){return this._renderWorldCopies},Vd.renderWorldCopies.set=function(X){X===void 0?X=!0:X===null&&(X=!1),this._renderWorldCopies=X},Vd.worldSize.get=function(){return this.tileSize*this.scale},Vd.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},Vd.size.get=function(){return new b.Point(this.width,this.height)},Vd.bearing.get=function(){return-this.angle/Math.PI*180},Vd.bearing.set=function(X){var te=-b.wrap(X,-180,180)*Math.PI/180;this.angle!==te&&(this._unmodified=!1,this.angle=te,this._calcMatrices(),this.rotationMatrix=b.create$2(),b.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},Vd.pitch.get=function(){return this._pitch/Math.PI*180},Vd.pitch.set=function(X){var te=b.clamp(X,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==te&&(this._unmodified=!1,this._pitch=te,this._calcMatrices())},Vd.fov.get=function(){return this._fov/Math.PI*180},Vd.fov.set=function(X){X=Math.max(.01,Math.min(60,X)),this._fov!==X&&(this._unmodified=!1,this._fov=X/180*Math.PI,this._calcMatrices())},Vd.zoom.get=function(){return this._zoom},Vd.zoom.set=function(X){var te=Math.min(Math.max(X,this.minZoom),this.maxZoom);this._zoom!==te&&(this._unmodified=!1,this._zoom=te,this.scale=this.zoomScale(te),this.tileZoom=Math.floor(te),this.zoomFraction=te-this.tileZoom,this._constrain(),this._calcMatrices())},Vd.center.get=function(){return this._center},Vd.center.set=function(X){X.lat===this._center.lat&&X.lng===this._center.lng||(this._unmodified=!1,this._center=X,this._constrain(),this._calcMatrices())},Vd.padding.get=function(){return this._edgeInsets.toJSON()},Vd.padding.set=function(X){this._edgeInsets.equals(X)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,X,1),this._calcMatrices())},Vd.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},Vu.prototype.isPaddingEqual=function(X){return this._edgeInsets.equals(X)},Vu.prototype.interpolatePadding=function(X,te,J){this._unmodified=!1,this._edgeInsets.interpolate(X,te,J),this._constrain(),this._calcMatrices()},Vu.prototype.coveringZoomLevel=function(X){var te=(X.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/X.tileSize));return Math.max(0,te)},Vu.prototype.getVisibleUnwrappedCoordinates=function(X){var te=[new b.UnwrappedTileID(0,X)];if(this._renderWorldCopies)for(var J=this.pointCoordinate(new b.Point(0,0)),ae=this.pointCoordinate(new b.Point(this.width,0)),it=this.pointCoordinate(new b.Point(this.width,this.height)),Rt=this.pointCoordinate(new b.Point(0,this.height)),en=Math.floor(Math.min(J.x,ae.x,it.x,Rt.x)),Yn=Math.floor(Math.max(J.x,ae.x,it.x,Rt.x)),Zr=en-1;Zr<=Yn+1;Zr++)Zr!==0&&te.push(new b.UnwrappedTileID(Zr,X));return te},Vu.prototype.coveringTiles=function(X){var te=this.coveringZoomLevel(X),J=te;if(X.minzoom!==void 0&&teX.maxzoom&&(te=X.maxzoom);var ae=b.MercatorCoordinate.fromLngLat(this.center),it=Math.pow(2,te),Rt=[it*ae.x,it*ae.y,0],en=ru.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,te),Yn=X.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(Yn=te);var Zr=function(wc){return{aabb:new zl([wc*it,0,0],[(wc+1)*it,it,0]),zoom:0,x:0,y:0,wrap:wc,fullyVisible:!1}},fr=[],es=[],Xo=te,Ss=X.reparseOverscaled?J:te;if(this._renderWorldCopies)for(var sa=1;sa<=3;sa++)fr.push(Zr(-sa)),fr.push(Zr(sa));for(fr.push(Zr(0));fr.length>0;){var qs=fr.pop(),Vo=qs.x,js=qs.y,za=qs.fullyVisible;if(!za){var yl=qs.aabb.intersects(en);if(yl===0)continue;za=yl===2}var nu=qs.aabb.distanceX(Rt),xu=qs.aabb.distanceY(Rt),Tu=Math.max(Math.abs(nu),Math.abs(xu));if(qs.zoom===Xo||Tu>3+(1<=Yn)es.push({tileID:new b.OverscaledTileID(qs.zoom===Xo?Ss:qs.zoom,qs.wrap,qs.zoom,Vo,js),distanceSq:b.sqrLen([Rt[0]-.5-Vo,Rt[1]-.5-js])});else for(var Cu=0;Cu<4;Cu++){var dc=(Vo<<1)+Cu%2,Hc=(js<<1)+(Cu>>1);fr.push({aabb:qs.aabb.quadrant(Cu),zoom:qs.zoom+1,x:dc,y:Hc,wrap:qs.wrap,fullyVisible:za})}}return es.sort(function(wc,hd){return wc.distanceSq-hd.distanceSq}).map(function(wc){return wc.tileID})},Vu.prototype.resize=function(X,te){this.width=X,this.height=te,this.pixelsToGLUnits=[2/X,-2/te],this._constrain(),this._calcMatrices()},Vd.unmodified.get=function(){return this._unmodified},Vu.prototype.zoomScale=function(X){return Math.pow(2,X)},Vu.prototype.scaleZoom=function(X){return Math.log(X)/Math.LN2},Vu.prototype.project=function(X){var te=b.clamp(X.lat,-this.maxValidLatitude,this.maxValidLatitude);return new b.Point(b.mercatorXfromLng(X.lng)*this.worldSize,b.mercatorYfromLat(te)*this.worldSize)},Vu.prototype.unproject=function(X){return new b.MercatorCoordinate(X.x/this.worldSize,X.y/this.worldSize).toLngLat()},Vd.point.get=function(){return this.project(this.center)},Vu.prototype.setLocationAtPoint=function(X,te){var J=this.pointCoordinate(te),ae=this.pointCoordinate(this.centerPoint),it=this.locationCoordinate(X),Rt=new b.MercatorCoordinate(it.x-(J.x-ae.x),it.y-(J.y-ae.y));this.center=this.coordinateLocation(Rt),this._renderWorldCopies&&(this.center=this.center.wrap())},Vu.prototype.locationPoint=function(X){return this.coordinatePoint(this.locationCoordinate(X))},Vu.prototype.pointLocation=function(X){return this.coordinateLocation(this.pointCoordinate(X))},Vu.prototype.locationCoordinate=function(X){return b.MercatorCoordinate.fromLngLat(X)},Vu.prototype.coordinateLocation=function(X){return X.toLngLat()},Vu.prototype.pointCoordinate=function(X){var te=[X.x,X.y,0,1],J=[X.x,X.y,1,1];b.transformMat4(te,te,this.pixelMatrixInverse),b.transformMat4(J,J,this.pixelMatrixInverse);var ae=te[3],it=J[3],Rt=te[1]/ae,en=J[1]/it,Yn=te[2]/ae,Zr=J[2]/it,fr=Yn===Zr?0:(0-Yn)/(Zr-Yn);return new b.MercatorCoordinate(b.number(te[0]/ae,J[0]/it,fr)/this.worldSize,b.number(Rt,en,fr)/this.worldSize)},Vu.prototype.coordinatePoint=function(X){var te=[X.x*this.worldSize,X.y*this.worldSize,0,1];return b.transformMat4(te,te,this.pixelMatrix),new b.Point(te[0]/te[3],te[1]/te[3])},Vu.prototype.getBounds=function(){return new b.LngLatBounds().extend(this.pointLocation(new b.Point(0,0))).extend(this.pointLocation(new b.Point(this.width,0))).extend(this.pointLocation(new b.Point(this.width,this.height))).extend(this.pointLocation(new b.Point(0,this.height)))},Vu.prototype.getMaxBounds=function(){return this.latRange&&this.latRange.length===2&&this.lngRange&&this.lngRange.length===2?new b.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},Vu.prototype.setMaxBounds=function(X){X?(this.lngRange=[X.getWest(),X.getEast()],this.latRange=[X.getSouth(),X.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},Vu.prototype.calculatePosMatrix=function(X,te){te===void 0&&(te=!1);var J=X.key,ae=te?this._alignedPosMatrixCache:this._posMatrixCache;if(ae[J])return ae[J];var it=X.canonical,Rt=this.worldSize/this.zoomScale(it.z),en=it.x+Math.pow(2,it.z)*X.wrap,Yn=b.identity(new Float64Array(16));return b.translate(Yn,Yn,[en*Rt,it.y*Rt,0]),b.scale(Yn,Yn,[Rt/b.EXTENT,Rt/b.EXTENT,1]),b.multiply(Yn,te?this.alignedProjMatrix:this.projMatrix,Yn),ae[J]=new Float32Array(Yn),ae[J]},Vu.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},Vu.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var X,te,J,ae,it=-90,Rt=90,en=-180,Yn=180,Zr=this.size,fr=this._unmodified;if(this.latRange){var es=this.latRange;it=b.mercatorYfromLat(es[1])*this.worldSize,X=(Rt=b.mercatorYfromLat(es[0])*this.worldSize)-itRt&&(ae=Rt-Vo)}if(this.lngRange){var js=Ss.x,za=Zr.x/2;js-zaYn&&(J=Yn-za)}J===void 0&&ae===void 0||(this.center=this.unproject(new b.Point(J!==void 0?J:Ss.x,ae!==void 0?ae:Ss.y))),this._unmodified=fr,this._constraining=!1}},Vu.prototype._calcMatrices=function(){if(this.height){var X=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;var te=Math.PI/2+this._pitch,J=this._fov*(.5+X.y/this.height),ae=Math.sin(J)*this.cameraToCenterDistance/Math.sin(b.clamp(Math.PI-te-J,.01,Math.PI-.01)),it=this.point,Rt=it.x,en=it.y,Yn=1.01*(Math.cos(Math.PI/2-this._pitch)*ae+this.cameraToCenterDistance),Zr=this.height/50,fr=new Float64Array(16);b.perspective(fr,this._fov,this.width/this.height,Zr,Yn),fr[8]=2*-X.x/this.width,fr[9]=2*X.y/this.height,b.scale(fr,fr,[1,-1,1]),b.translate(fr,fr,[0,0,-this.cameraToCenterDistance]),b.rotateX(fr,fr,this._pitch),b.rotateZ(fr,fr,this.angle),b.translate(fr,fr,[-Rt,-en,0]),this.mercatorMatrix=b.scale([],fr,[this.worldSize,this.worldSize,this.worldSize]),b.scale(fr,fr,[1,1,b.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=fr,this.invProjMatrix=b.invert([],this.projMatrix);var es=this.width%2/2,Xo=this.height%2/2,Ss=Math.cos(this.angle),sa=Math.sin(this.angle),qs=Rt-Math.round(Rt)+Ss*es+sa*Xo,Vo=en-Math.round(en)+Ss*Xo+sa*es,js=new Float64Array(fr);if(b.translate(js,js,[qs>.5?qs-1:qs,Vo>.5?Vo-1:Vo,0]),this.alignedProjMatrix=js,fr=b.create(),b.scale(fr,fr,[this.width/2,-this.height/2,1]),b.translate(fr,fr,[1,-1,0]),this.labelPlaneMatrix=fr,fr=b.create(),b.scale(fr,fr,[1,-1,1]),b.translate(fr,fr,[-1,-1,0]),b.scale(fr,fr,[2/this.width,2/this.height,1]),this.glCoordMatrix=fr,this.pixelMatrix=b.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(fr=b.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=fr,this._posMatrixCache={},this._alignedPosMatrixCache={}}},Vu.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var X=this.pointCoordinate(new b.Point(0,0)),te=[X.x*this.worldSize,X.y*this.worldSize,0,1];return b.transformMat4(te,te,this.pixelMatrix)[3]/this.cameraToCenterDistance},Vu.prototype.getCameraPoint=function(){var X=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new b.Point(0,X))},Vu.prototype.getCameraQueryGeometry=function(X){var te=this.getCameraPoint();if(X.length===1)return[X[0],te];for(var J=te.x,ae=te.y,it=te.x,Rt=te.y,en=0,Yn=X;en=3&&!X.some(function(J){return isNaN(J)})){var te=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(X[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+X[2],+X[1]],zoom:+X[0],bearing:te,pitch:+(X[4]||0)}),!0}return!1},Ud.prototype._updateHashUnthrottled=function(){var X=b.window.location.href.replace(/(#.+)?$/,this.getHashString());try{b.window.history.replaceState(b.window.history.state,null,X)}catch(te){}};var oh={linearity:.3,easing:b.bezier(0,0,.3,1)},Vf=b.extend({deceleration:2500,maxSpeed:1400},oh),yf=b.extend({deceleration:20,maxSpeed:1400},oh),Uh=b.extend({deceleration:1e3,maxSpeed:360},oh),kf=b.extend({deceleration:1e3,maxSpeed:90},oh),Bh=function(X){this._map=X,this.clear()};function Kf(X,te){(!X.duration||X.duration0&&te-X[0].time>160;)X.shift()},Bh.prototype._onMoveEnd=function(X){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var te={zoom:0,bearing:0,pitch:0,pan:new b.Point(0,0),pinchAround:void 0,around:void 0},J=0,ae=this._inertiaBuffer;J=this._clickTolerance||this._map.fire(new ed(X.type,this._map,X))},cf.prototype.dblclick=function(X){return this._firePreventable(new ed(X.type,this._map,X))},cf.prototype.mouseover=function(X){this._map.fire(new ed(X.type,this._map,X))},cf.prototype.mouseout=function(X){this._map.fire(new ed(X.type,this._map,X))},cf.prototype.touchstart=function(X){return this._firePreventable(new Vh(X.type,this._map,X))},cf.prototype.touchmove=function(X){this._map.fire(new Vh(X.type,this._map,X))},cf.prototype.touchend=function(X){this._map.fire(new Vh(X.type,this._map,X))},cf.prototype.touchcancel=function(X){this._map.fire(new Vh(X.type,this._map,X))},cf.prototype._firePreventable=function(X){if(this._map.fire(X),X.defaultPrevented)return{}},cf.prototype.isEnabled=function(){return!0},cf.prototype.isActive=function(){return!1},cf.prototype.enable=function(){},cf.prototype.disable=function(){};var Qc=function(X){this._map=X};Qc.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Qc.prototype.mousemove=function(X){this._map.fire(new ed(X.type,this._map,X))},Qc.prototype.mousedown=function(){this._delayContextMenu=!0},Qc.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new ed("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Qc.prototype.contextmenu=function(X){this._delayContextMenu?this._contextMenuEvent=X:this._map.fire(new ed(X.type,this._map,X)),this._map.listens("contextmenu")&&X.preventDefault()},Qc.prototype.isEnabled=function(){return!0},Qc.prototype.isActive=function(){return!1},Qc.prototype.enable=function(){},Qc.prototype.disable=function(){};var Pa=function(X,te){this._map=X,this._el=X.getCanvasContainer(),this._container=X.getContainer(),this._clickTolerance=te.clickTolerance||1};function is(X,te){for(var J={},ae=0;aethis.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===void 0&&(this.startTime=X.timeStamp),J.length===this.numTouches&&(this.centroid=function(ae){for(var it=new b.Point(0,0),Rt=0,en=ae;Rt30)&&(this.aborted=!0)}}},Op.prototype.touchend=function(X,te,J){if((!this.centroid||X.timeStamp-this.startTime>500)&&(this.aborted=!0),J.length===0){var ae=!this.aborted&&this.centroid;if(this.reset(),ae)return ae}};var Qi=function(X){this.singleTap=new Op(X),this.numTaps=X.numTaps,this.reset()};Qi.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},Qi.prototype.touchstart=function(X,te,J){this.singleTap.touchstart(X,te,J)},Qi.prototype.touchmove=function(X,te,J){this.singleTap.touchmove(X,te,J)},Qi.prototype.touchend=function(X,te,J){var ae=this.singleTap.touchend(X,te,J);if(ae){var it=X.timeStamp-this.lastTime<500,Rt=!this.lastTap||this.lastTap.dist(ae)<30;if(it&&Rt||this.reset(),this.count++,this.lastTime=X.timeStamp,this.lastTap=ae,this.count===this.numTaps)return this.reset(),ae}};var bc=function(){this._zoomIn=new Qi({numTouches:1,numTaps:2}),this._zoomOut=new Qi({numTouches:2,numTaps:1}),this.reset()};bc.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},bc.prototype.touchstart=function(X,te,J){this._zoomIn.touchstart(X,te,J),this._zoomOut.touchstart(X,te,J)},bc.prototype.touchmove=function(X,te,J){this._zoomIn.touchmove(X,te,J),this._zoomOut.touchmove(X,te,J)},bc.prototype.touchend=function(X,te,J){var ae=this,it=this._zoomIn.touchend(X,te,J),Rt=this._zoomOut.touchend(X,te,J);return it?(this._active=!0,X.preventDefault(),setTimeout(function(){return ae.reset()},0),{cameraAnimation:function(en){return en.easeTo({duration:300,zoom:en.getZoom()+1,around:en.unproject(it)},{originalEvent:X})}}):Rt?(this._active=!0,X.preventDefault(),setTimeout(function(){return ae.reset()},0),{cameraAnimation:function(en){return en.easeTo({duration:300,zoom:en.getZoom()-1,around:en.unproject(Rt)},{originalEvent:X})}}):void 0},bc.prototype.touchcancel=function(){this.reset()},bc.prototype.enable=function(){this._enabled=!0},bc.prototype.disable=function(){this._enabled=!1,this.reset()},bc.prototype.isEnabled=function(){return this._enabled},bc.prototype.isActive=function(){return this._active};var gf={0:1,2:2},Qu=function(X){this.reset(),this._clickTolerance=X.clickTolerance||1};Qu.prototype.blur=function(){this.reset()},Qu.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},Qu.prototype._correctButton=function(X,te){return!1},Qu.prototype._move=function(X,te){return{}},Qu.prototype.mousedown=function(X,te){if(!this._lastPoint){var J=k.mouseButton(X);this._correctButton(X,J)&&(this._lastPoint=te,this._eventButton=J)}},Qu.prototype.mousemoveWindow=function(X,te){var J=this._lastPoint;if(J){if(X.preventDefault(),function(ae,it){var Rt=gf[it];return ae.buttons===void 0||(ae.buttons&Rt)!==Rt}(X,this._eventButton))this.reset();else if(this._moved||!(te.dist(J)0&&(this._active=!0);var ae=is(J,te),it=new b.Point(0,0),Rt=new b.Point(0,0),en=0;for(var Yn in ae){var Zr=ae[Yn],fr=this._touches[Yn];fr&&(it._add(Zr),Rt._add(Zr.sub(fr)),en++,ae[Yn]=Zr)}if(this._touches=ae,!(enMath.abs(X.x)}var Pd=function(X){function te(){X.apply(this,arguments)}return X&&(te.__proto__=X),(te.prototype=Object.create(X&&X.prototype)).constructor=te,te.prototype.reset=function(){X.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},te.prototype._start=function(J){this._lastPoints=J,Uf(J[0].sub(J[1]))&&(this._valid=!1)},te.prototype._move=function(J,ae,it){var Rt=J[0].sub(this._lastPoints[0]),en=J[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(Rt,en,it.timeStamp),this._valid)return this._lastPoints=J,this._active=!0,{pitchDelta:(Rt.y+en.y)/2*-.5}},te.prototype.gestureBeginsVertically=function(J,ae,it){if(this._valid!==void 0)return this._valid;var Rt=J.mag()>=2,en=ae.mag()>=2;if(Rt||en){if(!Rt||!en)return this._firstMove===void 0&&(this._firstMove=it),it-this._firstMove<100&&void 0;var Yn=J.y>0==ae.y>0;return Uf(J)&&Uf(ae)&&Yn}},te}(Ah),Np={panStep:100,bearingStep:15,pitchStep:10},$p=function(){var X=Np;this._panStep=X.panStep,this._bearingStep=X.bearingStep,this._pitchStep=X.pitchStep,this._rotationDisabled=!1};function ag(X){return X*(2-X)}$p.prototype.blur=function(){this.reset()},$p.prototype.reset=function(){this._active=!1},$p.prototype.keydown=function(X){var te=this;if(!(X.altKey||X.ctrlKey||X.metaKey)){var J=0,ae=0,it=0,Rt=0,en=0;switch(X.keyCode){case 61:case 107:case 171:case 187:J=1;break;case 189:case 109:case 173:J=-1;break;case 37:X.shiftKey?ae=-1:(X.preventDefault(),Rt=-1);break;case 39:X.shiftKey?ae=1:(X.preventDefault(),Rt=1);break;case 38:X.shiftKey?it=1:(X.preventDefault(),en=-1);break;case 40:X.shiftKey?it=-1:(X.preventDefault(),en=1);break;default:return}return this._rotationDisabled&&(ae=0,it=0),{cameraAnimation:function(Yn){var Zr=Yn.getZoom();Yn.easeTo({duration:300,easeId:"keyboardHandler",easing:ag,zoom:J?Math.round(Zr)+J*(X.shiftKey?2:1):Zr,bearing:Yn.getBearing()+ae*te._bearingStep,pitch:Yn.getPitch()+it*te._pitchStep,offset:[-Rt*te._panStep,-en*te._panStep],center:Yn.getCenter()},{originalEvent:X})}}}},$p.prototype.enable=function(){this._enabled=!0},$p.prototype.disable=function(){this._enabled=!1,this.reset()},$p.prototype.isEnabled=function(){return this._enabled},$p.prototype.isActive=function(){return this._active},$p.prototype.disableRotation=function(){this._rotationDisabled=!0},$p.prototype.enableRotation=function(){this._rotationDisabled=!1};var Md=function(X,te){this._map=X,this._el=X.getCanvasContainer(),this._handler=te,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=1/450,b.bindAll(["_onTimeout"],this)};Md.prototype.setZoomRate=function(X){this._defaultZoomRate=X},Md.prototype.setWheelZoomRate=function(X){this._wheelZoomRate=X},Md.prototype.isEnabled=function(){return!!this._enabled},Md.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},Md.prototype.isZooming=function(){return!!this._zooming},Md.prototype.enable=function(X){this.isEnabled()||(this._enabled=!0,this._aroundCenter=X&&X.around==="center")},Md.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Md.prototype.wheel=function(X){if(this.isEnabled()){var te=X.deltaMode===b.window.WheelEvent.DOM_DELTA_LINE?40*X.deltaY:X.deltaY,J=b.browser.now(),ae=J-(this._lastWheelEventTime||0);this._lastWheelEventTime=J,te!==0&&te%4.000244140625==0?this._type="wheel":te!==0&&Math.abs(te)<4?this._type="trackpad":ae>400?(this._type=null,this._lastValue=te,this._timeout=setTimeout(this._onTimeout,40,X)):this._type||(this._type=Math.abs(ae*te)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,te+=this._lastValue)),X.shiftKey&&te&&(te/=4),this._type&&(this._lastWheelEvent=X,this._delta-=te,this._active||this._start(X)),X.preventDefault()}},Md.prototype._onTimeout=function(X){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(X)},Md.prototype._start=function(X){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var te=k.mousePos(this._el,X);this._around=b.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(te)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},Md.prototype.renderFrame=function(){var X=this;if(this._frameId&&(this._frameId=null,this.isActive())){var te=this._map.transform;if(this._delta!==0){var J=this._type==="wheel"&&Math.abs(this._delta)>4.000244140625?this._wheelZoomRate:this._defaultZoomRate,ae=2/(1+Math.exp(-Math.abs(this._delta*J)));this._delta<0&&ae!==0&&(ae=1/ae);var it=typeof this._targetZoom=="number"?te.zoomScale(this._targetZoom):te.scale;this._targetZoom=Math.min(te.maxZoom,Math.max(te.minZoom,te.scaleZoom(it*ae))),this._type==="wheel"&&(this._startZoom=te.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var Rt,en=typeof this._targetZoom=="number"?this._targetZoom:te.zoom,Yn=this._startZoom,Zr=this._easing,fr=!1;if(this._type==="wheel"&&Yn&&Zr){var es=Math.min((b.browser.now()-this._lastWheelEventTime)/200,1),Xo=Zr(es);Rt=b.number(Yn,en,Xo),es<1?this._frameId||(this._frameId=!0):fr=!0}else Rt=en,fr=!0;return this._active=!0,fr&&(this._active=!1,this._finishTimeout=setTimeout(function(){X._zooming=!1,X._handler._triggerRenderFrame(),delete X._targetZoom,delete X._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!fr,zoomDelta:Rt-te.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},Md.prototype._smoothOutEasing=function(X){var te=b.ease;if(this._prevEase){var J=this._prevEase,ae=(b.browser.now()-J.start)/J.duration,it=J.easing(ae+.01)-J.easing(ae),Rt=.27/Math.sqrt(it*it+1e-4)*.01,en=Math.sqrt(.0729-Rt*Rt);te=b.bezier(Rt,en,.25,1)}return this._prevEase={start:b.browser.now(),duration:X,easing:te},te},Md.prototype.blur=function(){this.reset()},Md.prototype.reset=function(){this._active=!1};var Wp=function(X,te){this._clickZoom=X,this._tapZoom=te};Wp.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},Wp.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},Wp.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},Wp.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var Ih=function(){this.reset()};Ih.prototype.reset=function(){this._active=!1},Ih.prototype.blur=function(){this.reset()},Ih.prototype.dblclick=function(X,te){return X.preventDefault(),{cameraAnimation:function(J){J.easeTo({duration:300,zoom:J.getZoom()+(X.shiftKey?-1:1),around:J.unproject(te)},{originalEvent:X})}}},Ih.prototype.enable=function(){this._enabled=!0},Ih.prototype.disable=function(){this._enabled=!1,this.reset()},Ih.prototype.isEnabled=function(){return this._enabled},Ih.prototype.isActive=function(){return this._active};var of=function(){this._tap=new Qi({numTouches:1,numTaps:1}),this.reset()};of.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},of.prototype.touchstart=function(X,te,J){this._swipePoint||(this._tapTime&&X.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?J.length>0&&(this._swipePoint=te[0],this._swipeTouch=J[0].identifier):this._tap.touchstart(X,te,J))},of.prototype.touchmove=function(X,te,J){if(this._tapTime){if(this._swipePoint){if(J[0].identifier!==this._swipeTouch)return;var ae=te[0],it=ae.y-this._swipePoint.y;return this._swipePoint=ae,X.preventDefault(),this._active=!0,{zoomDelta:it/128}}}else this._tap.touchmove(X,te,J)},of.prototype.touchend=function(X,te,J){this._tapTime?this._swipePoint&&J.length===0&&this.reset():this._tap.touchend(X,te,J)&&(this._tapTime=X.timeStamp)},of.prototype.touchcancel=function(){this.reset()},of.prototype.enable=function(){this._enabled=!0},of.prototype.disable=function(){this._enabled=!1,this.reset()},of.prototype.isEnabled=function(){return this._enabled},of.prototype.isActive=function(){return this._active};var Ff=function(X,te,J){this._el=X,this._mousePan=te,this._touchPan=J};Ff.prototype.enable=function(X){this._inertiaOptions=X||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},Ff.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},Ff.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},Ff.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var iu=function(X,te,J){this._pitchWithRotate=X.pitchWithRotate,this._mouseRotate=te,this._mousePitch=J};iu.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},iu.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},iu.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},iu.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var mp=function(X,te,J,ae){this._el=X,this._touchZoom=te,this._touchRotate=J,this._tapDragZoom=ae,this._rotationDisabled=!1,this._enabled=!0};mp.prototype.enable=function(X){this._touchZoom.enable(X),this._rotationDisabled||this._touchRotate.enable(X),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},mp.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},mp.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},mp.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},mp.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},mp.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var Af=function(X){return X.zoom||X.drag||X.pitch||X.rotate},np=function(X){function te(){X.apply(this,arguments)}return X&&(te.__proto__=X),(te.prototype=Object.create(X&&X.prototype)).constructor=te,te}(b.Event);function Od(X){return X.panDelta&&X.panDelta.mag()||X.zoomDelta||X.bearingDelta||X.pitchDelta}var td=function(X,te){this._map=X,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Bh(X),this._bearingSnap=te.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(te),b.bindAll(["handleEvent","handleWindowEvent"],this);var J=this._el;this._listeners=[[J,"touchstart",{passive:!0}],[J,"touchmove",{passive:!1}],[J,"touchend",void 0],[J,"touchcancel",void 0],[J,"mousedown",void 0],[J,"mousemove",void 0],[J,"mouseup",void 0],[b.window.document,"mousemove",{capture:!0}],[b.window.document,"mouseup",void 0],[J,"mouseover",void 0],[J,"mouseout",void 0],[J,"dblclick",void 0],[J,"click",void 0],[J,"keydown",{capture:!1}],[J,"keyup",void 0],[J,"wheel",{passive:!1}],[J,"contextmenu",void 0],[b.window,"blur",void 0]];for(var ae=0,it=this._listeners;aeen?Math.min(2,Cu):Math.max(.5,Cu),Td=Math.pow(hd,1-Hc),ch=Rt.unproject(xu.add(Tu.mult(Hc*Td)).mult(wc));Rt.setLocationAtPoint(Rt.renderWorldCopies?ch.wrap():ch,Vo)}it._fireMoveEvents(ae)},function(Hc){it._afterEase(ae,Hc)},J),this},te.prototype._prepareEase=function(J,ae,it){it===void 0&&(it={}),this._moving=!0,ae||it.moving||this.fire(new b.Event("movestart",J)),this._zooming&&!it.zooming&&this.fire(new b.Event("zoomstart",J)),this._rotating&&!it.rotating&&this.fire(new b.Event("rotatestart",J)),this._pitching&&!it.pitching&&this.fire(new b.Event("pitchstart",J))},te.prototype._fireMoveEvents=function(J){this.fire(new b.Event("move",J)),this._zooming&&this.fire(new b.Event("zoom",J)),this._rotating&&this.fire(new b.Event("rotate",J)),this._pitching&&this.fire(new b.Event("pitch",J))},te.prototype._afterEase=function(J,ae){if(!this._easeId||!ae||this._easeId!==ae){delete this._easeId;var it=this._zooming,Rt=this._rotating,en=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,it&&this.fire(new b.Event("zoomend",J)),Rt&&this.fire(new b.Event("rotateend",J)),en&&this.fire(new b.Event("pitchend",J)),this.fire(new b.Event("moveend",J))}},te.prototype.flyTo=function(J,ae){var it=this;if(!J.essential&&b.browser.prefersReducedMotion){var Rt=b.pick(J,["center","zoom","bearing","pitch","around"]);return this.jumpTo(Rt,ae)}this.stop(),J=b.extend({offset:[0,0],speed:1.2,curve:1.42,easing:b.ease},J);var en=this.transform,Yn=this.getZoom(),Zr=this.getBearing(),fr=this.getPitch(),es=this.getPadding(),Xo="zoom"in J?b.clamp(+J.zoom,en.minZoom,en.maxZoom):Yn,Ss="bearing"in J?this._normalizeBearing(J.bearing,Zr):Zr,sa="pitch"in J?+J.pitch:fr,qs="padding"in J?J.padding:en.padding,Vo=en.zoomScale(Xo-Yn),js=b.Point.convert(J.offset),za=en.centerPoint.add(js),yl=en.pointLocation(za),nu=b.LngLat.convert(J.center||yl);this._normalizeCenter(nu);var xu=en.project(yl),Tu=en.project(nu).sub(xu),Cu=J.curve,dc=Math.max(en.width,en.height),Hc=dc/Vo,wc=Tu.mag();if("minZoom"in J){var hd=b.clamp(Math.min(J.minZoom,Yn,Xo),en.minZoom,en.maxZoom),Td=dc/en.zoomScale(hd-Yn);Cu=Math.sqrt(Td/wc*2)}var ch=Cu*Cu;function Jd(_h){var Mh=(Hc*Hc-dc*dc+(_h?-1:1)*ch*ch*wc*wc)/(2*(_h?Hc:dc)*ch*wc);return Math.log(Math.sqrt(Mh*Mh+1)-Mh)}function Xh(_h){return(Math.exp(_h)-Math.exp(-_h))/2}function Nc(_h){return(Math.exp(_h)+Math.exp(-_h))/2}var Uc=Jd(0),tf=function(_h){return Nc(Uc)/Nc(Uc+Cu*_h)},dh=function(_h){return dc*((Nc(Uc)*(Xh(Mh=Uc+Cu*_h)/Nc(Mh))-Xh(Uc))/ch)/wc;var Mh},nh=(Jd(1)-Uc)/Cu;if(Math.abs(wc)<1e-6||!isFinite(nh)){if(Math.abs(dc-Hc)<1e-6)return this.easeTo(J,ae);var zh=HcJ.maxDuration&&(J.duration=0),this._zooming=!0,this._rotating=Zr!==Ss,this._pitching=sa!==fr,this._padding=!en.isPaddingEqual(qs),this._prepareEase(ae,!1),this._ease(function(_h){var Mh=_h*nh,Cg=1/tf(Mh);en.zoom=_h===1?Xo:Yn+en.scaleZoom(Cg),it._rotating&&(en.bearing=b.number(Zr,Ss,_h)),it._pitching&&(en.pitch=b.number(fr,sa,_h)),it._padding&&(en.interpolatePadding(es,qs,_h),za=en.centerPoint.add(js));var jp=_h===1?nu:en.unproject(xu.add(Tu.mult(dh(Mh))).mult(Cg));en.setLocationAtPoint(en.renderWorldCopies?jp.wrap():jp,za),it._fireMoveEvents(ae)},function(){return it._afterEase(ae)},J),this},te.prototype.isEasing=function(){return!!this._easeFrameId},te.prototype.stop=function(){return this._stop()},te.prototype._stop=function(J,ae){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var it=this._onEaseEnd;delete this._onEaseEnd,it.call(this,ae)}if(!J){var Rt=this.handlers;Rt&&Rt.stop(!1)}return this},te.prototype._ease=function(J,ae,it){it.animate===!1||it.duration===0?(J(1),ae()):(this._easeStart=b.browser.now(),this._easeOptions=it,this._onEaseFrame=J,this._onEaseEnd=ae,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},te.prototype._renderFrameCallback=function(){var J=Math.min((b.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(J)),J<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},te.prototype._normalizeBearing=function(J,ae){J=b.wrap(J,-180,180);var it=Math.abs(J-ae);return Math.abs(J-360-ae)180?-360:it<-180?360:0}},te}(b.Evented),_f=function(X){X===void 0&&(X={}),this.options=X,b.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};_f.prototype.getDefaultPosition=function(){return"bottom-right"},_f.prototype.onAdd=function(X){var te=this.options&&this.options.compact;return this._map=X,this._container=k.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=k.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=k.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),te&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),te===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},_f.prototype.onRemove=function(){k.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},_f.prototype._setElementTitle=function(X,te){var J=this._map._getUIString("AttributionControl."+te);X.title=J,X.setAttribute("aria-label",J)},_f.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},_f.prototype._updateEditLink=function(){var X=this._editLink;X||(X=this._editLink=this._container.querySelector(".mapbox-improve-map"));var te=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||b.config.ACCESS_TOKEN}];if(X){var J=te.reduce(function(ae,it,Rt){return it.value&&(ae+=it.key+"="+it.value+(Rt=0)return!1;return!0})).join(" | ");en!==this._attribHTML&&(this._attribHTML=en,X.length?(this._innerContainer.innerHTML=en,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},_f.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var Hh=function(){b.bindAll(["_updateLogo"],this),b.bindAll(["_updateCompact"],this)};Hh.prototype.onAdd=function(X){this._map=X,this._container=k.create("div","mapboxgl-ctrl");var te=k.create("a","mapboxgl-ctrl-logo");return te.target="_blank",te.rel="noopener nofollow",te.href="https://www.mapbox.com/",te.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),te.setAttribute("rel","noopener nofollow"),this._container.appendChild(te),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},Hh.prototype.onRemove=function(){k.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},Hh.prototype.getDefaultPosition=function(){return"bottom-left"},Hh.prototype._updateLogo=function(X){X&&X.sourceDataType!=="metadata"||(this._container.style.display=this._logoRequired()?"block":"none")},Hh.prototype._logoRequired=function(){if(this._map.style){var X=this._map.style.sourceCaches;for(var te in X)if(X[te].getSource().mapbox_logo)return!0;return!1}},Hh.prototype._updateCompact=function(){var X=this._container.children;if(X.length){var te=X[0];this._map.getCanvasContainer().offsetWidth<250?te.classList.add("mapboxgl-compact"):te.classList.remove("mapboxgl-compact")}};var Ap=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};Ap.prototype.add=function(X){var te=++this._id;return this._queue.push({callback:X,id:te,cancelled:!1}),te},Ap.prototype.remove=function(X){for(var te=this._currentlyRunning,J=0,ae=te?this._queue.concat(te):this._queue;Jae.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(ae.minPitch!=null&&ae.maxPitch!=null&&ae.minPitch>ae.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(ae.minPitch!=null&&ae.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(ae.maxPitch!=null&&ae.maxPitch>60)throw new Error("maxPitch must be less than or equal to 60");var Rt=new Vu(ae.minZoom,ae.maxZoom,ae.minPitch,ae.maxPitch,ae.renderWorldCopies);if(X.call(this,Rt,ae),this._interactive=ae.interactive,this._maxTileCacheSize=ae.maxTileCacheSize,this._failIfMajorPerformanceCaveat=ae.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=ae.preserveDrawingBuffer,this._antialias=ae.antialias,this._trackResize=ae.trackResize,this._bearingSnap=ae.bearingSnap,this._refreshExpiredTiles=ae.refreshExpiredTiles,this._fadeDuration=ae.fadeDuration,this._crossSourceCollisions=ae.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=ae.collectResourceTiming,this._renderTaskQueue=new Ap,this._controls=[],this._mapId=b.uniqueId(),this._locale=b.extend({},Vp,ae.locale),this._clickTolerance=ae.clickTolerance,this._requestManager=new b.RequestManager(ae.transformRequest,ae.accessToken),typeof ae.container=="string"){if(this._container=b.window.document.getElementById(ae.container),!this._container)throw new Error("Container '"+ae.container+"' not found.")}else{if(!(ae.container instanceof Jh))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=ae.container}if(ae.maxBounds&&this.setMaxBounds(ae.maxBounds),b.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return it._update(!1)}),this.on("moveend",function(){return it._update(!1)}),this.on("zoom",function(){return it._update(!0)}),b.window!==void 0&&(b.window.addEventListener("online",this._onWindowOnline,!1),b.window.addEventListener("resize",this._onWindowResize,!1),b.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new td(this,ae),this._hash=ae.hash&&new Ud(typeof ae.hash=="string"&&ae.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:ae.center,zoom:ae.zoom,bearing:ae.bearing,pitch:ae.pitch}),ae.bounds&&(this.resize(),this.fitBounds(ae.bounds,b.extend({},ae.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=ae.localIdeographFontFamily,ae.style&&this.setStyle(ae.style,{localIdeographFontFamily:ae.localIdeographFontFamily}),ae.attributionControl&&this.addControl(new _f({customAttribution:ae.customAttribution})),this.addControl(new Hh,ae.logoPosition),this.on("style.load",function(){it.transform.unmodified&&it.jumpTo(it.style.stylesheet)}),this.on("data",function(en){it._update(en.dataType==="style"),it.fire(new b.Event(en.dataType+"data",en))}),this.on("dataloading",function(en){it.fire(new b.Event(en.dataType+"dataloading",en))})}X&&(te.__proto__=X),(te.prototype=Object.create(X&&X.prototype)).constructor=te;var J={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return te.prototype._getMapId=function(){return this._mapId},te.prototype.addControl=function(ae,it){if(it===void 0&&(it=ae.getDefaultPosition?ae.getDefaultPosition():"top-right"),!ae||!ae.onAdd)return this.fire(new b.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var Rt=ae.onAdd(this);this._controls.push(ae);var en=this._controlPositions[it];return it.indexOf("bottom")!==-1?en.insertBefore(Rt,en.firstChild):en.appendChild(Rt),this},te.prototype.removeControl=function(ae){if(!ae||!ae.onRemove)return this.fire(new b.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var it=this._controls.indexOf(ae);return it>-1&&this._controls.splice(it,1),ae.onRemove(this),this},te.prototype.hasControl=function(ae){return this._controls.indexOf(ae)>-1},te.prototype.resize=function(ae){var it=this._containerDimensions(),Rt=it[0],en=it[1];if(Rt===this.transform.width&&en===this.transform.height)return this;this._resizeCanvas(Rt,en),this.transform.resize(Rt,en),this.painter.resize(Rt,en);var Yn=!this._moving;return Yn&&this.fire(new b.Event("movestart",ae)).fire(new b.Event("move",ae)),this.fire(new b.Event("resize",ae)),Yn&&this.fire(new b.Event("moveend",ae)),this},te.prototype.getBounds=function(){return this.transform.getBounds()},te.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},te.prototype.setMaxBounds=function(ae){return this.transform.setMaxBounds(b.LngLatBounds.convert(ae)),this._update()},te.prototype.setMinZoom=function(ae){if((ae=ae==null?-2:ae)>=-2&&ae<=this.transform.maxZoom)return this.transform.minZoom=ae,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=ae,this._update(),this.getZoom()>ae&&this.setZoom(ae),this;throw new Error("maxZoom must be greater than the current minZoom")},te.prototype.getMaxZoom=function(){return this.transform.maxZoom},te.prototype.setMinPitch=function(ae){if((ae=ae==null?0:ae)<0)throw new Error("minPitch must be greater than or equal to 0");if(ae>=0&&ae<=this.transform.maxPitch)return this.transform.minPitch=ae,this._update(),this.getPitch()60)throw new Error("maxPitch must be less than or equal to 60");if(ae>=this.transform.minPitch)return this.transform.maxPitch=ae,this._update(),this.getPitch()>ae&&this.setPitch(ae),this;throw new Error("maxPitch must be greater than the current minPitch")},te.prototype.getMaxPitch=function(){return this.transform.maxPitch},te.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},te.prototype.setRenderWorldCopies=function(ae){return this.transform.renderWorldCopies=ae,this._update()},te.prototype.project=function(ae){return this.transform.locationPoint(b.LngLat.convert(ae))},te.prototype.unproject=function(ae){return this.transform.pointLocation(b.Point.convert(ae))},te.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},te.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},te.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},te.prototype._createDelegatedListener=function(ae,it,Rt){var en,Yn=this;if(ae==="mouseenter"||ae==="mouseover"){var Zr=!1;return{layer:it,listener:Rt,delegates:{mousemove:function(es){var Xo=Yn.getLayer(it)?Yn.queryRenderedFeatures(es.point,{layers:[it]}):[];Xo.length?Zr||(Zr=!0,Rt.call(Yn,new ed(ae,Yn,es.originalEvent,{features:Xo}))):Zr=!1},mouseout:function(){Zr=!1}}}}if(ae==="mouseleave"||ae==="mouseout"){var fr=!1;return{layer:it,listener:Rt,delegates:{mousemove:function(es){(Yn.getLayer(it)?Yn.queryRenderedFeatures(es.point,{layers:[it]}):[]).length?fr=!0:fr&&(fr=!1,Rt.call(Yn,new ed(ae,Yn,es.originalEvent)))},mouseout:function(es){fr&&(fr=!1,Rt.call(Yn,new ed(ae,Yn,es.originalEvent)))}}}}return{layer:it,listener:Rt,delegates:(en={},en[ae]=function(es){var Xo=Yn.getLayer(it)?Yn.queryRenderedFeatures(es.point,{layers:[it]}):[];Xo.length&&(es.features=Xo,Rt.call(Yn,es),delete es.features)},en)}},te.prototype.on=function(ae,it,Rt){if(Rt===void 0)return X.prototype.on.call(this,ae,it);var en=this._createDelegatedListener(ae,it,Rt);for(var Yn in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[ae]=this._delegatedListeners[ae]||[],this._delegatedListeners[ae].push(en),en.delegates)this.on(Yn,en.delegates[Yn]);return this},te.prototype.once=function(ae,it,Rt){if(Rt===void 0)return X.prototype.once.call(this,ae,it);var en=this._createDelegatedListener(ae,it,Rt);for(var Yn in en.delegates)this.once(Yn,en.delegates[Yn]);return this},te.prototype.off=function(ae,it,Rt){var en=this;return Rt===void 0?X.prototype.off.call(this,ae,it):(this._delegatedListeners&&this._delegatedListeners[ae]&&function(Yn){for(var Zr=Yn[ae],fr=0;fr180;){var en=J.locationPoint(X);if(en.x>=0&&en.y>=0&&en.x<=J.width&&en.y<=J.height)break;X.lng>J.center.lng?X.lng-=360:X.lng+=360}return X}mh.prototype.down=function(X,te){this.mouseRotate.mousedown(X,te),this.mousePitch&&this.mousePitch.mousedown(X,te),k.disableDrag()},mh.prototype.move=function(X,te){var J=this.map,ae=this.mouseRotate.mousemoveWindow(X,te);if(ae&&ae.bearingDelta&&J.setBearing(J.getBearing()+ae.bearingDelta),this.mousePitch){var it=this.mousePitch.mousemoveWindow(X,te);it&&it.pitchDelta&&J.setPitch(J.getPitch()+it.pitchDelta)}},mh.prototype.off=function(){var X=this.element;k.removeEventListener(X,"mousedown",this.mousedown),k.removeEventListener(X,"touchstart",this.touchstart,{passive:!1}),k.removeEventListener(X,"touchmove",this.touchmove),k.removeEventListener(X,"touchend",this.touchend),k.removeEventListener(X,"touchcancel",this.reset),this.offTemp()},mh.prototype.offTemp=function(){k.enableDrag(),k.removeEventListener(b.window,"mousemove",this.mousemove),k.removeEventListener(b.window,"mouseup",this.mouseup)},mh.prototype.mousedown=function(X){this.down(b.extend({},X,{ctrlKey:!0,preventDefault:function(){return X.preventDefault()}}),k.mousePos(this.element,X)),k.addEventListener(b.window,"mousemove",this.mousemove),k.addEventListener(b.window,"mouseup",this.mouseup)},mh.prototype.mousemove=function(X){this.move(X,k.mousePos(this.element,X))},mh.prototype.mouseup=function(X){this.mouseRotate.mouseupWindow(X),this.mousePitch&&this.mousePitch.mouseupWindow(X),this.offTemp()},mh.prototype.touchstart=function(X){X.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=k.touchPos(this.element,X.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:function(){return X.preventDefault()}},this._startPos))},mh.prototype.touchmove=function(X){X.targetTouches.length!==1?this.reset():(this._lastPos=k.touchPos(this.element,X.targetTouches)[0],this.move({preventDefault:function(){return X.preventDefault()}},this._lastPos))},mh.prototype.touchend=function(X){X.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)=ae}this._isDragging&&(this._pos=J.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new b.Event("dragstart"))),this.fire(new b.Event("drag")))},te.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new b.Event("dragend")),this._state="inactive"},te.prototype._addDragHandler=function(J){this._element.contains(J.originalEvent.target)&&(J.preventDefault(),this._positionDelta=J.point.sub(this._pos).add(this._offset),this._pointerdownPos=J.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},te.prototype.setDraggable=function(J){return this._draggable=!!J,this._map&&(J?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},te.prototype.isDraggable=function(){return this._draggable},te.prototype.setRotation=function(J){return this._rotation=J||0,this._update(),this},te.prototype.getRotation=function(){return this._rotation},te.prototype.setRotationAlignment=function(J){return this._rotationAlignment=J||"auto",this._update(),this},te.prototype.getRotationAlignment=function(){return this._rotationAlignment},te.prototype.setPitchAlignment=function(J){return this._pitchAlignment=J&&J!=="auto"?J:this._rotationAlignment,this._update(),this},te.prototype.getPitchAlignment=function(){return this._pitchAlignment},te}(b.Evented),Ue={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},qt=0,zn=!1,di=function(X){function te(J){X.call(this),this.options=b.extend({},Ue,J),b.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return X&&(te.__proto__=X),(te.prototype=Object.create(X&&X.prototype)).constructor=te,te.prototype.onAdd=function(J){var ae;return this._map=J,this._container=k.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),ae=this._setupUI,q!==void 0?ae(q):b.window.navigator.permissions!==void 0?b.window.navigator.permissions.query({name:"geolocation"}).then(function(it){ae(q=it.state!=="denied")}):ae(q=!!b.window.navigator.geolocation),this._container},te.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(b.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),k.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,qt=0,zn=!1},te.prototype._isOutOfMapMaxBounds=function(J){var ae=this._map.getMaxBounds(),it=J.coords;return ae&&(it.longitudeae.getEast()||it.latitudeae.getNorth())},te.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}},te.prototype._onSuccess=function(J){if(this._map){if(this._isOutOfMapMaxBounds(J))return this._setErrorState(),this.fire(new b.Event("outofmaxbounds",J)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=J,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(J),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(J),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new b.Event("geolocate",J)),this._finish()}},te.prototype._updateCamera=function(J){var ae=new b.LngLat(J.coords.longitude,J.coords.latitude),it=J.coords.accuracy,Rt=this._map.getBearing(),en=b.extend({bearing:Rt},this.options.fitBoundsOptions);this._map.fitBounds(ae.toBounds(it),en,{geolocateSource:!0})},te.prototype._updateMarker=function(J){if(J){var ae=new b.LngLat(J.coords.longitude,J.coords.latitude);this._accuracyCircleMarker.setLngLat(ae).addTo(this._map),this._userLocationDotMarker.setLngLat(ae).addTo(this._map),this._accuracy=J.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},te.prototype._updateCircleRadius=function(){var J=this._map._container.clientHeight/2,ae=this._map.unproject([0,J]),it=this._map.unproject([1,J]),Rt=ae.distanceTo(it),en=Math.ceil(2*this._accuracy/Rt);this._circleElement.style.width=en+"px",this._circleElement.style.height=en+"px"},te.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},te.prototype._onError=function(J){if(this._map){if(this.options.trackUserLocation)if(J.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var ae=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=ae,this._geolocateButton.setAttribute("aria-label",ae),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(J.code===3&&zn)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new b.Event("error",J)),this._finish()}},te.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},te.prototype._setupUI=function(J){var ae=this;if(this._container.addEventListener("contextmenu",function(en){return en.preventDefault()}),this._geolocateButton=k.create("button","mapboxgl-ctrl-geolocate",this._container),k.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",J===!1){b.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var it=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=it,this._geolocateButton.setAttribute("aria-label",it)}else{var Rt=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=Rt,this._geolocateButton.setAttribute("aria-label",Rt)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=k.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new se(this._dotElement),this._circleElement=k.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new se({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(en){en.geolocateSource||ae._watchState!=="ACTIVE_LOCK"||en.originalEvent&&en.originalEvent.type==="resize"||(ae._watchState="BACKGROUND",ae._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),ae._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),ae.fire(new b.Event("trackuserlocationend")))})},te.prototype.trigger=function(){if(!this._setup)return b.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new b.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":qt--,zn=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new b.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new b.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){var J;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),++qt>1?(J={maximumAge:6e5,timeout:0},zn=!0):(J=this.options.positionOptions,zn=!1),this._geolocationWatchID=b.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,J)}}else b.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},te.prototype._clearWatch=function(){b.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},te}(b.Evented),Uo={maxWidth:100,unit:"metric"},ua=function(X){this.options=b.extend({},Uo,X),b.bindAll(["_onMove","setUnit"],this)};function Cl(X,te,J){var ae=J&&J.maxWidth||100,it=X._container.clientHeight/2,Rt=X.unproject([0,it]),en=X.unproject([ae,it]),Yn=Rt.distanceTo(en);if(J&&J.unit==="imperial"){var Zr=3.2808*Yn;Zr>5280?Ll(te,ae,Zr/5280,X._getUIString("ScaleControl.Miles")):Ll(te,ae,Zr,X._getUIString("ScaleControl.Feet"))}else J&&J.unit==="nautical"?Ll(te,ae,Yn/1852,X._getUIString("ScaleControl.NauticalMiles")):Yn>=1e3?Ll(te,ae,Yn/1e3,X._getUIString("ScaleControl.Kilometers")):Ll(te,ae,Yn,X._getUIString("ScaleControl.Meters"))}function Ll(X,te,J,ae){var it,Rt,en,Yn=(it=J,(Rt=Math.pow(10,(""+Math.floor(it)).length-1))*(en=(en=it/Rt)>=10?10:en>=5?5:en>=3?3:en>=2?2:en>=1?1:function(Zr){var fr=Math.pow(10,Math.ceil(-Math.log(Zr)/Math.LN10));return Math.round(Zr*fr)/fr}(en)));X.style.width=te*(Yn/J)+"px",X.innerHTML=Yn+" "+ae}ua.prototype.getDefaultPosition=function(){return"bottom-left"},ua.prototype._onMove=function(){Cl(this._map,this._container,this.options)},ua.prototype.onAdd=function(X){return this._map=X,this._container=k.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",X.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},ua.prototype.onRemove=function(){k.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},ua.prototype.setUnit=function(X){this.options.unit=X,Cl(this._map,this._container,this.options)};var Bu=function(X){this._fullscreen=!1,X&&X.container&&(X.container instanceof b.window.HTMLElement?this._container=X.container:b.warnOnce("Full screen control 'container' must be a DOM element.")),b.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in b.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in b.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in b.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in b.window.document&&(this._fullscreenchange="MSFullscreenChange")};Bu.prototype.onAdd=function(X){return this._map=X,this._container||(this._container=this._map.getContainer()),this._controlContainer=k.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",b.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},Bu.prototype.onRemove=function(){k.remove(this._controlContainer),this._map=null,b.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},Bu.prototype._checkFullscreenSupport=function(){return!!(b.window.document.fullscreenEnabled||b.window.document.mozFullScreenEnabled||b.window.document.msFullscreenEnabled||b.window.document.webkitFullscreenEnabled)},Bu.prototype._setupUI=function(){var X=this._fullscreenButton=k.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);k.create("span","mapboxgl-ctrl-icon",X).setAttribute("aria-hidden",!0),X.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),b.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},Bu.prototype._updateTitle=function(){var X=this._getTitle();this._fullscreenButton.setAttribute("aria-label",X),this._fullscreenButton.title=X},Bu.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},Bu.prototype._isFullscreen=function(){return this._fullscreen},Bu.prototype._changeIcon=function(){(b.window.document.fullscreenElement||b.window.document.mozFullScreenElement||b.window.document.webkitFullscreenElement||b.window.document.msFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},Bu.prototype._onClickFullscreen=function(){this._isFullscreen()?b.window.document.exitFullscreen?b.window.document.exitFullscreen():b.window.document.mozCancelFullScreen?b.window.document.mozCancelFullScreen():b.window.document.msExitFullscreen?b.window.document.msExitFullscreen():b.window.document.webkitCancelFullScreen&&b.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var Iu={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},pc=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),zc=function(X){function te(J){X.call(this),this.options=b.extend(Object.create(Iu),J),b.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return X&&(te.__proto__=X),(te.prototype=Object.create(X&&X.prototype)).constructor=te,te.prototype.addTo=function(J){return this._map&&this.remove(),this._map=J,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new b.Event("open")),this},te.prototype.isOpen=function(){return!!this._map},te.prototype.remove=function(){return this._content&&k.remove(this._content),this._container&&(k.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new b.Event("close")),this},te.prototype.getLngLat=function(){return this._lngLat},te.prototype.setLngLat=function(J){return this._lngLat=b.LngLat.convert(J),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},te.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},te.prototype.getElement=function(){return this._container},te.prototype.setText=function(J){return this.setDOMContent(b.window.document.createTextNode(J))},te.prototype.setHTML=function(J){var ae,it=b.window.document.createDocumentFragment(),Rt=b.window.document.createElement("body");for(Rt.innerHTML=J;ae=Rt.firstChild;)it.appendChild(ae);return this.setDOMContent(it)},te.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},te.prototype.setMaxWidth=function(J){return this.options.maxWidth=J,this._update(),this},te.prototype.setDOMContent=function(J){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=k.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(J),this._createCloseButton(),this._update(),this._focusFirstElement(),this},te.prototype.addClassName=function(J){this._container&&this._container.classList.add(J)},te.prototype.removeClassName=function(J){this._container&&this._container.classList.remove(J)},te.prototype.setOffset=function(J){return this.options.offset=J,this._update(),this},te.prototype.toggleClassName=function(J){if(this._container)return this._container.classList.toggle(J)},te.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=k.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},te.prototype._onMouseUp=function(J){this._update(J.point)},te.prototype._onMouseMove=function(J){this._update(J.point)},te.prototype._onDrag=function(J){this._update(J.point)},te.prototype._update=function(J){var ae=this;if(this._map&&(this._lngLat||this._trackPointer)&&this._content&&(this._container||(this._container=k.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=k.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(Xo){return ae._container.classList.add(Xo)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=wo(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||J)){var it=this._pos=this._trackPointer&&J?J:this._map.project(this._lngLat),Rt=this.options.anchor,en=function Xo(Ss){if(Ss){if(typeof Ss=="number"){var sa=Math.round(Math.sqrt(.5*Math.pow(Ss,2)));return{center:new b.Point(0,0),top:new b.Point(0,Ss),"top-left":new b.Point(sa,sa),"top-right":new b.Point(-sa,sa),bottom:new b.Point(0,-Ss),"bottom-left":new b.Point(sa,-sa),"bottom-right":new b.Point(-sa,-sa),left:new b.Point(Ss,0),right:new b.Point(-Ss,0)}}if(Ss instanceof b.Point||Array.isArray(Ss)){var qs=b.Point.convert(Ss);return{center:qs,top:qs,"top-left":qs,"top-right":qs,bottom:qs,"bottom-left":qs,"bottom-right":qs,left:qs,right:qs}}return{center:b.Point.convert(Ss.center||[0,0]),top:b.Point.convert(Ss.top||[0,0]),"top-left":b.Point.convert(Ss["top-left"]||[0,0]),"top-right":b.Point.convert(Ss["top-right"]||[0,0]),bottom:b.Point.convert(Ss.bottom||[0,0]),"bottom-left":b.Point.convert(Ss["bottom-left"]||[0,0]),"bottom-right":b.Point.convert(Ss["bottom-right"]||[0,0]),left:b.Point.convert(Ss.left||[0,0]),right:b.Point.convert(Ss.right||[0,0])}}return Xo(new b.Point(0,0))}(this.options.offset);if(!Rt){var Yn,Zr=this._container.offsetWidth,fr=this._container.offsetHeight;Yn=it.y+en.bottom.ythis._map.transform.height-fr?["bottom"]:[],it.xthis._map.transform.width-Zr/2&&Yn.push("right"),Rt=Yn.length===0?"bottom":Yn.join("-")}var es=it.add(en[Rt]).round();k.setTransform(this._container,D[Rt]+" translate("+es.x+"px,"+es.y+"px)"),F(this._container,Rt,"popup")}},te.prototype._focusFirstElement=function(){if(this.options.focusAfterOpen&&this._container){var J=this._container.querySelector(pc);J&&J.focus()}},te.prototype._onClose=function(){this.remove()},te}(b.Evented),Rd={version:b.version,supported:z,setRTLTextPlugin:b.setRTLTextPlugin,getRTLTextPluginStatus:b.getRTLTextPluginStatus,Map:Bf,NavigationControl:Hd,GeolocateControl:di,AttributionControl:_f,ScaleControl:ua,FullscreenControl:Bu,Popup:zc,Marker:se,Style:Ma,LngLat:b.LngLat,LngLatBounds:b.LngLatBounds,Point:b.Point,MercatorCoordinate:b.MercatorCoordinate,Evented:b.Evented,config:b.config,prewarm:function(){ui().acquire(zt)},clearPrewarmedResources:function(){var X=br;X&&(X.isPreloaded()&&X.numActive()===1?(X.release(zt),br=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return b.config.ACCESS_TOKEN},set accessToken(X){b.config.ACCESS_TOKEN=X},get baseApiUrl(){return b.config.API_URL},set baseApiUrl(X){b.config.API_URL=X},get workerCount(){return pn.workerCount},set workerCount(X){pn.workerCount=X},get maxParallelImageRequests(){return b.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(X){b.config.MAX_PARALLEL_IMAGE_REQUESTS=X},clearStorage:function(X){b.clearTileCache(X)},workerUrl:""};return Rd}),y})},57020:function(nt,V,m){"use strict";m.r(V),m.d(V,{CancellationTokenSource:function(){return IK},Emitter:function(){return LK},KeyCode:function(){return PK},KeyMod:function(){return kK},MarkerSeverity:function(){return FK},MarkerTag:function(){return BK},Position:function(){return MK},Range:function(){return OK},Selection:function(){return RK},SelectionDirection:function(){return NK},Token:function(){return $K},Uri:function(){return zK},default:function(){return Wee},editor:function(){return WK},languages:function(){return jK}});var y={};m.r(y),m.d(y,{PixelRatio:function(){return cl},addMatchMediaChangeListener:function(){return Co},getZoomFactor:function(){return Fr},isAndroid:function(){return Qa},isChrome:function(){return xs},isElectron:function(){return xl},isFirefox:function(){return jo},isSafari:function(){return Za},isStandalone:function(){return co},isWebKit:function(){return Es},isWebkitWebView:function(){return tl}});var I={};m.r(I),m.d(I,{CancellationTokenSource:function(){return IK},Emitter:function(){return LK},KeyCode:function(){return PK},KeyMod:function(){return kK},MarkerSeverity:function(){return FK},MarkerTag:function(){return BK},Position:function(){return MK},Range:function(){return OK},Selection:function(){return RK},SelectionDirection:function(){return NK},Token:function(){return $K},Uri:function(){return zK},editor:function(){return WK},languages:function(){return jK}});var b={};m.r(b),m.d(b,{CancellationTokenSource:function(){return IK},Emitter:function(){return LK},KeyCode:function(){return PK},KeyMod:function(){return kK},MarkerSeverity:function(){return FK},MarkerTag:function(){return BK},Position:function(){return MK},Range:function(){return OK},Selection:function(){return RK},SelectionDirection:function(){return NK},Token:function(){return $K},Uri:function(){return zK},default:function(){return Wee},editor:function(){return WK},languages:function(){return jK}});class z{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?ce.isErrorNoTelemetry(e)?new ce(e.message+` `+e.stack):new Error(e.message+` -`+e.stack):e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const k=new z;function N(o){f(o)||k.onUnexpectedError(o)}function w(o){f(o)||k.onUnexpectedExternalError(o)}function I(o){if(o instanceof Error){const{name:e,message:t}=o,n=o.stacktrace||o.stack;return{$isError:!0,name:e,message:t,stack:n,noTelemetry:ie.isErrorNoTelemetry(o)}}return o}const C="Canceled";function f(o){return o instanceof S?!0:o instanceof Error&&o.name===C&&o.message===C}class S extends Error{constructor(){super(C),this.name=this.message}}function P(){const o=new Error(C);return o.name=o.message,o}function j(o){return o?new Error(`Illegal argument: ${o}`):new Error("Illegal argument")}function re(o){return o?new Error(`Illegal state: ${o}`):new Error("Illegal state")}class J extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class ie extends Error{constructor(e){super(e),this.name="ErrorNoTelemetry"}static fromError(e){if(e instanceof ie)return e;const t=new ie;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return e.name==="ErrorNoTelemetry"}}class de extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,de.prototype);debugger}}function he(o){const e=this;let t=!1,n;return function(){return t||(t=!0,n=o.apply(e,arguments)),n}}var fe;(function(o){function e(Oi){return Oi&&typeof Oi=="object"&&typeof Oi[Symbol.iterator]=="function"}o.is=e;const t=Object.freeze([]);function n(){return t}o.empty=n;function*r(Oi){yield Oi}o.single=r;function i(Oi){return Oi||t}o.from=i;function s(Oi){return!Oi||Oi[Symbol.iterator]().next().done===!0}o.isEmpty=s;function d(Oi){return Oi[Symbol.iterator]().next().value}o.first=d;function x(Oi,Jo){for(const Hs of Oi)if(Jo(Hs))return!0;return!1}o.some=x;function E(Oi,Jo){for(const Hs of Oi)if(Jo(Hs))return Hs}o.find=E;function*O(Oi,Jo){for(const Hs of Oi)Jo(Hs)&&(yield Hs)}o.filter=O;function*W(Oi,Jo){let Hs=0;for(const ao of Oi)yield Jo(ao,Hs++)}o.map=W;function*oe(...Oi){for(const Jo of Oi)for(const Hs of Jo)yield Hs}o.concat=oe;function*Te(Oi){for(const Jo of Oi)for(const Hs of Jo)yield Hs}o.concatNested=Te;function Ze(Oi,Jo,Hs){let ao=Hs;for(const oo of Oi)ao=Jo(ao,oo);return ao}o.reduce=Ze;function ut(Oi,Jo){let Hs=0;for(const ao of Oi)Jo(ao,Hs++)}o.forEach=ut;function*Nt(Oi,Jo,Hs=Oi.length){for(Jo<0&&(Jo+=Oi.length),Hs<0?Hs+=Oi.length:Hs>Oi.length&&(Hs=Oi.length);Joao===oo){const ao=Oi[Symbol.iterator](),oo=Jo[Symbol.iterator]();for(;;){const Ns=ao.next(),ll=oo.next();if(Ns.done!==ll.done)return!1;if(Ns.done)return!0;if(!Hs(Ns.value,ll.value))return!1}}o.equals=yr})(fe||(fe={}));const ke=!1;let we=null;function Ne(o){we=o}if(ke){const o="__is_disposable_tracked__";Ne(new class{trackDisposable(e){const t=new Error("Potentially leaked disposable").stack;setTimeout(()=>{e[o]||console.log(t)},3e3)}setParent(e,t){if(e&&e!==Ue.None)try{e[o]=!0}catch(n){}}markAsDisposed(e){if(e&&e!==Ue.None)try{e[o]=!0}catch(t){}}markAsSingleton(e){}})}function Ee(o){return we==null||we.trackDisposable(o),o}function ge(o){we==null||we.markAsDisposed(o)}function ye(o,e){we==null||we.setParent(o,e)}function xe(o,e){if(we)for(const t of o)we.setParent(t,e)}function be(o){return we==null||we.markAsSingleton(o),o}class Ie extends Error{constructor(e){super(`Encountered errors while disposing of store. Errors: [${e.join(", ")}]`),this.errors=e}}function me(o){return typeof o.dispose=="function"&&o.dispose.length===0}function We(o){if(fe.is(o)){const e=[];for(const t of o)if(t)try{t.dispose()}catch(n){e.push(n)}if(e.length===1)throw e[0];if(e.length>1)throw new Ie(e);return Array.isArray(o)?[]:o}else if(o)return o.dispose(),o}function Ce(...o){const e=Pt(()=>We(o));return xe(o,e),e}function Pt(o){const e=Ee({dispose:he(()=>{ge(e),o()})});return e}class ct{constructor(){this._toDispose=new Set,this._isDisposed=!1,Ee(this)}dispose(){this._isDisposed||(ge(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){try{We(this._toDispose.values())}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return ye(e,this),this._isDisposed?ct.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}ct.DISABLE_DISPOSED_WARNING=!1;class Ue{constructor(){this._store=new ct,Ee(this),ye(this._store,this)}dispose(){ge(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}Ue.None=Object.freeze({dispose(){}});class bt{constructor(){this._isDisposed=!1,Ee(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||((t=this._value)===null||t===void 0||t.dispose(),e&&ye(e,this),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,ge(this),(e=this._value)===null||e===void 0||e.dispose(),this._value=void 0}clearAndLeak(){const e=this._value;return this._value=void 0,e&&ye(e,null),e}}class ht{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter===0&&this._disposable.dispose(),this}}class Bt{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1,Ee(this)}set(e){let t=e;return this.unset=()=>t=void 0,this.isset=()=>t!==void 0,this.dispose=()=>{t&&(t(),t=void 0,ge(this))},this}}class mt{constructor(e){this.object=e}dispose(){}}class _n{constructor(e){this.element=e,this.next=_n.Undefined,this.prev=_n.Undefined}}_n.Undefined=new _n(void 0);class Bn{constructor(){this._first=_n.Undefined,this._last=_n.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===_n.Undefined}clear(){let e=this._first;for(;e!==_n.Undefined;){const t=e.next;e.prev=_n.Undefined,e.next=_n.Undefined,e=t}this._first=_n.Undefined,this._last=_n.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new _n(e);if(this._first===_n.Undefined)this._first=n,this._last=n;else if(t){const i=this._last;this._last=n,n.prev=i,i.next=n}else{const i=this._first;this._first=n,n.next=i,i.prev=n}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(n))}}shift(){if(this._first!==_n.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==_n.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==_n.Undefined&&e.next!==_n.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===_n.Undefined&&e.next===_n.Undefined?(this._first=_n.Undefined,this._last=_n.Undefined):e.next===_n.Undefined?(this._last=this._last.prev,this._last.next=_n.Undefined):e.prev===_n.Undefined&&(this._first=this._first.next,this._first.prev=_n.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==_n.Undefined;)yield e.element,e=e.next}}var Er=function(o,e,t,n){function r(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function d(O){try{E(n.next(O))}catch(W){s(W)}}function x(O){try{E(n.throw(O))}catch(W){s(W)}}function E(O){O.done?i(O.value):r(O.value).then(d,x)}E((n=n.apply(o,e||[])).next())})};let Yr=typeof document!="undefined"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;const oi="i-default";function to(o,e){let t;return e.length===0?t=o:t=o.replace(/\{(\d+)\}/g,(n,r)=>{const i=r[0],s=e[i];let d=n;return typeof s=="string"?d=s:(typeof s=="number"||typeof s=="boolean"||s===void 0||s===null)&&(d=String(s)),d}),Yr&&(t="\uFF3B"+t.replace(/[aouei]/g,"$&$&")+"\uFF3D"),t}function yo(o,e){let t=o[e];return t||(t=o["*"],t)?t:null}function vr(o){return o.charAt(o.length-1)==="/"?o:o+"/"}function Po(o,e,t){return Er(this,void 0,void 0,function*(){const n=vr(o)+vr(e)+"vscode/"+vr(t),r=yield fetch(n);if(r.ok)return yield r.json();throw new Error(`${r.status} - ${r.statusText}`)})}function ss(o){return function(e,t){const n=Array.prototype.slice.call(arguments,2);return to(o[e],n)}}function ve(o,e,...t){return to(e,t)}function _o(o){}function ci(o){Yr=o}function Bi(o,e){var t;return{localize:ss(e[o]),getConfiguredDefaultLocale:(t=e.getConfiguredDefaultLocale)!==null&&t!==void 0?t:n=>{}}}function wi(o,e,t,n){var r;const i=(r=n["vs/nls"])!==null&&r!==void 0?r:{};if(!o||o.length===0)return t({localize:ve,getConfiguredDefaultLocale:()=>{var O;return(O=i.availableLanguages)===null||O===void 0?void 0:O["*"]}});const s=i.availableLanguages?yo(i.availableLanguages,o):null,d=s===null||s===oi;let x=".nls";d||(x=x+"."+s);const E=O=>{Array.isArray(O)?O.localize=ss(O):O.localize=ss(O[o]),O.getConfiguredDefaultLocale=()=>{var W;return(W=i.availableLanguages)===null||W===void 0?void 0:W["*"]},t(O)};typeof i.loadBundle=="function"?i.loadBundle(o,s,(O,W)=>{O?e([o+".nls"],E):E(W)}):i.translationServiceUrl&&!d?Er(this,void 0,void 0,function*(){var O;try{const W=yield Po(i.translationServiceUrl,s,o);return E(W)}catch(W){if(!s.includes("-"))return console.error(W),e([o+".nls"],E);try{const oe=s.split("-")[0],Te=yield Po(i.translationServiceUrl,oe,o);return(O=i.availableLanguages)!==null&&O!==void 0||(i.availableLanguages={}),i.availableLanguages["*"]=oe,E(Te)}catch(oe){return console.error(oe),e([o+".nls"],E)}}}):e([o+x],E,O=>{if(x===".nls"){console.error("Failed trying to load default language strings",O);return}console.error(`Failed to load message bundle for language ${s}. Falling back to the default language:`,O),e([o+".nls"],E)})}var io=m(34155),ln;const Ve="en";let _t=!1,Ct=!1,jt=!1,on=!1,Ot=!1,Tt=!1,xt=!1,Ht=!1,Zn=!1,tn,hr=Ve,Zi=null,Ri;const Pi=typeof self=="object"?self:typeof m.g=="object"?m.g:{};let $o;typeof Pi.vscode!="undefined"&&typeof Pi.vscode.process!="undefined"?$o=Pi.vscode.process:typeof io!="undefined"&&($o=io);const ys=typeof((ln=$o==null?void 0:$o.versions)===null||ln===void 0?void 0:ln.electron)=="string",xn=ys&&($o==null?void 0:$o.type)==="renderer";if(typeof navigator=="object"&&!xn)Ri=navigator.userAgent,_t=Ri.indexOf("Windows")>=0,Ct=Ri.indexOf("Macintosh")>=0,Ht=(Ri.indexOf("Macintosh")>=0||Ri.indexOf("iPad")>=0||Ri.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,jt=Ri.indexOf("Linux")>=0,Tt=!0,tn=(ve({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),void 0)||Ve,hr=tn;else if(typeof $o=="object"){_t=$o.platform==="win32",Ct=$o.platform==="darwin",jt=$o.platform==="linux",on=jt&&!!$o.env.SNAP&&!!$o.env.SNAP_REVISION,xt=ys,Zn=!!$o.env.CI||!!$o.env.BUILD_ARTIFACTSTAGINGDIRECTORY,tn=Ve,hr=Ve;const o=$o.env.VSCODE_NLS_CONFIG;if(o)try{const e=JSON.parse(o),t=e.availableLanguages["*"];tn=e.locale,hr=t||Ve,Zi=e._translationsConfigFile}catch(e){}Ot=!0}else console.error("Unable to resolve platform.");let Hr=0;Ct?Hr=1:_t?Hr=3:jt&&(Hr=2);const Jr=_t,Yi=Ct,xo=jt,na=Ot,Vn=Tt,Xn=Tt&&typeof Pi.importScripts=="function",Mr=Ht,li=Ri,Cr=hr,qr=typeof Pi.postMessage=="function"&&!Pi.importScripts,ii=(()=>{if(qr){const o=[];Pi.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,r=o.length;n{const n=++e;o.push({id:n,callback:t}),Pi.postMessage({vscodeScheduleAsyncWork:n},"*")}}return o=>setTimeout(o)})(),rn=Ct||Ht?2:_t?1:3;let Jn=!0,Vr=!1;function so(){if(!Vr){Vr=!0;const o=new Uint8Array(2);o[0]=1,o[1]=2,Jn=new Uint16Array(o.buffer)[0]===512+1}return Jn}const rs=!!(li&&li.indexOf("Chrome")>=0),zt=!!(li&&li.indexOf("Firefox")>=0),pn=!!(!rs&&li&&li.indexOf("Safari")>=0),_r=!!(li&&li.indexOf("Edg/")>=0),Gr=!!(li&&li.indexOf("Android")>=0),ui=Pi.performance&&typeof Pi.performance.now=="function";class Ci{constructor(e){this._highResolution=ui&&e,this._startTime=this._now(),this._stopTime=-1}static create(e=!0){return new Ci(e)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?Pi.performance.now():Date.now()}}const lo=!1,Kr=!1;var ti;(function(o){o.None=()=>Ue.None;function e(ao){if(Kr){const{onListenerDidAdd:oo}=ao,Ns=Gn.create();let ll=0;ao.onListenerDidAdd=()=>{++ll===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),Ns.print()),oo==null||oo()}}}function t(ao){return(oo,Ns=null,ll)=>{let kl=!1,bu;return bu=ao(nc=>{if(!kl)return bu?bu.dispose():kl=!0,oo.call(Ns,nc)},null,ll),kl&&bu.dispose(),bu}}o.once=t;function n(ao,oo,Ns){return E((ll,kl=null,bu)=>ao(nc=>ll.call(kl,oo(nc)),null,bu),Ns)}o.map=n;function r(ao,oo,Ns){return E((ll,kl=null,bu)=>ao(nc=>{oo(nc),ll.call(kl,nc)},null,bu),Ns)}o.forEach=r;function i(ao,oo,Ns){return E((ll,kl=null,bu)=>ao(nc=>oo(nc)&&ll.call(kl,nc),null,bu),Ns)}o.filter=i;function s(ao){return ao}o.signal=s;function d(...ao){return(oo,Ns=null,ll)=>Ce(...ao.map(kl=>kl(bu=>oo.call(Ns,bu),null,ll)))}o.any=d;function x(ao,oo,Ns,ll){let kl=Ns;return n(ao,bu=>(kl=oo(kl,bu),kl),ll)}o.reduce=x;function E(ao,oo){let Ns;const ll={onFirstListenerAdd(){Ns=ao(kl.fire,kl)},onLastListenerRemove(){Ns==null||Ns.dispose()}};oo||e(ll);const kl=new Ln(ll);return oo==null||oo.add(kl),kl.event}function O(ao,oo,Ns=100,ll=!1,kl,bu){let nc,Sd,Nh,Cf=0;const ep={leakWarningThreshold:kl,onFirstListenerAdd(){nc=ao(wg=>{Cf++,Sd=oo(Sd,wg),ll&&!Nh&&(hp.fire(Sd),Sd=void 0),clearTimeout(Nh),Nh=setTimeout(()=>{const w0=Sd;Sd=void 0,Nh=void 0,(!ll||Cf>1)&&hp.fire(w0),Cf=0},Ns)})},onLastListenerRemove(){nc.dispose()}};bu||e(ep);const hp=new Ln(ep);return bu==null||bu.add(hp),hp.event}o.debounce=O;function W(ao,oo=(ll,kl)=>ll===kl,Ns){let ll=!0,kl;return i(ao,bu=>{const nc=ll||!oo(bu,kl);return ll=!1,kl=bu,nc},Ns)}o.latch=W;function oe(ao,oo,Ns){return[o.filter(ao,oo,Ns),o.filter(ao,ll=>!oo(ll),Ns)]}o.split=oe;function Te(ao,oo=!1,Ns=[]){let ll=Ns.slice(),kl=ao(Sd=>{ll?ll.push(Sd):nc.fire(Sd)});const bu=()=>{ll==null||ll.forEach(Sd=>nc.fire(Sd)),ll=null},nc=new Ln({onFirstListenerAdd(){kl||(kl=ao(Sd=>nc.fire(Sd)))},onFirstListenerDidAdd(){ll&&(oo?setTimeout(bu):bu())},onLastListenerRemove(){kl&&kl.dispose(),kl=null}});return nc.event}o.buffer=Te;class Ze{constructor(oo){this.event=oo,this.disposables=new ct}map(oo){return new Ze(n(this.event,oo,this.disposables))}forEach(oo){return new Ze(r(this.event,oo,this.disposables))}filter(oo){return new Ze(i(this.event,oo,this.disposables))}reduce(oo,Ns){return new Ze(x(this.event,oo,Ns,this.disposables))}latch(){return new Ze(W(this.event,void 0,this.disposables))}debounce(oo,Ns=100,ll=!1,kl){return new Ze(O(this.event,oo,Ns,ll,kl,this.disposables))}on(oo,Ns,ll){return this.event(oo,Ns,ll)}once(oo,Ns,ll){return t(this.event)(oo,Ns,ll)}dispose(){this.disposables.dispose()}}function ut(ao){return new Ze(ao)}o.chain=ut;function Nt(ao,oo,Ns=ll=>ll){const ll=(...Sd)=>nc.fire(Ns(...Sd)),kl=()=>ao.on(oo,ll),bu=()=>ao.removeListener(oo,ll),nc=new Ln({onFirstListenerAdd:kl,onLastListenerRemove:bu});return nc.event}o.fromNodeEventEmitter=Nt;function wn(ao,oo,Ns=ll=>ll){const ll=(...Sd)=>nc.fire(Ns(...Sd)),kl=()=>ao.addEventListener(oo,ll),bu=()=>ao.removeEventListener(oo,ll),nc=new Ln({onFirstListenerAdd:kl,onLastListenerRemove:bu});return nc.event}o.fromDOMEventEmitter=wn;function En(ao){return new Promise(oo=>t(ao)(oo))}o.toPromise=En;function yr(ao,oo){return oo(void 0),ao(Ns=>oo(Ns))}o.runAndSubscribe=yr;function Oi(ao,oo){let Ns=null;function ll(bu){Ns==null||Ns.dispose(),Ns=new ct,oo(bu,Ns)}ll(void 0);const kl=ao(bu=>ll(bu));return Pt(()=>{kl.dispose(),Ns==null||Ns.dispose()})}o.runAndSubscribeWithStore=Oi;class Jo{constructor(oo,Ns){this.obs=oo,this._counter=0,this._hasChanged=!1;const ll={onFirstListenerAdd:()=>{oo.addObserver(this)},onLastListenerRemove:()=>{oo.removeObserver(this)}};Ns||e(ll),this.emitter=new Ln(ll),Ns&&Ns.add(this.emitter)}beginUpdate(oo){this._counter++}handleChange(oo,Ns){this._hasChanged=!0}endUpdate(oo){--this._counter===0&&this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this.obs.get()))}}function Hs(ao,oo){return new Jo(ao,oo).emitter.event}o.fromObservable=Hs})(ti||(ti={}));class Wi{constructor(e){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${e}_${Wi._idPool++}`}start(e){this._stopWatch=new Ci(!0),this._listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this._elapsedOverall+=e,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${e.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}Wi._idPool=0;let Tr=-1;class Qt{constructor(e,t=Math.random().toString(18).slice(2,5)){this.customThreshold=e,this.name=t,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(e,t){let n=Tr;if(typeof this.customThreshold=="number"&&(n=this.customThreshold),n<=0||t{const i=this._stacks.get(e.value)||0;this._stacks.set(e.value,i-1)}}}class Gn{constructor(e){this.value=e}static create(){var e;return new Gn((e=new Error().stack)!==null&&e!==void 0?e:"")}print(){console.warn(this.value.split(` +`+e.stack):e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const k=new z;function N(o){f(o)||k.onUnexpectedError(o)}function w(o){f(o)||k.onUnexpectedExternalError(o)}function A(o){if(o instanceof Error){const{name:e,message:t}=o,n=o.stacktrace||o.stack;return{$isError:!0,name:e,message:t,stack:n,noTelemetry:ce.isErrorNoTelemetry(o)}}return o}const C="Canceled";function f(o){return o instanceof S?!0:o instanceof Error&&o.name===C&&o.message===C}class S extends Error{constructor(){super(C),this.name=this.message}}function P(){const o=new Error(C);return o.name=o.message,o}function W(o){return o?new Error(`Illegal argument: ${o}`):new Error("Illegal argument")}function ne(o){return o?new Error(`Illegal state: ${o}`):new Error("Illegal state")}class re extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class ce extends Error{constructor(e){super(e),this.name="ErrorNoTelemetry"}static fromError(e){if(e instanceof ce)return e;const t=new ce;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return e.name==="ErrorNoTelemetry"}}class pe extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,pe.prototype);debugger}}function he(o){const e=this;let t=!1,n;return function(){return t||(t=!0,n=o.apply(e,arguments)),n}}var fe;(function(o){function e(Oi){return Oi&&typeof Oi=="object"&&typeof Oi[Symbol.iterator]=="function"}o.is=e;const t=Object.freeze([]);function n(){return t}o.empty=n;function*r(Oi){yield Oi}o.single=r;function i(Oi){return Oi||t}o.from=i;function s(Oi){return!Oi||Oi[Symbol.iterator]().next().done===!0}o.isEmpty=s;function d(Oi){return Oi[Symbol.iterator]().next().value}o.first=d;function x(Oi,Jo){for(const Hs of Oi)if(Jo(Hs))return!0;return!1}o.some=x;function E(Oi,Jo){for(const Hs of Oi)if(Jo(Hs))return Hs}o.find=E;function*O(Oi,Jo){for(const Hs of Oi)Jo(Hs)&&(yield Hs)}o.filter=O;function*j(Oi,Jo){let Hs=0;for(const ao of Oi)yield Jo(ao,Hs++)}o.map=j;function*ie(...Oi){for(const Jo of Oi)for(const Hs of Jo)yield Hs}o.concat=ie;function*Se(Oi){for(const Jo of Oi)for(const Hs of Jo)yield Hs}o.concatNested=Se;function Ge(Oi,Jo,Hs){let ao=Hs;for(const oo of Oi)ao=Jo(ao,oo);return ao}o.reduce=Ge;function ut(Oi,Jo){let Hs=0;for(const ao of Oi)Jo(ao,Hs++)}o.forEach=ut;function*Nt(Oi,Jo,Hs=Oi.length){for(Jo<0&&(Jo+=Oi.length),Hs<0?Hs+=Oi.length:Hs>Oi.length&&(Hs=Oi.length);Joao===oo){const ao=Oi[Symbol.iterator](),oo=Jo[Symbol.iterator]();for(;;){const Ns=ao.next(),al=oo.next();if(Ns.done!==al.done)return!1;if(Ns.done)return!0;if(!Hs(Ns.value,al.value))return!1}}o.equals=_r})(fe||(fe={}));const Be=!1;let Ie=null;function We(o){Ie=o}if(Be){const o="__is_disposable_tracked__";We(new class{trackDisposable(e){const t=new Error("Potentially leaked disposable").stack;setTimeout(()=>{e[o]||console.log(t)},3e3)}setParent(e,t){if(e&&e!==He.None)try{e[o]=!0}catch(n){}}markAsDisposed(e){if(e&&e!==He.None)try{e[o]=!0}catch(t){}}markAsSingleton(e){}})}function De(o){return Ie==null||Ie.trackDisposable(o),o}function ve(o){Ie==null||Ie.markAsDisposed(o)}function ye(o,e){Ie==null||Ie.setParent(o,e)}function we(o,e){if(Ie)for(const t of o)Ie.setParent(t,e)}function Ce(o){return Ie==null||Ie.markAsSingleton(o),o}class Ae extends Error{constructor(e){super(`Encountered errors while disposing of store. Errors: [${e.join(", ")}]`),this.errors=e}}function me(o){return typeof o.dispose=="function"&&o.dispose.length===0}function je(o){if(fe.is(o)){const e=[];for(const t of o)if(t)try{t.dispose()}catch(n){e.push(n)}if(e.length===1)throw e[0];if(e.length>1)throw new Ae(e);return Array.isArray(o)?[]:o}else if(o)return o.dispose(),o}function xe(...o){const e=Pt(()=>je(o));return we(o,e),e}function Pt(o){const e=De({dispose:he(()=>{ve(e),o()})});return e}class ct{constructor(){this._toDispose=new Set,this._isDisposed=!1,De(this)}dispose(){this._isDisposed||(ve(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){try{je(this._toDispose.values())}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return ye(e,this),this._isDisposed?ct.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}ct.DISABLE_DISPOSED_WARNING=!1;class He{constructor(){this._store=new ct,De(this),ye(this._store,this)}dispose(){ve(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}He.None=Object.freeze({dispose(){}});class wt{constructor(){this._isDisposed=!1,De(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||((t=this._value)===null||t===void 0||t.dispose(),e&&ye(e,this),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,ve(this),(e=this._value)===null||e===void 0||e.dispose(),this._value=void 0}clearAndLeak(){const e=this._value;return this._value=void 0,e&&ye(e,null),e}}class dt{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter===0&&this._disposable.dispose(),this}}class Bt{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1,De(this)}set(e){let t=e;return this.unset=()=>t=void 0,this.isset=()=>t!==void 0,this.dispose=()=>{t&&(t(),t=void 0,ve(this))},this}}class gt{constructor(e){this.object=e}dispose(){}}class _n{constructor(e){this.element=e,this.next=_n.Undefined,this.prev=_n.Undefined}}_n.Undefined=new _n(void 0);class Bn{constructor(){this._first=_n.Undefined,this._last=_n.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===_n.Undefined}clear(){let e=this._first;for(;e!==_n.Undefined;){const t=e.next;e.prev=_n.Undefined,e.next=_n.Undefined,e=t}this._first=_n.Undefined,this._last=_n.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new _n(e);if(this._first===_n.Undefined)this._first=n,this._last=n;else if(t){const i=this._last;this._last=n,n.prev=i,i.next=n}else{const i=this._first;this._first=n,n.next=i,i.prev=n}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(n))}}shift(){if(this._first!==_n.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==_n.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==_n.Undefined&&e.next!==_n.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===_n.Undefined&&e.next===_n.Undefined?(this._first=_n.Undefined,this._last=_n.Undefined):e.next===_n.Undefined?(this._last=this._last.prev,this._last.next=_n.Undefined):e.prev===_n.Undefined&&(this._first=this._first.next,this._first.prev=_n.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==_n.Undefined;)yield e.element,e=e.next}}var Er=function(o,e,t,n){function r(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function d(O){try{E(n.next(O))}catch(j){s(j)}}function x(O){try{E(n.throw(O))}catch(j){s(j)}}function E(O){O.done?i(O.value):r(O.value).then(d,x)}E((n=n.apply(o,e||[])).next())})};let Yr=typeof document!="undefined"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;const oi="i-default";function to(o,e){let t;return e.length===0?t=o:t=o.replace(/\{(\d+)\}/g,(n,r)=>{const i=r[0],s=e[i];let d=n;return typeof s=="string"?d=s:(typeof s=="number"||typeof s=="boolean"||s===void 0||s===null)&&(d=String(s)),d}),Yr&&(t="\uFF3B"+t.replace(/[aouei]/g,"$&$&")+"\uFF3D"),t}function yo(o,e){let t=o[e];return t||(t=o["*"],t)?t:null}function yr(o){return o.charAt(o.length-1)==="/"?o:o+"/"}function Po(o,e,t){return Er(this,void 0,void 0,function*(){const n=yr(o)+yr(e)+"vscode/"+yr(t),r=yield fetch(n);if(r.ok)return yield r.json();throw new Error(`${r.status} - ${r.statusText}`)})}function as(o){return function(e,t){const n=Array.prototype.slice.call(arguments,2);return to(o[e],n)}}function ge(o,e,...t){return to(e,t)}function _o(o){}function ci(o){Yr=o}function Bi(o,e){var t;return{localize:as(e[o]),getConfiguredDefaultLocale:(t=e.getConfiguredDefaultLocale)!==null&&t!==void 0?t:n=>{}}}function Ci(o,e,t,n){var r;const i=(r=n["vs/nls"])!==null&&r!==void 0?r:{};if(!o||o.length===0)return t({localize:ge,getConfiguredDefaultLocale:()=>{var O;return(O=i.availableLanguages)===null||O===void 0?void 0:O["*"]}});const s=i.availableLanguages?yo(i.availableLanguages,o):null,d=s===null||s===oi;let x=".nls";d||(x=x+"."+s);const E=O=>{Array.isArray(O)?O.localize=as(O):O.localize=as(O[o]),O.getConfiguredDefaultLocale=()=>{var j;return(j=i.availableLanguages)===null||j===void 0?void 0:j["*"]},t(O)};typeof i.loadBundle=="function"?i.loadBundle(o,s,(O,j)=>{O?e([o+".nls"],E):E(j)}):i.translationServiceUrl&&!d?Er(this,void 0,void 0,function*(){var O;try{const j=yield Po(i.translationServiceUrl,s,o);return E(j)}catch(j){if(!s.includes("-"))return console.error(j),e([o+".nls"],E);try{const ie=s.split("-")[0],Se=yield Po(i.translationServiceUrl,ie,o);return(O=i.availableLanguages)!==null&&O!==void 0||(i.availableLanguages={}),i.availableLanguages["*"]=ie,E(Se)}catch(ie){return console.error(ie),e([o+".nls"],E)}}}):e([o+x],E,O=>{if(x===".nls"){console.error("Failed trying to load default language strings",O);return}console.error(`Failed to load message bundle for language ${s}. Falling back to the default language:`,O),e([o+".nls"],E)})}var io=m(97671),ln;const Ve="en";let _t=!1,xt=!1,Wt=!1,on=!1,Ot=!1,Tt=!1,bt=!1,Ht=!1,Wn=!1,tn,hr=Ve,Zi=null,Ri;const Pi=typeof self=="object"?self:typeof m.g=="object"?m.g:{};let Wo;typeof Pi.vscode!="undefined"&&typeof Pi.vscode.process!="undefined"?Wo=Pi.vscode.process:typeof io!="undefined"&&(Wo=io);const ys=typeof((ln=Wo==null?void 0:Wo.versions)===null||ln===void 0?void 0:ln.electron)=="string",xn=ys&&(Wo==null?void 0:Wo.type)==="renderer";if(typeof navigator=="object"&&!xn)Ri=navigator.userAgent,_t=Ri.indexOf("Windows")>=0,xt=Ri.indexOf("Macintosh")>=0,Ht=(Ri.indexOf("Macintosh")>=0||Ri.indexOf("iPad")>=0||Ri.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Wt=Ri.indexOf("Linux")>=0,Tt=!0,tn=(ge({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),void 0)||Ve,hr=tn;else if(typeof Wo=="object"){_t=Wo.platform==="win32",xt=Wo.platform==="darwin",Wt=Wo.platform==="linux",on=Wt&&!!Wo.env.SNAP&&!!Wo.env.SNAP_REVISION,bt=ys,Wn=!!Wo.env.CI||!!Wo.env.BUILD_ARTIFACTSTAGINGDIRECTORY,tn=Ve,hr=Ve;const o=Wo.env.VSCODE_NLS_CONFIG;if(o)try{const e=JSON.parse(o),t=e.availableLanguages["*"];tn=e.locale,hr=t||Ve,Zi=e._translationsConfigFile}catch(e){}Ot=!0}else console.error("Unable to resolve platform.");let Hr=0;xt?Hr=1:_t?Hr=3:Wt&&(Hr=2);const Jr=_t,Yi=xt,xo=Wt,na=Ot,Un=Tt,Xn=Tt&&typeof Pi.importScripts=="function",Mr=Ht,li=Ri,wr=hr,qr=typeof Pi.postMessage=="function"&&!Pi.importScripts,ii=(()=>{if(qr){const o=[];Pi.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,r=o.length;n{const n=++e;o.push({id:n,callback:t}),Pi.postMessage({vscodeScheduleAsyncWork:n},"*")}}return o=>setTimeout(o)})(),rn=xt||Ht?2:_t?1:3;let Qn=!0,Vr=!1;function so(){if(!Vr){Vr=!0;const o=new Uint8Array(2);o[0]=1,o[1]=2,Qn=new Uint16Array(o.buffer)[0]===512+1}return Qn}const rs=!!(li&&li.indexOf("Chrome")>=0),zt=!!(li&&li.indexOf("Firefox")>=0),pn=!!(!rs&&li&&li.indexOf("Safari")>=0),br=!!(li&&li.indexOf("Edg/")>=0),Gr=!!(li&&li.indexOf("Android")>=0),ui=Pi.performance&&typeof Pi.performance.now=="function";class xi{constructor(e){this._highResolution=ui&&e,this._startTime=this._now(),this._stopTime=-1}static create(e=!0){return new xi(e)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?Pi.performance.now():Date.now()}}const lo=!1,Kr=!1;var ti;(function(o){o.None=()=>He.None;function e(ao){if(Kr){const{onListenerDidAdd:oo}=ao,Ns=Gn.create();let al=0;ao.onListenerDidAdd=()=>{++al===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),Ns.print()),oo==null||oo()}}}function t(ao){return(oo,Ns=null,al)=>{let kl=!1,bu;return bu=ao(nc=>{if(!kl)return bu?bu.dispose():kl=!0,oo.call(Ns,nc)},null,al),kl&&bu.dispose(),bu}}o.once=t;function n(ao,oo,Ns){return E((al,kl=null,bu)=>ao(nc=>al.call(kl,oo(nc)),null,bu),Ns)}o.map=n;function r(ao,oo,Ns){return E((al,kl=null,bu)=>ao(nc=>{oo(nc),al.call(kl,nc)},null,bu),Ns)}o.forEach=r;function i(ao,oo,Ns){return E((al,kl=null,bu)=>ao(nc=>oo(nc)&&al.call(kl,nc),null,bu),Ns)}o.filter=i;function s(ao){return ao}o.signal=s;function d(...ao){return(oo,Ns=null,al)=>xe(...ao.map(kl=>kl(bu=>oo.call(Ns,bu),null,al)))}o.any=d;function x(ao,oo,Ns,al){let kl=Ns;return n(ao,bu=>(kl=oo(kl,bu),kl),al)}o.reduce=x;function E(ao,oo){let Ns;const al={onFirstListenerAdd(){Ns=ao(kl.fire,kl)},onLastListenerRemove(){Ns==null||Ns.dispose()}};oo||e(al);const kl=new Ln(al);return oo==null||oo.add(kl),kl.event}function O(ao,oo,Ns=100,al=!1,kl,bu){let nc,Sd,Rh,Cf=0;const ep={leakWarningThreshold:kl,onFirstListenerAdd(){nc=ao(wg=>{Cf++,Sd=oo(Sd,wg),al&&!Rh&&(dp.fire(Sd),Sd=void 0),clearTimeout(Rh),Rh=setTimeout(()=>{const w0=Sd;Sd=void 0,Rh=void 0,(!al||Cf>1)&&dp.fire(w0),Cf=0},Ns)})},onLastListenerRemove(){nc.dispose()}};bu||e(ep);const dp=new Ln(ep);return bu==null||bu.add(dp),dp.event}o.debounce=O;function j(ao,oo=(al,kl)=>al===kl,Ns){let al=!0,kl;return i(ao,bu=>{const nc=al||!oo(bu,kl);return al=!1,kl=bu,nc},Ns)}o.latch=j;function ie(ao,oo,Ns){return[o.filter(ao,oo,Ns),o.filter(ao,al=>!oo(al),Ns)]}o.split=ie;function Se(ao,oo=!1,Ns=[]){let al=Ns.slice(),kl=ao(Sd=>{al?al.push(Sd):nc.fire(Sd)});const bu=()=>{al==null||al.forEach(Sd=>nc.fire(Sd)),al=null},nc=new Ln({onFirstListenerAdd(){kl||(kl=ao(Sd=>nc.fire(Sd)))},onFirstListenerDidAdd(){al&&(oo?setTimeout(bu):bu())},onLastListenerRemove(){kl&&kl.dispose(),kl=null}});return nc.event}o.buffer=Se;class Ge{constructor(oo){this.event=oo,this.disposables=new ct}map(oo){return new Ge(n(this.event,oo,this.disposables))}forEach(oo){return new Ge(r(this.event,oo,this.disposables))}filter(oo){return new Ge(i(this.event,oo,this.disposables))}reduce(oo,Ns){return new Ge(x(this.event,oo,Ns,this.disposables))}latch(){return new Ge(j(this.event,void 0,this.disposables))}debounce(oo,Ns=100,al=!1,kl){return new Ge(O(this.event,oo,Ns,al,kl,this.disposables))}on(oo,Ns,al){return this.event(oo,Ns,al)}once(oo,Ns,al){return t(this.event)(oo,Ns,al)}dispose(){this.disposables.dispose()}}function ut(ao){return new Ge(ao)}o.chain=ut;function Nt(ao,oo,Ns=al=>al){const al=(...Sd)=>nc.fire(Ns(...Sd)),kl=()=>ao.on(oo,al),bu=()=>ao.removeListener(oo,al),nc=new Ln({onFirstListenerAdd:kl,onLastListenerRemove:bu});return nc.event}o.fromNodeEventEmitter=Nt;function wn(ao,oo,Ns=al=>al){const al=(...Sd)=>nc.fire(Ns(...Sd)),kl=()=>ao.addEventListener(oo,al),bu=()=>ao.removeEventListener(oo,al),nc=new Ln({onFirstListenerAdd:kl,onLastListenerRemove:bu});return nc.event}o.fromDOMEventEmitter=wn;function En(ao){return new Promise(oo=>t(ao)(oo))}o.toPromise=En;function _r(ao,oo){return oo(void 0),ao(Ns=>oo(Ns))}o.runAndSubscribe=_r;function Oi(ao,oo){let Ns=null;function al(bu){Ns==null||Ns.dispose(),Ns=new ct,oo(bu,Ns)}al(void 0);const kl=ao(bu=>al(bu));return Pt(()=>{kl.dispose(),Ns==null||Ns.dispose()})}o.runAndSubscribeWithStore=Oi;class Jo{constructor(oo,Ns){this.obs=oo,this._counter=0,this._hasChanged=!1;const al={onFirstListenerAdd:()=>{oo.addObserver(this)},onLastListenerRemove:()=>{oo.removeObserver(this)}};Ns||e(al),this.emitter=new Ln(al),Ns&&Ns.add(this.emitter)}beginUpdate(oo){this._counter++}handleChange(oo,Ns){this._hasChanged=!0}endUpdate(oo){--this._counter===0&&this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this.obs.get()))}}function Hs(ao,oo){return new Jo(ao,oo).emitter.event}o.fromObservable=Hs})(ti||(ti={}));class ji{constructor(e){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${e}_${ji._idPool++}`}start(e){this._stopWatch=new xi(!0),this._listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this._elapsedOverall+=e,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${e.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}ji._idPool=0;let Tr=-1;class Qt{constructor(e,t=Math.random().toString(18).slice(2,5)){this.customThreshold=e,this.name=t,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(e,t){let n=Tr;if(typeof this.customThreshold=="number"&&(n=this.customThreshold),n<=0||t{const i=this._stacks.get(e.value)||0;this._stacks.set(e.value,i-1)}}}class Gn{constructor(e){this.value=e}static create(){var e;return new Gn((e=new Error().stack)!==null&&e!==void 0?e:"")}print(){console.warn(this.value.split(` `).slice(2).join(` -`))}}class yi{constructor(e,t,n){this.callback=e,this.callbackThis=t,this.stack=n,this.subscription=new Bt}invoke(e){this.callback.call(this.callbackThis,e)}}class Ln{constructor(e){var t,n;this._disposed=!1,this._options=e,this._leakageMon=Tr>0?new Qt(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=!((t=this._options)===null||t===void 0)&&t._profName?new Wi(this._options._profName):void 0,this._deliveryQueue=(n=this._options)===null||n===void 0?void 0:n.deliveryQueue}dispose(){var e,t,n,r;if(!this._disposed){if(this._disposed=!0,this._listeners){if(lo){const i=Array.from(this._listeners);queueMicrotask(()=>{var s;for(const d of i)d.subscription.isset()&&(d.subscription.unset(),(s=d.stack)===null||s===void 0||s.print())})}this._listeners.clear()}(e=this._deliveryQueue)===null||e===void 0||e.clear(this),(n=(t=this._options)===null||t===void 0?void 0:t.onLastListenerRemove)===null||n===void 0||n.call(t),(r=this._leakageMon)===null||r===void 0||r.dispose()}}get event(){return this._event||(this._event=(e,t,n)=>{var r,i,s;this._listeners||(this._listeners=new Bn);const d=this._listeners.isEmpty();d&&(!((r=this._options)===null||r===void 0)&&r.onFirstListenerAdd)&&this._options.onFirstListenerAdd(this);let x,E;this._leakageMon&&this._listeners.size>=30&&(E=Gn.create(),x=this._leakageMon.check(E,this._listeners.size+1)),lo&&(E=E!=null?E:Gn.create());const O=new yi(e,t,E),W=this._listeners.push(O);d&&(!((i=this._options)===null||i===void 0)&&i.onFirstListenerDidAdd)&&this._options.onFirstListenerDidAdd(this),!((s=this._options)===null||s===void 0)&&s.onListenerDidAdd&&this._options.onListenerDidAdd(this,e,t);const oe=O.subscription.set(()=>{x==null||x(),this._disposed||(W(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return n instanceof ct?n.add(oe):Array.isArray(n)&&n.push(oe),oe}),this._event}fire(e){var t,n;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new tr);for(const r of this._listeners)this._deliveryQueue.push(this,r,e);(t=this._perfMon)===null||t===void 0||t.start(this._deliveryQueue.size),this._deliveryQueue.deliver(),(n=this._perfMon)===null||n===void 0||n.stop()}}}class Si{constructor(){this._queue=new Bn}get size(){return this._queue.size}push(e,t,n){this._queue.push(new vi(e,t,n))}clear(e){const t=new Bn;for(const n of this._queue)n.emitter!==e&&t.push(n);this._queue=t}deliver(){for(;this._queue.size>0;){const e=this._queue.shift();try{e.listener.invoke(e.event)}catch(t){N(t)}}}}class tr extends Si{clear(e){this._queue.clear()}}class vi{constructor(e,t,n){this.emitter=e,this.listener=t,this.event=n}}class Ni extends Ln{constructor(e){super(e),this._isPaused=0,this._eventQueue=new Bn,this._mergeFn=e==null?void 0:e.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(e){this._listeners&&(this._isPaused!==0?this._eventQueue.push(e):super.fire(e))}}class kr extends Ni{constructor(e){var t;super(e),this._delay=(t=e.delay)!==null&&t!==void 0?t:100}fire(e){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(e)}}class Qn{constructor(){this.buffers=[]}wrapEvent(e){return(t,n,r)=>e(i=>{const s=this.buffers[this.buffers.length-1];s?s.push(()=>t.call(n,i)):t.call(n,i)},void 0,r)}bufferEvents(e){const t=[];this.buffers.push(t);const n=e();return this.buffers.pop(),t.forEach(r=>r()),n}}class ds{constructor(){this.listening=!1,this.inputEvent=ti.None,this.inputEventListener=Ue.None,this.emitter=new Ln({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}class _a{constructor(){this._zoomFactor=1}getZoomFactor(){return this._zoomFactor}}_a.INSTANCE=new _a;class da extends Ue{constructor(){super(),this._onDidChange=this._register(new Ln),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(!0),this._mediaQueryList=null,this._handleChange(!1)}_handleChange(e){var t;(t=this._mediaQueryList)===null||t===void 0||t.removeEventListener("change",this._listener),this._mediaQueryList=matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),e&&this._onDidChange.fire()}}class zs extends Ue{constructor(){super(),this._onDidChange=this._register(new Ln),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio();const e=this._register(new da);this._register(e.onDidChange(()=>{this._value=this._getPixelRatio(),this._onDidChange.fire(this._value)}))}get value(){return this._value}_getPixelRatio(){const e=document.createElement("canvas").getContext("2d"),t=window.devicePixelRatio||1,n=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return t/n}}class ja{constructor(){this._pixelRatioMonitor=null}_getOrCreatePixelRatioMonitor(){return this._pixelRatioMonitor||(this._pixelRatioMonitor=be(new zs)),this._pixelRatioMonitor}get value(){return this._getOrCreatePixelRatioMonitor().value}get onDidChange(){return this._getOrCreatePixelRatioMonitor().onDidChange}}function Co(o,e){typeof o=="string"&&(o=window.matchMedia(o)),o.addEventListener("change",e)}const dl=new ja;function Fr(){return _a.INSTANCE.getZoomFactor()}const fs=navigator.userAgent,jo=fs.indexOf("Firefox")>=0,Es=fs.indexOf("AppleWebKit")>=0,xs=fs.indexOf("Chrome")>=0,Za=!xs&&fs.indexOf("Safari")>=0,tl=!xs&&!Za&&Es,xl=fs.indexOf("Electron/")>=0,Qa=fs.indexOf("Android")>=0;let si=!1;if(window.matchMedia){const o=window.matchMedia("(display-mode: standalone)");si=o.matches,Co(o,({matches:e})=>{si=e})}function co(){return si}const dn={clipboard:{writeText:na||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:na||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:(()=>na||co()?0:navigator.keyboard||Za?1:2)(),touch:"ontouchstart"in window||navigator.maxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0)};class Dn{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const Nn=new Dn,tt=new Dn,dt=new Dn,vt=new Array(230),ze={},lt=[],Et=Object.create(null),an=Object.create(null),jn=[],xr=[];for(let o=0;o<=193;o++)jn[o]=-1;for(let o=0;o<=127;o++)xr[o]=-1;(function(){const o="",e=[[0,1,0,"None",0,"unknown",0,"VK_UNKNOWN",o,o],[0,1,1,"Hyper",0,o,0,o,o,o],[0,1,2,"Super",0,o,0,o,o,o],[0,1,3,"Fn",0,o,0,o,o,o],[0,1,4,"FnLock",0,o,0,o,o,o],[0,1,5,"Suspend",0,o,0,o,o,o],[0,1,6,"Resume",0,o,0,o,o,o],[0,1,7,"Turbo",0,o,0,o,o,o],[0,1,8,"Sleep",0,o,0,"VK_SLEEP",o,o],[0,1,9,"WakeUp",0,o,0,o,o,o],[31,0,10,"KeyA",31,"A",65,"VK_A",o,o],[32,0,11,"KeyB",32,"B",66,"VK_B",o,o],[33,0,12,"KeyC",33,"C",67,"VK_C",o,o],[34,0,13,"KeyD",34,"D",68,"VK_D",o,o],[35,0,14,"KeyE",35,"E",69,"VK_E",o,o],[36,0,15,"KeyF",36,"F",70,"VK_F",o,o],[37,0,16,"KeyG",37,"G",71,"VK_G",o,o],[38,0,17,"KeyH",38,"H",72,"VK_H",o,o],[39,0,18,"KeyI",39,"I",73,"VK_I",o,o],[40,0,19,"KeyJ",40,"J",74,"VK_J",o,o],[41,0,20,"KeyK",41,"K",75,"VK_K",o,o],[42,0,21,"KeyL",42,"L",76,"VK_L",o,o],[43,0,22,"KeyM",43,"M",77,"VK_M",o,o],[44,0,23,"KeyN",44,"N",78,"VK_N",o,o],[45,0,24,"KeyO",45,"O",79,"VK_O",o,o],[46,0,25,"KeyP",46,"P",80,"VK_P",o,o],[47,0,26,"KeyQ",47,"Q",81,"VK_Q",o,o],[48,0,27,"KeyR",48,"R",82,"VK_R",o,o],[49,0,28,"KeyS",49,"S",83,"VK_S",o,o],[50,0,29,"KeyT",50,"T",84,"VK_T",o,o],[51,0,30,"KeyU",51,"U",85,"VK_U",o,o],[52,0,31,"KeyV",52,"V",86,"VK_V",o,o],[53,0,32,"KeyW",53,"W",87,"VK_W",o,o],[54,0,33,"KeyX",54,"X",88,"VK_X",o,o],[55,0,34,"KeyY",55,"Y",89,"VK_Y",o,o],[56,0,35,"KeyZ",56,"Z",90,"VK_Z",o,o],[22,0,36,"Digit1",22,"1",49,"VK_1",o,o],[23,0,37,"Digit2",23,"2",50,"VK_2",o,o],[24,0,38,"Digit3",24,"3",51,"VK_3",o,o],[25,0,39,"Digit4",25,"4",52,"VK_4",o,o],[26,0,40,"Digit5",26,"5",53,"VK_5",o,o],[27,0,41,"Digit6",27,"6",54,"VK_6",o,o],[28,0,42,"Digit7",28,"7",55,"VK_7",o,o],[29,0,43,"Digit8",29,"8",56,"VK_8",o,o],[30,0,44,"Digit9",30,"9",57,"VK_9",o,o],[21,0,45,"Digit0",21,"0",48,"VK_0",o,o],[3,1,46,"Enter",3,"Enter",13,"VK_RETURN",o,o],[9,1,47,"Escape",9,"Escape",27,"VK_ESCAPE",o,o],[1,1,48,"Backspace",1,"Backspace",8,"VK_BACK",o,o],[2,1,49,"Tab",2,"Tab",9,"VK_TAB",o,o],[10,1,50,"Space",10,"Space",32,"VK_SPACE",o,o],[83,0,51,"Minus",83,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[81,0,52,"Equal",81,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[87,0,53,"BracketLeft",87,"[",219,"VK_OEM_4","[","OEM_4"],[89,0,54,"BracketRight",89,"]",221,"VK_OEM_6","]","OEM_6"],[88,0,55,"Backslash",88,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,0,56,"IntlHash",0,o,0,o,o,o],[80,0,57,"Semicolon",80,";",186,"VK_OEM_1",";","OEM_1"],[90,0,58,"Quote",90,"'",222,"VK_OEM_7","'","OEM_7"],[86,0,59,"Backquote",86,"`",192,"VK_OEM_3","`","OEM_3"],[82,0,60,"Comma",82,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[84,0,61,"Period",84,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[85,0,62,"Slash",85,"/",191,"VK_OEM_2","/","OEM_2"],[8,1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",o,o],[59,1,64,"F1",59,"F1",112,"VK_F1",o,o],[60,1,65,"F2",60,"F2",113,"VK_F2",o,o],[61,1,66,"F3",61,"F3",114,"VK_F3",o,o],[62,1,67,"F4",62,"F4",115,"VK_F4",o,o],[63,1,68,"F5",63,"F5",116,"VK_F5",o,o],[64,1,69,"F6",64,"F6",117,"VK_F6",o,o],[65,1,70,"F7",65,"F7",118,"VK_F7",o,o],[66,1,71,"F8",66,"F8",119,"VK_F8",o,o],[67,1,72,"F9",67,"F9",120,"VK_F9",o,o],[68,1,73,"F10",68,"F10",121,"VK_F10",o,o],[69,1,74,"F11",69,"F11",122,"VK_F11",o,o],[70,1,75,"F12",70,"F12",123,"VK_F12",o,o],[0,1,76,"PrintScreen",0,o,0,o,o,o],[79,1,77,"ScrollLock",79,"ScrollLock",145,"VK_SCROLL",o,o],[7,1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",o,o],[19,1,79,"Insert",19,"Insert",45,"VK_INSERT",o,o],[14,1,80,"Home",14,"Home",36,"VK_HOME",o,o],[11,1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",o,o],[20,1,82,"Delete",20,"Delete",46,"VK_DELETE",o,o],[13,1,83,"End",13,"End",35,"VK_END",o,o],[12,1,84,"PageDown",12,"PageDown",34,"VK_NEXT",o,o],[17,1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",o],[15,1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",o],[18,1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",o],[16,1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",o],[78,1,89,"NumLock",78,"NumLock",144,"VK_NUMLOCK",o,o],[108,1,90,"NumpadDivide",108,"NumPad_Divide",111,"VK_DIVIDE",o,o],[103,1,91,"NumpadMultiply",103,"NumPad_Multiply",106,"VK_MULTIPLY",o,o],[106,1,92,"NumpadSubtract",106,"NumPad_Subtract",109,"VK_SUBTRACT",o,o],[104,1,93,"NumpadAdd",104,"NumPad_Add",107,"VK_ADD",o,o],[3,1,94,"NumpadEnter",3,o,0,o,o,o],[94,1,95,"Numpad1",94,"NumPad1",97,"VK_NUMPAD1",o,o],[95,1,96,"Numpad2",95,"NumPad2",98,"VK_NUMPAD2",o,o],[96,1,97,"Numpad3",96,"NumPad3",99,"VK_NUMPAD3",o,o],[97,1,98,"Numpad4",97,"NumPad4",100,"VK_NUMPAD4",o,o],[98,1,99,"Numpad5",98,"NumPad5",101,"VK_NUMPAD5",o,o],[99,1,100,"Numpad6",99,"NumPad6",102,"VK_NUMPAD6",o,o],[100,1,101,"Numpad7",100,"NumPad7",103,"VK_NUMPAD7",o,o],[101,1,102,"Numpad8",101,"NumPad8",104,"VK_NUMPAD8",o,o],[102,1,103,"Numpad9",102,"NumPad9",105,"VK_NUMPAD9",o,o],[93,1,104,"Numpad0",93,"NumPad0",96,"VK_NUMPAD0",o,o],[107,1,105,"NumpadDecimal",107,"NumPad_Decimal",110,"VK_DECIMAL",o,o],[92,0,106,"IntlBackslash",92,"OEM_102",226,"VK_OEM_102",o,o],[58,1,107,"ContextMenu",58,"ContextMenu",93,o,o,o],[0,1,108,"Power",0,o,0,o,o,o],[0,1,109,"NumpadEqual",0,o,0,o,o,o],[71,1,110,"F13",71,"F13",124,"VK_F13",o,o],[72,1,111,"F14",72,"F14",125,"VK_F14",o,o],[73,1,112,"F15",73,"F15",126,"VK_F15",o,o],[74,1,113,"F16",74,"F16",127,"VK_F16",o,o],[75,1,114,"F17",75,"F17",128,"VK_F17",o,o],[76,1,115,"F18",76,"F18",129,"VK_F18",o,o],[77,1,116,"F19",77,"F19",130,"VK_F19",o,o],[0,1,117,"F20",0,o,0,"VK_F20",o,o],[0,1,118,"F21",0,o,0,"VK_F21",o,o],[0,1,119,"F22",0,o,0,"VK_F22",o,o],[0,1,120,"F23",0,o,0,"VK_F23",o,o],[0,1,121,"F24",0,o,0,"VK_F24",o,o],[0,1,122,"Open",0,o,0,o,o,o],[0,1,123,"Help",0,o,0,o,o,o],[0,1,124,"Select",0,o,0,o,o,o],[0,1,125,"Again",0,o,0,o,o,o],[0,1,126,"Undo",0,o,0,o,o,o],[0,1,127,"Cut",0,o,0,o,o,o],[0,1,128,"Copy",0,o,0,o,o,o],[0,1,129,"Paste",0,o,0,o,o,o],[0,1,130,"Find",0,o,0,o,o,o],[0,1,131,"AudioVolumeMute",112,"AudioVolumeMute",173,"VK_VOLUME_MUTE",o,o],[0,1,132,"AudioVolumeUp",113,"AudioVolumeUp",175,"VK_VOLUME_UP",o,o],[0,1,133,"AudioVolumeDown",114,"AudioVolumeDown",174,"VK_VOLUME_DOWN",o,o],[105,1,134,"NumpadComma",105,"NumPad_Separator",108,"VK_SEPARATOR",o,o],[110,0,135,"IntlRo",110,"ABNT_C1",193,"VK_ABNT_C1",o,o],[0,1,136,"KanaMode",0,o,0,o,o,o],[0,0,137,"IntlYen",0,o,0,o,o,o],[0,1,138,"Convert",0,o,0,o,o,o],[0,1,139,"NonConvert",0,o,0,o,o,o],[0,1,140,"Lang1",0,o,0,o,o,o],[0,1,141,"Lang2",0,o,0,o,o,o],[0,1,142,"Lang3",0,o,0,o,o,o],[0,1,143,"Lang4",0,o,0,o,o,o],[0,1,144,"Lang5",0,o,0,o,o,o],[0,1,145,"Abort",0,o,0,o,o,o],[0,1,146,"Props",0,o,0,o,o,o],[0,1,147,"NumpadParenLeft",0,o,0,o,o,o],[0,1,148,"NumpadParenRight",0,o,0,o,o,o],[0,1,149,"NumpadBackspace",0,o,0,o,o,o],[0,1,150,"NumpadMemoryStore",0,o,0,o,o,o],[0,1,151,"NumpadMemoryRecall",0,o,0,o,o,o],[0,1,152,"NumpadMemoryClear",0,o,0,o,o,o],[0,1,153,"NumpadMemoryAdd",0,o,0,o,o,o],[0,1,154,"NumpadMemorySubtract",0,o,0,o,o,o],[0,1,155,"NumpadClear",126,"Clear",12,"VK_CLEAR",o,o],[0,1,156,"NumpadClearEntry",0,o,0,o,o,o],[5,1,0,o,5,"Ctrl",17,"VK_CONTROL",o,o],[4,1,0,o,4,"Shift",16,"VK_SHIFT",o,o],[6,1,0,o,6,"Alt",18,"VK_MENU",o,o],[57,1,0,o,57,"Meta",0,"VK_COMMAND",o,o],[5,1,157,"ControlLeft",5,o,0,"VK_LCONTROL",o,o],[4,1,158,"ShiftLeft",4,o,0,"VK_LSHIFT",o,o],[6,1,159,"AltLeft",6,o,0,"VK_LMENU",o,o],[57,1,160,"MetaLeft",57,o,0,"VK_LWIN",o,o],[5,1,161,"ControlRight",5,o,0,"VK_RCONTROL",o,o],[4,1,162,"ShiftRight",4,o,0,"VK_RSHIFT",o,o],[6,1,163,"AltRight",6,o,0,"VK_RMENU",o,o],[57,1,164,"MetaRight",57,o,0,"VK_RWIN",o,o],[0,1,165,"BrightnessUp",0,o,0,o,o,o],[0,1,166,"BrightnessDown",0,o,0,o,o,o],[0,1,167,"MediaPlay",0,o,0,o,o,o],[0,1,168,"MediaRecord",0,o,0,o,o,o],[0,1,169,"MediaFastForward",0,o,0,o,o,o],[0,1,170,"MediaRewind",0,o,0,o,o,o],[114,1,171,"MediaTrackNext",119,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",o,o],[115,1,172,"MediaTrackPrevious",120,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",o,o],[116,1,173,"MediaStop",121,"MediaStop",178,"VK_MEDIA_STOP",o,o],[0,1,174,"Eject",0,o,0,o,o,o],[117,1,175,"MediaPlayPause",122,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",o,o],[0,1,176,"MediaSelect",123,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",o,o],[0,1,177,"LaunchMail",124,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",o,o],[0,1,178,"LaunchApp2",125,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",o,o],[0,1,179,"LaunchApp1",0,o,0,"VK_MEDIA_LAUNCH_APP1",o,o],[0,1,180,"SelectTask",0,o,0,o,o,o],[0,1,181,"LaunchScreenSaver",0,o,0,o,o,o],[0,1,182,"BrowserSearch",115,"BrowserSearch",170,"VK_BROWSER_SEARCH",o,o],[0,1,183,"BrowserHome",116,"BrowserHome",172,"VK_BROWSER_HOME",o,o],[112,1,184,"BrowserBack",117,"BrowserBack",166,"VK_BROWSER_BACK",o,o],[113,1,185,"BrowserForward",118,"BrowserForward",167,"VK_BROWSER_FORWARD",o,o],[0,1,186,"BrowserStop",0,o,0,"VK_BROWSER_STOP",o,o],[0,1,187,"BrowserRefresh",0,o,0,"VK_BROWSER_REFRESH",o,o],[0,1,188,"BrowserFavorites",0,o,0,"VK_BROWSER_FAVORITES",o,o],[0,1,189,"ZoomToggle",0,o,0,o,o,o],[0,1,190,"MailReply",0,o,0,o,o,o],[0,1,191,"MailForward",0,o,0,o,o,o],[0,1,192,"MailSend",0,o,0,o,o,o],[109,1,0,o,109,"KeyInComposition",229,o,o,o],[111,1,0,o,111,"ABNT_C2",194,"VK_ABNT_C2",o,o],[91,1,0,o,91,"OEM_8",223,"VK_OEM_8",o,o],[0,1,0,o,0,o,0,"VK_KANA",o,o],[0,1,0,o,0,o,0,"VK_HANGUL",o,o],[0,1,0,o,0,o,0,"VK_JUNJA",o,o],[0,1,0,o,0,o,0,"VK_FINAL",o,o],[0,1,0,o,0,o,0,"VK_HANJA",o,o],[0,1,0,o,0,o,0,"VK_KANJI",o,o],[0,1,0,o,0,o,0,"VK_CONVERT",o,o],[0,1,0,o,0,o,0,"VK_NONCONVERT",o,o],[0,1,0,o,0,o,0,"VK_ACCEPT",o,o],[0,1,0,o,0,o,0,"VK_MODECHANGE",o,o],[0,1,0,o,0,o,0,"VK_SELECT",o,o],[0,1,0,o,0,o,0,"VK_PRINT",o,o],[0,1,0,o,0,o,0,"VK_EXECUTE",o,o],[0,1,0,o,0,o,0,"VK_SNAPSHOT",o,o],[0,1,0,o,0,o,0,"VK_HELP",o,o],[0,1,0,o,0,o,0,"VK_APPS",o,o],[0,1,0,o,0,o,0,"VK_PROCESSKEY",o,o],[0,1,0,o,0,o,0,"VK_PACKET",o,o],[0,1,0,o,0,o,0,"VK_DBE_SBCSCHAR",o,o],[0,1,0,o,0,o,0,"VK_DBE_DBCSCHAR",o,o],[0,1,0,o,0,o,0,"VK_ATTN",o,o],[0,1,0,o,0,o,0,"VK_CRSEL",o,o],[0,1,0,o,0,o,0,"VK_EXSEL",o,o],[0,1,0,o,0,o,0,"VK_EREOF",o,o],[0,1,0,o,0,o,0,"VK_PLAY",o,o],[0,1,0,o,0,o,0,"VK_ZOOM",o,o],[0,1,0,o,0,o,0,"VK_NONAME",o,o],[0,1,0,o,0,o,0,"VK_PA1",o,o],[0,1,0,o,0,o,0,"VK_OEM_CLEAR",o,o]],t=[],n=[];for(const r of e){const[i,s,d,x,E,O,W,oe,Te,Ze]=r;if(n[d]||(n[d]=!0,lt[d]=x,Et[x]=d,an[x.toLowerCase()]=d,s&&(jn[d]=E,E!==0&&E!==3&&E!==5&&E!==4&&E!==6&&E!==57&&(xr[E]=d))),!t[E]){if(t[E]=!0,!O)throw new Error(`String representation missing for key code ${E} around scan code ${x}`);Nn.define(E,O),tt.define(E,Te||O),dt.define(E,Ze||Te||O)}W&&(vt[W]=E),oe&&(ze[oe]=E)}xr[3]=46})();var Ti;(function(o){function e(d){return Nn.keyCodeToStr(d)}o.toString=e;function t(d){return Nn.strToKeyCode(d)}o.fromString=t;function n(d){return tt.keyCodeToStr(d)}o.toUserSettingsUS=n;function r(d){return dt.keyCodeToStr(d)}o.toUserSettingsGeneral=r;function i(d){return tt.strToKeyCode(d)||dt.strToKeyCode(d)}o.fromUserSettings=i;function s(d){if(d>=93&&d<=108)return null;switch(d){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return Nn.keyCodeToStr(d)}o.toElectronAccelerator=s})(Ti||(Ti={}));function $i(o,e){const t=(e&65535)<<16>>>0;return(o|t)>>>0}function Vi(o,e){if(o===0)return null;const t=(o&65535)>>>0,n=(o&4294901760)>>>16;return n!==0?new Os([us(t,e),us(n,e)]):new Os([us(t,e)])}function us(o,e){const t=!!(o&2048),n=!!(o&256),r=e===2?n:t,i=!!(o&1024),s=!!(o&512),d=e===2?t:n,x=o&255;return new ks(r,i,s,d,x)}class ks{constructor(e,t,n,r,i){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=r,this.keyCode=i}equals(e){return this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode}isModifierKey(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4}toChord(){return new Os([this])}isDuplicateModifierCase(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57}}class Os{constructor(e){if(e.length===0)throw j("parts");this.parts=e}}class pa{constructor(e,t,n,r,i){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=r,this.scanCode=i}isDuplicateModifierCase(){return this.ctrlKey&&(this.scanCode===157||this.scanCode===161)||this.shiftKey&&(this.scanCode===158||this.scanCode===162)||this.altKey&&(this.scanCode===159||this.scanCode===163)||this.metaKey&&(this.scanCode===160||this.scanCode===164)}}class no{constructor(e,t,n,r,i,s){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=r,this.keyLabel=i,this.keyAriaLabel=s}}class Cs{}function ea(o){if(o.charCode){const t=String.fromCharCode(o.charCode).toUpperCase();return Ti.fromString(t)}const e=o.keyCode;if(e===3)return 7;if(jo){if(e===59)return 80;if(e===107)return 81;if(e===109)return 83;if(Yi&&e===224)return 57}else if(Es){if(e===91)return 57;if(Yi&&e===93)return 57;if(!Yi&&e===92)return 57}return vt[e]||0}const fa=Yi?256:2048,Bl=512,Ma=1024,gl=Yi?2048:256;class ia{constructor(e){this._standardKeyboardEventBrand=!0;const t=e;this.browserEvent=t,this.target=t.target,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.keyCode=ea(t),this.code=t.code,this.ctrlKey=this.ctrlKey||this.keyCode===5,this.altKey=this.altKey||this.keyCode===6,this.shiftKey=this.shiftKey||this.keyCode===4,this.metaKey=this.metaKey||this.keyCode===57,this._asKeybinding=this._computeKeybinding(),this._asRuntimeKeybinding=this._computeRuntimeKeybinding()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeybinding(){return this._asRuntimeKeybinding}equals(e){return this._asKeybinding===e}_computeKeybinding(){let e=0;this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=fa),this.altKey&&(t|=Bl),this.shiftKey&&(t|=Ma),this.metaKey&&(t|=gl),t|=e,t}_computeRuntimeKeybinding(){let e=0;return this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode),new ks(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}}let Nl=!1,cs=null;function zi(o){if(!o.parent||o.parent===o)return null;try{const e=o.location,t=o.parent.location;if(e.origin!=="null"&&t.origin!=="null"&&e.origin!==t.origin)return Nl=!0,null}catch(e){return Nl=!0,null}return o.parent}class Ji{static getSameOriginWindowChain(){if(!cs){cs=[];let e=window,t;do t=zi(e),t?cs.push({window:e,iframeElement:e.frameElement||null}):cs.push({window:e,iframeElement:null}),e=t;while(e)}return cs.slice(0)}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){if(!t||e===t)return{top:0,left:0};let n=0,r=0;const i=this.getSameOriginWindowChain();for(const s of i){if(n+=s.window.scrollY,r+=s.window.scrollX,s.window===t||!s.iframeElement)break;const d=s.iframeElement.getBoundingClientRect();n+=d.top,r+=d.left}return{top:n,left:r}}}class ta{constructor(e){this.timestamp=Date.now(),this.browserEvent=e,this.leftButton=e.button===0,this.middleButton=e.button===1,this.rightButton=e.button===2,this.buttons=e.buttons,this.target=e.target,this.detail=e.detail||1,e.type==="dblclick"&&(this.detail=2),this.ctrlKey=e.ctrlKey,this.shiftKey=e.shiftKey,this.altKey=e.altKey,this.metaKey=e.metaKey,typeof e.pageX=="number"?(this.posx=e.pageX,this.posy=e.pageY):(this.posx=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=e.clientY+document.body.scrollTop+document.documentElement.scrollTop);const t=Ji.getPositionOfChildWindowRelativeToAncestorWindow(self,e.view);this.posx-=t.left,this.posy-=t.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}class ms{constructor(e,t=0,n=0){if(this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=n,this.deltaX=t,e){const r=e,i=e;if(typeof r.wheelDeltaY!="undefined")this.deltaY=r.wheelDeltaY/120;else if(typeof i.VERTICAL_AXIS!="undefined"&&i.axis===i.VERTICAL_AXIS)this.deltaY=-i.detail/3;else if(e.type==="wheel"){const s=e;s.deltaMode===s.DOM_DELTA_LINE?jo&&!Yi?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if(typeof r.wheelDeltaX!="undefined")Za&&Jr?this.deltaX=-(r.wheelDeltaX/120):this.deltaX=r.wheelDeltaX/120;else if(typeof i.HORIZONTAL_AXIS!="undefined"&&i.axis===i.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if(e.type==="wheel"){const s=e;s.deltaMode===s.DOM_DELTA_LINE?jo&&!Yi?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}this.deltaY===0&&this.deltaX===0&&e.wheelDelta&&(this.deltaY=e.wheelDelta/120)}}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation()}}function Ua(o){if(Array.isArray(o)){for(var e=0,t=Array(o.length);e1?t-1:0),r=1;r/gm),Ic=$n(/^data-[\-\w.\u00B7-\uFFFF]/),Uc=$n(/^aria-[\-\w]+$/),zd=$n(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),th=$n(/^(?:\w+script|data):/i),Xd=$n(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),sd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o};function Mu(o){if(Array.isArray(o)){for(var e=0,t=Array(o.length);e0&&arguments[0]!==void 0?arguments[0]:Fc(),e=function(yc){return vd(yc)};if(e.version="2.3.1",e.removed=[],!o||!o.document||o.document.nodeType!==9)return e.isSupported=!1,e;var t=o.document,n=o.document,r=o.DocumentFragment,i=o.HTMLTemplateElement,s=o.Node,d=o.Element,x=o.NodeFilter,E=o.NamedNodeMap,O=E===void 0?o.NamedNodeMap||o.MozNamedAttrMap:E,W=o.Text,oe=o.Comment,Te=o.DOMParser,Ze=o.trustedTypes,ut=d.prototype,Nt=Jl(ut,"cloneNode"),wn=Jl(ut,"nextSibling"),En=Jl(ut,"childNodes"),yr=Jl(ut,"parentNode");if(typeof i=="function"){var Oi=n.createElement("template");Oi.content&&Oi.content.ownerDocument&&(n=Oi.content.ownerDocument)}var Jo=hd(Ze,t),Hs=Jo&&pM?Jo.createHTML(""):"",ao=n,oo=ao.implementation,Ns=ao.createNodeIterator,ll=ao.createDocumentFragment,kl=ao.getElementsByTagName,bu=t.importNode,nc={};try{nc=Hl(n).documentMode?n.documentMode:{}}catch(Ig){}var Sd={};e.isSupported=typeof yr=="function"&&oo&&typeof oo.createHTMLDocument!="undefined"&&nc!==9;var Nh=Fu,Cf=lc,ep=Ic,hp=Uc,wg=th,w0=Xd,S0=zd,wf=null,hf=qa({},[].concat(Mu(vu),Mu(au),Mu(bn),Mu(ts),Mu(ma))),L0=null,Wy=qa({},[].concat(Mu(Il),Mu(El),Mu(ml),Mu(fu))),G_=null,Kw=null,bT=!0,Xw=!0,pS=!1,mg=!1,s3=!1,UN=!1,HN=!1,a3=!1,fM=!1,jB=!0,pM=!1,WB=!0,Lc=!0,Gu=!1,ec={},$s=null,ya=qa({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Yl=null,Al=qa({},["audio","video","img","source","image","track"]),Rc=null,md=qa({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),sp="http://www.w3.org/1998/Math/MathML",Tf="http://www.w3.org/2000/svg",xg="http://www.w3.org/1999/xhtml",vg=xg,g0=!1,Om=null,bp=n.createElement("form"),Qv=function(yc){Om&&Om===yc||((!yc||(typeof yc=="undefined"?"undefined":sd(yc))!=="object")&&(yc={}),yc=Hl(yc),wf="ALLOWED_TAGS"in yc?qa({},yc.ALLOWED_TAGS):hf,L0="ALLOWED_ATTR"in yc?qa({},yc.ALLOWED_ATTR):Wy,Rc="ADD_URI_SAFE_ATTR"in yc?qa(Hl(md),yc.ADD_URI_SAFE_ATTR):md,Yl="ADD_DATA_URI_TAGS"in yc?qa(Hl(Al),yc.ADD_DATA_URI_TAGS):Al,$s="FORBID_CONTENTS"in yc?qa({},yc.FORBID_CONTENTS):ya,G_="FORBID_TAGS"in yc?qa({},yc.FORBID_TAGS):{},Kw="FORBID_ATTR"in yc?qa({},yc.FORBID_ATTR):{},ec="USE_PROFILES"in yc?yc.USE_PROFILES:!1,bT=yc.ALLOW_ARIA_ATTR!==!1,Xw=yc.ALLOW_DATA_ATTR!==!1,pS=yc.ALLOW_UNKNOWN_PROTOCOLS||!1,mg=yc.SAFE_FOR_TEMPLATES||!1,s3=yc.WHOLE_DOCUMENT||!1,a3=yc.RETURN_DOM||!1,fM=yc.RETURN_DOM_FRAGMENT||!1,jB=yc.RETURN_DOM_IMPORT!==!1,pM=yc.RETURN_TRUSTED_TYPE||!1,HN=yc.FORCE_BODY||!1,WB=yc.SANITIZE_DOM!==!1,Lc=yc.KEEP_CONTENT!==!1,Gu=yc.IN_PLACE||!1,S0=yc.ALLOWED_URI_REGEXP||S0,vg=yc.NAMESPACE||xg,mg&&(Xw=!1),fM&&(a3=!0),ec&&(wf=qa({},[].concat(Mu(ma))),L0=[],ec.html===!0&&(qa(wf,vu),qa(L0,Il)),ec.svg===!0&&(qa(wf,au),qa(L0,El),qa(L0,fu)),ec.svgFilters===!0&&(qa(wf,bn),qa(L0,El),qa(L0,fu)),ec.mathMl===!0&&(qa(wf,ts),qa(L0,ml),qa(L0,fu))),yc.ADD_TAGS&&(wf===hf&&(wf=Hl(wf)),qa(wf,yc.ADD_TAGS)),yc.ADD_ATTR&&(L0===Wy&&(L0=Hl(L0)),qa(L0,yc.ADD_ATTR)),yc.ADD_URI_SAFE_ATTR&&qa(Rc,yc.ADD_URI_SAFE_ATTR),yc.FORBID_CONTENTS&&($s===ya&&($s=Hl($s)),qa($s,yc.FORBID_CONTENTS)),Lc&&(wf["#text"]=!0),s3&&qa(wf,["html","head","body"]),wf.table&&(qa(wf,["tbody"]),delete G_.tbody),os&&os(yc),Om=yc)},pv=qa({},["mi","mo","mn","ms","mtext"]),Xx=qa({},["foreignobject","desc","title","annotation-xml"]),sv=qa({},au);qa(sv,bn),qa(sv,Eu);var Vy=qa({},ts);qa(Vy,Vs);var XL=function(yc){var mf=yr(yc);(!mf||!mf.tagName)&&(mf={namespaceURI:xg,tagName:"template"});var rg=ua(yc.tagName),av=ua(mf.tagName);if(yc.namespaceURI===Tf)return mf.namespaceURI===xg?rg==="svg":mf.namespaceURI===sp?rg==="svg"&&(av==="annotation-xml"||pv[av]):!!sv[rg];if(yc.namespaceURI===sp)return mf.namespaceURI===xg?rg==="math":mf.namespaceURI===Tf?rg==="math"&&Xx[av]:!!Vy[rg];if(yc.namespaceURI===xg){if(mf.namespaceURI===Tf&&!Xx[av]||mf.namespaceURI===sp&&!pv[av])return!1;var K_=qa({},["title","style","font","a","script"]);return!Vy[rg]&&(K_[rg]||!sv[rg])}return!1},sx=function(yc){ns(e.removed,{element:yc});try{yc.parentNode.removeChild(yc)}catch(mf){try{yc.outerHTML=Hs}catch(rg){yc.remove()}}},gS=function(yc,mf){try{ns(e.removed,{attribute:mf.getAttributeNode(yc),from:mf})}catch(rg){ns(e.removed,{attribute:null,from:mf})}if(mf.removeAttribute(yc),yc==="is"&&!L0[yc])if(a3||fM)try{sx(mf)}catch(rg){}else try{mf.setAttribute(yc,"")}catch(rg){}},xT=function(yc){var mf=void 0,rg=void 0;if(HN)yc=""+yc;else{var av=Na(yc,/^[\r\n\t ]+/);rg=av&&av[0]}var K_=Jo?Jo.createHTML(yc):yc;if(vg===xg)try{mf=new Te().parseFromString(K_,"text/html")}catch(Y_){}if(!mf||!mf.documentElement){mf=oo.createDocument(vg,"template",null);try{mf.documentElement.innerHTML=g0?"":K_}catch(Y_){}}var X_=mf.body||mf.documentElement;return yc&&rg&&X_.insertBefore(n.createTextNode(rg),X_.childNodes[0]||null),vg===xg?kl.call(mf,s3?"html":"body")[0]:s3?mf.documentElement:X_},YL=function(yc){return Ns.call(yc.ownerDocument||yc,yc,x.SHOW_ELEMENT|x.SHOW_COMMENT|x.SHOW_TEXT,null,!1)},l3=function(yc){return yc instanceof W||yc instanceof oe?!1:typeof yc.nodeName!="string"||typeof yc.textContent!="string"||typeof yc.removeChild!="function"||!(yc.attributes instanceof O)||typeof yc.removeAttribute!="function"||typeof yc.setAttribute!="function"||typeof yc.namespaceURI!="string"||typeof yc.insertBefore!="function"},qL=function(yc){return(typeof s=="undefined"?"undefined":sd(s))==="object"?yc instanceof s:yc&&(typeof yc=="undefined"?"undefined":sd(yc))==="object"&&typeof yc.nodeType=="number"&&typeof yc.nodeName=="string"},HC=function(yc,mf,rg){Sd[yc]&&ro(Sd[yc],function(av){av.call(e,mf,rg,Om)})},VB=function(yc){var mf=void 0;if(HC("beforeSanitizeElements",yc,null),l3(yc)||Na(yc.nodeName,/[\u0080-\uFFFF]/))return sx(yc),!0;var rg=ua(yc.nodeName);if(HC("uponSanitizeElement",yc,{tagName:rg,allowedTags:wf}),!qL(yc.firstElementChild)&&(!qL(yc.content)||!qL(yc.content.firstElementChild))&&Wa(/<[/\w]/g,yc.innerHTML)&&Wa(/<[/\w]/g,yc.textContent)||rg==="select"&&Wa(/